#!/usr/bin/env node let e,t,r,n,i,o,s,a,l;var c,u,p=require("os"),d=require("path"),f=require("fs"),h=require("crypto"),m=require("http"),v=require("https");require("net");var g=require("tls"),E=require("events"),y=require("assert"),w=require("util"),x=require("fs"),b=require("child_process"),S=require("string_decoder"),I=require("timers"),O=require("buffer"),R=require("stream"),T=require("process"),C=require("buffer"),$=require("path"),_=require("child_process"),A=require("process"),P=require("url"),N=require("os"),L=require("util"),D=require("url");function k(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function U(e){return e&&e.__esModule?e.default:e;}var j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},M={},G={},F=j.parcelRequire810d;null==F&&((F=function(e){if(e in M)return M[e].exports;if(e in G){var t=G[e];delete G[e];var r={id:e,exports:{}};return M[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){G[e]=t;},j.parcelRequire810d=F),F.register("cLprm",function(e,t){"use strict";var r=F("iQYeD");let n=process.env;function i(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!n[e];}):Object.keys(e).every(function(t){return n[t]===e[t];});}Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=Array.isArray(t.env)?t.env:[t.env],o=r.every(function(e){return i(e);});if(e.exports[t.constant]=o,o)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!n[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in n&&n[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!n[e];}):e.exports.isPR=i(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==n.CI&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.exports.name));}),F.register("iQYeD",function(e,t){e.exports=JSON.parse('[{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]}},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),F.register("hHq4F",function(e,t){k(e.exports,"error",()=>i),k(e.exports,"success",()=>o),k(e.exports,"warning",()=>s),k(e.exports,"notice",()=>a),k(e.exports,"info",()=>l);var r=F("94yZ3"),n=F("cLprm");function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function l(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}}),F.register("94yZ3",function(e,t){"use strict";var r,n,i=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),s=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t;},a=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var l=F("6mTwv"),c=F("bRVRZ"),u=F("4BVCZ");let f=s(p),h=s(d);var m=F("21Qsr"),v=F("GfBiA");function g(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw Error(`Input required and not supplied: ${e}`);return t&&!1===t.trimWhitespace?r:r.trim();}function E(e,t={}){l.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e);}function y(e){l.issue("group",e);}function w(){l.issue("endgroup");}(r=n=e.exports.ExitCode||(e.exports.ExitCode={}))[r.Success=0]="Success",r[r.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=u.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t=`ghadelimiter_${m.default()}`;if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);let n=`${e}<<${t}${f.EOL}${r}${f.EOL}${t}`;c.issueCommand("ENV",n);}else l.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){l.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?c.issueCommand("PATH",e):l.issueCommand("add-path",{},e),process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`;},e.exports.getInput=g,e.exports.getMultilineInput=function(e,t){let r=g(e,t).split("\n").filter(e=>""!==e);return r;},e.exports.getBooleanInput=function(e,t){let r=g(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){process.stdout.write(f.EOL),l.issueCommand("set-output",{name:e},t);},e.exports.setCommandEcho=function(e){l.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=n.Failure,E(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){l.issueCommand("debug",{},e);},e.exports.error=E,e.exports.warning=function(e,t={}){l.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){l.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+f.EOL);},e.exports.startGroup=y,e.exports.endGroup=w,e.exports.group=function(e,t){return a(this,void 0,void 0,function*(){let r;y(e);try{r=yield t();}finally{w();}return r;});},e.exports.saveState=function(e,t){l.issueCommand("save-state",{name:e},t);},e.exports.getState=function(e){return process.env[`STATE_${e}`]||"";},e.exports.getIDToken=function(e){return a(this,void 0,void 0,function*(){return yield v.OidcClient.getIDToken(e);});};var x=F("1yBCw");Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return x.summary;}});var x=F("1yBCw");Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return x.markdownSummary;}});var b=F("1tHq1");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return b.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return b.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return b.toPlatformPath;}});}),F.register("6mTwv",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let o=i(p);var s=F("4BVCZ");function a(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+o.EOL);}e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${s.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}}),F.register("4BVCZ",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),F.register("bRVRZ",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;let o=i(f),s=i(p);var a=F("4BVCZ");e.exports.issueCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!o.existsSync(r))throw Error(`Missing file at path: ${r}`);o.appendFileSync(r,`${a.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"});};}),F.register("21Qsr",function(e,t){k(e.exports,"default",()=>i);var r=F("lr0KB"),n=F("671Sw"),i=function(e,t,i){e=e||{};let o=e.random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),F.register("lr0KB",function(e,t){k(e.exports,"default",()=>i);let r=new Uint8Array(256),n=r.length;function i(){return n>r.length-16&&(U(h).randomFillSync(r),n=0),r.slice(n,n+=16);}}),F.register("671Sw",function(e,t){k(e.exports,"default",()=>i);var r=F("bfNI0");let n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).substr(1));var i=function(e,t=0){let i=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!(0,r.default)(i))throw TypeError("Stringified UUID is invalid");return i;};}),F.register("bfNI0",function(e,t){k(e.exports,"default",()=>n);var r=F("k4edj"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),F.register("k4edj",function(e,t){k(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),F.register("GfBiA",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=F("aPbbM"),i=F("5UVtg"),o=F("94yZ3");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} Error Message: ${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug(`ID token url is ${t}`);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error(`Error message: ${e.message}`);}});}}e.exports.OidcClient=s;}),F.register("aPbbM",function(e,t){"use strict";var r,n,i,o,s,a=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),l=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),c=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return l(t,e),t;},u=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=c(m),d=c(v),f=c(F("dG8Uc")),h=c(F("j6C2A"));(r=i=e.exports.HttpCodes||(e.exports.HttpCodes={}))[r.OK=200]="OK",r[r.MultipleChoices=300]="MultipleChoices",r[r.MovedPermanently=301]="MovedPermanently",r[r.ResourceMoved=302]="ResourceMoved",r[r.SeeOther=303]="SeeOther",r[r.NotModified=304]="NotModified",r[r.UseProxy=305]="UseProxy",r[r.SwitchProxy=306]="SwitchProxy",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",r[r.BadRequest=400]="BadRequest",r[r.Unauthorized=401]="Unauthorized",r[r.PaymentRequired=402]="PaymentRequired",r[r.Forbidden=403]="Forbidden",r[r.NotFound=404]="NotFound",r[r.MethodNotAllowed=405]="MethodNotAllowed",r[r.NotAcceptable=406]="NotAcceptable",r[r.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",r[r.RequestTimeout=408]="RequestTimeout",r[r.Conflict=409]="Conflict",r[r.Gone=410]="Gone",r[r.TooManyRequests=429]="TooManyRequests",r[r.InternalServerError=500]="InternalServerError",r[r.NotImplemented=501]="NotImplemented",r[r.BadGateway=502]="BadGateway",r[r.ServiceUnavailable=503]="ServiceUnavailable",r[r.GatewayTimeout=504]="GatewayTimeout",(n=o=e.exports.Headers||(e.exports.Headers={})).Accept="accept",n.ContentType="content-type",(s=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let g=[i.MovedPermanently,i.ResourceMoved,i.SeeOther,i.TemporaryRedirect,i.PermanentRedirect],E=[i.BadGateway,i.ServiceUnavailable,i.GatewayTimeout],y=["OPTIONS","GET","DELETE","HEAD"];class w extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,w.prototype);}}e.exports.HttpClientError=w;class x{constructor(e){this.message=e;}readBody(){return u(this,void 0,void 0,function*(){return new Promise(e=>u(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=x,e.exports.isHttps=function(e){let t=new URL(e);return"https:"===t.protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return u(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return u(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return u(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return u(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return u(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return u(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return u(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return u(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return u(this,void 0,void 0,function*(){t[o.Accept]=this._getExistingOrDefaultHeader(t,o.Accept,s.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return u(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,s.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,s.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return u(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,s.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,s.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return u(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[o.Accept]=this._getExistingOrDefaultHeader(r,o.Accept,s.ApplicationJson),r[o.ContentType]=this._getExistingOrDefaultHeader(r,o.ContentType,s.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return u(this,void 0,void 0,function*(){let o;if(this._disposed)throw Error("Client has already been disposed.");let s=new URL(t),a=this._prepareRequest(e,s,n),l=this._allowRetries&&y.includes(e)?this._maxRetries+1:1,c=0;do{if((o=yield this.requestRaw(a,r))&&o.message&&o.message.statusCode===i.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(o)){e=t;break;}if(e)return e.handleAuthentication(this,a,r);break;}let t=this._maxRedirects;for(;o.message.statusCode&&g.includes(o.message.statusCode)&&this._allowRedirects&&t>0;){let i=o.message.headers.location;if(!i)break;let l=new URL(i);if("https:"===s.protocol&&s.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw 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.");if(yield o.readBody(),l.hostname!==s.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),o=yield this.requestRaw(a,r),t--;}if(!o.message.statusCode||!E.includes(o.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1;function o(e,t){i||(i=!0,r(e,t));}let s=e.httpModule.request(e.options,e=>{let t=new x(e);o(void 0,t);});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),o(Error(`Request timeout: ${e.options.path}`));}),s.on("error",function(e){o(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},b(this.requestOptions.headers),b(e||{})):b(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=b(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},n="https:"===r.protocol;t=(i?n?h.httpsOverHttps:h.httpsOverHttp:n?h.httpOverHttps:h.httpOverHttp)(e),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return u(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return u(this,void 0,void 0,function*(){return new Promise((r,n)=>u(this,void 0,void 0,function*(){let o,s;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===i.NotFound&&r(l);try{(s=yield e.readBody())&&s.length>0&&(o=t&&t.deserializeDates?JSON.parse(s,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(s),l.result=o),l.headers=e.message.headers;}catch(e){}if(a>299){let e;e=o&&o.message?o.message:s&&s.length>0?s:`Failed request: (${a})`;let t=new w(e,a);t.result=l.result,n(t);}else r(l);}));});}};let b=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),F.register("dG8Uc",function(e,t){"use strict";function r(e){let t;if(!e.hostname)return!1;let r=e.hostname;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(r))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||"";if(!n)return!1;e.port?t=Number(e.port):"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&i.push(`${i[0]}:${t}`),n.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),F.register("j6C2A",function(e,t){e.exports=F("3axfE");}),F.register("3axfE",function(e,t){var r,n,i,o,s,a;"use strict";function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||m.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=u(r,n,i),s=0,a=t.requests.length;sr,e=>r=e),k(e.exports,"httpsOverHttp",()=>n,e=>n=e),k(e.exports,"httpOverHttps",()=>i,e=>i=e),k(e.exports,"httpsOverHttps",()=>o,e=>o=e),k(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new l(e);return t.request=m.request,t;},n=function(e){var t=new l(e);return t.request=m.request,t.createSocket=c,t.defaultPort=443,t;},i=function(e){var t=new l(e);return t.request=v.request,t;},o=function(e){var t=new l(e);return t.request=v.request,t.createSocket=c,t.defaultPort=443,t;},w.inherits(l,E.EventEmitter),l.prototype.addRequest=function(e,t,r,n){var i=this,o=p({request:e},i.options,u(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},l.prototype.createSocket=function(e,t){var r=this,n={};r.sockets.push(n);var i=p({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),a("making CONNECT request");var o=r.request(i);function s(i,s,l){if(o.removeAllListeners(),s.removeAllListeners(),200!==i.statusCode){a("tunneling socket could not be established, statusCode=%d",i.statusCode),s.destroy();var c=Error("tunneling socket could not be established, statusCode="+i.statusCode);c.code="ECONNRESET",e.request.emit("error",c),r.removeSocket(n);return;}if(l.length>0){a("got illegal response body from proxy"),s.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),r.removeSocket(n);return;}return a("tunneling connection has established"),r.sockets[r.sockets.indexOf(n)]=s,t(s);}o.useChunkedEncodingByDefault=!1,o.once("response",function(e){e.upgrade=!0;}),o.once("upgrade",function(e,t,r){process.nextTick(function(){s(e,t,r);});}),o.once("connect",s),o.once("error",function(t){o.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=Error("tunneling socket could not be established, cause="+t.message);i.code="ECONNRESET",e.request.emit("error",i),r.removeSocket(n);}),o.end();},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},s=a=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:function(){};}),F.register("5UVtg",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{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!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{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!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),F.register("1yBCw",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=f.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,f.constants.R_OK|f.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(p.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r=`h${t}`,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),F.register("1tHq1",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(d);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),F.register("ljv3o",function(e,t){var r=d.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";var t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i};function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){void 0!==t[e]||function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),F.register("kAOmP",function(e,t){var r=F("3abeg"),n=F("aaJ7t");let i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],o={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};function a(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;s[e]=r;}}e.exports={create:function(e){return e=Object.assign({},o,e||{}),{format:function(t,o,l){return function(e,t,o){if(function(e,t){let{autoload:r}=t;if(!s[e]){if(n&&r)(function(e){try{a(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(o.locale,{autoload:o.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return i.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,n]=e;if(n>0&&c.push(function(e,t,n){let i=function(e){var t;let r=s[e.locale],n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),t=n;let i=null;if((n=Array.from(new Set(t))).some(function(e){if(void 0!==r[e])return i=r[e],!0;}),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i;}(n),o=r.pluralize(n.locale,t,i[e]);return o.replace("{0}",t);}(t,n,o)),c.length>=o.span)break;}return c.join(o.delimiter);}(t,o,l=Object.assign({},e,l||{}));}};},addLocale:a,defaultConfig:o};}),F.register("3abeg",function(e,t){e.exports=F("ljv3o");}),F.register("aaJ7t",function(e,t){"use strict";e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),F.register("4Htdd",function(e,t){var r=F("cGIAw"),n=F("8clJR"),i=F("g2b4L"),o=F("g2nnw"),s=F("5Qu3J"),a=F("crNym"),l=F("bSF2W"),c=F("6wE69"),u=F("5H4ON"),p=F("i3j0r"),d=F("8C1D7"),f=F("32J1Z"),h=F("dcBxP"),m=F("aB4GU"),v=F("irDn6"),g=F("kw9Vx"),E=F("4kFZG"),y=F("9R1Sv"),w=F("16r1x"),x=F("bIkb5"),b=F("3heUt"),S=F("8KbWe"),I=F("4hSo6"),O=F("2JAaH"),R=F("6mv46"),T=F("evIQy"),C=F("8Q5CX"),$=F("cDt46"),_=F("iyCMl"),A=F("9ZaHZ"),P=F("iGYyG"),N=F("he79Q"),L=F("8nekM"),D=F("6QqRk"),k=F("luNkG"),U=F("505af"),j=F("7SKJZ"),M=F("dojhG"),G=F("JQicg"),B=F("bzUrl"),H=F("78xpO");e.exports={parse:s,valid:a,clean:l,inc:c,diff:u,major:p,minor:d,patch:f,prerelease:h,compare:m,rcompare:v,compareLoose:g,compareBuild:E,sort:y,rsort:w,gt:x,lt:b,eq:S,neq:I,gte:O,lte:R,cmp:T,coerce:C,Comparator:$,Range:_,satisfies:A,toComparators:P,maxSatisfying:N,minSatisfying:L,minVersion:D,validRange:k,outside:U,gtr:j,ltr:M,intersects:G,simplifyRange:B,subset:H,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),F.register("cGIAw",function(e,t){var r=F("8clJR"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=F("16Zus");t=e.exports={};let s=t.re=[],a=t.safeRe=[],l=t.src=[],c=t.t={},u=0,p="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",n],[p,i]],f=e=>{for(let[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},h=(e,t,r)=>{let n=f(t),i=u++;o(e,i,t),c[e]=i,l[i]=t,s[i]=new RegExp(t,r?"g":void 0),a[i]=new RegExp(n,r?"g":void 0);};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),h("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${p}+`),h("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),h("FULL",`^${l[c.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),h("LOOSE",`^${l[c.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),h("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),h("COERCERTL",l[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),F.register("8clJR",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),F.register("16Zus",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),F.register("g2b4L",function(e,t){var r=F("16Zus"),n=F("8clJR"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=F("cGIAw"),a=s.safeRe,l=s.t,c=F("dUFTA"),u=F("g2nnw").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error(`invalid increment argument: ${e}`);}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this;}}e.exports=p;}),F.register("dUFTA",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),F.register("g2nnw",function(e,t){let r=/^[0-9]+$/,n=(e,t)=>{let n=r.test(e),i=r.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:en(t,e)};}),F.register("5Qu3J",function(e,t){var r=F("g2b4L");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),F.register("crNym",function(e,t){var r=F("5Qu3J");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),F.register("bSF2W",function(e,t){var r=F("5Qu3J");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),F.register("6wE69",function(e,t){var r=F("g2b4L");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),F.register("5H4ON",function(e,t){var r=F("5Qu3J");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length,u=!!l.prerelease.length;if(u&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let p=c?"pre":"";return n.major!==i.major?p+"major":n.minor!==i.minor?p+"minor":n.patch!==i.patch?p+"patch":"prerelease";};}),F.register("i3j0r",function(e,t){var r=F("g2b4L");e.exports=(e,t)=>new r(e,t).major;}),F.register("8C1D7",function(e,t){var r=F("g2b4L");e.exports=(e,t)=>new r(e,t).minor;}),F.register("32J1Z",function(e,t){var r=F("g2b4L");e.exports=(e,t)=>new r(e,t).patch;}),F.register("dcBxP",function(e,t){var r=F("5Qu3J");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),F.register("aB4GU",function(e,t){var r=F("g2b4L");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),F.register("irDn6",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>r(t,e,n);}),F.register("kw9Vx",function(e,t){var r=F("aB4GU");e.exports=(e,t)=>r(e,t,!0);}),F.register("4kFZG",function(e,t){var r=F("g2b4L");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),F.register("9R1Sv",function(e,t){var r=F("4kFZG");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),F.register("16r1x",function(e,t){var r=F("4kFZG");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),F.register("bIkb5",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>r(e,t,n)>0;}),F.register("3heUt",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>0>r(e,t,n);}),F.register("8KbWe",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>0===r(e,t,n);}),F.register("4hSo6",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>0!==r(e,t,n);}),F.register("2JAaH",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>r(e,t,n)>=0;}),F.register("6mv46",function(e,t){var r=F("aB4GU");e.exports=(e,t,n)=>0>=r(e,t,n);}),F.register("evIQy",function(e,t){var r=F("8KbWe"),n=F("4hSo6"),i=F("bIkb5"),o=F("2JAaH"),s=F("3heUt"),a=F("6mv46");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError(`Invalid operator: ${t}`);}};}),F.register("8Q5CX",function(e,t){var r=F("g2b4L"),n=F("5Qu3J"),i=F("cGIAw"),o=i.safeRe,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1;}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t);};}),F.register("cDt46",function(e,t){let r=Symbol("SemVer ANY");class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=F("dUFTA"),o=F("cGIAw"),s=o.safeRe,a=o.t,l=F("evIQy"),c=F("16Zus"),u=F("g2b4L"),p=F("iyCMl");}),F.register("iyCMl",function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e)).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!E(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=(this.options.includePrerelease&&v)|(this.options.loose&&g),r=t+":"+e,n=i.get(r);if(n)return n;let o=this.options.loose,l=o?u[p.HYPHENRANGELOOSE]:u[p.HYPHENRANGE];a("hyphen replace",e=e.replace(l,A(this.options.includePrerelease))),a("comparator trim",e=e.replace(u[p.COMPARATORTRIM],d)),a("tilde trim",e=e.replace(u[p.TILDETRIM],f)),a("caret trim",e=e.replace(u[p.CARETTRIM],h));let c=e.split(" ").map(e=>x(e,this.options)).join(" ").split(/\s+/).map(e=>_(e,this.options));o&&(c=c.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(u[p.COMPARATORLOOSE])))),a("range list",c);let m=new Map(),y=c.map(e=>new s(e,this.options));for(let e of y){if(E(e))return[e];m.set(e.value,e);}m.size>1&&m.has("")&&m.delete("");let w=[...m.values()];return i.set(r,w),w;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new l(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,w=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},x=(e,t)=>(a("comp",e,t),e=O(e,t),a("caret",e),e=S(e,t),a("tildes",e),e=T(e,t),a("xrange",e),e=$(e,t),a("stars",e),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,S=(e,t)=>e.trim().split(/\s+/).map(e=>I(e,t)).join(" "),I=(e,t)=>{let r=t.loose?u[p.TILDELOOSE]:u[p.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s;});},O=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(e,t)=>{a("caret",e,t);let r=t.loose?u[p.CARETLOOSE]:u[p.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let l;return a("caret",e,t,r,i,o,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",l),l;});},T=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>C(e,t)).join(" ")),C=(e,t)=>{e=e.trim();let r=t.loose?u[p.XRANGELOOSE]:u[p.XRANGE];return e.replace(r,(r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);let c=b(i),u=c||b(o),p=u||b(s);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),s=0,">"===n?(n=">=",u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${s}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",r),r;});},$=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[p.STAR],"")),_=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?p.GTE0PRE:p.GTE0],"")),A=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>`${r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:s?`>=${r}`:`>=${r}${e?"-0":""}`} ${l=b(c)?"":b(u)?`<${+c+1}.0.0-0`:b(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:`<=${l}`}`.trim(),P=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),F.register("kS84i",function(e,t){"use strict";var r=F("7o5x0");let n=Symbol("max"),i=Symbol("length"),o=Symbol("lengthCalculator"),s=Symbol("allowStale"),a=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),u=Symbol("lruList"),p=Symbol("cache"),d=Symbol("updateAgeOnGet"),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e),a=o.value;return this[l]&&!this[c]&&this[l](e,a.value),a.now=s,a.maxAge=r,a.value=t,this[i]+=d-a.length,a.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){if(!this[p].has(e))return!1;let t=this[p].get(e).value;return!m(this,t);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),F.register("7o5x0",function(e,t){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;n1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),F.register("iGYyG",function(e,t){var r=F("iyCMl");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),F.register("he79Q",function(e,t){var r=F("g2b4L"),n=F("iyCMl");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(o=e,s=new r(o,i));}),o;};}),F.register("8nekM",function(e,t){var r=F("g2b4L"),n=F("iyCMl");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(o=e,s=new r(o,i));}),o;};}),F.register("6QqRk",function(e,t){var r=F("g2b4L"),n=F("iyCMl"),i=F("bIkb5");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),F.register("luNkG",function(e,t){var r=F("iyCMl");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),F.register("505af",function(e,t){var r=F("g2b4L"),n=F("cDt46");let{ANY:i}=n;var o=F("iyCMl"),s=F("9ZaHZ"),a=F("bIkb5"),l=F("3heUt"),c=F("6mv46"),u=F("2JAaH");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),F.register("7SKJZ",function(e,t){var r=F("505af");e.exports=(e,t,n)=>r(e,t,">",n);}),F.register("dojhG",function(e,t){var r=F("505af");e.exports=(e,t,n)=>r(e,t,"<",n);}),F.register("JQicg",function(e,t){var r=F("iyCMl");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),F.register("bzUrl",function(e,t){var r=F("9ZaHZ"),n=F("aB4GU");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l){let n=r(e,t,i);n?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);}s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push(`<=${t}`):c.push(`${e} - ${t}`):c.push(`>=${e}`):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,String(n),r)||c&&!o(e,String(c),r))return null;for(let n of t)if(!o(e,String(n),r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,String(e),r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,String(e),r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),F.register("2heqc",function(e,t){"use strict";var r,n,i=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),s=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return o(t,e),t;},a=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0;var l=F("lxvYw"),c=F("izMKk"),u=F("3GPt4");let f=s(p),h=s(d);var m=F("cxUw3");function v(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw Error(`Input required and not supplied: ${e}`);return t&&!1===t.trimWhitespace?r:r.trim();}function g(e,t={}){l.issueCommand("error",u.toCommandProperties(t),e instanceof Error?e.toString():e);}function E(e){l.issue("group",e);}function y(){l.issue("endgroup");}(r=n=e.exports.ExitCode||(e.exports.ExitCode={}))[r.Success=0]="Success",r[r.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=u.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n)return c.issueFileCommand("ENV",c.prepareKeyValueMessage(e,t));l.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){l.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?c.issueFileCommand("PATH",e):l.issueCommand("add-path",{},e),process.env.PATH=`${e}${h.delimiter}${process.env.PATH}`;},e.exports.getInput=v,e.exports.getMultilineInput=function(e,t){let r=v(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=v(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){let r=process.env.GITHUB_OUTPUT||"";if(r)return c.issueFileCommand("OUTPUT",c.prepareKeyValueMessage(e,t));process.stdout.write(f.EOL),l.issueCommand("set-output",{name:e},u.toCommandValue(t));},e.exports.setCommandEcho=function(e){l.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=n.Failure,g(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){l.issueCommand("debug",{},e);},e.exports.error=g,e.exports.warning=function(e,t={}){l.issueCommand("warning",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){l.issueCommand("notice",u.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+f.EOL);},e.exports.startGroup=E,e.exports.endGroup=y,e.exports.group=function(e,t){return a(this,void 0,void 0,function*(){let r;E(e);try{r=yield t();}finally{y();}return r;});},e.exports.saveState=function(e,t){let r=process.env.GITHUB_STATE||"";if(r)return c.issueFileCommand("STATE",c.prepareKeyValueMessage(e,t));l.issueCommand("save-state",{name:e},u.toCommandValue(t));},e.exports.getState=function(e){return process.env[`STATE_${e}`]||"";},e.exports.getIDToken=function(e){return a(this,void 0,void 0,function*(){return yield m.OidcClient.getIDToken(e);});};var w=F("a9gnA");Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return w.summary;}});var w=F("a9gnA");Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return w.markdownSummary;}});var x=F("3zXsD");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return x.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return x.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return x.toPlatformPath;}});}),F.register("lxvYw",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let o=i(p);var s=F("3GPt4");function a(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+o.EOL);}e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${s.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,s.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}}),F.register("3GPt4",function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),F.register("izMKk",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let o=i(f),s=i(p);var a=F("21Qsr"),l=F("3GPt4");e.exports.issueFileCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!o.existsSync(r))throw Error(`Missing file at path: ${r}`);o.appendFileSync(r,`${l.toCommandValue(t)}${s.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r=`ghadelimiter_${a.default()}`,n=l.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${s.EOL}${n}${s.EOL}${r}`;};}),F.register("cxUw3",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=F("aPbbM"),i=F("5UVtg"),o=F("2heqc");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} Error Message: ${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug(`ID token url is ${t}`);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error(`Error message: ${e.message}`);}});}}e.exports.OidcClient=s;}),F.register("a9gnA",function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=f.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,f.constants.R_OK|f.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(p.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL();}addHeading(e,t){let r=`h${t}`,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=s,e.exports.summary=s;}),F.register("3zXsD",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(d);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),F.register("A8hFE",function(e,t){k(e.exports,"addExeExt",()=>l),k(e.exports,"addShExt",()=>p),k(e.exports,"addShRelativePrefix",()=>f),k(e.exports,"dirname",()=>d.dirname),k(e.exports,"join",()=>d.join);var r=F("9O4vc"),n=F("eVYO7");function i(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function o(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function s(e,t=!0){return t?(0,d.basename)(e):(0,d.basename)(e,(0,d.extname)(e));}function a(e){return(0,d.normalize)(e).replace(RegExp((0,r.default)(d.sep)+"$"),"");}function l(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function c(e,t){let r=(0,d.extname)(e),n=`${t}${(0,d.basename)(e,r)}${r}`;return(0,d.join)((0,d.dirname)(e),n);}function u(e,t){let r=(0,d.extname)(e),n=`${(0,d.basename)(e,r)}${t}${r}`;return(0,d.join)((0,d.dirname)(e),n);}function p(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function f(e){return"win32"===process.platform?e:"./"+e;}function h(e){let t=(0,d.extname)(e).length;return e.slice(0,-t);}function m(e,t){return U(n)(e,t);}function v(e,t){let r=(0,d.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+d.sep)||r===(0,d.resolve)(e));}var g={},E={};o(E,"name",()=>s);var y={};o(y,"normalizeTrim",()=>a);var w={};o(w,"addExeExt",()=>l);var x={};o(x,"addNamePrefix",()=>c);var b={};o(b,"addNameSuffix",()=>u);var S={};o(S,"addShExt",()=>p);var I={};o(I,"addShRelativePrefix",()=>f);var O={};o(O,"removeExt",()=>h);var R={};o(R,"replaceExt",()=>m);var T={};o(T,"isPathInside",()=>v),i(g,E),i(g,y),i(g,w),i(g,x),i(g,b),i(g,S),i(g,I),i(g,O),i(g,R),i(g,T);}),F.register("9O4vc",function(e,t){k(e.exports,"default",()=>r);function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}}),F.register("eVYO7",function(e,t){"use strict";e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=d.basename(e,d.extname(e))+t,i=d.join(d.dirname(e),n);return(r=e.slice(0,2))==="."+d.sep||"./"===r?"."+d.sep+i:i;};}),F.register("gRK0M",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;nr);async function r(e){try{return await(0,x.promises).access(e),!0;}catch{return!1;}}}),F.register("kSdX3",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let s=i(d),a=i(F("11Ly6"));function l(e){return o(this,void 0,void 0,function*(){if(a.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield a.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error(`File was unable to be removed ${e}`);}});}function c(e){return o(this,void 0,void 0,function*(){y.ok(e,"a path argument must be provided"),yield a.mkdir(e,{recursive:!0});});}function u(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(a.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(s.delimiter))e&&t.push(e);if(a.isRooted(e)){let r=yield a.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(s.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(s.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield a.tryGetExecutablePath(s.join(i,e),t);r&&n.push(r);}return n;});}function p(e,t,r){return o(this,void 0,void 0,function*(){if((yield a.lstat(e)).isSymbolicLink()){try{yield a.lstat(t),yield a.unlink(t);}catch(e){"EPERM"===e.code&&(yield a.chmod(t,"0666"),yield a.unlink(t));}let r=yield a.readlink(e);yield a.symlink(r,t,a.IS_WINDOWS?"junction":null);}else(!(yield a.exists(t))||r)&&(yield a.copyFile(e,t));});}e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:l}=function(e){let t=null==e.force||e.force,r=!!e.recursive,n=null==e.copySourceDirectory||!!e.copySourceDirectory;return{force:t,recursive:r,copySourceDirectory:n};}(r),u=(yield a.exists(t))?yield a.stat(t):null;if(u&&u.isFile()&&!n)return;let d=u&&u.isDirectory()&&l?s.join(t,s.basename(e)):t;if(!(yield a.exists(e)))throw Error(`no such file or directory: ${e}`);let f=yield a.stat(e);if(f.isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(n>=255)return;n++,yield c(r);let o=yield a.readdir(t);for(let s of o){let o=`${t}/${s}`,l=`${r}/${s}`,c=yield a.lstat(o);c.isDirectory()?yield e(o,l,n,i):yield p(o,l,i);}yield a.chmod(r,(yield a.stat(t)).mode);});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===s.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield p(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield a.exists(t)){let n=!0;if((yield a.isDirectory(t))&&(t=s.join(t,s.basename(e)),n=yield a.exists(t)),n){if(null==r.force||r.force)yield l(t);else throw Error("Destination already exists");}}yield c(s.dirname(t)),yield a.rename(e,t);});},e.exports.rmRF=l,e.exports.mkdirP=c,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(a.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);}return r;}let n=yield u(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=u;}),F.register("11Ly6",function(e,t){"use strict";var r,n=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t;},s=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let a=o(f),l=o(d);function c(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=a.promises,e.exports.chmod=r.chmod,e.exports.copyFile=r.copyFile,e.exports.lstat=r.lstat,e.exports.mkdir=r.mkdir,e.exports.open=r.open,e.exports.readdir=r.readdir,e.exports.readlink=r.readlink,e.exports.rename=r.rename,e.exports.rm=r.rm,e.exports.rmdir=r.rmdir,e.exports.stat=r.stat,e.exports.symlink=r.symlink,e.exports.unlink=r.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=a.constants.O_RDONLY,e.exports.exists=function(t){return s(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return s(this,void 0,void 0,function*(){let n=r?yield e.exports.stat(t):yield e.exports.lstat(t);return n.isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return s(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=l.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(c(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=l.dirname(t),n=l.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=l.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(c(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),F.register("8kgpT",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let s=i(F("feUtB"));var a=F("2heqc");e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=p.platform();for(let o of n){let n=o.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version);}return r;}))){a.debug(`matched ${o.version}`),l=o;break;}}return l&&c&&((o=Object.assign({},l)).files=[c]),o;});},e.exports._getOsVersion=function(){let t=p.platform(),r="";if("darwin"===t)r=b.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t){let e=t.split("\n");for(let t of e){let e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return f.existsSync(e)?r=f.readFileSync(e).toString():f.existsSync(t)&&(r=f.readFileSync(t).toString()),r;};}),F.register("feUtB",function(e,t){t=e.exports=p,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r,n=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=t.tokens={},a=0;function l(e){s[e]=a++;}l("NUMERICIDENTIFIER"),o[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",l("NUMERICIDENTIFIERLOOSE"),o[s.NUMERICIDENTIFIERLOOSE]="[0-9]+",l("NONNUMERICIDENTIFIER"),o[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",l("MAINVERSION"),o[s.MAINVERSION]="("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")\\.("+o[s.NUMERICIDENTIFIER]+")",l("MAINVERSIONLOOSE"),o[s.MAINVERSIONLOOSE]="("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")\\.("+o[s.NUMERICIDENTIFIERLOOSE]+")",l("PRERELEASEIDENTIFIER"),o[s.PRERELEASEIDENTIFIER]="(?:"+o[s.NUMERICIDENTIFIER]+"|"+o[s.NONNUMERICIDENTIFIER]+")",l("PRERELEASEIDENTIFIERLOOSE"),o[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+o[s.NUMERICIDENTIFIERLOOSE]+"|"+o[s.NONNUMERICIDENTIFIER]+")",l("PRERELEASE"),o[s.PRERELEASE]="(?:-("+o[s.PRERELEASEIDENTIFIER]+"(?:\\."+o[s.PRERELEASEIDENTIFIER]+")*))",l("PRERELEASELOOSE"),o[s.PRERELEASELOOSE]="(?:-?("+o[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+o[s.PRERELEASEIDENTIFIERLOOSE]+")*))",l("BUILDIDENTIFIER"),o[s.BUILDIDENTIFIER]="[0-9A-Za-z-]+",l("BUILD"),o[s.BUILD]="(?:\\+("+o[s.BUILDIDENTIFIER]+"(?:\\."+o[s.BUILDIDENTIFIER]+")*))",l("FULL"),l("FULLPLAIN"),o[s.FULLPLAIN]="v?"+o[s.MAINVERSION]+o[s.PRERELEASE]+"?"+o[s.BUILD]+"?",o[s.FULL]="^"+o[s.FULLPLAIN]+"$",l("LOOSEPLAIN"),o[s.LOOSEPLAIN]="[v=\\s]*"+o[s.MAINVERSIONLOOSE]+o[s.PRERELEASELOOSE]+"?"+o[s.BUILD]+"?",l("LOOSE"),o[s.LOOSE]="^"+o[s.LOOSEPLAIN]+"$",l("GTLT"),o[s.GTLT]="((?:<|>)?=?)",l("XRANGEIDENTIFIERLOOSE"),o[s.XRANGEIDENTIFIERLOOSE]=o[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",l("XRANGEIDENTIFIER"),o[s.XRANGEIDENTIFIER]=o[s.NUMERICIDENTIFIER]+"|x|X|\\*",l("XRANGEPLAIN"),o[s.XRANGEPLAIN]="[v=\\s]*("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:\\.("+o[s.XRANGEIDENTIFIER]+")(?:"+o[s.PRERELEASE]+")?"+o[s.BUILD]+"?)?)?",l("XRANGEPLAINLOOSE"),o[s.XRANGEPLAINLOOSE]="[v=\\s]*("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+o[s.XRANGEIDENTIFIERLOOSE]+")(?:"+o[s.PRERELEASELOOSE]+")?"+o[s.BUILD]+"?)?)?",l("XRANGE"),o[s.XRANGE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAIN]+"$",l("XRANGELOOSE"),o[s.XRANGELOOSE]="^"+o[s.GTLT]+"\\s*"+o[s.XRANGEPLAINLOOSE]+"$",l("COERCE"),o[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",l("COERCERTL"),i[s.COERCERTL]=RegExp(o[s.COERCE],"g"),l("LONETILDE"),o[s.LONETILDE]="(?:~>?)",l("TILDETRIM"),o[s.TILDETRIM]="(\\s*)"+o[s.LONETILDE]+"\\s+",i[s.TILDETRIM]=RegExp(o[s.TILDETRIM],"g"),l("TILDE"),o[s.TILDE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAIN]+"$",l("TILDELOOSE"),o[s.TILDELOOSE]="^"+o[s.LONETILDE]+o[s.XRANGEPLAINLOOSE]+"$",l("LONECARET"),o[s.LONECARET]="(?:\\^)",l("CARETTRIM"),o[s.CARETTRIM]="(\\s*)"+o[s.LONECARET]+"\\s+",i[s.CARETTRIM]=RegExp(o[s.CARETTRIM],"g"),l("CARET"),o[s.CARET]="^"+o[s.LONECARET]+o[s.XRANGEPLAIN]+"$",l("CARETLOOSE"),o[s.CARETLOOSE]="^"+o[s.LONECARET]+o[s.XRANGEPLAINLOOSE]+"$",l("COMPARATORLOOSE"),o[s.COMPARATORLOOSE]="^"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+")$|^$",l("COMPARATOR"),o[s.COMPARATOR]="^"+o[s.GTLT]+"\\s*("+o[s.FULLPLAIN]+")$|^$",l("COMPARATORTRIM"),o[s.COMPARATORTRIM]="(\\s*)"+o[s.GTLT]+"\\s*("+o[s.LOOSEPLAIN]+"|"+o[s.XRANGEPLAIN]+")",i[s.COMPARATORTRIM]=RegExp(o[s.COMPARATORTRIM],"g"),l("HYPHENRANGE"),o[s.HYPHENRANGE]="^\\s*("+o[s.XRANGEPLAIN]+")\\s+-\\s+("+o[s.XRANGEPLAIN]+")\\s*$",l("HYPHENRANGELOOSE"),o[s.HYPHENRANGELOOSE]="^\\s*("+o[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+o[s.XRANGEPLAINLOOSE]+")\\s*$",l("STAR"),o[s.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c256||!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new p(e,t);}catch(e){return null;}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>256)throw TypeError("version is longer than 256 characters");if(!(this instanceof p))return new p(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>n||this.major<0)throw TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new p(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(g(e,t))return null;var r=u(e),n=u(t),i="";if(r.prerelease.length||n.prerelease.length){i="pre";var o="prerelease";}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return i+s;return o;},t.compareIdentifiers=f;var d=/^[0-9]+$/;function f(e,t){var r=d.test(e),n=d.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e0;}function v(e,t,r){return 0>h(e,t,r);}function g(e,t,r){return 0===h(e,t,r);}function E(e,t,r){return 0!==h(e,t,r);}function y(e,t,r){return h(e,t,r)>=0;}function w(e,t,r){return 0>=h(e,t,r);}function x(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return g(e,r,n);case"!=":return E(e,r,n);case">":return m(e,r,n);case">=":return y(e,r,n);case"<":return v(e,r,n);case"<=":return w(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function b(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof b){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof b))return new b(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===S?this.value="":this.value=this.operator+this.semver.version,r("comp",this);}t.rcompareIdentifiers=function(e,t){return f(t,e);},t.major=function(e,t){return new p(e,t).major;},t.minor=function(e,t){return new p(e,t).minor;},t.patch=function(e,t){return new p(e,t).patch;},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0);},t.compareBuild=function(e,t,r){var n=new p(e,r),i=new p(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return h(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=m,t.lt=v,t.eq=g,t.neq=E,t.gte=y,t.lte=w,t.cmp=x,t.Comparator=b;var S={};function I(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof I)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new I(e.raw,t);if(e instanceof b)return new I(e.value,t);if(!(this instanceof I))return new I(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+e);this.format();}function O(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function R(e){return!e||"x"===e.toLowerCase()||"*"===e;}function T(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=R(r)?"":R(n)?">="+r+".0.0":R(i)?">="+r+"."+n+".0":">="+t)+" "+(a=R(l)?"":R(c)?"<"+(+l+1)+".0.0":R(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function C(e,t,r){try{t=new I(t,r);}catch(e){return!1;}return t.test(e);}function $(e,t,r,n){switch(e=new p(e,n),t=new I(t,n),r){case">":i=m,o=w,s=v,a=">",l=">=";break;case"<":i=v,o=y,s=m,a="<",l="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(C(e,t,n))return!1;for(var i,o,s,a,l,c=0;c=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,n)?d=e:s(e.semver,f.semver,n)&&(f=e);}),d.operator===a||d.operator===l||(!f.operator||f.operator===a)&&o(e,f.semver)||f.operator===l&&s(e,f.semver))return!1;}return!0;}b.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new p(r[2],this.options.loose):this.semver=S;},b.prototype.toString=function(){return this.value;},b.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===S||e===S)return!0;if("string"==typeof e)try{e=new p(e,this.options);}catch(e){return!1;}return x(e,this.operator,this.semver,this.options);},b.prototype.intersects=function(e,t){if(!(e instanceof b))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new I(e.value,t),C(this.value,r,t));if(""===e.operator)return""===e.value||(r=new I(this.value,t),C(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=x(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=x(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=I,I.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},I.prototype.toString=function(){return this.range;},I.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];r("hyphen replace",e=e.replace(n,T)),r("comparator trim",e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],a=e.split(" ").map(function(e){var t,n,o,a;return r("comp",t=e,n=this.options),r("caret",t=t.trim().split(/\s+/).map(function(e){var t;return r("caret",e,n),t=n.loose?i[s.CARETLOOSE]:i[s.CARET],e.replace(t,function(t,n,i,o,s){var a;return r("caret",e,t,n,i,o,s),R(n)?a="":R(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":R(o)?a="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),a="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",a),a;});}).join(" ")),r("tildes",t=t.trim().split(/\s+/).map(function(e){var t;return t=n.loose?i[s.TILDELOOSE]:i[s.TILDE],e.replace(t,function(t,n,i,o,s){var a;return r("tilde",e,t,n,i,o,s),R(n)?a="":R(i)?a=">="+n+".0.0 <"+(+n+1)+".0.0":R(o)?a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":s?(r("replaceTilde pr",s),a=">="+n+"."+i+"."+o+"-"+s+" <"+n+"."+(+i+1)+".0"):a=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",a),a;});}).join(" ")),r("xrange",(r("replaceXRanges",o=t,n),t=o.split(/\s+/).map(function(e){var t,o;return t=(t=e).trim(),o=n.loose?i[s.XRANGELOOSE]:i[s.XRANGE],t.replace(o,function(e,i,o,s,a,l){r("xRange",t,e,i,o,s,a,l);var c=R(o),u=c||R(s),p=u||R(a);return"="===i&&p&&(i=""),l=n.includePrerelease?"-0":"",c?e=">"===i||"<"===i?"<0.0.0-0":"*":i&&p?(u&&(s=0),a=0,">"===i?(i=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",u?o=+o+1:s=+s+1),e=i+o+"."+s+"."+a+l):u?e=">="+o+".0.0"+l+" <"+(+o+1)+".0.0"+l:p&&(e=">="+o+"."+s+".0"+l+" <"+o+"."+(+s+1)+".0"+l),r("xRange return",e),e;});}).join(" "))),r("stars",(r("replaceStars",a=t,n),t=a.trim().replace(i[s.STAR],""))),t;},this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter(function(e){return!!e.match(o);})),a=a.map(function(e){return new b(e,this.options);},this);},I.prototype.intersects=function(e,t){if(!(e instanceof I))throw TypeError("a Range is required");return this.set.some(function(r){return O(r,t)&&e.set.some(function(e){return O(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new I(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},I.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options);}catch(e){return!1;}for(var t=0;t0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=C,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var o=new I(t,r);}catch(e){return null;}return e.forEach(function(e){o.test(e)&&(!n||-1===i.compare(e))&&(n=e,i=new p(n,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var o=new I(t,r);}catch(e){return null;}return e.forEach(function(e){o.test(e)&&(!n||1===i.compare(e))&&(n=e,i=new p(n,r));}),n;},t.minVersion=function(e,t){e=new I(e,t);var r=new p("0.0.0");if(e.test(r)||(r=new p("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||m(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new I(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return $(e,t,"<",r);},t.gtr=function(e,t,r){return $(e,t,">",r);},t.outside=$,t.prerelease=function(e,t){var r=u(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new I(e,r),t=new I(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof p)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1;}else n=e.match(i[s.COERCE]);return null===n?null:u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),F.register("bxsAi",function(e,t){var r=F("lyWSC"),n=F("2cprb");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),F.register("lyWSC",function(e,t){e.exports=function(){return h.randomBytes(16);};}),F.register("2cprb",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),F.register("2mVwa",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=i(F("19yql"));function a(e,t,r){return o(this,void 0,void 0,function*(){let n=s.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];t=n.slice(1).concat(t||[]);let o=new s.ToolRunner(i,t,r);return o.exec();});}e.exports.exec=a,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",s="",l=new S.StringDecoder("utf8"),c=new S.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{o+=l.write(e),u&&u(e);},stderr:e=>{s+=c.write(e),p&&p(e);}}),f=yield a(e,t,Object.assign(Object.assign({},r),{listeners:d}));return{exitCode:f,stdout:o+=l.end(),stderr:s+=c.end()};});};}),F.register("19yql",function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(p),a=i(E),l=i(b),c=i(d),u=i(F("kSdX3")),f=i(F("11Ly6")),h="win32"===process.platform;class m extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(h){if(this._isCmdFile())for(let e of(i+=r,n))i+=` ${e}`;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=` ${e}`;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=` ${this._windowsQuoteCmdArg(e)}`;}else for(let e of(i+=r,n))i+=` ${e}`;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL);}return n;}catch(e){return this._debug(`error processing line. Failed with error ${e}`),"";}}_getSpawnFileName(){return h&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(h&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT");}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){e=e||{};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||h&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug(`exec tool: ${this.toolPath}`),this._debug("arguments:"),this.args))this._debug(` ${e}`);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new v(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield f.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let c="";if(o.stderr&&o.stderr.on("data",e=>{if(n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream){let t=r.failOnStdErr?r.errStream:r.outStream;t.write(e);}c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=m,e.exports.argStringToArray=function(e){let t=[],r=!1,n=!1,i="";function o(e){n&&'"'!==e&&(i+="\\"),i+=e,n=!1;}for(let s=0;s0&&(t.push(i),i="");continue;}o(a);}return i.length>0&&t.push(i.trim()),t;};class v extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=I.setTimeout(v.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t);}e._setResult();}}}}),F.register("3dK75",function(e,t){e.exports=Promise.resolve(require("./actions_python.eaf38279.js")).then(()=>F("8L9T2"));});var B=F("cLprm"),H=F("hHq4F"),q=F("3abeg"),V={};(function(){F("ljv3o").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}).call(V);var X={};X=F("kAOmP");"use strict";var W={};W={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}};var z={};const K=p.homedir();function Y(e){return e&&e.__esModule?e.default:e;}function Q(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function J(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise((r,n)=>{J(e,t||{},(e,t)=>{e?n(e):r(t);});});}ey(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function Z(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=ev.sync(e.command,{path:n[eC({env:n})],pathExt:t?d.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=(0,d.resolve)(o?e.options.cwd:"",r)),r;}function ee(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function et(e,t){return eD&&1===e&&!t.file?ee(t.original,"spawn"):null;}function er(e,t,r){let n=eT(e,t,r),i=(0,b.spawn)(n.command,n.args,n.options);return eL.hookChildProcess(i,n),i;}async function en(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=tR(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=tC.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await t_(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new tA());});}),n.getBufferedValue();}function ei(){return null!==Y(ev).sync("sudo",{nothrow:!0});}function eo(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI;}function es(){return eo()&&ei();}function ea(e){return es()?"sudo "+e:e;}function el(e,t=[],r={stdio:"inherit",shell:!0}){return es()?Y(eO).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):Y(eO).sync(e,t,r);}function ec(e,t=[],r={stdio:"inherit",shell:!0}){return es()?Y(eO).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):Y(eO)(e,t,r);}function eu(){return"win32"===process.platform?t4():eo();}z=e=>{if("string"!=typeof e)throw TypeError(`Expected a string, got ${typeof e}`);return K?e.replace(/^~(?=$|\/|\\)/,K):e;};var ep="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==j?j:{},ed={},ef={},eh=ep.parcelRequireb51e;null==eh&&((eh=e=>{if(e in ed)return ed[e].exports;if(e in ef){var t=ef[e];delete ef[e];var r={id:e,exports:{}};return ed[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=(e,t)=>{ef[e]=t;},ep.parcelRequireb51e=eh),eh.register("djkmR",(e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0;}return!1;})(t,r);}function n(e,t,n){(0,f.stat)(e,(i,o)=>{n(i,!i&&r(o,e,t));});}e.exports=n,n.sync=(e,t)=>r((0,f.statSync)(e),e,t);}),eh.register("e1CjR",(e,t)=>{function r(e,t,r){(0,f.stat)(e,(e,i)=>{r(e,!e&&n(i,t));});}function n(e,t){var r,n,i,o,s,a,l;return e.isFile()&&(r=e.mode,n=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),r&parseInt("001",8)||r&l&&i===s||r&a&&n===o||r&(a|l)&&0===o);}e.exports=r,r.sync=(e,t)=>n((0,f.statSync)(e),t);}),eh.register("4c98W",(e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");});var em={};Q(em,"hasSudo",()=>ei),Q(em,"isRoot",()=>eo),Q(em,"isSudo",()=>es),Q(em,"prependSudo",()=>ea),Q(em,"execRootSync",()=>el),Q(em,"execRoot",()=>ec);var ev={};const eg="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,eE=eg?";":":";var ey,ew={};ey=eh("win32"===process.platform||ep.TESTING_WINDOWS?"djkmR":"e1CjR"),ew=J,J.sync=(e,t)=>{try{return ey.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const ex=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),eb=(e,t)=>{let r=t.colon||eE,n=e.match(/\//)||eg&&e.match(/\\/)?[""]:[...(eg?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=eg?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=eg?i.split(r):[""];return eg&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},eS=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=eb(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ex(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=(0,d.join)(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(p,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];ew(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};ev=eS,eS.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=eb(e,t),o=[];for(let s=0;r.length>s;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=(0,d.join)(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;n.length>e;e++){let r=u+n[e];try{if(ew.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r);}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ex(e);};var eI,eO={},eR={},eT={},eC={};const e$=(e={})=>{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(eC=e$).default=e$,eI=e=>Z(e)||Z(e,!0);const e_=/([()\][%!^"`<>&|;, *?])/g;eH=e=>e.replace(e_,"^$1"),eq=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(e_,"^$1"),t&&(e=e.replace(e_,"^$1")),e),eX=/^#!(.*)/,eV=(e="")=>{let t=e.match(eX);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},eW=e=>{let t;let r=Buffer.alloc(150);try{t=(0,f.openSync)(e,"r"),(0,f.readSync)(t,r,0,150,0),(0,f.closeSync)(t);}catch(e){}return eV(""+r);};const eA="win32"===process.platform,eP=/\.(?:com|exe)$/i,eN=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;eT=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!eA)return e;let t=(e=>{e.file=eI(e);let t=e.file&&eW(e.file);return t?(e.args.unshift(e.file),e.command=t,eI(e)):e.file;})(e),r=!eP.test(t);if(e.options.forceShell||r){let r=eN.test(t);e.command=(0,d.normalize)(e.command),e.command=eH(e.command),e.args=e.args.map(e=>eq(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;})(n);};var eL={};const eD="win32"===process.platform;eL={hookChildProcess(e,t){if(!eD)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=et(i,t);if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:et,verifyENOENTSync:(e,t)=>eD&&1===e&&!t.file?ee(t.original,"spawnSync"):null,notFoundError:ee},(eR=er).spawn=er,eR.sync=(e,t,r)=>{let n=eT(e,t,r),i=(0,b.spawnSync)(n.command,n.args,n.options);return i.error=i.error||eL.verifyENOENTSync(i.status,n),i;},eR._parse=eT,eR._enoent=eL,ez=e=>{let t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e;};var ek={};const eU=e=>{let t;e={cwd:process.cwd(),path:process.env[eC()],execPath:process.execPath,...e};let r=(0,d.resolve)(e.cwd),n=[];for(;t!==r;)n.push((0,d.join)(r,"node_modules/.bin")),t=r,r=(0,d.resolve)(r,"..");let i=(0,d.resolve)(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(d.delimiter);};(ek=eU).default=eU,ek.env=e=>{let t={...(e={env:process.env,...e}).env},r=eC({env:t});return e.path=t[r],t[r]=ek(e),t;};var ej={},eM={};const eG=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(eM=eG).default=eG;const eF=new WeakMap(),eB=(e,t={})=>{if("function"!=typeof e)throw TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"",o=function(...s){if(eF.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return eM(o,e),eF.set(o,n),o;};(ej=eB).default=eB,ej.callCount=e=>{if(!eF.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return eF.get(e);};var eH,eq,eV,eX,eW,ez,eK,eY={};Object.defineProperty(eY,"__esModule",{value:!0}),eY.signalsByNumber=eY.signalsByName=void 0;var eQ={};Object.defineProperty(eQ,"__esModule",{value:!0}),eQ.getSignals=void 0;var eJ={};Object.defineProperty(eJ,"__esModule",{value:!0}),eJ.SIGNALS=void 0,eJ.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var eZ={};Object.defineProperty(eZ,"__esModule",{value:!0}),eZ.SIGRTMAX=eZ.getRealtimeSignals=void 0,eZ.getRealtimeSignals=()=>Array.from({length:e2-e1+1},e0);const e0=(e,t)=>({name:"SIGRT"+(t+1),number:e1+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),e1=34,e2=64;eZ.SIGRTMAX=e2,eQ.getSignals=()=>{let e=(0,eZ.getRealtimeSignals)();return[...eJ.SIGNALS,...e].map(e4);};const e4=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=p.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},e3=(0,eQ.getSignals)().reduce((e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}}),{});eY.signalsByName=e3;const e6=(()=>{let e=(0,eQ.getSignals)(),t=Array.from({length:eZ.SIGRTMAX+1},(t,r)=>((e,t)=>{let r=((e,t)=>{let r=t.find(({name:t})=>p.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);})(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};})(r,e));return Object.assign({},...t);})();eY.signalsByNumber=e6;var e8=eY.signalsByName;eK=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{let d=void 0===(i=null===i?void 0:i)?void 0:e8[i].description,f=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o=null===o?void 0:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"==={}.toString.call(n),v=m?`${h} ${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;};var e5={};const e9=["stdin","stdout","stderr"],e7=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return e9.map(t=>e[t]);if(e9.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+e9.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,e9.length)},(e,r)=>t[r]);};(e5=e7).node=e=>{let t=e7(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var te,tt={},tr=ep.process;const tn=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(tn(tr)){var ti,to=eh("4c98W"),ts=/^win/i.test(tr.platform),ta=E;"function"!=typeof ta&&(ta=ta.EventEmitter),tr.__signal_exit_emitter__?ti=tr.__signal_exit_emitter__:((ti=tr.__signal_exit_emitter__=new ta()).count=0,ti.emitted={}),ti.infinite||(ti.setMaxListeners(1/0),ti.infinite=!0);var tl=()=>{tp&&tn(ep.process)&&(tp=!1,to.forEach(e=>{try{tr.removeListener(e,tu[e]);}catch(e){}}),tr.emit=tm,tr.reallyExit=tf,ti.count-=1);};(tt=(e,t)=>{if(!tn(ep.process))return()=>{};y.equal(typeof e,"function","a callback must be provided for exit handler"),!1===tp&&td();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),ti.on(r,e),()=>{ti.removeListener(r,e),0===ti.listeners("exit").length&&0===ti.listeners("afterexit").length&&tl();};}).unload=tl;var tc=(e,t,r)=>{ti.emitted[e]||(ti.emitted[e]=!0,ti.emit(e,t,r));},tu={};to.forEach(e=>{tu[e]=()=>{tn(ep.process)&&tr.listeners(e).length===ti.count&&(tl(),tc("exit",null,e),tc("afterexit",null,e),ts&&"SIGHUP"===e&&(e="SIGINT"),tr.kill(tr.pid,e));};}),tt.signals=()=>to;var tp=!1,td=()=>{!tp&&tn(ep.process)&&(tp=!0,ti.count+=1,to=to.filter(e=>{try{return tr.on(e,tu[e]),!0;}catch(e){return!1;}}),tr.emit=tv,tr.reallyExit=th);};tt.load=td;var tf=tr.reallyExit,th=e=>{tn(ep.process)&&(tr.exitCode=e||0,tc("exit",tr.exitCode,null),tc("afterexit",tr.exitCode,null),tf.call(tr,tr.exitCode));},tm=tr.emit,tv=function(e,t){if("exit"===e&&tn(ep.process)){void 0!==t&&(tr.exitCode=t);var r=tm.apply(this,arguments);return tc("exit",tr.exitCode,null),tc("afterexit",tr.exitCode,null),r;}return tm.apply(this,arguments);};}else tt=()=>()=>{};const tg=e=>e===p.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var tE,ty=(te={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>tg(e)&&!1!==t&&r)(t,r,n))return;let i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;})(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();})(e,t,r,n),n;},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0);},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}));},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;let i=tt(()=>{e.kill();});return n.finally(()=>{i();});}}).spawnedKill,tw=te.spawnedCancel,tx=te.setupTimeout,tb=te.validateTimeout,tS=te.setExitHandler,tI={};const tO=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;tO.writable=e=>tO(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,tO.readable=e=>tO(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,tO.duplex=e=>tO.writable(e)&&tO.readable(e),tO.transform=e=>tO.duplex(e)&&"function"==typeof e._transform,tI=tO;var tR,tT={},tC=O.constants,t$=R.PassThrough;tR=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new t$({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const t_=(0,w.promisify)(R.pipeline);class tA extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(tT=en).buffer=(e,t)=>en(e,{...t,encoding:"buffer"}),tT.array=(e,t)=>en(e,{...t,array:!0}),tT.MaxBufferError=tA;var tP,tN=R.PassThrough;tP=function(){function e(i){return Array.isArray(i)?(i.forEach(e),this):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1}),this);}function t(e){!(r=r.filter(t=>t!==e)).length&&n.readable&&n.end();}var r=[],n=new tN({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),[].slice.call(arguments).forEach(e),n;};const tL=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},tD=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?tT(e,{encoding:t,maxBuffer:n}):tT.buffer(e,{maxBuffer:n});};var tk,tU=(tE={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(tI(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;let r=tP();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s){let a=tD(e,{encoding:n,buffer:i,maxBuffer:o}),l=tD(t,{encoding:n,buffer:i,maxBuffer:o}),c=tD(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},tL(e,a),tL(t,l),tL(r,c)]);}},validateInputSync({input:e}){if(tI(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,tj=tE.getSpawnedResult,tM=tE.makeAllStream,tG=tE.validateInputSync;const tF=(async()=>{})().constructor.prototype,tB=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(tF,e)]);var tH,tq=(tk={mergePromise(e,t){for(let[r,n]of tB){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}return e;},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});})}).mergePromise,tV=tk.getSpawnedPromise;const tX=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],tW=/^[\w.-]+$/,tz=/"/g,tK=/ +/g;var tY=(tH={joinCommand:(e,t)=>tX(e,t).join(" "),getEscapedCommand:(e,t)=>tX(e,t).map(e=>"string"!=typeof e||tW.test(e)?e:`"${e.replace(tz,'\\"')}"`).join(" "),parseCommand(e){let t=[];for(let r of e.trim().split(tK)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,tQ=tH.parseCommand,tJ=tH.getEscapedCommand;const tZ=(e,t,r={})=>{let n=eR._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?ek.env({env:o,cwd:n,execPath:i}):o;})(r),r.stdio=e5(r),"win32"===process.platform&&"cmd"===(0,d.basename)(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},t0=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?ez(t):t:void 0===r?void 0:"",t1=(e,t,r)=>{let n;let i=tZ(e,t,r),o=tY(e,t),s=tJ(e,t);tb(i.options);try{n=(0,b.spawn)(i.file,i.args,i.options);}catch(r){let e=new b.ChildProcess(),t=Promise.reject(eK({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return tq(e,t);}let a=tV(n),l=tx(n,i.options,a),c=tS(n,i.options,l),u={isCanceled:!1};n.kill=ty.bind(null,n.kill.bind(n)),n.cancel=tw.bind(null,n,u);let p=ej(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await tj(n,i.options,c),f=t0(i.options,l),h=t0(i.options,p),m=t0(i.options,d);if(e||0!==t||null!==r){let l=eK({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return tU(n,i.options.input),n.all=tM(n,i.options),tq(n,p);};(eO=t1).sync=(e,t,r)=>{let n;let i=tZ(e,t,r),o=tY(e,t),s=tJ(e,t);tG(i.options);try{n=(0,b.spawnSync)(i.file,i.args,i.options);}catch(e){throw eK({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let a=t0(i.options,n.stdout,n.error),l=t0(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=eK({stdout:a,stderr:l,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},eO.command=(e,t)=>{let[r,...n]=tQ(e);return t1(r,n,t);},eO.commandSync=(e,t)=>{let[r,...n]=tQ(e);return t1.sync(r,n,t);},eO.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=e5.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return t1(o,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};var t2={};Q(t2,"isAdminWindows",()=>t4),Q(t2,"isAdminPosix",()=>t3),Q(t2,"isAdmin",()=>eu);const t4=async()=>{if("win32"!==U(T).platform)return!1;try{var e;return await Y(eO)("fsutil",["dirty","query",null!==(e=U(T).env.systemdrive)&&void 0!==e?e:""]),!0;}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await Y(eO)("fltmc"),!0;}catch{return!1;}})();}},t3=eo;function t6(e){return es()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,d.join)("/Users/",process.env.SUDO_USER,e):(0,d.join)("/home/",process.env.SUDO_USER,e):U(z)(`~/${e}`);}"use strict";var H=F("hHq4F"),t8={},t5=F("4Htdd");function t9(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function t7(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1];},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this;}),o;function a(a){return function(l){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,a[0]&&(s=0)),s;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,n=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){s=0;continue;}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),rO=(e,t)=>{let r=t.colon||rx,n=e.match(/\//)||rw&&e.match(/\\/)?[""]:[...(rw?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=rw?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=rw?i.split(r):[""];return rw&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},rR=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=rO(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(rI(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=d.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(p,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rb(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};ry=rR,rR.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=rO(e,t),o=[];for(let s=0;s{let t=e.env||process.env,r=e.platform||process.platform;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};function rN(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=ry.sync(e.command,{path:n[rA({env:n})],pathExt:t?d.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=d.resolve(o?e.options.cwd:"",r)),r;}"use strict";(rA=rP).default=rP,r_=function(e){return rN(e)||rN(e,!0);};"use strict";"use strict";"use strict";const rL=/([()\][%!^"`<>&|;, *?])/g;var rD={},rk={},rU={};rU=/^#!(.*)/,rk=(e="")=>{let t=e.match(rU);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rD=function(e){let t;let r=Buffer.alloc(150);try{t=f.openSync(e,"r"),f.readSync(t,r,0,150,0),f.closeSync(t);}catch(e){}return rk(r.toString());};"use strict";const rj="win32"===process.platform,rM=/\.(?:com|exe)$/i,rG=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;r$=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!rj)return e;let t=function(e){e.file=r_(e);let t=e.file&&rD(e.file);return t?(e.args.unshift(e.file),e.command=t,r_(e)):e.file;}(e),r=!rM.test(t);if(e.options.forceShell||r){let r=rG.test(t);e.command=d.normalize(e.command),e.command=(0,e.command).replace(rL,"^$1"),e.args=e.args.map(e=>{var t;return t=e,t=(t=`"${t=(t=(t=`${t}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(rL,"^$1"),r&&(t=t.replace(rL,"^$1")),t;});let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);};var rF={};const rB="win32"===process.platform;function rH(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function rq(e,t){return rB&&1===e&&!t.file?rH(t.original,"spawn"):null;}function rV(e,t,r){let n=r$(e,t,r),i=b.spawn(n.command,n.args,n.options);return rF.hookChildProcess(i,n),i;}"use strict";rF={hookChildProcess:function(e,t){if(!rB)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=rq(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:rq,verifyENOENTSync:function(e,t){return rB&&1===e&&!t.file?rH(t.original,"spawnSync"):null;},notFoundError:rH},(rC=rV).spawn=rV,rC.sync=function(e,t,r){let n=r$(e,t,r),i=b.spawnSync(n.command,n.args,n.options);return i.error=i.error||rF.verifyENOENTSync(i.status,n),i;},rC._parse=r$,rC._enoent=rF;"use strict";var rX={};rX=e=>{let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e;};var rW={};"use strict";"use strict";const rz=e=>{let t;e={cwd:process.cwd(),path:process.env[rA()],execPath:process.execPath,...e};let r=d.resolve(e.cwd),n=[];for(;t!==r;)n.push(d.join(r,"node_modules/.bin")),t=r,r=d.resolve(r,"..");let i=d.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(d.delimiter);};(rW=rz).default=rz,rW.env=e=>{e={env:process.env,...e};let t={...e.env},r=rA({env:t});return e.path=t[r],t[r]=rW(e),t;};var rK={},rY={};const rQ=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e;};(rY=rQ).default=rQ;"use strict";"use strict";const rJ=new WeakMap(),rZ=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(rJ.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return rY(o,e),rJ.set(o,n),o;};(rK=rZ).default=rZ,rK.callCount=e=>{if(!rJ.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return rJ.get(e);};"use strict";var r0={},r1={};Object.defineProperty(r1,"__esModule",{value:!0}),r1.signalsByNumber=r1.signalsByName=void 0;"use strict";var r2={};Object.defineProperty(r2,"__esModule",{value:!0}),r2.getSignals=void 0;"use strict";var r4={};Object.defineProperty(r4,"__esModule",{value:!0}),r4.SIGNALS=void 0,r4.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var r3={};Object.defineProperty(r3,"__esModule",{value:!0}),r3.SIGRTMAX=r3.getRealtimeSignals=void 0,r3.getRealtimeSignals=function(){return Array.from({length:r5-r8+1},r6);};const r6=function(e,t){return{name:`SIGRT${t+1}`,number:r8+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"};},r8=34,r5=64;r3.SIGRTMAX=r5,r2.getSignals=function(){let e=(0,r3.getRealtimeSignals)(),t=[...r4.SIGNALS,...e].map(r9);return t;};const r9=function({name:e,number:t,description:r,action:n,forced:i=!1,standard:o}){let{signals:{[e]:s}}=p.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},r7=function(e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}){return{...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}};},ne=function(){let e=(0,r2.getSignals)();return e.reduce(r7,{});}();r1.signalsByName=ne;const nt=function(e,t){let r=nr(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},nr=function(e,t){let r=t.find(({name:t})=>p.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);},nn=function(){let e=(0,r2.getSignals)(),t=r3.SIGRTMAX+1,r=Array.from({length:t},(t,r)=>nt(r,e));return Object.assign({},...r);}();r1.signalsByNumber=nn;var ni=r1.signalsByName;"use strict";const no=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed";r0=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let d=void 0===i?void 0:ni[i].description,f=n&&n.code,h=no({timedOut:l,timeout:p,errorCode:f,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,v="[object Error]"===Object.prototype.toString.call(n),g=v?`${m} ${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;};var ns={};"use strict";const na=["stdin","stdout","stderr"],nl=e=>na.some(t=>void 0!==e[t]),nc=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return na.map(t=>e[t]);if(nl(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${na.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,na.length);return Array.from({length:r},(e,r)=>t[r]);};(ns=nc).node=e=>{let t=nc(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];};var nu={},np={},nd=j.process;const nf=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(nf(nd)){var nh,nm,nv=F("2dWxz"),ng=/^win/i.test(nd.platform),nE=E;"function"!=typeof nE&&(nE=nE.EventEmitter),nd.__signal_exit_emitter__?nm=nd.__signal_exit_emitter__:((nm=nd.__signal_exit_emitter__=new nE()).count=0,nm.emitted={}),nm.infinite||(nm.setMaxListeners(1/0),nm.infinite=!0);var ny=function(){nb&&nf(j.process)&&(nb=!1,nv.forEach(function(e){try{nd.removeListener(e,nx[e]);}catch(e){}}),nd.emit=nR,nd.reallyExit=nI,nm.count-=1);};(np=function(e,t){if(!nf(j.process))return function(){};y.equal(typeof e,"function","a callback must be provided for exit handler"),!1===nb&&nS();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),nm.on(r,e),function(){nm.removeListener(r,e),0===nm.listeners("exit").length&&0===nm.listeners("afterexit").length&&ny();};}).unload=ny;var nw=function(e,t,r){nm.emitted[e]||(nm.emitted[e]=!0,nm.emit(e,t,r));},nx={};nv.forEach(function(e){nx[e]=function(){nf(j.process)&&nd.listeners(e).length===nm.count&&(ny(),nw("exit",null,e),nw("afterexit",null,e),ng&&"SIGHUP"===e&&(e="SIGINT"),nd.kill(nd.pid,e));};}),np.signals=function(){return nv;};var nb=!1,nS=function(){!nb&&nf(j.process)&&(nb=!0,nm.count+=1,nv=nv.filter(function(e){try{return nd.on(e,nx[e]),!0;}catch(e){return!1;}}),nd.emit=nT,nd.reallyExit=nO);};np.load=nS;var nI=nd.reallyExit,nO=function(e){nf(j.process)&&(nd.exitCode=e||0,nw("exit",nd.exitCode,null),nw("afterexit",nd.exitCode,null),nI.call(nd,nd.exitCode));},nR=nd.emit,nT=function(e,t){if(!("exit"===e&&nf(j.process)))return nR.apply(this,arguments);void 0!==t&&(nd.exitCode=t);var r=nR.apply(this,arguments);return nw("exit",nd.exitCode,null),nw("afterexit",nd.exitCode,null),r;};}else np=function(){return function(){};};"use strict";"use strict";const nC=(e,t,r,n)=>{if(!n$(t,r,n))return;let i=nA(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},n$=(e,{forceKillAfterTimeout:t},r)=>n_(e)&&!1!==t&&r,n_=e=>e===p.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),nA=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},nP=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},nN=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=np(()=>{e.kill();});return n.finally(()=>{i();});};var nL=(nu={spawnedKill:(e,t="SIGTERM",r={})=>{let n=e(t);return nC(e,t,r,n),n;},spawnedCancel:(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},setupTimeout:(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{nP(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},setExitHandler:nN}).spawnedKill,nD=nu.spawnedCancel,nk=nu.setupTimeout,nU=nu.validateTimeout,nj=nu.setExitHandler,nM={},nG={};"use strict";"use strict";const nF=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;nF.writable=e=>nF(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,nF.readable=e=>nF(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,nF.duplex=e=>nF.writable(e)&&nF.readable(e),nF.transform=e=>nF.duplex(e)&&"function"==typeof e._transform,nG=nF;var nB={},nH=O.constants,nq=w.promisify,nV={},nX=R.PassThrough;nV=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new nX({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length;}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o;};const nW=nq(R.pipeline);class nz extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}async function nK(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=nV(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=nH.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await nW(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new nz());});}),n.getBufferedValue();}"use strict";(nB=nK).buffer=(e,t)=>nK(e,{...t,encoding:"buffer"}),nB.array=(e,t)=>nK(e,{...t,array:!0}),nB.MaxBufferError=nz;var nY={},nQ=R.PassThrough;nY=function(){var e=[],t=new nQ({objectMode:!0});return t.setMaxListeners(0),t.add=r,t.isEmpty=function(){return 0==e.length;},t.on("unpipe",n),Array.prototype.slice.call(arguments).forEach(r),t;function r(i){return Array.isArray(i)?(i.forEach(r),this):(e.push(i),i.once("end",n.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this);}function n(r){!(e=e.filter(function(e){return e!==r;})).length&&t.readable&&t.end();}};"use strict";const nJ=async(e,t)=>{if(e){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},nZ=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?nB(e,{encoding:t,maxBuffer:n}):nB.buffer(e,{maxBuffer:n});},n0=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=nZ(e,{encoding:n,buffer:i,maxBuffer:o}),l=nZ(t,{encoding:n,buffer:i,maxBuffer:o}),c=nZ(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},nJ(e,a),nJ(t,l),nJ(r,c)]);}};var n1=(nM={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(nG(t)?t.pipe(e.stdin):e.stdin.end(t));},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=nY();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},getSpawnedResult:n0,validateInputSync:({input:e})=>{if(nG(e))throw TypeError("The `input` option cannot be a stream in sync mode");}}).handleInput,n2=nM.getSpawnedResult,n4=nM.makeAllStream,n3=nM.validateInputSync,n6={};"use strict";const n8=(async()=>{})().constructor.prototype,n5=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(n8,e)]);var n9=(n6={mergePromise:(e,t)=>{for(let[r,n]of n5){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}return e;},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});})}).mergePromise,n7=n6.getSpawnedPromise,ie={};const it=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ir=/^[\w.-]+$/,ii=/"/g,io=e=>"string"!=typeof e||ir.test(e)?e:`"${e.replace(ii,'\\"')}"`,is=/ +/g;var ia=(ie={joinCommand:(e,t)=>it(e,t).join(" "),getEscapedCommand:(e,t)=>it(e,t).map(e=>io(e)).join(" "),parseCommand:e=>{let t=[];for(let r of e.trim().split(is)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;}}).joinCommand,il=ie.parseCommand,ic=ie.getEscapedCommand;const iu=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?rW.env({env:o,cwd:n,execPath:i}):o;},ip=(e,t,r={})=>{let n=rC._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=iu(r),r.stdio=ns(r),"win32"===process.platform&&"cmd"===d.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},id=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?rX(t):t:void 0===r?void 0:"",ih=(e,t,r)=>{let n;let i=ip(e,t,r),o=ia(e,t),s=ic(e,t);nU(i.options);try{n=b.spawn(i.file,i.args,i.options);}catch(r){let e=new b.ChildProcess(),t=Promise.reject(r0({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return n9(e,t);}let a=n7(n),l=nk(n,i.options,a),c=nj(n,i.options,l),u={isCanceled:!1};n.kill=nL.bind(null,n.kill.bind(n)),n.cancel=nD.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await n2(n,i.options,c),f=id(i.options,l),h=id(i.options,p),m=id(i.options,d);if(e||0!==t||null!==r){let l=r0({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},d=rK(p);return n1(n,i.options.input),n.all=n4(n,i.options),n9(n,d);};function im(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function iv(){return null!==U(ry).sync("sudo",{nothrow:!0});}function ig(){var e;return 0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process))||!!process.env.CI;}function iE(){return ig()&&iv();}function iy(e){return iE()?"sudo "+e:e;}function iw(e,t=[],r={stdio:"inherit",shell:!0}){return iE()?U(rT).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):U(rT).sync(e,t,r);}function ix(e,t=[],r={stdio:"inherit",shell:!0}){return iE()?U(rT).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):U(rT)(e,t,r);}function ib(){return"win32"===process.platform?iO():ig();}(rT=ih).sync=(e,t,r)=>{let n;let i=ip(e,t,r),o=ia(e,t),s=ic(e,t);n3(i.options);try{n=b.spawnSync(i.file,i.args,i.options);}catch(e){throw r0({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let a=id(i.options,n.stdout,n.error),l=id(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=r0({stdout:a,stderr:l,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},rT.command=(e,t)=>{let[r,...n]=il(e);return ih(r,n,t);},rT.commandSync=(e,t)=>{let[r,...n]=il(e);return ih.sync(r,n,t);},rT.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=ns.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return ih(o,[...s,e,...(Array.isArray(t)?t:[])],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1});};var iS={};im(iS,"hasSudo",()=>iv),im(iS,"isRoot",()=>ig),im(iS,"isSudo",()=>iE),im(iS,"prependSudo",()=>iy),im(iS,"execRootSync",()=>iw),im(iS,"execRoot",()=>ix);var iI={};im(iI,"isAdminWindows",()=>iO),im(iI,"isAdminPosix",()=>iR),im(iI,"isAdmin",()=>ib);const iO=async()=>{if("win32"!==process.platform)return!1;try{var e;return await U(rT)("fsutil",["dirty","query",null!==(e=process.env.systemdrive)&&void 0!==e?e:""]),!0;}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await U(rT)("fltmc"),!0;}catch{return!1;}})();}},iR=ig;var B=F("cLprm"),rv=F("2heqc"),B=F("cLprm"),H=F("hHq4F");function iT(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}const iC=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(i$(i,o)||!n)&&Object.defineProperty(e,r,o);},i$=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},i_=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},iA=(e,t)=>`/* Wrapped ${e}*/ ${t}`,iP=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),iN=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iL=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=iA.bind(null,n,t.toString());Object.defineProperty(i,"name",iN),Object.defineProperty(e,"toString",{...iP,value:i});},iD=new WeakMap(),ik=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(iD.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))iC(e,t,n,r);i_(e,t),iL(e,t,n);}(o,e),iD.set(o,n),o;};ik.callCount=e=>{if(!iD.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iD.get(e);};const iU=()=>Array.from({length:iG-iM+1},ij),ij=(e,t)=>({name:`SIGRT${t+1}`,number:iM+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),iM=34,iG=64,iF=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],iB=()=>{let e=iU(),t=[...iF,...e].map(iH);return t;},iH=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=N.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iq=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}],iV=(()=>{let e=iB();return Object.fromEntries(e.map(iq));})(),iX=(e,t)=>{let r=iW(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}};},iW=(e,t)=>{let r=t.find(({name:t})=>N.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=iB(),t=Array.from({length:iG+1},(t,r)=>iX(r,e));return Object.assign({},...t);})();const iz=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?`failed with ${r}`:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?`failed with exit code ${o}`:"failed",iK=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let d=void 0===i?void 0:iV[i].description,f=n&&n.code,h=iz({timedOut:l,timeout:p,errorCode:f,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),m=`Command ${h}: ${s}`,v="[object Error]"===Object.prototype.toString.call(n),g=v?`${m} ${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},iY=["stdin","stdout","stderr"],iQ=e=>iY.some(t=>void 0!==e[t]),iJ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iY.map(t=>e[t]);if(iQ(e))throw Error(`It's not possible to provide \`stdio\` in combination with one of ${iY.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,iY.length);return Array.from({length:r},(e,r)=>t[r]);},iZ=(e,t="SIGTERM",r={})=>{let n=e(t);return i0(e,t,r,n),n;},i0=(e,t,r,n)=>{if(!i1(t,r,n))return;let i=i4(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},i1=(e,{forceKillAfterTimeout:t},r)=>i2(e)&&!1!==t&&r,i2=e=>e===U(N).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),i4=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},i3=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0);},i6=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},i8=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{i6(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});return Promise.race([o,s]);},i5=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},i9=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=U(np)(()=>{e.kill();});return n.finally(()=>{i();});};function i7(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function oe(e){return i7(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}const ot=e=>e instanceof _.ChildProcess&&"function"==typeof e.then,or=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,x.createWriteStream)(r)),e;if(oe(r))return e[t].pipe(r),e;if(!ot(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!oe(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},on=e=>{null!==e.stdout&&(e.pipeStdout=or.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=or.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=or.bind(void 0,e,"all"));},oi=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oo=({input:e,inputFile:t})=>"string"!=typeof t?e:(oi(e),(0,x.readFileSync)(t)),os=e=>{let t=oo(e);if(i7(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},oa=({input:e,inputFile:t})=>"string"!=typeof t?e:(oi(e),(0,x.createReadStream)(t)),ol=(e,t)=>{let r=oa(t);void 0!==r&&(i7(r)?r.pipe(e.stdin):e.stdin.end(r));},oc=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=U(nY)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},ou=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},op=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?U(nB)(e,{encoding:t,maxBuffer:n}):U(nB).buffer(e,{maxBuffer:n});},od=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=op(e,{encoding:n,buffer:i,maxBuffer:o}),l=op(t,{encoding:n,buffer:i,maxBuffer:o}),c=op(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},ou(e,a),ou(t,l),ou(r,c)]);}},of=(async()=>{})().constructor.prototype,oh=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(of,e)]),om=(e,t)=>{for(let[r,n]of oh){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},ov=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),og=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],oE=/^[\w.-]+$/,oy=/"/g,ow=e=>"string"!=typeof e||oE.test(e)?e:`"${e.replace(oy,'\\"')}"`,ox=(e,t)=>og(e,t).join(" "),ob=(e,t)=>og(e,t).map(e=>ow(e)).join(" "),oS=/ +/g,oI=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return String(e);if("object"===t&&null!==e&&!(e instanceof _.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,C.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},oO=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],oR=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=o.split(oS).filter(Boolean),a=oO(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>oI(e)):[oI(l)];return oO(a,c,o.endsWith(" "));},oT=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oR({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oC=(0,L.debuglog)("execa").enabled,o$=(e,t)=>String(e).padStart(t,"0"),o_=()=>{let e=new Date();return`${o$(e.getHours(),2)}:${o$(e.getMinutes(),2)}:${o$(e.getSeconds(),2)}.${o$(e.getMilliseconds(),3)}`;},oA=(e,{verbose:t})=>{t&&U(A).stderr.write(`[${o_()}] ${e} `);},oP=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...U(A).env,...e}:e;return r?function({env:e=U(A).env,...t}={}){e={...e};let r=iT({env:e});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=U(A).cwd(),path:n=U(A).env[iT()],execPath:i=U(A).execPath}=e,o=r instanceof URL?U(P).fileURLToPath(r):r,s=U($).resolve(o),a=[];for(;t!==s;)a.push(U($).join(s,"node_modules/.bin")),t=s,s=U($).resolve(s,"..");return a.push(U($).resolve(o,i,"..")),[...a,n].join(U($).delimiter);}(t),e;}({env:o,cwd:n,execPath:i}):o;},oN=(e,t,r={})=>{let n=U(rC)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||U(A).cwd(),execPath:U(A).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oC,...r}).env=oP(r),r.stdio=iJ(r),"win32"===U(A).platform&&"cmd"===U($).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oL=(e,t,r)=>"string"==typeof t||(0,C.Buffer).isBuffer(t)?e.stripFinalNewline?function(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}(t):t:void 0===r?void 0:"";function oD(e,t,r){let n;let i=oN(e,t,r),o=ox(e,t),s=ob(e,t);oA(s,i.options),i5(i.options);try{n=U(_).spawn(i.file,i.args,i.options);}catch(r){let e=new(U(_).ChildProcess)(),t=Promise.reject(iK({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return om(e,t),e;}let a=ov(n),l=i8(n,i.options,a),c=i9(n,i.options,l),u={isCanceled:!1};n.kill=iZ.bind(null,n.kill.bind(n)),n.cancel=i3.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,p,d]=await od(n,i.options,c),f=oL(i.options,l),h=oL(i.options,p),m=oL(i.options,d);if(e||0!==t||null!==r){let l=iK({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};},d=ik(p);return ol(n,i.options),n.all=oc(n,i.options),on(n),om(n,d),n;}function ok(e,t,r){let n;let i=oN(e,t,r),o=ox(e,t),s=ob(e,t);oA(s,i.options);let a=os(i.options);try{n=U(_).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iK({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oL(i.options,n.stdout,n.error),c=oL(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iK({stdout:l,stderr:c,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}const oU=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oj=(e={})=>({preferLocal:!0,...oU(e),...e});function oM(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return oD(function(){if(void 0===e){let t=U(ry).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=U(ry).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oT(n,i);return oD(o,s,oj(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=oT(e,r);return ok(n,i,oj(t));},r;}();var oG={};const oF="win32"!==p.platform(),oB=p.release(),oH=/(\d+\.\d+)\.(\d+)/,oq=(e="",t="")=>/1\d+\.\d+/.test(e)&&Number(t)>=17134.1184;function oV(e){if(("linux"===process.platform||"darwin"===process.platform)&&es()&&void 0!==process.env.SUDO_USER){let t=(0,f.statSync)(e).isDirectory();el("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0});}}oG=function(e){return oF?e.replace(/(\s+)/g,"\\$1"):oq(...oH.exec(oB).splice(1))?e:e.replace(/(\s+)/g,"%20");};var oX={};(function(){var e,t;e=F("eaZtc"),t=function(e){return e.split("").reverse().join("");},oX=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}).call(oX);var oW=F("3WkGD");async function oz(e,t,r=!1){let n=function(e,t=!1){let r=t?U(oG)(e):e;return U(oX)(r,'"',"\\");}(null!=t?t:"",r);try{if(B.GITHUB_ACTIONS)try{(0,rv.exportVariable)(e,n);}catch(t){(0,H.error)(t),await oQ(e,n);}else await oQ(e,n);}catch(t){(0,H.error)(t),(0,rv.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function oK(e){process.env.PATH=`${e}${d.delimiter}${process.env.PATH}`;try{if(B.GITHUB_ACTIONS)try{(0,rv.addPath)(e);}catch(t){(0,H.error)(t),await oJ(e);}else await oJ(e);}catch(t){(0,H.error)(t),(0,rv.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}const oY=t6(".cpprc");async function oQ(e,t){let r=null!=t?t:"";switch(process.platform){case"win32":await oM(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),(0,rv.info)(`${e}='${r}' was set in the environment.`);return;case"linux":case"darwin":await o0(),(0,f.appendFileSync)(oY,` export ${e}="${r}" `),(0,rv.info)(`${e}="${r}" was added to "${oY}`);return;}process.env[e]=r;}async function oJ(e){switch(process.platform){case"win32":await oM(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rv.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await o0(),(0,f.appendFileSync)(oY,` export PATH="${e}:$PATH" `),(0,rv.info)(`"${e}" was added to "${oY}"`);return;default:return;}}let oZ=!1;async function o0(){if(oZ)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,oW.pathExists)(oY)){let t=(0,f.readFileSync)(oY,"utf8");if(t.includes(e))return;}(0,f.appendFileSync)(oY,` ${e} `),(0,rv.info)(`Added ${e} to ${oY}`);let t=` # source .cpprc if SOURCE_CPPRC is not set to 0 if [[ "$SOURCE_CPPRC" != 0 && -f "${oY}" ]]; then source "${oY}"; fi `;try{let e=t6(".profile");(0,f.appendFileSync)(e,t),(0,rv.info)(`${t} was added to ${e}`);let r=t6(".bashrc");(0,f.appendFileSync)(r,t),(0,rv.info)(`${t} was added to ${r}`);}catch(e){(0,H.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}oZ=!0;}async function o1(){if(await(0,oW.pathExists)(oY)){let e=(0,f.readFileSync)(oY,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,f.writeFileSync)(oY,t.join("\n"));try{oV(oY);}catch{}}}var o2={},o4=d.join,o3=d.delimiter,o6=d.sep,o8=d.posix;const o5="win32"===process.platform,o9=new RegExp(`[${o8.sep}${o6===o8.sep?"":o6}]`.replace(/(\\)/g,"\\$1")),o7=RegExp(`^\\.${o9.source}`),se=e=>Object.assign(Error(`not found: ${e}`),{code:"ENOENT"}),st=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=o3})=>{let i=e.match(o9)?[""]:[...(o5?[process.cwd()]:[]),...(t||"").split(n)];if(o5){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sr=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&o7.test(t)?t.slice(0,2):"";return n+o4(r,t);},sn=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=st(e,t),o=[];for(let s of r){let r=sr(s,e);for(let e of n){let n=r+e,s=await rb(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw se(e);};o2=sn,sn.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=st(e,t),o=[];for(let s of r){let r=sr(s,e);for(let e of n){let n=r+e,s=rb.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw se(e);};var oW=F("3WkGD"),si=F("9O4vc"),H=F("hHq4F");const{appendFile:so}=f.promises;let ss=!1,sa=!1;async function sl(e,t=!1){var r;let n=null!==U(o2).sync("nala",{nothrow:!0})?"nala":"apt-get";for(let{name:t,version:r}of e)(0,H.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!ss||t)&&(su(n),ss=!0),sa||(await sp(n),sa=!0);let i=[...new Set(e.flatMap(e=>null!==(r=e.repositories)&&void 0!==r?r:[]))];if(0!==i.length){for(let e of i)iw("add-apt-repository",["-y",e]);su(n);}let o=await Promise.all(e.map(e=>sc(e.name,e.version)));return iw(n,["install","--fix-broken","-y",...o]),{binDir:"/usr/bin/"};}async function sc(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await oD("apt-cache",["search","--names-only",`^${(0,si.default)(e)}-${(0,si.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{let{stdout:r}=await oD("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`;}catch{}(0,H.warning)(`Failed to install ${e} ${t} via apt, trying without version`);}return e;}function su(e){iw(e,"nala"!==e?["update","-y"]:["update"]);}async function sp(e){iw(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[sf(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),sf(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(oz("LANG","C.UTF-8"),oz("LC_ALL","C.UTF-8")),await Promise.all(t);}function sd(){iw("gpg",["-k"]);}async function sf(e,t,r="keyserver.ubuntu.com"){let n=`/etc/apt/trusted.gpg.d/${t}`;return(await(0,oW.pathExists)(n))||(sd(),await Promise.all(e.map(async e=>{await ix("gpg",["--no-default-keyring","--keyring",`gnupg-ring:${n}`,"--keyserver",r,"--recv-keys",e]),await ix("chmod",["644",n]);}))),n;}async function sh(e,t){let r=`/etc/apt/trusted.gpg.d/${e}`;return(await(0,oW.pathExists)(r))||(sd(),await sl([{name:"curl"}],void 0),iw("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),iw("chmod",["644",r])),r;}async function sm(e,t){return B.GITHUB_ACTIONS?ix("update-alternatives",["--install",`/usr/bin/${e}`,e,t,"40"]):(await o0(),so(oY,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi `));}var rv=F("2heqc"),rE=(F("A8hFE"),F("A8hFE")),sv=F("kSdX3");async function sg(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=U(o2).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,rE.dirname)(i)};let o=U(d).join((0,p.tmpdir)(),"setup-cpp","brew");await(0,sv.mkdirP)(o),ok("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,d.join)(o,"install.sh");if("linux"===process.platform){let e=(0,f.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","");}return ok("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=sE(),await oK(t),{binDir:t};}function sE(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}let sy=!1;async function sw(e,t,r=[]){(0,rv.info)(`Installing ${e} ${null!=t?t:""} via brew`),sy&&null!==U(o2).sync("brew",{nothrow:!0})||(await sg("","",process.arch),sy=!0);let n=sE();return ok((0,rE.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}var oW=F("3WkGD"),rE=F("A8hFE");async function sx(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=U(o2).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,rE.dirname)(o)};let s="powershell.exe",a=U(o2).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),ok(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await oK(l);let c=U(o2).sync("choco",{nothrow:!0});if(r=null!==c?(0,rE.dirname)(c):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,oW.pathExists)(r))return{binDir:r};}var rv=F("2heqc"),H=F("hHq4F");let sb=!1;async function sS(e,t,r=[]){var n;(0,rv.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),sb&&null!==U(o2).sync("choco",{nothrow:!0})||(await sx("","",process.arch),sb=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)ok("choco",["install","-y",e,`--version=${t}`,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{ok("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,H.notice)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await oK(s),{binDir:s};}function sI(){return"linux"===process.platform&&(void 0===s&&(s=null!==U(o2).sync("pacman",{nothrow:!0})),s);}function sO(){return"linux"===process.platform&&(void 0===a&&(a=null!==U(o2).sync("dnf",{nothrow:!0})),a);}function sR(e,t){if((0,H.info)(`Installing ${e} ${null!=t?t:""} via dnf`),void 0!==t&&""!==t)try{iw("dnf",["-y","install",`${e}-${t}`]);}catch(t){(0,H.warning)(`${t.toString()} Installing the default version available via dnf`),iw("dnf",["-y","install",e]);}else iw("dnf",["-y","install",e]);return{binDir:"/usr/bin/"};}function sT(){return"linux"===process.platform&&(void 0===l&&(l=null!==U(o2).sync("apt-get",{nothrow:!0})),l);}async function sC(e,t,r){switch(process.platform){case"win32":return sS("bazelisk",e);case"darwin":return sw("bazelisk",e);case"linux":if(sI())throw Error("installing bazel on Arch linux is not supported yet");if(sO())return sR("dnf-plugins-core",void 0),iw("dnf",["copr","enable","vbatts/bazel"]),sR("bazel4",void 0);if(sT()){let t=await sh("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return iw("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),sl([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var H=(F("hHq4F"),F("hHq4F"));let s$=!1,s_=!1;async function sA(e,t,r){(0,H.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";s$||"yay"===r||(iw(n,["-Sy","--noconfirm"]),s$=!0),s_||(iw(n,["-S","--noconfirm","base-devel"]),s_=!0);let i=e=>iw(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await sN(n,e);if(r.includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,H.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}const sP=/Version\s*:\s*(.*)/g;async function sN(e,t){let r=[];try{let{stdout:n}=await oD(e,["-Si",t]);for(let e of n.matchAll(sP))r.push(e[1]);}catch(e){(0,H.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}"use strict";var sL={},sD=d.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),sk=sL&&sL.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),sU=sL&&sL.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),sj=sL&&sL.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&sk(t,e,r);return sU(t,e),t;},sM=sL&&sL.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},sG=sL&&sL.__importDefault||function(e){return e&&e.__esModule?e:{default:e};};Object.defineProperty(sL,"__esModule",{value:!0}),sL.evaluateVersions=sL.isExplicitVersion=sL.findFromManifest=sL.getManifestFromRepo=sL.findAllVersions=sL.find=sL.cacheFile=sL.cacheDir=sL.extractZip=sL.extractXar=sL.extractTar=sL.extract7z=sL.downloadTool=sL.HTTPError=void 0;"use strict";const sF=sj(F("2heqc")),sB=sj(F("kSdX3")),sH=sj(f),sq=sj(F("8kgpT")),sV=sj(p),sX=sj(d),sW=sj(F("aPbbM")),sz=sj(F("feUtB")),sK=sj(R),sY=sj(w),sQ=sG(F("bxsAi"));var sJ=F("2mVwa"),sZ={},s0=sZ&&sZ.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),s1=sZ&&sZ.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),s2=sZ&&sZ.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&s0(t,e,r);return s1(t,e),t;},s4=sZ&&sZ.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(sZ,"__esModule",{value:!0}),sZ.RetryHelper=void 0;const s3=s2(F("2heqc"));sZ.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return s4(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s6 extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}sL.HTTPError=s6;const s8="win32"===process.platform,s5="darwin"===process.platform;function s9(e,t){let r=[];t=t||sV.arch();let n=sX.join(ai(),e);if(sH.existsSync(n)){let e=sH.readdirSync(n);for(let i of e)if(ar(i)){let e=sX.join(n,i,t||"");sH.existsSync(e)&&sH.existsSync(`${e}.complete`)&&r.push(i);}}return r;}function s7(e){return sM(this,void 0,void 0,function*(){return e||(e=sX.join(ao(),sQ.default())),yield sB.mkdirP(e),e;});}function ae(e,t,r){return sM(this,void 0,void 0,function*(){let n=sX.join(ai(),e,sz.clean(t)||t,r||"");sF.debug(`destination ${n}`);let i=`${n}.complete`;return yield sB.rmRF(n),yield sB.rmRF(i),yield sB.mkdirP(n),n;});}function at(e,t,r){let n=sX.join(ai(),e,sz.clean(t)||t,r||""),i=`${n}.complete`;sH.writeFileSync(i,""),sF.debug("finished caching tool");}function ar(e){let t=sz.clean(e)||"";sF.debug(`isExplicit: ${t}`);let r=null!=sz.valid(t);return sF.debug(`explicit? ${r}`),r;}function an(e,t){let r="";sF.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>sz.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=sz.satisfies(i,t);if(o){r=i;break;}}return r?sF.debug(`matched: ${r}`):sF.debug("match not found"),r;}function ai(){let e=process.env.RUNNER_TOOL_CACHE||"";return y.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function ao(){let e=process.env.RUNNER_TEMP||"";return y.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function as(e,t){let r=j[e];return void 0!==r?r:t;}"use strict";sL.downloadTool=function(e,t,r,n){return sM(this,void 0,void 0,function*(){t=t||sX.join(ao(),sQ.default()),yield sB.mkdirP(sX.dirname(t)),sF.debug(`Downloading ${e}`),sF.debug(`Destination ${t}`);let i=as("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=as("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new sZ.RetryHelper(3,i,o);return yield s.execute(()=>sM(this,void 0,void 0,function*(){return yield function(e,t,r,n){return sM(this,void 0,void 0,function*(){if(sH.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new sW.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sF.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new s6(o.message.statusCode);throw sF.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=sY.promisify(sK.pipeline),a=as("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message),l=a(),c=!1;try{return yield s(l,sH.createWriteStream(t)),sF.debug("download complete"),c=!0,t;}finally{if(!c){sF.debug("download failed");try{yield sB.rmRF(t);}catch(e){sF.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s6)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},sL.extract7z=function(e,t,r){return sM(this,void 0,void 0,function*(){y.ok(s8,"extract7z() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield s7(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sF.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield sJ.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=sX.join(sD,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield sB.which("powershell",!0);yield sJ.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},sL.extractTar=function(e,t,r="xz"){return sM(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield s7(t),sF.debug("Checking tar --version");let i="";yield sJ.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sF.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sF.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s8&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield sJ.exec("tar",n),t;});},sL.extractXar=function(e,t,r=[]){return sM(this,void 0,void 0,function*(){let n;y.ok(s5,"extractXar() not supported on current OS"),y.ok(e,'parameter "file" is required'),t=yield s7(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sF.isDebug()&&n.push("-v");let i=yield sB.which("xar",!0);return yield sJ.exec(`"${i}"`,Array.from(new Set(n))),t;});},sL.extractZip=function(e,t){return sM(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield s7(t),s8?yield function(e,t){return sM(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield sB.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`,t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];sF.debug(`Using pwsh at path: ${i}`),yield sJ.exec(`"${i}"`,t);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e],i=yield sB.which("powershell",!0);sF.debug(`Using powershell at path: ${i}`),yield sJ.exec(`"${i}"`,t);}});}(e,t):yield function(e,t){return sM(this,void 0,void 0,function*(){let r=yield sB.which("unzip",!0),n=[e];sF.isDebug()||n.unshift("-q"),n.unshift("-o"),yield sJ.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},sL.cacheDir=function(e,t,r,n){return sM(this,void 0,void 0,function*(){if(r=sz.clean(r)||r,n=n||sV.arch(),sF.debug(`Caching tool ${t} ${r} ${n}`),sF.debug(`source dir: ${e}`),!sH.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield ae(t,r,n);for(let t of sH.readdirSync(e)){let r=sX.join(e,t);yield sB.cp(r,i,{recursive:!0});}return at(t,r,n),i;});},sL.cacheFile=function(e,t,r,n,i){return sM(this,void 0,void 0,function*(){if(n=sz.clean(n)||n,i=i||sV.arch(),sF.debug(`Caching tool ${r} ${n} ${i}`),sF.debug(`source file: ${e}`),!sH.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield ae(r,n,i),s=sX.join(o,t);return sF.debug(`destination file ${s}`),yield sB.cp(e,s),at(r,n,i),o;});},sL.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");if(r=r||sV.arch(),!ar(t)){let n=s9(e,r),i=an(n,t);t=i;}let n="";if(t){t=sz.clean(t)||"";let i=sX.join(ai(),e,t,r);sF.debug(`checking cache: ${i}`),sH.existsSync(i)&&sH.existsSync(`${i}.complete`)?(sF.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sF.debug("not found");}return n;},sL.findAllVersions=s9,sL.getManifestFromRepo=function(e,t,r,n="master"){return sM(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new sW.HttpClient("tool-cache"),a={};r&&(sF.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break;}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u);}catch(e){sF.debug("Invalid json");}}return i;});},sL.findFromManifest=function(e,t,r,n=sV.arch()){return sM(this,void 0,void 0,function*(){let i=yield sq._findMatch(e,t,r,n);return i;});},sL.isExplicitVersion=ar,sL.evaluateVersions=an;var aa=F("6mv46"),al=F("8Q5CX"),rE=F("A8hFE"),H=F("hHq4F"),B=F("cLprm"),oW=F("3WkGD"),ac={};Object.defineProperty(ac,"__esModule",{value:!0}),ac.retryAsPromised=ac.TimeoutError=void 0;class au extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}function ap(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");t="number"==typeof t?{max:t}:t;let r={$current:"$current"in t?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new au(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,sL.downloadTool)(a),{name:a,max:4,backoffBase:2e3,report:e=>(0,H.info)(e)});ad||((0,H.info)("Installing extraction dependencies"),"linux"===process.platform&&(sI()?await Promise.all([sA("unzip"),sA("tar"),sA("xz")]):sO()?(sR("unzip"),sR("tar"),sR("xz")):sT()&&(await sl([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),ad=!0),(0,H.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${a}: ${r}`);}return(0,H.info)(`Add ${h} to PATH`),await oK(h),B.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,sL.cacheDir)(n,e,t)),{installDir:f,binDir:h};}var rE=F("A8hFE"),sv=F("kSdX3");function ah(e,t,r){switch(process.platform){case"win32":return sS("7zip",e);case"darwin":return sw("p7zip",e);case"linux":if(sI())return sA("p7zip",e);if(sO())return sR("p7zip",e),sR("p7zip-plugins",e);if(sT())return sl([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var H=F("hHq4F");async function am(e,t){return await oD(await av(),["x",e,`-o${t}`,"-y"],{stdio:"inherit"}),oV(t),t;}async function av(){return void 0===n&&(null===U(o2).sync("7z",{nothrow:!0})&&(await ah("","",process.arch)),n="7z"),n;}function ag(e,t){return am(e,t);}function aE(e,t){return am(e,t);}async function ay(e,t,r=["--strip-components=0"]){try{await(0,sv.mkdirP)(t);}catch{}try{await oD("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,H.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return oV(t),t;}function aw(e,t,r){var n;let i=null!==(n=U(al)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=U(aa)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,rE.addExeExt)("cmake"),extractedFolderName:o,extractFunction:aE,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=U(aa)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,rE.addExeExt)("cmake"),extractedFolderName:r,extractFunction:sL.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=U(aa)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,rE.addExeExt)("cmake"),extractedFolderName:o,extractFunction:sL.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function ax(e,t,r){return af("cmake",e,aw,t,r);}var rv=F("2heqc"),oW=F("3WkGD"),rE=F("A8hFE"),sJ=F("2mVwa"),B=F("cLprm"),H=F("hHq4F"),ab={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},aS=Array.prototype.slice;function aI(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:aS.call(e,0):[];}function aO(e,t){return e===t||e!=e&&t!=t;}function aR(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}var aT=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:aI(this.keys),size:this.size,values:aI(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;s1){for(var a=0;a1){for(var o=0;o=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}(),rE=F("A8hFE");function aC(e,t){return new Promise(r=>{try{let n=(0,v.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}var a$=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new D.URL(t),!0;}catch{return!1;}},a_=async e=>{let t=a$(e);if(!t)return!1;let r=await aC(e,"HEAD");return!!r||!!(r=await aC(e,"GET"));},aA=F("aB4GU"),al=F("8Q5CX"),aP=F("crNym"),sJ=F("2mVwa"),H=F("hHq4F");function aN(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return U(aA)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function aL(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await a_(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of aN(e,r)){let e=await n(t,o);if(null!==e){if(await a_(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}const aD=/v?(\d\S*)/;async function ak(e,t=aD){try{var r;let n=await(0,sJ.getExecOutput)(e,["--version"]),i=n.stdout||n.stderr||"",o=null===(r=i.trim().match(t))||void 0===r?void 0:r[1];return o;}catch(e){console.error(e);return;}}async function aU(e,t,r=aD){let n=await ak(e,r);return"string"==typeof n&&"string"==typeof t&&""!==n&&""!==t&&-1!==U(aA)(n,t);}function aj(){switch(process.platform){case"linux":return"15.0.6-ubuntu-18.04";case"darwin":return"15.0.3";default:return"15.0.4";}}const aM={llvm:aj(),clangtidy:aj(),clangformat:aj(),ninja:"1.11.1",cmake:"3.26.4",gcovr:"5.2",conan:"1.60.0",meson:"1.0.2",kcov:"41",task:"3.25.0",doxygen:sI()?"1.9.6-1":"1.9.7",gcc:sI()?"13.1.1-1":"13",pip:"22.3.1"},aG={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},llvm:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"5.2",20:"5.2",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};var oW=F("3WkGD");async function aF(e,t,r){let n=await aB(e,t,r);U(y)(void 0!==n.bin);let i=n.bin,o=await aV(i);if(void 0===o)throw Error("pip was not installed correctly");try{ok(i,["-m","pip","install","-U","wheel"],{stdio:"inherit"});}catch(e){(0,H.warning)(`Failed to install wheels: ${e.toString()}. Ignoring...`);}return await aY(i),n;}async function aB(e,t,r){let n;let i=await aq(t);if(void 0!==i){let e=(0,rE.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(B.GITHUB_ACTIONS)try{(0,H.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await F("3dK75");await o(e,t,r),i=await aq(t);let s=(0,rE.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,H.warning)(e.toString());}void 0===n&&(n=await aH(t,e));}return(void 0===i||void 0===n.bin)&&(i=await aq(t),n.bin=i),n;}async function aH(e,t){let r;switch(process.platform){case"win32":{e?await sS("python3",t,[`--params=/InstallDir:${e}`]):await sS("python3",t);let n=await aq(e),i=(0,rE.dirname)(n);await oK(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":r=await sw("python3",t);break;case"linux":if(sI())r=await sA("python",t);else if(sO())r=sR("python3",t);else if(sT())r=await sl([{name:"python3",version:t}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function aq(e){if(void 0!==e){for(let t of["python3","python"])if(await(0,oW.pathExists)((0,rE.join)(e,(0,rE.addExeExt)(t))))return t;}return null!==U(o2).sync("python3",{nothrow:!0})?"python3":null!==U(o2).sync("python",{nothrow:!0})&&(await aU("python","3.0.0"))?"python":void 0;}async function aV(e){let t=await aX();return void 0===t?((0,H.info)("pip was not found. Installing pip"),await aW(e),aX()):t;}async function aX(){for(let e of["pip3","pip"])if(null!==U(o2).sync(e,{nothrow:!0})&&(await aU(e,aM.pip)))return e;}async function aW(e){let t=function(e){try{return ok(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(n){var t,r;(0,H.info)(null==n?void 0:null===(t=n.toString)||void 0===t?void 0:t.call(n));try{return ok(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,H.info)(null==e?void 0:null===(r=e.toString)||void 0===r?void 0:r.call(e));}}return!1;}(e);t||(await az());}async function az(){throw"linux"===process.platform&&(sI()?await sA("python-pip"):sO()?sR("python3-pip"):sT()&&(await sl([{name:"python3-pip"}]))),Error(`Could not install pip on ${process.platform}`);}async function aK(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,sJ.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,rE.join)(r,"Scripts"),(0,rE.join)(r,"Scripts","bin"),(0,rE.join)(r,"bin")),[...new Set(t)];}const aY=function e(t,r){if(void 0===r&&(r={}),"function"==typeof t&&t.isMemoized)return e(t.fn,aR(t.options,r));if("function"!=typeof t)throw TypeError("You must pass a function to `memoize`.");var n=r.isEqual,i=r.isMatchingKey,o=r.isPromise,s=void 0!==o&&o,a=r.maxSize,l=r.onCacheAdd,c=r.onCacheChange,u=r.onCacheHit,p=r.transformKey,d=aR({isEqual:void 0===n?aO:n,isMatchingKey:i,isPromise:s,maxSize:void 0===a?1:a,onCacheAdd:l,onCacheChange:c,onCacheHit:u,transformKey:p},function(e){var t={};for(var r in e)ab[r]||(t[r]=e[r]);return t;}(r)),f=new aT(d),h=f.keys,m=f.values,v=f.canTransformKey,g=f.shouldCloneArguments,E=f.shouldUpdateOnAdd,y=f.shouldUpdateOnChange,w=f.shouldUpdateOnHit,x=function(){var e=g?aI(arguments):arguments;v&&(e=p(e));var r=h.length?f.getKeyIndex(e):-1;if(-1!==r)w&&u(f,d,x),r&&(f.orderByLru(h[r],m[r],r),y&&c(f,d,x));else{var n=t.apply(this,arguments),i=g?e:aI(arguments);f.orderByLru(i,n,h.length),s&&f.updateAsyncCache(x),E&&l(f,d,x),y&&c(f,d,x);}return m[0];};return x.cache=f,x.fn=t,x.isMemoized=!0,x.options=d,x;}(aK);function aQ(e,t,r=null){return(console.log("isDefault",t,e,aJ(t)),aJ(t)&&"linux"===process.platform&&null!==r&&e in aG)?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aG[e]):aJ(t)&&e in aM?aM[e]:"true"===t?"":null!=t?t:"";}function aJ(e){return"true"===e||void 0===e;}async function aZ(e,t){(0,rv.info)(`Installing ${e} ${null!=t?t:""} via pip`),void 0===i&&(i=(await aF(aQ("python",void 0),"",process.arch)).bin),ok(i,["-m","pip","install",void 0!==t&&""!==t?`${e}==${t}`:e],{stdio:"inherit"});let r=await aY(i),n=await a0(r,e);return await oK(n),{binDir:n};}async function a0(e,t){let r=await Promise.all(e.map(e=>(0,oW.pathExists)((0,rE.join)(e,(0,rE.addExeExt)(t))))),n=r.findIndex(e=>e);if(-1!==n){let t=e[n];return t;}let i=U(o2).sync((0,rE.addExeExt)(t),{nothrow:!0});return null!==i?(0,rE.dirname)(i):e[e.length-1];}async function a1(e,t,r){return await aZ("setuptools",""),aZ("conan",e);}async function a2(e,t,r){switch(process.platform){case"win32":{await sS("cppcheck",e);let t=await a4();return{binDir:t};}case"darwin":return sw("cppcheck",e);case"linux":if(sI())return sA("cppcheck",e);if(sO())return sR("ccache",e);if(sT())return sl([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function a4(){let e="C:/Program Files/Cppcheck";return await oK(e),e;}var rE=F("A8hFE"),H=F("hHq4F");async function a3(e,t,r){switch(process.platform){case"win32":return await sS("graphviz",e),a6();case"darwin":return sw("graphviz",e);case"linux":if(sI())return sA("graphviz",e);if(sO())return sR("graphviz",e);if(sT())return sl([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function a6(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await oK(e),{binDir:e};}throw Error("Unsupported platform");}var oW=F("3WkGD");function a8(e,t,r){switch(t){case"linux":{let t=`doxygen-${e}`;return{binRelativeDir:"bin/",binFileName:(0,rE.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:sL.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t=`doxygen-${e}`;return{binRelativeDir:"",binFileName:(0,rE.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:aE,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}default:throw Error(`Unsupported platform '${t}'`);}}async function a5(e,t,r){switch(process.platform){case"win32":{await U(ac)(()=>sS("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,H.info)(e)});let t=await a9();return await a3(aQ("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await sw("doxygen",void 0);return await a3(aQ("graphviz",void 0),"",r),e;}case"linux":{let n;if(""===e||sI()||sO()){if(sI())n=await sA("doxygen",e);else if(sO())return sR("doxygen",e);else if(sT())n=await sl([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(sT())try{n=await af("doxygen",e,a8,t,r),await sl([{name:"libclang-cpp9"}]);}catch(e){(0,H.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await sl([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await a3(aQ("graphviz",void 0),"",r),n;}default:throw Error("Unsupported platform");}}async function a9(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,oW.pathExists)((0,rE.join)(e,"doxygen.exe")))return await oK(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}var a7=F("i3j0r"),al=F("8Q5CX"),sJ=F("2mVwa"),H=F("hHq4F");async function le(){if("darwin"===process.platform)try{let e=await(0,sJ.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await oz("SDKROOT",t.trim()):(0,H.error)("SDKROOT not set");}catch(e){(0,H.error)(e);}}var rE=F("A8hFE"),H=F("hHq4F"),B=F("cLprm"),oW=F("3WkGD"),lt=d.resolve(__dirname,"../../src/gcc");const lr={13:{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};function ln(e,t,r){if("win32"===t){let t=lr[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,rE.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:am,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function li(e,t,r){let n;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await sS("gcc-arm-embedded",e));try{n=await af("g++",e,ln,t,r);}catch(t){(0,H.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await lo(e,r);}break;case"darwin":n=await sw("gcc",e);break;case"linux":"x64"===r?sI()?n=await sA("gcc",e):sO()?(n=sR("gcc",e),sR("gcc-c++",e),sR("libstdc++-devel",void 0)):sT()&&(n=await sl([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,H.info)(`Install g++-multilib because gcc for ${r} was requested`),sI()?await sA("gcc-multilib",e):sT()&&(await sl([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error(`Unsupported platform for ${r}`);}if(void 0!==n)return await ls(e,n.binDir),n;}async function lo(e,t){var r,n;let i;if(await sS("mingw",e),"x64"===t&&(await(0,oW.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await oK(i)):"ia32"===t&&(await(0,oW.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await oK(i)):(await(0,oW.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function ls(e,t){let r=[];if("win32"===process.platform)r.push(oz("CC",(0,rE.addExeExt)(`${t}/gcc`)),oz("CXX",(0,rE.addExeExt)(`${t}/g++`)));else{var n;let i=U(a7)(null!==(n=U(al)(e))&&void 0!==n?n:e);i>=5?(r.push(oz("CC",`${t}/gcc-${i}`),oz("CXX",`${t}/g++-${i}`)),sT()&&r.push(sm("cc",`${t}/gcc-${i}`),sm("cxx",`${t}/g++-${i}`),sm("gcc",`${t}/gcc-${i}`),sm("g++",`${t}/g++-${i}`))):(r.push(oz("CC",`${t}/gcc-${e}`),oz("CXX",`${t}/g++-${e}`)),sT()&&r.push(sm("cc",`${t}/gcc-${e}`),sm("cxx",`${t}/g++-${e}`),sm("gcc",`${t}/gcc-${e}`),sm("g++",`${t}/g++-${e}`)));}r.push(le()),B.GITHUB_ACTIONS&&(await la()),await Promise.all(r);}async function la(){let e=(0,rE.join)(lt,"gcc_matcher.json");if(!(await(0,oW.pathExists)(e)))return(0,H.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,H.info)(`::add-matcher::${e}`);}var aP=F("crNym"),a7=F("i3j0r"),rE=F("A8hFE"),H=F("hHq4F"),rE=F("A8hFE");function ll(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,rE.addExeExt)("ninja"),extractedFolderName:"",extractFunction:aE,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function lc(e,t,r){return af("ninja",e,ll,t,r);}var lu=d.resolve(__dirname,"../../src/kcov");function lp(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,rE.addExeExt)("kcov"),extractFunction:ay};}function ld(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,rE.addExeExt)("kcov"),extractFunction:lf};}async function lf(e,t){let r=await ay(e,t,["--strip-components=1"]),n=await lh();"linux"===process.platform&&(sI()?await Promise.all([sA("libdwarf"),sA("libcurl-openssl")]):sO()?(sR("libdwarf-devel"),sR("libcurl-devel")):sT()&&(await sl([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==U(o2).sync("patch",{nothrow:!0})){let e=(0,rE.join)(lu,"gcc13.patch");await oD("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,H.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,rE.join)(r,"build");return await oD(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await oD(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function lh(){let e=U(o2).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await ax(aQ("cmake",void 0),(0,rE.join)(t6(""),"cmake"),"");e=(0,rE.join)(t,"cmake");}let t=U(o2).sync("ninja",{nothrow:!0});return null===t&&(await lc(aQ("ninja",void 0),(0,rE.join)(t6(""),"ninja"),"")),e;}async function lm(e,t,r){var n;let i;if("linux"!==process.platform){(0,H.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:`v${n}`,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await af("kcov",s,lp,t,r),sI()?await sA("binutils"):sO()?sR("binutils"):sT()&&(await sl([{name:"libbinutils"}]))):i=await af("kcov",s,ld,t,r),i;}var rE=F("A8hFE"),H=F("hHq4F"),B=F("cLprm"),aa=F("6mv46"),H=F("hHq4F"),rE=F("A8hFE");const lv=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),lg=new Set(["10.0.1","15.0.5","15.0.6"]),lE=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),ly=new Map(),lw={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04"},lx="15.0.6";function lb(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function lS(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function lI(e){let t;if(lg.has(e))return null;let r="LLVM-",n=U(aa)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=U(aa)(e,"9.0.1"),o=!1;return i&&(t=lS(e,r,n),(await a_(t))||(o=!0)),(o||!i)&&(t=lb(e,r,n)),t;}function lO(e,t){switch(e){case"darwin":return function(e){if(lE.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return U(aa)(e,"9.0.1")?lS(e,r,n):lb(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=ly.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!lv.has(e))throw Error(`Unsupported Ubuntu version: ${e}`);t=n.replace(e,""),n=aN(lv,e)[0];}else""!==n&&n in lw?t=lw[n]:(t=lw[lx],(0,H.warning)(`Falling back to LLVM version ${lx} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,U(aa)(n,"9.0.1"))?lS(n,o,r):lb(n,o,r);}(t);case"win32":return lI(t);default:return null;}}async function lR(e,t,r){let[n,i]=await aL(lv,t,e,lO);return(0,H.info)(`specific llvm version: ${n}`),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,rE.addExeExt)("clang"),extractFunction:"win32"===t?ag:(e,t)=>ay(e,t,["--strip-components=1"])};}"use strict";var H=F("hHq4F"),lT={};async function lC(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{b.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return;}r(o);});}));if(null===r)return[];let n=/^Distributor ID:\s*(.+)$/,i=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,o=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/,s=null,a=null,l=!1;for(let e of r.split("\n")){let t=e.match(n);if(null!==t){let e=t[1];if("Ubuntu"!==e)return[];l=!0;}let r=e.match(i);r&&(s=r);let c=e.match(o);if(c&&(a=c),l&&s&&a)break;}if(!l)return[];for(let e of[s,a])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function l$(){try{if(!sT())return null;{null===U(o2).sync("lsb_release",{nothrow:!0})&&(await sl([{name:"lsb-release"}]));let e=await(0,lT.getUbuntuVersion)();if(0===e.length)return(0,H.warning)("Failed to get the ubuntu major version."),null;return e;}}catch(e){return(0,H.warning)(e.toString()),null;}}Object.defineProperty(lT,"__esModule",{value:!0}),lT.getUbuntuVersion=void 0,lT.getUbuntuVersion=lC;var oW=F("3WkGD"),l_=d.resolve(__dirname,"../../src/llvm");async function lA(e,t,r){var n;let i=await lN(e,t,r);return await lD(null!==(n=i.installDir)&&void 0!==n?n:t,e),i;}let lP=!1;async function lN(e,t,r){let n;let i=af("llvm",e,lR,t,r);lP?n=Promise.resolve():(n=lL(r,e),lP=!0);let[o,s]=await Promise.all([i,n]);return o;}async function lL(e,t){if("linux"===process.platform){let r=await l$();if(await li(aQ("gcc",void 0,r),"",e),sT()){let e=parseInt(t.split(".")[0],10);e<=10?await sl([{name:"libtinfo5"}]):await sl([{name:"libtinfo-dev"}]);}}}async function lD(e,t){var r,n;!function(e){if(null===U(aP)(e))try{let t=U(al)(e);if(null!==t)(0,H.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}}(t);let i=(0,rE.join)(e,"lib"),o=null!==(r=process.env.LD_LIBRARY_PATH)&&void 0!==r?r:"",s=null!==(n=process.env.DYLD_LIBRARY_PATH)&&void 0!==n?n:"",a=[oz("LLVM_PATH",e),oz("LD_LIBRARY_PATH",`${i}${d.delimiter}${o}`),oz("DYLD_LIBRARY_PATH",`${i}${d.delimiter}${s}`),oz("LDFLAGS",`-L"${e}/lib"`),oz("CPPFLAGS",`-I"${e}/include"`),oz("CC",(0,rE.addExeExt)(`${e}/bin/clang`)),oz("CXX",(0,rE.addExeExt)(`${e}/bin/clang++`)),oz("LIBRARY_PATH",`${e}/lib`),le()];sT()&&a.push(sm("cc",`${e}/bin/clang`),sm("cxx",`${e}/bin/clang++`),sm("clang",`${e}/bin/clang`),sm("clang++",`${e}/bin/clang++`),sm("lld",`${e}/bin/lld`),sm("ld.lld",`${e}/bin/ld.lld`),sm("llvm-ar",`${e}/bin/llvm-ar`)),B.GITHUB_ACTIONS&&(await lU()),await Promise.all(a);}async function lk(e,t,r){return B.GITHUB_ACTIONS&&(await lU()),lN(e,t,r);}async function lU(){let e=(0,rE.join)(l_,"llvm_matcher.json");if(!(await(0,oW.pathExists)(e)))return(0,H.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,H.info)(`::add-matcher::${e}`);}async function lj(e,t,r){switch(process.platform){case"win32":return sS("make",e);case"darwin":return await sw("make",e),await oK("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(sI())return sA("make",e);if(sO())return sR("make",e);if(sT())return sl([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}"use strict";"use strict";var lM={},lG=lM&&lM.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},lF=lM&&lM.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t;};Object.defineProperty(lM,"__esModule",{value:!0});var lB={},lH=lB&&lB.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t;};Object.defineProperty(lB,"__esModule",{value:!0});"use strict";const lq=lH(p);var lV={};function lX(e,t,r){let n=new lW(e,t,r);process.stdout.write(n.toString()+lq.EOL);}Object.defineProperty(lV,"__esModule",{value:!0}),lV.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},lB.issueCommand=lX,lB.issue=function(e,t=""){lX(e,{},t);};class lW{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${lV.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+`::${(e=this.message,lV.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}`;}}"use strict";var lz={},lK=lz&&lz.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t;};Object.defineProperty(lz,"__esModule",{value:!0});const lY=lK(f),lQ=lK(p);lz.issueCommand=function(e,t){let r=process.env[`GITHUB_${e}`];if(!r)throw Error(`Unable to find environment variable for file command ${e}`);if(!lY.existsSync(r))throw Error(`Missing file at path: ${r}`);lY.appendFileSync(r,`${lV.toCommandValue(t)}${lQ.EOL}`,{encoding:"utf8"});};const lJ=lF(p),lZ=lF(d);function l0(e){lB.issue("error",e instanceof Error?e.toString():e);}function l1(e){lB.issue("group",e);}function l2(){lB.issue("endgroup");}!function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure";}(u=lM.ExitCode||(lM.ExitCode={})),lM.exportVariable=function(e,t){let r=lV.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t="_GitHubActionsFileCommandDelimeter_",n=`${e}<<${t}${lJ.EOL}${r}${lJ.EOL}${t}`;lz.issueCommand("ENV",n);}else lB.issueCommand("set-env",{name:e},r);},lM.setSecret=function(e){lB.issueCommand("add-mask",{},e);},lM.addPath=function(e){let t=process.env.GITHUB_PATH||"";t?lz.issueCommand("PATH",e):lB.issueCommand("add-path",{},e),process.env.PATH=`${e}${lZ.delimiter}${process.env.PATH}`;},lM.getInput=function(e,t){let r=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!r)throw Error(`Input required and not supplied: ${e}`);return r.trim();},lM.setOutput=function(e,t){lB.issueCommand("set-output",{name:e},t);},lM.setCommandEcho=function(e){lB.issue("echo",e?"on":"off");},lM.setFailed=function(e){process.exitCode=u.Failure,l0(e);},lM.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},lM.debug=function(e){lB.issueCommand("debug",{},e);},lM.error=l0,lM.warning=function(e){lB.issue("warning",e instanceof Error?e.toString():e);},lM.info=function(e){process.stdout.write(e+lJ.EOL);},lM.startGroup=l1,lM.endGroup=l2,lM.group=function(e,t){return lG(this,void 0,void 0,function*(){let r;l1(e);try{r=yield t();}finally{l2();}return r;});},lM.saveState=function(e,t){lB.issueCommand("save-state",{name:e},t);},lM.getState=function(e){return process.env[`STATE_${e}`]||"";};const l4=T.env["ProgramFiles(x86)"],l3=[T.env["ProgramFiles(x86)"],T.env.ProgramFiles],l6=["Enterprise","Professional","Community"],l8=["2022","2019","2017"],l5={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};function l9(e){if(Object.values(l5).includes(e));else if(e in l5)return l5[e];return e;}const l7=`${l4}\\Microsoft Visual Studio\\Installer`;function ce(e){let t;let r=l9(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return b.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){lM.warning(`vswhere failed: ${e}`);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&f.existsSync(n))return lM.info(`Found with vswhere: ${n}`),n;lM.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(l5).includes(e));else for(let[t,r]of Object.entries(l5))if(r===e)return t;return e;}(e)]:l8;for(let e of l3)for(let t of i)for(let r of l6)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,lM.info(`Trying standard location: ${n}`),f.existsSync(n))return lM.info(`Found standard location: ${n}`),n;if(lM.info("Not found in standard locations"),n=`${l4}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,f.existsSync(n))return lM.info(`Found VS 2015: ${n}`),n;throw lM.info(`Not found in VS 2015 location: ${n}`),Error("Microsoft Visual Studio not found");}c=function(e,t,r,n,i,o){if("win32"!=T.platform){lM.info("This is not a Windows virtual environment, bye!");return;}T.env.PATH+=d.delimiter+l7;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push(`-vcvars_ver=${r}`),"true"==i&&a.push("-vcvars_spectre_libs=spectre");let l=`"${ce(o)}" ${a.join(" ")}`;lM.debug(`vcvars command-line: ${l}`);let c=b.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString(),u=c.split("\f"),p=u[0].split("\r\n"),f=u[1].split("\r\n"),h=u[2].split("\r\n"),m=f.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(m.length>0)throw Error("invalid parameters\r\n"+m.join("\r\n"));let v={};for(let e of p){let[t,r]=e.split("=");v[t]=r;}for(let e of(lM.startGroup("Environment variables"),h)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==v[t]&&(lM.info(`Setting ${t}`),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),lM.exportVariable(t,r));}lM.endGroup(),lM.info("Configured Developer Command Prompt");};var H=F("hHq4F"),oW=F("3WkGD");async function ct(e,t,r,n,i,o,s){void 0!==t&&(await(0,oW.pathExists)(t))&&((0,H.info)(`Adding ${t} to PATH`),await oz("VCTargetsPath",t)),c(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}var B=F("cLprm"),rE=F("A8hFE"),H=F("hHq4F"),oW=F("3WkGD"),cr=d.resolve(__dirname,"../../src/msvc");async function cn(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=l9(e);(0,H.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=ce(l);c=!0,(0,H.info)(`Found the pre-installed version of MSVC at ${e}`);}catch{}if(!c)try{"14.0"===l?(s="14.0",await sS("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await sS("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await sS("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await sS("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,H.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,H.error)(e);}await ct(l,a,r,s,n,i,o),B.GITHUB_ACTIONS&&(await ci());}async function ci(){let e=(0,rE.join)(cr,"msvc_matcher.json");if(!(await(0,oW.pathExists)(e)))return(0,H.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,H.info)(`::add-matcher::${e}`);}async function co(e,t,r){if(!sT())return;if("string"==typeof o)return{binDir:o};let n=U(o2).sync("nala",{nothrow:!0});if(null!==n)return{binDir:o=(0,rE.dirname)(n)};let i=await sh("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");iw("/bin/bash",["-c",`echo "deb [signed-by=${i}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await sl([{name:"nala"}],!0):await sl([{name:"nala-legacy"}],!0);}catch(e){await sl([{name:"nala-legacy"}],!0);}return{binDir:o="/usr/bin"};}async function cs(e,t,r){if("win32"!==process.platform)return;await sS("opencppcoverage",e);let n=await ca();return{binDir:n};}async function ca(){let e="C:/Program Files/OpenCppCoverage";return await oK(e),e;}async function cl(e,t,r){switch(process.platform){case"win32":{await sS("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await oK(t),{binDir:t};}case"darwin":return sw("powershell",e,["--cask"]);case"linux":if(sI())return sA("powershell-bin",e,"yay");if(sO())return sR("curl"),iw("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),sR("powershell",e);if(sT()){await sl([{name:"curl"}]);let t=await l$(),r=`${t[0]}.0${t[1]}`;return iw("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),iw("dpkg",["-i","packages-microsoft-prod.deb"]),sl([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}var rE=(F("A8hFE"),F("A8hFE"));function cc(e,t,r){let n=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),i="win32"===t;return{binRelativeDir:"",binFileName:(0,rE.addExeExt)("task"),extractedFolderName:"",extractFunction:i?aE:ay,url:`https://github.com/go-task/task/releases/download/v${e}/task_${"win32"===t?"windows":t}_${n}.${i?"zip":"tar.gz"}`};}var H=F("hHq4F"),oW=F("3WkGD"),rE=F("A8hFE");let cu=!1;async function cp(e,t,r){return cu&&null!==U(o2).sync("vcpkg",{nothrow:!0})?{binDir:(0,rE.dirname)(U(o2).sync("vcpkg"))}:("linux"===process.platform&&(sI()?await Promise.all([sA("curl"),sA("zip"),sA("unzip"),sA("tar"),sA("git"),sA("pkg-config")]):sO()?(sR("curl"),sR("zip"),sR("unzip"),sR("tar"),sR("git"),sR("pkg-config")):sT()&&(await sl([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,oW.pathExists)((0,rE.join)(t,(0,rE.addShExt)("bootstrap-vcpkg",".bat"))))?(0,H.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):ok("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,rE.dirname)(t),stdio:"inherit"}),ok((0,rE.addShExt)((0,rE.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),oV(t),await oK(t),cu=!0,{binDir:t});}async function cd(e,t,r,n,i,o,s){(0,rv.startGroup)(`Installing ${e} ${t}`);let a=!1;try{let s;if("vcvarsall"===e)await ct(aQ(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let o=cf[e];a=["llvm","clangformat","clangtidy"].includes(e);let l=(0,rE.join)(i,a?"llvm":e);s=await o(aQ(e,t,r),l,n);}o.push(cv(e,s));}catch(t){(0,H.error)(t),s.push(`${e} failed to install`);}return(0,rv.endGroup)(),a;}const cf={nala:co,cmake:ax,ninja:lc,python:aF,vcpkg:cp,bazel:sC,conan:a1,meson:function(e,t,r){return aZ("meson",e);},gcovr:function(e,t,r){return aZ("gcovr",e);},opencppcoverage:cs,llvm:lA,gcc:li,choco:sx,brew:sg,powershell:cl,ccache:function(e,t,r){switch(process.platform){case"win32":return sS("ccache",e);case"darwin":return sw("ccache",e);case"linux":if(sI())return sA("ccache",e);if(sO())return sR("ccache",e);if(sT())return sl([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return sS("sccache",e);case"linux":case"darwin":return sw("sccache",e);default:throw Error("Unsupported platform");}},doxygen:a5,graphviz:a3,cppcheck:a2,clangtidy:lk,clangformat:lk,msvc:cn,vcvarsall:ct,kcov:lm,make:lj,task:function(e,t,r){return af("task",e,cc,t,r);},sevenzip:ah},ch=Object.keys(cf),cm=["compiler","architecture",...ch];function cv(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+=` - The installation directory is ${t.installDir}`),""!==t.binDir&&(r+=` - The binary directory is ${t.binDir}`)),r;}var rv=F("2heqc"),H=F("hHq4F"),aP=F("crNym");async function cg(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==U(aP)(e)||(0,H.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,rv.startGroup)(`Installing ${a} ${null!=l?l:""}`),a){case"llvm":case"clang":case"clang++":{let e=await lA(aQ("llvm",l,t),(0,d.join)(r,"llvm"),n);await oz("GCOV","llvm-cov gcov"),i.push(cv("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e=aQ("gcc",l,t),s=await li(e,(0,d.join)(r,"gcc"),n);o&&(await oz("CPPFLAGS","")),await function(e){let t=U(aP)(e),r=null!==t?U(a7)(t):e,n=""!==r?`gcov-${r}`:"gcov";return oz("GCOV",n);}(e),i.push(cv("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await cn(aQ("msvc",l,t),(0,d.join)(r,"msvc"),n);o&&(await oz("CPPFLAGS","")),i.push(cv("msvc",e));break;}case"appleclang":case"applellvm":(0,rv.notice)("Assuming apple-clang is already installed"),await Promise.all([oz("CC","clang"),oz("CXX","clang++")]),i.push(cv("apple-clang",void 0));break;default:s.push(`Unsupported compiler ${a}`);}}catch(t){(0,H.error)(t),s.push(`Failed to install the ${e}`);}(0,rv.endGroup)();}(async function(e){var t,r;let n,i,o=Promise.resolve();B.GITHUB_ACTIONS||(o=rm(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=rg(t.string),t.boolean=rg(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=rg(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;l0;)a[n.shift()]=a[r];return a;}(e,{string:cm,default:Object.fromEntries(cm.map(e=>[e,function(e){let t=(0,rv.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,H.info)(` setup-cpp [options] setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true Install all the tools required for building and testing C++/C projects. --architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture. --compiler the to install. You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0' --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: `),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(t=s.architecture)&&void 0!==t?t:process.arch,l=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:t6(""),c=[],u=[],p=X.create({autoloadLocales:!0});X.addLocale(U(W)),q.addLocale(U(V));let d=await l$();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!aJ(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(s,["llvm","clangtidy","clangformat"]))return(0,H.error)("The same version must be used for llvm, clangformat and clangtidy"),1;sI()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,H.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await sA("python-pygments"));let f=!1;for(let e of ch){let t=s[e];void 0!==t&&(n=Date.now(),f=await cd(e,t,d,a,l,c,u),i=Date.now(),(0,H.info)(`took ${p.format(n,i)||"0 seconds"}`));}let h=s.compiler;if(void 0!==h){let e=Date.now();await cg(h,d,l,a,c,f,u);let t=Date.now();(0,H.info)(`took ${p.format(e,t)||"0 seconds"}`);}if(await o1(),0===c.length&&0===u.length)return(0,H.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,H.success)(e)),u.forEach(e=>(0,H.error)(e)),(0,H.info)("setup-cpp finished"),!B.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,H.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,H.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await o,0===u.length?0:1;})(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,H.error)("main() panicked!"),(0,H.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map