setup-cpp
Version:
Install all the tools required for building and testing C++/C projects.
2 lines • 316 kB
JavaScript
#!/usr/bin/env node
"use strict";function e(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const n in e)if("default"!==n){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}return t.default=e,Object.freeze(t)}function t(e){return e&&e.__esModule&&{}.hasOwnProperty.call(e,"default")?e.default:e}function n(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 r(){return ci||(ci=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.toCommandProperties=pi.toCommandValue=void 0,pi.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e)},pi.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}:{}}),pi}function i(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 wi(n)}catch{if(!n.startsWith("http://")&&!n.startsWith("https://"))return new wi("http://"+n)}}function o(){if(Ui)return vi;Ui=1;var e=vi&&vi.__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(vi,"__esModule",{value:!0}),vi.OidcClient=void 0;const t=Di,n=function(){if(ji)return Wi;ji=1;var e=Wi&&Wi.__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(Wi,"__esModule",{value:!0}),Wi.PersonalAccessTokenCredentialHandler=Wi.BearerCredentialHandler=Wi.BasicCredentialHandler=void 0,Wi.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")}))}},Wi.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")}))}},Wi.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")}))}},Wi}(),r=l();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 vi.OidcClient=i,vi}function s(){return Fi||(Fi=1,function(e){var t=Xi&&Xi.__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=$r,r=Lr,{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}(Xi)),Xi}function a(){return Gi||(Gi=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=eo&&eo.__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=eo&&eo.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=eo&&eo.__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=eo&&eo.__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(Lr),c=o(kr);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"}}(eo)),eo}function c(){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(Bi)return Zi;Bi=1;var o=Zi&&Zi.__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]}),s=Zi&&Zi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),c=Zi&&Zi.__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 s(t,e),t},u=Zi&&Zi.__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(Zi,"__esModule",{value:!0}),Zi.findInPath=Zi.which=Zi.mkdirP=Zi.rmRF=Zi.mv=Zi.cp=void 0;const l=qr,f=c(kr),p=c(a());return Zi.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)}}))},Zi.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)}))},Zi.rmRF=e,Zi.mkdirP=t,Zi.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]:""}))},Zi.findInPath=n,Zi}function u(){function e(e,t,n){return i(this,void 0,void 0,(function*(){const r=s.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 s.ToolRunner(i,t,n).exec()}))}if(Hi)return Ji;Hi=1;var t=Ji&&Ji.__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=Ji&&Ji.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ji&&Ji.__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=Ji&&Ji.__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(Ji,"__esModule",{value:!0}),Ji.getExecOutput=Ji.exec=void 0;const o=Gr,s=r(function(){if(qi)return Qi;qi=1;var e=Qi&&Qi.__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=Qi&&Qi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Qi&&Qi.__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=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(Qi,"__esModule",{value:!0}),Qi.argStringToArray=Qi.ToolRunner=void 0;const i=n($r),o=n(Fr),s=n(Br),u=n(kr),l=n(c()),f=n(a()),p=Hr,d="win32"===process.platform;Qi.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(),a=s.spawn(o,this._getSpawnArgs(n),this._getSpawnOptions(this.options,o));let c="";a.stdout&&a.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),c=this._processLineBuffer(e,c,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let u="";if(a.stderr&&a.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)}))})),a.on("error",(e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete()})),a.on("exit",(e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete()})),a.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)=>{c.length>0&&this.emit("stdline",c),u.length>0&&this.emit("errline",u),a.removeAllListeners(),n?t(n):e(r)})),this.options.input){if(!a.stdin)throw Error("child process missing stdin");a.stdin.end(this.options.input)}}))))}))}},Qi.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 Qi}());return Ji.exec=e,Ji.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}}))},Ji}function l(){return zi||(zi=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 n(e,t={}){(0,d.issueCommand)("error",(0,m.toCommandProperties)(t),e instanceof Error?""+e:e)}function i(e){(0,d.issue)("group",e)}function a(){(0,d.issue)("endgroup")}var c=li&&li.__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=li&&li.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),f=li&&li.__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)&&c(t,e,n);return l(t,e),t},p=li&&li.__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(ui)return fi;ui=1;var t=fi&&fi.__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=fi&&fi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=fi&&fi.__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};Object.defineProperty(fi,"__esModule",{value:!0}),fi.issue=fi.issueCommand=void 0;const o=i($r),s=r();fi.issueCommand=e,fi.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 fi}(),h=function(){if(yi)return di;yi=1;var e=di&&di.__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=di&&di.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=di&&di.__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(di,"__esModule",{value:!0}),di.prepareKeyValueMessage=di.issueFileCommand=void 0;const i=n(mi),o=n(Lr),s=n($r),a=r();return di.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"})},di.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}`},di}(),m=r(),y=f($r),v=f(kr),w=o();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,n(e)},e.isDebug=function(){return"1"===process.env.RUNNER_DEBUG},e.debug=function(e){(0,d.issueCommand)("debug",{},e)},e.error=n,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=i,e.endGroup=a,e.group=function(e,t){return p(this,void 0,void 0,(function*(){let n;i(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 _=s();Object.defineProperty(e,"summary",{enumerable:!0,get:function(){return _.summary}});var b=s();Object.defineProperty(e,"markdownSummary",{enumerable:!0,get:function(){return b.markdownSummary}});var S=function(){if(Mi)return Yi;Mi=1;var e=Yi&&Yi.__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=Yi&&Yi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=Yi&&Yi.__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(Yi,"__esModule",{value:!0}),Yi.toPlatformPath=Yi.toWin32Path=Yi.toPosixPath=void 0;const r=n(kr);return Yi.toPosixPath=function(e){return e.replace(/[\\]/g,"/")},Yi.toWin32Path=function(e){return e.replace(/[/]/g,"\\")},Yi.toPlatformPath=function(e){return e.replace(/[/\\]/g,r.sep)},Yi}();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((Vi||(Vi=1,function(e){var t=Ki&&Ki.__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=Ki&&Ki.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=Ki&&Ki.__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=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())}))},o=Ki&&Ki.__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($r),a=r(u());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})}))}}(Ki)),Ki))}(li)),li}function f(e){return no?to.error(e):console.log(`[31m${e}[0m`)}function p(e){return no?to.warning(e):console.log(`[33m${e}[0m`)}function d(e){return no?to.notice(e):console.log(`[94m${e}[0m`)}function h(e){return no?to.info(e):console.log(e)}function m(){if(lo)return uo;lo=1;const e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=kr,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 co||(co=1,t="win32"===process.platform||ni.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(io)return ro;io=1,ro=t,t.sync=function(t,r){return e(n.statSync(t),t,r)};var n=Lr;return ro}():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(so)return oo;so=1,oo=e,e.sync=function(e,r){return t(n.statSync(e),r)};var n=Lr;return oo}(),ao=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}}),ao;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 uo=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)},uo}function y(){if(So)return bo;So=1;const e=kr,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(ho)return po;ho=1;const t=kr,n=m(),r=function(){if(fo)return Po.exports;fo=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 Po.exports=e,Po.exports.default=e,Po.exports}();return po=function(t){return e(t)||e(t,!0)}}(),n=function(){if(mo)return To;mo=1;const e=/([()\][%!^"`<>&|;, *?])/g;return To.command=function(t){return t.replace(e,"^$1")},To.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},To}(),r=function(){if(_o)return Eo;_o=1;const e=Lr,t=function(){if(go)return wo;go=1;const e=vo?yo:(vo=1,yo=/^#!(.*)/);return wo=(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 Eo=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 bo=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=Cs(e,t,n),i=Os(e,t),o=Rs(e,t);let s;Ns(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=Br.spawn(r.file,r.args,r.options)}catch(p){const e=new Br.ChildProcess,t=Promise.reject(Wo({error:p,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return Es(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=Zo((()=>{e.kill()}));return r.finally((()=>{i()}))})(s,r.options,c),l={isCanceled:!1};s.kill=es.bind(null,s.kill.bind(s)),s.cancel=os.bind(null,s,l);const f=Uo((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=vs(t,{encoding:i,buffer:o,maxBuffer:s}),u=vs(n,{encoding:i,buffer:o,maxBuffer:s}),l=vs(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},ys(t,c),ys(n,u),ys(r,l)])}})(s,r.options,u),d=$s(r.options,c),h=$s(r.options,f),m=$s(r.options,p);if(e||0!==t||null!==n){const c=Wo({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:(ms(e),Lr.createReadStream(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=hs();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n})(s,r.options),(e=>{null!==e.stdout&&(e.pipeStdout=ss.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ss.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ss.bind(void 0,e,"all"))})(s),Es(s,f),s}function _(e,t,n){const r=Cs(e,t,n),i=Os(e,t),o=Rs(e,t);Ns(o,r.options);const s=(e=>{const t=(({input:e,inputFile:t})=>"string"!=typeof t?e:(ms(e),Lr.readFileSync(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=Br.spawnSync(r.file,r.args,{...r.options,input:s})}catch(l){throw Wo({error:l,stdout:"",stderr:"",all:"",command:i,escapedCommand:o,parsed:r,timedOut:!1,isCanceled:!1,killed:!1})}const c=$s(r.options,a.stdout,a.error),u=$s(r.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Wo({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 fa||(fa=1,function(e){var t=As&&As.__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=As&&As.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=As&&As.__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=As&&As.__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(ca)return Ls;ca=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.sync=Ls.isexe=void 0;const e=Lr,t=aa;Ls.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}},Ls.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)=>{var n,r,i,o,s,a,c,u;const l=null!=(r=t.uid)?r:null==(n=process.getuid)?void 0:n.call(process),f=null!=(s=null!=(o=t.groups)?o:null==(i=process.getgroups)?void 0:i.call(process))?s:[],p=null!=(u=null!=(c=t.gid)?c:null==(a=process.getgid)?void 0:a.call(process))?u:f[0];if(void 0===l||void 0===p)throw Error("cannot get uid or gid");const d=new Set([p,...f]),h=e.mode,m=e.uid,y=e.gid,v=parseInt("100",8),w=parseInt("010",8),g=v|w;return!!(h&parseInt("001",8)||h&w&&d.has(y)||h&v&&m===l||h&g&&0===l)};return Ls}());e.posix=o;const s=r(function(){if(ua)return ha;ua=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.sync=ha.isexe=void 0;const e=Lr,t=aa;ha.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}},ha.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 ha}());e.win32=s,i((la||(la=1,Object.defineProperty(ma,"__esModule",{value:!0})),ma),e);const a="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?s:o;e.isexe=a.isexe,e.sync=a.sync}(As)),As}function S(e,t=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return E(function(){if(void 0===va){const e=ya.sync("pwsh",{nothrow:!0});null!==e&&(va=e);const t=ya.sync("powershell",{nothrow:!0});null!==t&&(va=t)}if(void 0===va)throw Error("Could not find powershell");return va}(),[...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!==ya.sync("sudo",{nothrow:!0})}function I(){var e;return 0===(null==(e=process.getuid)?void 0:e.call(process))||!!process.env.CI}function x(){return I()&&R()}function P(e){return x()?"sudo "+e:e}function T(e,t=[],n=Ea){return x()?function(e,t){const[n,...r]=xs(e);return _(n,r,t)}(C(e,t),n):_(e,$(t),n)}function N(e,t=[],n=Ea){return x()?function(e,t){const[n,...r]=xs(e);return E(n,r,t)}(C(e,t),n):E(e,$(t),n)}function C(e,t){return"sudo "+$([e,...t]).join(" ")}function $(e){return e.map((e=>`'${e}'`))}function A(){return"win32"===process.platform?_a():I()}async function L(e){if(("linux"===process.platform||"darwin"===process.platform)&&x()&&void 0!==process.env.SUDO_USER){let t=Lr.statSync(e).isDirectory();await N("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],Ea)}}function k(){if(Ia)return Ra;Ia=1;var e=(Oa?Sa:(Oa=1,Sa=function(){}))();return Ra=function(t){return t!==e&&null!==t}}function D(){if(Pa)return xa;Pa=1;var e=k(),t=[].forEach,n=Object.create;return xa=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},xa}function j(){if(Ua)return ja;Ua=1;var e=function(){if(Da)return ka;Da=1;var e=La?Aa:(La=1,Aa=(Na?Ta:(Na=1,Ta=function(){var e=Math.sign