From 9a3e560c6139b833b1d429163941199a909c07ae Mon Sep 17 00:00:00 2001 From: Henry Painter Date: Sun, 14 Aug 2022 16:59:56 +0100 Subject: [PATCH] Match array of filters in one go --- dist/index.js | 2 +- src/filter.ts | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index 298916d..6b296bf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -(()=>{var __webpack_modules__={7757:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const p=a(1514);async function exec(e,t,a){a=a||{};let r="";let i="";a.listeners={stdout:e=>r+=e.toString(),stderr:e=>i+=e.toString()};const s=await(0,p.exec)(e,t,a);return{code:s,stdout:r,stderr:i}}t["default"]=exec},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ChangeStatus=void 0;var a;(function(e){e["Added"]="added";e["Copied"]="copied";e["Deleted"]="deleted";e["Modified"]="modified";e["Renamed"]="renamed";e["Unmerged"]="unmerged"})(a=t.ChangeStatus||(t.ChangeStatus={}))},3707:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;var r=Object.getOwnPropertyDescriptor(t,a);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,p,r)}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Filter=void 0;const d=i(a(1917));const o=s(a(8569));const n=a(4014);const l={dot:true,ignore:[]};class Filter{constructor(e){this.rules={};if(e){this.load(e)}}load(e){const t=d.load(e);if(typeof t!=="object"){this.throwInvalidFormatError("Root element is not an object")}for(const[e,a]of Object.entries(t)){if(typeof e!=="string"){this.throwInvalidFormatError(`Filter rule element at the root key: ${JSON.stringify(e)} must be a string.`)}else if(typeof a!=="string"&&!Array.isArray(a)){this.throwInvalidFormatError(`Filter rules must only be an array or a single string but we got ${JSON.stringify(a)} type: ${typeof a} isarray?: ${Array.isArray(a)}`)}this.rules[e]=this.parseFilterItemYaml(a)}}match(e){const t={};for(const[a,p]of Object.entries(this.rules)){t[a]=e.filter((e=>this.isMatch(e,p)))}return t}isMatch(e,t){return t.some((t=>(t.status===undefined||t.status.includes(e.status))&&t.isMatch(e.filename)))}parseFilterItemYaml(e,t=[]){var a=Object.assign(l);a.ignore=t;if(Array.isArray(e)){return flat(e.map((e=>this.parseFilterItemYaml(e,t))))}if(typeof e==="string"){return[{status:undefined,isMatch:(0,o.default)(e,a)}]}if(typeof e==="object"){var p=Object.keys(e).length;if(p==2&&e.paths_ignore&&e.paths){return this.parseFilterItemYaml(e.paths,e.paths_ignore)}else if(p==1){return Object.entries(e).map((([e,t])=>{if(typeof e!=="string"||typeof t!=="string"&&(!Array.isArray(t)?true:!this.isStringsArray(t))){this.throwInvalidFormatError(`Expected [key:string]= pattern:string | string[], but [${e}:${typeof e}]= ${t}:${typeof t} Where pattern isArray:${Array.isArray(t)} isArrayofStrings:${this.isStringsArray(t)} found.`)}return{status:e.split("|").map((e=>e.trim())).filter((e=>e.length>0)).map((e=>this.isChangeStatus(e)&&e.toLowerCase())),isMatch:(0,o.default)(t,a)}}))}else{this.throwInvalidFormatError(`Expected a filter rule object with keys paths & paths_ignore, or a single key for change status filter. Instead object keys: ${JSON.stringify(Object.keys(e))} found.`)}}this.throwInvalidFormatError(`Unexpected element type '${typeof e}'`)}isStringsArray(e){if(Array.isArray(e)?e.every((e=>typeof e==="string")):false){return true}}isChangeStatus(e){if(Object.values(n.ChangeStatus).includes(e)){return true}this.throwInvalidFormatError(`Change Status Filter Validation: Expected one of ${JSON.stringify(Object.values(n.ChangeStatus))}, instead ${e} found.`)}throwInvalidFormatError(e){throw new Error(`Invalid filter YAML format: ${e}.`)}}t.Filter=Filter;function flat(e){return e.reduce(((e,t)=>e.concat(t)),[])}},3374:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;var r=Object.getOwnPropertyDescriptor(t,a);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,p,r)}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.statusMap=t.isGitSha=t.getShortName=t.getCurrentRef=t.listAllFilesAsAdded=t.parseGitDiffOutput=t.getChangesSinceMergeBase=t.getChangesOnHead=t.getChanges=t.getChangesInLastCommit=t.HEAD=t.NULL_SHA=void 0;const d=s(a(7757));const o=i(a(2186));const n=a(4014);t.NULL_SHA="0000000000000000000000000000000000000000";t.HEAD="HEAD";async function getChangesInLastCommit(){o.startGroup(`Change detection in last commit`);let e="";try{e=(await(0,d.default)("git",["log","--format=","--no-renames","--name-status","-z","-n","1"])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(e)}t.getChangesInLastCommit=getChangesInLastCommit;async function getChanges(e,t){const a=await ensureRefAvailable(e);const p=await ensureRefAvailable(t);o.startGroup(`Change detection ${e}..${t}`);let r="";try{r=(await(0,d.default)("git",["diff","--no-renames","--name-status","-z",`${a}..${p}`])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(r)}t.getChanges=getChanges;async function getChangesOnHead(){o.startGroup(`Change detection on HEAD`);let e="";try{e=(await(0,d.default)("git",["diff","--no-renames","--name-status","-z","HEAD"])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(e)}t.getChangesOnHead=getChangesOnHead;async function getChangesSinceMergeBase(e,t,a){let p;let r;async function hasMergeBase(){if(p===undefined||r===undefined){return false}return(await(0,d.default)("git",["merge-base",p,r],{ignoreReturnCode:true})).code===0}let i=false;o.startGroup(`Searching for merge-base ${e}...${t}`);try{p=await getLocalRef(e);r=await getLocalRef(t);if(!await hasMergeBase()){await(0,d.default)("git",["fetch","--no-tags",`--depth=${a}`,"origin",e,t]);if(p===undefined||r===undefined){p=p!==null&&p!==void 0?p:await getLocalRef(e);r=r!==null&&r!==void 0?r:await getLocalRef(t);if(p===undefined||r===undefined){await(0,d.default)("git",["fetch","--tags","--depth=1","origin",e,t],{ignoreReturnCode:true});p=p!==null&&p!==void 0?p:await getLocalRef(e);r=r!==null&&r!==void 0?r:await getLocalRef(t);if(p===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}if(r===undefined){throw new Error(`Could not determine what is ${t} - fetch works but it's not a branch, tag or commit SHA`)}}}let s=a;let n=await getCommitCount();while(!await hasMergeBase()){s=Math.min(s*2,Number.MAX_SAFE_INTEGER);await(0,d.default)("git",["fetch",`--deepen=${s}`,"origin",e,t]);const a=await getCommitCount();if(a===n){o.info("No more commits were fetched");o.info("Last attempt will be to fetch full history");await(0,d.default)("git",["fetch"]);if(!await hasMergeBase()){i=true}break}n=a}}}finally{o.endGroup()}let s=`${p}...${r}`;if(i){o.warning("No merge base found - change detection will use direct .. comparison");s=`${p}..${r}`}o.startGroup(`Change detection ${s}`);let n="";try{n=(await(0,d.default)("git",["diff","--no-renames","--name-status","-z",s])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(n)}t.getChangesSinceMergeBase=getChangesSinceMergeBase;function parseGitDiffOutput(e){const a=e.split("\0").filter((e=>e.length>0));const p=[];for(let e=0;e+1e.length>0)).map((e=>({status:n.ChangeStatus.Added,filename:e})))}t.listAllFilesAsAdded=listAllFilesAsAdded;async function getCurrentRef(){o.startGroup(`Get current git ref`);try{const e=(await(0,d.default)("git",["branch","--show-current"])).stdout.trim();if(e){return e}const a=await(0,d.default)("git",["describe","--tags","--exact-match"],{ignoreReturnCode:true});if(a.code===0){return a.stdout.trim()}return(await(0,d.default)("git",["rev-parse",t.HEAD])).stdout.trim()}finally{o.endGroup()}}t.getCurrentRef=getCurrentRef;function getShortName(e){if(!e)return"";const t="refs/heads/";const a="refs/tags/";if(e.startsWith(t))return e.slice(t.length);if(e.startsWith(a))return e.slice(a.length);return e}t.getShortName=getShortName;function isGitSha(e){return/^[a-z0-9]{40}$/.test(e)}t.isGitSha=isGitSha;async function hasCommit(e){return(await(0,d.default)("git",["cat-file","-e",`${e}^{commit}`],{ignoreReturnCode:true})).code===0}async function getCommitCount(){const e=(await(0,d.default)("git",["rev-list","--count","--all"])).stdout;const t=parseInt(e);return isNaN(t)?0:t}async function getLocalRef(e){if(isGitSha(e)){return await hasCommit(e)?e:undefined}const t=(await(0,d.default)("git",["show-ref",e],{ignoreReturnCode:true})).stdout;const a=t.split(/\r?\n/g).map((e=>e.match(/refs\/(?:(?:heads)|(?:tags)|(?:remotes\/origin))\/(.*)$/))).filter((t=>t!==null&&t[1]===e)).map((e=>{var t;return(t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:""}));if(a.length===0){return undefined}const p=a.find((e=>e.startsWith("refs/remotes/origin/")));if(p){return p}return a[0]}async function ensureRefAvailable(e){o.startGroup(`Ensuring ${e} is fetched from origin`);try{let t=await getLocalRef(e);if(t===undefined){await(0,d.default)("git",["fetch","--depth=1","--no-tags","origin",e]);t=await getLocalRef(e);if(t===undefined){await(0,d.default)("git",["fetch","--depth=1","--tags","origin",e]);t=await getLocalRef(e);if(t===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}}}return t}finally{o.endGroup()}}function fixStdOutNullTermination(){o.info("")}t.statusMap={A:n.ChangeStatus.Added,C:n.ChangeStatus.Copied,D:n.ChangeStatus.Deleted,M:n.ChangeStatus.Modified,R:n.ChangeStatus.Renamed,U:n.ChangeStatus.Unmerged}},7402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.csvEscape=void 0;function csvEscape(e){if(e==="")return e;if(/^[a-zA-Z0-9._+:@%/-]+$/m.test(e)){return e}return`"${e.replace(/"/g,'""')}"`}t.csvEscape=csvEscape},4613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shellEscape=t.backslashEscape=void 0;function backslashEscape(e){return e.replace(/([^a-zA-Z0-9,._+:@%/-])/gm,"\\$1")}t.backslashEscape=backslashEscape;function shellEscape(e){if(e==="")return e;if(/^[a-zA-Z0-9,._+:@%/-]+$/m.test(e)){return e}if(e.includes("'")){if(/^[a-zA-Z0-9,._+:@%/'\s-]+$/m.test(e)){return`"${e}"`}return e.split("'").map(shellEscape).join("\\'")}return`'${e}'`}t.shellEscape=shellEscape},3109:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;var r=Object.getOwnPropertyDescriptor(t,a);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,p,r)}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(a(7147));const d=i(a(2186));const o=i(a(5438));const n=a(3707);const l=a(4014);const m=i(a(3374));const u=a(4613);const c=a(7402);async function run(){try{const e=d.getInput("working-directory",{required:false});if(e){process.chdir(e)}const t=d.getInput("files",{required:false});const a=d.getInput("token",{required:false});const p=d.getInput("ref",{required:false});const r=d.getInput("base",{required:false});const i=d.getInput("filters",{required:true});const s=isPathInput(i)?getConfigFileContent(i):i;const o=d.getInput("list-files",{required:false}).toLowerCase()||"none";const l=parseInt(d.getInput("initial-fetch-depth",{required:false}))||10;const m=t?parseFilesInput(t.split(/\r?\n/)):await getChangedFiles(a,r,p,l);if(!isExportFormat(o)){d.setFailed(`Input parameter 'list-files' is set to invalid value '${o}'`);return}const u=new n.Filter(s);d.info(`Detected ${m.length} changed files`);const c=u.match(m);exportResults(c,o)}catch(e){let t;if(e instanceof Error)t=e.message;else t=String(e);d.setFailed(t)}}function parseFilesInput(e){const t=[];for(let i=0;i+10;d.startGroup(`Filter ${p} = ${e}`);if(r.length>0){a.push(p);d.info("Matching files:");for(const e of r){d.info(`${e.filename} [${e.status}]`)}}else{d.info("Matching files: none")}d.setOutput(p,e);d.setOutput(`${p}_count`,r.length);if(t!=="none"){const e=serializeExport(r,t);d.setOutput(`${p}_files`,e)}d.endGroup()}if(e["changes"]===undefined){const e=JSON.stringify(a);d.info(`Changes output set to ${e}`);d.setOutput("changes",e)}else{d.info("Cannot set changes output variable - name already used by filter output")}}function serializeExport(e,t){const a=e.map((e=>e.filename));switch(t){case"csv":return a.map(c.csvEscape).join(",");case"json":return JSON.stringify(a);case"escape":return a.map(u.backslashEscape).join(" ");case"shell":return a.map(u.shellEscape).join(" ");default:return""}}function isExportFormat(e){return["none","csv","shell","json","escape"].includes(e)}run()},7351:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=i(a(2037));const d=a(5278);function issueCommand(e,t,a){const p=new Command(e,t,a);process.stdout.write(p.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const p=this.properties[a];if(p){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(p)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const d=a(7351);const o=a(717);const n=a(5278);const l=i(a(2037));const m=i(a(1017));const u=a(5840);const c=a(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=n.toCommandValue(t);process.env[e]=a;const p=process.env["GITHUB_ENV"]||"";if(p){const t=`ghadelimiter_${u.v4()}`;if(e.includes(t)){throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`)}if(a.includes(t)){throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`)}const p=`${e}<<${t}${l.EOL}${a}${l.EOL}${t}`;o.issueCommand("ENV",p)}else{d.issueCommand("set-env",{name:e},a)}}t.exportVariable=exportVariable;function setSecret(e){d.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{d.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));return a}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const p=["false","False","FALSE"];const r=getInput(e,t);if(a.includes(r))return true;if(p.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);d.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){d.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){d.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){d.issueCommand("error",n.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){d.issueCommand("warning",n.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){d.issueCommand("notice",n.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){d.issue("group",e)}t.startGroup=startGroup;function endGroup(){d.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){d.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield c.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var v=a(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return v.summary}});var g=a(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var w=a(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=i(a(7147));const d=i(a(2037));const o=a(5278);function issueCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}s.appendFileSync(a,`${o.toCommandValue(t)}${d.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,a){"use strict";var p=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=a(6255);const i=a(5526);const s=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return p(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const p=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const r=(t=p.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return p(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}s.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);s.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=i(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,a){"use strict";var p=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=a(2037);const i=a(7147);const{access:s,appendFile:d,writeFile:o}=i.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return p(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,i.constants.R_OK|i.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,a={}){const p=Object.entries(a).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${p}>`}return`<${e}${p}>${t}`}write(e){return p(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const p=t?o:d;yield p(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return p(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const a=Object.assign({},t&&{lang:t});const p=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(p).addEOL()}addList(e,t=false){const a=t?"ol":"ul";const p=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(a,p);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:a,colspan:p,rowspan:r}=e;const i=t?"th":"td";const s=Object.assign(Object.assign({},p&&{colspan:p}),r&&{rowspan:r});return this.wrap(i,a,s)})).join("");return this.wrap("tr",t)})).join("");const a=this.wrap("table",t);return this.addRaw(a).addEOL()}addDetails(e,t){const a=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(a).addEOL()}addImage(e,t,a){const{width:p,height:r}=a||{};const i=Object.assign(Object.assign({},p&&{width:p}),r&&{height:r});const s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const a=`h${t}`;const p=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const r=this.wrap(p,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const a=Object.assign({},t&&{cite:t});const p=this.wrap("blockquote",e,a);return this.addRaw(p).addEOL()}addLink(e,t){const a=this.wrap("a",e,{href:t});return this.addRaw(a).addEOL()}}const n=new Summary;t.markdownSummary=n;t.summary=n},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const d=a(1576);const o=i(a(8159));function exec(e,t,a){return s(this,void 0,void 0,(function*(){const p=o.argStringToArray(e);if(p.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=p[0];t=p.slice(1).concat(t||[]);const i=new o.ToolRunner(r,t,a);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var p,r;return s(this,void 0,void 0,(function*(){let i="";let s="";const o=new d.StringDecoder("utf8");const n=new d.StringDecoder("utf8");const l=(p=a===null||a===void 0?void 0:a.listeners)===null||p===void 0?void 0:p.stdout;const m=(r=a===null||a===void 0?void 0:a.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{s+=n.write(e);if(m){m(e)}};const stdOutListener=e=>{i+=o.write(e);if(l){l(e)}};const u=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const c=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:u}));i+=o.end();s+=n.end();return{exitCode:c,stdout:i,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const d=i(a(2037));const o=i(a(2361));const n=i(a(2081));const l=i(a(1017));const m=i(a(7436));const u=i(a(1962));const c=a(9512);const h=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const p=this._getSpawnArgs(e);let r=t?"":"[command]";if(h){if(this._isCmdFile()){r+=a;for(const e of p){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${a}"`;for(const e of p){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(a);for(const e of p){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=a;for(const e of p){r+=` ${e}`}}return r}_processLineBuffer(e,t,a){try{let p=t+e.toString();let r=p.indexOf(d.EOL);while(r>-1){const e=p.substring(0,r);a(e);p=p.substring(r+d.EOL.length);r=p.indexOf(d.EOL)}return p}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const p of e){if(t.some((e=>e===p))){a=true;break}}if(!a){return e}let p='"';let r=true;for(let t=e.length;t>0;t--){p+=e[t-1];if(r&&e[t-1]==="\\"){p+="\\"}else if(e[t-1]==='"'){r=true;p+='"'}else{r=false}}p+='"';return p.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let p=e.length;p>0;p--){t+=e[p-1];if(a&&e[p-1]==="\\"){t+="\\"}else if(e[p-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return s(this,void 0,void 0,(function*(){if(!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield m.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const a=this._cloneExecOptions(this.options);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+d.EOL)}const p=new ExecState(a,this.toolPath);p.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield u.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const i=n.spawn(r,this._getSpawnArgs(a),this._getSpawnOptions(this.options,r));let s="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let o="";if(i.stderr){i.stderr.on("data",(e=>{p.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{p.processError=e.message;p.processExited=true;p.processClosed=true;p.CheckComplete()}));i.on("exit",(e=>{p.processExitCode=e;p.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);p.CheckComplete()}));i.on("close",(e=>{p.processExitCode=e;p.processExited=true;p.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);p.CheckComplete()}));p.on("done",((a,p)=>{if(s.length>0){this.emit("stdline",s)}if(o.length>0){this.emit("errline",o)}i.removeAllListeners();if(a){t(a)}else{e(p)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let p=false;let r="";function append(e){if(p&&e!=='"'){r+="\\"}r+=e;p=false}for(let i=0;i0){t.push(r);r=""}continue}append(s)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=c.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},4087:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const p=a(7147);const r=a(2037);class Context{constructor(){var e,t,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(p.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(p.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${r.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},5438:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const s=i(a(4087));const d=a(3030);t.context=new s.Context;function getOctokit(e,t){return new d.GitHub(d.getOctokitOptions(e,t))}t.getOctokit=getOctokit},7914:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=i(a(6255));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new s.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},3030:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const s=i(a(4087));const d=i(a(7914));const o=a(6762);const n=a(3044);const l=a(4193);t.context=new s.Context;const m=d.getApiBaseUrl();const u={baseUrl:m,request:{agent:d.getProxyAgent(m)}};t.GitHub=o.Octokit.plugin(n.restEndpointMethods,l.paginateRest).defaults(u);function getOctokitOptions(e,t){const a=Object.assign({},t||{});const p=d.getAuthString(e,a);if(p){a.auth=p}return a}t.getOctokitOptions=getOctokitOptions},5526:function(e,t){"use strict";var a=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const d=i(a(3685));const o=i(a(5687));const n=i(a(9835));const l=i(a(4294));var m;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(m=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=n.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[m.MovedPermanently,m.ResourceMoved,m.SeeOther,m.TemporaryRedirect,m.PermanentRedirect];const v=[m.BadGateway,m.ServiceUnavailable,m.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const w=10;const _=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return s(this,void 0,void 0,(function*(){return new Promise((e=>s(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,t){return s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,a){return s(this,void 0,void 0,(function*(){return this.request("POST",e,t,a||{})}))}patch(e,t,a){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,a||{})}))}put(e,t,a){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,t,a||{})}))}head(e,t){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,a,p){return s(this,void 0,void 0,(function*(){return this.request(e,t,a,p)}))}getJson(e,t={}){return s(this,void 0,void 0,(function*(){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);const a=yield this.get(e,t);return this._processResponse(a,this.requestOptions)}))}postJson(e,t,a={}){return s(this,void 0,void 0,(function*(){const p=JSON.stringify(t,null,2);a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);a[u.ContentType]=this._getExistingOrDefaultHeader(a,u.ContentType,c.ApplicationJson);const r=yield this.post(e,p,a);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,a={}){return s(this,void 0,void 0,(function*(){const p=JSON.stringify(t,null,2);a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);a[u.ContentType]=this._getExistingOrDefaultHeader(a,u.ContentType,c.ApplicationJson);const r=yield this.put(e,p,a);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,a={}){return s(this,void 0,void 0,(function*(){const p=JSON.stringify(t,null,2);a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);a[u.ContentType]=this._getExistingOrDefaultHeader(a,u.ContentType,c.ApplicationJson);const r=yield this.patch(e,p,a);return this._processResponse(r,this.requestOptions)}))}request(e,t,a,p){return s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let i=this._prepareRequest(e,r,p);const s=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let d=0;let o;do{o=yield this.requestRaw(i,a);if(o&&o.message&&o.message.statusCode===m.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(o)){e=t;break}}if(e){return e.handleAuthentication(this,i,a)}else{return o}}let t=this._maxRedirects;while(o.message.statusCode&&h.includes(o.message.statusCode)&&this._allowRedirects&&t>0){const s=o.message.headers["location"];if(!s){break}const d=new URL(s);if(r.protocol==="https:"&&r.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield o.readBody();if(d.hostname!==r.hostname){for(const e in p){if(e.toLowerCase()==="authorization"){delete p[e]}}}i=this._prepareRequest(e,d,p);o=yield this.requestRaw(i,a);t--}if(!o.message.statusCode||!v.includes(o.message.statusCode)){return o}d+=1;if(d{function callbackForResult(e,t){if(e){p(e)}else if(!t){p(new Error("Unknown error"))}else{a(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,a){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let p=false;function handleResult(e,t){if(!p){p=true;a(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;r.on("socket",(e=>{i=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const p={};p.parsedUrl=t;const r=p.parsedUrl.protocol==="https:";p.httpModule=r?o:d;const i=r?443:80;p.options={};p.options.host=p.parsedUrl.hostname;p.options.port=p.parsedUrl.port?parseInt(p.parsedUrl.port):i;p.options.path=(p.parsedUrl.pathname||"")+(p.parsedUrl.search||"");p.options.method=e;p.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){p.options.headers["user-agent"]=this.userAgent}p.options.agent=this._getAgent(p.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(p.options)}}return p}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){let p;if(this.requestOptions&&this.requestOptions.headers){p=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||p||a}_getAgent(e){let t;const a=n.getProxyUrl(e);const p=a&&a.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(t){return t}const r=e.protocol==="https:";let i=100;if(this.requestOptions){i=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let p;const s=a.protocol==="https:";if(r){p=s?l.httpsOverHttps:l.httpsOverHttp}else{p=s?l.httpOverHttps:l.httpOverHttp}t=p(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=r?new o.Agent(e):new d.Agent(e);this._agent=t}if(!t){t=r?o.globalAgent:d.globalAgent}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(w,e);const t=_*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((a,p)=>s(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const i={statusCode:r,result:null,headers:{}};if(r===m.NotFound){a(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let d;try{d=yield e.readBody();if(d&&d.length>0){if(t&&t.deserializeDates){s=JSON.parse(d,dateTimeDeserializer)}else{s=JSON.parse(d)}i.result=s}i.headers=e.message.headers}catch(e){}if(r>299){let e;if(s&&s.message){e=s.message}else if(d&&d.length>0){e=d}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=i.result;p(t)}else{a(i)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){return new URL(a)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}const p=[e.hostname.toUpperCase()];if(typeof a==="number"){p.push(`${p[0]}:${a}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(p.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};var d;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const o=i(a(7147));const n=i(a(1017));d=o.promises,t.chmod=d.chmod,t.copyFile=d.copyFile,t.lstat=d.lstat,t.mkdir=d.mkdir,t.readdir=d.readdir,t.readlink=d.readlink,t.rename=d.rename,t.rmdir=d.rmdir,t.stat=d.stat,t.symlink=d.symlink,t.unlink=d.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return s(this,void 0,void 0,(function*(){const p=a?yield t.stat(e):yield t.lstat(e);return p.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return s(this,void 0,void 0,(function*(){let p=undefined;try{p=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(p&&p.isFile()){if(t.IS_WINDOWS){const t=n.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(p)){return e}}}const r=e;for(const i of a){e=r+i;p=undefined;try{p=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(p&&p.isFile()){if(t.IS_WINDOWS){try{const a=n.dirname(e);const p=n.basename(e).toUpperCase();for(const r of yield t.readdir(a)){if(p===r.toUpperCase()){e=n.join(a,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(p)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const d=a(9491);const o=i(a(2081));const n=i(a(1017));const l=a(3837);const m=i(a(1962));const u=l.promisify(o.exec);const c=l.promisify(o.execFile);function cp(e,t,a={}){return s(this,void 0,void 0,(function*(){const{force:p,recursive:r,copySourceDirectory:i}=readCopyOptions(a);const s=(yield m.exists(t))?yield m.stat(t):null;if(s&&s.isFile()&&!p){return}const d=s&&s.isDirectory()&&i?n.join(t,n.basename(e)):t;if(!(yield m.exists(e))){throw new Error(`no such file or directory: ${e}`)}const o=yield m.stat(e);if(o.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,d,0,p)}}else{if(n.relative(e,d)===""){throw new Error(`'${d}' and '${e}' are the same file`)}yield copyFile(e,d,p)}}))}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,(function*(){if(yield m.exists(t)){let p=true;if(yield m.isDirectory(t)){t=n.join(t,n.basename(e));p=yield m.exists(t)}if(p){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(n.dirname(t));yield m.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=m.getCmdPath();if(yield m.isDirectory(e,true)){yield u(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield m.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield m.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm`,[`-rf`,`${e}`])}else{yield m.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){d.ok(e,"a path argument must be provided");yield m.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(m.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(m.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(n.delimiter)){if(e){t.push(e)}}}if(m.isRooted(e)){const a=yield m.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(n.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(n.delimiter)){if(e){a.push(e)}}}const p=[];for(const r of a){const a=yield m.tryGetExecutablePath(n.join(r,e),t);if(a){p.push(a)}}return p}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const p=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:p}}function cpDirRecursive(e,t,a,p){return s(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const r=yield m.readdir(e);for(const i of r){const r=`${e}/${i}`;const s=`${t}/${i}`;const d=yield m.lstat(r);if(d.isDirectory()){yield cpDirRecursive(r,s,a,p)}else{yield copyFile(r,s,p)}}yield m.chmod(t,(yield m.stat(e)).mode)}))}function copyFile(e,t,a){return s(this,void 0,void 0,(function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(t);yield m.unlink(t)}catch(e){if(e.code==="EPERM"){yield m.chmod(t,"0666");yield m.unlink(t)}}const a=yield m.readlink(e);yield m.symlink(a,t,m.IS_WINDOWS?"junction":null)}else if(!(yield m.exists(t))||a){yield m.copyFile(e,t)}}))}},334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=/^v1\./;const p=/^ghs_/;const r=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const i=a.test(e)||p.test(e);const s=r.test(e);const d=t?"app":i?"installation":s?"user-to-server":"oauth";return{type:"token",token:e,tokenType:d}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,a,p){const r=t.endpoint.merge(a,p);r.headers.authorization=withAuthorizationPrefix(e);return t(r)}const i=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=i},6762:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var p=a(5030);var r=a(3682);var i=a(6234);var s=a(8467);var d=a(334);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var a={};var p=Object.keys(e);var r,i;for(i=0;i=0)continue;a[r]=e[r]}return a}function _objectWithoutProperties(e,t){if(e==null)return{};var a=_objectWithoutPropertiesLoose(e,t);var p,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,p))continue;a[p]=e[p]}}return a}const o="3.6.0";const n=["authStrategy"];class Octokit{constructor(e={}){const t=new r.Collection;const a={baseUrl:i.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[e.userAgent,`octokit-core.js/${o} ${p.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){a.baseUrl=e.baseUrl}if(e.previews){a.mediaType.previews=e.previews}if(e.timeZone){a.headers["time-zone"]=e.timeZone}this.request=i.request.defaults(a);this.graphql=s.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=d.createTokenAuth(e.auth);t.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a}=e,p=_objectWithoutProperties(e,n);const r=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:p},e.auth));t.wrap("request",r.hook);this.auth=r}const l=this.constructor;l.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const a=t[0]||{};if(typeof e==="function"){super(e(a));return}super(Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const a=this.plugins;const p=(t=class extends(this){},t.plugins=a.concat(e.filter((e=>!a.includes(e)))),t);return p}}Octokit.VERSION=o;Octokit.plugins=[];t.Octokit=Octokit},9440:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var p=a(3287);var r=a(5030);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,a)=>{t[a.toLowerCase()]=e[a];return t}),{})}function mergeDeep(e,t){const a=Object.assign({},e);Object.keys(t).forEach((r=>{if(p.isPlainObject(t[r])){if(!(r in e))Object.assign(a,{[r]:t[r]});else a[r]=mergeDeep(e[r],t[r])}else{Object.assign(a,{[r]:t[r]})}}));return a}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,a){if(typeof t==="string"){let[e,p]=t.split(" ");a=Object.assign(p?{method:e,url:p}:{url:e},a)}else{a=Object.assign({},t)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const p=mergeDeep(e||{},a);if(e&&e.mediaType.previews.length){p.mediaType.previews=e.mediaType.previews.filter((e=>!p.mediaType.previews.includes(e))).concat(p.mediaType.previews)}p.mediaType.previews=p.mediaType.previews.map((e=>e.replace(/-preview/,"")));return p}function addQueryParameters(e,t){const a=/\?/.test(e)?"&":"?";const p=Object.keys(t);if(p.length===0){return e}return e+a+p.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const i=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(i);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,a)=>{t[a]=e[a];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,a){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(a){return encodeUnreserved(a)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,a,p){var r=e[a],i=[];if(isDefined(r)&&r!==""){if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){r=r.toString();if(p&&p!=="*"){r=r.substring(0,parseInt(p,10))}i.push(encodeValue(t,r,isKeyOperator(t)?a:""))}else{if(p==="*"){if(Array.isArray(r)){r.filter(isDefined).forEach((function(e){i.push(encodeValue(t,e,isKeyOperator(t)?a:""))}))}else{Object.keys(r).forEach((function(e){if(isDefined(r[e])){i.push(encodeValue(t,r[e],e))}}))}}else{const e=[];if(Array.isArray(r)){r.filter(isDefined).forEach((function(a){e.push(encodeValue(t,a))}))}else{Object.keys(r).forEach((function(a){if(isDefined(r[a])){e.push(encodeUnreserved(a));e.push(encodeValue(t,r[a].toString()))}}))}if(isKeyOperator(t)){i.push(encodeUnreserved(a)+"="+e.join(","))}else if(e.length!==0){i.push(e.join(","))}}}}else{if(t===";"){if(isDefined(r)){i.push(encodeUnreserved(a))}}else if(r===""&&(t==="&"||t==="?")){i.push(encodeUnreserved(a)+"=")}else if(r===""){i.push("")}}return i}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,p,r){if(p){let e="";const r=[];if(a.indexOf(p.charAt(0))!==-1){e=p.charAt(0);p=p.substr(1)}p.split(/,/g).forEach((function(a){var p=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);r.push(getValues(t,e,p[1],p[2]||p[3]))}));if(e&&e!=="+"){var i=",";if(e==="?"){i="&"}else if(e!=="#"){i=e}return(r.length!==0?e:"")+r.join(i)}else{return r.join(",")}}else{return encodeReserved(r)}}))}function parse(e){let t=e.method.toUpperCase();let a=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let p=Object.assign({},e.headers);let r;let i=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const s=extractUrlVariableNames(a);a=parseUrl(a).expand(i);if(!/^http/.test(a)){a=e.baseUrl+a}const d=Object.keys(e).filter((e=>s.includes(e))).concat("baseUrl");const o=omit(i,d);const n=/application\/octet-stream/i.test(p.accept);if(!n){if(e.mediaType.format){p.accept=p.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=p.accept.match(/[\w-]+(?=-preview)/g)||[];p.accept=t.concat(e.mediaType.previews).map((t=>{const a=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(t)){a=addQueryParameters(a,o)}else{if("data"in o){r=o.data}else{if(Object.keys(o).length){r=o}else{p["content-length"]=0}}}if(!p["content-type"]&&typeof r!=="undefined"){p["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof r==="undefined"){r=""}return Object.assign({method:t,url:a,headers:p},typeof r!=="undefined"?{body:r}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,a){return parse(merge(e,t,a))}function withDefaults(e,t){const a=merge(e,t);const p=endpointWithDefaults.bind(null,a);return Object.assign(p,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const s="6.0.12";const d=`octokit-endpoint.js/${s} ${r.getUserAgent()}`;const o={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const n=withDefaults(null,o);t.endpoint=n},8467:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var p=a(6234);var r=a(5030);const i="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,a){super(_buildMessageForResponseErrors(a));this.request=e;this.headers=t;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const s=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const o=/\/api\/v3\/?$/;function graphql(e,t,a){if(a){if(typeof t==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in a){if(!d.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const p=typeof t==="string"?Object.assign({query:t},a):t;const r=Object.keys(p).reduce(((e,t)=>{if(s.includes(t)){e[t]=p[t];return e}if(!e.variables){e.variables={}}e.variables[t]=p[t];return e}),{});const i=p.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(o.test(i)){r.url=i.replace(o,"/api/graphql")}return e(r).then((e=>{if(e.data.errors){const t={};for(const a of Object.keys(e.headers)){t[a]=e.headers[a]}throw new GraphqlResponseError(r,t,e.data)}return e.data.data}))}function withDefaults(e,t){const a=e.defaults(t);const newApi=(e,t)=>graphql(a,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:p.request.endpoint})}const n=withDefaults(p.request,{headers:{"user-agent":`octokit-graphql.js/${i} ${r.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=n;t.withCustomRequest=withCustomRequest},4193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a="2.21.3";function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);t&&(p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,p)}return a}function _objectSpread2(e){for(var t=1;t({async next(){if(!d)return{done:true};try{const e=await r({method:i,url:d,headers:s});const t=normalizePaginatedListResponse(e);d=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,a,p){if(typeof a==="function"){p=a;a=undefined}return gather(e,[],iterator(e,t,a)[Symbol.asyncIterator](),p)}function gather(e,t,a,p){return a.next().then((r=>{if(r.done){return t}let i=false;function done(){i=true}t=t.concat(p?p(r.value,done):r.value.data);if(i){return t}return gather(e,t,a,p)}))}const p=Object.assign(paginate,{iterator:iterator});const r=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return r.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=a;t.composePaginateRest=p;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=r},3044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);if(t){p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}a.push.apply(a,p)}return a}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var p=a(8932);var r=_interopDefault(a(1223));const i=r((e=>console.warn(e)));const s=r((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,a){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let r;if("headers"in a&&typeof a.headers!=="undefined"){r=a.headers}if("response"in a){this.response=a.response;r=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){i(new p.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){s(new p.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return r||{}}})}}t.RequestError=RequestError},6234:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var p=a(9440);var r=a(5030);var i=a(3287);var s=_interopDefault(a(467));var d=a(537);const o="5.6.3";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(i.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let p;let r;const o=e.request&&e.request.fetch||s;return o(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async i=>{r=i.url;p=i.status;for(const e of i.headers){a[e[0]]=e[1]}if("deprecation"in a){const p=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=p&&p.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(p===204||p===205){return}if(e.method==="HEAD"){if(p<400){return}throw new d.RequestError(i.statusText,p,{response:{url:r,status:p,headers:a,data:undefined},request:e})}if(p===304){throw new d.RequestError("Not modified",p,{response:{url:r,status:p,headers:a,data:await getResponseData(i)},request:e})}if(p>=400){const t=await getResponseData(i);const s=new d.RequestError(toErrorMessage(t),p,{response:{url:r,status:p,headers:a,data:t},request:e});throw s}return getResponseData(i)})).then((e=>({status:p,url:r,headers:a,data:e}))).catch((t=>{if(t instanceof d.RequestError)throw t;throw new d.RequestError(t.message,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const a=e.defaults(t);const newApi=function(e,t){const p=a.merge(e,t);if(!p.request||!p.request.hook){return fetchWrapper(a.parse(p))}const request=(e,t)=>fetchWrapper(a.parse(a.merge(e,t)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return p.request.hook(request,p)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const n=withDefaults(p.endpoint,{headers:{"user-agent":`octokit-request.js/${o} ${r.getUserAgent()}`}});t.request=n},3682:(e,t,a)=>{var p=a(4670);var r=a(5549);var i=a(6819);var s=Function.bind;var d=s.bind(s);function bindApi(e,t,a){var p=d(i,null).apply(null,a?[t,a]:[t]);e.api={remove:p};e.remove=p;["before","error","after","wrap"].forEach((function(p){var i=a?[t,p,a]:[t,p];e[p]=e.api[p]=d(r,null).apply(null,i)}))}function HookSingular(){var e="h";var t={registry:{}};var a=p.bind(null,t,e);bindApi(a,t,e);return a}function HookCollection(){var e={registry:{}};var t=p.bind(null,e);bindApi(t,e);return t}var o=false;function Hook(){if(!o){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');o=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},5549:e=>{e.exports=addHook;function addHook(e,t,a,p){var r=p;if(!e.registry[a]){e.registry[a]=[]}if(t==="before"){p=function(e,t){return Promise.resolve().then(r.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){p=function(e,t){var a;return Promise.resolve().then(e.bind(null,t)).then((function(e){a=e;return r(a,t)})).then((function(){return a}))}}if(t==="error"){p=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return r(e,t)}))}}e.registry[a].push({hook:p,orig:r})}},4670:e=>{e.exports=register;function register(e,t,a,p){if(typeof a!=="function"){throw new Error("method for before hook must be a function")}if(!p){p={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,a){return register.bind(null,e,a,t,p)}),a)()}return Promise.resolve().then((function(){if(!e.registry[t]){return a(p)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,p)}),a)()}))}},6819:e=>{e.exports=removeHook;function removeHook(e,t,a){if(!e.registry[t]){return}var p=e.registry[t].map((function(e){return e.orig})).indexOf(a);if(p===-1){return}e.registry[t].splice(p,1)}},8932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},3287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); +(()=>{var __webpack_modules__={7757:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const p=a(1514);async function exec(e,t,a){a=a||{};let r="";let i="";a.listeners={stdout:e=>r+=e.toString(),stderr:e=>i+=e.toString()};const s=await(0,p.exec)(e,t,a);return{code:s,stdout:r,stderr:i}}t["default"]=exec},4014:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ChangeStatus=void 0;var a;(function(e){e["Added"]="added";e["Copied"]="copied";e["Deleted"]="deleted";e["Modified"]="modified";e["Renamed"]="renamed";e["Unmerged"]="unmerged"})(a=t.ChangeStatus||(t.ChangeStatus={}))},3707:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;var r=Object.getOwnPropertyDescriptor(t,a);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,p,r)}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Filter=void 0;const d=i(a(1917));const o=s(a(8569));const n=a(4014);const l={dot:true,ignore:[]};class Filter{constructor(e){this.rules={};if(e){this.load(e)}}load(e){const t=d.load(e);if(typeof t!=="object"){this.throwInvalidFormatError("Root element is not an object")}for(const[e,a]of Object.entries(t)){if(typeof e!=="string"){this.throwInvalidFormatError(`Filter rule element at the root key: ${JSON.stringify(e)} must be a string.`)}else if(typeof a!=="string"&&!Array.isArray(a)){this.throwInvalidFormatError(`Filter rules must only be an array or a single string but we got ${JSON.stringify(a)} type: ${typeof a} isarray?: ${Array.isArray(a)}`)}this.rules[e]=this.parseFilterItemYaml(a)}}match(e){const t={};for(const[a,p]of Object.entries(this.rules)){t[a]=e.filter((e=>this.isMatch(e,p)))}return t}isMatch(e,t){return t.some((t=>(t.status===undefined||t.status.includes(e.status))&&t.isMatch(e.filename)))}parseFilterItemYaml(e,t=[]){var a=Object.assign(l);a.ignore=t;if(typeof e==="string"||this.isStringsArray(e)){return[{status:undefined,isMatch:(0,o.default)(e,a)}]}if(Array.isArray(e)){return flat(e.map((e=>this.parseFilterItemYaml(e,t))))}if(typeof e==="object"){var p=Object.keys(e).length;if(p==2&&e.paths_ignore&&e.paths){return this.parseFilterItemYaml(e.paths,e.paths_ignore)}else if(p==1){return Object.entries(e).map((([e,t])=>{if(typeof e!=="string"||typeof t!=="string"&&(!Array.isArray(t)?true:!this.isStringsArray(t))){this.throwInvalidFormatError(`Expected [key:string]= pattern:string | string[], but [${e}:${typeof e}]= ${t}:${typeof t} Where pattern isArray:${Array.isArray(t)} isArrayofStrings:${this.isStringsArray(t)} found.`)}return{status:e.split("|").map((e=>e.trim())).filter((e=>e.length>0)).map((e=>this.isChangeStatus(e)&&e.toLowerCase())),isMatch:(0,o.default)(t,a)}}))}else{this.throwInvalidFormatError(`Expected a filter rule object with keys paths & paths_ignore, or a single key for change status filter. Instead object keys: ${JSON.stringify(Object.keys(e))} found.`)}}this.throwInvalidFormatError(`Unexpected element type '${typeof e}'`)}isStringsArray(e){if(Array.isArray(e)?e.every((e=>typeof e==="string")):false){return true}}isChangeStatus(e){if(Object.values(n.ChangeStatus).includes(e)){return true}this.throwInvalidFormatError(`Change Status Filter Validation: Expected one of ${JSON.stringify(Object.values(n.ChangeStatus))}, instead ${e} found.`)}throwInvalidFormatError(e){throw new Error(`Invalid filter YAML format: ${e}.`)}}t.Filter=Filter;function flat(e){return e.reduce(((e,t)=>e.concat(t)),[])}},3374:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;var r=Object.getOwnPropertyDescriptor(t,a);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,p,r)}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.statusMap=t.isGitSha=t.getShortName=t.getCurrentRef=t.listAllFilesAsAdded=t.parseGitDiffOutput=t.getChangesSinceMergeBase=t.getChangesOnHead=t.getChanges=t.getChangesInLastCommit=t.HEAD=t.NULL_SHA=void 0;const d=s(a(7757));const o=i(a(2186));const n=a(4014);t.NULL_SHA="0000000000000000000000000000000000000000";t.HEAD="HEAD";async function getChangesInLastCommit(){o.startGroup(`Change detection in last commit`);let e="";try{e=(await(0,d.default)("git",["log","--format=","--no-renames","--name-status","-z","-n","1"])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(e)}t.getChangesInLastCommit=getChangesInLastCommit;async function getChanges(e,t){const a=await ensureRefAvailable(e);const p=await ensureRefAvailable(t);o.startGroup(`Change detection ${e}..${t}`);let r="";try{r=(await(0,d.default)("git",["diff","--no-renames","--name-status","-z",`${a}..${p}`])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(r)}t.getChanges=getChanges;async function getChangesOnHead(){o.startGroup(`Change detection on HEAD`);let e="";try{e=(await(0,d.default)("git",["diff","--no-renames","--name-status","-z","HEAD"])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(e)}t.getChangesOnHead=getChangesOnHead;async function getChangesSinceMergeBase(e,t,a){let p;let r;async function hasMergeBase(){if(p===undefined||r===undefined){return false}return(await(0,d.default)("git",["merge-base",p,r],{ignoreReturnCode:true})).code===0}let i=false;o.startGroup(`Searching for merge-base ${e}...${t}`);try{p=await getLocalRef(e);r=await getLocalRef(t);if(!await hasMergeBase()){await(0,d.default)("git",["fetch","--no-tags",`--depth=${a}`,"origin",e,t]);if(p===undefined||r===undefined){p=p!==null&&p!==void 0?p:await getLocalRef(e);r=r!==null&&r!==void 0?r:await getLocalRef(t);if(p===undefined||r===undefined){await(0,d.default)("git",["fetch","--tags","--depth=1","origin",e,t],{ignoreReturnCode:true});p=p!==null&&p!==void 0?p:await getLocalRef(e);r=r!==null&&r!==void 0?r:await getLocalRef(t);if(p===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}if(r===undefined){throw new Error(`Could not determine what is ${t} - fetch works but it's not a branch, tag or commit SHA`)}}}let s=a;let n=await getCommitCount();while(!await hasMergeBase()){s=Math.min(s*2,Number.MAX_SAFE_INTEGER);await(0,d.default)("git",["fetch",`--deepen=${s}`,"origin",e,t]);const a=await getCommitCount();if(a===n){o.info("No more commits were fetched");o.info("Last attempt will be to fetch full history");await(0,d.default)("git",["fetch"]);if(!await hasMergeBase()){i=true}break}n=a}}}finally{o.endGroup()}let s=`${p}...${r}`;if(i){o.warning("No merge base found - change detection will use direct .. comparison");s=`${p}..${r}`}o.startGroup(`Change detection ${s}`);let n="";try{n=(await(0,d.default)("git",["diff","--no-renames","--name-status","-z",s])).stdout}finally{fixStdOutNullTermination();o.endGroup()}return parseGitDiffOutput(n)}t.getChangesSinceMergeBase=getChangesSinceMergeBase;function parseGitDiffOutput(e){const a=e.split("\0").filter((e=>e.length>0));const p=[];for(let e=0;e+1e.length>0)).map((e=>({status:n.ChangeStatus.Added,filename:e})))}t.listAllFilesAsAdded=listAllFilesAsAdded;async function getCurrentRef(){o.startGroup(`Get current git ref`);try{const e=(await(0,d.default)("git",["branch","--show-current"])).stdout.trim();if(e){return e}const a=await(0,d.default)("git",["describe","--tags","--exact-match"],{ignoreReturnCode:true});if(a.code===0){return a.stdout.trim()}return(await(0,d.default)("git",["rev-parse",t.HEAD])).stdout.trim()}finally{o.endGroup()}}t.getCurrentRef=getCurrentRef;function getShortName(e){if(!e)return"";const t="refs/heads/";const a="refs/tags/";if(e.startsWith(t))return e.slice(t.length);if(e.startsWith(a))return e.slice(a.length);return e}t.getShortName=getShortName;function isGitSha(e){return/^[a-z0-9]{40}$/.test(e)}t.isGitSha=isGitSha;async function hasCommit(e){return(await(0,d.default)("git",["cat-file","-e",`${e}^{commit}`],{ignoreReturnCode:true})).code===0}async function getCommitCount(){const e=(await(0,d.default)("git",["rev-list","--count","--all"])).stdout;const t=parseInt(e);return isNaN(t)?0:t}async function getLocalRef(e){if(isGitSha(e)){return await hasCommit(e)?e:undefined}const t=(await(0,d.default)("git",["show-ref",e],{ignoreReturnCode:true})).stdout;const a=t.split(/\r?\n/g).map((e=>e.match(/refs\/(?:(?:heads)|(?:tags)|(?:remotes\/origin))\/(.*)$/))).filter((t=>t!==null&&t[1]===e)).map((e=>{var t;return(t=e===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:""}));if(a.length===0){return undefined}const p=a.find((e=>e.startsWith("refs/remotes/origin/")));if(p){return p}return a[0]}async function ensureRefAvailable(e){o.startGroup(`Ensuring ${e} is fetched from origin`);try{let t=await getLocalRef(e);if(t===undefined){await(0,d.default)("git",["fetch","--depth=1","--no-tags","origin",e]);t=await getLocalRef(e);if(t===undefined){await(0,d.default)("git",["fetch","--depth=1","--tags","origin",e]);t=await getLocalRef(e);if(t===undefined){throw new Error(`Could not determine what is ${e} - fetch works but it's not a branch, tag or commit SHA`)}}}return t}finally{o.endGroup()}}function fixStdOutNullTermination(){o.info("")}t.statusMap={A:n.ChangeStatus.Added,C:n.ChangeStatus.Copied,D:n.ChangeStatus.Deleted,M:n.ChangeStatus.Modified,R:n.ChangeStatus.Renamed,U:n.ChangeStatus.Unmerged}},7402:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.csvEscape=void 0;function csvEscape(e){if(e==="")return e;if(/^[a-zA-Z0-9._+:@%/-]+$/m.test(e)){return e}return`"${e.replace(/"/g,'""')}"`}t.csvEscape=csvEscape},4613:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shellEscape=t.backslashEscape=void 0;function backslashEscape(e){return e.replace(/([^a-zA-Z0-9,._+:@%/-])/gm,"\\$1")}t.backslashEscape=backslashEscape;function shellEscape(e){if(e==="")return e;if(/^[a-zA-Z0-9,._+:@%/-]+$/m.test(e)){return e}if(e.includes("'")){if(/^[a-zA-Z0-9,._+:@%/'\s-]+$/m.test(e)){return`"${e}"`}return e.split("'").map(shellEscape).join("\\'")}return`'${e}'`}t.shellEscape=shellEscape},3109:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;var r=Object.getOwnPropertyDescriptor(t,a);if(!r||("get"in r?!t.__esModule:r.writable||r.configurable)){r={enumerable:true,get:function(){return t[a]}}}Object.defineProperty(e,p,r)}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});const s=i(a(7147));const d=i(a(2186));const o=i(a(5438));const n=a(3707);const l=a(4014);const m=i(a(3374));const u=a(4613);const c=a(7402);async function run(){try{const e=d.getInput("working-directory",{required:false});if(e){process.chdir(e)}const t=d.getInput("files",{required:false});const a=d.getInput("token",{required:false});const p=d.getInput("ref",{required:false});const r=d.getInput("base",{required:false});const i=d.getInput("filters",{required:true});const s=isPathInput(i)?getConfigFileContent(i):i;const o=d.getInput("list-files",{required:false}).toLowerCase()||"none";const l=parseInt(d.getInput("initial-fetch-depth",{required:false}))||10;const m=t?parseFilesInput(t.split(/\r?\n/)):await getChangedFiles(a,r,p,l);if(!isExportFormat(o)){d.setFailed(`Input parameter 'list-files' is set to invalid value '${o}'`);return}const u=new n.Filter(s);d.info(`Detected ${m.length} changed files`);const c=u.match(m);exportResults(c,o)}catch(e){let t;if(e instanceof Error)t=e.message;else t=String(e);d.setFailed(t)}}function parseFilesInput(e){const t=[];for(let i=0;i+10;d.startGroup(`Filter ${p} = ${e}`);if(r.length>0){a.push(p);d.info("Matching files:");for(const e of r){d.info(`${e.filename} [${e.status}]`)}}else{d.info("Matching files: none")}d.setOutput(p,e);d.setOutput(`${p}_count`,r.length);if(t!=="none"){const e=serializeExport(r,t);d.setOutput(`${p}_files`,e)}d.endGroup()}if(e["changes"]===undefined){const e=JSON.stringify(a);d.info(`Changes output set to ${e}`);d.setOutput("changes",e)}else{d.info("Cannot set changes output variable - name already used by filter output")}}function serializeExport(e,t){const a=e.map((e=>e.filename));switch(t){case"csv":return a.map(c.csvEscape).join(",");case"json":return JSON.stringify(a);case"escape":return a.map(u.backslashEscape).join(" ");case"shell":return a.map(u.shellEscape).join(" ");default:return""}}function isExportFormat(e){return["none","csv","shell","json","escape"].includes(e)}run()},7351:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issue=t.issueCommand=void 0;const s=i(a(2037));const d=a(5278);function issueCommand(e,t,a){const p=new Command(e,t,a);process.stdout.write(p.toString()+s.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const o="::";class Command{constructor(e,t,a){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=a}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const p=this.properties[a];if(p){if(t){t=false}else{e+=","}e+=`${a}=${escapeProperty(p)}`}}}}e+=`${o}${escapeData(this.message)}`;return e}}function escapeData(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return d.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getIDToken=t.getState=t.saveState=t.group=t.endGroup=t.startGroup=t.info=t.notice=t.warning=t.error=t.debug=t.isDebug=t.setFailed=t.setCommandEcho=t.setOutput=t.getBooleanInput=t.getMultilineInput=t.getInput=t.addPath=t.setSecret=t.exportVariable=t.ExitCode=void 0;const d=a(7351);const o=a(717);const n=a(5278);const l=i(a(2037));const m=i(a(1017));const u=a(5840);const c=a(8041);var h;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(h=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const a=n.toCommandValue(t);process.env[e]=a;const p=process.env["GITHUB_ENV"]||"";if(p){const t=`ghadelimiter_${u.v4()}`;if(e.includes(t)){throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`)}if(a.includes(t)){throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`)}const p=`${e}<<${t}${l.EOL}${a}${l.EOL}${t}`;o.issueCommand("ENV",p)}else{d.issueCommand("set-env",{name:e},a)}}t.exportVariable=exportVariable;function setSecret(e){d.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){o.issueCommand("PATH",e)}else{d.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const a=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!a){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return a}return a.trim()}t.getInput=getInput;function getMultilineInput(e,t){const a=getInput(e,t).split("\n").filter((e=>e!==""));return a}t.getMultilineInput=getMultilineInput;function getBooleanInput(e,t){const a=["true","True","TRUE"];const p=["false","False","FALSE"];const r=getInput(e,t);if(a.includes(r))return true;if(p.includes(r))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}t.getBooleanInput=getBooleanInput;function setOutput(e,t){process.stdout.write(l.EOL);d.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){d.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=h.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){d.issueCommand("debug",{},e)}t.debug=debug;function error(e,t={}){d.issueCommand("error",n.toCommandProperties(t),e instanceof Error?e.toString():e)}t.error=error;function warning(e,t={}){d.issueCommand("warning",n.toCommandProperties(t),e instanceof Error?e.toString():e)}t.warning=warning;function notice(e,t={}){d.issueCommand("notice",n.toCommandProperties(t),e instanceof Error?e.toString():e)}t.notice=notice;function info(e){process.stdout.write(e+l.EOL)}t.info=info;function startGroup(e){d.issue("group",e)}t.startGroup=startGroup;function endGroup(){d.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return s(this,void 0,void 0,(function*(){startGroup(e);let a;try{a=yield t()}finally{endGroup()}return a}))}t.group=group;function saveState(e,t){d.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState;function getIDToken(e){return s(this,void 0,void 0,(function*(){return yield c.OidcClient.getIDToken(e)}))}t.getIDToken=getIDToken;var v=a(1327);Object.defineProperty(t,"summary",{enumerable:true,get:function(){return v.summary}});var g=a(1327);Object.defineProperty(t,"markdownSummary",{enumerable:true,get:function(){return g.markdownSummary}});var w=a(2981);Object.defineProperty(t,"toPosixPath",{enumerable:true,get:function(){return w.toPosixPath}});Object.defineProperty(t,"toWin32Path",{enumerable:true,get:function(){return w.toWin32Path}});Object.defineProperty(t,"toPlatformPath",{enumerable:true,get:function(){return w.toPlatformPath}})},717:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.issueCommand=void 0;const s=i(a(7147));const d=i(a(2037));const o=a(5278);function issueCommand(e,t){const a=process.env[`GITHUB_${e}`];if(!a){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!s.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}s.appendFileSync(a,`${o.toCommandValue(t)}${d.EOL}`,{encoding:"utf8"})}t.issueCommand=issueCommand},8041:function(e,t,a){"use strict";var p=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.OidcClient=void 0;const r=a(6255);const i=a(5526);const s=a(2186);class OidcClient{static createHttpClient(e=true,t=10){const a={allowRetries:e,maxRetries:t};return new r.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){var t;return p(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const p=yield a.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)}));const r=(t=p.result)===null||t===void 0?void 0:t.value;if(!r){throw new Error("Response json body do not have ID Token field")}return r}))}static getIDToken(e){return p(this,void 0,void 0,(function*(){try{let t=OidcClient.getIDTokenUrl();if(e){const a=encodeURIComponent(e);t=`${t}&audience=${a}`}s.debug(`ID token url is ${t}`);const a=yield OidcClient.getCall(t);s.setSecret(a);return a}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}t.OidcClient=OidcClient},2981:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.toPlatformPath=t.toWin32Path=t.toPosixPath=void 0;const s=i(a(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}t.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}t.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,s.sep)}t.toPlatformPath=toPlatformPath},1327:function(e,t,a){"use strict";var p=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.summary=t.markdownSummary=t.SUMMARY_DOCS_URL=t.SUMMARY_ENV_VAR=void 0;const r=a(2037);const i=a(7147);const{access:s,appendFile:d,writeFile:o}=i.promises;t.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";t.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return p(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[t.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${t.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield s(e,i.constants.R_OK|i.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,a={}){const p=Object.entries(a).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${p}>`}return`<${e}${p}>${t}`}write(e){return p(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const a=yield this.filePath();const p=t?o:d;yield p(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return p(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,t){const a=Object.assign({},t&&{lang:t});const p=this.wrap("pre",this.wrap("code",e),a);return this.addRaw(p).addEOL()}addList(e,t=false){const a=t?"ol":"ul";const p=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(a,p);return this.addRaw(r).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:a,colspan:p,rowspan:r}=e;const i=t?"th":"td";const s=Object.assign(Object.assign({},p&&{colspan:p}),r&&{rowspan:r});return this.wrap(i,a,s)})).join("");return this.wrap("tr",t)})).join("");const a=this.wrap("table",t);return this.addRaw(a).addEOL()}addDetails(e,t){const a=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(a).addEOL()}addImage(e,t,a){const{width:p,height:r}=a||{};const i=Object.assign(Object.assign({},p&&{width:p}),r&&{height:r});const s=this.wrap("img",null,Object.assign({src:e,alt:t},i));return this.addRaw(s).addEOL()}addHeading(e,t){const a=`h${t}`;const p=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const r=this.wrap(p,e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const a=Object.assign({},t&&{cite:t});const p=this.wrap("blockquote",e,a);return this.addRaw(p).addEOL()}addLink(e,t){const a=this.wrap("a",e,{href:t});return this.addRaw(a).addEOL()}}const n=new Summary;t.markdownSummary=n;t.summary=n},5278:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},1514:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.getExecOutput=t.exec=void 0;const d=a(1576);const o=i(a(8159));function exec(e,t,a){return s(this,void 0,void 0,(function*(){const p=o.argStringToArray(e);if(p.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const r=p[0];t=p.slice(1).concat(t||[]);const i=new o.ToolRunner(r,t,a);return i.exec()}))}t.exec=exec;function getExecOutput(e,t,a){var p,r;return s(this,void 0,void 0,(function*(){let i="";let s="";const o=new d.StringDecoder("utf8");const n=new d.StringDecoder("utf8");const l=(p=a===null||a===void 0?void 0:a.listeners)===null||p===void 0?void 0:p.stdout;const m=(r=a===null||a===void 0?void 0:a.listeners)===null||r===void 0?void 0:r.stderr;const stdErrListener=e=>{s+=n.write(e);if(m){m(e)}};const stdOutListener=e=>{i+=o.write(e);if(l){l(e)}};const u=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const c=yield exec(e,t,Object.assign(Object.assign({},a),{listeners:u}));i+=o.end();s+=n.end();return{exitCode:c,stdout:i,stderr:s}}))}t.getExecOutput=getExecOutput},8159:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.argStringToArray=t.ToolRunner=void 0;const d=i(a(2037));const o=i(a(2361));const n=i(a(2081));const l=i(a(1017));const m=i(a(7436));const u=i(a(1962));const c=a(9512);const h=process.platform==="win32";class ToolRunner extends o.EventEmitter{constructor(e,t,a){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=a||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const a=this._getSpawnFileName();const p=this._getSpawnArgs(e);let r=t?"":"[command]";if(h){if(this._isCmdFile()){r+=a;for(const e of p){r+=` ${e}`}}else if(e.windowsVerbatimArguments){r+=`"${a}"`;for(const e of p){r+=` ${e}`}}else{r+=this._windowsQuoteCmdArg(a);for(const e of p){r+=` ${this._windowsQuoteCmdArg(e)}`}}}else{r+=a;for(const e of p){r+=` ${e}`}}return r}_processLineBuffer(e,t,a){try{let p=t+e.toString();let r=p.indexOf(d.EOL);while(r>-1){const e=p.substring(0,r);a(e);p=p.substring(r+d.EOL.length);r=p.indexOf(d.EOL)}return p}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if(h){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if(h){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){t+=" ";t+=e.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const p of e){if(t.some((e=>e===p))){a=true;break}}if(!a){return e}let p='"';let r=true;for(let t=e.length;t>0;t--){p+=e[t-1];if(r&&e[t-1]==="\\"){p+="\\"}else if(e[t-1]==='"'){r=true;p+='"'}else{r=false}}p+='"';return p.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let a=true;for(let p=e.length;p>0;p--){t+=e[p-1];if(a&&e[p-1]==="\\"){t+="\\"}else if(e[p-1]==='"'){a=true;t+="\\"}else{a=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const a={};a.cwd=e.cwd;a.env=e.env;a["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){a.argv0=`"${t}"`}return a}exec(){return s(this,void 0,void 0,(function*(){if(!u.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))){this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield m.which(this.toolPath,true);return new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const a=this._cloneExecOptions(this.options);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+d.EOL)}const p=new ExecState(a,this.toolPath);p.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield u.exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const r=this._getSpawnFileName();const i=n.spawn(r,this._getSpawnArgs(a),this._getSpawnOptions(this.options,r));let s="";if(i.stdout){i.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!a.silent&&a.outStream){a.outStream.write(e)}s=this._processLineBuffer(e,s,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let o="";if(i.stderr){i.stderr.on("data",(e=>{p.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!a.silent&&a.errStream&&a.outStream){const t=a.failOnStdErr?a.errStream:a.outStream;t.write(e)}o=this._processLineBuffer(e,o,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}i.on("error",(e=>{p.processError=e.message;p.processExited=true;p.processClosed=true;p.CheckComplete()}));i.on("exit",(e=>{p.processExitCode=e;p.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);p.CheckComplete()}));i.on("close",(e=>{p.processExitCode=e;p.processExited=true;p.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);p.CheckComplete()}));p.on("done",((a,p)=>{if(s.length>0){this.emit("stdline",s)}if(o.length>0){this.emit("errline",o)}i.removeAllListeners();if(a){t(a)}else{e(p)}}));if(this.options.input){if(!i.stdin){throw new Error("child process missing stdin")}i.stdin.end(this.options.input)}}))))}))}}t.ToolRunner=ToolRunner;function argStringToArray(e){const t=[];let a=false;let p=false;let r="";function append(e){if(p&&e!=='"'){r+="\\"}r+=e;p=false}for(let i=0;i0){t.push(r);r=""}continue}append(s)}if(r.length>0){t.push(r.trim())}return t}t.argStringToArray=argStringToArray;class ExecState extends o.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=c.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},4087:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Context=void 0;const p=a(7147);const r=a(2037);class Context{constructor(){var e,t,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(p.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(p.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${r.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}t.Context=Context},5438:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokit=t.context=void 0;const s=i(a(4087));const d=a(3030);t.context=new s.Context;function getOctokit(e,t){return new d.GitHub(d.getOctokitOptions(e,t))}t.getOctokit=getOctokit},7914:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getApiBaseUrl=t.getProxyAgent=t.getAuthString=void 0;const s=i(a(6255));function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}t.getAuthString=getAuthString;function getProxyAgent(e){const t=new s.HttpClient;return t.getAgent(e)}t.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}t.getApiBaseUrl=getApiBaseUrl},3030:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.getOctokitOptions=t.GitHub=t.context=void 0;const s=i(a(4087));const d=i(a(7914));const o=a(6762);const n=a(3044);const l=a(4193);t.context=new s.Context;const m=d.getApiBaseUrl();const u={baseUrl:m,request:{agent:d.getProxyAgent(m)}};t.GitHub=o.Octokit.plugin(n.restEndpointMethods,l.paginateRest).defaults(u);function getOctokitOptions(e,t){const a=Object.assign({},t||{});const p=d.getAuthString(e,a);if(p){a.auth=p}return a}t.getOctokitOptions=getOctokitOptions},5526:function(e,t){"use strict";var a=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.PersonalAccessTokenCredentialHandler=t.BearerCredentialHandler=t.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}t.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.isHttps=t.HttpClientResponse=t.HttpClientError=t.getProxyUrl=t.MediaTypes=t.Headers=t.HttpCodes=void 0;const d=i(a(3685));const o=i(a(5687));const n=i(a(9835));const l=i(a(4294));var m;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(m=t.HttpCodes||(t.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=t.Headers||(t.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=t.MediaTypes||(t.MediaTypes={}));function getProxyUrl(e){const t=n.getProxyUrl(new URL(e));return t?t.href:""}t.getProxyUrl=getProxyUrl;const h=[m.MovedPermanently,m.ResourceMoved,m.SeeOther,m.TemporaryRedirect,m.PermanentRedirect];const v=[m.BadGateway,m.ServiceUnavailable,m.GatewayTimeout];const g=["OPTIONS","GET","DELETE","HEAD"];const w=10;const _=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return s(this,void 0,void 0,(function*(){return new Promise((e=>s(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}t.isHttps=isHttps;class HttpClient{constructor(e,t,a){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=e;this.handlers=t||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(e,t){return s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,a){return s(this,void 0,void 0,(function*(){return this.request("POST",e,t,a||{})}))}patch(e,t,a){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,a||{})}))}put(e,t,a){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,t,a||{})}))}head(e,t){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,a,p){return s(this,void 0,void 0,(function*(){return this.request(e,t,a,p)}))}getJson(e,t={}){return s(this,void 0,void 0,(function*(){t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);const a=yield this.get(e,t);return this._processResponse(a,this.requestOptions)}))}postJson(e,t,a={}){return s(this,void 0,void 0,(function*(){const p=JSON.stringify(t,null,2);a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);a[u.ContentType]=this._getExistingOrDefaultHeader(a,u.ContentType,c.ApplicationJson);const r=yield this.post(e,p,a);return this._processResponse(r,this.requestOptions)}))}putJson(e,t,a={}){return s(this,void 0,void 0,(function*(){const p=JSON.stringify(t,null,2);a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);a[u.ContentType]=this._getExistingOrDefaultHeader(a,u.ContentType,c.ApplicationJson);const r=yield this.put(e,p,a);return this._processResponse(r,this.requestOptions)}))}patchJson(e,t,a={}){return s(this,void 0,void 0,(function*(){const p=JSON.stringify(t,null,2);a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);a[u.ContentType]=this._getExistingOrDefaultHeader(a,u.ContentType,c.ApplicationJson);const r=yield this.patch(e,p,a);return this._processResponse(r,this.requestOptions)}))}request(e,t,a,p){return s(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(t);let i=this._prepareRequest(e,r,p);const s=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let d=0;let o;do{o=yield this.requestRaw(i,a);if(o&&o.message&&o.message.statusCode===m.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(o)){e=t;break}}if(e){return e.handleAuthentication(this,i,a)}else{return o}}let t=this._maxRedirects;while(o.message.statusCode&&h.includes(o.message.statusCode)&&this._allowRedirects&&t>0){const s=o.message.headers["location"];if(!s){break}const d=new URL(s);if(r.protocol==="https:"&&r.protocol!==d.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield o.readBody();if(d.hostname!==r.hostname){for(const e in p){if(e.toLowerCase()==="authorization"){delete p[e]}}}i=this._prepareRequest(e,d,p);o=yield this.requestRaw(i,a);t--}if(!o.message.statusCode||!v.includes(o.message.statusCode)){return o}d+=1;if(d{function callbackForResult(e,t){if(e){p(e)}else if(!t){p(new Error("Unknown error"))}else{a(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,a){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let p=false;function handleResult(e,t){if(!p){p=true;a(e,t)}}const r=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let i;r.on("socket",(e=>{i=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(i){i.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){r.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){r.end()}));t.pipe(r)}else{r.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,a){const p={};p.parsedUrl=t;const r=p.parsedUrl.protocol==="https:";p.httpModule=r?o:d;const i=r?443:80;p.options={};p.options.host=p.parsedUrl.hostname;p.options.port=p.parsedUrl.port?parseInt(p.parsedUrl.port):i;p.options.path=(p.parsedUrl.pathname||"")+(p.parsedUrl.search||"");p.options.method=e;p.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){p.options.headers["user-agent"]=this.userAgent}p.options.agent=this._getAgent(p.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(p.options)}}return p}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,a){let p;if(this.requestOptions&&this.requestOptions.headers){p=lowercaseKeys(this.requestOptions.headers)[t]}return e[t]||p||a}_getAgent(e){let t;const a=n.getProxyUrl(e);const p=a&&a.hostname;if(this._keepAlive&&p){t=this._proxyAgent}if(this._keepAlive&&!p){t=this._agent}if(t){return t}const r=e.protocol==="https:";let i=100;if(this.requestOptions){i=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(a&&a.hostname){const e={maxSockets:i,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let p;const s=a.protocol==="https:";if(r){p=s?l.httpsOverHttps:l.httpsOverHttp}else{p=s?l.httpOverHttps:l.httpOverHttp}t=p(e);this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:i};t=r?new o.Agent(e):new d.Agent(e);this._agent=t}if(!t){t=r?o.globalAgent:d.globalAgent}if(r&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){e=Math.min(w,e);const t=_*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((a,p)=>s(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const i={statusCode:r,result:null,headers:{}};if(r===m.NotFound){a(i)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let s;let d;try{d=yield e.readBody();if(d&&d.length>0){if(t&&t.deserializeDates){s=JSON.parse(d,dateTimeDeserializer)}else{s=JSON.parse(d)}i.result=s}i.headers=e.message.headers}catch(e){}if(r>299){let e;if(s&&s.message){e=s.message}else if(d&&d.length>0){e=d}else{e=`Failed request: (${r})`}const t=new HttpClientError(e,r);t.result=i.result;p(t)}else{a(i)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,a)=>(t[a.toLowerCase()]=e[a],t)),{})},9835:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const a=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){return new URL(a)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let a;if(e.port){a=Number(e.port)}else if(e.protocol==="http:"){a=80}else if(e.protocol==="https:"){a=443}const p=[e.hostname.toUpperCase()];if(typeof a==="number"){p.push(`${p[0]}:${a}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(p.some((t=>t===e))){return true}}return false}t.checkBypass=checkBypass},1962:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};var d;Object.defineProperty(t,"__esModule",{value:true});t.getCmdPath=t.tryGetExecutablePath=t.isRooted=t.isDirectory=t.exists=t.IS_WINDOWS=t.unlink=t.symlink=t.stat=t.rmdir=t.rename=t.readlink=t.readdir=t.mkdir=t.lstat=t.copyFile=t.chmod=void 0;const o=i(a(7147));const n=i(a(1017));d=o.promises,t.chmod=d.chmod,t.copyFile=d.copyFile,t.lstat=d.lstat,t.mkdir=d.mkdir,t.readdir=d.readdir,t.readlink=d.readlink,t.rename=d.rename,t.rmdir=d.rmdir,t.stat=d.stat,t.symlink=d.symlink,t.unlink=d.unlink;t.IS_WINDOWS=process.platform==="win32";function exists(e){return s(this,void 0,void 0,(function*(){try{yield t.stat(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}t.exists=exists;function isDirectory(e,a=false){return s(this,void 0,void 0,(function*(){const p=a?yield t.stat(e):yield t.lstat(e);return p.isDirectory()}))}t.isDirectory=isDirectory;function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(t.IS_WINDOWS){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}t.isRooted=isRooted;function tryGetExecutablePath(e,a){return s(this,void 0,void 0,(function*(){let p=undefined;try{p=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(p&&p.isFile()){if(t.IS_WINDOWS){const t=n.extname(e).toUpperCase();if(a.some((e=>e.toUpperCase()===t))){return e}}else{if(isUnixExecutable(p)){return e}}}const r=e;for(const i of a){e=r+i;p=undefined;try{p=yield t.stat(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(p&&p.isFile()){if(t.IS_WINDOWS){try{const a=n.dirname(e);const p=n.basename(e).toUpperCase();for(const r of yield t.readdir(a)){if(p===r.toUpperCase()){e=n.join(a,r);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(p)){return e}}}}return""}))}t.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(e){e=e||"";if(t.IS_WINDOWS){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&e.gid===process.getgid()||(e.mode&64)>0&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}t.getCmdPath=getCmdPath},7436:function(e,t,a){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,t,a,p){if(p===undefined)p=a;Object.defineProperty(e,p,{enumerable:true,get:function(){return t[a]}})}:function(e,t,a,p){if(p===undefined)p=a;e[p]=t[a]});var r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var a in e)if(a!=="default"&&Object.hasOwnProperty.call(e,a))p(t,e,a);r(t,e);return t};var s=this&&this.__awaiter||function(e,t,a,p){function adopt(e){return e instanceof a?e:new a((function(t){t(e)}))}return new(a||(a=Promise))((function(a,r){function fulfilled(e){try{step(p.next(e))}catch(e){r(e)}}function rejected(e){try{step(p["throw"](e))}catch(e){r(e)}}function step(e){e.done?a(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.findInPath=t.which=t.mkdirP=t.rmRF=t.mv=t.cp=void 0;const d=a(9491);const o=i(a(2081));const n=i(a(1017));const l=a(3837);const m=i(a(1962));const u=l.promisify(o.exec);const c=l.promisify(o.execFile);function cp(e,t,a={}){return s(this,void 0,void 0,(function*(){const{force:p,recursive:r,copySourceDirectory:i}=readCopyOptions(a);const s=(yield m.exists(t))?yield m.stat(t):null;if(s&&s.isFile()&&!p){return}const d=s&&s.isDirectory()&&i?n.join(t,n.basename(e)):t;if(!(yield m.exists(e))){throw new Error(`no such file or directory: ${e}`)}const o=yield m.stat(e);if(o.isDirectory()){if(!r){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,d,0,p)}}else{if(n.relative(e,d)===""){throw new Error(`'${d}' and '${e}' are the same file`)}yield copyFile(e,d,p)}}))}t.cp=cp;function mv(e,t,a={}){return s(this,void 0,void 0,(function*(){if(yield m.exists(t)){let p=true;if(yield m.isDirectory(t)){t=n.join(t,n.basename(e));p=yield m.exists(t)}if(p){if(a.force==null||a.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(n.dirname(t));yield m.rename(e,t)}))}t.mv=mv;function rmRF(e){return s(this,void 0,void 0,(function*(){if(m.IS_WINDOWS){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}try{const t=m.getCmdPath();if(yield m.isDirectory(e,true)){yield u(`${t} /s /c "rd /s /q "%inputPath%""`,{env:{inputPath:e}})}else{yield u(`${t} /s /c "del /f /a "%inputPath%""`,{env:{inputPath:e}})}}catch(e){if(e.code!=="ENOENT")throw e}try{yield m.unlink(e)}catch(e){if(e.code!=="ENOENT")throw e}}else{let t=false;try{t=yield m.isDirectory(e)}catch(e){if(e.code!=="ENOENT")throw e;return}if(t){yield c(`rm`,[`-rf`,`${e}`])}else{yield m.unlink(e)}}}))}t.rmRF=rmRF;function mkdirP(e){return s(this,void 0,void 0,(function*(){d.ok(e,"a path argument must be provided");yield m.mkdir(e,{recursive:true})}))}t.mkdirP=mkdirP;function which(e,t){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(m.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const a=yield findInPath(e);if(a&&a.length>0){return a[0]}return""}))}t.which=which;function findInPath(e){return s(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(m.IS_WINDOWS&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(n.delimiter)){if(e){t.push(e)}}}if(m.isRooted(e)){const a=yield m.tryGetExecutablePath(e,t);if(a){return[a]}return[]}if(e.includes(n.sep)){return[]}const a=[];if(process.env.PATH){for(const e of process.env.PATH.split(n.delimiter)){if(e){a.push(e)}}}const p=[];for(const r of a){const a=yield m.tryGetExecutablePath(n.join(r,e),t);if(a){p.push(a)}}return p}))}t.findInPath=findInPath;function readCopyOptions(e){const t=e.force==null?true:e.force;const a=Boolean(e.recursive);const p=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:a,copySourceDirectory:p}}function cpDirRecursive(e,t,a,p){return s(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(t);const r=yield m.readdir(e);for(const i of r){const r=`${e}/${i}`;const s=`${t}/${i}`;const d=yield m.lstat(r);if(d.isDirectory()){yield cpDirRecursive(r,s,a,p)}else{yield copyFile(r,s,p)}}yield m.chmod(t,(yield m.stat(e)).mode)}))}function copyFile(e,t,a){return s(this,void 0,void 0,(function*(){if((yield m.lstat(e)).isSymbolicLink()){try{yield m.lstat(t);yield m.unlink(t)}catch(e){if(e.code==="EPERM"){yield m.chmod(t,"0666");yield m.unlink(t)}}const a=yield m.readlink(e);yield m.symlink(a,t,m.IS_WINDOWS?"junction":null)}else if(!(yield m.exists(t))||a){yield m.copyFile(e,t)}}))}},334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a=/^v1\./;const p=/^ghs_/;const r=/^ghu_/;async function auth(e){const t=e.split(/\./).length===3;const i=a.test(e)||p.test(e);const s=r.test(e);const d=t?"app":i?"installation":s?"user-to-server":"oauth";return{type:"token",token:e,tokenType:d}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,a,p){const r=t.endpoint.merge(a,p);r.headers.authorization=withAuthorizationPrefix(e);return t(r)}const i=function createTokenAuth(e){if(!e){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof e!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=i},6762:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var p=a(5030);var r=a(3682);var i=a(6234);var s=a(8467);var d=a(334);function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var a={};var p=Object.keys(e);var r,i;for(i=0;i=0)continue;a[r]=e[r]}return a}function _objectWithoutProperties(e,t){if(e==null)return{};var a=_objectWithoutPropertiesLoose(e,t);var p,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0)continue;if(!Object.prototype.propertyIsEnumerable.call(e,p))continue;a[p]=e[p]}}return a}const o="3.6.0";const n=["authStrategy"];class Octokit{constructor(e={}){const t=new r.Collection;const a={baseUrl:i.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=[e.userAgent,`octokit-core.js/${o} ${p.getUserAgent()}`].filter(Boolean).join(" ");if(e.baseUrl){a.baseUrl=e.baseUrl}if(e.previews){a.mediaType.previews=e.previews}if(e.timeZone){a.headers["time-zone"]=e.timeZone}this.request=i.request.defaults(a);this.graphql=s.withCustomRequest(this.request).defaults(a);this.log=Object.assign({debug:()=>{},info:()=>{},warn:console.warn.bind(console),error:console.error.bind(console)},e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=d.createTokenAuth(e.auth);t.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a}=e,p=_objectWithoutProperties(e,n);const r=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:p},e.auth));t.wrap("request",r.hook);this.auth=r}const l=this.constructor;l.plugins.forEach((t=>{Object.assign(this,t(this,e))}))}static defaults(e){const t=class extends(this){constructor(...t){const a=t[0]||{};if(typeof e==="function"){super(e(a));return}super(Object.assign({},e,a,a.userAgent&&e.userAgent?{userAgent:`${a.userAgent} ${e.userAgent}`}:null))}};return t}static plugin(...e){var t;const a=this.plugins;const p=(t=class extends(this){},t.plugins=a.concat(e.filter((e=>!a.includes(e)))),t);return p}}Octokit.VERSION=o;Octokit.plugins=[];t.Octokit=Octokit},9440:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var p=a(3287);var r=a(5030);function lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,a)=>{t[a.toLowerCase()]=e[a];return t}),{})}function mergeDeep(e,t){const a=Object.assign({},e);Object.keys(t).forEach((r=>{if(p.isPlainObject(t[r])){if(!(r in e))Object.assign(a,{[r]:t[r]});else a[r]=mergeDeep(e[r],t[r])}else{Object.assign(a,{[r]:t[r]})}}));return a}function removeUndefinedProperties(e){for(const t in e){if(e[t]===undefined){delete e[t]}}return e}function merge(e,t,a){if(typeof t==="string"){let[e,p]=t.split(" ");a=Object.assign(p?{method:e,url:p}:{url:e},a)}else{a=Object.assign({},t)}a.headers=lowercaseKeys(a.headers);removeUndefinedProperties(a);removeUndefinedProperties(a.headers);const p=mergeDeep(e||{},a);if(e&&e.mediaType.previews.length){p.mediaType.previews=e.mediaType.previews.filter((e=>!p.mediaType.previews.includes(e))).concat(p.mediaType.previews)}p.mediaType.previews=p.mediaType.previews.map((e=>e.replace(/-preview/,"")));return p}function addQueryParameters(e,t){const a=/\?/.test(e)?"&":"?";const p=Object.keys(t);if(p.length===0){return e}return e+a+p.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}const i=/\{[^}]+\}/g;function removeNonChars(e){return e.replace(/^\W+|\W+$/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(i);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){return Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,a)=>{t[a]=e[a];return t}),{})}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,a){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(a){return encodeUnreserved(a)+"="+t}else{return t}}function isDefined(e){return e!==undefined&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,a,p){var r=e[a],i=[];if(isDefined(r)&&r!==""){if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){r=r.toString();if(p&&p!=="*"){r=r.substring(0,parseInt(p,10))}i.push(encodeValue(t,r,isKeyOperator(t)?a:""))}else{if(p==="*"){if(Array.isArray(r)){r.filter(isDefined).forEach((function(e){i.push(encodeValue(t,e,isKeyOperator(t)?a:""))}))}else{Object.keys(r).forEach((function(e){if(isDefined(r[e])){i.push(encodeValue(t,r[e],e))}}))}}else{const e=[];if(Array.isArray(r)){r.filter(isDefined).forEach((function(a){e.push(encodeValue(t,a))}))}else{Object.keys(r).forEach((function(a){if(isDefined(r[a])){e.push(encodeUnreserved(a));e.push(encodeValue(t,r[a].toString()))}}))}if(isKeyOperator(t)){i.push(encodeUnreserved(a)+"="+e.join(","))}else if(e.length!==0){i.push(e.join(","))}}}}else{if(t===";"){if(isDefined(r)){i.push(encodeUnreserved(a))}}else if(r===""&&(t==="&"||t==="?")){i.push(encodeUnreserved(a)+"=")}else if(r===""){i.push("")}}return i}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var a=["+","#",".","/",";","?","&"];return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,p,r){if(p){let e="";const r=[];if(a.indexOf(p.charAt(0))!==-1){e=p.charAt(0);p=p.substr(1)}p.split(/,/g).forEach((function(a){var p=/([^:\*]*)(?::(\d+)|(\*))?/.exec(a);r.push(getValues(t,e,p[1],p[2]||p[3]))}));if(e&&e!=="+"){var i=",";if(e==="?"){i="&"}else if(e!=="#"){i=e}return(r.length!==0?e:"")+r.join(i)}else{return r.join(",")}}else{return encodeReserved(r)}}))}function parse(e){let t=e.method.toUpperCase();let a=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let p=Object.assign({},e.headers);let r;let i=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const s=extractUrlVariableNames(a);a=parseUrl(a).expand(i);if(!/^http/.test(a)){a=e.baseUrl+a}const d=Object.keys(e).filter((e=>s.includes(e))).concat("baseUrl");const o=omit(i,d);const n=/application\/octet-stream/i.test(p.accept);if(!n){if(e.mediaType.format){p.accept=p.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(e.mediaType.previews.length){const t=p.accept.match(/[\w-]+(?=-preview)/g)||[];p.accept=t.concat(e.mediaType.previews).map((t=>{const a=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${a}`})).join(",")}}if(["GET","HEAD"].includes(t)){a=addQueryParameters(a,o)}else{if("data"in o){r=o.data}else{if(Object.keys(o).length){r=o}else{p["content-length"]=0}}}if(!p["content-type"]&&typeof r!=="undefined"){p["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof r==="undefined"){r=""}return Object.assign({method:t,url:a,headers:p},typeof r!=="undefined"?{body:r}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,a){return parse(merge(e,t,a))}function withDefaults(e,t){const a=merge(e,t);const p=endpointWithDefaults.bind(null,a);return Object.assign(p,{DEFAULTS:a,defaults:withDefaults.bind(null,a),merge:merge.bind(null,a),parse:parse})}const s="6.0.12";const d=`octokit-endpoint.js/${s} ${r.getUserAgent()}`;const o={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":d},mediaType:{format:"",previews:[]}};const n=withDefaults(null,o);t.endpoint=n},8467:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var p=a(6234);var r=a(5030);const i="4.8.0";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}class GraphqlResponseError extends Error{constructor(e,t,a){super(_buildMessageForResponseErrors(a));this.request=e;this.headers=t;this.response=a;this.name="GraphqlResponseError";this.errors=a.errors;this.data=a.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}}const s=["method","baseUrl","url","headers","request","query","mediaType"];const d=["query","method","url"];const o=/\/api\/v3\/?$/;function graphql(e,t,a){if(a){if(typeof t==="string"&&"query"in a){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in a){if(!d.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const p=typeof t==="string"?Object.assign({query:t},a):t;const r=Object.keys(p).reduce(((e,t)=>{if(s.includes(t)){e[t]=p[t];return e}if(!e.variables){e.variables={}}e.variables[t]=p[t];return e}),{});const i=p.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(o.test(i)){r.url=i.replace(o,"/api/graphql")}return e(r).then((e=>{if(e.data.errors){const t={};for(const a of Object.keys(e.headers)){t[a]=e.headers[a]}throw new GraphqlResponseError(r,t,e.data)}return e.data.data}))}function withDefaults(e,t){const a=e.defaults(t);const newApi=(e,t)=>graphql(a,e,t);return Object.assign(newApi,{defaults:withDefaults.bind(null,a),endpoint:p.request.endpoint})}const n=withDefaults(p.request,{headers:{"user-agent":`octokit-graphql.js/${i} ${r.getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return withDefaults(e,{method:"POST",url:"/graphql"})}t.GraphqlResponseError=GraphqlResponseError;t.graphql=n;t.withCustomRequest=withCustomRequest},4193:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const a="2.21.3";function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);t&&(p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,p)}return a}function _objectSpread2(e){for(var t=1;t({async next(){if(!d)return{done:true};try{const e=await r({method:i,url:d,headers:s});const t=normalizePaginatedListResponse(e);d=((t.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:t}}catch(e){if(e.status!==409)throw e;d="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,a,p){if(typeof a==="function"){p=a;a=undefined}return gather(e,[],iterator(e,t,a)[Symbol.asyncIterator](),p)}function gather(e,t,a,p){return a.next().then((r=>{if(r.done){return t}let i=false;function done(){i=true}t=t.concat(p?p(r.value,done):r.value.data);if(i){return t}return gather(e,t,a,p)}))}const p=Object.assign(paginate,{iterator:iterator});const r=["GET /app/hook/deliveries","GET /app/installations","GET /applications/grants","GET /authorizations","GET /enterprises/{enterprise}/actions/permissions/organizations","GET /enterprises/{enterprise}/actions/runner-groups","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations","GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners","GET /enterprises/{enterprise}/actions/runners","GET /enterprises/{enterprise}/audit-log","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /enterprises/{enterprise}/settings/billing/advanced-security","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/audit-log","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/credential-authorizations","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/external-groups","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/settings/billing/advanced-security","GET /orgs/{org}/team-sync/groups","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/git/matching-refs/{ref}","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return r.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=a;t.composePaginateRest=p;t.isPaginatingEndpoint=isPaginatingEndpoint;t.paginateRest=paginateRest;t.paginatingEndpoints=r},3044:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function ownKeys(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);if(t){p=p.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))}a.push.apply(a,p)}return a}function _objectSpread2(e){for(var t=1;t{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var p=a(8932);var r=_interopDefault(a(1223));const i=r((e=>console.warn(e)));const s=r((e=>console.warn(e)));class RequestError extends Error{constructor(e,t,a){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="HttpError";this.status=t;let r;if("headers"in a&&typeof a.headers!=="undefined"){r=a.headers}if("response"in a){this.response=a.response;r=a.response.headers}const d=Object.assign({},a.request);if(a.request.headers.authorization){d.headers=Object.assign({},a.request.headers,{authorization:a.request.headers.authorization.replace(/ .*$/," [REDACTED]")})}d.url=d.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=d;Object.defineProperty(this,"code",{get(){i(new p.Deprecation("[@octokit/request-error] `error.code` is deprecated, use `error.status`."));return t}});Object.defineProperty(this,"headers",{get(){s(new p.Deprecation("[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."));return r||{}}})}}t.RequestError=RequestError},6234:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var p=a(9440);var r=a(5030);var i=a(3287);var s=_interopDefault(a(467));var d=a(537);const o="5.6.3";function getBufferResponse(e){return e.arrayBuffer()}function fetchWrapper(e){const t=e.request&&e.request.log?e.request.log:console;if(i.isPlainObject(e.body)||Array.isArray(e.body)){e.body=JSON.stringify(e.body)}let a={};let p;let r;const o=e.request&&e.request.fetch||s;return o(e.url,Object.assign({method:e.method,body:e.body,headers:e.headers,redirect:e.redirect},e.request)).then((async i=>{r=i.url;p=i.status;for(const e of i.headers){a[e[0]]=e[1]}if("deprecation"in a){const p=a.link&&a.link.match(/<([^>]+)>; rel="deprecation"/);const r=p&&p.pop();t.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${a.sunset}${r?`. See ${r}`:""}`)}if(p===204||p===205){return}if(e.method==="HEAD"){if(p<400){return}throw new d.RequestError(i.statusText,p,{response:{url:r,status:p,headers:a,data:undefined},request:e})}if(p===304){throw new d.RequestError("Not modified",p,{response:{url:r,status:p,headers:a,data:await getResponseData(i)},request:e})}if(p>=400){const t=await getResponseData(i);const s=new d.RequestError(toErrorMessage(t),p,{response:{url:r,status:p,headers:a,data:t},request:e});throw s}return getResponseData(i)})).then((e=>({status:p,url:r,headers:a,data:e}))).catch((t=>{if(t instanceof d.RequestError)throw t;throw new d.RequestError(t.message,500,{request:e})}))}async function getResponseData(e){const t=e.headers.get("content-type");if(/application\/json/.test(t)){return e.json()}if(!t||/^text\/|charset=utf-8$/.test(t)){return e.text()}return getBufferResponse(e)}function toErrorMessage(e){if(typeof e==="string")return e;if("message"in e){if(Array.isArray(e.errors)){return`${e.message}: ${e.errors.map(JSON.stringify).join(", ")}`}return e.message}return`Unknown error: ${JSON.stringify(e)}`}function withDefaults(e,t){const a=e.defaults(t);const newApi=function(e,t){const p=a.merge(e,t);if(!p.request||!p.request.hook){return fetchWrapper(a.parse(p))}const request=(e,t)=>fetchWrapper(a.parse(a.merge(e,t)));Object.assign(request,{endpoint:a,defaults:withDefaults.bind(null,a)});return p.request.hook(request,p)};return Object.assign(newApi,{endpoint:a,defaults:withDefaults.bind(null,a)})}const n=withDefaults(p.endpoint,{headers:{"user-agent":`octokit-request.js/${o} ${r.getUserAgent()}`}});t.request=n},3682:(e,t,a)=>{var p=a(4670);var r=a(5549);var i=a(6819);var s=Function.bind;var d=s.bind(s);function bindApi(e,t,a){var p=d(i,null).apply(null,a?[t,a]:[t]);e.api={remove:p};e.remove=p;["before","error","after","wrap"].forEach((function(p){var i=a?[t,p,a]:[t,p];e[p]=e.api[p]=d(r,null).apply(null,i)}))}function HookSingular(){var e="h";var t={registry:{}};var a=p.bind(null,t,e);bindApi(a,t,e);return a}function HookCollection(){var e={registry:{}};var t=p.bind(null,e);bindApi(t,e);return t}var o=false;function Hook(){if(!o){console.warn('[before-after-hook]: "Hook()" repurposing warning, use "Hook.Collection()". Read more: https://git.io/upgrade-before-after-hook-to-1.4');o=true}return HookCollection()}Hook.Singular=HookSingular.bind();Hook.Collection=HookCollection.bind();e.exports=Hook;e.exports.Hook=Hook;e.exports.Singular=Hook.Singular;e.exports.Collection=Hook.Collection},5549:e=>{e.exports=addHook;function addHook(e,t,a,p){var r=p;if(!e.registry[a]){e.registry[a]=[]}if(t==="before"){p=function(e,t){return Promise.resolve().then(r.bind(null,t)).then(e.bind(null,t))}}if(t==="after"){p=function(e,t){var a;return Promise.resolve().then(e.bind(null,t)).then((function(e){a=e;return r(a,t)})).then((function(){return a}))}}if(t==="error"){p=function(e,t){return Promise.resolve().then(e.bind(null,t)).catch((function(e){return r(e,t)}))}}e.registry[a].push({hook:p,orig:r})}},4670:e=>{e.exports=register;function register(e,t,a,p){if(typeof a!=="function"){throw new Error("method for before hook must be a function")}if(!p){p={}}if(Array.isArray(t)){return t.reverse().reduce((function(t,a){return register.bind(null,e,a,t,p)}),a)()}return Promise.resolve().then((function(){if(!e.registry[t]){return a(p)}return e.registry[t].reduce((function(e,t){return t.hook.bind(null,e,p)}),a)()}))}},6819:e=>{e.exports=removeHook;function removeHook(e,t,a){if(!e.registry[t]){return}var p=e.registry[t].map((function(e){return e.orig})).indexOf(a);if(p===-1){return}e.registry[t].splice(p,1)}},8932:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class Deprecation extends Error{constructor(e){super(e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}this.name="Deprecation"}}t.Deprecation=Deprecation},3287:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true}); /*! * is-plain-object * diff --git a/src/filter.ts b/src/filter.ts index 9436bba..e1da13b 100644 --- a/src/filter.ts +++ b/src/filter.ts @@ -83,14 +83,12 @@ export class Filter { private parseFilterItemYaml(item: FilterItemYaml, excludes: excludesFilter = []): FilterRuleItem[] { var MatchOptions: matchoptions = Object.assign(defaultMatchOptions) MatchOptions.ignore = excludes + if (typeof item === 'string' || this.isStringsArray(item as string[])) { + return [{status: undefined, isMatch: picomatch(item as string | string[], MatchOptions)}] + } if (Array.isArray(item)) { return flat(item.map(i => this.parseFilterItemYaml(i, excludes))) } - - if (typeof item === 'string') { - return [{status: undefined, isMatch: picomatch(item, MatchOptions)}] - } - if (typeof item === 'object') { var len = Object.keys(item).length if (len == 2 && item.paths_ignore && item.paths) {