diff --git a/dist/LICENSE.txt b/dist/LICENSE.txt index ee8da22..0715667 100644 --- a/dist/LICENSE.txt +++ b/dist/LICENSE.txt @@ -47,6 +47,28 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +@fastify/busboy +MIT +Copyright Brian White. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + @octokit/auth-token MIT The MIT License @@ -244,16 +266,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -@vercel/ncc -MIT -Copyright 2018 ZEIT, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - before-after-hook Apache-2.0 Apache License @@ -502,31 +514,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -is-plain-object -MIT -The MIT License (MIT) - -Copyright (c) 2014-2017, Jon Schlinkert. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - lru-cache ISC The ISC License @@ -546,32 +533,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -node-fetch -MIT -The MIT License (MIT) - -Copyright (c) 2016 David Frank - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - - once ISC The ISC License @@ -610,9 +571,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -tr46 -MIT - tunnel MIT The MIT License (MIT) @@ -638,6 +596,31 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +undici +MIT +MIT License + +Copyright (c) Matteo Collina and Undici contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + universal-user-agent ISC # [ISC License](https://spdx.org/licenses/ISC) @@ -662,47 +645,6 @@ The above copyright notice and this permission notice shall be included in all c THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -webidl-conversions -BSD-2-Clause -# The BSD 2-Clause License - -Copyright (c) 2014, Domenic Denicola -All rights reserved. - -Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - -2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -whatwg-url -MIT -The MIT License (MIT) - -Copyright (c) 2015–2016 Sebastian Mayr - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - - wrappy ISC The ISC License diff --git a/dist/index.js b/dist/index.js index 16da947..e2c2f77 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,3 @@ -(()=>{var __webpack_modules__={7351:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.issue=a.issueCommand=void 0;const i=s(t(2037));const d=t(5278);function issueCommand(e,a,t){const p=new Command(e,a,t);process.stdout.write(p.toString()+i.EOL)}a.issueCommand=issueCommand;function issue(e,a=""){issueCommand(e,{},a)}a.issue=issue;const o="::";class Command{constructor(e,a,t){if(!e){e="missing.command"}this.command=e;this.properties=a;this.message=t}toString(){let e=o+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let a=true;for(const t in this.properties){if(this.properties.hasOwnProperty(t)){const p=this.properties[t];if(p){if(a){a=false}else{e+=","}e+=`${t}=${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,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};var i=this&&this.__awaiter||function(e,a,t,p){function adopt(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,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?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.getIDToken=a.getState=a.saveState=a.group=a.endGroup=a.startGroup=a.info=a.notice=a.warning=a.error=a.debug=a.isDebug=a.setFailed=a.setCommandEcho=a.setOutput=a.getBooleanInput=a.getMultilineInput=a.getInput=a.addPath=a.setSecret=a.exportVariable=a.ExitCode=void 0;const d=t(7351);const o=t(717);const n=t(5278);const l=s(t(2037));const m=s(t(1017));const u=t(8041);var c;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(c=a.ExitCode||(a.ExitCode={}));function exportVariable(e,a){const t=n.toCommandValue(a);process.env[e]=t;const p=process.env["GITHUB_ENV"]||"";if(p){return o.issueFileCommand("ENV",o.prepareKeyValueMessage(e,a))}d.issueCommand("set-env",{name:e},t)}a.exportVariable=exportVariable;function setSecret(e){d.issueCommand("add-mask",{},e)}a.setSecret=setSecret;function addPath(e){const a=process.env["GITHUB_PATH"]||"";if(a){o.issueFileCommand("PATH",e)}else{d.issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${m.delimiter}${process.env["PATH"]}`}a.addPath=addPath;function getInput(e,a){const t=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(a&&a.required&&!t){throw new Error(`Input required and not supplied: ${e}`)}if(a&&a.trimWhitespace===false){return t}return t.trim()}a.getInput=getInput;function getMultilineInput(e,a){const t=getInput(e,a).split("\n").filter((e=>e!==""));if(a&&a.trimWhitespace===false){return t}return t.map((e=>e.trim()))}a.getMultilineInput=getMultilineInput;function getBooleanInput(e,a){const t=["true","True","TRUE"];const p=["false","False","FALSE"];const r=getInput(e,a);if(t.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\``)}a.getBooleanInput=getBooleanInput;function setOutput(e,a){const t=process.env["GITHUB_OUTPUT"]||"";if(t){return o.issueFileCommand("OUTPUT",o.prepareKeyValueMessage(e,a))}process.stdout.write(l.EOL);d.issueCommand("set-output",{name:e},n.toCommandValue(a))}a.setOutput=setOutput;function setCommandEcho(e){d.issue("echo",e?"on":"off")}a.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=c.Failure;error(e)}a.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}a.isDebug=isDebug;function debug(e){d.issueCommand("debug",{},e)}a.debug=debug;function error(e,a={}){d.issueCommand("error",n.toCommandProperties(a),e instanceof Error?e.toString():e)}a.error=error;function warning(e,a={}){d.issueCommand("warning",n.toCommandProperties(a),e instanceof Error?e.toString():e)}a.warning=warning;function notice(e,a={}){d.issueCommand("notice",n.toCommandProperties(a),e instanceof Error?e.toString():e)}a.notice=notice;function info(e){process.stdout.write(e+l.EOL)}a.info=info;function startGroup(e){d.issue("group",e)}a.startGroup=startGroup;function endGroup(){d.issue("endgroup")}a.endGroup=endGroup;function group(e,a){return i(this,void 0,void 0,(function*(){startGroup(e);let t;try{t=yield a()}finally{endGroup()}return t}))}a.group=group;function saveState(e,a){const t=process.env["GITHUB_STATE"]||"";if(t){return o.issueFileCommand("STATE",o.prepareKeyValueMessage(e,a))}d.issueCommand("save-state",{name:e},n.toCommandValue(a))}a.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}a.getState=getState;function getIDToken(e){return i(this,void 0,void 0,(function*(){return yield u.OidcClient.getIDToken(e)}))}a.getIDToken=getIDToken;var h=t(1327);Object.defineProperty(a,"summary",{enumerable:true,get:function(){return h.summary}});var v=t(1327);Object.defineProperty(a,"markdownSummary",{enumerable:true,get:function(){return v.markdownSummary}});var g=t(2981);Object.defineProperty(a,"toPosixPath",{enumerable:true,get:function(){return g.toPosixPath}});Object.defineProperty(a,"toWin32Path",{enumerable:true,get:function(){return g.toWin32Path}});Object.defineProperty(a,"toPlatformPath",{enumerable:true,get:function(){return g.toPlatformPath}})},717:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.prepareKeyValueMessage=a.issueFileCommand=void 0;const i=s(t(7147));const d=s(t(2037));const o=t(5840);const n=t(5278);function issueFileCommand(e,a){const t=process.env[`GITHUB_${e}`];if(!t){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!i.existsSync(t)){throw new Error(`Missing file at path: ${t}`)}i.appendFileSync(t,`${n.toCommandValue(a)}${d.EOL}`,{encoding:"utf8"})}a.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,a){const t=`ghadelimiter_${o.v4()}`;const p=n.toCommandValue(a);if(e.includes(t)){throw new Error(`Unexpected input: name should not contain the delimiter "${t}"`)}if(p.includes(t)){throw new Error(`Unexpected input: value should not contain the delimiter "${t}"`)}return`${e}<<${t}${d.EOL}${p}${d.EOL}${t}`}a.prepareKeyValueMessage=prepareKeyValueMessage},8041:function(e,a,t){"use strict";var p=this&&this.__awaiter||function(e,a,t,p){function adopt(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,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?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.OidcClient=void 0;const r=t(6255);const s=t(5526);const i=t(2186);class OidcClient{static createHttpClient(e=true,a=10){const t={allowRetries:e,maxRetries:a};return new r.HttpClient("actions/oidc-client",[new s.BearerCredentialHandler(OidcClient.getRequestToken())],t)}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 a;return p(this,void 0,void 0,(function*(){const t=OidcClient.createHttpClient();const p=yield t.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=(a=p.result)===null||a===void 0?void 0:a.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 a=OidcClient.getIDTokenUrl();if(e){const t=encodeURIComponent(e);a=`${a}&audience=${t}`}i.debug(`ID token url is ${a}`);const t=yield OidcClient.getCall(a);i.setSecret(t);return t}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}a.OidcClient=OidcClient},2981:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.toPlatformPath=a.toWin32Path=a.toPosixPath=void 0;const i=s(t(1017));function toPosixPath(e){return e.replace(/[\\]/g,"/")}a.toPosixPath=toPosixPath;function toWin32Path(e){return e.replace(/[/]/g,"\\")}a.toWin32Path=toWin32Path;function toPlatformPath(e){return e.replace(/[/\\]/g,i.sep)}a.toPlatformPath=toPlatformPath},1327:function(e,a,t){"use strict";var p=this&&this.__awaiter||function(e,a,t,p){function adopt(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,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?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.summary=a.markdownSummary=a.SUMMARY_DOCS_URL=a.SUMMARY_ENV_VAR=void 0;const r=t(2037);const s=t(7147);const{access:i,appendFile:d,writeFile:o}=s.promises;a.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";a.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[a.SUMMARY_ENV_VAR];if(!e){throw new Error(`Unable to find environment variable for $${a.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield i(e,s.constants.R_OK|s.constants.W_OK)}catch(a){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,a,t={}){const p=Object.entries(t).map((([e,a])=>` ${e}="${a}"`)).join("");if(!a){return`<${e}${p}>`}return`<${e}${p}>${a}${e}>`}write(e){return p(this,void 0,void 0,(function*(){const a=!!(e===null||e===void 0?void 0:e.overwrite);const t=yield this.filePath();const p=a?o:d;yield p(t,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,a=false){this._buffer+=e;return a?this.addEOL():this}addEOL(){return this.addRaw(r.EOL)}addCodeBlock(e,a){const t=Object.assign({},a&&{lang:a});const p=this.wrap("pre",this.wrap("code",e),t);return this.addRaw(p).addEOL()}addList(e,a=false){const t=a?"ol":"ul";const p=e.map((e=>this.wrap("li",e))).join("");const r=this.wrap(t,p);return this.addRaw(r).addEOL()}addTable(e){const a=e.map((e=>{const a=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:a,data:t,colspan:p,rowspan:r}=e;const s=a?"th":"td";const i=Object.assign(Object.assign({},p&&{colspan:p}),r&&{rowspan:r});return this.wrap(s,t,i)})).join("");return this.wrap("tr",a)})).join("");const t=this.wrap("table",a);return this.addRaw(t).addEOL()}addDetails(e,a){const t=this.wrap("details",this.wrap("summary",e)+a);return this.addRaw(t).addEOL()}addImage(e,a,t){const{width:p,height:r}=t||{};const s=Object.assign(Object.assign({},p&&{width:p}),r&&{height:r});const i=this.wrap("img",null,Object.assign({src:e,alt:a},s));return this.addRaw(i).addEOL()}addHeading(e,a){const t=`h${a}`;const p=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"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,a){const t=Object.assign({},a&&{cite:a});const p=this.wrap("blockquote",e,t);return this.addRaw(p).addEOL()}addLink(e,a){const t=this.wrap("a",e,{href:a});return this.addRaw(t).addEOL()}}const n=new Summary;a.markdownSummary=n;a.summary=n},5278:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.toCommandProperties=a.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)}a.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}}a.toCommandProperties=toCommandProperties},4087:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.Context=void 0;const p=t(7147);const r=t(2037);class Context{constructor(){var e,a,t;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=(a=process.env.GITHUB_SERVER_URL)!==null&&a!==void 0?a:`https://github.com`;this.graphqlUrl=(t=process.env.GITHUB_GRAPHQL_URL)!==null&&t!==void 0?t:`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,a]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:a}}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'")}}a.Context=Context},5438:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOctokit=a.context=void 0;const i=s(t(4087));const d=t(3030);a.context=new i.Context;function getOctokit(e,a,...t){const p=d.GitHub.plugin(...t);return new p(d.getOctokitOptions(e,a))}a.getOctokit=getOctokit},7914:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getApiBaseUrl=a.getProxyAgent=a.getAuthString=void 0;const i=s(t(6255));function getAuthString(e,a){if(!e&&!a.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&a.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof a.auth==="string"?a.auth:`token ${e}`}a.getAuthString=getAuthString;function getProxyAgent(e){const a=new i.HttpClient;return a.getAgent(e)}a.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}a.getApiBaseUrl=getApiBaseUrl},3030:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};Object.defineProperty(a,"__esModule",{value:true});a.getOctokitOptions=a.GitHub=a.defaults=a.context=void 0;const i=s(t(4087));const d=s(t(7914));const o=t(6762);const n=t(3044);const l=t(4193);a.context=new i.Context;const m=d.getApiBaseUrl();a.defaults={baseUrl:m,request:{agent:d.getProxyAgent(m)}};a.GitHub=o.Octokit.plugin(n.restEndpointMethods,l.paginateRest).defaults(a.defaults);function getOctokitOptions(e,a){const t=Object.assign({},a||{});const p=d.getAuthString(e,t);if(p){t.auth=p}return t}a.getOctokitOptions=getOctokitOptions},5526:function(e,a){"use strict";var t=this&&this.__awaiter||function(e,a,t,p){function adopt(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,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?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.PersonalAccessTokenCredentialHandler=a.BearerCredentialHandler=a.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(e,a){this.username=e;this.password=a}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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.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 t(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}a.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},6255:function(e,a,t){"use strict";var p=this&&this.__createBinding||(Object.create?function(e,a,t,p){if(p===undefined)p=t;Object.defineProperty(e,p,{enumerable:true,get:function(){return a[t]}})}:function(e,a,t,p){if(p===undefined)p=t;e[p]=a[t]});var r=this&&this.__setModuleDefault||(Object.create?function(e,a){Object.defineProperty(e,"default",{enumerable:true,value:a})}:function(e,a){e["default"]=a});var s=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var a={};if(e!=null)for(var t in e)if(t!=="default"&&Object.hasOwnProperty.call(e,t))p(a,e,t);r(a,e);return a};var i=this&&this.__awaiter||function(e,a,t,p){function adopt(e){return e instanceof t?e:new t((function(a){a(e)}))}return new(t||(t=Promise))((function(t,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?t(e.value):adopt(e.value).then(fulfilled,rejected)}step((p=p.apply(e,a||[])).next())}))};Object.defineProperty(a,"__esModule",{value:true});a.HttpClient=a.isHttps=a.HttpClientResponse=a.HttpClientError=a.getProxyUrl=a.MediaTypes=a.Headers=a.HttpCodes=void 0;const d=s(t(3685));const o=s(t(5687));const n=s(t(9835));const l=s(t(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=a.HttpCodes||(a.HttpCodes={}));var u;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(u=a.Headers||(a.Headers={}));var c;(function(e){e["ApplicationJson"]="application/json"})(c=a.MediaTypes||(a.MediaTypes={}));function getProxyUrl(e){const a=n.getProxyUrl(new URL(e));return a?a.href:""}a.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,a){super(e);this.name="HttpClientError";this.statusCode=a;Object.setPrototypeOf(this,HttpClientError.prototype)}}a.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return i(this,void 0,void 0,(function*(){return new Promise((e=>i(this,void 0,void 0,(function*(){let a=Buffer.alloc(0);this.message.on("data",(e=>{a=Buffer.concat([a,e])}));this.message.on("end",(()=>{e(a.toString())}))}))))}))}}a.HttpClientResponse=HttpClientResponse;function isHttps(e){const a=new URL(e);return a.protocol==="https:"}a.isHttps=isHttps;class HttpClient{constructor(e,a,t){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=a||[];this.requestOptions=t;if(t){if(t.ignoreSslError!=null){this._ignoreSslError=t.ignoreSslError}this._socketTimeout=t.socketTimeout;if(t.allowRedirects!=null){this._allowRedirects=t.allowRedirects}if(t.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=t.allowRedirectDowngrade}if(t.maxRedirects!=null){this._maxRedirects=Math.max(t.maxRedirects,0)}if(t.keepAlive!=null){this._keepAlive=t.keepAlive}if(t.allowRetries!=null){this._allowRetries=t.allowRetries}if(t.maxRetries!=null){this._maxRetries=t.maxRetries}}}options(e,a){return i(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,a||{})}))}get(e,a){return i(this,void 0,void 0,(function*(){return this.request("GET",e,null,a||{})}))}del(e,a){return i(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,a||{})}))}post(e,a,t){return i(this,void 0,void 0,(function*(){return this.request("POST",e,a,t||{})}))}patch(e,a,t){return i(this,void 0,void 0,(function*(){return this.request("PATCH",e,a,t||{})}))}put(e,a,t){return i(this,void 0,void 0,(function*(){return this.request("PUT",e,a,t||{})}))}head(e,a){return i(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,a||{})}))}sendStream(e,a,t,p){return i(this,void 0,void 0,(function*(){return this.request(e,a,t,p)}))}getJson(e,a={}){return i(this,void 0,void 0,(function*(){a[u.Accept]=this._getExistingOrDefaultHeader(a,u.Accept,c.ApplicationJson);const t=yield this.get(e,a);return this._processResponse(t,this.requestOptions)}))}postJson(e,a,t={}){return i(this,void 0,void 0,(function*(){const p=JSON.stringify(a,null,2);t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);t[u.ContentType]=this._getExistingOrDefaultHeader(t,u.ContentType,c.ApplicationJson);const r=yield this.post(e,p,t);return this._processResponse(r,this.requestOptions)}))}putJson(e,a,t={}){return i(this,void 0,void 0,(function*(){const p=JSON.stringify(a,null,2);t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);t[u.ContentType]=this._getExistingOrDefaultHeader(t,u.ContentType,c.ApplicationJson);const r=yield this.put(e,p,t);return this._processResponse(r,this.requestOptions)}))}patchJson(e,a,t={}){return i(this,void 0,void 0,(function*(){const p=JSON.stringify(a,null,2);t[u.Accept]=this._getExistingOrDefaultHeader(t,u.Accept,c.ApplicationJson);t[u.ContentType]=this._getExistingOrDefaultHeader(t,u.ContentType,c.ApplicationJson);const r=yield this.patch(e,p,t);return this._processResponse(r,this.requestOptions)}))}request(e,a,t,p){return i(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const r=new URL(a);let s=this._prepareRequest(e,r,p);const i=this._allowRetries&&g.includes(e)?this._maxRetries+1:1;let d=0;let o;do{o=yield this.requestRaw(s,t);if(o&&o.message&&o.message.statusCode===m.Unauthorized){let e;for(const a of this.handlers){if(a.canHandleAuthentication(o)){e=a;break}}if(e){return e.handleAuthentication(this,s,t)}else{return o}}let a=this._maxRedirects;while(o.message.statusCode&&h.includes(o.message.statusCode)&&this._allowRedirects&&a>0){const i=o.message.headers["location"];if(!i){break}const d=new URL(i);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]}}}s=this._prepareRequest(e,d,p);o=yield this.requestRaw(s,t);a--}if(!o.message.statusCode||!v.includes(o.message.statusCode)){return o}d+=1;if(d{function callbackForResult(e,a){if(e){p(e)}else if(!a){p(new Error("Unknown error"))}else{t(a)}}this.requestRawWithCallback(e,a,callbackForResult)}))}))}requestRawWithCallback(e,a,t){if(typeof a==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(a,"utf8")}let p=false;function handleResult(e,a){if(!p){p=true;t(e,a)}}const r=e.httpModule.request(e.options,(e=>{const a=new HttpClientResponse(e);handleResult(undefined,a)}));let s;r.on("socket",(e=>{s=e}));r.setTimeout(this._socketTimeout||3*6e4,(()=>{if(s){s.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));r.on("error",(function(e){handleResult(e)}));if(a&&typeof a==="string"){r.write(a,"utf8")}if(a&&typeof a!=="string"){a.on("close",(function(){r.end()}));a.pipe(r)}else{r.end()}}getAgent(e){const a=new URL(e);return this._getAgent(a)}_prepareRequest(e,a,t){const p={};p.parsedUrl=a;const r=p.parsedUrl.protocol==="https:";p.httpModule=r?o:d;const s=r?443:80;p.options={};p.options.host=p.parsedUrl.hostname;p.options.port=p.parsedUrl.port?parseInt(p.parsedUrl.port):s;p.options.path=(p.parsedUrl.pathname||"")+(p.parsedUrl.search||"");p.options.method=e;p.options.headers=this._mergeHeaders(t);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,a,t){let p;if(this.requestOptions&&this.requestOptions.headers){p=lowercaseKeys(this.requestOptions.headers)[a]}return e[a]||p||t}_getAgent(e){let a;const t=n.getProxyUrl(e);const p=t&&t.hostname;if(this._keepAlive&&p){a=this._proxyAgent}if(this._keepAlive&&!p){a=this._agent}if(a){return a}const r=e.protocol==="https:";let s=100;if(this.requestOptions){s=this.requestOptions.maxSockets||d.globalAgent.maxSockets}if(t&&t.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})};let p;const i=t.protocol==="https:";if(r){p=i?l.httpsOverHttps:l.httpsOverHttp}else{p=i?l.httpOverHttps:l.httpOverHttp}a=p(e);this._proxyAgent=a}if(this._keepAlive&&!a){const e={keepAlive:this._keepAlive,maxSockets:s};a=r?new o.Agent(e):new d.Agent(e);this._agent=a}if(!a){a=r?o.globalAgent:d.globalAgent}if(r&&this._ignoreSslError){a.options=Object.assign(a.options||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(e){return i(this,void 0,void 0,(function*(){e=Math.min(w,e);const a=_*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),a)))}))}_processResponse(e,a){return i(this,void 0,void 0,(function*(){return new Promise(((t,p)=>i(this,void 0,void 0,(function*(){const r=e.message.statusCode||0;const s={statusCode:r,result:null,headers:{}};if(r===m.NotFound){t(s)}function dateTimeDeserializer(e,a){if(typeof a==="string"){const e=new Date(a);if(!isNaN(e.valueOf())){return e}}return a}let i;let d;try{d=yield e.readBody();if(d&&d.length>0){if(a&&a.deserializeDates){i=JSON.parse(d,dateTimeDeserializer)}else{i=JSON.parse(d)}s.result=i}s.headers=e.message.headers}catch(e){}if(r>299){let e;if(i&&i.message){e=i.message}else if(d&&d.length>0){e=d}else{e=`Failed request: (${r})`}const a=new HttpClientError(e,r);a.result=s.result;p(a)}else{t(s)}}))))}))}}a.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((a,t)=>(a[t.toLowerCase()]=e[t],a)),{})},9835:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});a.checkBypass=a.getProxyUrl=void 0;function getProxyUrl(e){const a=e.protocol==="https:";if(checkBypass(e)){return undefined}const t=(()=>{if(a){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(t){return new URL(t)}else{return undefined}}a.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const a=e.hostname;if(isLoopbackAddress(a)){return true}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let p;if(e.port){p=Number(e.port)}else if(e.protocol==="http:"){p=80}else if(e.protocol==="https:"){p=443}const r=[e.hostname.toUpperCase()];if(typeof p==="number"){r.push(`${r[0]}:${p}`)}for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||r.some((a=>a===e||a.endsWith(`.${e}`)||e.startsWith(".")&&a.endsWith(`${e}`)))){return true}}return false}a.checkBypass=checkBypass;function isLoopbackAddress(e){const a=e.toLowerCase();return a==="localhost"||a.startsWith("127.")||a.startsWith("[::1]")||a.startsWith("[0:0:0:0:0:0:0:1]")}},334:(e,a)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});const t=/^v1\./;const p=/^ghs_/;const r=/^ghu_/;async function auth(e){const a=e.split(/\./).length===3;const s=t.test(e)||p.test(e);const i=r.test(e);const d=a?"app":s?"installation":i?"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,a,t,p){const r=a.endpoint.merge(t,p);r.headers.authorization=withAuthorizationPrefix(e);return a(r)}const s=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)})};a.createTokenAuth=s},6762:(e,a,t)=>{"use strict";Object.defineProperty(a,"__esModule",{value:true});var p=t(5030);var r=t(3682);var s=t(6234);var i=t(8467);var d=t(334);function _objectWithoutPropertiesLoose(e,a){if(e==null)return{};var t={};var p=Object.keys(e);var r,s;for(s=0;s
1){t=a}else if(this.head){p=this.head.next;t=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var r=0;p!==null;r++){t=e(t,p.value,r);p=p.next}return t};Yallist.prototype.reduceReverse=function(e,a){var t;var p=this.tail;if(arguments.length>1){t=a}else if(this.tail){p=this.tail.prev;t=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var r=this.length-1;p!==null;r--){t=e(t,p.value,r);p=p.prev}return t};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var a=0,t=this.head;t!==null;a++){e[a]=t.value;t=t.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var a=0,t=this.tail;t!==null;a++){e[a]=t.value;t=t.prev}return e};Yallist.prototype.slice=function(e,a){a=a||this.length;if(a<0){a+=this.length}e=e||0;if(e<0){e+=this.length}var t=new Yallist;if(a0){setTimeout((()=>{handleReply(this[s])}),E)}else{handleReply(this[s])}function handleReply(r,s=n){const c=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const E=typeof s==="function"?s({...e,headers:c}):s;if(l(E)){E.then((e=>handleReply(r,e)));return}const u=getResponseData(E);const h=generateKeyValues(i);const Q=generateKeyValues(a);A.abort=g;A.onHeaders(o,h,resume,getStatusText(o));A.onData(Buffer.from(u));A.onComplete(Q);deleteMockDispatch(r,t)}function resume(){}return true}function buildMockDispatch(){const e=this[o];const A=this[i];const t=this[n];return function dispatch(s,o){if(e.isMockActive){try{mockDispatch.call(this,s,o)}catch(n){if(n instanceof r){const i=e[a]();if(i===false){throw new r(`${n.message}: subsequent request to origin ${A} was not allowed (net.connect disabled)`)}if(checkNetConnect(i,A)){t.call(this,s,o)}else{throw new r(`${n.message}: subsequent request to origin ${A} was not allowed (net.connect is not enabled for this origin)`)}}else{throw n}}}else{t.call(this,s,o)}}}function checkNetConnect(e,A){const t=new URL(A);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,t.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:A,...t}=e;return t}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName}},5881:(e,A,t)=>{const{Transform:r}=t(2781);const{Console:s}=t(6206);e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new r({transform(e,A,t){t(null,e)}});this.logger=new s({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const A=e.map((({method:e,path:A,data:{statusCode:t},persist:r,times:s,timesInvoked:o,origin:n})=>({Method:e,Origin:n,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:o,Remaining:r?Infinity:s-o})));this.logger.table(A);return this.transform.read().toString()}}},4858:e=>{const A={pronoun:"it",is:"is",was:"was",this:"this"};const t={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,A){this.singular=e;this.plural=A}pluralize(e){const r=e===1;const s=r?A:t;const o=r?this.singular:this.plural;return{...s,count:e,noun:o}}}},229:e=>{const A=2048;const t=A-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(A);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&t)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&t}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&t;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const A=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return A}}},2128:(e,A,t)=>{const r=t(8506);const s=t(229);const{kConnected:o,kSize:n,kRunning:i,kPending:a,kQueued:c,kBusy:g,kFree:E,kUrl:l,kClose:u,kDestroy:h,kDispatch:Q}=t(5792);const C=t(6793);const B=Symbol("clients");const I=Symbol("needDrain");const d=Symbol("queue");const p=Symbol("closed resolve");const m=Symbol("onDrain");const y=Symbol("onConnect");const w=Symbol("onDisconnect");const R=Symbol("onConnectionError");const D=Symbol("get dispatcher");const k=Symbol("add client");const b=Symbol("remove client");const F=Symbol("stats");class PoolBase extends r{constructor(){super();this[d]=new s;this[B]=[];this[c]=0;const e=this;this[m]=function onDrain(A,t){const r=e[d];let s=false;while(!s){const A=r.shift();if(!A){break}e[c]--;s=!this.dispatch(A.opts,A.handler)}this[I]=s;if(!this[I]&&e[I]){e[I]=false;e.emit("drain",A,[e,...t])}if(e[p]&&r.isEmpty()){Promise.all(e[B].map((e=>e.close()))).then(e[p])}};this[y]=(A,t)=>{e.emit("connect",A,[e,...t])};this[w]=(A,t,r)=>{e.emit("disconnect",A,[e,...t],r)};this[R]=(A,t,r)=>{e.emit("connectionError",A,[e,...t],r)};this[F]=new C(this)}get[g](){return this[I]}get[o](){return this[B].filter((e=>e[o])).length}get[E](){return this[B].filter((e=>e[o]&&!e[I])).length}get[a](){let e=this[c];for(const{[a]:A}of this[B]){e+=A}return e}get[i](){let e=0;for(const{[i]:A}of this[B]){e+=A}return e}get[n](){let e=this[c];for(const{[n]:A}of this[B]){e+=A}return e}get stats(){return this[F]}async[u](){if(this[d].isEmpty()){return Promise.all(this[B].map((e=>e.close())))}else{return new Promise((e=>{this[p]=e}))}}async[h](e){while(true){const A=this[d].shift();if(!A){break}A.handler.onError(e)}return Promise.all(this[B].map((A=>A.destroy(e))))}[Q](e,A){const t=this[D]();if(!t){this[I]=true;this[d].push({opts:e,handler:A});this[c]++}else if(!t.dispatch(e,A)){t[I]=true;this[I]=!this[D]()}return!this[I]}[k](e){e.on("drain",this[m]).on("connect",this[y]).on("disconnect",this[w]).on("connectionError",this[R]);this[B].push(e);if(this[I]){process.nextTick((()=>{if(this[I]){this[m](e[l],[this,e])}}))}return this}[b](e){e.close((()=>{const A=this[B].indexOf(e);if(A!==-1){this[B].splice(A,1)}}));this[I]=this[B].some((e=>!e[I]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:B,kNeedDrain:I,kAddClient:k,kRemoveClient:b,kGetDispatcher:D}},6793:(e,A,t)=>{const{kFree:r,kConnected:s,kPending:o,kQueued:n,kRunning:i,kSize:a}=t(5792);const c=Symbol("pool");class PoolStats{constructor(e){this[c]=e}get connected(){return this[c][s]}get free(){return this[c][r]}get pending(){return this[c][o]}get queued(){return this[c][n]}get running(){return this[c][i]}get size(){return this[c][a]}}e.exports=PoolStats},7496:(e,A,t)=>{const{PoolBase:r,kClients:s,kNeedDrain:o,kAddClient:n,kGetDispatcher:i}=t(2128);const a=t(6518);const{InvalidArgumentError:c}=t(6502);const g=t(143);const{kUrl:E,kInterceptors:l}=t(5792);const u=t(7857);const h=Symbol("options");const Q=Symbol("connections");const C=Symbol("factory");function defaultFactory(e,A){return new a(e,A)}class Pool extends r{constructor(e,{connections:A,factory:t=defaultFactory,connect:r,connectTimeout:s,tls:o,maxCachedSessions:n,socketPath:i,autoSelectFamily:a,autoSelectFamilyAttemptTimeout:B,allowH2:I,...d}={}){super();if(A!=null&&(!Number.isFinite(A)||A<0)){throw new c("invalid connections")}if(typeof t!=="function"){throw new c("factory must be a function.")}if(r!=null&&typeof r!=="function"&&typeof r!=="object"){throw new c("connect must be a function or an object")}if(typeof r!=="function"){r=u({...o,maxCachedSessions:n,allowH2:I,socketPath:i,timeout:s,...g.nodeHasAutoSelectFamily&&a?{autoSelectFamily:a,autoSelectFamilyAttemptTimeout:B}:undefined,...r})}this[l]=d.interceptors&&d.interceptors.Pool&&Array.isArray(d.interceptors.Pool)?d.interceptors.Pool:[];this[Q]=A||null;this[E]=g.parseOrigin(e);this[h]={...g.deepClone(d),connect:r,allowH2:I};this[h].interceptors=d.interceptors?{...d.interceptors}:undefined;this[C]=t}[i](){let e=this[s].find((e=>!e[o]));if(e){return e}if(!this[Q]||this[s].length