UNPKG

setup-cpp

Version:

Install all the tools required for building and testing C++/C projects.

1 lines 297 kB
function e(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function t(e){if({}.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}function n(){return Bi||(Bi=1,Object.defineProperty(Wi,"__esModule",{value:!0}),Wi.toCommandProperties=Wi.toCommandValue=void 0,Wi.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},Wi.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}:{}}),Wi}function r(e){const t="https:"===e.protocol;if(function(e){if(!e.hostname)return!1;if(function(e){const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let n;e.port?n=Number(e.port):"http:"===e.protocol?n=80:"https:"===e.protocol&&(n=443);const r=[e.hostname.toUpperCase()];"number"==typeof n&&r.push(`${r[0]}:${n}`);for(const i of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if("*"===i||r.some((e=>e===i||e.endsWith("."+i)||i.startsWith(".")&&e.endsWith(""+i))))return!0;return!1}(e))return;const n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new Yi(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new Yi("http://"+n)}}function i(){if(vo)return Ki;vo=1;var e=Ki&&Ki.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.OidcClient=void 0;const t=mo,n=function(){if(yo)return Io;yo=1;var e=Io&&Io.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};return Object.defineProperty(Io,"__esModule",{value:!0}),Io.PersonalAccessTokenCredentialHandler=Io.BearerCredentialHandler=Io.BasicCredentialHandler=void 0,Io.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Io.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Io.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 e(this,void 0,void 0,(function*(){throw Error("not implemented")}))}},Io}(),r=u();class i{static createHttpClient(e=!0,r=10){const o={allowRetries:e,maxRetries:r};return new t.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],o)}static getRequestToken(){const 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(){const 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(t){var n;return e(this,void 0,void 0,(function*(){const e=i.createHttpClient(),r=yield e.getJson(t).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)})),o=null===(n=r.result)||void 0===n?void 0:n.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(t){return e(this,void 0,void 0,(function*(){try{let e=i.getIDTokenUrl();t&&(e=`${e}&audience=${encodeURIComponent(t)}`),(0,r.debug)("ID token url is "+e);const n=yield i.getCall(e);return(0,r.setSecret)(n),n}catch(e){throw Error("Error message: "+e.message)}}))}}return Ki.OidcClient=i,Ki}function o(){return wo||(wo=1,function(e){var t=Po&&Po.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.summary=e.markdownSummary=e.SUMMARY_DOCS_URL=e.SUMMARY_ENV_VAR=void 0;const n=xr,r=Ar,{access:i,appendFile:o,writeFile:s}=r.promises;e.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";const a=new class{constructor(){this._buffer=""}filePath(){return t(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const t=process.env[e.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield i(t,r.constants.R_OK|r.constants.W_OK)}catch(n){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,n={}){const r=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${r}>${t}</${e}>`:`<${e}${r}>`}write(e){return t(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),n=yield this.filePath(),r=t?s:o;return yield r(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return t(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(n.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t}),r=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){const n=t?"ol":"ul",r=e.map((e=>this.wrap("li",e))).join(""),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:n,colspan:r,rowspan:i}=e,o=t?"th":"td",s=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(o,n,s)})).join("");return this.wrap("tr",t)})).join(""),n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:r,height:i}=n||{},o=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){const n="h"+t,r=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",e);return this.addRaw(r).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t}),r=this.wrap("blockquote",e,n);return this.addRaw(r).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}};e.markdownSummary=a,e.summary=a}(Po)),Po}function s(){return Eo||(Eo=1,function(e){function t(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,r=Co&&Co.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=Co&&Co.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=Co&&Co.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=Co&&Co.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.getCmdPath=e.tryGetExecutablePath=e.isRooted=e.isDirectory=e.exists=e.READONLY=e.UV_FS_O_EXLOCK=e.IS_WINDOWS=e.unlink=e.symlink=e.stat=e.rmdir=e.rm=e.rename=e.readlink=e.readdir=e.open=e.mkdir=e.lstat=e.copyFile=e.chmod=void 0;const a=o(Ar),c=o(Ur);e.chmod=(n=a.promises).chmod,e.copyFile=n.copyFile,e.lstat=n.lstat,e.mkdir=n.mkdir,e.open=n.open,e.readdir=n.readdir,e.readlink=n.readlink,e.rename=n.rename,e.rm=n.rm,e.rmdir=n.rmdir,e.stat=n.stat,e.symlink=n.symlink,e.unlink=n.unlink,e.IS_WINDOWS="win32"===process.platform,e.UV_FS_O_EXLOCK=268435456,e.READONLY=a.constants.O_RDONLY,e.exists=function(t){return s(this,void 0,void 0,(function*(){try{yield e.stat(t)}catch(n){if("ENOENT"===n.code)return!1;throw n}return!0}))},e.isDirectory=function(t,n=!1){return s(this,void 0,void 0,(function*(){return(n?yield e.stat(t):yield e.lstat(t)).isDirectory()}))},e.isRooted=function(t){if(!(t=function(t){return t=t||"",e.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")}(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.tryGetExecutablePath=function(n,r){return s(this,void 0,void 0,(function*(){let i;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile())if(e.IS_WINDOWS){const e=c.extname(n).toUpperCase();if(r.some((t=>t.toUpperCase()===e)))return n}else if(t(i))return n;const o=n;for(const a of r){n=o+a,i=void 0;try{i=yield e.stat(n)}catch(s){"ENOENT"!==s.code&&console.log(`Unexpected error attempting to determine if executable file exists '${n}': ${s}`)}if(i&&i.isFile()){if(e.IS_WINDOWS){try{const t=c.dirname(n),r=c.basename(n).toUpperCase();for(const i of yield e.readdir(t))if(r===i.toUpperCase()){n=c.join(t,i);break}}catch(s){console.log(`Unexpected error attempting to determine the actual case of the file '${n}': ${s}`)}return n}if(t(i))return n}}return""}))},e.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}(Co)),Co}function a(){function e(e){return u(this,void 0,void 0,(function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(t){throw Error("File was unable to be removed "+t)}}))}function t(e){return u(this,void 0,void 0,(function*(){l.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0})}))}function n(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(f.delimiter))e&&t.push(e);if(p.isRooted(e)){const n=yield p.tryGetExecutablePath(e,t);return n?[n]:[]}if(e.includes(f.sep))return[];const n=[];if(process.env.PATH)for(const e of process.env.PATH.split(f.delimiter))e&&n.push(e);const r=[];for(const i of n){const n=yield p.tryGetExecutablePath(f.join(i,e),t);n&&r.push(n)}return r}))}function r(e,n,o,s){return u(this,void 0,void 0,(function*(){if(o>=255)return;o++,yield t(n);const a=yield p.readdir(e);for(const t of a){const a=`${e}/${t}`,c=`${n}/${t}`;(yield p.lstat(a)).isDirectory()?yield r(a,c,o,s):yield i(a,c,s)}yield p.chmod(n,(yield p.stat(e)).mode)}))}function i(e,t,n){return u(this,void 0,void 0,(function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t)}catch(r){"EPERM"===r.code&&(yield p.chmod(t,"0666"),yield p.unlink(t))}const n=yield p.readlink(e);yield p.symlink(n,t,p.IS_WINDOWS?"junction":null)}else(yield p.exists(t))&&!n||(yield p.copyFile(e,t))}))}if(_o)return Ao;_o=1;var o=Ao&&Ao.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=Ao&&Ao.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=Ao&&Ao.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&o(t,e,n);return a(t,e),t},u=Ao&&Ao.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(Ao,"__esModule",{value:!0}),Ao.findInPath=Ao.which=Ao.mkdirP=Ao.rmRF=Ao.mv=Ao.cp=void 0;const l=oi,f=c(Ur),p=c(s());return Ao.cp=function(e,t,n={}){return u(this,void 0,void 0,(function*(){const{force:o,recursive:s,copySourceDirectory:a}=function(e){return{force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}}(n),c=(yield p.exists(t))?yield p.stat(t):null;if(c&&c.isFile()&&!o)return;const u=c&&c.isDirectory()&&a?f.join(t,f.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(!s)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield r(e,u,0,o)}else{if(""===f.relative(e,u))throw Error(`'${u}' and '${e}' are the same file`);yield i(e,u,o)}}))},Ao.mv=function(n,r,i={}){return u(this,void 0,void 0,(function*(){if(yield p.exists(r)){let t=!0;if((yield p.isDirectory(r))&&(r=f.join(r,f.basename(n)),t=yield p.exists(r)),t){if(null!=i.force&&!i.force)throw Error("Destination already exists");yield e(r)}}yield t(f.dirname(r)),yield p.rename(n,r)}))},Ao.rmRF=e,Ao.mkdirP=t,Ao.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const n=yield e(t,!1);if(!n)throw Error(p.IS_WINDOWS?`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.`:`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 n}const i=yield n(t);return i&&i.length>0?i[0]:""}))},Ao.findInPath=n,Ao}function c(){function e(e,t,n){return i(this,void 0,void 0,(function*(){const r=c.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const i=r[0];return t=r.slice(1).concat(t||[]),new c.ToolRunner(i,t,n).exec()}))}if(So)return No;So=1;var t=No&&No.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=No&&No.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=No&&No.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=No&&No.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(No,"__esModule",{value:!0}),No.getExecOutput=No.exec=void 0;const o=ri,c=r(function(){if(bo)return $o;bo=1;var e=$o&&$o.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=$o&&$o.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=$o&&$o.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},r=$o&&$o.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty($o,"__esModule",{value:!0}),$o.argStringToArray=$o.ToolRunner=void 0;const i=n(xr),o=n(ti),c=n(ii),u=n(Ur),l=n(a()),f=n(s()),p=si,d="win32"===process.platform;$o.ToolRunner=class extends o.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const n=this._getSpawnFileName(),r=this._getSpawnArgs(e);let i=t?"":"[command]";if(d)if(this._isCmdFile()){i+=n;for(const e of r)i+=" "+e}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of r)i+=" "+e}else{i+=this._windowsQuoteCmdArg(n);for(const e of r)i+=" "+this._windowsQuoteCmdArg(e)}else{i+=n;for(const e of r)i+=" "+e}return i}_processLineBuffer(e,t,n){try{let r=t+""+e,o=r.indexOf(i.EOL);for(;o>-1;)n(r.substring(0,o)),r=r.substring(o+i.EOL.length),o=r.indexOf(i.EOL);return r}catch(r){return this._debug("error processing line. Failed with error "+r),""}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const n of this.args)t+=" ",t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=!1;for(const o of e)if(t.some((e=>e===o))){n=!0;break}if(!n)return e;let r='"',i=!0;for(let o=e.length;o>0;o--)r+=e[o-1],i&&"\\"===e[o-1]?r+="\\":'"'===e[o-1]?(i=!0,r+='"'):i=!1;return r+='"',r.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&"\\"===e[r-1]?t+="\\":'"'===e[r-1]?(n=!0,t+="\\"):n=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=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){const n={};return n.cwd=(e=e||{}).cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return r(this,void 0,void 0,(function*(){return!f.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield l.which(this.toolPath,!0),new Promise(((e,t)=>r(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+i.EOL);const r=new h(n,this.toolPath);if(r.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!`));const o=this._getSpawnFileName(),s=c.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let a="";s.stdout&&s.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let u="";if(s.stderr&&s.stderr.on("data",(e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),u=this._processLineBuffer(e,u,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),s.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),s.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),s.on("close",(e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete()})),r.on("done",((n,r)=>{a.length>0&&this.emit("stdline",a),u.length>0&&this.emit("errline",u),s.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!s.stdin)throw Error("child process missing stdin");s.stdin.end(this.options.input)}}))))}))}},$o.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}const n=[];let r=!1,i=!1,o="";for(let s=0;e.length>s;s++){const a=e.charAt(s);'"'!==a?"\\"===a&&i?t(a):"\\"===a&&r?i=!0:" "!==a||r?t(a):o.length>0&&(n.push(o),o=""):i?t(a):r=!r}return o.length>0&&n.push(o.trim()),n};class h extends o.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=p.setTimeout(h.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){e.done||(!e.processClosed&&e.processExited&&e._debug(`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._setResult())}}return $o}());return No.exec=e,No.getExecOutput=function(t,n,r){var s,a;return i(this,void 0,void 0,(function*(){let i="",c="";const u=new o.StringDecoder("utf8"),l=new o.StringDecoder("utf8"),f=null===(s=null==r?void 0:r.listeners)||void 0===s?void 0:s.stdout,p=null===(a=null==r?void 0:r.listeners)||void 0===a?void 0:a.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout:e=>{i+=u.write(e),f&&f(e)},stderr:e=>{c+=l.write(e),p&&p(e)}}),h=yield e(t,n,Object.assign(Object.assign({},r),{listeners:d}));return i+=u.end(),c+=l.end(),{exitCode:h,stdout:i,stderr:c}}))},No}function u(){return Ro||(Ro=1,function(e){function t(e,t){const n=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!n)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?n:n.trim()}function r(e,t={}){(0,d.issueCommand)("error",(0,m.toCommandProperties)(t),e instanceof Error?""+e:e)}function s(e){(0,d.issue)("group",e)}function a(){(0,d.issue)("endgroup")}var u=qi&&qi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),l=qi&&qi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=qi&&qi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&{}.hasOwnProperty.call(e,n)&&u(t,e,n);return l(t,e),t},p=qi&&qi.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.platform=e.toPlatformPath=e.toWin32Path=e.toPosixPath=e.markdownSummary=e.summary=e.getIDToken=e.getState=e.saveState=e.group=e.endGroup=e.startGroup=e.info=e.notice=e.warning=e.error=e.debug=e.isDebug=e.setFailed=e.setCommandEcho=e.setOutput=e.getBooleanInput=e.getMultilineInput=e.getInput=e.addPath=e.setSecret=e.exportVariable=e.ExitCode=void 0;const d=function(){function e(e,t,n){const r=new a(e,t,n);process.stdout.write(""+r+o.EOL)}if(Hi)return zi;Hi=1;var t=zi&&zi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=zi&&zi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=zi&&zi.__importStar||function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(n,e,i);return r(n,e),n};Object.defineProperty(zi,"__esModule",{value:!0}),zi.issue=zi.issueCommand=void 0;const o=i(xr),s=n();zi.issueCommand=e,zi.issue=function(t,n=""){e(t,{},n)};class a{constructor(e,t,n){e||(e="missing.command"),this.command=e,this.properties=t,this.message=n}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let n=!0;for(const r in this.properties)if(this.properties.hasOwnProperty(r)){const i=this.properties[r];i&&(n?n=!1:e+=",",e+=`${r}=${t=i,(0,s.toCommandValue)(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+function(e){return(0,s.toCommandValue)(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}(this.message),e}}return zi}(),h=function(){if(Vi)return Xi;Vi=1;var e=Xi&&Xi.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=Xi&&Xi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Xi&&Xi.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.prepareKeyValueMessage=Xi.issueFileCommand=void 0;const i=r($r),o=r(Ar),s=r(xr),a=n();return Xi.issueFileCommand=function(e,t){const n=process.env["GITHUB_"+e];if(!n)throw Error("Unable to find environment variable for file command "+e);if(!o.existsSync(n))throw Error("Missing file at path: "+n);o.appendFileSync(n,`${(0,a.toCommandValue)(t)}${s.EOL}`,{encoding:"utf8"})},Xi.prepareKeyValueMessage=function(e,t){const n="ghadelimiter_"+i.randomUUID(),r=(0,a.toCommandValue)(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(r.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${s.EOL}${r}${s.EOL}${n}`},Xi}(),m=n(),y=f(xr),v=f(Ur),w=i();var g,E;(E=g||(e.ExitCode=g={}))[E.Success=0]="Success",E[E.Failure=1]="Failure",e.exportVariable=function(e,t){const n=(0,m.toCommandValue)(t);if(process.env[e]=n,process.env.GITHUB_ENV)return(0,h.issueFileCommand)("ENV",(0,h.prepareKeyValueMessage)(e,t));(0,d.issueCommand)("set-env",{name:e},n)},e.setSecret=function(e){(0,d.issueCommand)("add-mask",{},e)},e.addPath=function(e){process.env.GITHUB_PATH?(0,h.issueFileCommand)("PATH",e):(0,d.issueCommand)("add-path",{},e),process.env.PATH=`${e}${v.delimiter}${process.env.PATH}`},e.getInput=t,e.getMultilineInput=function(e,n){const r=t(e,n).split("\n").filter((e=>""!==e));return n&&!1===n.trimWhitespace?r:r.map((e=>e.trim()))},e.getBooleanInput=function(e,n){const r=t(e,n);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return(0,h.issueFileCommand)("OUTPUT",(0,h.prepareKeyValueMessage)(e,t));process.stdout.write(y.EOL),(0,d.issueCommand)("set-output",{name:e},(0,m.toCommandValue)(t))},e.setCommandEcho=function(e){(0,d.issue)("echo",e?"on":"off")},e.setFailed=function(e){process.exitCode=g.Failure,r(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,d.issueCommand)("debug",{},e)},e.error=r,e.warning=function(e,t={}){(0,d.issueCommand)("warning",(0,m.toCommandProperties)(t),e instanceof Error?""+e:e)},e.notice=function(e,t={}){(0,d.issueCommand)("notice",(0,m.toCommandProperties)(t),e instanceof Error?""+e:e)},e.info=function(e){process.stdout.write(e+y.EOL)},e.startGroup=s,e.endGroup=a,e.group=function(e,t){return p(this,void 0,void 0,(function*(){let n;s(e);try{n=yield t()}finally{a()}return n}))},e.saveState=function(e,t){if(process.env.GITHUB_STATE)return(0,h.issueFileCommand)("STATE",(0,h.prepareKeyValueMessage)(e,t));(0,d.issueCommand)("save-state",{name:e},(0,m.toCommandValue)(t))},e.getState=function(e){return process.env["STATE_"+e]||""},e.getIDToken=function(e){return p(this,void 0,void 0,(function*(){return yield w.OidcClient.getIDToken(e)}))};var _=o();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var b=o();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var S=function(){if(go)return xo;go=1;var e=xo&&xo.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=xo&&xo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=xo&&xo.__importStar||function(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&{}.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r};Object.defineProperty(xo,"__esModule",{value:!0}),xo.toPlatformPath=xo.toWin32Path=xo.toPosixPath=void 0;const r=n(Ur);return xo.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},xo.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},xo.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},xo}();Object.defineProperty(e,"toPosixPath",{enumerable:!0,get:function(){return S.toPosixPath}}),Object.defineProperty(e,"toWin32Path",{enumerable:!0,get:function(){return S.toWin32Path}}),Object.defineProperty(e,"toPlatformPath",{enumerable:!0,get:function(){return S.toPlatformPath}}),e.platform=f((Oo||(Oo=1,function(e){var t=To&&To.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=To&&To.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=To&&To.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=To&&To.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{c(r.next(e))}catch(t){o(t)}}function a(e){try{c(r.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((r=r.apply(e,t||[])).next())}))},o=To&&To.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDetails=e.isLinux=e.isMacOS=e.isWindows=e.arch=e.platform=void 0;const s=o(xr),a=r(c());e.platform=s.default.platform(),e.arch=s.default.arch(),e.isWindows="win32"===e.platform,e.isMacOS="darwin"===e.platform,e.isLinux="linux"===e.platform,e.getDetails=function(){return i(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield i(void 0,void 0,void 0,e.isWindows?function*(){const{stdout:e}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',void 0,{silent:!0}),{stdout:t}=yield a.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',void 0,{silent:!0});return{name:t.trim(),version:e.trim()}}:e.isMacOS?function*(){var e,t,n,r;const{stdout:i}=yield a.getExecOutput("sw_vers",void 0,{silent:!0}),o=null!==(t=null===(e=i.match(/ProductVersion:\s*(.+)/))||void 0===e?void 0:e[1])&&void 0!==t?t:"";return{name:null!==(r=null===(n=i.match(/ProductName:\s*(.+)/))||void 0===n?void 0:n[1])&&void 0!==r?r:"",version:o}}:function*(){const{stdout:e}=yield a.getExecOutput("lsb_release",["-i","-r","-s"],{silent:!0}),[t,n]=e.trim().split("\n");return{name:t,version:n}})),{platform:e.platform,arch:e.arch,isWindows:e.isWindows,isMacOS:e.isMacOS,isLinux:e.isLinux})}))}}(To)),To))}(qi)),qi}function l(e){return Do?Lo.error(e):console.log(`${e}`)}function f(e){return console.log(`${e}`)}function p(e){return Do?Lo.warning(e):console.log(`${e}`)}function d(e){return Do?Lo.notice(e):console.log(`${e}`)}function h(e){return Do?Lo.info(e):console.log(e)}function m(){if(Ho)return Bo;Ho=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=Ur,n=e?";":":",r=function(){function e(n,r,i){if("function"==typeof r&&(i=r,r={}),!i){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(t,i){e(n,r||{},(function(e,n){e?i(e):t(n)}))}))}t(n,r||{},(function(e,t){e&&("EACCES"===e.code||r&&r.ignoreErrors)&&(e=null,t=!1),i(e,t)}))}return Go||(Go=1,t="win32"===process.platform||ki.TESTING_WINDOWS?function(){function e(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var r=0;n.length>r;r++){var i=n[r].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}(t,n)}function t(t,r,i){n.stat(t,(function(n,o){i(n,!n&&e(o,t,r))}))}if(Fo)return ko;Fo=1,ko=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Ar;return ko}():function(){function e(e,r,i){n.stat(e,(function(e,n){i(e,!e&&t(n,r))}))}function t(e,t){return e.isFile()&&function(e,t){var n=e.mode,r=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),c=parseInt("010",8),u=a|c;return n&parseInt("001",8)||n&c&&i===s||n&a&&r===o||n&u&&0===o}(e,t)}if(Uo)return jo;Uo=1,jo=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Ar;return jo}(),Mo=e,e.sync=function(e,n){try{return t.sync(e,n||{})}catch(r){if(n&&n.ignoreErrors||"EACCES"===r.code)return!1;throw r}}),Mo;var t}(),i=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),o=(t,r)=>{const i=r.colon||n,o=t.match(/\//)||e&&t.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)],s=e?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",a=e?s.split(i):[""];return e&&-1!==t.indexOf(".")&&""!==a[0]&&a.unshift(""),{pathEnv:o,pathExt:a,pathExtExe:s}},s=(e,n,s)=>{"function"==typeof n&&(s=n,n={}),n||(n={});const{pathEnv:a,pathExt:c,pathExtExe:u}=o(e,n),l=[],f=r=>new Promise(((o,s)=>{if(r===a.length)return n.all&&l.length?o(l):s(i(e));const c=a[r],u=/^".*"$/.test(c)?c.slice(1,-1):c,f=t.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;o(p(d,r,0))})),p=(e,t,i)=>new Promise(((o,s)=>{if(i===c.length)return o(f(t+1));const a=c[i];r(e+a,{pathExt:u},((r,s)=>{if(!r&&s){if(!n.all)return o(e+a);l.push(e+a)}return o(p(e,t,i+1))}))}));return s?f(0).then((e=>s(null,e)),s):f(0)};return Bo=s,s.sync=(e,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:c}=o(e,n),u=[];for(let i=0;s.length>i;i++){const o=s[i],f=/^".*"$/.test(o)?o.slice(1,-1):o,p=t.join(f,e),d=!f&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;for(let e=0;a.length>e;e++){const t=d+a[e];try{if(r.sync(t,{pathExt:c})){if(!n.all)return t;u.push(t)}}catch(l){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw i(e)},Bo}function y(){if(ts)return es;ts=1;const e=Ur,t=function(){function e(e,i){const o=e.options.env||process.env,s=process.cwd(),a=null!=e.options.cwd,c=a&&void 0!==process.chdir&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch(l){}let u;try{u=n.sync(e.command,{path:o[r({env:o})],pathExt:i?t.delimiter:void 0})}catch(f){}finally{c&&process.chdir(s)}return u&&(u=t.resolve(a?e.options.cwd:"",u)),u}if(zo)return qo;zo=1;const t=Ur,n=m(),r=function(){if(Vo)return ss.exports;Vo=1;const e=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};return ss.exports=e,ss.exports.default=e,ss.exports}();return qo=function(t){return e(t)||e(t,!0)}}(),n=function(){if(Wo)return as;Wo=1;const e=/([()\][%!^"`<>&|;, *?])/g;return as.command=function(t){return t.replace(e,"^$1")},as.argument=function(t,n){return t=(t=`"${t=(t=(t=""+t).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(e,"^$1"),n&&(t=t.replace(e,"^$1")),t},as}(),r=function(){if(Zo)return Qo;Zo=1;const e=Ar,t=function(){if(Jo)return Yo;Jo=1;const e=Ko?Xo:(Ko=1,Xo=/^#!(.*)/);return Yo=(t="")=>{const n=t.match(e);if(!n)return null;const[r,i]=n[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?i:i?`${o} ${i}`:o}}();return Qo=function(n){const r=Buffer.alloc(150);let i;try{i=e.openSync(n,"r"),e.readSync(i,r,0,150,0),e.closeSync(i)}catch(o){}return t(""+r)}}(),i="win32"===process.platform,o=/\.(?:com|exe)$/i,s=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;return es=function(a,c,u){c&&!Array.isArray(c)&&(u=c,c=null);const l={command:a,args:c=c?c.slice(0):[],options:u=Object.assign({},u),file:void 0,original:{command:a,args:c}};return u.shell?l:function(a){if(!i)return a;const c=function(e){e.file=t(e);const n=e.file&&r(e.file);return n?(e.args.unshift(e.file),e.command=n,t(e)):e.file}(a),u=!o.test(c);if(a.options.forceShell||u){const t=s.test(c);a.command=e.normalize(a.command),a.command=n.command(a.command),a.args=a.args.map((e=>n.argument(e,t)));const r=[a.command].concat(a.args).join(" ");a.args=["/d","/s","/c",`"${r}"`],a.command=process.env.comspec||"cmd.exe",a.options.windowsVerbatimArguments=!0}return a}(l)}}function v(e={}){const{env:t=process.env,platform:n=process.platform}=e;return"win32"!==n?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"}function w(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function g(e){return w(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function E(e,t,n){const r=ua(e,t,n),i=na(e,t),o=ra(e,t);let s;ca(o,r.options),(({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)})(r.options);try{s=ui.spawn(r.file,r.args,r.options)}catch(p){const e=new ui.ChildProcess,t=Promise.reject(Rs({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Qs(e,t),e}const a=(e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))})))(s),c=((e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(0===t||void 0===t)return r;let i;const o=new Promise(((r,o)=>{i=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,o)}),t)})),s=r.finally((()=>{clearTimeout(i)}));return Promise.race([o,s])})(s,r.options,a),u=(async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;const i=$s((()=>{e.kill()}));return r.finally((()=>{i()}))})(s,r.options,c),l={isCanceled:!1};s.kill=As.bind(null,s.kill.bind(s)),s.cancel=Fs.bind(null,s,l);const f=ys((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,f,p]=await(async({stdout:t,stderr:n,all:r},{encoding:i,buffer:o,maxBuffer:s},a)=>{const c=Ks(t,{encoding:i,buffer:o,maxBuffer:s}),u=Ks(n,{encoding:i,buffer:o,maxBuffer:s}),l=Ks(r,{encoding:i,buffer:o,maxBuffer:2*s});try{return await Promise.all([a,c,u,l])}catch(e){return Promise.all([{error:e,signal:e.signal,timedOut:e.timedOut},Xs(t,c),Xs(n,u),Xs(r,l)])}})(s,r.options,u),d=la(r.options,c),h=la(r.options,f),m=la(r.options,p);if(e||0!==t||null!==n){const c=Rs({error:e,exitCode:t,signal:n,stdout:d,stderr:h,all:m,command:i,escapedCommand:o,parsed:r,timedOut:a,isCanceled:l.isCanceled||!!r.options.signal&&r.options.signal.aborted,killed:s.killed});if(!r.options.reject)return c;throw c}return{command:i,escapedCommand:o,exitCode:0,stdout:d,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return((e,t)=>{const n=(({input:e,inputFile:t})=>"string"!=typeof t?e:(Ws(e),vi(t)))(t);void 0!==n&&(w(n)?n.pipe(e.stdin):e.stdin.end(n))})(s,r.options),s.all=((e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=zs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=js.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=js.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=js.bind(void 0,e,"all"))})(s),Qs(s,f),s}function _(e,t,n){const r=ua(e,t,n),i=na(e,t),o=ra(e,t);ca(o,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(Ws(e),wi(t)))(e);if(w(t))throw new TypeError("The `input` option cannot be a stream in sync mode");return t})(r.options);let a;try{a=ui.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Rs({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=la(r.options,a.stdout,a.error),u=la(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Rs({stdout:c,stderr:u,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:o,parsed:r,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!r.options.reject)return e;throw e}return{command:i,escapedCommand:o,exitCode:0,stdout:c,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function b(){return ha||(ha=1,function(e){var t=va&&va.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=va&&va.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=va&&va.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=va&&va.__exportStar||function(e,n){for(var r in e)"default"===r||{}.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.sync=e.isexe=e.posix=e.win32=void 0;const o=r(function(){if(fa)return wa;fa=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.sync=wa.isexe=void 0;const e=Ar,t=Si;wa.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},wa.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t)=>e.isFile()&&r(e,t),r=(e,t)=>{const n=t.uid??process.getuid?.(),r=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??r[0];if(void 0===n||void 0===i)throw Error("cannot get uid or gid");const o=new Set([i,...r]),s=e.mode,a=e.uid,c=e.gid,u=parseInt("100",8),l=parseInt("010",8),f=u|l;return!!(s&parseInt("001",8)||s&l&&o.has(c)||s&u&&a===n||s&f&&0===n)};return wa}());e.posix=o;const s=r(function(){if(pa)return ga;pa=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.sync=ga.isexe=void 0;const e=Ar,t=Si;ga.isexe=async(e,r={})=>{const{ignoreErrors:i=!1}=r;try{return n(await(0,t.stat)(e),e,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}},ga.sync=(t,r={})=>{const{ignoreErrors:i=!1}=r;try{return n((0,e.statSync)(t),t,r)}catch(o){if(i||"EACCES"===o.code)return!1;throw o}};const n=(e,t,n)=>e.isFile()&&((e,t)=>{const{pathExt:n=process.env.PATHEXT||""}=t,r=n.split(";");if(-1!==r.indexOf(""))return!0;for(let i=0;r.length>i;i++){const t=r[i].toLowerCase(),n=e.substring(e.length-t.length).toLowerCase();if(t&&n===t)return!0}return!1})(t,n);return ga}());e.win32=s,i((da||(da=1,Object.defineProperty(Ea,"__esModule",{value:!0})),Ea),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:o;e.isexe=a.isexe,e.sync=a.sync}(va)),va}function S(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return E(function(){if(void 0===ba){const e=_a.sync("pwsh",{nothrow:!0});null!==e&&(ba=e);const t=_a.sync("powershell",{nothrow:!0});null!==t&&(ba=t)}if(void 0===ba)throw Error("Could not find powershell");return ba}(),[...t,"-c",e],n)}function O(e,t,n,r){Object.defineProperty(e,t,{get:n,set:r,enumerable:!0,configurable:!0})}function R(){return null!==_a.sync("sudo",{nothrow:!0})}function I(){return 0===process.getuid?.()||!!process.env.CI}function P(){return I()&&R()}function x(e){return P()?"sudo "+e:e}function T(e,t=[],n=Ra){return P()?function(e,t){const[n,...r]=oa(e);return _(n,r,t)}($(e,t),n):_(e,A(t),n)}function N(e,t=[],n=Ra){return P()?function(e,t){const[n,...r]=oa(e);return E(n,r,t)}($(e,t),n):E(e,A(t),n)}function $(e,t){return"sudo "+A([e,...t]).join(" ")}function A(e){return e.map((e=>`'${e}'`))}function C(){return"win32"===process.platform?Ia():I()}async function L(e){if(("linux"===process.platform||"darwin"===process.platform)&&P()&&void 0!==process.env.SUDO_USER){let t=Ar.statSync(e).isDirectory();await N("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],Ra)}}function D(){if($a)return Na;$a=1;var e=(Ta?xa:(Ta=1,xa=function(){}))();return Na=function(t){return t!==e&&null!==t}}function k(){if(Ca)return Aa;Ca=1;var e=D(),t=[].forEach,n=Object.create;return Aa=function(r){var i=n(null);return t.call(arguments,(function(t){e(t)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(t),i)})),i},Aa}function F(){if(Ha)return Ba;Ha=1;var e=function(){if(Ga)return Ma;Ga=1;var e=Ua?ja:(Ua=1,ja=(Da?La:(Da=1,La=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}))()?Math.sign:Fa?ka:(Fa=1,ka=function(e){return isNaN(e=Number(e))||0===e?e:e>0?1:-1})),t=Math.abs,n=Math.floor;return Ma=function(r){return isNaN(r)?0:0!==(r=Number(r))&&isFinite(r)?e(r)*n(t(r)):r}}(),t=Math.max;return Ba=function(n){return t(0,e(n))}}function j(){if(qa)return Va;qa=1;var e=F();return Va=function(t,n,r){var i;return isNaN(t)?0>(i=n)?1:r&&i?i-1:i:!1!==t&&e(t)}}function U(){return Wa?za:(Wa=1,za=function(e)