#!/usr/bin/env node let e,t,r,n,i,o,s,a;function l(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function c(e){return e&&e.__esModule?e.default:e;}function u(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}rz(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function p(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=rH.sync(e.command,{path:n[rV({env:n})],pathExt:t?iV.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=iV.resolve(o?e.options.cwd:"",r)),r;}function f(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 d(e,t){return i4&&1===e&&!t.file?f(t.original,"spawn"):null;}function h(e,t,r){let n=rG(e,t,r),i=rg.spawn(n.command,n.args,n.options);return rZ.hookChildProcess(i,n),i;}function m(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 v(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function g(e){return v(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function y(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r6(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r3.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await oJ(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new oZ());});}),n.getBufferedValue();}function E(e,t,r){let n;let i=sv(e,t,r),o=si(e,t),s=so(e,t);sh(s,i.options),oV(i.options);try{n=c(rb).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rb).ChildProcess)();return se(e,Promise.reject(oE({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=st(n),l=oz(n,i.options,a),u=oX(n,i.options,l),p={isCanceled:!1};n.kill=oF.bind(null,n.kill.bind(n)),n.cancel=oH.bind(null,n,p);let f=rQ(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,f]=await o5(n,i.options,u),d=sg(i.options,l),h=sg(i.options,c),m=sg(i.options,f);if(e||0!==t||null!==r){let l=oE({error:e,exitCode:t,signal:r,stdout:d,stderr:h,all:m,command:o,escapedCommand:s,parsed:i,timedOut:a,isCanceled:p.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:d,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return o3(n,i.options),n.all=o4(n,i.options),oK(n),se(n,f),n;}function w(e,t,r){let n;let i=sv(e,t,r),o=si(e,t),s=so(e,t);sh(s,i.options);let a=o1(i.options);try{n=c(rb).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw oE({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sg(i.options,n.stdout,n.error),u=sg(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oE({stdout:l,stderr:u,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:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function _(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return E(function(){if(void 0===e){let t=c(r7).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(r7).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 b(){var e,t;return((null===(e=(t=process).getuid)||void 0===e?void 0:e.call(t))===0||!!process.env.CI)&&null!==c(r7).sync("sudo",{nothrow:!0});}function x(e,t=[],r=sF){return b()?function(e,t){let[r,...n]=ss(e);return w(r,n,t);}(O(e,t),r):w(e,R(t),r);}function S(e,t=[],r=sF){return b()?function(e,t){let[r,...n]=ss(e);return E(r,n,t);}(O(e,t),r):E(e,R(t),r);}function O(e,t){return"sudo "+R([e,...t]).join(" ");}function R(e){return e.map(e=>`'${e}'`);}async function I(e){if(("linux"===process.platform||"darwin"===process.platform)&&b()&&void 0!==process.env.SUDO_USER){let t=c(iX).statSync(e).isDirectory();await S("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],sF);}}function T(e){let t=function(){if(b()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,iV.join)("/Users/",process.env.SUDO_USER):(0,iV.join)("/home/",process.env.SUDO_USER);{let e=(0,iz.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(sU,t);}async function P(e){let t=void 0===e.guard?` source "${e.rcPath}" `:` # ${e.guard} if [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi `;try{await Promise.all([N(e),A(t,T("~/.bashrc")),A(t,T("~/.profile"))]);}catch(e){(0,rF.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}}async function N(e){let t=void 0===e.guard?"\n# Automatically Generated by envosman\n":` # Automatically Generated by envosman ${e.guard} export SOURCE_${e.guard.toUpperCase()}RC=0 `;(await(0,nF.pathExists)(e.rcPath))&&!(await sG(e.rcPath,"utf8")).includes(t)&&(await sM(e.rcPath,` ${t} `),(0,rF.info)(`Added ${t} to ${e.rcPath}`));}async function A(e,t){(await(0,nF.pathExists)(t))&&!(await sG(t,"utf-8")).includes(e)&&(await sM(t,e),(0,rF.info)(`${e} was added to ${t}`));}async function $(e){if(await(0,nF.pathExists)(e.rcPath)){let t=[...new Set((await sG(e.rcPath,"utf-8")).split("\n").reverse())].reverse();await sB(e.rcPath,t.join("\n")),await I(e.rcPath);}}async function C(e,t,r={}){let n={escapeSpace:!1,overwrite:!0,rcPath:sH,...r},i=function(e,t=!1){let r=t?c(nU)(e):e;return c(nM)(r,'"',"\\");}(null!=t?t:"",n.escapeSpace);try{if(rj.GITHUB_ACTIONS)try{if(!n.overwrite&&void 0!==process.env[e]){(0,rF.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,rU.exportVariable)(e,i);}catch(t){(0,rF.error)(t),await L(e,i,n);}else await L(e,i,n);}catch(t){(0,rF.error)(`${t} Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function L(e,t,r){let n=null!=t?t:"";switch(process.platform){case"win32":if(!r.overwrite&&void 0!==process.env[e]){(0,rF.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await _(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,rF.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await sq(r),r.overwrite?(await sW(r.rcPath,` export ${e}="${n}" `),(0,rF.info)(`${e}="${n}" was added to "${r.rcPath}`)):(await sW(r.rcPath,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi `),(0,rF.info)(`if not defined ${e} then ${e}="${n}" was added to "${r.rcPath}`));return;}process.env[e]=n;}async function k(e,t={}){let r={rcPath:sH,...t};if(!function(e){if(sK.some(t=>t.test(e))){var t,r;return(null!==(r=null===(t=process.env.PATH)||void 0===t?void 0:t.split(iV.delimiter))&&void 0!==r?r:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${iV.delimiter}${process.env.PATH}`;try{if(rj.GITHUB_ACTIONS)try{(0,rU.addPath)(e);}catch(t){(0,rF.error)(t),await D(e,r);}else await D(e,r);}catch(t){(0,rF.error)(`${t} Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function D(e,t){switch(process.platform){case"win32":await _(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,rF.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await sq(t),await sY(t.rcPath,` export PATH="${e}:$PATH" `),(0,rF.info)(`"${e}" was added to "${t.rcPath}"`);return;default:return;}}function j(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}function F(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),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]e.startsWith("Status: install ok installed"));}catch{return!1;}}async function Y(e){try{let{stdout:t}=await E("dpkg",["-l",e],{env:z("apt-get"),stdio:"pipe"});if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function K(e,t){return(await Promise.all(t.map(t=>J(e,t)))).filter(e=>void 0!==e);}async function J(e,t){let r=await Q(e,t.name,t.version);return(await W(r))?void 0:r;}async function Z(e,t,r){if(void 0!==r&&""!==r){let{stdout:n}=await E("apt-cache",["search","--names-only",`^${(0,ic.default)(t)}-${(0,ic.default)(r)}$`],{env:z(e),stdio:"pipe"});if(""!==n.trim())return 0;try{let{stdout:n}=await E("apt-cache",["show",`${t}=${r}`],{env:z(e)});if(""===n.trim())return 1;}catch{}}try{let{stdout:r}=await E("apt-cache",["show",t],{env:z(e),stdio:"pipe"});if(""!==r.trim())return 2;}catch{}return sQ?3:(s0(e),Z(e,t,r));}async function Q(e,t,r){switch(await Z(e,t,r)){case 0:return`${t}-${r}`;case 1:return`${t}=${r}`;case 2:return void 0!==r&&""!==r&&(0,rF.warning)(`Could not find package ${t} with version ${r}. Installing the latest version.`),t;default:throw Error(`Could not find package ${t} ${null!=r?r:""}`);}}async function ee(e){s0(e);let t=await K(e,[{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}]);0!==t.length&&x(e,["install","-y","--fix-broken","-o",sZ,...t],{...sF,env:z(e)});}async function et(e,t=X()){await s1(t),await er(t),x("add-apt-repository",["-y","--no-update",e],{...sF,env:z(t)}),s0.clear(),s0(t);}async function er(e){(await W("software-properties-common"))||x(e,["install","-y","--fix-broken","-o",sZ,"software-properties-common"],{...sF,env:z(e)});}async function en(e,t=!1){let r=X();for(let{name:t,version:n}of e)(0,rF.info)(`Installing ${t} ${null!=n?n:""} via ${r}`);t&&s0(r),await ei(r,e);let n=await K(r,e);if(0===n.length)return(0,rF.info)("All packages are already installed"),{binDir:"/usr/bin/"};await s1(r);try{await eo(e),x(r,["install","--fix-broken","-y",...n],{...sF,env:z(r)});}catch(e){if("string"==typeof e.stderr)s2.some(t=>e.stderr.includes(t))&&((0,rF.warning)(`Failed to install packages ${n}. Retrying...`),x(r,["install","--fix-broken","-y","-o",sZ,...n],{...sF,env:z(r)}));else throw e;}return{binDir:"/usr/bin/"};}async function ei(e,t){let r=[...new Set(t.flatMap(e=>{var t;return null!==(t=e.repository)&&void 0!==t?t:[];}))];await Promise.all(r.map(t=>et(t,e)));}async function eo(e){await Promise.all(e.map(async e=>{var t;void 0!==e.key&&(await("keyUrl"in(t=e.key)?ea(t):es(t)));}));}async function es({key:e,keyServer:t=s4,fileName:r,keyStorePath:n=s4}){try{ec(r);let i=(0,iV.join)(n,r);return(await(0,nF.pathExists)(i))||(el(),await S("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+i,"--keyserver",t,"--recv-keys",e]),await S("chmod",["644",i])),i;}catch(e){(0,rF.warning)(`Failed to add apt key via server ${t}: ${e}`);return;}}async function ea({keyUrl:e,fileName:t,keyStorePath:r=s3}){try{ec(t);let n=(0,iV.join)(r,t);if(!(await(0,nF.pathExists)(n))){el(),await en([{name:"ca-certificates"}]);let r=(0,iV.join)((0,iz.tmpdir)(),t),i=new ie.DownloaderHelper(e,(0,iz.tmpdir)(),{fileName:t});i.on("error",t=>{throw Error(`Failed to download ${e}: ${t}`);}),await i.start(),x("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--import",r]),x("chmod",["644",n]);}return n;}catch(t){(0,rF.warning)(`Failed to add apt key via download ${e}: ${t}`);return;}}function el(){x("gpg",["-k"]);}function ec(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e);}async function eu(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let r=await c(r7)("brew",{nothrow:!0});if(null!==r)return{binDir:t=(0,iV.dirname)(r)};await en([{name:"ca-certificates"}]);let n=new ie.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",(0,iz.tmpdir)(),{fileName:"install-brew.sh"});return n.on("error",e=>{throw Error("Failed to download the brew installer script: "+e);}),await n.start(),w("/bin/bash",[n.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=ep(),await k(t,e.rcOptions),{binDir:t};}function ep(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew/bin/":"/usr/local/bin/";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew/bin/";throw Error("Unsupported platform for brew");}async function ef(e,t,r={}){let n={overwrite:!0,cask:!1,args:[],...r};(0,rF.info)(`Installing ${e} ${null!=t?t:""} via brew`),s6&&null!==c(r7).sync("brew",{nothrow:!0})||(await eu(),s6=!0);let i=ep(),o=(0,iV.join)(i,"brew"),s=["install",void 0!==t&&""!==t?`${e}@${t}`:e];return n.overwrite&&s.push("--overwrite"),n.cask&&s.push("--cask"),w(o,s,{stdio:"inherit"}),{binDir:i};}function ed(){return"linux"===process.platform&&(void 0===o&&(o=null!==c(r7).sync("dnf",{nothrow:!0})),o);}function eh(){return"linux"===process.platform&&(void 0===s&&(s=null!==c(r7).sync("pacman",{nothrow:!0})),s);}function em(){return"linux"===process.platform&&(void 0===a&&(a=null!==c(r7).sync("apt-get",{nothrow:!0})),a);}async function ev(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=c(r7).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,ip.dirname)(o)};let s="powershell.exe",a=c(r7).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==a&&(s=a),w(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await k(l,ln);let u=c(r7).sync("choco",{nothrow:!0});if(r=null!==u?(0,ip.dirname)(u):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,nF.pathExists)(r))return{binDir:r};}async function eg(e,t,r=[]){var n;(0,rF.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),s8&&null!==c(r7).sync("choco",{nothrow:!0})||(await ev("","",process.arch),s8=!0);let i=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=i,void 0!==t&&""!==t)w("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{w("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rF.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let s=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await k(s,ln),{binDir:s};}async function ey(e){for(let{name:t,version:r}of e)(0,rF.info)(`Installing ${t} ${null!=r?r:""} via dnf`);return x("dnf",["-y","install",...(await Promise.all(e.map(e=>eE(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function eE(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await E("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await E("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rF.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ew(e,t,r){switch(process.platform){case"win32":return eg("bazelisk",e);case"darwin":return ef("bazelisk",e);case"linux":if(eh())throw Error("installing bazel on Arch linux is not supported yet");if(ed())return await ey([{name:"dnf-plugins-core"}]),x("dnf",["copr","enable","vbatts/bazel"]),ey([{name:"bazel4"}]);if(em()){let t=await ea({fileName:"bazel-archive-keyring.gpg",keyUrl:"https://bazel.build/bazel-release.pub.gpg"});return x("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`]),en([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function e_(e,t,r){(0,rF.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";if("yay"===r&&null===c(r7).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);s5||"yay"===r||(x(n,["-Sy","--noconfirm"]),s5=!0),s9||"yay"===r||(x(n,["-S","--noconfirm","base-devel"]),s9=!0);let i=e=>"yay"===r?w(r,["-S","--noconfirm",e]):x(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await eb(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rF.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function eb(e,t){let r=[];try{let{stdout:n}=await E(e,["-Si",t]);for(let e of n.matchAll(s7))r.push(e[1]);}catch(e){(0,rF.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function ex(e,t){let r=[];t=t||ai.arch();let n=ao.join(eP(),e);if(ar.existsSync(n)){for(let e of ar.readdirSync(n))if(eI(e)){let i=ao.join(n,e,t||"");ar.existsSync(i)&&ar.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function eS(e){return iw(this,void 0,void 0,function*(){return e||(e=ao.join(eN(),au.default())),yield at.mkdirP(e),e;});}function eO(e,t,r){return iw(this,void 0,void 0,function*(){let n=ao.join(eP(),e,aa.clean(t)||t,r||"");ae.debug("destination "+n);let i=`${n}.complete`;return yield at.rmRF(n),yield at.rmRF(i),yield at.mkdirP(n),n;});}function eR(e,t,r){let n=ao.join(eP(),e,aa.clean(t)||t,r||""),i=`${n}.complete`;ar.writeFileSync(i,""),ae.debug("finished caching tool");}function eI(e){let t=aa.clean(e)||"";ae.debug("isExplicit: "+t);let r=null!=aa.valid(t);return ae.debug("explicit? "+r),r;}function eT(e,t){let r="";ae.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(aa.satisfies(i,t)){r=i;break;}}return r?ae.debug("matched: "+r):ae.debug("match not found"),r;}function eP(){let e=process.env.RUNNER_TOOL_CACHE||"";return rh.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eN(){let e=process.env.RUNNER_TEMP||"";return rh.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eA(e,t){let r=r$[e];return void 0!==r?r:t;}function e$(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,s;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new am(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current{var e;let t=(0,ip.join)(null!==(e=process.env.RUNNER_TEMP)&&void 0!==e?e:(0,iz.tmpdir)(),`${Date.now()}-${(0,iV.basename)(r)}`);return(0,im.downloadTool)(r,t);},{name:r,max:4,backoffBase:2e3,report:e=>(0,rF.info)(e)});}async function eq(e,t,r){rj.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"===ro("cache-tools")||"true"===process.env.CACHE_TOOLS)&&(await(0,im.cacheDir)(e,t,r));}function ez(e,t,r){var n;let i=null!==(n=c(id)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=c(ih)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(ih)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,ip.addExeExt)("cmake"),extractedFolderName:r,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=c(ih)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("cmake"),extractedFolderName:o,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eV(e,t,r){return eG("cmake",e,ez,t,r);}function eX(e,t){return new Promise(r=>{try{let n=(0,iK.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 eW(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(iC)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eY(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await i$(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 eW(e,r)){let e=await n(t,o);if(null!==e){if(await i$(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 eK(e,t=aA){try{var r,n;let i=await(0,ib.getExecOutput)(e,["--version"]),o=i.stdout||i.stderr||"",s=null===(r=o.trim().match(t))||void 0===r?void 0:r[1];return null!==(n=c(id)(s))&&void 0!==n?n:void 0;}catch(e){console.error(e);return;}}async function eJ(e,t,r=aA){let n=await eK(e,r);return void 0!==n&&""!==t&&-1!==c(iC)(n,t);}function eZ(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eQ(e,t,r){let n=await e2(e,t,r);c(rh)(void 0!==n.bin);let i=n.bin;if(void 0===(await e8(i)))throw Error("pip was not installed correctly");return await e0(i),await e1(i),n;}async function e0(e){try{if(!(await tc(e)))try{await tl(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===tm("pipx",!1))throw Error("pipx was not installed correctly "+e);}await E(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await tl(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rF.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function e1(e){try{await tl(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await tl(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rF.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function e2(e,t,r){let n;let i=await e4(t);if(void 0!==i){let e=(0,ip.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rj.GITHUB_ACTIONS)try{(0,rF.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rk("eYDSL");if(await o(e,t,r),i=await e4(t),void 0===i)throw Error("Python binary could not be found");let s=(0,ip.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rF.warning)(e.toString());}void 0===n&&(n=await e3(t,e));}if(void 0===i||void 0===n.bin){if(void 0===(i=await e4(t)))throw Error("Python binary could not be found");n={bin:i,installDir:(0,ip.dirname)(i),binDir:(0,ip.dirname)(i)};}return n;}async function e3(e,t){let r;switch(process.platform){case"win32":{e?await eg("python3",t,["--params=/InstallDir:"+e]):await eg("python3",t);let n=await e4(e);if(void 0===n)throw Error("Python binary could not be found");let i=(0,ip.dirname)(n);await k(i,ln),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ef("python3",t);let e=await E("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,ip.join)(e.stdout,"libexec","bin");await k(n,ln);break;}case"linux":if(eh())r=await e_("python",t);else if(ed())r=await ey([{name:"python3",version:t}]);else if(em())r=await en([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function e4(e){for(let t of["python3","python"]){let r=await e6(t,e);if(void 0!==r)return r;}if("win32"===process.platform){let e=(0,iV.parse)((0,iz.homedir)()).root;for(let t of(await(0,nt.readdir)(e)).filter(e=>e.startsWith("Python")))for(let r of["python3","python"]){let n=await e6(r,(0,ip.join)(e,t));if(void 0!==n)return n;}}}async function e6(e,t){try{var r;if(void 0!==t){let r=(0,ip.join)(t,(0,ip.addExeExt)(e));if((await(0,nF.pathExists)(r))&&(await eJ(r,aC.python)))return r;}for(let t of null!==(r=await c(r7)(e,{nothrow:!0,all:!0}))&&void 0!==r?r:[])if(await eJ(t,aC.python))return t;}catch{}}async function e8(e){let t=await e5();return void 0===t?((0,rF.info)("pip was not found. Installing pip"),await e7(e),e5()):t;}async function e5(){for(let e of["pip3","pip"]){let t=await e9(e);if(void 0!==t)return t;}}async function e9(e){try{var t;for(let r of null!==(t=await c(r7)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(await eJ(r,aC.pip))return r;}catch{}}async function e7(e){(await te(e))||(await tm("pip"),await te(e));}async function te(e){try{return await E(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rF.info)(t.toString());try{return await E(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rF.info)(e.toString());}}return!1;}async function tt(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,ib.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,ip.join)(r,"Scripts"),(0,ip.join)(r,"Scripts","bin"),(0,ip.join)(r,"bin")),[...new Set(t)];}function tr(e,t,r=null){return tn(t)&&"linux"===process.platform&&null!==r&&e in aL?function(e,t){let r=e[0],n=Object.keys(t).map(e=>Number.parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,aL[e]):tn(t)&&e in a$?a$[e]:"true"===t?"":null!=t?t:"";}function tn(e){return"true"===e||void 0===e;}async function ti(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rg.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){if("Ubuntu"!==t[1])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 to(){try{if(!em())return null;{try{null===c(r7).sync("lsb_release",{nothrow:!0})&&(await en([{name:"lsb-release"}]));}catch{return ts();}let e=await(0,ik.getUbuntuVersion)();if(0===e.length)return ts();return e;}}catch(e){return(0,rF.warning)(e.toString()),null;}}function ts(){if(!("version"in c(iz)&&"function"==typeof c(iz).version))return null;let e=c(iz).version().split("."),t=Number.parseInt(e[0].replace("#",""),10);return[t,Number.parseInt(e[1].replace("~",""),10),Number.parseInt(e[2].split("-")[0],10)];}async function ta(e,t,r={}){return tl(await aU(),e,t,r);}async function tl(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await tc(e)),c=l?"pipx":"pip";if(await td(e,t))try{(0,rU.info)(`Installing ${t} ${null!=r?r:""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await aj(),i.PIPX_BIN_DIR=await aF()),w(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,rU.info)(`Failed to install ${t} via ${c}: ${e}.`),(await tm(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await tm(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ak(e),p=await th(u,t);return await k(p,ln),{binDir:p};}async function tc(e){return 0===(await E(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function tu(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=T("~/.local/pipx");if(await(0,nF.pathExists)(t))return t;switch(process.platform){case"win32":e=T("~/AppData/Local/pipx");break;case"darwin":e=T("~/Library/Application Support/pipx");break;default:e=T("~/.local/share/pipx");}return await aN(e),await aN((0,ip.join)(e,"trash")),await aN((0,ip.join)(e,"shared")),await aN((0,ip.join)(e,"venv")),e;}async function tp(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=T("~/.local/bin");return await k(e,ln),await aN(e),e;}async function tf(){let e=(await eQ(tr("python",void 0,await aD()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function td(e,t){return 0===(await E(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function th(e,t){let r=(await Promise.all(e.map(e=>(0,nF.pathExists)((0,ip.join)(e,(0,ip.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(r7).sync((0,ip.addExeExt)(t),{nothrow:!0});return null!==n?(0,ip.dirname)(n):e[e.length-1];}function tm(e,t=!0){if("linux"===process.platform){if((0,rU.info)(`Installing ${e} via the system package manager`),eh())return e_(t?"python-"+e:e);if(ed())return ey([{name:t?"python3-"+e:e}]);if(em())return en([{name:t?"python3-"+e:e}]);}return null;}async function tv(e,t,r){switch(process.platform){case"win32":return await eg("cppcheck",e),{binDir:await tg()};case"darwin":return ef("cppcheck",e);case"linux":if(eh())return e_("cppcheck",e);if(ed())return ey([{name:"ccache",version:e}]);if(em())return en([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tg(){let e="C:/Program Files/Cppcheck";return await k(e,ln),e;}async function ty(e,t,r){switch(process.platform){case"win32":return await eg("graphviz",e),tE();case"darwin":return ef("graphviz",e);case"linux":if(eh())return e_("graphviz",e);if(ed())return ey([{name:"graphviz",version:e}]);if(em())return en([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tE(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await k(e,ln),{binDir:e};}throw Error("Unsupported platform");}async function tw(e,t){let{ArchiveHdi:r}=await rk("bCzkE"),n=new r(e);await n.read(async e=>{await e.extract((0,iV.join)(t,e.path));});}function t_(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,ip.addExeExt)("doxygen"),extractedFolderName:t,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,ip.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tw,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tb(e,t,r){switch(process.platform){case"win32":{await c(iT)(()=>eg("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rF.info)(e)});let t=await tx();return await ty(tr("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ef("doxygen",void 0);return aG()[0]>11&&(await ty(tr("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||eh()||ed()){if(eh())n=await e_("doxygen",e);else if(ed())return ey([{name:"doxygen",version:e}]);else if(em())n=await en([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(em())try{n=await eG("doxygen",e,t_,t,r);try{await en([{name:"libclang-cpp9"}]);}catch(e){(0,rF.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rF.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await en([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await ty(tr("graphviz",void 0,await aD()),"",r),n;}default:throw Error("Unsupported platform");}}async function tx(){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,nF.pathExists)((0,ip.join)(e,"doxygen.exe")))return await k(e,ln),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tS(){if("darwin"===process.platform)try{let e=await(0,ib.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await C("SDKROOT",t.trim(),ln):(0,rF.error)("SDKROOT not set");}catch(e){(0,rF.error)(e);}}function tO(e,t,r){if("win32"===t){let t=aB[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,ip.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:ek,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 tR(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await eg("gcc-arm-embedded",e));try{i=await eG("g++",e,tO,t,r);}catch(t){(0,rF.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tT(e,r);}break;case"darwin":i=await ef("gcc",e);break;case"linux":"x64"===r?eh()?i=await e_("gcc",e):ed()?i=await ey([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):em()&&(i=await en([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])):((0,rF.info)(`Install g++-multilib because gcc for ${r} was requested`),eh()?await e_("gcc-multilib",e):em()&&(await en([{name:"gcc-multilib",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tP(e,i.binDir,n),i;}async function tI(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tR(e,t,r);case"linux":eh()?n=await e_("mingw-w64-gcc",e):ed()?n=await ey([{name:"mingw64-gcc",version:e}]):em()&&(n=await en([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tT(e,t){var r,n;let i;if(await eg("mingw",e),"x64"===t&&(await(0,nF.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await k(i,ln)):"ia32"===t&&(await(0,nF.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await k(i,ln)):(await(0,nF.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function tP(e,t,r=40){let n=[];if("win32"===process.platform)n.push(C("CC",(0,ip.addExeExt)(`${t}/gcc`),ln),C("CXX",(0,ip.addExeExt)(`${t}/g++`),ln));else{var i;let o=c(iD)(null!==(i=c(id)(e))&&void 0!==i?i:e);o>=5?(n.push(C("CC",`${t}/gcc-${o}`,ln),C("CXX",`${t}/g++-${o}`,ln)),em()&&n.push(q("cc",`${t}/gcc-${o}`,ln,r),q("cxx",`${t}/g++-${o}`,ln,r),q("gcc",`${t}/gcc-${o}`,ln,r),q("g++",`${t}/g++-${o}`,ln,r))):(n.push(C("CC",`${t}/gcc-${e}`,ln),C("CXX",`${t}/g++-${e}`,ln)),em()&&n.push(q("cc",`${t}/gcc-${e}`,ln,r),q("cxx",`${t}/g++-${e}`,ln,r),q("gcc",`${t}/gcc-${e}`,ln,r),q("g++",`${t}/g++-${e}`,ln,r)));}n.push(tS()),rj.GITHUB_ACTIONS&&(await tN()),await Promise.all(n);}async function tN(){let e=(0,ip.join)(ij,"gcc_matcher.json");if(!(await(0,nF.pathExists)(e)))return(0,rF.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rF.info)("::add-matcher::"+e);}function tA(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,ip.addExeExt)("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function t$(e,t,r){return eG("ninja",e,tA,t,r);}function tC(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,ip.addExeExt)("kcov")};}function tL(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,ip.addExeExt)("kcov"),extractFunction:tk};}async function tk(e,t){let r=await eU(e,t,1),n=await tD();"linux"===process.platform&&(eh()?await Promise.all([e_("libdwarf"),e_("libcurl-openssl")]):ed()?await ey([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):em()&&(await en([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(r7).sync("patch",{nothrow:!0})){let e=(0,ip.join)(iF,"gcc13.patch");await E("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rF.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,ip.join)(r,"build");return await E(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await E(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tD(){let e=c(r7).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eV(tr("cmake",void 0,await aD()),(0,ip.join)(T("~"),"cmake"),"");e=(0,ip.join)(t,"cmake");}return null===c(r7).sync("ninja",{nothrow:!0})&&(await t$(tr("ninja",void 0,await aD()),(0,ip.join)(T("~"),"ninja"),"")),e;}async function tj(e,t,r){var n;let i;if("linux"!==process.platform){(0,rF.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=Number.parseInt(s.replace(/^v/,""),10);return 38===l&&(s="v38"),"binary"===a&&l>=39?(i=await eG("kcov",s,tC,t,r),eh()?await e_("binutils"):ed()?await ey([{name:"binutils"}]):em()&&(await en([{name:"libbinutils"}]))):i=await eG("kcov",s,tL,t,r),i;}function tF(e){if(Object.values(aJ).includes(e));else if(e in aJ)return aJ[e];return e;}function tU(e){let t;let r=tF(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rg.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){rU.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&iX.existsSync(n))return rU.info("Found with vswhere: "+n),n;rU.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aJ).includes(e));else for(let[t,r]of Object.entries(aJ))if(r===e)return t;return e;}(e)]:aK;for(let e of aW)for(let t of i)for(let r of aY)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,rU.info("Trying standard location: "+n),iX.existsSync(n))return rU.info("Found standard location: "+n),n;if(rU.info("Not found in standard locations"),n=`${aX}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,iX.existsSync(n))return rU.info("Found VS 2015: "+n),n;throw rU.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tM(e,t,r,n,i,o,s){void 0!==t&&(await(0,nF.pathExists)(t))&&((0,rF.info)(`Adding ${t} to PATH`),await C("VCTargetsPath",t,ln)),await iG(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,s,e);}async function tG(e,t,r,n,i,o,s,a=aQ){(0,rU.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:s={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,a=new Promise((a,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(aV(e)),e.addEventListener("abort",()=>{l(aV(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aH();r=s.setTimeout.call(void 0,()=>{if(i){try{a(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?a():o instanceof Error?l(o):(c.message=null!=o?o:`Promise timed out after ${n} milliseconds`,l(c));},n),(async()=>{try{a(await e);}catch(e){l(e);}})();}).finally(()=>{a.clear();});return a.clear=()=>{s.clearTimeout.call(void 0,r),r=void 0;},a;}(tB(e,t,r,n,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rF.error)(t),t instanceof Error&&void 0!==t.stack&&(0,rF.error)(t.stack),s.push(`${e} failed to install`);}return(0,rU.endGroup)(),l;}async function tB(e,t,r,n,i,o){let s;let a=["llvm","clangformat","clangtidy"].includes(e);if("vcvarsall"===e)await tM(tr(e,t,r),void 0,n,void 0,void 0,!1,!1);else if("brew"===e)s=await eu({rcOptions:ln});else{let o=(0,ip.join)(i,a?"llvm":e),l=tr(e,t,r),c=le[e];s=await c(l,o,n);}return o.push(rs(e,s)),a;}async function tH(e,t=0){let r="/usr/lib/llvm-"+e;await en([{name:"ca-certificates"}]);let n=new ie.DownloaderHelper("https://apt.llvm.org/llvm.sh",(0,iz.tmpdir)(),{fileName:"llvm.sh"});n.on("error",e=>{throw Error("Failed to download the LLVM installer script: "+e);}),await n.start();let i=await(0,nt.readFile)(n.getDownloadPath(),"utf-8"),o=(0,iV.join)((0,iz.tmpdir)(),"llvm-setup-cpp.sh"),s=await tq(i,o,e,t);return await en(s),await(0,nt.chmod)(o,"755"),await S("bash",[o,""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aQ}),await k(`${r}/bin`,ln),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tq(e,t,r,n){var i,o,s,a,l;let c=(i=e,"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?i.replace(/set -eux/g,"set -eu"):i);return o=n,s=c=c.replace(/add-apt-repository "\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}" apt-get update -o ${sZ} -y`),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tz(c),c=V()?l.replace(/apt-get/g,"nala"):l,await(0,nt.writeFile)(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tz(e){let t=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${sZ} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await Y(r))&&((0,rA.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tV(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tX(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tW(e){let t;if(a1.has(e))return null;let r="LLVM-",n=c(ih)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(ih)(e,"9.0.1"),o=!1;return i&&(t=tX(e,r,n),(await i$(t))||(o=!0)),(o||!i)&&(t=tV(e,r,n)),t;}function tY(e,t){switch(e){case"darwin":return function(e){if(a2.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return c(ih)(e,"9.0.1")?tX(e,r,n):tV(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=a3.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!a0.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eW(a0,e)[0];}else""!==n&&n in a4?t=a4[n]:(t=a4[a6],(0,rF.warning)(`Falling back to LLVM version ${a6} ${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`,c(ih)(n,"9.0.1"))?tX(n,o,r):tV(n,o,r);}(t);case"win32":return tW(t);default:return null;}}async function tK(e,t,r){let[n,i]=await eY(a0,t,e,tY);return(0,rF.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,ip.addExeExt)("clang"),extractFunction:"win32"===t?ej:(e,t)=>eU(e,t,1)};}async function tJ(e,t,r){var n;let i=await a8(e,t,r);return await t2(null!==(n=i.installDir)&&void 0!==n?n:t),i;}async function tZ(e,t,r){let[n,i]=await Promise.all([tQ(e,t,r),t3()]);return await a9(r),n;}async function tQ(e,t,r,n=iB.All){let i=Number.parseInt(function(e){if(null===c(iL)(e))try{let t=c(id)(e);if(null!==t)return(0,rF.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(em())return await tH(i,n);}catch(e){(0,rF.info)("Failed to install llvm via system package manager "+e);}let o=await eG("llvm",e,tK,t,r);return await a5(i),o;}async function t0(e){em()&&(e<=10?await en([{name:"libtinfo5"}]):await en([{name:"libtinfo-dev"}]));}async function t1(e){"linux"===process.platform&&(await tR(tr("gcc",void 0,await aD()),"",e,40));}async function t2(e){var t,r;let n=null!==(t=process.env.LD_LIBRARY_PATH)&&void 0!==t?t:"",i=null!==(r=process.env.DYLD_LIBRARY_PATH)&&void 0!==r?r:"",o=[C("LLVM_PATH",e,ln),C("LD_LIBRARY_PATH",`${e}/lib${iV.delimiter}${n}`,ln),C("DYLD_LIBRARY_PATH",`${e}/lib${iV.delimiter}${i}`,ln),C("LDFLAGS",`-L"${e}/lib"`,ln),C("CPPFLAGS",`-I"${e}/include"`,ln),C("CC",(0,ip.addExeExt)(`${e}/bin/clang`),ln),C("CXX",(0,ip.addExeExt)(`${e}/bin/clang++`),ln),C("LIBRARY_PATH",`${e}/lib`,ln),tS()];em()&&o.push(q("cc",`${e}/bin/clang`,ln,60),q("cxx",`${e}/bin/clang++`,ln,60),q("clang",`${e}/bin/clang`,ln),q("clang++",`${e}/bin/clang++`,ln),q("lld",`${e}/bin/lld`,ln),q("ld.lld",`${e}/bin/ld.lld`,ln),q("llvm-ar",`${e}/bin/llvm-ar`,ln)),await Promise.all(o);}async function t3(){if(rj.GITHUB_ACTIONS){let e=(0,ip.join)(iH,"llvm_matcher.json");if(!(await(0,nF.pathExists)(e)))return(0,rF.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rF.info)("::add-matcher::"+e);}}async function t4(e,t,r){switch(process.platform){case"win32":return eg("make",e);case"darwin":return await ef("make",e),await k("/usr/local/opt/make/libexec/gnubin",ln),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(eh())return e_("make",e);if(ed())return ey([{name:"make",version:e}]);if(em())return en([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function t6(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=iU(e);(0,rF.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=iM(l);c=!0,(0,rF.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await eg("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 eg("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 eg("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 eg("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rF.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rF.error)(e);}await tM(l,a,r,s,n,i,o),rj.GITHUB_ACTIONS&&(await t8());}async function t8(){let e=(0,ip.join)(iq,"msvc_matcher.json");if(!(await(0,nF.pathExists)(e)))return(0,rF.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rF.info)("::add-matcher::"+e);}async function t5(e,t,r){if(!em())return;if("string"==typeof i)return{binDir:i};let n=c(r7).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,ip.dirname)(n)};await en([{name:"python3-apt"}]);let o=await ea({fileName:"volian-archive-nala.gpg",keyUrl:"https://deb.volian.org/volian/nala.key"});x("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ nala main" | tee /etc/apt/sources.list.d/volian-archive-nala.list`]);try{"legacy"!==e?await en([{name:"nala"}],!0):await en([{name:"nala-legacy"}],!0);}catch(e){await en([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function t9(e,t,r){if("win32"===process.platform)return await eg("opencppcoverage",e),{binDir:await t7()};}async function t7(){let e="C:/Program Files/OpenCppCoverage";return await k(e,ln),e;}function re(e,t,r){return{url:function(e,t,r){switch(e){case"win32":{let e=["ia32","x86","i386","x32"].includes(t)?"win-x86":"win-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${r}/PowerShell-${r}-${e}.zip`;}case"darwin":{let e=["arm","arm64"].includes(t)?"osx-arm64":"osx-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${r}/powershell-${r}-${e}.tar.gz`;}case"linux":{var n;let e=null!==(n={arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[t])&&void 0!==n?n:"linux-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${r}/powershell-${r}-${e}.tar.gz`;}default:throw Error(`Unsupported platform '${e}'`);}}(t,r,e),binRelativeDir:"",binFileName:(0,ip.addExeExt)("pwsh"),extractedFolderName:""};}async function rt(e,t,r){try{return await eG("pwsh",e,re,t,r);}catch(n){return(0,rF.error)(`Failed to setup pwsh via download: ${n}. Trying package managers...`),rr(e,t,r);}}async function rr(e,t,r){switch(process.platform){case"win32":{await eg("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await k(t,ln),{binDir:t};}case"darwin":return ef("powershell",e,{cask:!0,overwrite:!1});case"linux":if(eh())return e_("powershell-bin",e,"yay");if(ed())return await ey([{name:"curl"}]),x("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ey([{name:"powershell",version:e}]);if(em()){await en([{name:"curl"}]);let t=await aD(),r=`${t[0]}.0${t[1]}`;return x("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),x("dpkg",["-i","packages-microsoft-prod.deb"]),en([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function rn(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),s="win32"===t?"zip":"tar.gz";return{binRelativeDir:"",binFileName:(0,ip.addExeExt)("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s}`};}async function ri(e,t,r){return a7&&null!==c(r7).sync("vcpkg",{nothrow:!0})?{binDir:(0,ip.dirname)(c(r7).sync("vcpkg"))}:("linux"===process.platform&&(eh()?await Promise.all([e_("curl"),e_("zip"),e_("unzip"),e_("tar"),e_("git"),e_("pkg-config")]):ed()?await ey([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):em()&&(await en([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nF.pathExists)((0,ip.join)(t,(0,ip.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rF.notice)(`Vcpkg folder already exists at ${t}. Skipping the clone`):w("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ip.dirname)(t),stdio:"inherit"}),""!==e&&"true"!==e&&((0,rF.info)("Checking out vcpkg version "+e),w("git",["checkout",e],{cwd:t,stdio:"inherit"})),w((0,ip.addShExt)((0,ip.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await I(t),await k(t,ln),a7=!0,{binDir:t});}function ro(e){let t=(0,rU.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}function rs(e,t){let r=`\u{2705} ${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 ra(e,t,r,n,i,o,s){try{let{compiler:a,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==c(iL)(e)||(0,rF.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,rU.startGroup)(`Installing ${a} ${null!=l?l:""}`),a){case"llvm":case"clang":case"clang++":{let e=await tJ(tr("llvm",l,t),(0,iV.join)(r,"llvm"),n);await C("GCOV","llvm-cov gcov",ln),i.push(rs("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?tr("mingw",l,t):tr("gcc",l,t),s="mingw"===a?await tI(e,(0,iV.join)(r,"gcc"),n):await tR(e,(0,iV.join)(r,"gcc"),n);o&&(await C("CPPFLAGS","",ln)),await function(e){let t=c(iL)(e),r=null!==t?c(iD)(t):e;return C("GCOV",""!==r?"gcov-"+r:"gcov",ln);}(e),i.push(rs("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await t6(tr("msvc",l,t),(0,iV.join)(r,"msvc"),n);o&&(await C("CPPFLAGS","",ln)),i.push(rs("msvc",e));break;}case"appleclang":case"applellvm":(0,rU.notice)("Assuming apple-clang is already installed"),await Promise.all([C("CC","clang",ln),C("CXX","clang++",ln)]),i.push(rs("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rF.error)(t),s.push("Failed to install the "+e);}(0,rU.endGroup)();}async function rl(e){var t,r,n;let i,o,s=Promise.resolve();rj.GITHUB_ACTIONS||(s=U(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let a=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let f=void 0!==t.alias,d=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=M(t.string),t.boolean=M(t.boolean),f)for(r in t.alias)for(l=0,n=t.alias[r]=M(t.alias[r]);l0;)for(c=(n=t.alias[t.boolean[l]]||[]).length;c-->0;)t.boolean.push(n[c]);for(l=t.string.length;l-->0;)for(c=(n=t.alias[t.string[l]]||[]).length;c-->0;)t.string.push(n[c]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;ll;l++){if("--"===(i=e[l])){a._=a._.concat(e.slice(++l));break;}for(c=0;c0;)a[n.shift()]=a[r];return a;}(e,{string:[...lr,"timeout"],default:Object.fromEntries(lr.map(e=>[e,ro(e)])),alias:{h:"help"},boolean:"help"});a.help&&((0,rF.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. --timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes. --compiler the to install. You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0' --$tool_name pass "true" or pass the you would like to install for this tool. e.g. --conan true or --conan "1.42.1" All the available tools: `),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let l=null!==(t=a.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:T("~"),p=[],f=[],d=nH.create({autoloadLocales:!0});nH.addLocale(c(nq)),nG.addLocale(c(nB));let h=await aD();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!tn(e[t])),i=n.length>=1?e[n[0]]:"true";if(n.some(t=>e[t]!==i))return!1;for(let t of r)e[t]=i;return!0;}(a,["llvm","clangtidy","clangformat"]))return(0,rF.error)("The same version must be used for llvm, clangformat and clangtidy"),1;eh()&&"string"==typeof a.cppcheck&&"string"==typeof a.gcovr&&((0,rF.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await e_("python-pygments"));let m=!1,v=!1;for(let e of lt){if(rj.isCI&&0!==f.length){v=!0;break;}let t=a[e];void 0!==t&&(i=Date.now(),m=await tG(e,t,h,l,u,p,f,6e4*Number.parseFloat(null!==(n=a.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,rF.info)("took "+(d.format(i,o)||"0 seconds")));}if(!v){let e=a.compiler;if(void 0!==e){let t=Date.now();await ra(e,h,u,l,p,m,f);let r=Date.now();(0,rF.info)("took "+(d.format(t,r)||"0 seconds"));}}if(await $(ln),0===p.length&&0===f.length)return(0,rF.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of p)(0,rF.success)(e);for(let e of f)(0,rF.error)(e);if((0,rF.info)("setup-cpp finished"),!rj.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rF.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rF.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await s,0===f.length?0:1;}var rc,ru,rp,rf,rd,rh,rm,rv,rg,ry,rE,rw,r_,rb,rx,rS,rO,rR,rI,rT,rP,rN,rA,r$,rC,rL,rk,rD,rj,rF,rU,rM,rG,rB,rH,rq,rz,rV,rX,rW,rY,rK,rJ,rZ,rQ,r0,r1,r2,r3,r4,r6,r8,r5,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nf,nd,nh,nm,nv,ng,ny,nE,nw,n_,nb,nx,nS,nO,nR,nI,nT,nP,nN,nA,n$,nC,nL,nk,nD,nj,nF,nU,nM,nG,nB,nH,nq,nz,nV,nX,nW,nY,nK,nJ,nZ,nQ,n0,n1,n2,n3,n4,n6,n8,n5,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu,ip,id,ih,im,iv,ig,iy,iE,iw,i_,ib,ix,iS,iO,iR,iI,iT,iP,iN,iA,i$,iC,iL,ik,iD,ij,iF,iU,iM,iG,iB,iH,iq,iz=require("os"),iV=require("path"),iX=require("fs"),iW=require("crypto"),iY=require("http"),iK=require("https");require("net"),rf=require("tls"),rd=require("events"),rh=require("assert"),rm=require("util"),rv=require("fs"),rg=require("child_process"),ry=require("string_decoder"),rE=require("timers"),rw=require("buffer"),r_=require("path"),rb=require("child_process"),rx=require("process"),rS=require("url"),rO=require("os"),rR=require("buffer"),rI=require("stream"),rT=require("util"),rP=require("process"),rN=require("url"),rA=require("console"),rC={},rL={},null==(rk=(r$=globalThis).parcelRequire810d)&&((rk=function(e){if(e in rC)return rC[e].exports;if(e in rL){var t=rL[e];delete rL[e];var r={id:e,exports:{}};return rC[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rL[e]=t;},r$.parcelRequire810d=rk),(rD=rk.register)("dKklS",function(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(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rk("ksAXT");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)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(function(e){return!!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));}),rD("ksAXT",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"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":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"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":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"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":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"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":"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":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"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"}]');}),rD("pcnv8",function(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 c(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}l(e.exports,"error",()=>i),l(e.exports,"success",()=>o),l(e.exports,"warning",()=>s),l(e.exports,"notice",()=>a),l(e.exports,"info",()=>c),r=rk("k1l4q"),n=rk("dKklS");}),rD("k1l4q",function(e,t){var r,n,i,o,s,a,l,c,u,p,f,d;function h(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 v(e){s.issue("group",e);}function g(){s.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.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=rk("ekchs"),a=rk("lyZGK"),l=rk("iYcPV");let y=i(iz),E=i(iV);c=rk("dqF37"),(d=u=e.exports.ExitCode||(e.exports.ExitCode={}))[d.Success=0]="Success",d[d.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return a.issueFileCommand("ENV",a.prepareKeyValueMessage(e,t));s.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){s.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?a.issueFileCommand("PATH",e):s.issueCommand("add-path",{},e),process.env.PATH=`${e}${E.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e} Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return a.issueFileCommand("OUTPUT",a.prepareKeyValueMessage(e,t));process.stdout.write(y.EOL),s.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){s.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=u.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){s.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){s.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){s.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+y.EOL);},e.exports.startGroup=v,e.exports.endGroup=g,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;v(e);try{r=yield t();}finally{g();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return a.issueFileCommand("STATE",a.prepareKeyValueMessage(e,t));s.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield c.OidcClient.getIDToken(e);});},p=rk("1mzjm"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rk("1mzjm"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),f=rk("31rWp"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return f.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return f.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return f.toPlatformPath;}});}),rD("ekchs",function(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);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let a=i(iz);o=rk("iYcPV"),e.exports.issueCommand=s,e.exports.issue=function(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")));}}}),rD("iYcPV",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rD("lyZGK",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let a=i(iX),l=i(iz);o=rk("bTj1Z"),s=rk("iYcPV"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!a.existsSync(r))throw Error("Missing file at path: "+r);a.appendFileSync(r,`${s.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(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}`;};}),rD("bTj1Z",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rk("5x7Ba"),n=rk("FUqvx"),i=function(e,t,i){let o=(e=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);};}),rD("5x7Ba",function(e,t){function r(){return i>n.length-16&&(c(iW).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rD("FUqvx",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rk("kYWmF");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(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;};}),rD("kYWmF",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rk("1J9r9"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rD("1J9r9",function(e,t){l(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;}),rD("dqF37",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rk("3bZps"),i=rk("f85aw"),o=rk("k1l4q");class s{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(s.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=s.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rD("3bZps",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r];}}),Object.defineProperty(e,n,i);}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(iY),f=i(iK),d=i(rk("iZzl4")),h=i(rk("bbp3j"));(c=s||(e.exports.HttpCodes=s={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a||(e.exports.Headers=a={})).Accept="accept",u.ContentType="content-type",(l||(e.exports.MediaTypes=l={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=d.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype);}}e.exports.HttpClientError=y;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());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=[];this.message.on("data",e=>{t.push(e);}),this.message.on("end",()=>{e(Buffer.concat(t));});}));});}}e.exports.HttpClientResponse=E,e.exports.isHttps=function(e){return"https:"===new URL(e).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&&g.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&&m.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||!v.includes(i.message.statusCode))break;(c+=1){this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;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=>{i(void 0,new E(e));});s.on("socket",e=>{n=e;}),s.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),s.on("error",function(e){i(e);}),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){s.end();}),t.pipe(s)):s.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}getAgentDispatcher(e){return o(this,void 0,void 0,function*(){let t=new URL(e),r=d.getProxyUrl(t);if(r&&r.hostname)return yield this._getProxyAgentDispatcher(t,r);});}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?f:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},w(this.requestOptions.headers),w(e||{})):w(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=w(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),n||(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={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})},s="https:"===r.protocol;t=(i?s?h.httpsOverHttps:h.httpsOverHttp:s?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new f.Agent(e):new p.Agent(e),this._agent=t;}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_getProxyAgentDispatcher(e,t){return o(this,void 0,void 0,function*(){let r;if(this._keepAlive&&(r=this._proxyAgentDispatcher),r)return r;let n="https:"===e.protocol;return r=new(yield Promise.resolve().then(function(){return rk("4vDZ9");}).then(e=>i(e)))(Object.assign({uri:t.href,pipelining:this._keepAlive?1:0},(t.username||t.password)&&{token:"Basic "+Buffer.from(`${t.username}:${t.password}`).toString("base64")})),this._proxyAgentDispatcher=r,n&&this._ignoreSslError&&(r.options=Object.assign(r.options.requestTls||{},{rejectUnauthorized:!1})),r;});}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,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,function*(){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,function(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;let t=new y(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${a})`,a);t.result=l.result,n(t);}else r(l);}));});}};let w=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rD("iZzl4",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let i=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(i)try{return new n(i);}catch(e){if(!i.startsWith("http://")&&!i.startsWith("https://"))return new n("http://"+i);}},e.exports.checkBypass=r;class n extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password);}get username(){return this._decodedUsername;}get password(){return this._decodedPassword;}}}),rD("bbp3j",function(e,t){e.exports=rk("fNJ5J");}),rD("fNJ5J",function(e,t){var r,n,i,o,s,a;function c(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||iY.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(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 u(e,t){var r=this;c.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=f({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=rf.connect(0,o);r.sockets[r.sockets.indexOf(n)]=s,t(s);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function f(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;}l(e.exports,"httpOverHttp",()=>r,e=>r=e),l(e.exports,"httpsOverHttp",()=>n,e=>n=e),l(e.exports,"httpOverHttps",()=>i,e=>i=e),l(e.exports,"httpsOverHttps",()=>o,e=>o=e),l(e.exports,"debug",()=>s,e=>s=e),r=function(e){var t=new c(e);return t.request=iY.request,t;},n=function(e){var t=new c(e);return t.request=iY.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=iK.request,t;},o=function(e){var t=new c(e);return t.request=iK.request,t.createSocket=u,t.defaultPort=443,t;},rm.inherits(c,rd.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=f({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},c.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=f({},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",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(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();},c.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?a=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:a=function(){},s=a;}),rD("4vDZ9",function(e,t){e.exports=Promise.resolve(require("./proxy-agent.5536f8bd.js")).then(()=>rk("5IibL"));}),rD("f85aw",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rD("1mzjm",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=iX.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,iX.constants.R_OK|iX.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(iz.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;}),rD("31rWp",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(iV);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rD("ftrAD",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;ni),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>f),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readFile",()=>v),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>_),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>O),l(e.exports,"writeFile",()=>R),l(e.exports,"rm",()=>I),iX.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:f,mkdtemp:d,open:h,readdir:m,readFile:v,readlink:g,realpath:y,rename:E,rmdir:w,stat:_,symlink:b,truncate:x,unlink:S,utimes:O,writeFile:R}=iX.promises,I="rm"in iX.promises?iX.promises.rm:(0,rm.promisify)(iX.unlink);}),rD("h5DII",function(e,t){e.exports=function(){};}),rD("3PDBf",function(e,t){e.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20);};}),rD("01ud6",function(e,t){e.exports=function(e){return isNaN(e=+e)||0===e?e:e>0?1:-1;};}),rD("iGjce",function(e,t){var r=rk("czzoJ"),n=rk("gm8vF"),i=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,a=Object.prototype.propertyIsEnumerable;e.exports=function(e,t){return function(l,c){var u,p=arguments[2],f=arguments[3];return l=Object(n(l)),r(c),u=s(l),f&&u.sort("function"==typeof f?i.call(f,l):void 0),"function"!=typeof e&&(e=u[e]),o.call(e,u,function(e,r){return a.call(l,e)?o.call(c,p,l[e],e,l,r):t;});};};}),rD("czzoJ",function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function");return e;};}),rD("gm8vF",function(e,t){var r=rk("cJ0vr");e.exports=function(e){if(!r(e))throw TypeError("Cannot use null or undefined");return e;};}),rD("cJ0vr",function(e,t){var r=rk("h5DII")();e.exports=function(e){return e!==r&&null!==e;};}),rD("e4Lgg",function(e,t){}),rD("jyCUJ",function(e,t){e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy");};}),rD("1dJjv",function(e,t){var r=rk("gK5RI"),n=rk("gm8vF"),i=Math.max;e.exports=function(e,t){var o,s,a,l=i(arguments.length,2);for(s=1,e=Object(n(e)),a=function(r){try{e[r]=t[r];}catch(e){o||(o=e);}};l>s;++s)t=arguments[s],r(t).forEach(a);if(void 0!==o)throw o;return e;};}),rD("gK5RI",function(e,t){e.exports=rk("jF45l")()?Object.keys:rk("4MK4A");}),rD("jF45l",function(e,t){e.exports=function(){try{return Object.keys("primitive"),!0;}catch(e){return!1;}};}),rD("4MK4A",function(e,t){var r=rk("cJ0vr"),n=Object.keys;e.exports=function(e){return n(r(e)?Object(e):e);};}),rD("1733k",function(e,t){var r=rk("gm8vF"),n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols;e.exports=function(e,t){var a,l=Object(r(t));if(e=Object(r(e)),o(l).forEach(function(r){try{n(e,r,i(t,r));}catch(e){a=e;}}),"function"==typeof s&&s(l).forEach(function(r){try{n(e,r,i(t,r));}catch(e){a=e;}}),void 0!==a)throw a;return e;};}),rD("j7soM",function(e,t){var r="razdwatrzy";e.exports=function(){return"function"==typeof r.contains&&!0===r.contains("dwa")&&!1===r.contains("foo");};}),rD("78Sfc",function(e,t){var r=String.prototype.indexOf;e.exports=function(e){return r.call(this,e,arguments[1])>-1;};}),rD("9E9rT",function(e,t){var r,n,i,o,s,a,l,c=rk("9xcfl"),u=rk("czzoJ"),p=Function.prototype.apply,f=Function.prototype.call,d=Object.create,h=Object.defineProperty,m=Object.defineProperties,v=Object.prototype.hasOwnProperty,g={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var r;return u(t),v.call(this,"__ee__")?r=this.__ee__:(r=g.value=d(null),h(this,"__ee__",g),g.value=null),r[e]?"object"==typeof r[e]?r[e].push(t):r[e]=[r[e],t]:r[e]=t,this;},n=function(e,t){var n,o;return u(t),o=this,r.call(this,e,n=function(){i.call(o,e,n),p.call(t,this,arguments);}),n.__eeOnceListener__=t,this;},s={on:r,once:n,off:i=function(e,t){var r,n,i,o;if(u(t),!v.call(this,"__ee__")||!(r=this.__ee__)[e])return this;if("object"==typeof(n=r[e]))for(o=0;i=n[o];++o)(i===t||i.__eeOnceListener__===t)&&(2===n.length?r[e]=n[o?0:1]:n.splice(o,1));else(n===t||n.__eeOnceListener__===t)&&delete r[e];return this;},emit:o=function(e){var t,r,n,i,o;if(v.call(this,"__ee__")&&(i=this.__ee__[e])){if("object"==typeof i){for(t=1,r=arguments.length,o=Array(r-1);r>t;++t)o[t-1]=arguments[t];for(t=0,i=i.slice();n=i[t];++t)p.call(n,this,o);}else switch(arguments.length){case 1:f.call(i,this);break;case 2:f.call(i,this,arguments[1]);break;case 3:f.call(i,this,arguments[1],arguments[2]);break;default:for(t=1,r=arguments.length,o=Array(r-1);r>t;++t)o[t-1]=arguments[t];p.call(i,this,o);}}}},l=m({},a={on:c(r),once:c(n),off:c(i),emit:c(o)}),e.exports=t=function(e){return null==e?d(l):m(Object(e),a);},t.methods=s;}),rD("9xcfl",function(e,t){var r=rk("6WFxD"),n=rk("9ruXB"),i=rk("kg6aw"),o=rk("cgM1r"),s=rk("2ynAk");(e.exports=function(e,t){var n,a,l,c,u;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],r(e)?(n=s.call(e,"c"),a=s.call(e,"e"),l=s.call(e,"w")):(n=l=!0,a=!1),u={value:t,configurable:n,enumerable:a,writable:l},c?i(o(c),u):u;}).gs=function(e,t,a){var l,c,u,p;return"string"!=typeof e?(u=a,a=t,t=e,e=null):u=arguments[3],r(t)?n(t)?r(a)?n(a)||(u=a,a=void 0):a=void 0:(u=t,t=a=void 0):t=void 0,r(e)?(l=s.call(e,"c"),c=s.call(e,"e")):(l=!0,c=!1),p={get:t,set:a,configurable:l,enumerable:c},u?i(o(u),p):p;};}),rD("6WFxD",function(e,t){var r=void 0;e.exports=function(e){return e!==r&&null!==e;};}),rD("9ruXB",function(e,t){var r=rk("ic21Z"),n=Function.prototype.toString;e.exports=function(e){return!(!r(e)||/^\s*class[\s{/}]/.test(n.call(e)));};}),rD("ic21Z",function(e,t){var r=rk("jYida");e.exports=function(e){if("function"!=typeof e||!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length||"function"!=typeof e.call||"function"!=typeof e.apply)return!1;}catch(e){return!1;}return!r(e);};}),rD("jYida",function(e,t){var r=rk("29Ioz");e.exports=function(e){if(!r(e))return!1;try{if(!e.constructor)return!1;return e.constructor.prototype===e;}catch(e){return!1;}};}),rD("29Ioz",function(e,t){var r=rk("6WFxD"),n={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(n,typeof e);};}),rD("kg6aw",function(e,t){e.exports=rk("jyCUJ")()?Object.assign:rk("1dJjv");}),rD("cgM1r",function(e,t){var r=rk("cJ0vr"),n=Array.prototype.forEach,i=Object.create,o=function(e,t){var r;for(r in e)t[r]=e[r];};e.exports=function(e){var t=i(null);return n.call(arguments,function(e){r(e)&&o(Object(e),t);}),t;};}),rD("2ynAk",function(e,t){e.exports=rk("j7soM")()?String.prototype.contains:rk("78Sfc");}),rD("16yrb",function(e,t){e.exports=function(){var e,t,r=Array.from;return"function"==typeof r&&!!((t=r(e=["raz","dwa"]))&&t!==e&&"dwa"===t[1]);};}),rD("76jlv",function(e,t){var r=rk("7VWWn").iterator,n=rk("aRDzb"),i=rk("dfN19"),o=rk("lFuzu"),s=rk("czzoJ"),a=rk("gm8vF"),l=rk("cJ0vr"),c=rk("96dkr"),u=Array.isArray,p=Function.prototype.call,f={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(e){var t,h,m,v,g,y,E,w,_,b,x=arguments[1],S=arguments[2];if(e=Object(a(e)),l(x)&&s(x),this&&this!==Array&&i(this))t=this;else{if(!x){if(n(e))return 1!==(g=e.length)?Array.apply(null,e):((v=[,])[0]=e[0],v);if(u(e)){for(h=0,v=Array(g=e.length);g>h;++h)v[h]=e[h];return v;}}v=[];}if(!u(e)){if(void 0!==(_=e[r])){for(E=s(_).call(e),t&&(v=new t()),w=E.next(),h=0;!w.done;)b=x?p.call(x,S,w.value,h):w.value,t?(f.value=b,d(v,h,f)):v[h]=b,w=E.next(),++h;g=h;}else if(c(e)){for(g=e.length,t&&(v=new t()),h=0,m=0;g>h;++h)b=e[h],h+1=55296&&y<=56319&&(b+=e[++h]),b=x?p.call(x,S,b,m):b,t?(f.value=b,d(v,m,f)):v[m]=b,++m;g=m;}}if(void 0===g)for(g=o(e.length),t&&(v=new t(g)),h=0;g>h;++h)b=x?p.call(x,S,e[h],h):e[h],t?(f.value=b,d(v,h,f)):v[h]=b;return t&&(f.value=null,v.length=g),v;};}),rD("7VWWn",function(e,t){e.exports=rk("jVPv5")()?rk("cuWno").Symbol:rk("9Pvgk");}),rD("jVPv5",function(e,t){var r=rk("cuWno"),n={object:!0,symbol:!0};e.exports=function(){var e=r.Symbol;return"function"==typeof e&&(e("test symbol"),!!n[typeof e.iterator]&&!!n[typeof e.toPrimitive]&&!!n[typeof e.toStringTag]);};}),rD("cuWno",function(e,t){e.exports=rk("jRf15")()?globalThis:rk("0DgUa");}),rD("jRf15",function(e,t){e.exports=function(){return!!("object"==typeof globalThis&&globalThis)&&globalThis.Array===Array;};}),rD("0DgUa",function(e,t){var r=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw Error("Unable to resolve global `this`");};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this;},configurable:!0});}catch(e){return r();}try{if(!__global__)return r();return __global__;}finally{delete Object.prototype.__global__;}}();}),rD("9Pvgk",function(e,t){var r,n,i,o=rk("9xcfl"),s=rk("i6cH8"),a=rk("cuWno").Symbol,l=rk("cRR41"),c=rk("hIvqG"),u=rk("6Fh4Q"),p=Object.create,f=Object.defineProperties,d=Object.defineProperty;if("function"==typeof a)try{a(),i=!0;}catch(e){}else a=null;n=function(e){if(this instanceof n)throw TypeError("Symbol is not a constructor");return r(e);},e.exports=r=function e(t){if(this instanceof e)throw TypeError("Symbol is not a constructor");return i?a(t):f(p(n.prototype),{__description__:o("",t=void 0===t?"":t+""),__name__:o("",l(t))});},c(r),u(r),f(n.prototype,{constructor:o(r),toString:o("",function(){return this.__name__;})}),f(r.prototype,{toString:o(function(){return"Symbol ("+s(this).__description__+")";}),valueOf:o(function(){return s(this);})}),d(r.prototype,r.toPrimitive,o("",function(){var e=s(this);return"symbol"==typeof e?e:e.toString();})),d(r.prototype,r.toStringTag,o("c","Symbol")),d(n.prototype,r.toStringTag,o("c",r.prototype[r.toStringTag])),d(n.prototype,r.toPrimitive,o("c",r.prototype[r.toPrimitive]));}),rD("i6cH8",function(e,t){var r=rk("jKzLn");e.exports=function(e){if(!r(e))throw TypeError(e+" is not a symbol");return e;};}),rD("jKzLn",function(e,t){e.exports=function(e){return!!e&&("symbol"==typeof e||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]);};}),rD("cRR41",function(e,t){var r=rk("9xcfl"),n=Object.defineProperty,i=Object.prototype,o=(0,Object.create)(null);e.exports=function(e){for(var t,s,a=0;o[e+(a||"")];)++a;return o[e+=a||""]=!0,n(i,t="@@"+e,r.gs(null,function(e){s||(s=!0,n(this,t,r(e)),s=!1);})),t;};}),rD("hIvqG",function(e,t){var r=rk("9xcfl"),n=rk("cuWno").Symbol;e.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",n&&n.hasInstance||e("hasInstance")),isConcatSpreadable:r("",n&&n.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",n&&n.iterator||e("iterator")),match:r("",n&&n.match||e("match")),replace:r("",n&&n.replace||e("replace")),search:r("",n&&n.search||e("search")),species:r("",n&&n.species||e("species")),split:r("",n&&n.split||e("split")),toPrimitive:r("",n&&n.toPrimitive||e("toPrimitive")),toStringTag:r("",n&&n.toStringTag||e("toStringTag")),unscopables:r("",n&&n.unscopables||e("unscopables"))});};}),rD("6Fh4Q",function(e,t){var r=rk("9xcfl"),n=rk("i6cH8"),i=Object.create(null);e.exports=function(e){return Object.defineProperties(e,{for:r(function(t){return i[t]?i[t]:i[t]=e(t+"");}),keyFor:r(function(e){var t;for(t in n(e),i)if(i[t]===e)return t;})});};}),rD("aRDzb",function(e,t){var r=Object.prototype.toString,n=r.call(function(){return arguments;}());e.exports=function(e){return r.call(e)===n;};}),rD("dfN19",function(e,t){var r=Object.prototype.toString,n=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(e){return"function"==typeof e&&n(r.call(e));};}),rD("lFuzu",function(e,t){var r=rk("5c2FR"),n=Math.max;e.exports=function(e){return n(0,r(e));};}),rD("5c2FR",function(e,t){var r=rk("k2sGI"),n=Math.abs,i=Math.floor;e.exports=function(e){return isNaN(e)?0:0!=(e=+e)&&isFinite(e)?r(e)*i(n(e)):e;};}),rD("k2sGI",function(e,t){e.exports=rk("3PDBf")()?Math.sign:rk("01ud6");}),rD("96dkr",function(e,t){var r=Object.prototype.toString,n=r.call("");e.exports=function(e){return"string"==typeof e||e&&"object"==typeof e&&(e instanceof String||r.call(e)===n)||!1;};}),rD("2aBcN",function(e,t){e.exports=function(e){var t,r,n=e.length;if(!n)return"\x02";for(t=e[r=0]+"";--n;)t+="\x01"+e[++r];return t;};}),rD("hAul9",function(e,t){e.exports=function(e){return e?function(t){for(var r=t[0]+"",n=0,i=e;--i;)r+="\x01"+t[++n];return r;}:function(){return"";};};}),rD("7BD8r",function(e,t){var r=rk("dlgZx"),n=Object.create;e.exports=function(){var e=0,t=[],i=n(null);return{get:function(e){var n,i=0,o=t,s=e.length;if(0===s)return o[s]||null;if(o=o[s]){for(;i=0?l(u):n(this.length)-l(a(u));c>t;++t)if(s.call(this,t)&&r(this[t]))return t;return-1;};}),rD("3Fikq",function(e,t){e.exports=rk("e4HH5")()?Number.isNaN:rk("d2BiD");}),rD("e4HH5",function(e,t){e.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34);};}),rD("d2BiD",function(e,t){e.exports=function(e){return e!=e;};}),rD("61N6r",function(e,t){var r=rk("dlgZx");e.exports=function(){var e=0,t=[],n=[];return{get:function(e){var i=r.call(t,e[0]);return-1===i?null:n[i];},set:function(r){return t.push(r[0]),n.push(++e),e;},delete:function(e){var i=r.call(n,e);-1!==i&&(t.splice(i,1),n.splice(i,1));},clear:function(){t=[],n=[];}};};}),rD("hqtiJ",function(e,t){var r=rk("dlgZx"),n=Object.create;e.exports=function(e){var t=0,i=[[],[]],o=n(null);return{get:function(t){for(var n,o=0,s=i;o100&&(t=t.slice(0,99)+"…"),t=t.replace(/[\n\r\u2028\u2029]/g,function(e){return JSON.stringify(e).slice(1,-1);});};}),rD("5uwxY",function(e,t){var r=rk("acEY7");e.exports=function(e){try{if(e&&r(e.toString))return e.toString();return e+"";}catch(e){return"";}};}),rD("3lsZz",function(e,t){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then;}e.exports=r,e.exports.default=r;}),rD("i7d4K",function(e,t){var r=rk("czzoJ"),n=rk("8KFbm"),i=rk("e4Lgg"),o=Function.prototype.apply;i.dispose=function(e,t,s){var a;if(r(e),s.async&&i.async||s.promise&&i.promise){t.on("deleteasync",a=function(t,r){o.call(e,null,r);}),t.on("clearasync",function(e){n(e,function(e,t){a(t,e);});});return;}t.on("delete",a=function(t,r){e(r);}),t.on("clear",function(e){n(e,function(e,t){a(t,e);});});};}),rD("b1mdU",function(e,t){var r=rk("lCzSe"),n=rk("8KFbm"),i=rk("aDo18"),o=rk("3lsZz"),s=rk("frVfT"),a=rk("e4Lgg"),l=Function.prototype,c=Math.max,u=Math.min,p=Object.create;a.maxAge=function(e,t,f){var d,h,m,v;(e=s(e))&&(d=p(null),h=f.async&&a.async||f.promise&&a.promise?"async":"",t.on("set"+h,function(r){d[r]=setTimeout(function(){t.delete(r);},e),"function"==typeof d[r].unref&&d[r].unref(),v&&(v[r]&&"nextTick"!==v[r]&&clearTimeout(v[r]),v[r]=setTimeout(function(){delete v[r];},m),"function"==typeof v[r].unref&&v[r].unref());}),t.on("delete"+h,function(e){clearTimeout(d[e]),delete d[e],v&&("nextTick"!==v[e]&&clearTimeout(v[e]),delete v[e]);}),f.preFetch&&(m=!0===f.preFetch||isNaN(f.preFetch)?.333:c(u(+f.preFetch,1),0))&&(v={},m=(1-m)*e,t.on("get"+h,function(e,n,s){v[e]||(v[e]="nextTick",i(function(){var i;"nextTick"===v[e]&&(delete v[e],t.delete(e),f.async&&(n=r(n)).push(l),i=t.memoized.apply(s,n),f.promise&&o(i)&&("function"==typeof i.done?i.done(l,l):i.then(l,l)));}));})),t.on("clear"+h,function(){n(d,function(e){clearTimeout(e);}),d={},v&&(n(v,function(e){"nextTick"!==e&&clearTimeout(e);}),v={});}));};}),rD("frVfT",function(e,t){var r=rk("lFuzu"),n=rk("6prMa");e.exports=function(e){if((e=r(e))>n)throw TypeError(e+" exceeds maximum possible timeout");return e;};}),rD("6prMa",function(e,t){e.exports=2147483647;}),rD("dZT72",function(e,t){var r=rk("lFuzu"),n=rk("bE3O1"),i=rk("e4Lgg");i.max=function(e,t,o){var s,a,l;(e=r(e))&&(a=n(e),s=o.async&&i.async||o.promise&&i.promise?"async":"",t.on("set"+s,l=function(e){void 0!==(e=a.hit(e))&&t.delete(e);}),t.on("get"+s,l),t.on("delete"+s,a.delete),t.on("clear"+s,a.clear));};}),rD("bE3O1",function(e,t){var r=rk("lFuzu"),n=Object.create,i=Object.prototype.hasOwnProperty;e.exports=function(e){var t,o=0,s=1,a=n(null),l=n(null),c=0;return e=r(e),{hit:function(r){var n=l[r],u=++c;if(a[u]=r,l[r]=u,!n){if(++o<=e)return;return r=a[s],t(r),r;}if(delete a[n],s===n)for(;!i.call(a,++s);)continue;},delete:t=function(e){var t=l[e];if(t&&(delete a[t],delete l[e],--o,s===t)){if(!o){c=0,s=1;return;}for(;!i.call(a,++s);)continue;}},clear:function(){o=0,s=1,a=n(null),l=n(null),c=0;}};};}),rD("eA2P6",function(e,t){var r=rk("9xcfl"),n=rk("e4Lgg"),i=Object.create,o=Object.defineProperties;n.refCounter=function(e,t,s){var a,l;a=i(null),l=s.async&&n.async||s.promise&&n.promise?"async":"",t.on("set"+l,function(e,t){a[e]=t||1;}),t.on("get"+l,function(e){++a[e];}),t.on("delete"+l,function(e){delete a[e];}),t.on("clear"+l,function(){a={};}),o(t.memoized,{deleteRef:r(function(){var e=t.get(arguments);return null!==e&&a[e]?! --a[e]&&(t.delete(e),!0):null;}),getRefCount:r(function(){var e=t.get(arguments);return null!==e&&a[e]?a[e]:0;})});};}),rD("ibhuk",function(e,t){async function r(e){try{return await(0,rv.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rD("sOzdu",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rD("j5MHF",function(e,t){var r=iV.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])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rD("2KdLC",function(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=rk("5FRs7"),i=rk("3Zbea");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:function(e){return e=Object.assign({},s,e||{}),{format:function(t,s,l){return function(e,t,s){if(function(e,t){let{autoload:n}=t;if(!a[e]){if(i&&n)(function(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=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),c=[];for(let e of l){let[t,r]=e;if(r>0&&c.push(function(e,t,r){let i=function(e){let t=a[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).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};}),rD("5FRs7",function(e,t){e.exports=rk("j5MHF");}),rD("3Zbea",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rD("51NgG",function(e,t){var r=rk("a4A3m"),n=rk("gzZHc"),i=rk("8wL3J"),o=rk("9kOAd"),s=rk("dJ3EL"),a=rk("2owFL"),l=rk("kBdlj"),c=rk("bFSJ9"),u=rk("bdHiQ"),p=rk("gWZ4x"),f=rk("dLri9"),d=rk("2tsX7"),h=rk("3lzLT"),m=rk("fYuCK"),v=rk("6LnSq"),g=rk("dZkNJ"),y=rk("2Qi5H"),E=rk("fJeYC"),w=rk("j1k1X"),_=rk("ccAMb"),b=rk("4qy3a"),x=rk("3ovyF"),S=rk("laDmN"),O=rk("3cxkY"),R=rk("aTQrN"),I=rk("5kn9j"),T=rk("8YrRN"),P=rk("fNiVh"),N=rk("gTfXP"),A=rk("kPBDZ"),$=rk("cVl8o"),C=rk("j0UMd"),L=rk("kgJyO"),k=rk("k8woQ"),D=rk("cQA7W"),j=rk("j3dZX"),F=rk("bENPT"),U=rk("iehU8"),M=rk("5NOPx"),G=rk("fdN0I"),B=rk("lxNIV");e.exports={parse:s,valid:a,clean:l,inc:c,diff:u,major:p,minor:f,patch:d,prerelease:h,compare:m,rcompare:v,compareLoose:g,compareBuild:y,sort:E,rsort:w,gt:_,lt:b,eq:x,neq:S,gte:O,lte:R,cmp:I,coerce:T,Comparator:P,Range:N,satisfies:A,toComparators:$,maxSatisfying:C,minSatisfying:L,minVersion:k,validRange:D,outside:j,gtr:F,ltr:U,intersects:M,simplifyRange:G,subset:B,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),rD("a4A3m",function(e,t){var r=rk("gzZHc"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=r.MAX_LENGTH,s=rk("cg13c");let a=(t=e.exports={}).re=[],l=t.safeRe=[],c=t.src=[],u=t.t={},p=0,f="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",o],[f,i]],h=e=>{for(let[t,r]of d)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;s(e,i,t),u[e]=i,c[i]=t,a[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${f}*`),m("MAINVERSION",`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${c[u.NUMERICIDENTIFIER]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${c[u.NUMERICIDENTIFIERLOOSE]}|${c[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${f}+`),m("BUILD",`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),m("FULL",`^${c[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),m("LOOSE",`^${c[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),m("XRANGE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?`+`(?:${c[u.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",c[u.COERCE],!0),m("COERCERTLFULL",c[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${c[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${c[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rD("gzZHc",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rD("cg13c",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rD("8wL3J",function(e,t){var r=rk("cg13c"),n=rk("gzZHc"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rk("a4A3m"),a=s.safeRe,l=s.t,c=rk("5bRb1"),u=rk("9kOAd").compareIdentifiers;class p{constructor(e,t){if(t=c(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?a[l.LOOSE]:a[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rD("5bRb1",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rD("9kOAd",function(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)};}),rD("dJ3EL",function(e,t){var r=rk("8wL3J");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;}};}),rD("2owFL",function(e,t){var r=rk("dJ3EL");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rD("kBdlj",function(e,t){var r=rk("dJ3EL");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rD("bFSJ9",function(e,t){var r=rk("8wL3J");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rD("bdHiQ",function(e,t){var r=rk("dJ3EL");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let s=o>0,a=s?n:i,l=s?i:n,c=!!a.prerelease.length;if(l.prerelease.length&&!c)return l.patch||l.minor?a.patch?"patch":a.minor?"minor":"major":"major";let u=c?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease";};}),rD("gWZ4x",function(e,t){var r=rk("8wL3J");e.exports=(e,t)=>new r(e,t).major;}),rD("dLri9",function(e,t){var r=rk("8wL3J");e.exports=(e,t)=>new r(e,t).minor;}),rD("2tsX7",function(e,t){var r=rk("8wL3J");e.exports=(e,t)=>new r(e,t).patch;}),rD("3lzLT",function(e,t){var r=rk("dJ3EL");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rD("fYuCK",function(e,t){var r=rk("8wL3J");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rD("6LnSq",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>r(t,e,n);}),rD("dZkNJ",function(e,t){var r=rk("fYuCK");e.exports=(e,t)=>r(e,t,!0);}),rD("2Qi5H",function(e,t){var r=rk("8wL3J");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rD("fJeYC",function(e,t){var r=rk("2Qi5H");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rD("j1k1X",function(e,t){var r=rk("2Qi5H");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rD("ccAMb",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>r(e,t,n)>0;}),rD("4qy3a",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>0>r(e,t,n);}),rD("3ovyF",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>0===r(e,t,n);}),rD("laDmN",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>0!==r(e,t,n);}),rD("3cxkY",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rD("aTQrN",function(e,t){var r=rk("fYuCK");e.exports=(e,t,n)=>0>=r(e,t,n);}),rD("5kn9j",function(e,t){var r=rk("3ovyF"),n=rk("laDmN"),i=rk("ccAMb"),o=rk("3cxkY"),s=rk("4qy3a"),a=rk("aTQrN");e.exports=(e,t,l,c)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,c);case"!=":return n(e,l,c);case">":return i(e,l,c);case">=":return o(e,l,c);case"<":return s(e,l,c);case"<=":return a(e,l,c);default:throw TypeError("Invalid operator: "+t);}};}),rD("8YrRN",function(e,t){var r=rk("8wL3J"),n=rk("dJ3EL"),i=rk("a4A3m"),o=i.safeRe,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 r;let n=t.includePrerelease?o[s.COERCERTLFULL]:o[s.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[s.COERCEFULL]:o[s.COERCE]);if(null===i)return null;let a=i[2],l=i[3]||"0",c=i[4]||"0",u=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${a}.${l}.${c}${u}${p}`,t);};}),rD("fNiVh",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}c("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this);}parse(e){let t=this.options.loose?s[a.COMPARATORLOOSE]:s[a.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rk("5bRb1"),o=rk("a4A3m"),s=o.safeRe,a=o.t,l=rk("5kn9j"),c=rk("cg13c"),u=rk("8wL3J"),p=rk("gTfXP");}),rD("gTfXP",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().replace(/\s+/g," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&y(e[0])){this.set=[e];break;}}}this.formatted=void 0;}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let t=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim();}}return this.formatted;}format(){return this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&v))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,a=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];s("hyphen replace",e=e.replace(a,N(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],f)),s("caret trim",e=e.replace(c[u.CARETTRIM],d));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>P(e,this.options));i&&(l=l.filter(e=>(s("loose invalid filter",e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),s("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(g(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let y=[...h.values()];return n.set(t,y),y;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>E(r,t)&&e.set.some(e=>E(e,t)&&r.every(r=>e.every(e=>r.intersects(e,t)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options);}catch(e){return!1;}for(let t=0;t"<0.0.0-0"===e.value,y=e=>""===e.value,E=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},w=(e,t)=>(s("comp",e,t),s("caret",e=S(e,t)),s("tildes",e=b(e,t)),s("xrange",e=R(e,t)),s("stars",e=T(e,t)),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>x(e,t)).join(" "),x=(e,t)=>{let r=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(r,(t,r,n,i,o)=>{let a;return s("tilde",e,t,r,n,i,o),_(r)?a="":_(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:_(i)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,s("tilde return",a),a;});},S=(e,t)=>e.trim().split(/\s+/).map(e=>O(e,t)).join(" "),O=(e,t)=>{s("caret",e,t);let r=t.loose?c[u.CARETLOOSE]:c[u.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,a)=>{let l;return s("caret",e,t,r,i,o,a),_(r)?l="":_(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:a?(s("replaceCaret pr",a),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${a} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${a} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${a} <${+r+1}.0.0-0`):(s("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),s("caret return",l),l;});},R=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>I(e,t)).join(" ")),I=(e,t)=>{e=e.trim();let r=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(r,(r,n,i,o,a,l)=>{s("xRange",e,r,n,i,o,a,l);let c=_(i),u=c||_(o),p=u||_(a);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",c?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${a}${l}`):u?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),s("xRange return",r),r;});},T=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),P=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),N=e=>(t,r,n,i,o,s,a,l,c,u,p,f)=>(r=_(n)?"":_(i)?`>=${n}.0.0${e?"-0":""}`:_(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=_(c)?"":_(u)?`<${+c+1}.0.0-0`:_(p)?`<${c}.${+u+1}.0-0`:f?`<=${c}.${u}.${p}-${f}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),A=(e,t,r)=>{for(let r=0;r0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rD("3rMGs",function(e,t){e.exports=class{constructor(){this.max=1e3,this.map=new Map();}get(e){let t=this.map.get(e);if(void 0!==t)return this.map.delete(e),this.map.set(e,t),t;}delete(e){return this.map.delete(e);}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e);}this.map.set(e,t);}return this;}};}),rD("kPBDZ",function(e,t){var r=rk("gTfXP");e.exports=(e,t,n)=>{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rD("cVl8o",function(e,t){var r=rk("gTfXP");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rD("j0UMd",function(e,t){var r=rk("8wL3J"),n=rk("gTfXP");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||-1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rD("kgJyO",function(e,t){var r=rk("8wL3J"),n=rk("gTfXP");e.exports=(e,t,i)=>{let o=null,s=null,a=null;try{a=new n(t,i);}catch(e){return null;}return e.forEach(e=>{a.test(e)&&(!o||1===s.compare(e))&&(s=new r(o=e,i));}),o;};}),rD("k8woQ",function(e,t){var r=rk("8wL3J"),n=rk("gTfXP"),i=rk("ccAMb");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!s||i(t,s))&&(s=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),s&&(!o||i(o,s))&&(o=s);}return o&&e.test(o)?o:null;};}),rD("cQA7W",function(e,t){var r=rk("gTfXP");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rD("j3dZX",function(e,t){var r=rk("8wL3J"),n=rk("fNiVh");let{ANY:i}=n;var o=rk("gTfXP"),s=rk("kPBDZ"),a=rk("ccAMb"),l=rk("4qy3a"),c=rk("aTQrN"),u=rk("3cxkY");e.exports=(e,t,p,f)=>{let d,h,m,v,g;switch(e=new r(e,f),t=new o(t,f),p){case">":d=a,h=c,m=l,v=">",g=">=";break;case"<":d=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,f))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,d(e.semver,s.semver,f)?s=e:m(e.semver,a.semver,f)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rD("bENPT",function(e,t){var r=rk("j3dZX");e.exports=(e,t,n)=>r(e,t,">",n);}),rD("iehU8",function(e,t){var r=rk("j3dZX");e.exports=(e,t,n)=>r(e,t,"<",n);}),rD("5NOPx",function(e,t){var r=rk("gTfXP");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rD("fdN0I",function(e,t){var r=rk("kPBDZ"),n=rk("fYuCK");e.exports=(e,t,i)=>{let o=[],s=null,a=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(a=e,s||(s=e)):(a&&o.push([s,a]),a=null,s=null);s&&o.push([s,null]);let c=[];for(let[e,t]of o)e===t?c.push(e):t||e!==l[0]?t?e===l[0]?c.push("<="+t):c.push(`${e} - ${t}`):c.push(">="+e):c.push("*");let u=c.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return u.length=0.0.0-0")],l=[new n(">=0.0.0")],c=(e,t,r)=>{let n,c,f,d,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((f=s(n.semver,c.semver,r))>0||0===f&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let y=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,E=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(y&&1===y.prerelease.length&&"<"===c.operator&&0===y.prerelease[0]&&(y=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),">"===e.operator||">="===e.operator){if((d=u(n,e,r))===e&&d!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==f)return!1;}return(!n||!m||!!c||0===f)&&(!c||!v||!!n||0===f)&&!E&&!y;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rD("drEX5",function(e,t){var r,n,i,o,s,a,u,p,f,d,h,m,v;function g(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 y(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function E(e,t=!0){return t?(0,iV.basename)(e):(0,iV.basename)(e,(0,iV.extname)(e));}function w(e){return(0,iV.normalize)(e).replace(RegExp((0,r.default)(iV.sep)+"$"),"");}function _(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,iV.extname)(e),n=`${t}${(0,iV.basename)(e,r)}${r}`;return(0,iV.join)((0,iV.dirname)(e),n);}function x(e,t){let r=(0,iV.extname)(e),n=`${(0,iV.basename)(e,r)}${t}${r}`;return(0,iV.join)((0,iV.dirname)(e),n);}function S(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,iV.extname)(e).length;return e.slice(0,-t);}function I(e,t){return c(n)(e,t);}function T(e,t){let r=(0,iV.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+iV.sep)||r===(0,iV.resolve)(e));}l(e.exports,"addExeExt",()=>_),l(e.exports,"addShExt",()=>S),l(e.exports,"addShRelativePrefix",()=>O),l(e.exports,"dirname",()=>iV.dirname),l(e.exports,"join",()=>iV.join),r=rk("1ondq"),n=rk("7BfUa"),i={},y(o={},"name",()=>E),y(s={},"normalizeTrim",()=>w),y(a={},"addExeExt",()=>_),y(u={},"addNamePrefix",()=>b),y(p={},"addNameSuffix",()=>x),y(f={},"addShExt",()=>S),y(d={},"addShRelativePrefix",()=>O),y(h={},"removeExt",()=>R),y(m={},"replaceExt",()=>I),y(v={},"isPathInside",()=>T),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,f),g(i,d),g(i,h),g(i,m),g(i,v);}),rD("1ondq",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}l(e.exports,"default",()=>r);}),rD("7BfUa",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=iV.basename(e,iV.extname(e))+t,i=iV.join(iV.dirname(e),n);return(r=e.slice(0,2))==="."+iV.sep||"./"===r?"."+iV.sep+i:i;};}),rD("g9WSN",function(e,t){var r,n,i,o;function s(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function a(e){return o(this,void 0,void 0,function*(){rh.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(u.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.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 p.tryGetExecutablePath(u.join(i,e),t);r&&n.push(r);}return n;});}function c(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let u=i(iV),p=i(rk("2qpn6"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:s}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let f=l&&l.isDirectory()&&s?u.join(t,u.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield a(r),yield p.readdir(t))){let s=`${t}/${o}`,a=`${r}/${o}`;(yield p.lstat(s)).isDirectory()?yield e(s,a,n,i):yield c(s,a,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,f,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,f))throw Error(`'${f}' and '${e}' are the same file`);yield c(e,f,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=u.join(t,u.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield s(t);else throw Error("Destination already exists");}}yield a(u.dirname(t)),yield p.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,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.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;}),rD("2qpn6",function(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();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.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(iX),c=i(iV);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,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=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=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rD("6kHxT",function(e,t){var r,n,i,o,s;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let a=i(rk("a5mzA"));s=rk("k1l4q"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=iz.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=function(){let t=iz.platform(),r="";if("darwin"===t)r=rg.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return iX.existsSync(e)?r=iX.readFileSync(e).toString():iX.existsSync(t)&&(r=iX.readFileSync(t).toString()),r;};}),rD("a5mzA",function(e,t){function r(e){P[e]=N++;}function n(e){for(var t=0;t<$.length;t++){var r=$[t][0],n=$[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e;}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e||e.length>x||!(t.loose?I[P.LOOSE]:I[P.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>x)throw TypeError("version is longer than "+x+" characters");if(!(this instanceof o))return new o(e,t);b("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?I[P.LOOSE]:I[P.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(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&te?-1:1;}function a(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return a(e,t,r)>0;}function c(e,t,r){return 0>a(e,t,r);}function u(e,t,r){return 0===a(e,t,r);}function p(e,t,r){return 0!==a(e,t,r);}function f(e,t,r){return a(e,t,r)>=0;}function d(e,t,r){return 0>=a(e,t,r);}function h(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 u(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return f(e,r,n);case"<":return c(e,r,n);case"<=":return d(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);e=e.trim().split(/\s+/).join(" "),b("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===k?this.value="":this.value=this.operator+this.semver.version,b("comp",this);}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new v(e.raw,t);if(e instanceof m)return new v(e.value,t);if(!(this instanceof v))return new v(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function g(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function y(e){return!e||"x"===e.toLowerCase()||"*"===e;}function E(e,t,r,n,i,o,s,a,l,c,u,p,f){return((t=y(r)?"":y(n)?">="+r+".0.0":y(i)?">="+r+"."+n+".0":">="+t)+" "+(a=y(l)?"":y(c)?"<"+(+l+1)+".0.0":y(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+a)).trim();}function w(e,t,r){try{t=new v(t,r);}catch(e){return!1;}return t.test(e);}function _(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=d,a=c,u=">",p=">=";break;case"<":i=c,s=f,a=l,u="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(w(e,t,n))return!1;for(var i,s,a,u,p,h=0;h=0.0.0")),y=y||e,E=E||e,i(e.semver,y.semver,n)?y=e:a(e.semver,E.semver,n)&&(E=e);}),y.operator===u||y.operator===p||(!E.operator||E.operator===u)&&s(e,E.semver)||E.operator===p&&a(e,E.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?b=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:b=function(){},t.SEMVER_SPEC_VERSION="2.0.0",x=256,S=Number.MAX_SAFE_INTEGER||9007199254740991,O=x-6,R=t.re=[],I=t.safeRe=[],T=t.src=[],P=t.tokens={},N=0,$=[["\\s",1],["\\d",x],[A="[a-zA-Z0-9-]",O]],r("NUMERICIDENTIFIER"),T[P.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),T[P.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),T[P.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+A+"*",r("MAINVERSION"),T[P.MAINVERSION]="("+T[P.NUMERICIDENTIFIER]+")\\.("+T[P.NUMERICIDENTIFIER]+")\\.("+T[P.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),T[P.MAINVERSIONLOOSE]="("+T[P.NUMERICIDENTIFIERLOOSE]+")\\.("+T[P.NUMERICIDENTIFIERLOOSE]+")\\.("+T[P.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),T[P.PRERELEASEIDENTIFIER]="(?:"+T[P.NUMERICIDENTIFIER]+"|"+T[P.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),T[P.PRERELEASEIDENTIFIERLOOSE]="(?:"+T[P.NUMERICIDENTIFIERLOOSE]+"|"+T[P.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),T[P.PRERELEASE]="(?:-("+T[P.PRERELEASEIDENTIFIER]+"(?:\\."+T[P.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),T[P.PRERELEASELOOSE]="(?:-?("+T[P.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+T[P.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),T[P.BUILDIDENTIFIER]=A+"+",r("BUILD"),T[P.BUILD]="(?:\\+("+T[P.BUILDIDENTIFIER]+"(?:\\."+T[P.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),T[P.FULLPLAIN]="v?"+T[P.MAINVERSION]+T[P.PRERELEASE]+"?"+T[P.BUILD]+"?",T[P.FULL]="^"+T[P.FULLPLAIN]+"$",r("LOOSEPLAIN"),T[P.LOOSEPLAIN]="[v=\\s]*"+T[P.MAINVERSIONLOOSE]+T[P.PRERELEASELOOSE]+"?"+T[P.BUILD]+"?",r("LOOSE"),T[P.LOOSE]="^"+T[P.LOOSEPLAIN]+"$",r("GTLT"),T[P.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),T[P.XRANGEIDENTIFIERLOOSE]=T[P.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),T[P.XRANGEIDENTIFIER]=T[P.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),T[P.XRANGEPLAIN]="[v=\\s]*("+T[P.XRANGEIDENTIFIER]+")(?:\\.("+T[P.XRANGEIDENTIFIER]+")(?:\\.("+T[P.XRANGEIDENTIFIER]+")(?:"+T[P.PRERELEASE]+")?"+T[P.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),T[P.XRANGEPLAINLOOSE]="[v=\\s]*("+T[P.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[P.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+T[P.XRANGEIDENTIFIERLOOSE]+")(?:"+T[P.PRERELEASELOOSE]+")?"+T[P.BUILD]+"?)?)?",r("XRANGE"),T[P.XRANGE]="^"+T[P.GTLT]+"\\s*"+T[P.XRANGEPLAIN]+"$",r("XRANGELOOSE"),T[P.XRANGELOOSE]="^"+T[P.GTLT]+"\\s*"+T[P.XRANGEPLAINLOOSE]+"$",r("COERCE"),T[P.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),R[P.COERCERTL]=RegExp(T[P.COERCE],"g"),I[P.COERCERTL]=RegExp(n(T[P.COERCE]),"g"),r("LONETILDE"),T[P.LONETILDE]="(?:~>?)",r("TILDETRIM"),T[P.TILDETRIM]="(\\s*)"+T[P.LONETILDE]+"\\s+",R[P.TILDETRIM]=RegExp(T[P.TILDETRIM],"g"),I[P.TILDETRIM]=RegExp(n(T[P.TILDETRIM]),"g"),r("TILDE"),T[P.TILDE]="^"+T[P.LONETILDE]+T[P.XRANGEPLAIN]+"$",r("TILDELOOSE"),T[P.TILDELOOSE]="^"+T[P.LONETILDE]+T[P.XRANGEPLAINLOOSE]+"$",r("LONECARET"),T[P.LONECARET]="(?:\\^)",r("CARETTRIM"),T[P.CARETTRIM]="(\\s*)"+T[P.LONECARET]+"\\s+",R[P.CARETTRIM]=RegExp(T[P.CARETTRIM],"g"),I[P.CARETTRIM]=RegExp(n(T[P.CARETTRIM]),"g"),r("CARET"),T[P.CARET]="^"+T[P.LONECARET]+T[P.XRANGEPLAIN]+"$",r("CARETLOOSE"),T[P.CARETLOOSE]="^"+T[P.LONECARET]+T[P.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),T[P.COMPARATORLOOSE]="^"+T[P.GTLT]+"\\s*("+T[P.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),T[P.COMPARATOR]="^"+T[P.GTLT]+"\\s*("+T[P.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),T[P.COMPARATORTRIM]="(\\s*)"+T[P.GTLT]+"\\s*("+T[P.LOOSEPLAIN]+"|"+T[P.XRANGEPLAIN]+")",R[P.COMPARATORTRIM]=RegExp(T[P.COMPARATORTRIM],"g"),I[P.COMPARATORTRIM]=RegExp(n(T[P.COMPARATORTRIM]),"g"),C="$1$2$3",r("HYPHENRANGE"),T[P.HYPHENRANGE]="^\\s*("+T[P.XRANGEPLAIN]+")\\s+-\\s+("+T[P.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),T[P.HYPHENRANGELOOSE]="^\\s*("+T[P.XRANGEPLAINLOOSE]+")\\s+-\\s+("+T[P.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),T[P.STAR]="(<|>)?=?\\s*\\*";for(var b,x,S,O,R,I,T,P,N,A,$,C,L,k,D=0;D=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(u(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var s="prerelease";}for(var a in r)if(("major"===a||"minor"===a||"patch"===a)&&r[a]!==n[a])return o+a;return s;},t.compareIdentifiers=s,L=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return s(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=a,t.compareLoose=function(e,t){return a(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return a(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=c,t.eq=u,t.neq=p,t.gte=f,t.lte=d,t.cmp=h,t.Comparator=m,k={},m.prototype.parse=function(e){var t=this.options.loose?I[P.COMPARATORLOOSE]:I[P.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 o(r[2],this.options.loose):this.semver=k;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===k||e===k)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(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 v(e.value,t),w(this.value,r,t));if(""===e.operator)return""===e.value||(r=new v(this.value,t),w(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=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&s||a||l;},t.Range=v,v.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},v.prototype.toString=function(){return this.range;},v.prototype.parseRange=function(e){var t=this.options.loose,r=t?I[P.HYPHENRANGELOOSE]:I[P.HYPHENRANGE];e=e.replace(r,E),b("hyphen replace",e),e=e.replace(I[P.COMPARATORTRIM],C),b("comparator trim",e,I[P.COMPARATORTRIM]),e=(e=(e=e.replace(I[P.TILDETRIM],"$1~")).replace(I[P.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?I[P.COMPARATORLOOSE]:I[P.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,s,a,l,c;return t=e,r=this.options,b("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return b("caret",t=e,r=i),n=r.loose?I[P.CARETLOOSE]:I[P.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),y(r)?s="":y(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":y(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(b("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"):(b("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"),b("caret return",s),s;});}).join(" "),b("caret",t),o=t,s=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=s.loose?I[P.TILDELOOSE]:I[P.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),y(r)?s="":y(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":y(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(b("replaceTilde pr",o),s=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):s=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",b("tilde return",s),s;});}).join(" "),b("tildes",t),b("replaceXRanges",a=t,l=r),t=a.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?I[P.XRANGELOOSE]:I[P.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=y(i),c=l||y(o),u=c||y(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):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),b("xRange return",e),e;});}).join(" "),b("xrange",t),b("replaceStars",c=t,r),t=c.trim().replace(I[P.STAR],""),b("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},v.prototype.intersects=function(e,t){if(!(e instanceof v))throw TypeError("a Range is required");return this.set.some(function(r){return g(r,t)&&e.set.some(function(e){return g(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new v(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},v.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t0){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=w,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var s=new v(t,r);}catch(e){return null;}return e.forEach(function(e){s.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new v(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new v(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return _(e,t,"<",r);},t.gtr=function(e,t,r){return _(e,t,">",r);},t.outside=_,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new v(e,r),t=new v(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=I[P.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),I[P.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;I[P.COERCERTL].lastIndex=-1;}else n=e.match(I[P.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rD("iFKS7",function(e,t){var r=rk("joDHm"),n=rk("inTPA");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||n(s);};}),rD("joDHm",function(e,t){e.exports=function(){return iW.randomBytes(16);};}),rD("inTPA",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rD("ca0ts",function(e,t){var r,n,i,o;function s(e,t,r){return o(this,void 0,void 0,function*(){let n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let a=i(rk("e0fPv"));e.exports.exec=s,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",a="",l=new ry.StringDecoder("utf8"),c=new ry.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,f=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),p&&p(e);}}),d=yield s(e,t,Object.assign(Object.assign({},r),{listeners:f}));return o+=l.end(),a+=c.end(),{exitCode:d,stdout:o,stderr:a};});};}),rD("e0fPv",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let s=i(iz),a=i(rd),l=i(rg),c=i(iV),u=i(rk("g9WSN")),p=i(rk("2qpn6")),f="win32"===process.platform;class d 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(f){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 f&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(f&&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){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){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!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||f&&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 h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.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=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).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=d,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let s=0;s0&&(r.push(o),o="");continue;}t(a);}return o.length>0&&r.push(o.trim()),r;};class h 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=rE.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){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();}}}}),rD("eYDSL",function(e,t){e.exports=Promise.resolve(require("./actions_python.895b8a50.js")).then(()=>rk("apy8x"));}),rD("bCzkE",function(e,t){e.exports=Promise.resolve(require("./hdi.619de66c.js")).then(()=>rk("9IkUc"));}),rj=rk("dKklS"),rF=rk("pcnv8"),rU=rk("k1l4q"),rj=rk("dKklS"),rF=rk("pcnv8"),rM={},rG={},rB={},rH={};const iJ="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iZ=iJ?";":":";rq={},"win32"===process.platform||r$.TESTING_WINDOWS?rz=rk("ftrAD"):rz=rk("9yF3I"),rq=u,u.sync=function(e,t){try{return rz.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const iQ=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),i0=(e,t)=>{let r=t.colon||iZ,n=e.match(/\//)||iJ&&e.match(/\\/)?[""]:[...(iJ?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iJ?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iJ?i.split(r):[""];return iJ&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},i1=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=i0(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(iQ(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=iV.join(c,e);i(l(!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u,r,0));}),l=(e,r,n)=>new Promise((c,u)=>{if(n===i.length)return c(a(r+1));let p=i[n];rq(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rH=i1,i1.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=i0(e,t=t||{}),o=[];for(let s=0;s{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(rV=i2).default=i2,rB=function(e){return p(e)||p(e,!0);};rX=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rW=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},rY={},rK={},rJ={},rJ=/^#!(.*)/,rK=(e="")=>{let t=e.match(rJ);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rY=function(e){let t;let r=Buffer.alloc(150);try{t=iX.openSync(e,"r"),iX.readSync(t,r,0,150,0),iX.closeSync(t);}catch(e){}return rK(r.toString());};const i3="win32"===process.platform;rG=function(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:function(e){if(!i3)return e;let t=function(e){e.file=rB(e);let t=e.file&&rY(e.file);return t?(e.args.unshift(e.file),e.command=t,rB(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=iV.normalize(e.command),e.command=rX(e.command),e.args=e.args.map(e=>rW(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);},rZ={};const i4="win32"===process.platform;rZ={hookChildProcess:function(e,t){if(!i4)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=d(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:d,verifyENOENTSync:function(e,t){return i4&&1===e&&!t.file?f(t.original,"spawnSync"):null;},notFoundError:f},(rM=h).spawn=h,rM.sync=function(e,t,r){let n=rG(e,t,r),i=rg.spawnSync(n.command,n.args,n.options);return i.error=i.error||rZ.verifyENOENTSync(i.status,n),i;},rM._parse=rG,rM._enoent=rZ;const i6=({cwd:e=c(rx).cwd(),path:t=c(rx).env[m()],preferLocal:r=!0,execPath:n=c(rx).execPath,addExecPath:i=!0}={})=>{let o=e instanceof URL?(0,rS.fileURLToPath)(e):e,s=c(r_).resolve(o),a=[];return r&&i8(a,s),i&&i5(a,n,s),[...a,t].join(c(r_).delimiter);},i8=(e,t)=>{let r;for(;r!==t;)e.push(c(r_).join(t,"node_modules/.bin")),r=t,t=c(r_).resolve(t,"..");},i5=(e,t,r)=>{let n=t instanceof URL?(0,rS.fileURLToPath)(t):t;e.push(c(r_).resolve(r,n,".."));},i9=({env:e=c(rx).env,...t}={})=>{let r=m({env:e={...e}});return t.path=e[r],e[r]=i6(t),e;},i7=(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);(oe(i,o)||!n)&&Object.defineProperty(e,r,o);},oe=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},ot=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},or=(e,t)=>`/* Wrapped ${e}*/ ${t}`,on=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oi=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oo=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=or.bind(null,n,t.toString());Object.defineProperty(i,"name",oi),Object.defineProperty(e,"toString",{...on,value:i});},os=new WeakMap(),oa=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"",o=function(...s){if(os.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))i7(e,t,n,r);ot(e,t),oo(e,t,n);}(o,e),os.set(o,n),o;};oa.callCount=e=>{if(!os.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return os.get(e);},rQ=oa;const ol=()=>Array.from({length:op-ou+1},oc),oc=(e,t)=>({name:"SIGRT"+(t+1),number:ou+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ou=34,op=64,of=[{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"}],od=()=>[...of,...ol()].map(oh),oh=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rO.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},om=Object.fromEntries(od().map(({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}])),ov=(e,t)=>{let r=og(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}};},og=(e,t)=>{let r=t.find(({name:t})=>rO.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=od();return Object.assign({},...Array.from({length:op+1},(t,r)=>ov(r,e)));})();const oy=({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",oE=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:u,killed:p,parsed:{options:{timeout:f,cwd:d=c(rx).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:om[i].description,m=oy({timedOut:l,timeout:f,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),y=g?`${v} ${n.message}`:v,E=[y,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=y,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=d,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=p&&!l,n;},ow=["stdin","stdout","stderr"],o_=e=>ow.some(t=>void 0!==e[t]),ob=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return ow.map(t=>e[t]);if(o_(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ow.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,ow.length)},(e,r)=>t[r]);};r0={};const ox=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(ox(r1=r$.process)){var oS,oO=rh,oR=rk("bJALw"),oI=/^win/i.test(r1.platform),oT=rd;"function"!=typeof oT&&(oT=oT.EventEmitter),r1.__signal_exit_emitter__?oS=r1.__signal_exit_emitter__:((oS=r1.__signal_exit_emitter__=new oT()).count=0,oS.emitted={}),oS.infinite||(oS.setMaxListeners(1/0),oS.infinite=!0);var oP=function(){o$&&ox(r$.process)&&(o$=!1,oR.forEach(function(e){try{r1.removeListener(e,oA[e]);}catch(e){}}),r1.emit=oD,r1.reallyExit=oL,oS.count-=1);};(r0=function(e,t){if(!ox(r$.process))return function(){};oO.equal(typeof e,"function","a callback must be provided for exit handler"),!1===o$&&oC();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),oS.on(r,e),function(){oS.removeListener(r,e),0===oS.listeners("exit").length&&0===oS.listeners("afterexit").length&&oP();};}).unload=oP;var oN=function(e,t,r){oS.emitted[e]||(oS.emitted[e]=!0,oS.emit(e,t,r));},oA={};oR.forEach(function(e){oA[e]=function(){ox(r$.process)&&r1.listeners(e).length===oS.count&&(oP(),oN("exit",null,e),oN("afterexit",null,e),oI&&"SIGHUP"===e&&(e="SIGINT"),r1.kill(r1.pid,e));};}),r0.signals=function(){return oR;};var o$=!1,oC=function(){!o$&&ox(r$.process)&&(o$=!0,oS.count+=1,oR=oR.filter(function(e){try{return r1.on(e,oA[e]),!0;}catch(e){return!1;}}),r1.emit=oj,r1.reallyExit=ok);};r0.load=oC;var oL=r1.reallyExit,ok=function(e){ox(r$.process)&&(r1.exitCode=e||0,oN("exit",r1.exitCode,null),oN("afterexit",r1.exitCode,null),oL.call(r1,r1.exitCode));},oD=r1.emit,oj=function(e,t){if(!("exit"===e&&ox(r$.process)))return oD.apply(this,arguments);void 0!==t&&(r1.exitCode=t);var r=oD.apply(this,arguments);return oN("exit",r1.exitCode,null),oN("afterexit",r1.exitCode,null),r;};}else r0=function(){return function(){};};const oF=(e,t="SIGTERM",r={})=>{let n=e(t);return oU(e,t,r,n),n;},oU=(e,t,r,n)=>{if(!oM(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},oB(r));i.unref&&i.unref();},oM=(e,{forceKillAfterTimeout:t},r)=>oG(e)&&!1!==t&&r,oG=e=>e===c(rO).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oB=({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;},oH=(e,t)=>{e.kill()&&(t.isCanceled=!0);},oq=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oz=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{oq(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},oV=({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})`);},oX=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(r0)(()=>{e.kill();});return n.finally(()=>{i();});},oW=e=>e instanceof rb.ChildProcess&&"function"==typeof e.then,oY=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rv.createWriteStream)(r)),e;if(g(r))return e[t].pipe(r),e;if(!oW(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!g(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oK=e=>{null!==e.stdout&&(e.pipeStdout=oY.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=oY.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=oY.bind(void 0,e,"all"));};r2={},r3=rR.constants,r4=rm.promisify,r6={},r8=rI.PassThrough,r6=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new r8({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 oJ=r4(rI.pipeline);class oZ extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r2=y).buffer=(e,t)=>y(e,{...t,encoding:"buffer"}),r2.array=(e,t)=>y(e,{...t,array:!0}),r2.MaxBufferError=oZ,r5={},r9=rI.PassThrough,r5=function(){function e(i){return Array.isArray(i)?i.forEach(e):(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(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new r9({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const oQ=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},o0=({input:e,inputFile:t})=>"string"!=typeof t?e:(oQ(e),(0,rv.readFileSync)(t)),o1=e=>{let t=o0(e);if(v(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},o2=({input:e,inputFile:t})=>"string"!=typeof t?e:(oQ(e),(0,rv.createReadStream)(t)),o3=(e,t)=>{let r=o2(t);void 0!==r&&(v(r)?r.pipe(e.stdin):e.stdin.end(r));},o4=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r5)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},o6=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},o8=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r2)(e,{encoding:t,maxBuffer:n}):c(r2).buffer(e,{maxBuffer:n});},o5=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=o8(e,{encoding:n,buffer:i,maxBuffer:o}),l=o8(t,{encoding:n,buffer:i,maxBuffer:o}),c=o8(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},o6(e,a),o6(t,l),o6(r,c)]);}},o9=(async()=>{})().constructor.prototype,o7=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(o9,e)]),se=(e,t)=>{for(let[r,n]of o7){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},st=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);});}),sr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sn=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,si=(e,t)=>sr(e,t).join(" "),so=(e,t)=>sr(e,t).map(e=>sn(e)).join(" "),ss=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;},sa=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rb.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rw.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sl=(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)],sc=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],s=sl(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sl(s,Array.isArray(a)?a.map(e=>sa(e)):[sa(a)],o.endsWith(" "));},su=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sc({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sp=(0,rT.debuglog)("execa").enabled,sf=(e,t)=>(e+"").padStart(t,"0"),sd=()=>{let e=new Date();return`${sf(e.getHours(),2)}:${sf(e.getMinutes(),2)}:${sf(e.getSeconds(),2)}.${sf(e.getMilliseconds(),3)}`;},sh=(e,{verbose:t})=>{t&&c(rx).stderr.write(`[${sd()}] ${e} `);},sm=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(rx).env,...e}:e;return r?i9({env:o,cwd:n,execPath:i}):o;},sv=(e,t,r={})=>{let n=c(rM)._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||c(rx).cwd(),execPath:c(rx).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sp,...r}).env=sm(r),r.stdio=ob(r),"win32"===c(rx).platform&&"cmd"===c(r_).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sg=(e,t,r)=>"string"==typeof t||(0,rw.Buffer).isBuffer(t)?e.stripFinalNewline?function(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}(t):t:void 0===r?void 0:"",sy=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sE=(e={})=>({preferLocal:!0,...sy(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=su(n,i);return E(o,s,sE(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]=su(e,r);return w(n,i,sE(t));},r;}(),r7={},l(ne={},"isexe",()=>sw),l(ne,"sync",()=>s_),nt=rk("6vN83");const sw=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sb(await(0,nt.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},s_=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sb((0,iX.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},sb=(e,t)=>e.isFile()&&sx(e,t),sx=(e,t)=>{var r,n,i,o,s,a,l,c,u,p,f;let d=null!==(l=t.uid)&&void 0!==l?l:null===(r=(n=process).getuid)||void 0===r?void 0:r.call(n),h=null!==(u=null!==(c=t.groups)&&void 0!==c?c:null===(i=(o=process).getgroups)||void 0===i?void 0:i.call(o))&&void 0!==u?u:[],m=null!==(f=null!==(p=t.gid)&&void 0!==p?p:null===(s=(a=process).getgid)||void 0===s?void 0:s.call(a))&&void 0!==f?f:h[0];if(void 0===d||void 0===m)throw Error("cannot get uid or gid");let v=new Set([m,...h]),g=e.mode,y=e.uid,E=e.gid,w=parseInt("100",8),_=parseInt("010",8);return!!(g&parseInt("001",8)||g&_&&v.has(E)||g&w&&y===d||g&(w|_)&&0===d);};l(nr={},"isexe",()=>sS),l(nr,"sync",()=>sO),nt=rk("6vN83");const sS=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sI(await(0,nt.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},sO=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return sI((0,iX.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},sR=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&sR(t,r),sT="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?nr:ne,sP=sT.isexe,sN=sT.sync;nn=iV.join,ni=iV.delimiter,no=iV.sep,ns=iV.posix;const sA="win32"===process.platform,s$=new RegExp(`[${ns.sep}${no===ns.sep?"":no}]`.replace(/(\\)/g,"\\$1")),sC=RegExp("^\\."+s$.source),sL=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),sk=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=ni})=>{let i=e.match(s$)?[""]:[...(sA?[process.cwd()]:[]),...(t||"").split(n)];if(sA){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sD=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&sC.test(t)?t.slice(0,2):"")+nn(r,t);},sj=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sk(e,t),o=[];for(let s of r){let r=sD(s,e);for(let e of n){let n=r+e;if(await sP(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sL(e);};r7=sj,sj.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sk(e,t),o=[];for(let s of r){let r=sD(s,e);for(let e of n){let n=r+e;if(sN(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sL(e);};const sF={stdio:"inherit",shell:!0};rF=rk("pcnv8"),na={},nl=rk("cgM1r"),nc={},nu=rk("lFuzu"),nc=function(e,t,r){return isNaN(e)?t>=0?r&&t?t-1:t:1:!1!==e&&nu(e);},np={},nf=rk("czzoJ"),nd=rk("8KFbm"),nh=rk("e4Lgg"),nm={},nv={},ng=rk("kg6aw"),ny={},nE=rk("cJ0vr"),nw={function:!0,object:!0},ny=function(e){return nE(e)&&nw[typeof e]||!1;},nE=rk("cJ0vr"),n_=Error.captureStackTrace,nv=function(e){var t=Error(e),r=arguments[1],n=arguments[2];return!nE(n)&&ny(r)&&(n=r,r=null),nE(n)&&ng(t,n),nE(r)&&(t.code=r),n_&&n_(t,nv),t;},nb=rk("2c0jI"),nx=rk("9xcfl"),nS=rk("9E9rT").methods,nO={},nR={},nI=rk("lCzSe"),nT=Array.isArray,nR=function(e){return nT(e)?e:nI(e);},nE=rk("cJ0vr"),nf=rk("czzoJ"),nP=Array.prototype.slice,nN=function(e){return this.map(function(t,r){return t?t(e[r]):e[r];}).concat(nP.call(e,this.length));},nO=function(e){return(e=nR(e)).forEach(function(e){nE(e)&&nf(e);}),nN.bind(e);},nA={},nf=rk("czzoJ"),nA=function(e){var t;return"function"==typeof e?{set:e,get:e}:((t={get:nf(e.get)},void 0!==e.set)?(t.set=nf(e.set),e.delete&&(t.delete=nf(e.delete)),e.clear&&(t.clear=nf(e.clear))):t.set=t.get,t);},n$=Function.prototype.apply,nC=Function.prototype.call,nL=Object.create,nk=Object.defineProperties,nD=nS.on,nj=nS.emit,nm=function(e,t,r){var n,i,o,s,a,l,c,u,p,f,d,h,m,v,g,y=nL(null);return i=!1!==t?t:isNaN(e.length)?1:e.length,r.normalizer&&(o=(f=nA(r.normalizer)).get,s=f.set,a=f.delete,l=f.clear),null!=r.resolvers&&(g=nO(r.resolvers)),v=o?nb(function(t){var r,i,a=arguments;if(g&&(a=g(a)),null!==(r=o(a))&&hasOwnProperty.call(y,r))return d&&n.emit("get",r,a,this),y[r];if(i=1===a.length?nC.call(e,this,a[0]):n$.call(e,this,a),null===r){if(null!==(r=o(a)))throw nv("Circular invocation","CIRCULAR_INVOCATION");r=s(a);}else if(hasOwnProperty.call(y,r))throw nv("Circular invocation","CIRCULAR_INVOCATION");return y[r]=i,h&&n.emit("set",r,null,i),i;},i):0===t?function(){var t;if(hasOwnProperty.call(y,"data"))return d&&n.emit("get","data",arguments,this),y.data;if(t=arguments.length?n$.call(e,this,arguments):nC.call(e,this),hasOwnProperty.call(y,"data"))throw nv("Circular invocation","CIRCULAR_INVOCATION");return y.data=t,h&&n.emit("set","data",null,t),t;}:function(t){var r,i,o=arguments;if(g&&(o=g(arguments)),i=o[0]+"",hasOwnProperty.call(y,i))return d&&n.emit("get",i,o,this),y[i];if(r=1===o.length?nC.call(e,this,o[0]):n$.call(e,this,o),hasOwnProperty.call(y,i))throw nv("Circular invocation","CIRCULAR_INVOCATION");return y[i]=r,h&&n.emit("set",i,null,r),r;},n={original:e,memoized:v,profileName:r.profileName,get:function(e){return(g&&(e=g(e)),o)?o(e):e[0]+"";},has:function(e){return hasOwnProperty.call(y,e);},delete:function(e){var t;hasOwnProperty.call(y,e)&&(a&&a(e),t=y[e],delete y[e],m&&n.emit("delete",e,t));},clear:function(){var e=y;l&&l(),y=nL(null),n.emit("clear",e);},on:function(e,t){return"get"===e?d=!0:"set"===e?h=!0:"delete"===e&&(m=!0),nD.call(this,e,t);},emit:nj,updateEnv:function(){e=n.original;}},c=o?nb(function(e){var t,r=arguments;g&&(r=g(r)),null!==(t=o(r))&&n.delete(t);},i):0===t?function(){return n.delete("data");}:function(e){return g&&(e=g(arguments)[0]),n.delete(e);},u=nb(function(){var e,r=arguments;return 0===t?y.data:(g&&(r=g(r)),y[o?o(r):r[0]+""]);}),p=nb(function(){var e,r=arguments;return 0===t?n.has("data"):(g&&(r=g(r)),null!==(e=o?o(r):r[0]+"")&&n.has(e));}),nk(v,{__memoized__:nx(!0),delete:nx(c),clear:nx(n.clear),_get:nx(u),_has:nx(p)}),n;},np=function e(t){var r,n,i;if(nf(t),r=Object(arguments[1]),r.async&&r.promise)throw Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!r.force?t:(n=nc(r.length,t.length,r.async&&nh.async),i=nm(t,n,r),nd(nh,function(e,t){r[t]&&e(r[t],i,r);}),e.__profiler__&&e.__profiler__(i),i.updateEnv(),i.memoized);},na=function(e){var t,r=nl(arguments[1]);return!r.normalizer&&0!==(t=r.length=nc(r.length,e.length,r.async))&&(r.primitive?!1===t?r.normalizer=rk("2aBcN"):t>1&&(r.normalizer=rk("hAul9")(t)):!1===t?r.normalizer=rk("7BD8r")():1===t?r.normalizer=rk("61N6r")():r.normalizer=rk("hqtiJ")(t)),r.async&&rk("a24EK"),r.promise&&rk("kIZkh"),r.dispose&&rk("i7d4K"),r.maxAge&&rk("b1mdU"),r.max&&rk("dZT72"),r.refCounter&&rk("eA2P6"),np(e,r);},nF=rk("ibhuk");const sU=/^~(?=$|\/|\\)/,{appendFile:sM,readFile:sG,writeFile:sB}=iX.promises,sH=T("~/.bashrc"),sq=c(na)(P,{promise:!0});nU={};const sz="win32"!==iz.platform(),sV=iz.release(),sX=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nU=function(e){return sz?e.replace(/(\s+)/g,"\\$1"):sX(.../(\d+\.\d+)\.(\d+)/.exec(sV).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rk("sOzdu"),t=function(e){return e.split("").reverse().join("");},nM=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nM={});const{appendFile:sW}=iX.promises;rU=rk("k1l4q"),rj=rk("dKklS"),rF=rk("pcnv8");const{appendFile:sY}=iX.promises,sK=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];nG=rk("5FRs7"),function(){rk("j5MHF").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(nB={}),nH={},nH=rk("2KdLC"),nq={},nq={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"}}}},rF=rk("pcnv8"),nz={},nV=rk("51NgG"),nX=rP.env.npm_package_json,nY=!!((nW=rP.env.npm_config_user_agent)&&nW.startsWith("npm")),nK=!!(nX&&nX.endsWith("package.json")),nJ=nY||nK,nZ=!!(nW&&nW.startsWith("yarn")),nQ=nJ||nZ,n0=iz.homedir(),n1=process.env.XDG_CONFIG_HOME||iV.join(n0,".config","simple-update-notifier"),n2=function(e){return iV.join(n1,"".concat(e.replace("@","").replace("/","__"),".json"));},n3=function(){iX.existsSync(n1)||iX.mkdirSync(n1,{recursive:!0});},n4=function(e){var t=n2(e);try{if(!iX.existsSync(t))return;return JSON.parse(iX.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},n6=function(e){var t=n2(e);iX.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},n8=function(e,t){return j(void 0,void 0,void 0,function(){var r;return F(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){iK.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){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",function(e){return n(e);});})];});});},n5=function(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 j(void 0,void 0,void 0,function(){var e,r;return F(this,function(i){switch(i.label){case 0:if(n3(),e=n4(t.name),!(s||!e||ethis.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=t||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url);}},{key:"getOptions",value:function(){return this.__opts;}},{key:"getMetadata",value:function(){return this.__opts.metadata;}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes};}},{key:"getTotalSize",value:function(){var e=this;return new Promise(function(t,r){var n=function(t){e.__initProtocol(t);var r=Object.assign({},e.__headers);r.hasOwnProperty("range")&&delete r.range;var n=e.__getReqOptions("HEAD",t,r);return Object.assign({},e.__reqOptions,n);},i=function(o,s){var a=e.__protocol.request(s,function(s){if(e.__isRequireRedirect(s)){var a=/^https?:\/\//.test(s.headers.location)?s.headers.location:new rN.URL(s.headers.location,o).href;return e.emit("redirected",a,o),i(a,n(a));}return 200===s.statusCode?void t({name:e.__getFileNameFromHeaders(s.headers,s),total:parseInt(s.headers["content-length"])||null}):r(Error("Response status was "+s.statusCode));});a.on("error",function(e){return r(e);}),a.on("timeout",function(){return r(Error("timeout"));}),a.on("uncaughtException",function(e){return r(e);}),a.end();};i(e.url,n(e.url));});}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total};}},{key:"resumeFromFile",value:function(e){var t=this,r=1=a))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:s}),this.__setState(this.__states.SKIPPED),t(!0);}this.__fileStream=ii.createWriteStream(this.__filePath,{});}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date(),this.__statsEstimate.throttleTime=new Date(),i.on("data",function(e){return n.__calculateStats(e.length);}),this.__pipes.forEach(function(e){i.pipe(e.stream,e.options),i=e.stream;}),i.pipe(this.__fileStream),i.on("error",this.__onError(t,r)),this.__fileStream.on("finish",this.__onFinished(t,r)),this.__fileStream.on("error",this.__onError(t,r));}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state);}},{key:"__isRequireRedirect",value:function(e){return 300e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location;}},{key:"__onFinished",value:function(e,t){var r=this;return function(){r.__fileStream.close(function(n){if(n)return t(n);if(r.__hasFinished()){var i=!!r.__total&&r.__downloaded!==r.__total;if(i&&r.__isResumable&&r.__opts.resumeOnIncomplete&&r.__resumeRetryCount<=r.__opts.resumeOnIncompleteMaxRetry)return r.__resumeRetryCount++,r.emit("warning",Error("uncomplete download, retrying")),r.resume();r.__setState(r.__states.FINISHED),r.__pipes=[],r.emit("end",{fileName:r.__fileName,filePath:r.__filePath,totalSize:r.__total,incomplete:i,onDiskSize:r.__getFilesizeInBytes(r.__filePath),downloadedSize:r.__downloaded});}return e(r.__downloaded===r.__total);});};}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise(function(t,r){e.__fileStream.close(function(e){return e?r(e):t(!0);});}):Promise.resolve(!0);}},{key:"__onError",value:function(e,t){var r=this,n=!!(2=(void 0===o?999:o)?Promise.reject(t||Error("reached the maximum retries")):(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,t),this.__response&&(this.__response.unpipe(),this.__pipes.forEach(function(e){return e.stream.unpipe();})),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then(function(){return new Promise(function(t){return e.__retryTimeout=setTimeout(function(){return t(0this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=t,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()));}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state);}},{key:"__getReqOptions",value:function(e,t){var r=2this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return iI(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class af extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}im.HTTPError=af;const ad="win32"===process.platform,ah="darwin"===process.platform;im.downloadTool=function(e,t,r,n){return iw(this,void 0,void 0,function*(){t=t||ao.join(eN(),au.default()),yield at.mkdirP(ao.dirname(t)),ae.debug("Downloading "+e),ae.debug("Destination "+t);let i=eA("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eA("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new ix.RetryHelper(3,i,o);return yield s.execute(()=>iw(this,void 0,void 0,function*(){return yield function(e,t,r,n){return iw(this,void 0,void 0,function*(){if(ar.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new as.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(ae.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 af(o.message.statusCode);throw ae.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=ac.promisify(al.pipeline),a=eA("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,ar.createWriteStream(t)),ae.debug("download complete"),l=!0,t;}finally{if(!l){ae.debug("download failed");try{yield at.rmRF(t);}catch(e){ae.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof af)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},im.extract7z=function(e,t,r){return iw(this,void 0,void 0,function*(){rh.ok(ad,"extract7z() not supported on current OS"),rh.ok(e,'parameter "file" is required'),t=yield eS(t);let n=process.cwd();if(process.chdir(t),r)try{let t=ae.isDebug()?"-bb1":"-bb0",n=["x",t,"-bd","-sccUTF-8",e];yield ib.exec(`"${r}"`,n,{silent:!0});}finally{process.chdir(n);}else{let r=ao.join(iv,"..","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 at.which("powershell",!0);yield ib.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},im.extractTar=function(e,t,r="xz"){return iw(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield eS(t),ae.debug("Checking tar --version");let i="";yield ib.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),ae.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],ae.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return ad&&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 ib.exec("tar",n),t;});},im.extractXar=function(e,t,r=[]){return iw(this,void 0,void 0,function*(){let n;rh.ok(ah,"extractXar() not supported on current OS"),rh.ok(e,'parameter "file" is required'),t=yield eS(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),ae.isDebug()&&n.push("-v");let i=yield at.which("xar",!0);return yield ib.exec(`"${i}"`,Array.from(new Set(n))),t;});},im.extractZip=function(e,t){return iw(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield eS(t),ad?yield function(e,t){return iw(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield at.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 $_ } } ;`;ae.debug("Using pwsh at path: "+i),yield ib.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}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=yield at.which("powershell",!0);ae.debug("Using powershell at path: "+t),yield ib.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return iw(this,void 0,void 0,function*(){let r=yield at.which("unzip",!0),n=[e];ae.isDebug()||n.unshift("-q"),n.unshift("-o"),yield ib.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},im.cacheDir=function(e,t,r,n){return iw(this,void 0,void 0,function*(){if(r=aa.clean(r)||r,n=n||ai.arch(),ae.debug(`Caching tool ${t} ${r} ${n}`),ae.debug("source dir: "+e),!ar.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eO(t,r,n);for(let t of ar.readdirSync(e)){let r=ao.join(e,t);yield at.cp(r,i,{recursive:!0});}return eR(t,r,n),i;});},im.cacheFile=function(e,t,r,n,i){return iw(this,void 0,void 0,function*(){if(n=aa.clean(n)||n,i=i||ai.arch(),ae.debug(`Caching tool ${r} ${n} ${i}`),ae.debug("source file: "+e),!ar.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eO(r,n,i),s=ao.join(o,t);return ae.debug("destination file "+s),yield at.cp(e,s),eR(r,n,i),o;});},im.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||ai.arch(),eI(t)||(t=eT(ex(e,r),t));let n="";if(t){t=aa.clean(t)||"";let i=ao.join(eP(),e,t,r);ae.debug("checking cache: "+i),ar.existsSync(i)&&ar.existsSync(`${i}.complete`)?(ae.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):ae.debug("not found");}return n;},im.findAllVersions=ex,im.getManifestFromRepo=function(e,t,r,n="master"){return iw(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new as.HttpClient("tool-cache"),a={};r&&(ae.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){ae.debug("Invalid json");}}return i;});},im.findFromManifest=function(e,t,r,n=ai.arch()){return iw(this,void 0,void 0,function*(){return yield an._findMatch(e,t,r,n);});},im.isExplicitVersion=eI,im.evaluateVersions=eT,rj=rk("dKklS"),rF=rk("pcnv8"),nt=rk("6vN83"),nF=rk("ibhuk"),ip=rk("drEX5"),Object.defineProperty(iT={},"__esModule",{value:!0}),iT.retryAsPromised=iT.TimeoutError=void 0;class am extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}iT.TimeoutError=am,iT.retryAsPromised=e$,iT.default=e$,iP=rk("g9WSN"),rF=rk("pcnv8"),(ru=iN||(iN={}))[ru.Tar=0]="Tar",ru[ru.TarGz=1]="TarGz",ru[ru.TarXz=2]="TarXz",ru[ru.Zip=3]="Zip",ru[ru.SevenZip=4]="SevenZip",rU=rk("k1l4q");const av=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||iX.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||iX.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||iX.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||iX.mkdirSync,t;},ag=(e,t,r)=>{let n=(0,iV.dirname)(e),i={...av(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return ag(e,i,ag(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},ay=Object.assign(async(e,t,r)=>{let n=av(t);n.recursive=!1;let i=(0,iV.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return ay(i,n).then(t=>ay(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:ag}),aE=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?aE(e,(0,iV.dirname)(t),t):void 0);},aw=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?aw(e,(0,iV.dirname)(t),t):void 0;}},a_=(e,t)=>{let r=av(t);if(r.recursive=!0,(0,iV.dirname)(e)===e)return r.mkdirSync(e,r);let n=aw(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return ag(e,r);throw t;}},ab=Object.assign(async(e,t)=>{let r={...av(t),recursive:!0};return(0,iV.dirname)(e)===e?await r.mkdirAsync(e,r):aE(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ay(e,r);throw t;}));},{sync:a_}),ax=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,aS=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,iV.resolve)(e),"win32"===ax){let{root:t}=(0,iV.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},aO=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),aR=+aO[0]>10||10==+aO[0]&&+aO[1]>=12,aI=aR?e=>av(e).mkdirSync===iX.mkdirSync:()=>!1,aT=Object.assign(aR?e=>av(e).mkdir===iX.mkdir:()=>!1,{sync:aI}),aP=(e,t)=>{e=aS(e);let r=av(t);return aI(r)?a_(e,r):ag(e,r);},aN=Object.assign(async(e,t)=>{e=aS(e);let r=av(t);return aT(r)?ab(e,r):ay(e,r);},{mkdirpSync:aP,mkdirpNative:ab,mkdirpNativeSync:a_,mkdirpManual:ay,mkdirpManualSync:ag,sync:aP,native:ab,nativeSync:a_,manual:ay,manualSync:ag,useNative:aT,useNativeSync:aI});nF=rk("ibhuk"),ip=rk("drEX5"),ib=rk("ca0ts"),rj=rk("dKklS"),rF=rk("pcnv8"),nt=rk("6vN83"),nF=rk("ibhuk"),ip=rk("drEX5"),ib=rk("ca0ts"),rF=rk("pcnv8"),iA=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;}},i$=async e=>{if(!iA(e))return!1;let t=await eX(e,"HEAD");return!!t||!!(t=await eX(e,"GET"));},id=rk("8YrRN"),iC=rk("fYuCK"),iL=rk("2owFL");const aA=/v?(\d\S*)/,a$={llvm:eZ(),clangtidy:eZ(),clangformat:eZ(),ninja:"1.12.1",cmake:"3.30.2",gcovr:"5.2",conan:"1.64.1",meson:"1.5.1",kcov:"42",task:"3.38.0",doxygen:eh()?"1.11.0-4":"1.11.0",gcc:eh()?"13.2.1-3":"13",powershell:"7.4.5"},aC={pip:"22.2.0",python:"3.7.9"},aL={gcc:{24:"13",22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{24:"8.0.0-1",22:"8.0.0-1",20:"7.0.0-2"},llvm:{24:"17.0.6-ubuntu-22.04",22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{24:"17.0.6-ubuntu-22.04",22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{24:"17.0.6-ubuntu-22.04",22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{24:"6.0",22:"6.0",20:"6.0",18:"5.0"},meson:{24:"1.0.0",22:"1.0.0",20:"1.0.0",18:"0.61.4"},nala:{24:"",22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{24:"42-binary",22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"},doxygen:{24:"1.11.0",22:"1.11.0",20:"1.10.0",18:"1.10.0"}},ak=c(na)(tt,{promise:!0});rF=rk("pcnv8"),Object.defineProperty(ik={},"__esModule",{value:!0}),ik.getUbuntuVersion=void 0,ik.getUbuntuVersion=ti;const aD=c(na)(to,{promise:!0}),aj=c(na)(tu,{promise:!0}),aF=c(na)(tp,{promise:!0}),aU=c(na)(tf,{promise:!0});rF=rk("pcnv8"),ip=rk("drEX5"),nF=rk("ibhuk");const aM=new Map([[24,["Sequoia","15"]],[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]),aG=c(na)(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rO).release()).split(".")[0];let[t,r]=aM.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>Number.parseInt(e,10));});rj=rk("dKklS"),rF=rk("pcnv8"),nF=rk("ibhuk"),ip=rk("drEX5"),id=rk("8YrRN"),iD=rk("gWZ4x"),ib=rk("ca0ts"),rF=rk("pcnv8"),ij=iV.resolve(__dirname,"../../src/gcc");const aB={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-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.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"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"}};iD=rk("gWZ4x"),iL=rk("2owFL"),rF=rk("pcnv8"),ip=rk("drEX5"),ip=rk("drEX5"),iF=iV.resolve(__dirname,"../../src/kcov"),rj=rk("dKklS"),rF=rk("pcnv8"),nF=rk("ibhuk"),ip=rk("drEX5"),nt=rk("6vN83"),rU=rk("k1l4q"),rF=rk("pcnv8");class aH extends Error{constructor(e){super(e),this.name="TimeoutError";}}class aq extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const az=e=>void 0===globalThis.DOMException?new aq(e):new DOMException(e),aV=e=>{let t=void 0===e.reason?az("This operation was aborted."):e.reason;return t instanceof Error?t:az(t);};ip=rk("drEX5"),rF=rk("pcnv8"),rU=rk("k1l4q");const aX=rP.env["ProgramFiles(x86)"],aW=[rP.env["ProgramFiles(x86)"],rP.env.ProgramFiles],aY=["Enterprise","Professional","Community","BuildTools"],aK=["2022","2019","2017"],aJ={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};iU=tF;const aZ=`${aX}\\Microsoft Visual Studio\\Installer`;iM=tU,iG=function(e,t,r,n,i,o){if("win32"!=rP.platform){rU.info("This is not a Windows virtual environment, bye!");return;}rP.env.PATH+=iV.delimiter+aZ;let s={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in s&&(e=s[e.toLowerCase()]);var a=[e];n&&!0===JSON.parse(n)&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),i&&!0===JSON.parse(i)&&a.push("-vcvars_spectre_libs=spectre");let l=`"${tU(o)}" ${a.join(" ")}`;rU.debug("vcvars command-line: "+l);let c=rg.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),f=c[2].split("\r\n"),d=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(d.length>0)throw Error("invalid parameters\r\n"+d.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(rU.startGroup("Environment variables"),f)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(rU.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),rU.exportVariable(t,r));}rU.endGroup(),rU.info("Configured Developer Command Prompt");},nF=rk("ibhuk");const aQ=12e5;(rp=iB||(iB={}))[rp.All=0]="All",rp[rp.ClangFormat=1]="ClangFormat",rp[rp.Core=2]="Core",rF=rk("pcnv8"),ip=rk("drEX5"),ih=rk("aTQrN");const a0=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2","18.1.3","18.1.4","18.1.5","18.1.6","18.1.7","18.1.8"]),a1=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),a2=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","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6","18.1.0","18.1.1","18.1.2","18.1.3","18.1.4","18.1.5","18.1.6","18.1.7","18.1.8"]),a3=new Map(),a4={"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","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04","18.1.4":"-ubuntu-18.04","18.1.7":"-ubuntu-18.04","18.1.8":"-ubuntu-18.04"},a6="18.1.8";iH=iV.resolve(__dirname,"../../src/llvm");const a8=c(na)(tZ,{promise:!0}),a5=c(na)(t0,{promise:!0}),a9=c(na)(t1,{promise:!0});rj=rk("dKklS"),ip=rk("drEX5"),rF=rk("pcnv8"),nF=rk("ibhuk"),iq=iV.resolve(__dirname,"../../src/msvc"),ip=rk("drEX5"),rF=rk("pcnv8"),ip=rk("drEX5"),ip=rk("drEX5"),rF=rk("pcnv8"),nF=rk("ibhuk"),ip=rk("drEX5");let a7=!1;const le={nala:t5,cmake:eV,ninja:t$,python:eQ,vcpkg:ri,bazel:ew,conan:function(e,t,r){return ta("conan",e);},meson:function(e,t,r){return ta("meson",e);},gcovr:function(e,t,r){return ta("gcovr",e);},opencppcoverage:t9,llvm:tJ,gcc:tR,choco:ev,brew:eu,powershell:rt,ccache:function(e,t,r){switch(process.platform){case"win32":return eg("ccache",e);case"darwin":return ef("ccache",e);case"linux":if(eh())return e_("ccache",e);if(ed())return ey([{name:"ccache",version:e}]);if(em())return en([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return eg("sccache",e);case"linux":case"darwin":return ef("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tb,graphviz:ty,cppcheck:tv,clangtidy:function(e,t,r){return tQ(e,t,r);},clangformat:function(e,t,r){return tQ(e,t,r,iB.ClangFormat);},msvc:t6,vcvarsall:tM,kcov:tj,make:t4,task:function(e,t,r){return eG("task",e,rn,t,r);},sevenzip:eC},lt=Object.keys(le),lr=["compiler","architecture","timeout",...lt],ln={rcPath:T("~/.cpprc"),guard:"cpp"};rU=rk("k1l4q"),rF=rk("pcnv8"),iL=rk("2owFL"),rl(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rF.error)("main() panicked!"),(0,rF.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map