mirror of https://github.com/aminya/setup-cpp
44 lines
240 KiB
JavaScript
44 lines
240 KiB
JavaScript
#!/usr/bin/env node
|
|
let e,t,r,n,i,o,s,a,l,c;function u(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function d(e){return e&&e.__esModule?e.default:e}function p(e){return e&&e.__esModule?e.default:e}function f(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function m(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise((r,n)=>{m(e,t||{},(e,t)=>{e?n(e):r(t)})})}rw(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}function h(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}try{r=rx.sync(e.command,{path:n[rT({env:n})],pathExt:t?of.delimiter:void 0})}catch(e){}finally{s&&process.chdir(i)}return r&&(r=(0,of.resolve)(o?e.options.cwd:"",r)),r}function g(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function E(e,t){return oR&&1===e&&!t.file?g(t.original,"spawn"):null}function v(e,t,r){let n=rR(e,t,r),i=(0,t0.spawn)(n.command,n.args,n.options);return rL.hookChildProcess(i,n),i}async function y(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r0(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r2.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{await o2(e,n),t()}catch(e){o(e)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new o4)})}),n.getBufferedValue()}function x(){return null!==p(rx).sync("sudo",{nothrow:!0})}function w(){return 0===process.getuid?.()||!!process.env.CI}function b(){return w()&&x()}function S(e){return b()?"sudo "+e:e}function I(e,t=[],r={stdio:"inherit",shell:!0}){return b()?p(rI).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI).sync(e,t,r)}function O(e,t=[],r={stdio:"inherit",shell:!0}){return b()?p(rI).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI)(e,t,r)}function R(){return"win32"===process.platform?sr():w()}function T(e){return b()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,of.join)("/Users/",process.env.SUDO_USER,e):(0,of.join)("/home/",process.env.SUDO_USER,e):d(rm)("~/"+e)}function C(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function _(e,t,r,n){return new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}function P(e,t){function r(r){return s=>(r=>{if(n)throw TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}})([r,s])}var n,i,o,s,a={label:0,sent(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}async function A(){try{await d(nl)({pkg:d(nA)})}catch(e){(0,rc.warning)("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e))}}function L(e){return null==e?[]:Array.isArray(e)?e:[e]}function N(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise((r,n)=>{N(e,t||{},(e,t)=>{e?n(e):r(t)})})}nk(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}function $(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}try{r=n$.sync(e.command,{path:n[nF({env:n})],pathExt:t?of.delimiter:void 0})}catch(e){}finally{s&&process.chdir(i)}return r&&(r=of.resolve(o?e.options.cwd:"",r)),r}function D(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function k(e,t){return sm&&1===e&&!t.file?D(t.original,"spawn"):null}function j(e,t,r){let n=nM(e,t,r),i=t0.spawn(n.command,n.args,n.options);return nW.hookChildProcess(i,n),i}async function U(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=ic(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=ia.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{await s0(e,n),t()}catch(e){o(e)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new s1)})}),n.getBufferedValue()}function M(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function G(){return null!==d(n$).sync("sudo",{nothrow:!0})}function F(){return 0===process.getuid?.()||!!process.env.CI}function B(){return F()&&G()}function H(e){return B()?"sudo "+e:e}function q(e,t=[],r={stdio:"inherit",shell:!0}){return B()?d(nj).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):d(nj).sync(e,t,r)}function V(e,t=[],r={stdio:"inherit",shell:!0}){return B()?d(nj).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):d(nj)(e,t,r)}function X(){return"win32"===process.platform?an():F()}function W(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"}function z(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe}function K(e){return z(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState}function Y(e,t,r){let n;let i=lo(e,t,r),o=a3(e,t),s=a6(e,t);ln(s,i.options),aU(i.options);try{n=d(t9).spawn(i.file,i.args,i.options)}catch(r){let e=new(d(t9)).ChildProcess,t=Promise.reject(aR({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return a0(e,t),e}let a=a1(n),l=aj(n,i.options,a),c=aM(n,i.options,l),u={isCanceled:!1};n.kill=aP.bind(null,n.kill.bind(n)),n.cancel=aD.bind(null,n,u);let p=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,d,p]=await aQ(n,i.options,c),f=ls(i.options,l),m=ls(i.options,d),h=ls(i.options,p);if(e||0!==t||null!==r){let l=aR({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},f=iT(p);return aW(n,i.options),n.all=az(n,i.options),aB(n),a0(n,f),n}function Q(e,t,r){let n;let i=lo(e,t,r),o=a3(e,t),s=a6(e,t);ln(s,i.options);let a=aV(i.options);try{n=d(t9).spawnSync(i.file,i.args,{...i.options,input:a})}catch(e){throw aR({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let l=ls(i.options,n.stdout,n.error),c=ls(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=aR({stdout:l,stderr:c,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:l,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}function J(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return Y((()=>{if(void 0===e){let t=d(n$).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=d(n$).sync("powershell",{nothrow:!0});null!==r&&(e=r)}if(void 0===e)throw Error("Could not find powershell");return e})(),[...r,"-c",t],n)}function Z(e){if(("linux"===process.platform||"darwin"===process.platform)&&b()&&void 0!==process.env.SUDO_USER){let t=(0,om.statSync)(e).isDirectory();I("chown",[...t?["-R"]:[],process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}}async function ee(e,t,r=!1){let n=((e,t=!1)=>{let r=t?d(iC)(e):e;return d(i_)(r,'"',"\\")})(t??"",r);try{if(rl.GITHUB_ACTIONS)try{(0,nL.exportVariable)(e,n)}catch(t){(0,rc.error)(t),await er(e,n)}else await er(e,n)}catch(t){(0,rc.error)(t),(0,nL.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`)}}async function et(e){process.env.PATH=`${e}${of.delimiter}${process.env.PATH}`;try{if(rl.GITHUB_ACTIONS)try{(0,nL.addPath)(e)}catch(t){(0,rc.error)(t),await en(e)}else await en(e)}catch(t){(0,rc.error)(t),(0,nL.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function er(e,t){let r=t??"";switch(process.platform){case"win32":await J(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),(0,nL.info)(`${e}='${r}' was set in the environment.`);return;case"linux":case"darwin":await ei(),(0,om.appendFileSync)(lp,`
|
|
export ${e}="${r}"
|
|
`),(0,nL.info)(`${e}="${r}" was added to "${lp}`);return}process.env[e]=r}async function en(e){switch(process.platform){case"win32":await J(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nL.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await ei(),(0,om.appendFileSync)(lp,`
|
|
export PATH="${e}:$PATH"
|
|
`),(0,nL.info)(`"${e}" was added to "${lp}"`);return;default:return}}async function ei(){if(lf)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await (0,iP.pathExists)(lp)){let t=(0,om.readFileSync)(lp,"utf8");if(t.includes(e))return}(0,om.appendFileSync)(lp,`
|
|
${e}
|
|
`),(0,nL.info)(`Added ${e} to ${lp}`);let t=`
|
|
# source .cpprc if SOURCE_CPPRC is not set to 0
|
|
if [[ "$SOURCE_CPPRC" != 0 && -f "${lp}" ]]; then source "${lp}"; fi
|
|
`;try{let e=T(".profile");(0,om.appendFileSync)(e,t),(0,nL.info)(`${t} was added to ${e}`);let r=T(".bashrc");(0,om.appendFileSync)(r,t),(0,nL.info)(`${t} was added to ${r}`)}catch(e){(0,rc.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}lf=!0}async function eo(){if(await (0,iP.pathExists)(lp)){let e=(0,om.readFileSync)(lp,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,om.writeFileSync)(lp,t.join("\n"));try{Z(lp)}catch{}}}async function es(e,t=!1){let r=null!==d(iA).sync("nala",{nothrow:!0})?"nala":"apt-get";for(let{name:t,version:n}of e)(0,rc.info)(`Installing ${t} ${n??""} via ${r}`);process.env.DEBIAN_FRONTEND="noninteractive",(!lb||t)&&(el(r),lb=!0),lS||(await ec(r),lS=!0);let n=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==n.length){for(let e of n)q("add-apt-repository",["-y",e]);el(r)}let i=await Promise.all(e.map(e=>ea(e.name,e.version)));return q(r,["install","--fix-broken","-y",...i]),{binDir:"/usr/bin/"}}async function ea(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await Y("apt-cache",["search","--names-only",`^${(0,ik.default)(e)}-${(0,ik.default)(t)}$`]);if(""!==r.trim())return`${e}-${t}`;try{let{stdout:r}=await Y("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return`${e}=${t}`}catch{}(0,rc.warning)(`Failed to install ${e} ${t} via apt, trying without version`)}return e}function el(e){q(e,"nala"!==e?["update","-y"]:["update"])}async function ec(e){q(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[ed(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),ed(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(ee("LANG","C.UTF-8"),ee("LC_ALL","C.UTF-8")),await Promise.all(t)}function eu(){q("gpg",["-k"])}async function ed(e,t,r="keyserver.ubuntu.com"){let n="/etc/apt/trusted.gpg.d/"+t;return await (0,iP.pathExists)(n)||(eu(),await Promise.all(e.map(async e=>{await V("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await V("chmod",["644",n])}))),n}async function ep(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return await (0,iP.pathExists)(r)||(eu(),await es([{name:"curl"}],void 0),q("bash",["-c",`curl -s ${t} | gpg --no-default-keyring --keyring gnupg-ring:${r} --import`]),q("chmod",["644",r])),r}async function ef(e,t){return rl.GITHUB_ACTIONS?V("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(await ei(),lw(lp,`
|
|
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi
|
|
`))}async function em(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=d(iA).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nN.dirname)(i)};let o=d(of).join((0,op.tmpdir)(),"setup-cpp","brew");await (0,ij.mkdirP)(o),Q("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,of.join)(o,"install.sh");if("linux"===process.platform){let e=(0,om.readFileSync)(s,"utf-8");e.replace("#!/bin/bash","")}return Q("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=eh(),await et(t),{binDir:t}}function eh(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/"}async function eg(e,t,r=[]){(0,nL.info)(`Installing ${e} ${t??""} via brew`),lI&&null!==d(iA).sync("brew",{nothrow:!0})||(await em("","",process.arch),lI=!0);let n=eh();return Q((0,nN.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n}}async function eE(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=d(iA).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,nN.dirname)(i)};let o="powershell.exe",s=d(iA).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),Q(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await et(a);let l=d(iA).sync("choco",{nothrow:!0});if(r=null!==l?(0,nN.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await (0,iP.pathExists)(r))return{binDir:r}}async function ev(e,t,r=[]){(0,nL.info)(`Installing ${e} ${t??""} via chocolatey`),lO&&null!==d(iA).sync("choco",{nothrow:!0})||(await eE("","",process.arch),lO=!0);let n=process.env.PATH,i={...process.env};if(delete i.TMP,delete i.TEMP,delete i.Path,i.PATH=n,void 0!==t&&""!==t)Q("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{Q("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"})}catch(t){if(t.message.includes("exit code 3010"))(0,rc.notice)(`${e} might require a reboot for the completion of the installation.`);else throw t}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await et(o),{binDir:o}}function ey(){return"linux"===process.platform&&(void 0===a&&(a=null!==d(iA).sync("pacman",{nothrow:!0})),a)}function ex(){return"linux"===process.platform&&(void 0===l&&(l=null!==d(iA).sync("dnf",{nothrow:!0})),l)}function ew(e,t){if((0,rc.info)(`Installing ${e} ${t??""} via dnf`),void 0!==t&&""!==t)try{q("dnf",["-y","install",`${e}-${t}`])}catch(t){(0,rc.warning)(`${t.toString()}
|
|
Installing the default version available via dnf`),q("dnf",["-y","install",e])}else q("dnf",["-y","install",e]);return{binDir:"/usr/bin/"}}function eb(){return"linux"===process.platform&&(void 0===c&&(c=null!==d(iA).sync("apt-get",{nothrow:!0})),c)}async function eS(e,t,r){switch(process.platform){case"win32":return ev("bazelisk",e);case"darwin":return eg("bazelisk",e);case"linux":if(ey())throw Error("installing bazel on Arch linux is not supported yet");if(ex())return ew("dnf-plugins-core",void 0),q("dnf",["copr","enable","vbatts/bazel"]),ew("bazel4",void 0);if(eb()){let t=await ep("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return q("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),es([{name:"bazel",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function eI(e,t,r){(0,rc.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";lR||"yay"===r||(q(n,["-Sy","--noconfirm"]),lR=!0),lT||(q(n,["-S","--noconfirm","base-devel"]),lT=!0);let i=e=>q(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){let r=await eO(n,e);if(r.includes(t))try{i(`${e}=${t}`)}catch{i(`${e}${t}`)}else(0,rc.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e)}else i(e);return{binDir:"/usr/bin/"}}async function eO(e,t){let r=[];try{let{stdout:n}=await Y(e,["-Si",t]);for(let e of n.matchAll(lC))r.push(e[1])}catch(e){(0,rc.warning)(`Failed to get available versions for ${t}: ${e}`)}return r}function eR(e,t){let r=[];t=t||lN.arch();let n=l$.join(eL(),e);if(lA.existsSync(n)){let e=lA.readdirSync(n);for(let i of e)if(eP(i)){let e=l$.join(n,i,t||"");lA.existsSync(e)&&lA.existsSync(`${e}.complete`)&&r.push(i)}}return r}function eT(e){return iH(this,void 0,void 0,*()=>(e||(e=l$.join(eN(),lM.default())),yield lP.mkdirP(e),e))}function eC(e,t,r){return iH(this,void 0,void 0,*()=>{let n=l$.join(eL(),e,lk.clean(t)||t,r||"");l_.debug("destination "+n);let i=`${n}.complete`;return yield lP.rmRF(n),yield lP.rmRF(i),yield lP.mkdirP(n),n})}function e_(e,t,r){let n=l$.join(eL(),e,lk.clean(t)||t,r||""),i=`${n}.complete`;lA.writeFileSync(i,""),l_.debug("finished caching tool")}function eP(e){let t=lk.clean(e)||"";l_.debug("isExplicit: "+t);let r=null!=lk.valid(t);return l_.debug("explicit? "+r),r}function eA(e,t){let r="";l_.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>lk.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n],o=lk.satisfies(i,t);if(o){r=i;break}}return r?l_.debug("matched: "+r):l_.debug("match not found"),r}function eL(){let e=process.env.RUNNER_TOOL_CACHE||"";return tQ.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function eN(){let e=process.env.RUNNER_TEMP||"";return tQ.ok(e,"Expected RUNNER_TEMP to be defined"),e}function e$(e,t){let r=ri[e];return void 0!==r?r:t}function eD(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");t="number"==typeof t?{max:t}:t;let r={$current:"$current"in t?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise((t,n)=>{let i,o,s;r.timeout&&(i=setTimeout(()=>{o&&clearTimeout(o),n(new lq(r.name+" timed out",s))},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(()=>{i&&clearTimeout(i),o&&clearTimeout(o)}).catch(a=>{i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current<r.max;if(!l||!(l=0===r.match.length||r.match.some(e=>((e,t)=>{if("function"==typeof e)try{if(t instanceof e)return!0}catch(r){return!!e(t)}return e===t.toString()||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(t.toString()))})(e,a))))return n(a);var c=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),c?(r.report&&r.report(`Delaying retry of ${r.name} by ${c}`,r),o=setTimeout(()=>{eD(e,r).then(t).catch(n)},c)):eD(e,r).then(t).catch(n)})})}async function ek(e,t,r,n,i){(0,rc.info)(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??(0,op.tmpdir)(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??(0,nN.join)((0,op.tmpdir)(),"setup-cpp","hostedtoolcache");let{url:o,binRelativeDir:s,binFileName:a,extractedFolderName:l,extractFunction:c}=await r(t,process.platform,i);if(rl.GITHUB_ACTIONS)try{let r=(0,iU.find)(e,t);if(r){let n=(0,nN.join)(r,l),i=(0,nN.join)(n,s);if(await (0,iP.pathExists)((0,nN.join)(i,a)))return(0,rc.info)(`${e} ${t} was found in the cache at ${i}.`),await et(i),{installDir:n,binDir:i}}}catch{}let u=(0,nN.join)(n,l),p=(0,nN.join)(u,s),f=(0,nN.join)(p,a);if((await Promise.all([(0,iP.pathExists)(p),(0,iP.pathExists)(f)])).includes(!1))try{(0,rc.info)(`Download ${e} ${t}`);let r=await d(iZ)(()=>(0,iU.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,rc.info)(e)});lV||((0,rc.info)("Installing extraction dependencies"),"linux"===process.platform&&(ey()?await Promise.all([eI("unzip"),eI("tar"),eI("xz")]):ex()?(ew("unzip"),ew("tar"),ew("xz")):eb()&&await es([{name:"unzip"},{name:"tar"},{name:"xz-utils"}])),lV=!0),(0,rc.info)(`Extracting ${r} to ${n}`),await c?.(r,n)}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`)}return(0,rc.info)(`Add ${p} to PATH`),await et(p),rl.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await (0,iU.cacheDir)(n,e,t),{installDir:u,binDir:p}}function ej(e,t,r){switch(process.platform){case"win32":return ev("7zip",e);case"darwin":return eg("p7zip",e);case"linux":if(ey())return eI("p7zip",e);if(ex())return ew("p7zip",e),ew("p7zip-plugins",e);if(eb())return es([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function eU(e,t){return await Y(await eM(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),Z(t),t}async function eM(){return void 0===n&&(null===d(iA).sync("7z",{nothrow:!0})&&await ej("","",process.arch),n="7z"),n}function eG(e,t){return eU(e,t)}function eF(e,t){return eU(e,t)}async function eB(e,t,r=["--strip-components=0"]){try{await (0,ij.mkdirP)(t)}catch{}try{await Y("tar",["xf",e,"-C",t,...r],{stdio:"inherit"})}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rc.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`)}return Z(t),t}function eH(e,t,r){let n=d(iJ)(e)??e;switch(t){case"win32":{let t;let i=d(iQ)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nN.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eF,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`}}case"darwin":{let t=d(iQ)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nN.addExeExt)("cmake"),extractedFolderName:r,extractFunction:iU.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{let t;let i=d(iQ)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nN.addExeExt)("cmake"),extractedFolderName:o,extractFunction:iU.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`}}default:throw Error(`Unsupported platform '${t}'`)}}function eq(e,t,r){return ek("cmake",e,eH,t,r)}function eV(e,t){return new Promise(r=>{try{let n=(0,oE.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399)});n.on("error",e=>{r(!1)}),n.end()}catch{r(!1)}})}function eX(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return d(i2)(e,t)}catch(r){return e.localeCompare(t)}}).reverse()}async function eW(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&await i1(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eX(e,r)){let e=await n(t,o);if(null!==e){if(await i1(e))return[o,e];i.push(e)}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`)}async function ez(e,t=lX){try{let r=await (0,iV.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return i}catch(e){console.error(e);return}}async function eK(e,t,r=lX){let n=await ez(e,r);return"string"==typeof n&&"string"==typeof t&&""!==n&&""!==t&&-1!==d(i2)(n,t)}function eY(){switch(process.platform){case"linux":return"15.0.6-ubuntu-18.04";case"darwin":return"15.0.3";default:return"15.0.4"}}function eQ(e,t,r=null){return eJ(t,e)?"linux"===process.platform&&null!==r&&e in lz?((e,t)=>{let r=t[0],n=parseInt(Object.keys(lz[e])[0],10);return r>=n?lz[e][r]:""})(e,r):lW[e]:t??""}function eJ(e,t){return"true"===e||void 0===e&&t in lW}async function eZ(e,t,r){if(!rl.GITHUB_ACTIONS)return e0(e,t,r);try{(0,rc.info)("Installing python in GitHub Actions");let{setupActionsPython:n}=await ra("3fAZo");return n(e,t,r)}catch(n){return(0,rc.warning)(n.toString()),e0(e,t,r)}}async function e0(e,t,r){switch(process.platform){case"win32":{t?await ev("python3",e,["--params=/InstallDir:"+t]):await ev("python3",e);let r=d(iA).sync("python3.exe",{nothrow:!0})??d(iA).sync("python.exe",{nothrow:!0})??(0,nN.join)(t,"python.exe"),n=(0,nN.dirname)(r);return await et(n),{installDir:n,binDir:n}}case"darwin":return eg("python3",e);case"linux":{let t;if(ey())t=await eI("python",e),await eI("python-pip");else if(ex())t=ew("python3",e),ew("python3-pip");else if(eb())t=await es([{name:"python3",version:e},{name:"python3-pip"}]);else throw Error("Unsupported linux distributions");return t}default:throw Error("Unsupported platform")}}async function e1(){let e;if(null!==d(iA).sync("python3",{nothrow:!0}))e="python3";else if(null!==d(iA).sync("python",{nothrow:!0})&&await eK("python","3.0.0"))e="python";else{if((0,rc.info)("python3 was not found. Installing python"),await eZ(eQ("python",void 0),"",process.arch),lK)throw Error("Failed to install python");return lK=!0,e1()}return d(tQ)("string"==typeof e),"win32"===process.platform?Q(e,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(ey()?await eI("python-pip"):ex()?ew("python3-pip"):eb()&&await es([{name:"python3-pip"}])),Q(e,["-m","pip","install","-U","wheel"],{stdio:"inherit"}),e}async function e2(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await (0,iV.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nN.join)(r,"Scripts"),(0,nN.join)(r,"Scripts","bin"),(0,nN.join)(r,"bin")),[...new Set(t)]}async function e4(e,t){(0,nL.info)(`Installing ${e} ${t??""} via pip`),void 0===i&&(i=await e1()),Q(i,["-m","pip","install",void 0!==t&&""!==t?`${e}==${t}`:e],{stdio:"inherit"}),void 0===o&&(o=await e2(i));let r=await e3(o,e);return await et(r),{binDir:r}}async function e3(e,t){let r=await Promise.all(e.map(e=>(0,iP.pathExists)((0,nN.join)(e,(0,nN.addExeExt)(t))))),n=r.findIndex(e=>e);if(-1!==n){let t=e[n];return t}let i=d(iA).sync((0,nN.addExeExt)(t),{nothrow:!0});return null!==i?(0,nN.dirname)(i):e[e.length-1]}async function e6(e,t,r){return await e4("setuptools",""),e4("conan",e)}async function e5(e,t,r){switch(process.platform){case"win32":{await ev("cppcheck",e);let t=await e8();return{binDir:t}}case"darwin":return eg("cppcheck",e);case"linux":if(ey())return eI("cppcheck",e);if(ex())return ew("ccache",e);if(eb())return es([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function e8(){let e="C:/Program Files/Cppcheck";return await et(e),e}async function e9(e,t,r){switch(process.platform){case"win32":return await ev("graphviz",e),e7();case"darwin":return eg("graphviz",e);case"linux":if(ey())return eI("graphviz",e);if(ex())return ew("graphviz",e);if(eb())return es([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function e7(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await et(e),{binDir:e}}throw Error("Unsupported platform")}function te(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nN.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:iU.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nN.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eF,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function tt(e,t,r){switch(process.platform){case"win32":{await d(iZ)(()=>ev("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rc.info)(e)});let t=await tr();return await e9(eQ("graphviz",void 0),"",r),{binDir:t}}case"darwin":{let e=await eg("doxygen",void 0);return await e9(eQ("graphviz",void 0),"",r),e}case"linux":{let n;if(""===e||ey()||ex()){if(ey())n=await eI("doxygen",e);else if(ex())return ew("doxygen",e);else if(eb())n=await es([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions")}else if(eb())try{n=await ek("doxygen",e,te,t,r),await es([{name:"libclang-cpp9"}])}catch(e){(0,rc.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await es([{name:"doxygen"}])}else throw Error("Unsupported linux distributions");return await e9(eQ("graphviz",void 0),"",r),n}default:throw Error("Unsupported platform")}}async function tr(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await (0,iP.pathExists)((0,nN.join)(e,"doxygen.exe")))return await et(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")}async function tn(){if("darwin"===process.platform)try{let e=await (0,iV.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await ee("SDKROOT",t.trim()):(0,rc.error)("SDKROOT not set")}catch(e){(0,rc.error)(e)}}function ti(e,t,r){if("win32"===t){let t=lY[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nN.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eU,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function to(e,t,r){let n;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&await ev("gcc-arm-embedded",e);try{n=await ek("g++",e,ti,t,r)}catch(t){(0,rc.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await ts(e,r)}break;case"darwin":n=await eg("gcc",e);break;case"linux":"x64"===r?ey()?n=await eI("gcc",e):ex()?(n=ew("gcc",e),ew("gcc-c++",e),ew("libstdc++-devel",void 0)):eb()&&(n=await es([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rc.info)(`Install g++-multilib because gcc for ${r} was requested`),ey()?await eI("gcc-multilib",e):eb()&&await es([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r)}if(void 0!==n)return await ta(e,n.binDir),n}async function ts(e,t){let r;if(await ev("mingw",e),"x64"===t&&await (0,iP.pathExists)("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await et(r)):"ia32"===t&&await (0,iP.pathExists)("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await et(r)):await (0,iP.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`)&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r}}async function ta(e,t){let r=[];if("win32"===process.platform)r.push(ee("CC",(0,nN.addExeExt)(`${t}/gcc`)),ee("CXX",(0,nN.addExeExt)(`${t}/g++`)));else{let n=d(i3)(d(iJ)(e)??e);n>=5?(r.push(ee("CC",`${t}/gcc-${n}`),ee("CXX",`${t}/g++-${n}`)),eb()&&r.push(ef("cc",`${t}/gcc-${n}`),ef("cxx",`${t}/g++-${n}`),ef("gcc",`${t}/gcc-${n}`),ef("g++",`${t}/g++-${n}`))):(r.push(ee("CC",`${t}/gcc-${e}`),ee("CXX",`${t}/g++-${e}`)),eb()&&r.push(ef("cc",`${t}/gcc-${e}`),ef("cxx",`${t}/g++-${e}`),ef("gcc",`${t}/gcc-${e}`),ef("g++",`${t}/g++-${e}`)))}r.push(tn()),rl.GITHUB_ACTIONS&&await tl(),await Promise.all(r)}async function tl(){let e=(0,nN.join)(i6,"gcc_matcher.json");if(!await (0,iP.pathExists)(e))return(0,rc.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rc.info)("::add-matcher::"+e)}function tc(e,t,r){let n=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",binFileName:(0,nN.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eF,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function tu(e,t,r){return ek("ninja",e,tc,t,r)}function td(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nN.addExeExt)("kcov"),extractFunction:eB}}function tp(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nN.addExeExt)("kcov"),extractFunction:tf}}async function tf(e,t){let r=await eB(e,t,["--strip-components=1"]),n=await tm();"linux"===process.platform&&(ey()?await Promise.all([eI("libdwarf"),eI("libcurl-openssl")]):ex()?(ew("libdwarf-devel"),ew("libcurl-devel")):eb()&&await es([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));try{if(null!==d(iA).sync("patch",{nothrow:!0})){let e=(0,nN.join)(i5,"gcc13.patch");await Y("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"})}else(0,rc.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13")}catch{}let i=(0,nN.join)(r,"build");return await Y(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await Y(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r}async function tm(){let e=d(iA).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eq(eQ("cmake",void 0),(0,nN.join)(T(""),"cmake"),"");e=(0,nN.join)(t,"cmake")}let t=d(iA).sync("ninja",{nothrow:!0});return null===t&&await tu(eQ("ninja",void 0),(0,nN.join)(T(""),"ninja"),""),e}async function th(e,t,r){var n;let i;if("linux"!==process.platform){(0,rc.info)("Kcov is not supported on non-linux");return}let o=e.split("-"),s=(n=o[0]).match(/^v/)?n:"v"+n,a=o[1],l=parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await ek("kcov",s,td,t,r),ey()?await eI("binutils"):ex()?ew("binutils"):eb()&&await es([{name:"libbinutils"}])):i=await ek("kcov",s,tp,t,r),i}function tg(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`}function tE(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`}async function tv(e){let t;if(lJ.has(e))return null;let r="LLVM-",n=d(iQ)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=d(iQ)(e,"9.0.1"),o=!1;return i&&(t=tE(e,r,n),await i1(t)||(o=!0)),(o||!i)&&(t=tg(e,r,n)),t}function ty(e,t){switch(e){case"darwin":return(e=>{if(lZ.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return d(iQ)(e,"9.0.1")?tE(e,r,n):tg(e,r,n)})(t);case"linux":return(e=>{let t,r,n=e,i=l0.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!lQ.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eX(lQ,e)[0]}else""!==n&&n in l1?t=l1[n]:(t=l1[l2],(0,rc.warning)(`Falling back to LLVM version ${l2} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,d(iQ)(n,"9.0.1"))?tE(n,o,r):tg(n,o,r)})(t);case"win32":return tv(t);default:return null}}async function tx(e,t,r){let[n,i]=await eW(lQ,t,e,ty);return(0,rc.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nN.addExeExt)("clang"),extractFunction:"win32"===t?eG:(e,t)=>eB(e,t,["--strip-components=1"])}}async function tw(){var e,t;if("linux"!==process.platform)return[];let r=await (e="lsb_release",t=["-a"],new Promise((r,n)=>{t0.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,s)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${s})`));return}r(o)})}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){let e=t[1];if("Ubuntu"!==e)return[];o=!0}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let s=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(s&&(i=s),o&&n&&i)break}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10))}return[]}async function tb(){try{if(!eb())return null;{null===d(iA).sync("lsb_release",{nothrow:!0})&&await es([{name:"lsb-release"}]);let e=await (0,i8.getUbuntuVersion)();if(0===e.length)return(0,rc.warning)("Failed to get the ubuntu major version."),null;return e}}catch(e){return(0,rc.warning)(e.toString()),null}}async function tS(e,t,r){let n=await tI(e,t,r);return await tR(n.installDir??t,e),n}async function tI(e,t,r){let n;let i=ek("llvm",e,tx,t,r);l4?n=Promise.resolve():(n=tO(r,e),l4=!0);let[o,s]=await Promise.all([i,n]);return o}async function tO(e,t){if("linux"===process.platform){let r=await tb();if(await to(eQ("gcc",void 0,r),"",e),eb()){let e=parseInt(t.split(".")[0],10);e<=10?await es([{name:"libtinfo5"}]):await es([{name:"libtinfo-dev"}])}}}async function tR(e,t){(e=>{if(null===d(i4)(e))try{let t=d(iJ)(e);if(null!==t)return(0,rc.info)(`Coerced version '${e}' to '${t}'`),t.version}catch(e){}})(t);let r=(0,nN.join)(e,"lib"),n=process.env.LD_LIBRARY_PATH??"",i=process.env.DYLD_LIBRARY_PATH??"",o=[ee("LLVM_PATH",e),ee("LD_LIBRARY_PATH",`${r}${of.delimiter}${n}`),ee("DYLD_LIBRARY_PATH",`${r}${of.delimiter}${i}`),ee("LDFLAGS",`-L"${e}/lib"`),ee("CPPFLAGS",`-I"${e}/include"`),ee("CC",(0,nN.addExeExt)(`${e}/bin/clang`)),ee("CXX",(0,nN.addExeExt)(`${e}/bin/clang++`)),ee("LIBRARY_PATH",`${e}/lib`),tn()];eb()&&o.push(ef("cc",`${e}/bin/clang`),ef("cxx",`${e}/bin/clang++`),ef("clang",`${e}/bin/clang`),ef("clang++",`${e}/bin/clang++`),ef("lld",`${e}/bin/lld`),ef("ld.lld",`${e}/bin/ld.lld`),ef("llvm-ar",`${e}/bin/llvm-ar`)),rl.GITHUB_ACTIONS&&await tC(),await Promise.all(o)}async function tT(e,t,r){return rl.GITHUB_ACTIONS&&await tC(),tI(e,t,r)}async function tC(){let e=(0,nN.join)(i9,"llvm_matcher.json");if(!await (0,iP.pathExists)(e))return(0,rc.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rc.info)("::add-matcher::"+e)}async function t_(e,t,r){switch(process.platform){case"win32":return ev("make",e);case"darwin":return await eg("make",e),await et("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(ey())return eI("make",e);if(ex())return ew("make",e);if(eb())return es([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function tP(e,t,r){let n=new l6(e,t,r);process.stdout.write(n.toString()+l3.EOL)}function tA(e){oo.issue("error",e instanceof Error?e.toString():e)}function tL(e){oo.issue("group",e)}function tN(){oo.issue("endgroup")}function t$(e){if(Object.values(ci).includes(e));else if(e in ci)return ci[e];return e}function tD(e){let t;let r=t$(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`}else t="-latest";let n=((e,t)=>{try{return t0.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e}catch(e){or.warning("vswhere failed: "+e)}return null})("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&om.existsSync(n))return or.info("Found with vswhere: "+n),n;or.info("Not found with vswhere");let i=e?[(e=>{if(Object.keys(ci).includes(e));else for(let[t,r]of Object.entries(ci))if(r===e)return t;return e})(e)]:cn;for(let e of ct)for(let t of i)for(let r of cr)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,or.info("Trying standard location: "+n),om.existsSync(n))return or.info("Found standard location: "+n),n;if(or.info("Not found in standard locations"),n=`${ce}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,om.existsSync(n))return or.info("Found VS 2015: "+n),n;throw or.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}async function tk(e,t,r,n,i,o,s){void 0!==t&&await (0,iP.pathExists)(t)&&((0,rc.info)(`Adding ${t} to PATH`),await ee("VCTargetsPath",t)),ot((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),i,n,o,s,e)}async function tj(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=i7(e);(0,rc.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=oe(l);c=!0,(0,rc.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!c)try{"14.0"===l?(s="14.0",await ev("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),a="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(s="14.16",await ev("visualstudio2017buildtools","15.9.41.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(s="14.29",await ev("visualstudio2019buildtools","16.11.7.0",[]),a="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(s=void 0,await ev("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rc.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,rc.error)(e)}await tk(l,a,r,s,n,i,o),rl.GITHUB_ACTIONS&&await tU()}async function tU(){let e=(0,nN.join)(od,"msvc_matcher.json");if(!await (0,iP.pathExists)(e))return(0,rc.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rc.info)("::add-matcher::"+e)}async function tM(e,t,r){if(!eb())return;if("string"==typeof s)return{binDir:s};let n=d(iA).sync("nala",{nothrow:!0});if(null!==n)return{binDir:s=(0,nN.dirname)(n)};let i=await ep("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");q("/bin/bash",["-c",`echo "deb [signed-by=${i}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await es([{name:"nala"}],!0):await es([{name:"nala-legacy"}],!0)}catch(e){await es([{name:"nala-legacy"}],!0)}return{binDir:s="/usr/bin"}}async function tG(e,t,r){if("win32"!==process.platform)return;await ev("opencppcoverage",e);let n=await tF();return{binDir:n}}async function tF(){let e="C:/Program Files/OpenCppCoverage";return await et(e),e}async function tB(e,t,r){switch(process.platform){case"win32":{await ev("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await et(t),{binDir:t}}case"darwin":return eg("powershell",e,["--cask"]);case"linux":if(ey())return eI("powershell-bin",e,"yay");if(ex())return ew("curl"),q("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ew("powershell",e);if(eb()){await es([{name:"curl"}]);let t=await tb(),r=`${t[0]}.0${t[1]}`;return q("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),q("dpkg",["-i","packages-microsoft-prod.deb"]),es([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function tH(e,t,r){let n=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),i="win32"===t;return{binRelativeDir:"",binFileName:(0,nN.addExeExt)("task"),extractedFolderName:"",extractFunction:i?eF:eB,url:`https://github.com/go-task/task/releases/download/v${e}/task_${"win32"===t?"windows":t}_${n}.${i?"zip":"tar.gz"}`}}async function tq(e,t,r){return cs&&null!==d(iA).sync("vcpkg",{nothrow:!0})?{binDir:(0,nN.dirname)(d(iA).sync("vcpkg"))}:("linux"===process.platform&&(ey()?await Promise.all([eI("curl"),eI("zip"),eI("unzip"),eI("tar"),eI("git"),eI("pkg-config")]):ex()?(ew("curl"),ew("zip"),ew("unzip"),ew("tar"),ew("git"),ew("pkg-config")):eb()&&await es([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await (0,iP.pathExists)((0,nN.join)(t,(0,nN.addShExt)("bootstrap-vcpkg",".bat")))?(0,rc.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):Q("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nN.dirname)(t),stdio:"inherit"}),Q((0,nN.addShExt)((0,nN.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),Z(t),await et(t),cs=!0,{binDir:t})}async function tV(e,t,r,n,i,o,s){(0,nL.startGroup)(`Installing ${e} ${t}`);let a=!1;try{let s;if("vcvarsall"===e)await tk(eQ(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let o=ca[e];a=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nN.join)(i,a?"llvm":e);s=await o(eQ(e,t,r),l,n)}o.push(tX(e,s))}catch(t){(0,rc.error)(t),s.push(`${e} failed to install`)}return(0,nL.endGroup)(),a}function tX(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}async function tW(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=(e=>{let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==d(i4)(e)||(0,rc.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e}}return{compiler:r,version:void 0}})(e);switch((0,nL.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tS(eQ("llvm",l,t),(0,of.join)(r,"llvm"),n);await ee("GCOV","llvm-cov gcov"),i.push(tX("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{let e=eQ("gcc",l,t),s=await to(e,(0,of.join)(r,"gcc"),n);o&&await ee("CPPFLAGS",""),await (e=>{let t=d(i4)(e),r=null!==t?d(i3)(t):e;return ee("GCOV",""!==r?"gcov-"+r:"gcov")})(e),i.push(tX("gcc",s));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tj(eQ("msvc",l,t),(0,of.join)(r,"msvc"),n);o&&await ee("CPPFLAGS",""),i.push(tX("msvc",e));break}case"appleclang":case"applellvm":(0,nL.notice)("Assuming apple-clang is already installed"),await Promise.all([ee("CC","clang"),ee("CXX","clang++")]),i.push(tX("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a)}}catch(t){(0,rc.error)(t),s.push("Failed to install the "+e)}(0,nL.endGroup)()}async function tz(e){let t,r,n=Promise.resolve();rl.GITHUB_ACTIONS||(n=A(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=((e,t)=>{t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,d=(e=e||[]).length;let p=void 0!==t.alias,f=void 0!==t.unknown,m=void 0!==t.default;if(t.alias=t.alias||{},t.string=L(t.string),t.boolean=L(t.boolean),p)for(r in t.alias)for(l=0,n=t.alias[r]=L(t.alias[r]);l<n.length;l++)(t.alias[n[l]]=n.concat(r)).splice(l,1);for(l=t.boolean.length;l-- >0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-- >0;)t.boolean.push(n[c]);for(l=t.string.length;l-- >0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-- >0;)t.string.push(n[c]);if(m){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;l<n.length;l++)t[o].push(n[l])}let h=f?Object.keys(t.alias):[];for(l=0;d>l;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break}for(c=0;c<i.length&&45===i.charCodeAt(c);c++);if(0===c)a._.push(i);else if("no-"===i.substring(c,c+3)){if(o=i.substring(c+3),f&&!~h.indexOf(o))return t.unknown(i);a[o]=!1}else{for(u=c+1;u<i.length&&61!==i.charCodeAt(u);u++);for(o=i.substring(c,u),s=i.substring(++u)||l+1===d||45===(""+e[l+1]).charCodeAt(0)||e[++l],n=2===c?[o]:o,u=0;u<n.length;u++){if(o=n[u],f&&!~h.indexOf(o))return t.unknown("-".repeat(c)+o);((e,t,r,n)=>{var i,o=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?s:Array.isArray(o)?o.concat(s):[o,s]})(a,o,u+1<n.length||s,t)}}}if(m)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(p)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(e,{string:cc,default:Object.fromEntries(cc.map(e=>[e,(e=>{let t=(0,nL.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t})(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rc.info)(`
|
|
setup-cpp [options]
|
|
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
|
|
|
Install all the tools required for building and testing C++/C projects.
|
|
|
|
--architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture.
|
|
--compiler the <compiler> to install.
|
|
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
|
|
|
|
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
|
|
|
|
All the available tools:
|
|
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??T(""),a=[],l=[],c=rp.create({autoloadLocales:!0});rp.addLocale(d(rf)),ru.addLocale(d(rd));let u=await tb();if(!((e,t)=>{let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eJ(e[t],t)),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i}),!0)})(i,["llvm","clangtidy","clangformat"]))return(0,rc.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ey()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rc.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eI("python-pygments"));let p=!1;for(let e of cl){let n=i[e];void 0!==n&&(t=Date.now(),p=await tV(e,n,u,o,s,a,l),r=Date.now(),(0,rc.info)("took "+(c.format(t,r)||"0 seconds")))}let f=i.compiler;if(void 0!==f){let e=Date.now();await tW(f,u,s,o,a,p,l);let t=Date.now();(0,rc.info)("took "+(c.format(e,t)||"0 seconds"))}if(await eo(),0===a.length&&0===l.length)return(0,rc.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rc.success)(e)),l.forEach(e=>(0,rc.error)(e)),(0,rc.info)("setup-cpp finished"),!rl.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rc.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rc.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return await n,0===l.length?0:1}"use strict";var tK,tY,tQ,tJ,tZ,t0,t1,t2,t4,t3,t6,t5,t8,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rd,rp,rf,rm,rh,rg,rE,rv,ry,rx,rw,rb,rS,rI,rO,rR,rT,rC,r_,rP,rA,rL,rN,r$,rD,rk,rj,rU,rM,rG,rF,rB,rH,rq,rV,rX,rW,rz,rK,rY,rQ,rJ,rZ,r0,r1,r2,r4,r3,r6,r5,r8,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,nd,np,nf,nm,nh,ng,nE,nv,ny,nx,nw,nb,nS,nI,nO,nR,nT,nC,n_,nP,nA,nL,nN,n$,nD,nk,nj,nU,nM,nG,nF,nB,nH,nq,nV,nX,nW,nz,nK,nY,nQ,nJ,nZ,n0,n1,n2,n4,n3,n6,n5,n8,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu,id,ip,im,ih,ig,iE,iv,iy,ix,iw,ib,iS,iI,iO,iR,iT,iC,i_,iP,iA,iL,iN,i$,iD,ik,ij,iU,iM,iG,iF,iB,iH,iq,iV,iX,iW,iz,iK,iY,iQ,iJ,iZ,i0,i1,i2,i4,i3,i6,i5,i8,i9,i7,oe,ot,or,on,oi,oo,os,oa,ol,oc,ou,od,op=require("os"),of=require("path"),om=require("fs"),oh=require("crypto"),og=require("http"),oE=require("https");require("net"),tK=require("tls"),tY=require("events"),tQ=require("assert"),tJ=require("util"),tZ=require("node:fs"),t0=require("child_process"),t1=require("string_decoder"),t2=require("timers"),t4=require("buffer"),t3=require("stream"),t6=require("process"),t5=require("node:buffer"),t8=require("node:path"),t9=require("node:child_process"),t7=require("node:process"),re=require("node:url"),rt=require("node:os"),rr=require("node:util"),rn=require("url"),ri="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},ro={},rs={},null==(ra=ri.parcelRequire810d)&&((ra=e=>{if(e in ro)return ro[e].exports;if(e in rs){var t=rs[e];delete rs[e];var r={id:e,exports:{}};return ro[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{rs[e]=t},ri.parcelRequire810d=ra),ra.register("2W4C2",(e,t)=>{var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(e=>!!i[e]):Object.keys(e).every(t=>i[t]===e[t])}"use strict";r=ra("bIoxD");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(e=>e.constant)}),e.exports.name=null,e.exports.isPR=null,r.forEach(t=>{let r=Array.isArray(t.env)?t.env:[t.env],o=r.every(e=>n(e));if(e.exports[t.constant]=o,o)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(e=>!!i[e]):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name))}),ra.register("bIoxD",(e,t)=>{e.exports=JSON.parse('[{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI","pr":"SYSTEM_PULLREQUEST_PULLREQUESTID"},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Shippable","constant":"SHIPPABLE","env":"SHIPPABLE","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Solano CI","constant":"SOLANO","env":"TDDIUM","pr":"TDDIUM_PR_ID"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]}},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]')}),ra.register("7Lz0k",(e,t)=>{var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`)}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`)}function s(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`)}function a(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`)}function l(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e)}u(e.exports,"error",()=>i),u(e.exports,"success",()=>o),u(e.exports,"warning",()=>s),u(e.exports,"notice",()=>a),u(e.exports,"info",()=>l),r=ra("9IqVj"),n=ra("2W4C2")}),ra.register("9IqVj",(e,t)=>{var r,n,i,o,s,a,l,c,u,d,p,f;function m(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function h(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}function g(e){s.issue("group",e)}function E(){s.issue("endgroup")}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=ra("6jKaV"),a=ra("i1T7k"),l=ra("bmZmX");let v=i(op),y=i(of);c=ra("hZmcj"),u=ra("1YxKR"),(e=>{e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(d=e.exports.ExitCode||(e.exports.ExitCode={})),e.exports.exportVariable=(e,t)=>{let r=l.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t="ghadelimiter_"+c.default();if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);let n=`${e}<<${t}${v.EOL}${r}${v.EOL}${t}`;a.issueCommand("ENV",n)}else s.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{s.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{let t=process.env.GITHUB_PATH||"";t?a.issueCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${y.delimiter}${process.env.PATH}`},e.exports.getInput=m,e.exports.getMultilineInput=(e,t)=>{let r=m(e,t).split("\n").filter(e=>""!==e);return r},e.exports.getBooleanInput=(e,t)=>{let r=m(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(v.EOL),s.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{s.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=d.Failure,h(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{s.issueCommand("debug",{},e)},e.exports.error=h,e.exports.warning=(e,t={})=>{s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.notice=(e,t={})=>{s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.info=e=>{process.stdout.write(e+v.EOL)},e.exports.startGroup=g,e.exports.endGroup=E,e.exports.group=function(e,t){return o(this,void 0,void 0,*()=>{let r;g(e);try{r=yield t()}finally{E()}return r})},e.exports.saveState=(e,t)=>{s.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return o(this,void 0,void 0,*()=>yield u.OidcClient.getIDToken(e))},p=ra("3sE6a"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:()=>p.summary}),p=ra("3sE6a"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:()=>p.markdownSummary}),f=ra("csQEQ"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:()=>f.toPosixPath}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:()=>f.toWin32Path}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:()=>f.toPlatformPath})}),ra.register("6jKaV",(e,t)=>{var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL)}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(op);o=ra("bmZmX"),e.exports.issueCommand=s,e.exports.issue=(e,t="")=>{s(e,{},t)};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}return t+"::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}}}),ra.register("bmZmX",(e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}),ra.register("i1T7k",(e,t)=>{"use strict";var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;let s=i(om),a=i(op);o=ra("bmZmX"),e.exports.issueCommand=(e,t)=>{let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${o.toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}}),ra.register("hZmcj",(e,t)=>{var r,n,i;u(e.exports,"default",()=>i),r=ra("fL4R4"),n=ra("dfDnF"),i=(e,t,i)=>{e=e||{};let o=e.random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t}return(0,n.default)(o)}}),ra.register("fL4R4",(e,t)=>{function r(){return i>n.length-16&&(d(oh).randomFillSync(n),i=0),n.slice(i,i+=16)}u(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length}),ra.register("dfDnF",(e,t)=>{var r,n;u(e.exports,"default",()=>n),r=ra("k6vAm");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=(e,t=0)=>{let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}}),ra.register("k6vAm",(e,t)=>{var r,n;u(e.exports,"default",()=>n),r=ra("awO54"),n=e=>"string"==typeof e&&(0,r.default).test(e)}),ra.register("awO54",(e,t)=>{u(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i}),ra.register("1YxKR",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=ra("6xPYX"),i=ra("gRdnl"),o=ra("9IqVj");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t})}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,*()=>{let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
|
|
|
|
Error Code : ${e.statusCode}
|
|
|
|
Error Message: ${e.result.message}`)}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return r(this,void 0,void 0,*()=>{try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}})}}e.exports.OidcClient=s}),ra.register("6xPYX",(e,t)=>{"use strict";var r,n,i,o,s,a,l;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let c=i(og),u=i(oE),d=i(ra("1cTRj")),p=i(ra("k1Uj2"));(e=>{e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"})(s=e.exports.HttpCodes||(e.exports.HttpCodes={})),(e=>{e.Accept="accept",e.ContentType="content-type"})(a=e.exports.Headers||(e.exports.Headers={})),(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=d.getProxyUrl(new URL(e));return t?t.href:""};let f=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],m=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],h=["OPTIONS","GET","DELETE","HEAD"];class g extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,g.prototype)}}e.exports.HttpClientError=g;class E{constructor(e){this.message=e}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e])}),this.message.on("end",()=>{e(t.toString())})}))})}}e.exports.HttpClientResponse=E,e.exports.isHttps=e=>{let t=new URL(e);return"https:"===t.protocol},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{})})}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{})})}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{})})}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{})})}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{})})}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{})})}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{})})}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n)})}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)})}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions)})}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions)})}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[a.Accept]=this._getExistingOrDefaultHeader(r,a.Accept,l.ApplicationJson),r[a.ContentType]=this._getExistingOrDefaultHeader(r,a.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions)})}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),a=this._prepareRequest(e,o,n),l=this._allowRetries&&h.includes(e)?this._maxRetries+1:1,c=0;do{if((i=yield this.requestRaw(a,r))&&i.message&&i.message.statusCode===s.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break}if(e)return e.handleAuthentication(this,a,r);break}let t=this._maxRedirects;for(;i.message.statusCode&&f.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let s=i.message.headers.location;if(!s)break;let l=new URL(s);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,l,n),i=yield this.requestRaw(a,r),t--}if(!i.message.statusCode||!m.includes(i.message.statusCode))break;(c+=1)<l&&(yield i.readBody(),yield this._performExponentialBackoff(c))}while(c<l)return i})}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>{this.requestRawWithCallback(e,t,(e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))})})})}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=e.httpModule.request(e.options,e=>{let t=new E(e);i(void 0,t)});s.on("socket",e=>{n=e}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path))}),s.on("error",e=>{i(e)}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",()=>{s.end()}),t.pipe(s)):s.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?u:c,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},v(this.requestOptions.headers),v(e||{})):v(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=v(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;let r=d.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||c.globalAgent.maxSockets),r&&r.hostname){let e={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},n="https:"===r.protocol;t=(i?n?p.httpsOverHttps:p.httpsOverHttp:n?p.httpOverHttps:p.httpOverHttp)(e),this._proxyAgent=t}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new u.Agent(e):new c.Agent(e),this._agent=t}return t||(t=i?u.globalAgent:c.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return o(this,void 0,void 0,*()=>{e=Math.min(10,e);let t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,*()=>{let i,o;let a=e.message.statusCode||0,l={statusCode:a,result:null,headers:{}};a===s.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,(e,t)=>{if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}):JSON.parse(o),l.result=i),l.headers=e.message.headers}catch(e){}if(a>299){let e;e=i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`;let t=new g(e,a);t.result=l.result,n(t)}else r(l)}))})}};let v=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{})}),ra.register("1cTRj",(e,t)=>{function r(e){let t;if(!e.hostname)return!1;let r=e.hostname;if((e=>{let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")})(r))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||"";if(!n)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let i=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&i.push(`${i[0]}:${t}`),n.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||i.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1}"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=e=>{let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0},e.exports.checkBypass=r}),ra.register("k1Uj2",(e,t)=>{e.exports=ra("jrbfx")}),ra.register("jrbfx",(e,t)=>{var r,n,i,o,s,a;function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||og.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(e,r,n,i)=>{for(var o=d(r,n,i),s=0,a=t.requests.length;a>s;++s){var l=t.requests[s];if(l.host===o.host&&l.port===o.port){t.requests.splice(s,1),l.request.onSocket(e);return}}e.destroy(),t.removeSocket(e)})}function c(e,t){var r=this;l.prototype.createSocket.call(r,e,n=>{var i=e.request.getHeader("host"),o=p({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=tK.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s)})}function d(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function p(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,s=i.length;s>o;++o){var a=i[o];void 0!==n[a]&&(e[a]=n[a])}}return e}"use strict";u(e.exports,"httpOverHttp",()=>r,e=>r=e),u(e.exports,"httpsOverHttp",()=>n,e=>n=e),u(e.exports,"httpOverHttps",()=>i,e=>i=e),u(e.exports,"httpsOverHttps",()=>o,e=>o=e),u(e.exports,"debug",()=>s,e=>s=e),r=e=>{var t=new l(e);return t.request=og.request,t},n=e=>{var t=new l(e);return t.request=og.request,t.createSocket=c,t.defaultPort=443,t},i=e=>{var t=new l(e);return t.request=oE.request,t},o=e=>{var t=new l(e);return t.request=oE.request,t.createSocket=c,t.defaultPort=443,t},tJ.inherits(l,tY.EventEmitter),l.prototype.addRequest=function(e,t,r,n){var i=this,o=p({request:e},i.options,d(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,t=>{function r(){i.emit("free",t,o)}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})},l.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){a("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var c=Error("tunneling socket could not be established, statusCode="+r.statusCode);c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return}if(l.length>0){a("got illegal response body from proxy"),n.destroy();var c=Error("got illegal response body from proxy");c.code="ECONNRESET",e.request.emit("error",c),o.removeSocket(s);return}return a("tunneling connection has established"),o.sockets[o.sockets.indexOf(s)]=n,t(n)}var n,i,o=this,s={};o.sockets.push(s),n=p({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),a("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",e=>{e.upgrade=!0}),i.once("upgrade",(e,t,n)=>{process.nextTick(()=>{r(e,t,n)})}),i.once("connect",r),i.once("error",t=>{i.removeAllListeners(),a("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(s)}),i.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,e=>{r.request.onSocket(e)})}},s=a=()=>{}}),ra.register("gRdnl",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,*()=>{throw Error("not implemented")})}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,*()=>{throw Error("not implemented")})}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(){return!1}handleAuthentication(){return r(this,void 0,void 0,*()=>{throw Error("not implemented")})}}}),ra.register("3sE6a",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=om.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,om.constants.R_OK|om.constants.W_OK)}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(op.EOL)}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o)}).join("");return this.wrap("tr",t)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s}),ra.register("csQEQ",(e,t)=>{var r,n,i;"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(of);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)}),ra.register("9tC1p",(e,t)=>{var r=of.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null}function o(e){void 0!==t[e]||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}"use strict";t={},n={create:e=>(o(e),{pluralize:(t,r)=>i(e,t,r)}),addLocale(e,r){t[e]=r},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n}).call(e.exports)}),ra.register("5cIV4",(e,t)=>{function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;a[e]=r}}var n=ra("b9BRc"),i=ra("ld0VC");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],s={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},a={};e.exports={create:e=>(e=Object.assign({},s,e||{}),{format:(t,s,l)=>((e,t,s)=>{if(((e,t)=>{let{autoload:n}=t;if(!a[e]){if(i&&n)(e=>{try{r(require(`../locales/${e}.js`))}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`)}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`)}})(s.locale,{autoload:s.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=((e,t)=>{let r=t-e,n=[];return o.some(e=>{let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0}),n})(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(((e,t,r)=>{let i=(e=>{var t;let r=a[e.locale],n=e.unitTypeLookupOrder.slice();n.unshift(e.unitType),t=n;let i=null;if((n=Array.from(new Set(t))).some(e=>{if(void 0!==r[e])return i=r[e],!0}),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i})(r),o=n.pluralize(r.locale,t,i[e]);return o.replace("{0}",t)})(t,r,s)),c.length>=s.span)break}return c.join(s.delimiter)})(t,s,l=Object.assign({},e,l||{}))}),addLocale:r,defaultConfig:s}}),ra.register("b9BRc",(e,t)=>{e.exports=ra("9tC1p")}),ra.register("ld0VC",(e,t)=>{"use strict";e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node)}),ra.register("i5trn",(e,t)=>{var r,n,i,o,s,a,l,c,u,d,p;function f(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim()}function m(e,t={}){s.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e)}function h(e){s.issue("group",e)}function g(){s.issue("endgroup")}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,s=ra("gMlpL"),a=ra("7kVRV"),l=ra("9tsrd");let E=i(op),v=i(of);c=ra("6dWjY"),(e=>{e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(u=e.exports.ExitCode||(e.exports.ExitCode={})),e.exports.exportVariable=(e,t)=>{let r=l.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{s.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{let t=process.env.GITHUB_PATH||"";t?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${v.delimiter}${process.env.PATH}`},e.exports.getInput=f,e.exports.getMultilineInput=(e,t)=>{let r=f(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim())},e.exports.getBooleanInput=(e,t)=>{let r=f(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
|
|
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{let r=process.env.GITHUB_OUTPUT||"";if(r)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t))},e.exports.setCommandEcho=e=>{s.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=u.Failure,m(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{s.issueCommand("debug",{},e)},e.exports.error=m,e.exports.warning=(e,t={})=>{s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.notice=(e,t={})=>{s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e)},e.exports.info=e=>{process.stdout.write(e+E.EOL)},e.exports.startGroup=h,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,*()=>{let r;h(e);try{r=yield t()}finally{g()}return r})},e.exports.saveState=(e,t)=>{let r=process.env.GITHUB_STATE||"";if(r)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t))},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return o(this,void 0,void 0,*()=>yield c.OidcClient.getIDToken(e))},d=ra("aYzS9"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:()=>d.summary}),d=ra("aYzS9"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:()=>d.markdownSummary}),p=ra("iGRwD"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:()=>p.toPosixPath}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:()=>p.toWin32Path}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:()=>p.toPlatformPath})}),ra.register("gMlpL",(e,t)=>{var r,n,i,o;function s(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+a.EOL)}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(op);o=ra("9tsrd"),e.exports.issueCommand=s,e.exports.issue=(e,t="")=>{s(e,{},t)};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}return t+"::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}}}),ra.register("9tsrd",(e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}),ra.register("7kVRV",(e,t)=>{"use strict";var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(om),l=i(op);o=ra("hZmcj"),s=ra("9tsrd"),e.exports.issueFileCommand=(e,t)=>{let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"})},e.exports.prepareKeyValueMessage=(e,t)=>{let r="ghadelimiter_"+o.default(),n=s.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`}}),ra.register("6dWjY",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=ra("6xPYX"),i=ra("gRdnl"),o=ra("i5trn");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t})}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,*()=>{let r=s.createHttpClient(),n=yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
|
|
|
|
Error Code : ${e.statusCode}
|
|
|
|
Error Message: ${e.result.message}`)}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i})}static getIDToken(e){return r(this,void 0,void 0,*()=>{try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}})}}e.exports.OidcClient=s}),ra.register("aYzS9",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=om.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,om.constants.R_OK|om.constants.W_OK)}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(op.EOL)}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o)}).join("");return this.wrap("tr",t)}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(s).addEOL()}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s}),ra.register("iGRwD",(e,t)=>{var r,n,i;"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(of);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,o.sep)}),ra.register("eq4yW",(e,t)=>{var r,n,i,o,s,a,l,c,p,f,m,h,g;function E(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]})}),e}function v(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function y(e,t=!0){return t?(0,of.basename)(e):(0,of.basename)(e,(0,of.extname)(e))}function x(e){return(0,of.normalize)(e).replace(RegExp((0,r.default)(of.sep)+"$"),"")}function w(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function b(e,t){let r=(0,of.extname)(e),n=`${t}${(0,of.basename)(e,r)}${r}`;return(0,of.join)((0,of.dirname)(e),n)}function S(e,t){let r=(0,of.extname)(e),n=`${(0,of.basename)(e,r)}${t}${r}`;return(0,of.join)((0,of.dirname)(e),n)}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function O(e){return"win32"===process.platform?e:"./"+e}function R(e){let t=(0,of.extname)(e).length;return e.slice(0,-t)}function T(e,t){return d(n)(e,t)}function C(e,t){let r=(0,of.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+of.sep)||r===(0,of.resolve)(e))}u(e.exports,"addExeExt",()=>w),u(e.exports,"addShExt",()=>I),u(e.exports,"addShRelativePrefix",()=>O),u(e.exports,"dirname",()=>of.dirname),u(e.exports,"join",()=>of.join),r=ra("3cGqJ"),n=ra("hf1mP"),i={},v(o={},"name",()=>y),v(s={},"normalizeTrim",()=>x),v(a={},"addExeExt",()=>w),v(l={},"addNamePrefix",()=>b),v(c={},"addNameSuffix",()=>S),v(p={},"addShExt",()=>I),v(f={},"addShRelativePrefix",()=>O),v(m={},"removeExt",()=>R),v(h={},"replaceExt",()=>T),v(g={},"isPathInside",()=>C),E(i,o),E(i,s),E(i,a),E(i,l),E(i,c),E(i,p),E(i,f),E(i,m),E(i,h),E(i,g)}),ra.register("3cGqJ",(e,t)=>{function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}u(e.exports,"default",()=>r)}),ra.register("hf1mP",(e,t)=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e||0===e.length)return e;var r=of.basename(e,of.extname(e))+t,n=of.join(of.dirname(e),r);return(e=>{var t=e.slice(0,2);return t==="."+of.sep||"./"===t})(e)?"."+of.sep+n:n}}),ra.register("cCOdx",(e,t)=>{function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1})(t,r)}function n(e,t,n){om.stat(e,(i,o)=>{n(i,!i&&r(o,e,t))})}e.exports=n,n.sync=(e,t)=>r(om.statSync(e),e,t)}),ra.register("fHi41",(e,t)=>{function r(e,t,r){om.stat(e,(e,i)=>{r(e,!e&&n(i,t))})}function n(e,t){var r,n,i,o,s,a,l;return e.isFile()&&(r=e.mode,n=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),r&parseInt("001",8)||r&l&&i===s||r&a&&n===o||r&(a|l)&&0===o)}e.exports=r,r.sync=(e,t)=>n(om.statSync(e),t)}),ra.register("5AOH8",(e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),ra.register("bmInQ",(e,t)=>{"use strict";e.exports=e=>{if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")}}),ra.register("bOuKS",(e,t)=>{async function r(e){try{return await (0,tZ.promises).access(e),!0}catch{return!1}}u(e.exports,"pathExists",()=>r)}),ra.register("jtqY0",(e,t)=>{var r,n,i,o;function s(e){return o(this,void 0,void 0,*()=>{if(d.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield d.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw Error("File was unable to be removed "+e)}})}function a(e){return o(this,void 0,void 0,*()=>{tQ.ok(e,"a path argument must be provided"),yield d.mkdir(e,{recursive:!0})})}function l(e){return o(this,void 0,void 0,*()=>{if(!e)throw Error("parameter 'tool' is required");let t=[];if(d.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(d.isRooted(e)){let r=yield d.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(u.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(u.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield d.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r)}return n})}function c(e,t,r){return o(this,void 0,void 0,*()=>{if((yield d.lstat(e)).isSymbolicLink()){try{yield d.lstat(t),yield d.unlink(t)}catch(e){"EPERM"===e.code&&(yield d.chmod(t,"0666"),yield d.unlink(t))}let r=yield d.readlink(e);yield d.symlink(r,t,d.IS_WINDOWS?"junction":null)}else(!(yield d.exists(t))||r)&&(yield d.copyFile(e,t))})}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(of),d=i(ra("cbIfL"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,*()=>{let{force:n,recursive:i,copySourceDirectory:s}=(e=>{let t=null==e.force||e.force,r=!!e.recursive,n=null==e.copySourceDirectory||!!e.copySourceDirectory;return{force:t,recursive:r,copySourceDirectory:n}})(r),l=(yield d.exists(t))?yield d.stat(t):null;if(l&&l.isFile()&&!n)return;let p=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield d.exists(e)))throw Error("no such file or directory: "+e);let f=yield d.stat(e);if(f.isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,*()=>{if(n>=255)return;n++,yield a(r);let o=yield d.readdir(t);for(let s of o){let o=`${t}/${s}`,a=`${r}/${s}`,l=yield d.lstat(o);l.isDirectory()?yield e(o,a,n,i):yield c(o,a,i)}yield d.chmod(r,(yield d.stat(t)).mode)})}(e,p,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{if(""===u.relative(e,p))throw Error(`'${p}' and '${e}' are the same file`);yield c(e,p,n)}})},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,*()=>{if(yield d.exists(t)){let n=!0;if((yield d.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield d.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists")}}yield a(u.dirname(t)),yield d.rename(e,t)})},e.exports.rmRF=s,e.exports.mkdirP=a,e.exports.which=function e(t,r){return o(this,void 0,void 0,*()=>{if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(d.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}return r}let n=yield l(t);return n&&n.length>0?n[0]:""})},e.exports.findInPath=l}),ra.register("cbIfL",(e,t)=>{var r,n,i,o,s;function a(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(om),c=i(of);s=l.promises,e.exports.chmod=s.chmod,e.exports.copyFile=s.copyFile,e.exports.lstat=s.lstat,e.exports.mkdir=s.mkdir,e.exports.open=s.open,e.exports.readdir=s.readdir,e.exports.readlink=s.readlink,e.exports.rename=s.rename,e.exports.rm=s.rm,e.exports.rmdir=s.rmdir,e.exports.stat=s.stat,e.exports.symlink=s.symlink,e.exports.unlink=s.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,*()=>{try{yield e.exports.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0})},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,*()=>{let n=r?yield e.exports.stat(t):yield e.exports.lstat(t);return n.isDirectory()})},e.exports.isRooted=t=>{var r;if(r=t,r=r||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,*()=>{let n;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=c.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t}else if(a(n))return t}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=c.dirname(t),n=c.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=c.join(r,i);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(a(n))return t}}return""})},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}),ra.register("d0IR9",(e,t)=>{var r,n,i,o,s;"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(ra("df8HD"));s=ra("i5trn"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,*()=>{let o,l,c;let u=op.platform();for(let o of n){let n=o.version;if(s.debug(`check ${n} satisfies ${t}`),a.satisfies(n,t)&&(!r||o.stable===r)&&(c=o.files.find(t=>{s.debug(`${t.arch}===${i} && ${t.platform}===${u}`);let r=t.arch===i&&t.platform===u;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||a.satisfies(n,t.platform_version)}return r}))){s.debug("matched "+o.version),l=o;break}}return l&&c&&((o=Object.assign({},l)).files=[c]),o})},e.exports._getOsVersion=()=>{let t=op.platform(),r="";if("darwin"===t)r=t0.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t){let e=t.split("\n");for(let t of e){let e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r},e.exports._readLinuxVersionFile=()=>{let e="/etc/lsb-release",t="/etc/os-release",r="";return om.existsSync(e)?r=om.readFileSync(e).toString():om.existsSync(t)&&(r=om.readFileSync(t).toString()),r}}),ra.register("df8HD",(e,t)=>{function r(e){R[e]=T++}function n(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i)return e;if("string"!=typeof e||e.length>b||!(t.loose?I[R.LOOSE]:I[R.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof i){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>b)throw TypeError("version is longer than "+b+" characters");if(!(this instanceof i))return new i(e,t);w("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?I[R.LOOSE]:I[R.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>S||this.major<0)throw TypeError("Invalid major version");if(this.minor>S||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>S||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<S)return t}return e}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}function o(e,t){var r=C.test(e),n=C.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1}function s(e,t,r){return new i(e,r).compare(new i(t,r))}function a(e,t,r){return s(e,t,r)>0}function l(e,t,r){return 0>s(e,t,r)}function c(e,t,r){return 0===s(e,t,r)}function u(e,t,r){return 0!==s(e,t,r)}function d(e,t,r){return s(e,t,r)>=0}function p(e,t,r){return 0>=s(e,t,r)}function f(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return c(e,r,n);case"!=":return u(e,r,n);case">":return a(e,r,n);case">=":return d(e,r,n);case"<":return l(e,r,n);case"<=":return p(e,r,n);default:throw TypeError("Invalid operator: "+t)}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value}if(!(this instanceof m))return new m(e,t);w("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===_?this.value="":this.value=this.operator+this.semver.version,w("comp",this)}function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof h)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new h(e.raw,t);if(e instanceof m)return new h(e.value,t);if(!(this instanceof h))return new h(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+e);this.format()}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r}function E(e){return!e||"x"===e.toLowerCase()||"*"===e}function v(e,t,r,n,i,o,s,a,l,c,u,d,p){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":d?"<="+l+"."+c+"."+u+"-"+d:"<="+a)).trim()}function y(e,t,r){try{t=new h(t,r)}catch(e){return!1}return t.test(e)}function x(e,t,r,n){switch(e=new i(e,n),t=new h(t,n),r){case">":o=a,s=p,c=l,u=">",f=">=";break;case"<":o=l,s=d,c=a,u="<",f="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(y(e,t,n))return!1;for(var o,s,c,u,f,g=0;g<t.set.length;++g){var E=t.set[g],v=null,x=null;if(E.forEach(e=>{e.semver===_&&(e=new m(">=0.0.0")),v=v||e,x=x||e,o(e.semver,v.semver,n)?v=e:c(e.semver,x.semver,n)&&(x=e)}),v.operator===u||v.operator===f||(!x.operator||x.operator===u)&&s(e,x.semver)||x.operator===f&&c(e,x.semver))return!1}return!0}t=e.exports=i,"object"==typeof process&&process.env,w=()=>{},t.SEMVER_SPEC_VERSION="2.0.0",b=256,S=Number.MAX_SAFE_INTEGER||9007199254740991,I=t.re=[],O=t.src=[],R=t.tokens={},T=0,r("NUMERICIDENTIFIER"),O[R.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),O[R.NUMERICIDENTIFIERLOOSE]="[0-9]+",r("NONNUMERICIDENTIFIER"),O[R.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",r("MAINVERSION"),O[R.MAINVERSION]="("+O[R.NUMERICIDENTIFIER]+")\\.("+O[R.NUMERICIDENTIFIER]+")\\.("+O[R.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),O[R.MAINVERSIONLOOSE]="("+O[R.NUMERICIDENTIFIERLOOSE]+")\\.("+O[R.NUMERICIDENTIFIERLOOSE]+")\\.("+O[R.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),O[R.PRERELEASEIDENTIFIER]="(?:"+O[R.NUMERICIDENTIFIER]+"|"+O[R.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),O[R.PRERELEASEIDENTIFIERLOOSE]="(?:"+O[R.NUMERICIDENTIFIERLOOSE]+"|"+O[R.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),O[R.PRERELEASE]="(?:-("+O[R.PRERELEASEIDENTIFIER]+"(?:\\."+O[R.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),O[R.PRERELEASELOOSE]="(?:-?("+O[R.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+O[R.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),O[R.BUILDIDENTIFIER]="[0-9A-Za-z-]+",r("BUILD"),O[R.BUILD]="(?:\\+("+O[R.BUILDIDENTIFIER]+"(?:\\."+O[R.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),O[R.FULLPLAIN]="v?"+O[R.MAINVERSION]+O[R.PRERELEASE]+"?"+O[R.BUILD]+"?",O[R.FULL]="^"+O[R.FULLPLAIN]+"$",r("LOOSEPLAIN"),O[R.LOOSEPLAIN]="[v=\\s]*"+O[R.MAINVERSIONLOOSE]+O[R.PRERELEASELOOSE]+"?"+O[R.BUILD]+"?",r("LOOSE"),O[R.LOOSE]="^"+O[R.LOOSEPLAIN]+"$",r("GTLT"),O[R.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),O[R.XRANGEIDENTIFIERLOOSE]=O[R.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),O[R.XRANGEIDENTIFIER]=O[R.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),O[R.XRANGEPLAIN]="[v=\\s]*("+O[R.XRANGEIDENTIFIER]+")(?:\\.("+O[R.XRANGEIDENTIFIER]+")(?:\\.("+O[R.XRANGEIDENTIFIER]+")(?:"+O[R.PRERELEASE]+")?"+O[R.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),O[R.XRANGEPLAINLOOSE]="[v=\\s]*("+O[R.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+O[R.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+O[R.XRANGEIDENTIFIERLOOSE]+")(?:"+O[R.PRERELEASELOOSE]+")?"+O[R.BUILD]+"?)?)?",r("XRANGE"),O[R.XRANGE]="^"+O[R.GTLT]+"\\s*"+O[R.XRANGEPLAIN]+"$",r("XRANGELOOSE"),O[R.XRANGELOOSE]="^"+O[R.GTLT]+"\\s*"+O[R.XRANGEPLAINLOOSE]+"$",r("COERCE"),O[R.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),I[R.COERCERTL]=RegExp(O[R.COERCE],"g"),r("LONETILDE"),O[R.LONETILDE]="(?:~>?)",r("TILDETRIM"),O[R.TILDETRIM]="(\\s*)"+O[R.LONETILDE]+"\\s+",I[R.TILDETRIM]=RegExp(O[R.TILDETRIM],"g"),r("TILDE"),O[R.TILDE]="^"+O[R.LONETILDE]+O[R.XRANGEPLAIN]+"$",r("TILDELOOSE"),O[R.TILDELOOSE]="^"+O[R.LONETILDE]+O[R.XRANGEPLAINLOOSE]+"$",r("LONECARET"),O[R.LONECARET]="(?:\\^)",r("CARETTRIM"),O[R.CARETTRIM]="(\\s*)"+O[R.LONECARET]+"\\s+",I[R.CARETTRIM]=RegExp(O[R.CARETTRIM],"g"),r("CARET"),O[R.CARET]="^"+O[R.LONECARET]+O[R.XRANGEPLAIN]+"$",r("CARETLOOSE"),O[R.CARETLOOSE]="^"+O[R.LONECARET]+O[R.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),O[R.COMPARATORLOOSE]="^"+O[R.GTLT]+"\\s*("+O[R.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),O[R.COMPARATOR]="^"+O[R.GTLT]+"\\s*("+O[R.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),O[R.COMPARATORTRIM]="(\\s*)"+O[R.GTLT]+"\\s*("+O[R.LOOSEPLAIN]+"|"+O[R.XRANGEPLAIN]+")",I[R.COMPARATORTRIM]=RegExp(O[R.COMPARATORTRIM],"g"),r("HYPHENRANGE"),O[R.HYPHENRANGE]="^\\s*("+O[R.XRANGEPLAIN]+")\\s+-\\s+("+O[R.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),O[R.HYPHENRANGELOOSE]="^\\s*("+O[R.XRANGEPLAINLOOSE]+")\\s+-\\s+("+O[R.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),O[R.STAR]="(<|>)?=?\\s*\\*";for(var w,b,S,I,O,R,T,C,_,P=0;P<T;P++)w(P,O[P]),I[P]||(I[P]=new RegExp(O[P]));t.parse=n,t.valid=(e,t)=>{var r=n(e,t);return r?r.version:null},t.clean=(e,t)=>{var r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null},t.SemVer=i,i.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},i.prototype.toString=function(){return this.version},i.prototype.compare=function(e){return w("SemVer.compare",this.version,this.options,e),e instanceof i||(e=new i(e,this.options)),this.compareMain(e)||this.comparePre(e)},i.prototype.compareMain=function(e){return e instanceof i||(e=new i(e,this.options)),o(this.major,e.major)||o(this.minor,e.minor)||o(this.patch,e.patch)},i.prototype.comparePre=function(e){if(e instanceof i||(e=new i(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(w("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return -1;if(r===n)continue;else return o(r,n)}while(++t)},i.prototype.compareBuild=function(e){e instanceof i||(e=new i(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(w("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return -1;if(r===n)continue;else return o(r,n)}while(++t)},i.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=(e,t,r,n)=>{"string"==typeof r&&(n=r,r=void 0);try{return new i(e,r).inc(t,n).version}catch(e){return null}},t.diff=(e,t)=>{if(c(e,t))return null;var r=n(e),i=n(t),o="";if(r.prerelease.length||i.prerelease.length){o="pre";var s="prerelease"}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==i[a])return o+a;return s},t.compareIdentifiers=o,C=/^[0-9]+$/,t.rcompareIdentifiers=(e,t)=>o(t,e),t.major=(e,t)=>new i(e,t).major,t.minor=(e,t)=>new i(e,t).minor,t.patch=(e,t)=>new i(e,t).patch,t.compare=s,t.compareLoose=(e,t)=>s(e,t,!0),t.compareBuild=(e,t,r)=>{var n=new i(e,r),o=new i(t,r);return n.compare(o)||n.compareBuild(o)},t.rcompare=(e,t,r)=>s(t,e,r),t.sort=(e,r)=>e.sort((e,n)=>t.compareBuild(e,n,r)),t.rsort=(e,r)=>e.sort((e,n)=>t.compareBuild(n,e,r)),t.gt=a,t.lt=l,t.eq=c,t.neq=u,t.gte=d,t.lte=p,t.cmp=f,t.Comparator=m,_={},m.prototype.parse=function(e){var t=this.options.loose?I[R.COMPARATORLOOSE]:I[R.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new i(r[2],this.options.loose):this.semver=_},m.prototype.toString=function(){return this.value},m.prototype.test=function(e){if(w("Comparator.test",e,this.options.loose),this.semver===_||e===_)return!0;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}return f(e,this.operator,this.semver,this.options)},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new h(e.value,t),y(this.value,r,t));if(""===e.operator)return""===e.value||(r=new h(this.value,t),y(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,s=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),a=f(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=f(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l},t.Range=h,h.prototype.format=function(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range},h.prototype.toString=function(){return this.range},h.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?I[R.HYPHENRANGELOOSE]:I[R.HYPHENRANGE];w("hyphen replace",e=e.replace(r,v)),w("comparator trim",e=e.replace(I[R.COMPARATORTRIM],"$1$2$3"),I[R.COMPARATORTRIM]),e=(e=(e=e.replace(I[R.TILDETRIM],"$1~")).replace(I[R.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?I[R.COMPARATORLOOSE]:I[R.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i;return w("comp",t=e,r=this.options),w("caret",t=t.trim().split(/\s+/).map(e=>{var t;return w("caret",e,r),t=r.loose?I[R.CARETLOOSE]:I[R.CARET],e.replace(t,(t,r,n,i,o)=>{var s;return w("caret",e,t,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(w("replaceCaret pr",o),s="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(w("no pr"),s="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),w("caret return",s),s})}).join(" ")),w("tildes",t=t.trim().split(/\s+/).map(e=>{var t;return t=r.loose?I[R.TILDELOOSE]:I[R.TILDE],e.replace(t,(t,r,n,i,o)=>{var s;return w("tilde",e,t,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(w("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",w("tilde return",s),s})}).join(" ")),w("xrange",(w("replaceXRanges",n=t,r),t=n.split(/\s+/).map(e=>{var t,n;return t=(t=e).trim(),n=r.loose?I[R.XRANGELOOSE]:I[R.XRANGE],t.replace(n,(e,n,i,o,s,a)=>{w("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),e=n+i+"."+o+"."+s+a):c?e=">="+i+".0.0"+a+" <"+(+i+1)+".0.0"+a:u&&(e=">="+i+"."+o+".0"+a+" <"+i+"."+(+o+1)+".0"+a),w("xRange return",e),e})}).join(" "))),w("stars",(w("replaceStars",i=t,r),t=i.trim().replace(I[R.STAR],""))),t},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(e=>!!e.match(n))),i=i.map(function(e){return new m(e,this.options)},this)},h.prototype.intersects=function(e,t){if(!(e instanceof h))throw TypeError("a Range is required");return this.set.some(r=>g(r,t)&&e.set.some(e=>g(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))))},t.toComparators=(e,t)=>new h(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" ")),h.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new i(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(((e,t,r)=>{for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(w(e[n].semver),e[n].semver!==_&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0})(this.set[t],e,this.options))return!0;return!1},t.satisfies=y,t.maxSatisfying=(e,t,r)=>{var n=null,o=null;try{var s=new h(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!n||-1===o.compare(e))&&(n=e,o=new i(n,r))}),n},t.minSatisfying=(e,t,r)=>{var n=null,o=null;try{var s=new h(t,r)}catch(e){return null}return e.forEach(e=>{s.test(e)&&(!n||1===o.compare(e))&&(n=e,o=new i(n,r))}),n},t.minVersion=(e,t)=>{e=new h(e,t);var r=new i("0.0.0");if(e.test(r)||(r=new i("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach(e=>{var t=new i(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||a(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}});return r&&e.test(r)?r:null},t.validRange=(e,t)=>{try{return new h(e,t).range||"*"}catch(e){return null}},t.ltr=(e,t,r)=>x(e,t,"<",r),t.gtr=(e,t,r)=>x(e,t,">",r),t.outside=x,t.prerelease=(e,t)=>{var r=n(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=(e,t,r)=>(e=new h(e,r),t=new h(t,r),e.intersects(t)),t.coerce=(e,t)=>{if(e instanceof i)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,o=null;if((t=t||{}).rtl){for(;(r=I[R.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&r.index+r[0].length===o.index+o[0].length||(o=r),I[R.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;I[R.COERCERTL].lastIndex=-1}else o=e.match(I[R.COERCE]);return null===o?null:n(o[2]+"."+(o[3]||"0")+"."+(o[4]||"0"),t)}}),ra.register("1NS6t",(e,t)=>{var r=ra("ghfRK"),n=ra("1EsMF");e.exports=(e,t,i)=>{var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s)}}),ra.register("ghfRK",(e,t)=>{e.exports=()=>oh.randomBytes(16)}),ra.register("1EsMF",(e,t)=>{for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}}),ra.register("8hZvX",(e,t)=>{var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,*()=>{let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];t=n.slice(1).concat(t||[]);let o=new a.ToolRunner(i,t,r);return o.exec()})}"use strict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(ra("7IKJC"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,*()=>{let o="",a="",l=new t1.StringDecoder("utf8"),c=new t1.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,d=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,p=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e)},stderr(e){a+=c.write(e),d&&d(e)}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:p}));return{exitCode:f,stdout:o+=l.end(),stderr:a+=c.end()}})}}),ra.register("7IKJC",(e,t)=>{"use strict";var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(op),a=i(tY),l=i(t0),c=i(of),u=i(ra("jtqY0")),d=i(ra("cbIfL")),p="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(p){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e)}else for(let e of(i+=r,n))i+=" "+e;return i}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(s.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+s.EOL.length)).indexOf(s.EOL)}return n}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return p&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(p&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"']}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("")}_cloneExecOptions(e){e=e||{};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return o(this,void 0,void 0,function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=c.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+s.EOL);let n=new m(r,this.toolPath);if(n.on("debug",e=>{this._debug(e)}),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),a="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c="";if(o.stderr&&o.stderr.on("data",e=>{if(n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream){let t=r.failOnStdErr?r.errStream:r.outStream;t.write(e)}c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()}),n.on("done",(r,n)=>{a.length>0&&this.emit("stdline",a),c.length>0&&this.emit("errline",c),o.removeAllListeners(),r?t(r):e(n)}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input)}}))})}}e.exports.ToolRunner=f,e.exports.argStringToArray=e=>{function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1}let r=[],n=!1,i=!1,o="";for(let s=0;s<e.length;s++){let a=e.charAt(s);if('"'===a){i?t(a):n=!n;continue}if("\\"===a&&i){t(a);continue}if("\\"===a&&n){i=!0;continue}if(" "===a&&!n){o.length>0&&(r.push(o),o="");continue}t(a)}return o.length>0&&r.push(o.trim()),r};class m extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=t2.setTimeout(m.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}}}),ra.register("8Y9LU",(e,t)=>{var r=ra("ac3Ml");e.exports=(e,t,n)=>0>=r(e,t,n)}),ra.register("ac3Ml",(e,t)=>{var r=ra("jrxSU");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))}),ra.register("jrxSU",(e,t)=>{var r=ra("gASvA"),n=ra("1JLQK"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=ra("2TFYf"),a=s.re,l=s.t,c=ra("gqtfD"),u=ra("dHrNR").compareIdentifiers;class d{constructor(e,t){if(t=c(t),e instanceof d){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t}return e}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return -1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return -1;if(n===i)continue;else return u(n,i)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return -1;if(n===i)continue;else return u(n,i)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{let e=+r?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}e.exports=d}),ra.register("gASvA",(e,t)=>{let r=("object"==typeof process&&process.env,()=>{});e.exports=r}),ra.register("1JLQK",(e,t)=>{let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}),ra.register("2TFYf",(e,t)=>{var r=ra("1JLQK").MAX_SAFE_COMPONENT_LENGTH,n=ra("gASvA");t=e.exports={};let i=t.re=[],o=t.src=[],s=t.t={},a=0,l=(e,t,r)=>{let l=a++;n(e,l,t),s[e]=l,o[l]=t,i[l]=new RegExp(t,r?"g":void 0)};l("NUMERICIDENTIFIER","0|[1-9]\\d*"),l("NUMERICIDENTIFIERLOOSE","[0-9]+"),l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),l("MAINVERSION",`(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})\\.(${o[s.NUMERICIDENTIFIER]})`),l("MAINVERSIONLOOSE",`(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})\\.(${o[s.NUMERICIDENTIFIERLOOSE]})`),l("PRERELEASEIDENTIFIER",`(?:${o[s.NUMERICIDENTIFIER]}|${o[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASEIDENTIFIERLOOSE",`(?:${o[s.NUMERICIDENTIFIERLOOSE]}|${o[s.NONNUMERICIDENTIFIER]})`),l("PRERELEASE",`(?:-(${o[s.PRERELEASEIDENTIFIER]}(?:\\.${o[s.PRERELEASEIDENTIFIER]})*))`),l("PRERELEASELOOSE",`(?:-?(${o[s.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[s.PRERELEASEIDENTIFIERLOOSE]})*))`),l("BUILDIDENTIFIER","[0-9A-Za-z-]+"),l("BUILD",`(?:\\+(${o[s.BUILDIDENTIFIER]}(?:\\.${o[s.BUILDIDENTIFIER]})*))`),l("FULLPLAIN",`v?${o[s.MAINVERSION]}${o[s.PRERELEASE]}?${o[s.BUILD]}?`),l("FULL",`^${o[s.FULLPLAIN]}$`),l("LOOSEPLAIN",`[v=\\s]*${o[s.MAINVERSIONLOOSE]}${o[s.PRERELEASELOOSE]}?${o[s.BUILD]}?`),l("LOOSE",`^${o[s.LOOSEPLAIN]}$`),l("GTLT","((?:<|>)?=?)"),l("XRANGEIDENTIFIERLOOSE",`${o[s.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),l("XRANGEIDENTIFIER",`${o[s.NUMERICIDENTIFIER]}|x|X|\\*`),l("XRANGEPLAIN",`[v=\\s]*(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:\\.(${o[s.XRANGEIDENTIFIER]})(?:${o[s.PRERELEASE]})?${o[s.BUILD]}?)?)?`),l("XRANGEPLAINLOOSE",`[v=\\s]*(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[s.XRANGEIDENTIFIERLOOSE]})(?:${o[s.PRERELEASELOOSE]})?${o[s.BUILD]}?)?)?`),l("XRANGE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAIN]}$`),l("XRANGELOOSE",`^${o[s.GTLT]}\\s*${o[s.XRANGEPLAINLOOSE]}$`),l("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),l("COERCERTL",o[s.COERCE],!0),l("LONETILDE","(?:~>?)"),l("TILDETRIM",`(\\s*)${o[s.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",l("TILDE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAIN]}$`),l("TILDELOOSE",`^${o[s.LONETILDE]}${o[s.XRANGEPLAINLOOSE]}$`),l("LONECARET","(?:\\^)"),l("CARETTRIM",`(\\s*)${o[s.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",l("CARET",`^${o[s.LONECARET]}${o[s.XRANGEPLAIN]}$`),l("CARETLOOSE",`^${o[s.LONECARET]}${o[s.XRANGEPLAINLOOSE]}$`),l("COMPARATORLOOSE",`^${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]})$|^$`),l("COMPARATOR",`^${o[s.GTLT]}\\s*(${o[s.FULLPLAIN]})$|^$`),l("COMPARATORTRIM",`(\\s*)${o[s.GTLT]}\\s*(${o[s.LOOSEPLAIN]}|${o[s.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",l("HYPHENRANGE",`^\\s*(${o[s.XRANGEPLAIN]})\\s+-\\s+(${o[s.XRANGEPLAIN]})\\s*$`),l("HYPHENRANGELOOSE",`^\\s*(${o[s.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[s.XRANGEPLAINLOOSE]})\\s*$`),l("STAR","(<|>)?=?\\s*\\*"),l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}),ra.register("gqtfD",(e,t)=>{let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n}),ra.register("dHrNR",(e,t)=>{let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}}),ra.register("Fj3X5",(e,t)=>{var r=ra("jrxSU"),n=ra("iRoYq"),i=ra("2TFYf"),o=i.re,s=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let t;for(;(t=o[s.COERCERTL].exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&t.index+t[0].length===i.index+i[0].length||(i=t),o[s.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[s.COERCERTL].lastIndex=-1}else i=e.match(o[s.COERCE]);return null===i?null:n(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,t)}}),ra.register("iRoYq",(e,t)=>{var r=ra("jrxSU");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}}),ra.register("7DjgM",(e,t)=>{var r=ra("iRoYq");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null}}),ra.register("3fAZo",(e,t)=>{e.exports=Promise.resolve(require("./actions_python.afe32222.js")).then(()=>ra("8MXq9"))}),ra.register("lbsU5",(e,t)=>{var r=ra("jrxSU");e.exports=(e,t)=>new r(e,t).major}),rl=ra("2W4C2"),rc=ra("7Lz0k"),ru=ra("b9BRc"),(()=>{ra("9tC1p").addLocale("en",e=>{var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other"})}).call(rd={}),rp={},rp=ra("5cIV4"),rf={},rf={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rm={};const ov=op.homedir();rm=e=>{if("string"!=typeof e)throw TypeError("Expected a string, got "+typeof e);return ov?e.replace(/^~(?=$|\/|\\)/,ov):e},rh="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==ri?ri:{},rg={},rE={},null==(rv=rh.parcelRequireb51e)&&((rv=e=>{if(e in rg)return rg[e].exports;if(e in rE){var t=rE[e];delete rE[e];var r={id:e,exports:{}};return rg[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{rE[e]=t},rh.parcelRequireb51e=rv),rv.register("djkmR",(e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1})(t,r)}function n(e,t,n){(0,om.stat)(e,(i,o)=>{n(i,!i&&r(o,e,t))})}e.exports=n,n.sync=(e,t)=>r((0,om.statSync)(e),e,t)}),rv.register("e1CjR",(e,t)=>{function r(e,t,r){(0,om.stat)(e,(e,i)=>{r(e,!e&&n(i,t))})}function n(e,t){var r,n,i,o,s,a,l;return e.isFile()&&(r=e.mode,n=e.uid,i=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),l=parseInt("010",8),r&parseInt("001",8)||r&l&&i===s||r&a&&n===o||r&(a|l)&&0===o)}e.exports=r,r.sync=(e,t)=>n((0,om.statSync)(e),t)}),rv.register("4c98W",(e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),f(ry={},"hasSudo",()=>x),f(ry,"isRoot",()=>w),f(ry,"isSudo",()=>b),f(ry,"prependSudo",()=>S),f(ry,"execRootSync",()=>I),f(ry,"execRoot",()=>O),rx={};const oy="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,ox=oy?";":":";rb={},rw=rv("win32"===process.platform||rh.TESTING_WINDOWS?"djkmR":"e1CjR"),rb=m,m.sync=(e,t)=>{try{return rw.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const ow=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ob=(e,t)=>{let r=t.colon||ox,n=e.match(/\//)||oy&&e.match(/\\/)?[""]:[...oy?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=oy?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=oy?i.split(r):[""];return oy&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i}},oS=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=ob(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ow(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=(0,of.join)(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(d,r,0))}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let d=i[n];rb(e+d,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+d);s.push(e+d)}return c(l(e,r,n+1))})});return r?a(0).then(e=>r(null,e),r):a(0)};rx=oS,oS.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=ob(e,t),o=[];for(let s=0;r.length>s;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=(0,of.join)(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;n.length>e;e++){let r=u+n[e];try{if(rb.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw ow(e)},rI={},rO={},rR={},rT={};const oI=(e={})=>{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};(rT=oI).default=oI,rS=e=>h(e)||h(e,!0),rC=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),r_=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e),rP=(e="")=>{let t=e.match(/^#!(.*)/);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i},rA=e=>{let t;let r=Buffer.alloc(150);try{t=(0,om.openSync)(e,"r"),(0,om.readSync)(t,r,0,150,0),(0,om.closeSync)(t)}catch(e){}return rP(""+r)};const oO="win32"===process.platform;rR=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!oO)return e;let t=(e=>{e.file=rS(e);let t=e.file&&rA(e.file);return t?(e.args.unshift(e.file),e.command=t,rS(e)):e.file})(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=(0,of.normalize)(e.command),e.command=rC(e.command),e.args=e.args.map(e=>r_(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)},rL={};const oR="win32"===process.platform;rL={hookChildProcess(e,t){if(!oR)return;let r=e.emit;e.emit=(n,i)=>{if("exit"===n){let n=E(i,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:E,verifyENOENTSync:(e,t)=>oR&&1===e&&!t.file?g(t.original,"spawnSync"):null,notFoundError:g},(rO=v).spawn=v,rO.sync=(e,t,r)=>{let n=rR(e,t,r),i=(0,t0.spawnSync)(n.command,n.args,n.options);return i.error=i.error||rL.verifyENOENTSync(i.status,n),i},rO._parse=rR,rO._enoent=rL,rN=e=>{let t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e},r$={};const oT=e=>{let t;e={cwd:process.cwd(),path:process.env[rT()],execPath:process.execPath,...e};let r=(0,of.resolve)(e.cwd),n=[];for(;t!==r;)n.push((0,of.join)(r,"node_modules/.bin")),t=r,r=(0,of.resolve)(r,"..");let i=(0,of.resolve)(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(of.delimiter)};(r$=oT).default=oT,r$.env=e=>{let t={...(e={env:process.env,...e}).env},r=rT({env:t});return e.path=t[r],t[r]=r$(e),t},rD={},rk={};const oC=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(rk=oC).default=oC;const o_=new WeakMap,oP=(e,t={})=>{if("function"!=typeof e)throw TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(o_.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return rk(o,e),o_.set(o,n),o};(rD=oP).default=oP,rD.callCount=e=>{if(!o_.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return o_.get(e)},Object.defineProperty(rU={},"__esModule",{value:!0}),rU.signalsByNumber=rU.signalsByName=void 0,Object.defineProperty(rM={},"__esModule",{value:!0}),rM.getSignals=void 0,Object.defineProperty(rG={},"__esModule",{value:!0}),rG.SIGNALS=void 0,rG.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Object.defineProperty(rF={},"__esModule",{value:!0}),rF.SIGRTMAX=rF.getRealtimeSignals=void 0,rF.getRealtimeSignals=()=>Array.from({length:oN-oL+1},oA);const oA=(e,t)=>({name:"SIGRT"+(t+1),number:oL+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oL=34,oN=64;rF.SIGRTMAX=oN,rM.getSignals=()=>{let e=(0,rF.getRealtimeSignals)();return[...rG.SIGNALS,...e].map(o$)};const o$=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=op.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},oD=(0,rM.getSignals)().reduce((e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}}),{});rU.signalsByName=oD;const ok=(()=>{let e=(0,rM.getSignals)(),t=Array.from({length:rF.SIGRTMAX+1},(t,r)=>((e,t)=>{let r=((e,t)=>{let r=t.find(({name:t})=>op.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e)})(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}}})(r,e));return Object.assign({},...t)})();rU.signalsByNumber=ok,rB=rU.signalsByName,rj=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:d}}})=>{let p=void 0===(i=null===i?void 0:i)?void 0:rB[i].description,f=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed")({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:p,exitCode:o=null===o?void 0:o,isCanceled:c}),m=`Command ${f}: ${s}`,h="[object Error]"===({}).toString.call(n),g=h?`${m}
|
|
${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return h?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=g,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n},rH={};const oj=["stdin","stdout","stderr"],oU=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oj.map(t=>e[t]);if(oj.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+oj.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oj.length)},(e,r)=>t[r])};(rH=oU).node=e=>{let t=oU(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},rV={},rX=rh.process;const oM=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(oM(rX)){var oG,oF=tQ,oB=rv("4c98W"),oH=/^win/i.test(rX.platform),oq=tY;"function"!=typeof oq&&(oq=oq.EventEmitter),rX.__signal_exit_emitter__?oG=rX.__signal_exit_emitter__:((oG=rX.__signal_exit_emitter__=new oq).count=0,oG.emitted={}),oG.infinite||(oG.setMaxListeners(1/0),oG.infinite=!0);var oV=()=>{oz&&oM(rh.process)&&(oz=!1,oB.forEach(e=>{try{rX.removeListener(e,oW[e])}catch(e){}}),rX.emit=oJ,rX.reallyExit=oY,oG.count-=1)};(rV=(e,t)=>{if(!oM(rh.process))return()=>{};oF.equal(typeof e,"function","a callback must be provided for exit handler"),!1===oz&&oK();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),oG.on(r,e),()=>{oG.removeListener(r,e),0===oG.listeners("exit").length&&0===oG.listeners("afterexit").length&&oV()}}).unload=oV;var oX=(e,t,r)=>{oG.emitted[e]||(oG.emitted[e]=!0,oG.emit(e,t,r))},oW={};oB.forEach(e=>{oW[e]=()=>{oM(rh.process)&&rX.listeners(e).length===oG.count&&(oV(),oX("exit",null,e),oX("afterexit",null,e),oH&&"SIGHUP"===e&&(e="SIGINT"),rX.kill(rX.pid,e))}}),rV.signals=()=>oB;var oz=!1,oK=()=>{!oz&&oM(rh.process)&&(oz=!0,oG.count+=1,oB=oB.filter(e=>{try{return rX.on(e,oW[e]),!0}catch(e){return!1}}),rX.emit=oZ,rX.reallyExit=oQ)};rV.load=oK;var oY=rX.reallyExit,oQ=e=>{oM(rh.process)&&(rX.exitCode=e||0,oX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),oY.call(rX,rX.exitCode))},oJ=rX.emit,oZ=function(e,t){if("exit"===e&&oM(rh.process)){void 0!==t&&(rX.exitCode=t);var r=oJ.apply(this,arguments);return oX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),r}return oJ.apply(this,arguments)}}else rV=()=>()=>{};const o0=e=>e===op.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();rz=(rq={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>o0(e)&&!1!==t&&r)(t,r,n))return;let i=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}))},t)}),s=n.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;let i=rV(()=>{e.kill()});return n.finally(()=>{i()})}}).spawnedKill,rK=rq.spawnedCancel,rY=rq.setupTimeout,rQ=rq.validateTimeout,rJ=rq.setExitHandler,rZ={};const o1=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;o1.writable=e=>o1(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,o1.readable=e=>o1(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,o1.duplex=e=>o1.writable(e)&&o1.readable(e),o1.transform=e=>o1.duplex(e)&&"function"==typeof e._transform,rZ=o1,r1={},r2=t4.constants,r4=t3.PassThrough,r0=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r4({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o};const o2=(0,tJ.promisify)(t3.pipeline);class o4 extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(r1=y).buffer=(e,t)=>y(e,{...t,encoding:"buffer"}),r1.array=(e,t)=>y(e,{...t,array:!0}),r1.MaxBufferError=o4,r6=t3.PassThrough,r3=()=>{function e(i){return Array.isArray(i)?(i.forEach(e),this):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1}),this)}function t(e){!(r=r.filter(t=>t!==e)).length&&n.readable&&n.end()}var r=[],n=new r6({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=()=>0==r.length,n.on("unpipe",t),[].slice.call(arguments).forEach(e),n};const o3=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},o6=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?r1(e,{encoding:t,maxBuffer:n}):r1.buffer(e,{maxBuffer:n})};r8=(rW={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(rZ(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;let r=r3();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s){let a=o6(e,{encoding:n,buffer:i,maxBuffer:o}),l=o6(t,{encoding:n,buffer:i,maxBuffer:o}),c=o6(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},o3(e,a),o3(t,l),o3(r,c)])}},validateInputSync({input:e}){if(rZ(e))throw TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,r9=rW.getSpawnedResult,r7=rW.makeAllStream,ne=rW.validateInputSync;const o5=(async()=>{})().constructor.prototype,o8=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(o5,e)]);nr=(r5={mergePromise(e,t){for(let[r,n]of o8){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r})}),e.on("error",e=>{r(e)}),e.stdin&&e.stdin.on("error",e=>{r(e)})})}).mergePromise,nn=r5.getSpawnedPromise;const o9=(e,t=[])=>Array.isArray(t)?[e,...t]:[e];ni=(nt={joinCommand:(e,t)=>o9(e,t).join(" "),getEscapedCommand:(e,t)=>o9(e,t).map(e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`).join(" "),parseCommand(e){let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,no=nt.parseCommand,ns=nt.getEscapedCommand;const o7=(e,t,r={})=>{let n=rO._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?r$.env({env:o,cwd:n,execPath:i}):o})(r),r.stdio=rH(r),"win32"===process.platform&&"cmd"===(0,of.basename)(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},se=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?rN(t):t:void 0===r?void 0:"",st=(e,t,r)=>{let n;let i=o7(e,t,r),o=ni(e,t),s=ns(e,t);rQ(i.options);try{n=(0,t0.spawn)(i.file,i.args,i.options)}catch(r){let e=new t0.ChildProcess,t=Promise.reject(rj({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return nr(e,t)}let a=nn(n),l=rY(n,i.options,a),c=rJ(n,i.options,l),u={isCanceled:!1};n.kill=rz.bind(null,n.kill.bind(n)),n.cancel=rK.bind(null,n,u);let d=rD(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,d,p]=await r9(n,i.options,c),f=se(i.options,l),m=se(i.options,d),h=se(i.options,p);if(e||0!==t||null!==r){let l=rj({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return r8(n,i.options.input),n.all=r7(n,i.options),nr(n,d)};"use strict";(rI=st).sync=(e,t,r)=>{let n;let i=o7(e,t,r),o=ni(e,t),s=ns(e,t);ne(i.options);try{n=(0,t0.spawnSync)(i.file,i.args,i.options)}catch(e){throw rj({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=se(i.options,n.stdout,n.error),l=se(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=rj({stdout:a,stderr:l,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},rI.command=(e,t)=>{let[r,...n]=no(e);return st(r,n,t)},rI.commandSync=(e,t)=>{let[r,...n]=no(e);return st.sync(r,n,t)},rI.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=rH.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return st(o,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},f(na={},"isAdminWindows",()=>sr),f(na,"isAdminPosix",()=>sn),f(na,"isAdmin",()=>R);const sr=async()=>{if("win32"!==d(t6).platform)return!1;try{return await p(rI)("fsutil",["dirty","query",d(t6).env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await p(rI)("fltmc"),!0}catch{return!1}})()}},sn=w;rc=ra("7Lz0k"),nl={},nc={};const si={},so=(e,t)=>{let r=si[e]||(si[e]=require(e));return t?r[t]:r},ss=(e,t,r)=>{Object.defineProperty(nc,e,{get(){let n=so(t,r);return Object.defineProperty(nc,e,{value:n,enumerable:!0,configurable:!0}),n},configurable:!0,enumerable:!0})};ss("re","./internal/re","re"),ss("src","./internal/re","src"),ss("tokens","./internal/re","t"),ss("SEMVER_SPEC_VERSION","./internal/constants","SEMVER_SPEC_VERSION"),ss("SemVer","./classes/semver"),ss("compareIdentifiers","./internal/identifiers","compareIdentifiers"),ss("rcompareIdentifiers","./internal/identifiers","rcompareIdentifiers"),ss("parse","./functions/parse"),ss("valid","./functions/valid"),ss("clean","./functions/clean"),ss("inc","./functions/inc"),ss("diff","./functions/diff"),ss("major","./functions/major"),ss("minor","./functions/minor"),ss("patch","./functions/patch"),ss("prerelease","./functions/prerelease"),ss("compare","./functions/compare"),ss("rcompare","./functions/rcompare"),ss("compareLoose","./functions/compare-loose"),ss("compareBuild","./functions/compare-build"),ss("sort","./functions/sort"),ss("rsort","./functions/rsort"),ss("gt","./functions/gt"),ss("lt","./functions/lt"),ss("eq","./functions/eq"),ss("neq","./functions/neq"),ss("gte","./functions/gte"),ss("lte","./functions/lte"),ss("cmp","./functions/cmp"),ss("coerce","./functions/coerce"),ss("Comparator","./classes/comparator"),ss("Range","./classes/range"),ss("satisfies","./functions/satisfies"),ss("toComparators","./ranges/to-comparators"),ss("maxSatisfying","./ranges/max-satisfying"),ss("minSatisfying","./ranges/min-satisfying"),ss("minVersion","./ranges/min-version"),ss("validRange","./ranges/valid"),ss("outside","./ranges/outside"),ss("gtr","./ranges/gtr"),ss("ltr","./ranges/ltr"),ss("intersects","./ranges/intersects"),nu=C(t6),nd=C(nc),np=C(op),nf=C(of),nm=C(om),nh=C(oE),ng=nu.default.env.npm_package_json,nv=!!((nE=nu.default.env.npm_config_user_agent)&&nE.startsWith("npm")),ny=!!(ng&&ng.endsWith("package.json")),nx=!!(nE&&nE.startsWith("yarn")),nw=nv||ny||nx,nb=np.default.homedir(),nS=process.env.XDG_CONFIG_HOME||nf.default.join(nb,".config","simple-update-notifier"),nI=e=>nf.default.join(nS,"".concat(e.replace("@","").replace("/","__"),".json")),nO=()=>{nm.default.existsSync(nS)||nm.default.mkdirSync(nS,{recursive:!0})},nR=e=>{var t=nI(e);try{if(!nm.default.existsSync(t))return;return JSON.parse(nm.default.readFileSync(t,"utf8")).lastUpdateCheck}catch(e){return}},nT=e=>{var t=nI(e);nm.default.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}))},nC=(e,t)=>_(void 0,void 0,void 0,function(){var r;return P(this,n=>(r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise((e,n)=>{nh.default.get(r,r=>{var i="";r.on("data",e=>i+=e),r.on("end",()=>{try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r)}catch(e){n(Error("Could not parse version response"))}})}).on("error",e=>n(e))})]))}),n_=e=>{var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,s=e.alwaysRun,a=e.debug;return _(void 0,void 0,void 0,function(){var e,r;return P(this,i=>{switch(i.label){case 0:if(nO(),e=nR(t.name),!(s||!e||e<new Date().getTime()-n))return[3,2];return[4,nC(t.name,o)];case 1:if(r=i.sent(),nT(t.name),nd.default.gt(r,t.version))return[2,r];return a&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3];case 2:a&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),i.label=3;case 3:return[2,!1]}})})},nP=e=>{for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(e=>e.length)),n=["┌".concat("─".repeat(r+2),"┐")],i=0;i<t.length;i++){var o=t[i];n.push("│ ".concat(o.padEnd(r)," │"))}return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n")},nl=e=>_(void 0,void 0,void 0,function(){var t,r;return P(this,n=>{switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||nw&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,n_(e)];case 2:return(t=n.sent())&&console.error(nP("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2]}})}),nA={},nA=JSON.parse('{"name":"setup-cpp","version":"0.28.0"}'),nL=ra("i5trn"),rc=ra("7Lz0k"),nL=ra("i5trn"),rc=ra("7Lz0k"),nN=ra("eq4yW"),n$={};const sa="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,sl=sa?";":":";"use strict";"use strict";"use strict";"use strict";"use strict";nD={},nk="win32"===process.platform||ri.TESTING_WINDOWS?ra("cCOdx"):ra("fHi41"),nD=N,N.sync=(e,t)=>{try{return nk.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const sc=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),su=(e,t)=>{let r=t.colon||sl,n=e.match(/\//)||sa&&e.match(/\\/)?[""]:[...sa?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],i=sa?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=sa?i.split(r):[""];return sa&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i}},sd=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=su(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(sc(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=of.join(c,e),d=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;i(l(d,r,0))}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let d=i[n];nD(e+d,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+d);s.push(e+d)}return c(l(e,r,n+1))})});return r?a(0).then(e=>r(null,e),r):a(0)};"use strict";n$=sd,sd.sync=(e,t)=>{t=t||{};let{pathEnv:r,pathExt:n,pathExtExe:i}=su(e,t),o=[];for(let s=0;s<r.length;s++){let a=r[s],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=of.join(l,e),u=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let e=0;e<n.length;e++){let r=u+n[e];try{let e=nD.sync(r,{pathExt:i});if(e){if(!t.all)return r;o.push(r)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sc(e)},nj={},nU={},nM={},nG={},nF={};const sp=(e={})=>{let t=e.env||process.env,r=e.platform||process.platform;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};"use strict";"use strict";"use strict";(nF=sp).default=sp,nG=e=>$(e)||$(e,!0);"use strict";nB=e=>e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),nH=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e),nq={},nV={},nX={},nX=/^#!(.*)/,nV=(e="")=>{let t=e.match(nX);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i},nq=e=>{let t;let r=Buffer.alloc(150);try{t=om.openSync(e,"r"),om.readSync(t,r,0,150,0),om.closeSync(t)}catch(e){}return nV(r.toString())};const sf="win32"===process.platform;"use strict";"use strict";nM=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null),t=t?t.slice(0):[],r=Object.assign({},r);let n={command:e,args:t,options:r,file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!sf)return e;let t=(e=>{e.file=nG(e);let t=e.file&&nq(e.file);return t?(e.args.unshift(e.file),e.command=t,nG(e)):e.file})(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=of.normalize(e.command),e.command=nB(e.command),e.args=e.args.map(e=>nH(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(n)},nW={};const sm="win32"===process.platform;"use strict";"use strict";nW={hookChildProcess(e,t){if(!sm)return;let r=e.emit;e.emit=(n,i)=>{if("exit"===n){let n=k(i,t,"spawn");if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:k,verifyENOENTSync:(e,t)=>sm&&1===e&&!t.file?D(t.original,"spawnSync"):null,notFoundError:D},(nU=j).spawn=j,nU.sync=(e,t,r)=>{let n=nM(e,t,r),i=t0.spawnSync(n.command,n.args,n.options);return i.error=i.error||nW.verifyENOENTSync(i.status,n),i},nU._parse=nM,nU._enoent=nW,nz={},nz=e=>{let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e},nK={};const sh=e=>{let t;e={cwd:process.cwd(),path:process.env[nF()],execPath:process.execPath,...e};let r=of.resolve(e.cwd),n=[];for(;t!==r;)n.push(of.join(r,"node_modules/.bin")),t=r,r=of.resolve(r,"..");let i=of.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(of.delimiter)};(nK=sh).default=sh,nK.env=e=>{e={env:process.env,...e};let t={...e.env},r=nF({env:t});return e.path=t[r],t[r]=nK(e),t},nY={},nQ={};const sg=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};"use strict";"use strict";"use strict";"use strict";(nQ=sg).default=sg;const sE=new WeakMap,sv=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(sE.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return nQ(o,e),sE.set(o,n),o};"use strict";(nY=sv).default=sv,nY.callCount=e=>{if(!sE.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return sE.get(e)},nJ={},Object.defineProperty(nZ={},"__esModule",{value:!0}),nZ.signalsByNumber=nZ.signalsByName=void 0,Object.defineProperty(n0={},"__esModule",{value:!0}),n0.getSignals=void 0,Object.defineProperty(n1={},"__esModule",{value:!0}),n1.SIGNALS=void 0,n1.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],Object.defineProperty(n2={},"__esModule",{value:!0}),n2.SIGRTMAX=n2.getRealtimeSignals=void 0,n2.getRealtimeSignals=()=>Array.from({length:sw-sx+1},sy);const sy=(e,t)=>({name:"SIGRT"+(t+1),number:sx+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),sx=34,sw=64;n2.SIGRTMAX=sw,n0.getSignals=()=>{let e=(0,n2.getRealtimeSignals)(),t=[...n1.SIGNALS,...e].map(sb);return t};const sb=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=op.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},sS=(e,{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:i,action:o,forced:s,standard:a}}),sI=(()=>{let e=(0,n0.getSignals)();return e.reduce(sS,{})})();nZ.signalsByName=sI;const sO=(e,t)=>{let r=sR(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}}},sR=(e,t)=>{let r=t.find(({name:t})=>op.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e)},sT=(()=>{let e=(0,n0.getSignals)(),t=n2.SIGRTMAX+1,r=Array.from({length:t},(t,r)=>sO(r,e));return Object.assign({},...r)})();"use strict";nZ.signalsByNumber=sT,n4=nZ.signalsByName;const sC=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed";"use strict";nJ=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:d}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let p=void 0===i?void 0:n4[i].description,f=n&&n.code,m=sC({timedOut:l,timeout:d,errorCode:f,signal:i,signalDescription:p,exitCode:o,isCanceled:c}),h=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${h}
|
|
${n.message}`:h,v=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n},n3={};const s_=["stdin","stdout","stderr"],sP=e=>s_.some(t=>void 0!==e[t]),sA=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return s_.map(t=>e[t]);if(sP(e))throw Error("It's not possible to provide `stdio` in combination with one of "+s_.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,s_.length);return Array.from({length:r},(e,r)=>t[r])};(n3=sA).node=e=>{let t=sA(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},n6={},n5={},n8=ri.process;const sL=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(sL(n8)){var sN,s$=tQ,sD=ra("5AOH8"),sk=/^win/i.test(n8.platform),sj=tY;"function"!=typeof sj&&(sj=sj.EventEmitter),n8.__signal_exit_emitter__?sN=n8.__signal_exit_emitter__:((sN=n8.__signal_exit_emitter__=new sj).count=0,sN.emitted={}),sN.infinite||(sN.setMaxListeners(1/0),sN.infinite=!0);var sU=()=>{sF&&sL(ri.process)&&(sF=!1,sD.forEach(e=>{try{n8.removeListener(e,sG[e])}catch(e){}}),n8.emit=sV,n8.reallyExit=sH,sN.count-=1)};(n5=(e,t)=>{if(!sL(ri.process))return()=>{};s$.equal(typeof e,"function","a callback must be provided for exit handler"),!1===sF&&sB();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),sN.on(r,e),()=>{sN.removeListener(r,e),0===sN.listeners("exit").length&&0===sN.listeners("afterexit").length&&sU()}}).unload=sU;var sM=(e,t,r)=>{sN.emitted[e]||(sN.emitted[e]=!0,sN.emit(e,t,r))},sG={};sD.forEach(e=>{sG[e]=()=>{sL(ri.process)&&n8.listeners(e).length===sN.count&&(sU(),sM("exit",null,e),sM("afterexit",null,e),sk&&"SIGHUP"===e&&(e="SIGINT"),n8.kill(n8.pid,e))}}),n5.signals=()=>sD;var sF=!1,sB=()=>{!sF&&sL(ri.process)&&(sF=!0,sN.count+=1,sD=sD.filter(e=>{try{return n8.on(e,sG[e]),!0}catch(e){return!1}}),n8.emit=sX,n8.reallyExit=sq)};n5.load=sB;var sH=n8.reallyExit,sq=e=>{sL(ri.process)&&(n8.exitCode=e||0,sM("exit",n8.exitCode,null),sM("afterexit",n8.exitCode,null),sH.call(n8,n8.exitCode))},sV=n8.emit,sX=function(e,t){if(!("exit"===e&&sL(ri.process)))return sV.apply(this,arguments);void 0!==t&&(n8.exitCode=t);var r=sV.apply(this,arguments);return sM("exit",n8.exitCode,null),sM("afterexit",n8.exitCode,null),r}}else n5=()=>()=>{};"use strict";"use strict";const sW=(e,t,r,n)=>{if(!sz(t,r,n))return;let i=sY(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},sz=(e,{forceKillAfterTimeout:t},r)=>sK(e)&&!1!==t&&r,sK=e=>e===op.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),sY=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},sQ=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},sJ=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=n5(()=>{e.kill()});return n.finally(()=>{i()})};"use strict";"use strict";n9=(n6={spawnedKill(e,t="SIGTERM",r={}){let n=e(t);return sW(e,t,r,n),n},spawnedCancel(e,t){let r=e.kill();r&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{sQ(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:sJ}).spawnedKill,n7=n6.spawnedCancel,ie=n6.setupTimeout,it=n6.validateTimeout,ir=n6.setExitHandler,ii={},io={};const sZ=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;sZ.writable=e=>sZ(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,sZ.readable=e=>sZ(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,sZ.duplex=e=>sZ.writable(e)&&sZ.readable(e),sZ.transform=e=>sZ.duplex(e)&&"function"==typeof e._transform,io=sZ,is={},ia=t4.constants,il=tJ.promisify,ic={},iu=t3.PassThrough,ic=e=>{e={...e};let{array:t}=e,{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new iu({objectMode:i});r&&o.setEncoding(r);let s=0,a=[];return o.on("data",e=>{a.push(e),i?s=a.length:s+=e.length}),o.getBufferedValue=()=>t?a:n?Buffer.concat(a,s):a.join(""),o.getBufferedLength=()=>s,o};const s0=il(t3.pipeline);class s1 extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}"use strict";"use strict";(is=U).buffer=(e,t)=>U(e,{...t,encoding:"buffer"}),is.array=(e,t)=>U(e,{...t,array:!0}),is.MaxBufferError=s1,id={},ip=t3.PassThrough,id=()=>{function e(i){return Array.isArray(i)?(i.forEach(e),this):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1}),this)}function t(e){!(r=r.filter(t=>t!==e)).length&&n.readable&&n.end()}var r=[],n=new ip({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=()=>0==r.length,n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n};const s2=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},s4=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?is(e,{encoding:t,maxBuffer:n}):is.buffer(e,{maxBuffer:n})},s3=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=s4(e,{encoding:n,buffer:i,maxBuffer:o}),l=s4(t,{encoding:n,buffer:i,maxBuffer:o}),c=s4(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},s2(e,a),s2(t,l),s2(r,c)])}};"use strict";im=(ii={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(io(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;let r=id();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},getSpawnedResult:s3,validateInputSync({input:e}){if(io(e))throw TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,ih=ii.getSpawnedResult,ig=ii.makeAllStream,iE=ii.validateInputSync,iv={};const s6=(async()=>{})().constructor.prototype,s5=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(s6,e)]);iy=(iv={mergePromise(e,t){for(let[r,n]of s5){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}return e},getSpawnedPromise:e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r})}),e.on("error",e=>{r(e)}),e.stdin&&e.stdin.on("error",e=>{r(e)})})}).mergePromise,ix=iv.getSpawnedPromise,iw={};const s8=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],s9=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`;ib=(iw={joinCommand:(e,t)=>s8(e,t).join(" "),getEscapedCommand:(e,t)=>s8(e,t).map(e=>s9(e)).join(" "),parseCommand(e){let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,iS=iw.parseCommand,iI=iw.getEscapedCommand;const s7=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...process.env,...e}:e;return r?nK.env({env:o,cwd:n,execPath:i}):o},ae=(e,t,r={})=>{let n=nU._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=s7(r),r.stdio=n3(r),"win32"===process.platform&&"cmd"===of.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},at=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?nz(t):t:void 0===r?void 0:"",ar=(e,t,r)=>{let n;let i=ae(e,t,r),o=ib(e,t),s=iI(e,t);it(i.options);try{n=t0.spawn(i.file,i.args,i.options)}catch(r){let e=new t0.ChildProcess,t=Promise.reject(nJ({error:r,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return iy(e,t)}let a=ix(n),l=ie(n,i.options,a),c=ir(n,i.options,l),u={isCanceled:!1};n.kill=n9.bind(null,n.kill.bind(n)),n.cancel=n7.bind(null,n,u);let d=async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,d,p]=await ih(n,i.options,c),f=at(i.options,l),m=at(i.options,d),h=at(i.options,p);if(e||0!==t||null!==r){let l=nJ({error:e,exitCode:t,signal:r,stdout:f,stderr:m,all:h,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:n.killed});if(!i.options.reject)return l;throw l}return{command:o,escapedCommand:s,exitCode:0,stdout:f,stderr:m,all:h,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},p=nY(d);return im(n,i.options.input),n.all=ig(n,i.options),iy(n,p)};(nj=ar).sync=(e,t,r)=>{let n;let i=ae(e,t,r),o=ib(e,t),s=iI(e,t);iE(i.options);try{n=t0.spawnSync(i.file,i.args,i.options)}catch(e){throw nJ({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}let a=at(i.options,n.stdout,n.error),l=at(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=nJ({stdout:a,stderr:l,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:s,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:l,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},nj.command=(e,t)=>{let[r,...n]=iS(e);return ar(r,n,t)},nj.commandSync=(e,t)=>{let[r,...n]=iS(e);return ar.sync(r,n,t)},nj.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);let n=n3.node(r),i=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:o=process.execPath,nodeOptions:s=i}=r;return ar(o,[...s,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})},M(iO={},"hasSudo",()=>G),M(iO,"isRoot",()=>F),M(iO,"isSudo",()=>B),M(iO,"prependSudo",()=>H),M(iO,"execRootSync",()=>q),M(iO,"execRoot",()=>V),M(iR={},"isAdminWindows",()=>an),M(iR,"isAdminPosix",()=>ai),M(iR,"isAdmin",()=>X);const an=async()=>{if("win32"!==process.platform)return!1;try{return await d(nj)("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await d(nj)("fltmc"),!0}catch{return!1}})()}},ai=F;rl=ra("2W4C2"),nL=ra("i5trn"),rl=ra("2W4C2"),rc=ra("7Lz0k");const ao=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(as(i,o)||!n)&&Object.defineProperty(e,r,o)},as=(e,t)=>void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value),aa=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r)},al=(e,t)=>`/* Wrapped ${e}*/
|
|
${t}`,ac=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),au=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ad=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=al.bind(null,n,t.toString());Object.defineProperty(i,"name",au),Object.defineProperty(e,"toString",{...ac,value:i})},ap=new WeakMap,af=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(ap.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r};return((e,t,{ignoreNonConfigurable:r=!1}={})=>{let{name:n}=e;for(let n of Reflect.ownKeys(t))ao(e,t,n,r);return aa(e,t),ad(e,t,n)})(o,e),ap.set(o,n),o};af.callCount=e=>{if(!ap.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ap.get(e)},iT=af;const am=()=>Array.from({length:aE-ag+1},ah),ah=(e,t)=>({name:"SIGRT"+(t+1),number:ag+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ag=34,aE=64,av=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}],ay=()=>{let e=am(),t=[...av,...e].map(ax);return t},ax=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rt.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o}},aw=({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:s}],ab=(()=>{let e=ay();return Object.fromEntries(e.map(aw))})(),aS=(e,t)=>{let r=aI(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:s,forced:a,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:s,forced:a,standard:l}}},aI=(e,t)=>{let r=t.find(({name:t})=>rt.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e)};(()=>{let e=ay(),t=Array.from({length:aE+1},(t,r)=>aS(r,e));return Object.assign({},...t)})();const aO=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",aR=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:d}}})=>{o=null===o?void 0:o,i=null===i?void 0:i;let p=void 0===i?void 0:ab[i].description,f=n&&n.code,m=aO({timedOut:l,timeout:d,errorCode:f,signal:i,signalDescription:p,exitCode:o,isCanceled:c}),h=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${h}
|
|
${n.message}`:h,v=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n},aT=["stdin","stdout","stderr"],aC=e=>aT.some(t=>void 0!==e[t]),a_=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return aT.map(t=>e[t]);if(aC(e))throw Error("It's not possible to provide `stdio` in combination with one of "+aT.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let r=Math.max(t.length,aT.length);return Array.from({length:r},(e,r)=>t[r])},aP=(e,t="SIGTERM",r={})=>{let n=e(t);return aA(e,t,r,n),n},aA=(e,t,r,n)=>{if(!aL(t,r,n))return;let i=a$(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},aL=(e,{forceKillAfterTimeout:t},r)=>aN(e)&&!1!==t&&r,aN=e=>e===d(rt).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),a$=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},aD=(e,t)=>{let r=e.kill();r&&(t.isCanceled=!0)},ak=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},aj=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;if(0===t||void 0===t)return n;let o=new Promise((n,o)=>{i=setTimeout(()=>{ak(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});return Promise.race([o,s])},aU=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},aM=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=d(n5)(()=>{e.kill()});return n.finally(()=>{i()})},aG=e=>e instanceof t9.ChildProcess&&"function"==typeof e.then,aF=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,tZ.createWriteStream)(r)),e;if(K(r))return e[t].pipe(r),e;if(!aG(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!K(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r},aB=e=>{null!==e.stdout&&(e.pipeStdout=aF.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=aF.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=aF.bind(void 0,e,"all"))},aH=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.")},aq=({input:e,inputFile:t})=>"string"!=typeof t?e:(aH(e),(0,tZ.readFileSync)(t)),aV=e=>{let t=aq(e);if(z(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t},aX=({input:e,inputFile:t})=>"string"!=typeof t?e:(aH(e),(0,tZ.createReadStream)(t)),aW=(e,t)=>{let r=aX(t);void 0!==r&&(z(r)?r.pipe(e.stdin):e.stdin.end(r))},az=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=d(id)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},aK=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t}catch(e){return e.bufferedData}}},aY=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?d(is)(e,{encoding:t,maxBuffer:n}):d(is).buffer(e,{maxBuffer:n})},aQ=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=aY(e,{encoding:n,buffer:i,maxBuffer:o}),l=aY(t,{encoding:n,buffer:i,maxBuffer:o}),c=aY(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([s,a,l,c])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},aK(e,a),aK(t,l),aK(r,c)])}},aJ=(async()=>{})().constructor.prototype,aZ=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(aJ,e)]),a0=(e,t)=>{for(let[r,n]of aZ){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},a1=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r})}),e.on("error",e=>{r(e)}),e.stdin&&e.stdin.on("error",e=>{r(e)})}),a2=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],a4=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,a3=(e,t)=>a2(e,t).join(" "),a6=(e,t)=>a2(e,t).map(e=>a4(e)).join(" "),a5=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof t9.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,t5.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`)}throw TypeError(`Unexpected "${t}" in template expression`)},a8=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],a9=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=o.split(/ +/g).filter(Boolean),a=a8(r,s,o.startsWith(" "));if(n===t.length)return a;let l=t[n],c=Array.isArray(l)?l.map(e=>a5(e)):[a5(l)];return a8(a,c,o.endsWith(" "))},a7=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=a9({templates:e,expressions:t,tokens:r,index:n,template:i});return r},le=(0,rr.debuglog)("execa").enabled,lt=(e,t)=>(e+"").padStart(t,"0"),lr=()=>{let e=new Date;return`${lt(e.getHours(),2)}:${lt(e.getMinutes(),2)}:${lt(e.getSeconds(),2)}.${lt(e.getMilliseconds(),3)}`},ln=(e,{verbose:t})=>{t&&d(t7).stderr.write(`[${lr()}] ${e}
|
|
`)},li=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...d(t7).env,...e}:e;return r?(({env:e=d(t7).env,...t}={})=>{e={...e};let r=W({env:e});return t.path=e[r],e[r]=((e={})=>{let t;let{cwd:r=d(t7).cwd(),path:n=d(t7).env[W()],execPath:i=d(t7).execPath}=e,o=r instanceof URL?d(re).fileURLToPath(r):r,s=d(t8).resolve(o),a=[];for(;t!==s;)a.push(d(t8).join(s,"node_modules/.bin")),t=s,s=d(t8).resolve(s,"..");return a.push(d(t8).resolve(o,i,"..")),[...a,n].join(d(t8).delimiter)})(t),e})({env:o,cwd:n,execPath:i}):o},lo=(e,t,r={})=>{let n=d(nU)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||d(t7).cwd(),execPath:d(t7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:le,...r}).env=li(r),r.stdio=a_(r),"win32"===d(t7).platform&&"cmd"===d(t8).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},ls=(e,t,r)=>"string"==typeof t||(0,t5.Buffer).isBuffer(t)?e.stripFinalNewline?(e=>{let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e})(t):t:void 0===r?void 0:"",la=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},ll=(e={})=>({preferLocal:!0,...la(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=a7(n,i);return Y(o,s,ll(t))}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=a7(e,r);return Q(n,i,ll(t))},r}(),iC={};const lc="win32"!==op.platform(),lu=op.release(),ld=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;iC=e=>lc?e.replace(/(\s+)/g,"\\$1"):ld(.../(\d+\.\d+)\.(\d+)/.exec(lu).splice(1))?e:e.replace(/(\s+)/g,"%20"),(()=>{var e,t;e=ra("bmInQ"),t=e=>e.split("").reverse().join(""),i_=(r,n,i)=>{var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)))}}).call(i_={}),iP=ra("bOuKS");const lp=T(".cpprc");let lf=!1;iA={},iL=of.join,iN=of.delimiter,i$=of.sep,iD=of.posix;const lm="win32"===process.platform,lh=new RegExp(`[${iD.sep}${i$===iD.sep?"":i$}]`.replace(/(\\)/g,"\\$1")),lg=RegExp("^\\."+lh.source),lE=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),lv=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=iN})=>{let i=e.match(lh)?[""]:[...lm?[process.cwd()]:[],...(t||"").split(n)];if(lm){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t}}return{pathEnv:i,pathExt:[""]}},ly=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&lg.test(t)?t.slice(0,2):"";return n+iL(r,t)},lx=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lv(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=await nD(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw lE(e)};iA=lx,lx.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lv(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=nD.sync(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n)}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw lE(e)},iP=ra("bOuKS"),ik=ra("3cGqJ"),rc=ra("7Lz0k");const{appendFile:lw}=om.promises;let lb=!1,lS=!1;nL=ra("i5trn"),nN=ra("eq4yW"),nN=ra("eq4yW"),ij=ra("jtqY0");let lI=!1;iP=ra("bOuKS"),nN=ra("eq4yW"),nL=ra("i5trn"),rc=ra("7Lz0k");let lO=!1;rc=ra("7Lz0k"),rc=ra("7Lz0k");let lR=!1,lT=!1;"use strict";const lC=/Version\s*:\s*(.*)/g;"use strict";iU={},iM=of.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),iG=iU&&iU.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),iF=iU&&iU.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),iB=iU&&iU.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&iG(t,e,r);return iF(t,e),t}),iH=iU&&iU.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),iq=iU&&iU.__importDefault||(e=>e&&e.__esModule?e:{default:e}),Object.defineProperty(iU,"__esModule",{value:!0}),iU.evaluateVersions=iU.isExplicitVersion=iU.findFromManifest=iU.getManifestFromRepo=iU.findAllVersions=iU.find=iU.cacheFile=iU.cacheDir=iU.extractZip=iU.extractXar=iU.extractTar=iU.extract7z=iU.downloadTool=iU.HTTPError=void 0;const l_=iB(ra("i5trn")),lP=iB(ra("jtqY0")),lA=iB(om),lL=iB(ra("d0IR9")),lN=iB(op),l$=iB(of),lD=iB(ra("6xPYX")),lk=iB(ra("df8HD")),lj=iB(t3),lU=iB(tJ),lM=iq(ra("1NS6t"));iV=ra("8hZvX"),iW=(iX={}).__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),iz=iX&&iX.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),iK=iX&&iX.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&iW(t,e,r);return iz(t,e),t}),iY=iX&&iX.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),Object.defineProperty(iX,"__esModule",{value:!0}),iX.RetryHelper=void 0;const lG=iK(ra("i5trn"));iX.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds")}execute(e,t){return iY(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{break}catch(e){if(t&&!t(e))throw e;lG.info(e.message)}let e=this.getSleepAmount();lG.info(`Waiting ${e} seconds before trying again`),yield this.sleep(e),r++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return iY(this,void 0,void 0,*()=>new Promise(t=>setTimeout(t,1e3*e)))}};class lF extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}"use strict";iU.HTTPError=lF;const lB="win32"===process.platform,lH="darwin"===process.platform;iU.downloadTool=function(e,t,r,n){return iH(this,void 0,void 0,function*(){t=t||l$.join(eN(),lM.default()),yield lP.mkdirP(l$.dirname(t)),l_.debug("Downloading "+e),l_.debug("Destination "+t);let i=e$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=e$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new iX.RetryHelper(3,i,o);return yield s.execute(()=>iH(this,void 0,void 0,*()=>yield function(e,t,r,n){return iH(this,void 0,void 0,*()=>{if(lA.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new lD.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(l_.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new lF(o.message.statusCode);throw l_.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t}let s=lU.promisify(lj.pipeline),a=e$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message),l=a(),c=!1;try{return yield s(l,lA.createWriteStream(t)),l_.debug("download complete"),c=!0,t}finally{if(!c){l_.debug("download failed");try{yield lP.rmRF(t)}catch(e){l_.debug(`Failed to delete '${t}'. ${e.message}`)}}}})}(e,t||"",r,n)),e=>!(e instanceof lF)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode)})},iU.extract7z=function(e,t,r){return iH(this,void 0,void 0,*()=>{tQ.ok(lB,"extract7z() not supported on current OS"),tQ.ok(e,'parameter "file" is required'),t=yield eT(t);let n=process.cwd();if(process.chdir(t),r)try{let t=l_.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield iV.exec(`"${r}"`,n,{silent:!0})}finally{process.chdir(n)}else{let r=l$.join(iM,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield lP.which("powershell",!0);yield iV.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0})}finally{process.chdir(n)}}return t})},iU.extractTar=function(e,t,r="xz"){return iH(this,void 0,void 0,*()=>{let n;if(!e)throw Error("parameter 'file' is required");t=yield eT(t),l_.debug("Checking tar --version");let i="";yield iV.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),l_.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],l_.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return lB&&o&&(n.push("--force-local"),s=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",s,"-f",a),yield iV.exec("tar",n),t})},iU.extractXar=function(e,t,r=[]){return iH(this,void 0,void 0,*()=>{let n;tQ.ok(lH,"extractXar() not supported on current OS"),tQ.ok(e,'parameter "file" is required'),t=yield eT(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),l_.isDebug()&&n.push("-v");let i=yield lP.which("xar",!0);return yield iV.exec(`"${i}"`,Array.from(new Set(n))),t})},iU.extractZip=function(e,t){return iH(this,void 0,void 0,*()=>{if(!e)throw Error("parameter 'file' is required");return t=yield eT(t),lB?yield function(e,t){return iH(this,void 0,void 0,*()=>{let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield lP.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`,t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];l_.debug("Using pwsh at path: "+i),yield iV.exec(`"${i}"`,t)}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e],i=yield lP.which("powershell",!0);l_.debug("Using powershell at path: "+i),yield iV.exec(`"${i}"`,t)}})}(e,t):yield function(e,t){return iH(this,void 0,void 0,*()=>{let r=yield lP.which("unzip",!0),n=[e];l_.isDebug()||n.unshift("-q"),n.unshift("-o"),yield iV.exec(`"${r}"`,n,{cwd:t})})}(e,t),t})},iU.cacheDir=function(e,t,r,n){return iH(this,void 0,void 0,*()=>{if(r=lk.clean(r)||r,n=n||lN.arch(),l_.debug(`Caching tool ${t} ${r} ${n}`),l_.debug("source dir: "+e),!lA.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eC(t,r,n);for(let t of lA.readdirSync(e)){let r=l$.join(e,t);yield lP.cp(r,i,{recursive:!0})}return e_(t,r,n),i})},iU.cacheFile=function(e,t,r,n,i){return iH(this,void 0,void 0,*()=>{if(n=lk.clean(n)||n,i=i||lN.arch(),l_.debug(`Caching tool ${r} ${n} ${i}`),l_.debug("source file: "+e),!lA.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eC(r,n,i),s=l$.join(o,t);return l_.debug("destination file "+s),yield lP.cp(e,s),e_(r,n,i),o})},iU.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");if(r=r||lN.arch(),!eP(t)){let n=eR(e,r),i=eA(n,t);t=i}let n="";if(t){t=lk.clean(t)||"";let i=l$.join(eL(),e,t,r);l_.debug("checking cache: "+i),lA.existsSync(i)&&lA.existsSync(`${i}.complete`)?(l_.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):l_.debug("not found")}return n},iU.findAllVersions=eR,iU.getManifestFromRepo=function(e,t,r,n="master"){return iH(this,void 0,void 0,*()=>{let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new lD.HttpClient("tool-cache"),a={};r&&(l_.debug("set auth"),a.authorization=r);let l=yield s.getJson(o,a);if(!l.result)return i;let c="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){c=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield s.get(c,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{i=JSON.parse(u)}catch(e){l_.debug("Invalid json")}}return i})},iU.findFromManifest=function(e,t,r,n=lN.arch()){return iH(this,void 0,void 0,*()=>{let i=yield lL._findMatch(e,t,r,n);return i})},iU.isExplicitVersion=eP,iU.evaluateVersions=eA,iQ=ra("8Y9LU"),iJ=ra("Fj3X5"),nN=ra("eq4yW"),rc=ra("7Lz0k"),rl=ra("2W4C2"),iP=ra("bOuKS"),Object.defineProperty(iZ={},"__esModule",{value:!0}),iZ.retryAsPromised=iZ.TimeoutError=void 0;class lq extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}iZ.TimeoutError=lq,iZ.retryAsPromised=eD,iZ.default=eD;let lV=!1;nN=ra("eq4yW"),ij=ra("jtqY0"),rc=ra("7Lz0k"),nL=ra("i5trn"),iP=ra("bOuKS"),nN=ra("eq4yW"),rl=ra("2W4C2"),rc=ra("7Lz0k"),nN=ra("eq4yW"),iV=ra("8hZvX"),i0=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rn.URL(t),!0}catch{return!1}},i1=async e=>{let t=i0(e);if(!t)return!1;let r=await eV(e,"HEAD");return!!r||!!(r=await eV(e,"GET"))},i2=ra("ac3Ml"),iJ=ra("Fj3X5"),i4=ra("7DjgM"),iV=ra("8hZvX"),rc=ra("7Lz0k");const lX=/v?(\d\S*)/,lW={llvm:eY(),clangtidy:eY(),clangformat:eY(),ninja:"1.11.1",cmake:"3.26.4",gcovr:"5.2",conan:"1.60.0",meson:"1.0.2",kcov:"41",task:"3.25.0",doxygen:ey()?"1.9.6-1":"1.9.7",gcc:ey()?"13.1.1-1":"13"},lz={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},llvm:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"5.2",20:"5.2",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let lK=!1;nN=ra("eq4yW"),rc=ra("7Lz0k"),iP=ra("bOuKS"),i3=ra("lbsU5"),iJ=ra("Fj3X5"),iV=ra("8hZvX"),rc=ra("7Lz0k"),nN=ra("eq4yW"),rc=ra("7Lz0k"),rl=ra("2W4C2"),iP=ra("bOuKS"),i6=of.resolve(__dirname,"../../src/gcc");const lY={13:{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};"use strict";i4=ra("7DjgM"),i3=ra("lbsU5"),nN=ra("eq4yW"),rc=ra("7Lz0k"),nN=ra("eq4yW"),i5=of.resolve(__dirname,"../../src/kcov"),nN=ra("eq4yW"),rc=ra("7Lz0k"),rl=ra("2W4C2"),iQ=ra("8Y9LU"),rc=ra("7Lz0k"),nN=ra("eq4yW");const lQ=(e=>{let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t})(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),lJ=new Set(["10.0.1","15.0.5","15.0.6"]),lZ=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4"]),l0=new Map,l1={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04"},l2="15.0.6";"use strict";"use strict";rc=ra("7Lz0k"),Object.defineProperty(i8={},"__esModule",{value:!0}),i8.getUbuntuVersion=void 0,i8.getUbuntuVersion=tw,iP=ra("bOuKS"),i9=of.resolve(__dirname,"../../src/llvm");let l4=!1;"use strict";on=(or={}).__awaiter||((e,t,r,n)=>new(r||(r=Promise))((i,o)=>{function s(e){try{l(n.next(e))}catch(e){o(e)}}function a(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})),oi=or&&or.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}),Object.defineProperty(or,"__esModule",{value:!0}),os=(oo={}).__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}),Object.defineProperty(oo,"__esModule",{value:!0});const l3=os(op);Object.defineProperty(oa={},"__esModule",{value:!0}),oa.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),oo.issueCommand=tP,oo.issue=(e,t="")=>{tP(e,{},t)};class l6{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${oa.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}return t+"::"+(e=this.message,oa.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))}}"use strict";oc=(ol={}).__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}),Object.defineProperty(ol,"__esModule",{value:!0});const l5=oc(om),l8=oc(op);ol.issueCommand=(e,t)=>{let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!l5.existsSync(r))throw Error("Missing file at path: "+r);l5.appendFileSync(r,`${oa.toCommandValue(t)}${l8.EOL}`,{encoding:"utf8"})};const l9=oi(op),l7=oi(of);(e=>{e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(ou=or.ExitCode||(or.ExitCode={})),or.exportVariable=(e,t)=>{let r=oa.toCommandValue(t);process.env[e]=r;let n=process.env.GITHUB_ENV||"";if(n){let t="_GitHubActionsFileCommandDelimeter_",n=`${e}<<${t}${l9.EOL}${r}${l9.EOL}${t}`;ol.issueCommand("ENV",n)}else oo.issueCommand("set-env",{name:e},r)},or.setSecret=e=>{oo.issueCommand("add-mask",{},e)},or.addPath=e=>{let t=process.env.GITHUB_PATH||"";t?ol.issueCommand("PATH",e):oo.issueCommand("add-path",{},e),process.env.PATH=`${e}${l7.delimiter}${process.env.PATH}`},or.getInput=(e,t)=>{let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return r.trim()},or.setOutput=(e,t)=>{oo.issueCommand("set-output",{name:e},t)},or.setCommandEcho=e=>{oo.issue("echo",e?"on":"off")},or.setFailed=e=>{process.exitCode=ou.Failure,tA(e)},or.isDebug=()=>"1"===process.env.RUNNER_DEBUG,or.debug=e=>{oo.issueCommand("debug",{},e)},or.error=tA,or.warning=e=>{oo.issue("warning",e instanceof Error?e.toString():e)},or.info=e=>{process.stdout.write(e+l9.EOL)},or.startGroup=tL,or.endGroup=tN,or.group=function(e,t){return on(this,void 0,void 0,*()=>{let r;tL(e);try{r=yield t()}finally{tN()}return r})},or.saveState=(e,t)=>{oo.issueCommand("save-state",{name:e},t)},or.getState=e=>process.env["STATE_"+e]||"";const ce=t6.env["ProgramFiles(x86)"],ct=[t6.env["ProgramFiles(x86)"],t6.env.ProgramFiles],cr=["Enterprise","Professional","Community"],cn=["2022","2019","2017"],ci={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};i7=t$;const co=`${ce}\\Microsoft Visual Studio\\Installer`;oe=tD,ot=(e,t,r,n,i,o)=>{if("win32"!=t6.platform){or.info("This is not a Windows virtual environment, bye!");return}t6.env.PATH+=of.delimiter+co;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase() in s&&(e=s[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==i&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tD(o)}" ${a.join(" ")}`;or.debug("vcvars command-line: "+l);let c=t0.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString(),u=c.split("\f"),d=u[0].split("\r\n"),p=u[1].split("\r\n"),f=u[2].split("\r\n"),m=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(m.length>0)throw Error("invalid parameters\r\n"+m.join("\r\n"));let h={};for(let e of d){let[t,r]=e.split("=");h[t]=r}for(let e of(or.startGroup("Environment variables"),f)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(or.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter((e,t,r)=>r.indexOf(e)===t).join(";")),or.exportVariable(t,r))}or.endGroup(),or.info("Configured Developer Command Prompt")},rc=ra("7Lz0k"),iP=ra("bOuKS"),rl=ra("2W4C2"),nN=ra("eq4yW"),rc=ra("7Lz0k"),iP=ra("bOuKS"),od=of.resolve(__dirname,"../../src/msvc"),nN=ra("eq4yW"),nN=ra("eq4yW"),rc=ra("7Lz0k"),iP=ra("bOuKS"),nN=ra("eq4yW");let cs=!1;const ca={nala:tM,cmake:eq,ninja:tu,python:eZ,vcpkg:tq,bazel:eS,conan:e6,meson:(e,t,r)=>e4("meson",e),gcovr:(e,t,r)=>e4("gcovr",e),opencppcoverage:tG,llvm:tS,gcc:to,choco:eE,brew:em,powershell:tB,ccache(e,t,r){switch(process.platform){case"win32":return ev("ccache",e);case"darwin":return eg("ccache",e);case"linux":if(ey())return eI("ccache",e);if(ex())return ew("ccache",e);if(eb())return es([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache(e,t,r){switch(process.platform){case"win32":return ev("sccache",e);case"linux":case"darwin":return eg("sccache",e);default:throw Error("Unsupported platform")}},doxygen:tt,graphviz:e9,cppcheck:e5,clangtidy:tT,clangformat:tT,msvc:tj,vcvarsall:tk,kcov:th,make:t_,task:(e,t,r)=>ek("task",e,tH,t,r),sevenzip:ej},cl=Object.keys(ca),cc=["compiler","architecture",...cl];nL=ra("i5trn"),rc=ra("7Lz0k"),i4=ra("7DjgM"),tz(process.argv).then(e=>{process.exitCode=e}).catch(e=>{(0,rc.error)("main() panicked!"),(0,rc.error)(e),process.exitCode=1});
|
|
//# sourceMappingURL=setup-cpp.js.map
|