diff --git a/dist/index.js b/dist/index.js index e1e1e05..b0c0bc3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,7 +1,7 @@ -(()=>{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(a 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(a=0){if(typeof this.prerelease[e]==="number"){this.prerelease[e]++;e=-2}}if(e===-1){this.prerelease.push(0)}}if(a){if(n(this.prerelease[0],a)===0){if(isNaN(this.prerelease[1])){this.prerelease=[a,0]}}else{this.prerelease=[a,0]}}break;default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=SemVer},8848:(e,a,t)=>{const p=t(5925);const clean=(e,a)=>{const t=p(e.trim().replace(/^[=v]+/,""),a);return t?t.version:null};e.exports=clean},5098:(e,a,t)=>{const p=t(1898);const r=t(6017);const s=t(4123);const i=t(5522);const d=t(194);const o=t(7520);const cmp=(e,a,t,n)=>{switch(a){case"===":if(typeof e==="object"){e=e.version}if(typeof t==="object"){t=t.version}return e===t;case"!==":if(typeof e==="object"){e=e.version}if(typeof t==="object"){t=t.version}return e!==t;case"":case"=":case"==":return p(e,t,n);case"!=":return r(e,t,n);case">":return s(e,t,n);case">=":return i(e,t,n);case"<":return d(e,t,n);case"<=":return o(e,t,n);default:throw new TypeError(`Invalid operator: ${a}`)}};e.exports=cmp},3466:(e,a,t)=>{const p=t(8088);const r=t(5925);const{re:s,t:i}=t(9523);const coerce=(e,a)=>{if(e instanceof p){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}a=a||{};let t=null;if(!a.rtl){t=e.match(s[i.COERCE])}else{let a;while((a=s[i.COERCERTL].exec(e))&&(!t||t.index+t[0].length!==e.length)){if(!t||a.index+a[0].length!==t.index+t[0].length){t=a}s[i.COERCERTL].lastIndex=a.index+a[1].length+a[2].length}s[i.COERCERTL].lastIndex=-1}if(t===null){return null}return r(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,a)};e.exports=coerce},2156:(e,a,t)=>{const p=t(8088);const compareBuild=(e,a,t)=>{const r=new p(e,t);const s=new p(a,t);return r.compare(s)||r.compareBuild(s)};e.exports=compareBuild},2804:(e,a,t)=>{const p=t(4309);const compareLoose=(e,a)=>p(e,a,true);e.exports=compareLoose},4309:(e,a,t)=>{const p=t(8088);const compare=(e,a,t)=>new p(e,t).compare(new p(a,t));e.exports=compare},4297:(e,a,t)=>{const p=t(5925);const r=t(1898);const diff=(e,a)=>{if(r(e,a)){return null}else{const t=p(e);const r=p(a);const s=t.prerelease.length||r.prerelease.length;const i=s?"pre":"";const d=s?"prerelease":"";for(const e in t){if(e==="major"||e==="minor"||e==="patch"){if(t[e]!==r[e]){return i+e}}}return d}};e.exports=diff},1898:(e,a,t)=>{const p=t(4309);const eq=(e,a,t)=>p(e,a,t)===0;e.exports=eq},4123:(e,a,t)=>{const p=t(4309);const gt=(e,a,t)=>p(e,a,t)>0;e.exports=gt},5522:(e,a,t)=>{const p=t(4309);const gte=(e,a,t)=>p(e,a,t)>=0;e.exports=gte},900:(e,a,t)=>{const p=t(8088);const inc=(e,a,t,r)=>{if(typeof t==="string"){r=t;t=undefined}try{return new p(e instanceof p?e.version:e,t).inc(a,r).version}catch(e){return null}};e.exports=inc},194:(e,a,t)=>{const p=t(4309);const lt=(e,a,t)=>p(e,a,t)<0;e.exports=lt},7520:(e,a,t)=>{const p=t(4309);const lte=(e,a,t)=>p(e,a,t)<=0;e.exports=lte},6688:(e,a,t)=>{const p=t(8088);const major=(e,a)=>new p(e,a).major;e.exports=major},8447:(e,a,t)=>{const p=t(8088);const minor=(e,a)=>new p(e,a).minor;e.exports=minor},6017:(e,a,t)=>{const p=t(4309);const neq=(e,a,t)=>p(e,a,t)!==0;e.exports=neq},5925:(e,a,t)=>{const{MAX_LENGTH:p}=t(2293);const{re:r,t:s}=t(9523);const i=t(8088);const d=t(785);const parse=(e,a)=>{a=d(a);if(e instanceof i){return e}if(typeof e!=="string"){return null}if(e.length>p){return null}const t=a.loose?r[s.LOOSE]:r[s.FULL];if(!t.test(e)){return null}try{return new i(e,a)}catch(e){return null}};e.exports=parse},2866:(e,a,t)=>{const p=t(8088);const patch=(e,a)=>new p(e,a).patch;e.exports=patch},4016:(e,a,t)=>{const p=t(5925);const prerelease=(e,a)=>{const t=p(e,a);return t&&t.prerelease.length?t.prerelease:null};e.exports=prerelease},6417:(e,a,t)=>{const p=t(4309);const rcompare=(e,a,t)=>p(a,e,t);e.exports=rcompare},8701:(e,a,t)=>{const p=t(2156);const rsort=(e,a)=>e.sort(((e,t)=>p(t,e,a)));e.exports=rsort},6055:(e,a,t)=>{const p=t(9828);const satisfies=(e,a,t)=>{try{a=new p(a,t)}catch(e){return false}return a.test(e)};e.exports=satisfies},1426:(e,a,t)=>{const p=t(2156);const sort=(e,a)=>e.sort(((e,t)=>p(e,t,a)));e.exports=sort},9601:(e,a,t)=>{const p=t(5925);const valid=(e,a)=>{const t=p(e,a);return t?t.version:null};e.exports=valid},1383:(e,a,t)=>{const p=t(9523);const r=t(2293);const s=t(8088);const i=t(2463);const d=t(5925);const o=t(9601);const n=t(8848);const l=t(900);const m=t(4297);const u=t(6688);const c=t(8447);const h=t(2866);const v=t(4016);const g=t(4309);const w=t(6417);const _=t(2804);const E=t(2156);const T=t(1426);const b=t(8701);const y=t(4123);const S=t(194);const D=t(1898);const O=t(6017);const P=t(5522);const k=t(7520);const A=t(5098);const R=t(3466);const N=t(1532);const G=t(9828);const C=t(6055);const V=t(2706);const U=t(579);const F=t(832);const L=t(4179);const I=t(2098);const j=t(420);const x=t(9380);const B=t(3323);const $=t(7008);const q=t(5297);const M=t(7863);e.exports={parse:d,valid:o,clean:n,inc:l,diff:m,major:u,minor:c,patch:h,prerelease:v,compare:g,rcompare:w,compareLoose:_,compareBuild:E,sort:T,rsort:b,gt:y,lt:S,eq:D,neq:O,gte:P,lte:k,cmp:A,coerce:R,Comparator:N,Range:G,satisfies:C,toComparators:V,maxSatisfying:U,minSatisfying:F,minVersion:L,validRange:I,outside:j,gtr:x,ltr:B,intersects:$,simplifyRange:q,subset:M,SemVer:s,re:p.re,src:p.src,tokens:p.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,compareIdentifiers:i.compareIdentifiers,rcompareIdentifiers:i.rcompareIdentifiers}},2293:e=>{const a="2.0.0";const t=256;const p=Number.MAX_SAFE_INTEGER||9007199254740991;const r=16;e.exports={SEMVER_SPEC_VERSION:a,MAX_LENGTH:t,MAX_SAFE_INTEGER:p,MAX_SAFE_COMPONENT_LENGTH:r}},427:e=>{const a=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=a},2463:e=>{const a=/^[0-9]+$/;const compareIdentifiers=(e,t)=>{const p=a.test(e);const r=a.test(t);if(p&&r){e=+e;t=+t}return e===t?0:p&&!r?-1:r&&!p?1:e