#!/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);});});}rH(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=rG.sync(e.command,{path:n[rV({env:n})],pathExt:t?n3.delimiter:void 0});}catch(e){}finally{s&&process.chdir(i);}return r&&(r=n3.resolve(o?e.options.cwd:"",r)),r;}function d(e,t){return Object.assign(Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args});}function f(e,t){return iO&&1===e&&!t.file?d(t.original,"spawn"):null;}function h(e,t,r){let n=rF(e,t,r),i=ri.spawn(n.command,n.args,n.options);return rY.hookChildProcess(i,n),i;}function m(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;}function v(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 g({env:e=c(ru).env,...t}={}){let r=v({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ru).cwd(),path:n=c(ru).env[v()],execPath:i=c(ru).execPath}=e,o=i instanceof URL?c(rp).fileURLToPath(i):i,s=r instanceof URL?c(rp).fileURLToPath(r):r,a=c(rl).resolve(s),l=[];for(;t!==a;)l.push(c(rl).join(a,"node_modules/.bin")),t=a,a=c(rl).resolve(a,"..");return l.push(c(rl).resolve(s,o,"..")),[...l,n].join(c(rl).delimiter);}(t),e;}function E(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function y(e){return E(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function w(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=r4(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=r1.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await om(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new ov());});}),n.getBufferedValue();}function x(e,t,r){let n;let i=oV(e,t,r),o=o_(e,t),s=oP(e,t);oB(s,i.options),ou(i.options);try{n=c(rc).spawn(i.file,i.args,i.options);}catch(t){let e=new(c(rc).ChildProcess)();return oC(e,Promise.reject(iX({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let a=oA(n),l=oc(n,i.options,a),u=op(n,i.options,l),p={isCanceled:!1};n.kill=or.bind(null,n.kill.bind(n)),n.cancel=oa.bind(null,n,p);let d=rJ(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await oS(n,i.options,u),f=oq(i.options,l),h=oq(i.options,c),m=oq(i.options,d);if(e||0!==t||null!==r){let l=iX({error:e,exitCode:t,signal:r,stdout:f,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:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ox(n,i.options),n.all=ob(n,i.options),oh(n),oC(n,d),n;}function b(e,t,r){let n;let i=oV(e,t,r),o=o_(e,t),s=oP(e,t);oB(s,i.options);let a=oy(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw iX({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=oq(i.options,n.stdout,n.error),u=oq(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=iX({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 R(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(r$).sync("sudo",{nothrow:!0});}function I(e,t=[],r=oK){return R()?function(e,t){let[r,...n]=oL(e);return b(r,n,t);}(O(e,t),r):b(e,T(t),r);}function S(e,t=[],r=oK){return R()?function(e,t){let[r,...n]=oL(e);return x(r,n,t);}(O(e,t),r):x(e,T(t),r);}function O(e,t){return"sudo "+T([e,...t]).join(" ");}function T(e){return e.map(e=>`'${e}'`);}async function C(e){if(("linux"===process.platform||"darwin"===process.platform)&&R()&&void 0!==process.env.SUDO_USER){let t=c(n6).statSync(e).isDirectory();await S("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],oK);}}function A(e){let t=function(){if(R()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,n3.join)("/Users/",process.env.SUDO_USER):(0,n3.join)("/home/",process.env.SUDO_USER);{let e=(0,n4.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(oW,t);}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());});}function N(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]{let[{error:e,exitCode:t,signal:r,timedOut:a},l,c,d]=await sm(n,i.options,u),f=sL(i.options,l),h=sL(i.options,c),m=sL(i.options,d);if(e||0!==t||null!==r){let l=o0({error:e,exitCode:t,signal:r,stdout:f,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:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return sp(n,i.options),n.all=sd(n,i.options),ss(n),sE(n,d),n;}function j(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return U(function(){if(void 0===e){let t=c(r$).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=c(r$).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function F(e,t,r=sU){let n={...sU,...r},i=function(e,t=!1){let r=t?c(ny)(e):e;return c(nw)(r,'"',"\\");}(t??"",n.shouldEscapeSpace);try{if(rI.GITHUB_ACTIONS)try{if(n.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nv.exportVariable)(e,i);}catch(t){(0,rS.error)(t),await G(e,i,n);}else await G(e,i,n);}catch(t){(0,rS.error)(t),(0,nv.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`);}}async function M(e){if(!(sj.some(t=>t.test(e))&&(process.env.PATH?.split(n3.delimiter)??[]).includes(e))){process.env.PATH=`${e}${n3.delimiter}${process.env.PATH}`;try{if(rI.GITHUB_ACTIONS)try{(0,nv.addPath)(e);}catch(t){(0,rS.error)(t),await B(e);}else await B(e);}catch(t){(0,rS.error)(t),(0,nv.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,t,r){let n=t??"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nv.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await j(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nv.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await H(),r.shouldAddOnlyIfNotDefined?(await(0,r_.appendFile)(sF,` if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi `),(0,nv.info)(`if not defined ${e} then ${e}="${n}" was added to "${sF}`)):(await(0,r_.appendFile)(sF,` export ${e}="${n}" `),(0,nv.info)(`${e}="${n}" was added to "${sF}`));return;}process.env[e]=n;}async function B(e){switch(process.platform){case"win32":await j(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nv.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),await(0,r_.appendFile)(sF,` export PATH="${e}:$PATH" `),(0,nv.info)(`"${e}" was added to "${sF}"`);return;default:return;}}async function H(){if(sM)return;let e=` # source .cpprc if SOURCE_CPPRC is not set to 0 if [[ "$SOURCE_CPPRC" != 0 && -f "${sF}" ]]; then source "${sF}"; fi `;try{await Promise.all([V(),z(e),q(e)]);}catch(t){(0,rS.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${t}`);}sM=!0;}async function V(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,nE.pathExists)(sF))&&!(await(0,r_.readFile)(sF,"utf8")).includes(e)&&(await(0,r_.appendFile)(sF,` ${e} `),(0,nv.info)(`Added ${e} to ${sF}`));}async function q(e){let t=A("~/.bashrc");(await(0,nE.pathExists)(t))&&!(await(0,r_.readFile)(t,"utf-8")).includes(e)&&(await(0,r_.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function z(e){let t=A("~/.profile");(await(0,nE.pathExists)(t))&&!(await(0,r_.readFile)(t,"utf-8")).includes(e)&&(await(0,r_.appendFile)(t,e),(0,nv.info)(`${e} was added to ${t}`));}async function X(){if(await(0,nE.pathExists)(sF)){let e=[...new Set((await(0,r_.readFile)(sF,"utf-8")).split("\n").reverse())].reverse();await(0,r_.writeFile)(sF,e.join("\n")),await C(sF);}}async function K(e,t=!1){let r;let n=J()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rS.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sG||t)&&(Q(n),sG=!0),sB||(await Z(n),sB=!0);let i=[...new Set(e.flatMap(e=>e.repositories??[]))];if(0!==i.length){for(let e of i)I("add-apt-repository",["-y",e]);Q(n);}let o=await Promise.all(e.map(e=>Y(e.name,e.version)));try{I(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sH.some(e=>t.includes(e))&&((0,rS.warning)(`Failed to install packages ${o}. Retrying...`),I(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function W(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("apt-cache",["search","--names-only",`^${(0,ng.default)(e)}-${(0,ng.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await x("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await x("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function Y(e,t){switch(await W(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${t??""}`);}}function J(){return null!==c(r$).sync("nala",{nothrow:!0});}function Q(e){I(e,"nala"!==e?["update","-y"]:["update"]);}async function Z(e){I(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[et(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),et(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),F("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function ee(){I("gpg",["-k"]);}async function et(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nE.pathExists)(n))||(ee(),await Promise.all(e.map(async e=>{await S("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await S("chmod",["644",n]);}))),n;}catch(e){(0,rS.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function er(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nE.pathExists)(r))||(ee(),await K([{name:"curl"},{name:"ca-certificates"}],void 0),await x("curl",["-s",t,"-o","/tmp/"+e]),I("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),I("chmod",["644",r])),r;}async function en(e,t,r=40){rI.GITHUB_ACTIONS?await S("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await H(),await(0,r_.appendFile)(sF,` if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi `));}async function ei(e){try{let{stdout:t}=await x("dpkg",["-l",e]);if("string"!=typeof t)return!1;return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function eo(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=c(r$).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nb.dirname)(i)};let o=c(n3).join((0,n4.tmpdir)(),"setup-cpp","brew");await(0,nR.mkdirP)(o),b("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let s=(0,n3.join)(o,"install.sh");return"linux"===process.platform&&(await(0,r_.readFile)(s,"utf-8")).replace("#!/bin/bash",""),b("/bin/bash",[s],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=es(),await M(t),{binDir:t};}function es(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function ea(e,t,r=[]){(0,nv.info)(`Installing ${e} ${t??""} via brew`),sV&&null!==c(r$).sync("brew",{nothrow:!0})||(await eo("","",process.arch),sV=!0);let n=es();return b((0,nb.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function el(e,t,n){if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let i=c(r$).sync("choco",{nothrow:!0});if(null!==i)return{binDir:r=(0,nb.dirname)(i)};let o="powershell.exe",s=c(r$).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(o=s),b(o,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await M(a);let l=c(r$).sync("choco",{nothrow:!0});if(r=null!==l?(0,nb.dirname)(l):`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`,await(0,nE.pathExists)(r))return{binDir:r};}async function ec(e,t,r=[]){(0,rS.info)(`Installing ${e} ${t??""} via chocolatey`),sq&&null!==c(r$).sync("choco",{nothrow:!0})||(await el("","",process.arch),sq=!0);let n=process.env.PATH,i={...process.env};if(i.TMP=void 0,i.TEMP=void 0,i.Path=void 0,i.PATH=n,void 0!==t&&""!==t)b("choco",["install","-y",e,"--version="+t,...r],{env:i,extendEnv:!1,stdio:"inherit"});else try{b("choco",["install","-y",e,...r],{env:i,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rS.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let o=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`;return await M(o),{binDir:o};}async function eu(e){for(let{name:t,version:r}of e)(0,rS.info)(`Installing ${t} ${r??""} via dnf`);return I("dnf",["-y","install",...(await Promise.all(e.map(e=>ep(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function ep(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await x("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await x("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rS.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}async function ed(e,t,r){switch(process.platform){case"win32":return ec("bazelisk",e);case"darwin":return ea("bazelisk",e);case"linux":if(D())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await eu([{name:"dnf-plugins-core"}]),I("dnf",["copr","enable","vbatts/bazel"]),eu([{name:"bazel4"}]);if(k()){let t=await er("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return I("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`]),K([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ef(e,t,r){(0,rS.info)(`Installing ${e} ${t??""} via pacman`);let n="pacman";if("yay"===r&&null===c(r$).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sz||"yay"===r||(I(n,["-Sy","--noconfirm"]),sz=!0),sX||"yay"===r||(I(n,["-S","--noconfirm","base-devel"]),sX=!0);let i=e=>"yay"===r?b(r,["-S","--noconfirm",e]):I(r??n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await eh(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rS.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function eh(e,t){let r=[];try{let{stdout:n}=await x(e,["-Si",t]);for(let e of n.matchAll(sK))r.push(e[1]);}catch(e){(0,rS.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function em(e,t){let r=[];t=t||sZ.arch();let n=s0.join(ex(),e);if(sJ.existsSync(n)){for(let e of sJ.readdirSync(n))if(ey(e)){let i=s0.join(n,e,t||"");sJ.existsSync(i)&&sJ.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function ev(e){return nA(this,void 0,void 0,function*(){return e||(e=s0.join(eb(),s6.default())),yield sY.mkdirP(e),e;});}function eg(e,t,r){return nA(this,void 0,void 0,function*(){let n=s0.join(ex(),e,s2.clean(t)||t,r||"");sW.debug("destination "+n);let i=`${n}.complete`;return yield sY.rmRF(n),yield sY.rmRF(i),yield sY.mkdirP(n),n;});}function eE(e,t,r){let n=s0.join(ex(),e,s2.clean(t)||t,r||""),i=`${n}.complete`;sJ.writeFileSync(i,""),sW.debug("finished caching tool");}function ey(e){let t=s2.clean(e)||"";sW.debug("isExplicit: "+t);let r=null!=s2.valid(t);return sW.debug("explicit? "+r),r;}function ew(e,t){let r="";sW.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>s2.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(s2.satisfies(i,t)){r=i;break;}}return r?sW.debug("matched: "+r):sW.debug("match not found"),r;}function ex(){let e=process.env.RUNNER_TOOL_CACHE||"";return rt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eb(){let e=process.env.RUNNER_TEMP||"";return rt.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eR(e,t){let r=ry[e];return void 0!==r?r:t;}function eI(e,t,r){switch(process.platform){case"win32":return ec("7zip",e);case"darwin":return ea("p7zip",e);case"linux":if(D())return ef("p7zip",e);if(L())return eu([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(k())return K([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eS(e,t){return await x(await eO(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await C(t),t;}async function eO(){return void 0===n&&(null===c(r$).sync("7z",{nothrow:!0})&&(await eI("","",process.arch)),n="7z"),n;}function eT(e,t){return eS(e,t);}function eC(e,t){return eS(e,t);}async function eA(e,t,r=["--strip-components=0"]){try{await(0,nR.mkdirP)(t);}catch{}try{await x("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rS.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return await C(t),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 ae(r.name+" timed out",s));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(a){i&&clearTimeout(i),o&&clearTimeout(o),s=a,r.report&&r.report(a&&a.toString()||a,r,a);var l=r.$current(0,nI.downloadTool)(o),{name:o,max:4,backoffBase:2e3,report:e=>(0,rS.info)(e)});at||((0,rS.info)("Installing extraction dependencies"),"linux"===process.platform&&(D()?await Promise.all([ef("unzip"),ef("tar"),ef("xz")]):L()?await eu([{name:"unzip"},{name:"tar"},{name:"xz"}]):k()&&(await K([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),at=!0),(0,rS.info)(`Extracting ${r} to ${n}`),await u?.(r,n);}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${o}: ${r}`);}return(0,rS.info)(`Add ${d} to PATH`),await M(d),rI.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nI.cacheDir)(n,e,t)),{installDir:p,binDir:d};}function e_(e,t,r){let n=c(nU)(e)??e;switch(t){case"win32":{let t;let i=c(nj)(n,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?i?"win32-x86":"windows-i386":i?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eC,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=c(nj)(n,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nI.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let i=c(nj)(n,"v3.19.8");t=["aarch64"].includes(r)?i?"Linux-aarch64":"linux-aarch64":i?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nI.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function eP(e,t,r){return eN("cmake",e,e_,t,r);}function eL(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:nG.call(e,0):[];}function eD(e,t){return e===t||e!=e&&t!=t;}function ek(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function eU(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return eU(e.fn,ek(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,s=t.maxSize,a=t.onCacheAdd,l=t.onCacheChange,c=t.onCacheHit,u=t.transformKey,p=ek({isEqual:void 0===r?eD:r,isMatchingKey:n,isPromise:o,maxSize:void 0===s?1:s,onCacheAdd:a,onCacheChange:l,onCacheHit:c,transformKey:u},function(e){var t={};for(var r in e)nM[r]||(t[r]=e[r]);return t;}(t)),d=new nB(p),f=d.keys,h=d.values,m=d.canTransformKey,v=d.shouldCloneArguments,g=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,y=d.shouldUpdateOnHit,w=function(){var t=v?eL(arguments):arguments;m&&(t=u(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)y&&c(d,p,w),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,w));else{var n=e.apply(this,arguments),i=v?t:eL(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(w),g&&a(d,p,w),E&&l(d,p,w);}return h[0];};return w.cache=d,w.fn=e,w.isMemoized=!0,w.options=p,w;}function ej(e,t){return new Promise(r=>{try{let n=(0,n7.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 eF(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return c(nq)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eM(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await nV(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 eF(e,r)){let e=await n(t,o);if(null!==e){if(await nV(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 eG(e,t=ag){try{let r=await(0,nN.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",i=n.trim().match(t)?.[1];return c(nU)(i)??void 0;}catch(e){console.error(e);return;}}async function eB(e,t,r=ag){let n=await eG(e,r);return void 0!==n&&""!==t&&-1!==c(nq)(n,t);}function eH(){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 eV(e,t,r){let n=await eX(e,t,r);c(rt)(void 0!==n.bin);let i=n.bin;if(void 0===(await eJ(i)))throw Error("pip was not installed correctly");return await eq(i),await ez(i),n;}async function eq(e){try{if(!(await te(e)))try{await e9(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===ts("pipx",!1))throw Error("pipx was not installed correctly "+e);}await x(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e9(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rS.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function ez(e){try{await e9(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e9(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rS.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eX(e,t,r){let n;let i=await eW(t);if(void 0!==i){let e=(0,nb.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rI.GITHUB_ACTIONS)try{(0,rS.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rb("4JiFg");await o(e,t,r),i=await eW(t);let s=(0,nb.dirname)(i);n={bin:i,installDir:s,binDir:s};}catch(e){(0,rS.warning)(e.toString());}void 0===n&&(n=await eK(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eW(t),n.bin=i),n;}async function eK(e,t){let r;switch(process.platform){case"win32":{e?await ec("python3",t,["--params=/InstallDir:"+e]):await ec("python3",t);let n=await eW(e),i=(0,nb.dirname)(n);await M(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await ea("python3",t);let e=await x("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nb.join)(e.stdout,"libexec","bin");await M(n);break;}case"linux":if(D())r=await ef("python",t);else if(L())r=await eu([{name:"python3",version:t}]);else if(k())r=await K([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eW(e){for(let t of["python3","python"]){let r=await eY(t,e);if(void 0!==r)return r;}}async function eY(e,t){try{if(void 0!==t){let r=(0,nb.join)(t,(0,nb.addExeExt)(e));if((await(0,nE.pathExists)(r))&&(await eB(r,ay.python)))return r;}for(let t of(await c(r$)(e,{nothrow:!0,all:!0}))??[])if(await eB(t,ay.python))return t;}catch{}}async function eJ(e){let t=await eQ();return void 0===t?((0,rS.info)("pip was not found. Installing pip"),await e0(e),eQ()):t;}async function eQ(){for(let e of["pip3","pip"]){let t=await eZ(e);if(void 0!==t)return t;}}async function eZ(e){try{for(let t of(await c(r$)(e,{nothrow:!0,all:!0}))??[])if(await eB(t,ay.pip))return t;}catch{}}async function e0(e){(await e1(e))||(await ts("pip"),await e1(e));}async function e1(e){try{return await x(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rS.info)(t.toString());try{return await x(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rS.info)(e.toString());}}return!1;}async function e2(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nN.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nb.join)(r,"Scripts"),(0,nb.join)(r,"Scripts","bin"),(0,nb.join)(r,"bin")),[...new Set(t)];}function e4(e,t,r=null){return e3(t)&&"linux"===process.platform&&null!==r&&e in aw?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,aw[e]):e3(t)&&e in aE?aE[e]:"true"===t?"":t??"";}function e3(e){return"true"===e||void 0===e;}async function e6(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{ri.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 e8(){try{if(!k())return null;{try{null===c(r$).sync("lsb_release",{nothrow:!0})&&(await K([{name:"lsb-release"}]));}catch{return e5();}let e=await(0,nX.getUbuntuVersion)();if(0===e.length)return e5();return e;}}catch(e){return(0,rS.warning)(e.toString()),null;}}function e5(){if(!("version"in c(n4)&&"function"==typeof c(n4).version))return null;let e=c(n4).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 e7(e,t,r={}){return e9(await aS(),e,t,r);}async function e9(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:s=!1,isLibrary:a=!1}=n,l=i&&!a&&(await te(e)),c=l?"pipx":"pip";if(await ti(e,t))try{(0,nv.info)(`Installing ${t} ${r??""} via ${c}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await aR(),i.PIPX_BIN_DIR=await aI()),b(e,["-m",c,...(s?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nv.info)(`Failed to install ${t} via ${c}: ${e}.`),(await ts(t))===null)throw Error(`Failed to install ${t} via ${c}: ${e}.`);}else if((await ts(t))===null)throw Error(`Failed to install ${t} as it was not found via ${c} or the system package manager`);let u=await ax(e),p=await to(u,t);return await M(p),{binDir:p};}async function te(e){return 0===(await x(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function tt(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=A("~/.local/pipx");if(await(0,nE.pathExists)(t))return t;switch(process.platform){case"win32":e=A("~/AppData/Local/pipx");break;case"darwin":e=A("~/Library/Application Support/pipx");break;default:e=A("~/.local/share/pipx");}return await av(e),await av((0,nb.join)(e,"trash")),await av((0,nb.join)(e,"shared")),await av((0,nb.join)(e,"venv")),e;}async function tr(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=A("~/.local/bin");return await M(e),await av(e),e;}async function tn(){let e=(await eV(e4("python",void 0,await ab()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function ti(e,t){return 0===(await x(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function to(e,t){let r=(await Promise.all(e.map(e=>(0,nE.pathExists)((0,nb.join)(e,(0,nb.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=c(r$).sync((0,nb.addExeExt)(t),{nothrow:!0});return null!==n?(0,nb.dirname)(n):e[e.length-1];}function ts(e,t=!0){if("linux"===process.platform){if((0,nv.info)(`Installing ${e} via the system package manager`),D())return ef(t?"python-"+e:e);if(L())return eu([{name:t?"python3-"+e:e}]);if(k())return K([{name:t?"python3-"+e:e}]);}return null;}async function ta(e,t,r){switch(process.platform){case"win32":return await ec("cppcheck",e),{binDir:await tl()};case"darwin":return ea("cppcheck",e);case"linux":if(D())return ef("cppcheck",e);if(L())return eu([{name:"ccache",version:e}]);if(k())return K([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tl(){let e="C:/Program Files/Cppcheck";return await M(e),e;}async function tc(e,t,r){switch(process.platform){case"win32":return await ec("graphviz",e),tu();case"darwin":return ea("graphviz",e);case"linux":if(D())return ef("graphviz",e);if(L())return eu([{name:"graphviz",version:e}]);if(k())return K([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tu(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await M(e),{binDir:e};}throw Error("Unsupported platform");}async function tp(e,t){let{ArchiveHdi:r}=await rb("2tlzJ"),n=new r(e);await n.read(async e=>{await e.extract((0,n3.join)(t,e.path));});}function td(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nI.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eC,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,nb.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tp,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tf(e,t,r){switch(process.platform){case"win32":{await c(nF)(()=>ec("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rS.info)(e)});let t=await th();return await tc(e4("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let e=await ea("doxygen",void 0);return aT()[0]>11&&(await tc(e4("graphviz",void 0),"",r)),e;}case"linux":{let n;if(""===e||D()||L()){if(D())n=await ef("doxygen",e);else if(L())return eu([{name:"doxygen",version:e}]);else if(k())n=await K([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(k())try{n=await eN("doxygen",e,td,t,r);try{await K([{name:"libclang-cpp9"}]);}catch(e){(0,rS.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rS.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await K([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tc(e4("graphviz",void 0,await ab()),"",r),n;}default:throw Error("Unsupported platform");}}async function th(){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,nE.pathExists)((0,nb.join)(e,"doxygen.exe")))return await M(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tm(){if("darwin"===process.platform)try{let e=await(0,nN.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,rS.error)("SDKROOT not set");}catch(e){(0,rS.error)(e);}}function tv(e,t,r){if("win32"===t){let t=aC[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nb.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eS,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 tg(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await ec("gcc-arm-embedded",e));try{i=await eN("g++",e,tv,t,r);}catch(t){(0,rS.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await ty(e,r);}break;case"darwin":i=await ea("gcc",e);break;case"linux":"x64"===r?D()?i=await ef("gcc",e):L()?i=await eu([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):k()&&(i=await K([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rS.info)(`Install g++-multilib because gcc for ${r} was requested`),D()?await ef("gcc-multilib",e):k()&&(await K([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tw(e,i.binDir,n),i;}async function tE(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tg(e,t,r);case"linux":D()?n=await ef("mingw-w64-gcc",e):L()?n=await eu([{name:"mingw64-gcc",version:e}]):k()&&(n=await K([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function ty(e,t){let r;if(await ec("mingw",e),"x64"===t&&(await(0,nE.pathExists)("C:/tools/mingw64/bin"))?(r="C:/tools/mingw64/bin",await M(r)):"ia32"===t&&(await(0,nE.pathExists)("C:/tools/mingw32/bin"))?(r="C:/tools/mingw32/bin",await M(r)):(await(0,nE.pathExists)(`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(r=`${process.env.ChocolateyInstall??"C:/ProgramData/chocolatey"}/bin`),void 0!==r)return{binDir:r};}async function tw(e,t,r=40){let n=[];if("win32"===process.platform)n.push(F("CC",(0,nb.addExeExt)(`${t}/gcc`)),F("CXX",(0,nb.addExeExt)(`${t}/g++`)));else{let i=c(nK)(c(nU)(e)??e);i>=5?(n.push(F("CC",`${t}/gcc-${i}`),F("CXX",`${t}/g++-${i}`)),k()&&n.push(en("cc",`${t}/gcc-${i}`,r),en("cxx",`${t}/g++-${i}`,r),en("gcc",`${t}/gcc-${i}`,r),en("g++",`${t}/g++-${i}`,r))):(n.push(F("CC",`${t}/gcc-${e}`),F("CXX",`${t}/g++-${e}`)),k()&&n.push(en("cc",`${t}/gcc-${e}`,r),en("cxx",`${t}/g++-${e}`,r),en("gcc",`${t}/gcc-${e}`,r),en("g++",`${t}/g++-${e}`,r)));}n.push(tm()),rI.GITHUB_ACTIONS&&(await tx()),await Promise.all(n);}async function tx(){let e=(0,nb.join)(nW,"gcc_matcher.json");if(!(await(0,nE.pathExists)(e)))return(0,rS.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rS.info)("::add-matcher::"+e);}function tb(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,nb.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eC,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tR(e,t,r){return eN("ninja",e,tb,t,r);}function tI(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:eA};}function tS(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nb.addExeExt)("kcov"),extractFunction:tO};}async function tO(e,t){let r=await eA(e,t,["--strip-components=1"]),n=await tT();"linux"===process.platform&&(D()?await Promise.all([ef("libdwarf"),ef("libcurl-openssl")]):L()?await eu([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):k()&&(await K([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==c(r$).sync("patch",{nothrow:!0})){let e=(0,nb.join)(nY,"gcc13.patch");await x("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rS.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nb.join)(r,"build");return await x(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await x(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tT(){let e=c(r$).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await eP(e4("cmake",void 0,await ab()),(0,nb.join)(A("~"),"cmake"),"");e=(0,nb.join)(t,"cmake");}return null===c(r$).sync("ninja",{nothrow:!0})&&(await tR(e4("ninja",void 0,await ab()),(0,nb.join)(A("~"),"ninja"),"")),e;}async function tC(e,t,r){var n;let i;if("linux"!==process.platform){(0,rS.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 eN("kcov",s,tI,t,r),D()?await ef("binutils"):L()?await eu([{name:"binutils"}]):k()&&(await K([{name:"libbinutils"}]))):i=await eN("kcov",s,tS,t,r),i;}function tA(e){if(Object.values(aU).includes(e));else if(e in aU)return aU[e];return e;}function t$(e){let t;let r=tA(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return ri.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nv.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&n6.existsSync(n))return nv.info("Found with vswhere: "+n),n;nv.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(aU).includes(e));else for(let[t,r]of Object.entries(aU))if(r===e)return t;return e;}(e)]:ak;for(let e of aL)for(let t of i)for(let r of aD)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nv.info("Trying standard location: "+n),n6.existsSync(n))return nv.info("Found standard location: "+n),n;if(nv.info("Not found in standard locations"),n=`${aP}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,n6.existsSync(n))return nv.info("Found VS 2015: "+n),n;throw nv.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tN(e,t,r,n,i,o,s){void 0!==t&&(await(0,nE.pathExists)(t))&&((0,rS.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),await nZ(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 t_(e,t,r,n,i,o,s,a=aF){(0,nv.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(a_(e)),e.addEventListener("abort",()=>{l(a_(e));});}if(n===Number.POSITIVE_INFINITY){e.then(a,l);return;}let c=new aA();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=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;}(tP(e,t,r,n,i,o),{milliseconds:a,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rS.error)(t),s.push(`${e} failed to install`);}return(0,nv.endGroup)(),l;}async function tP(e,t,r,n,i,o){let s;let a=["llvm","clangformat","clangtidy"].includes(e);if("vcvarsall"===e)await tN(e4(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let o=aY[e],l=(0,nb.join)(i,a?"llvm":e);s=await o(e4(e,t,r),l,n);}return o.push(t3(e,s)),a;}async function tL(e,t=0){let r="/usr/lib/llvm-"+e;await K([{name:"curl"}]),await x("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tD("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await K(n),await(0,r_.chmod)("/tmp/llvm-setup-cpp.sh","755"),await S("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:aF}),await M(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tD(e,t,r,n){var i,o,s,a,l;let c=await(0,r_.readFile)(e,"utf-8");return o=n,s=c=(i=c,c="1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?i.replace(/set -eux/g,"set -eu"):i).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),a=r,c=1===o?s.replace(/ -y \$PKG/g," -y clang-format-"+a):s,l=c=await tk(c),c=J()?l.replace(/apt-get/g,"nala"):l,await(0,r_.writeFile)(t,c),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function tk(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -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 ei(r))&&((0,rE.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function tU(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function tj(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function tF(e){let t;if(aG.has(e))return null;let r="LLVM-",n=c(nj)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=c(nj)(e,"9.0.1"),o=!1;return i&&(t=tj(e,r,n),(await nV(t))||(o=!0)),(o||!i)&&(t=tU(e,r,n)),t;}function tM(e,t){switch(e){case"darwin":return function(e){if(aB.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(nj)(e,"9.0.1")?tj(e,r,n):tU(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=aH.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!aM.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eF(aM,e)[0];}else""!==n&&n in aV?t=aV[n]:(t=aV[aq],(0,rS.warning)(`Falling back to LLVM version ${aq} ${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(nj)(n,"9.0.1"))?tj(n,o,r):tU(n,o,r);}(t);case"win32":return tF(t);default:return null;}}async function tG(e,t,r){let[n,i]=await eM(aM,t,e,tM);return(0,rS.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nb.addExeExt)("clang"),extractFunction:"win32"===t?eT:(e,t)=>eA(e,t,["--strip-components=1"])};}async function tB(e,t,r){let n=await az(e,t,r);return await tX(n.installDir??t),n;}async function tH(e,t,r){let[n,i,o]=await Promise.all([tV(e,t,r),aK(r),tK()]);return n;}async function tV(e,t,r,n=n0.All){let i=Number.parseInt(function(e){if(null===c(nz)(e))try{let t=c(nU)(e);if(null!==t)return(0,rS.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(k())return await tL(i,n);}catch(e){(0,rS.info)("Failed to install llvm via system package manager "+e);}let o=await eN("llvm",e,tG,t,r);return await aX(i),o;}async function tq(e){k()&&(e<=10?await K([{name:"libtinfo5"}]):await K([{name:"libtinfo-dev"}]));}async function tz(e){"linux"===process.platform&&(await tg(e4("gcc",void 0,await ab()),"",e,40));}async function tX(e){let t=process.env.LD_LIBRARY_PATH??"",r=process.env.DYLD_LIBRARY_PATH??"",n=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${e}/lib${n3.delimiter}${t}`),F("DYLD_LIBRARY_PATH",`${e}/lib${n3.delimiter}${r}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,nb.addExeExt)(`${e}/bin/clang`)),F("CXX",(0,nb.addExeExt)(`${e}/bin/clang++`)),F("LIBRARY_PATH",`${e}/lib`),tm()];k()&&n.push(en("cc",`${e}/bin/clang`,60),en("cxx",`${e}/bin/clang++`,60),en("clang",`${e}/bin/clang`),en("clang++",`${e}/bin/clang++`),en("lld",`${e}/bin/lld`),en("ld.lld",`${e}/bin/ld.lld`),en("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(n);}async function tK(){if(rI.GITHUB_ACTIONS){let e=(0,nb.join)(n1,"llvm_matcher.json");if(!(await(0,nE.pathExists)(e)))return(0,rS.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rS.info)("::add-matcher::"+e);}}async function tW(e,t,r){switch(process.platform){case"win32":return ec("make",e);case"darwin":return await ea("make",e),await M("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(D())return ef("make",e);if(L())return eu([{name:"make",version:e}]);if(k())return K([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tY(e,t,r,n,i,o){let s,a;if("win32"!==process.platform)return;let l=nJ(e);(0,rS.info)(`Checking if MSVC ${l} is already installed`);let c=!1;try{let e=nQ(l);c=!0,(0,rS.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!c)try{"14.0"===l?(s="14.0",await ec("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 ec("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 ec("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 ec("visualstudio2022buildtools","117.0.5.0",[]),a=void 0):(0,rS.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rS.error)(e);}await tN(l,a,r,s,n,i,o),rI.GITHUB_ACTIONS&&(await tJ());}async function tJ(){let e=(0,nb.join)(n2,"msvc_matcher.json");if(!(await(0,nE.pathExists)(e)))return(0,rS.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rS.info)("::add-matcher::"+e);}async function tQ(e,t,r){if(!k())return;if("string"==typeof i)return{binDir:i};let n=c(r$).sync("nala",{nothrow:!0});if(null!==n)return{binDir:i=(0,nb.dirname)(n)};let o=await er("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");I("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await K([{name:"nala"}],!0):await K([{name:"nala-legacy"}],!0);}catch(e){await K([{name:"nala-legacy"}],!0);}return{binDir:i="/usr/bin"};}async function tZ(e,t,r){if("win32"===process.platform)return await ec("opencppcoverage",e),{binDir:await t0()};}async function t0(){let e="C:/Program Files/OpenCppCoverage";return await M(e),e;}async function t1(e,t,r){switch(process.platform){case"win32":{await ec("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await M(t),{binDir:t};}case"darwin":return ea("powershell",e,["--cask"]);case"linux":if(D())return ef("powershell-bin",e,"yay");if(L())return await eu([{name:"curl"}]),I("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),eu([{name:"powershell",version:e}]);if(k()){await K([{name:"curl"}]);let t=await ab(),r=`${t[0]}.0${t[1]}`;return I("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),I("dpkg",["-i","packages-microsoft-prod.deb"]),K([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function t2(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;return{binRelativeDir:"",binFileName:(0,nb.addExeExt)("task"),extractedFolderName:"",extractFunction:s?eC:eA,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${s?"zip":"tar.gz"}`};}async function t4(e,t,r){return aW&&null!==c(r$).sync("vcpkg",{nothrow:!0})?{binDir:(0,nb.dirname)(c(r$).sync("vcpkg"))}:("linux"===process.platform&&(D()?await Promise.all([ef("curl"),ef("zip"),ef("unzip"),ef("tar"),ef("git"),ef("pkg-config")]):L()?await eu([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):k()&&(await K([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nE.pathExists)((0,nb.join)(t,(0,nb.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rS.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):b("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nb.dirname)(t),stdio:"inherit"}),b((0,nb.addShExt)((0,nb.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await C(t),await M(t),aW=!0,{binDir:t});}function t3(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 t6(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(nz)(e)||(0,rS.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nv.startGroup)(`Installing ${a} ${l??""}`),a){case"llvm":case"clang":case"clang++":{let e=await tB(e4("llvm",l,t),(0,n3.join)(r,"llvm"),n);await F("GCOV","llvm-cov gcov"),i.push(t3("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===a?e4("mingw",l,t):e4("gcc",l,t),s="mingw"===a?await tE(e,(0,n3.join)(r,"gcc"),n):await tg(e,(0,n3.join)(r,"gcc"),n);o&&(await F("CPPFLAGS","")),await function(e){let t=c(nz)(e),r=null!==t?c(nK)(t):e;return F("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(t3("gcc",s));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await tY(e4("msvc",l,t),(0,n3.join)(r,"msvc"),n);o&&(await F("CPPFLAGS","")),i.push(t3("msvc",e));break;}case"appleclang":case"applellvm":(0,nv.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),i.push(t3("apple-clang",void 0));break;default:s.push("Unsupported compiler "+a);}}catch(t){(0,rS.error)(t),s.push("Failed to install the "+e);}(0,nv.endGroup)();}async function t8(e){let t,r,n=Promise.resolve();rI.GITHUB_ACTIONS||(n=_(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let i=function(e,t){t=t||{};var r,n,i,o,s,a={_:[]},l=0,c=0,u=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(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:[...aQ,"timeout"],default:Object.fromEntries(aQ.map(e=>[e,function(e){let t=(0,nv.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});i.help&&((0,rS.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:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??A("~"),a=[],l=[],u=rC.create({autoloadLocales:!0});rC.addLocale(c(rA)),rO.addLocale(c(rT));let p=await ab();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e3(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;}(i,["llvm","clangtidy","clangformat"]))return(0,rS.error)("The same version must be used for llvm, clangformat and clangtidy"),1;D()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rS.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ef("python-pygments"));let d=!1,f=!1;for(let e of aJ){if(rI.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),d=await t_(e,n,p,o,s,a,l,6e4*Number.parseFloat(i.timeout??"20")),r=Date.now(),(0,rS.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await t6(e,p,s,o,a,d,l);let r=Date.now();(0,rS.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await X(),0===a.length&&0===l.length)return(0,rS.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of a)(0,rS.success)(e);for(let e of l)(0,rS.error)(e);if((0,rS.info)("setup-cpp finished"),!rI.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rS.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rS.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await n,0===l.length?0:1;}var t5,t7,t9,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rv,rg,rE,ry,rw,rx,rb,rR,rI,rS,rO,rT,rC,rA,r$,rN,r_,rP,rL,rD,rk,rU,rj,rF,rM,rG,rB,rH,rV,rq,rz,rX,rK,rW,rY,rJ,rQ,rZ,r0,r1,r2,r4,r3,r6,r8,r5,r7,r9,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,nv,ng,nE,ny,nw,nx,nb,nR,nI,nS,nO,nT,nC,nA,n$,nN,n_,nP,nL,nD,nk,nU,nj,nF,nM,nG,nB,nH,nV,nq,nz,nX,nK,nW,nY,nJ,nQ,nZ,n0,n1,n2,n4=require("os"),n3=require("path"),n6=require("fs"),n8=require("crypto"),n5=require("http"),n7=require("https");require("net"),t9=require("tls"),re=require("events"),rt=require("assert"),rr=require("util"),rn=require("fs"),ri=require("child_process"),ro=require("string_decoder"),rs=require("timers"),ra=require("buffer"),rl=require("path"),rc=require("child_process"),ru=require("process"),rp=require("url"),rd=require("os"),rf=require("buffer"),rh=require("stream"),rm=require("util"),rv=require("process"),rg=require("url"),rE=require("console"),rw={},rx={},null==(rb=(ry=globalThis).parcelRequire810d)&&((rb=function(e){if(e in rw)return rw[e].exports;if(e in rx){var t=rx[e];delete rx[e];var r={id:e,exports:{}};return rw[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){rx[e]=t;},ry.parcelRequire810d=rb),(rR=rb.register)("52cQ1",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=rb("jgqtC");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));}),rR("jgqtC",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"}]');}),rR("ER74K",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=rb("4t50X"),n=rb("52cQ1");}),rR("4t50X",function(e,t){var r,n,i,o,s,a,l,c,u,p,d,f;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=rb("dIPEE"),a=rb("aSbHp"),l=rb("i0ItD");let E=i(n4),y=i(n3);c=rb("6dNYa"),(f=u=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.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}${y.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(E.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+E.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=rb("dTpO2"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rb("dTpO2"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rb("azKnO"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rR("dIPEE",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(n4);o=rb("i0ItD"),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")));}}}),rR("i0ItD",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}:{};};}),rR("aSbHp",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(n6),l=i(n4);o=rb("e3G3w"),s=rb("i0ItD"),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}`;};}),rR("e3G3w",function(e,t){var r,n,i;l(e.exports,"default",()=>i),r=rb("kDGEy"),n=rb("2ckr2"),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);};}),rR("kDGEy",function(e,t){function r(){return i>n.length-16&&(c(n8).randomFillSync(n),i=0),n.slice(i,i+=16);}l(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rR("2ckr2",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("9IL8W");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;};}),rR("9IL8W",function(e,t){var r,n;l(e.exports,"default",()=>n),r=rb("hDU47"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rR("hDU47",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;}),rR("6dNYa",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=rb("a7JAS"),i=rb("3T6Pq"),o=rb("4t50X");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;}),rR("a7JAS",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),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.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(n5),d=i(n7),f=i(rb("8gh3V")),h=i(rb("7i1qo"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[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||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],v=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class y{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=y,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 y(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);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},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=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;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(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return 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 E(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),{});}),rR("8gh3V",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 n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rR("7i1qo",function(e,t){e.exports=rb("fbmJm");}),rR("fbmJm",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||n5.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=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),s=t9.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 d(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=n5.request,t;},n=function(e){var t=new c(e);return t.request=n5.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new c(e);return t.request=n7.request,t;},o=function(e){var t=new c(e);return t.request=n7.request,t.createSocket=u,t.defaultPort=443,t;},rr.inherits(c,re.EventEmitter),c.prototype.addRequest=function(e,t,r,n){var i=this,o=d({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=d({},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;}),rR("3T6Pq",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");});}};}),rR("dTpO2",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}=n6.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,n6.constants.R_OK|n6.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(n4.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;}),rR("azKnO",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(n3);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);};}),rR("eCDnw",function(e,t){var r=n3.resolve(__dirname,"../../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);}),rR("gMm9F",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=rb("iWDmx"),i=rb("9xs9T");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};}),rR("iWDmx",function(e,t){e.exports=rb("eCDnw");}),rR("9xs9T",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rR("4oHc1",function(e,t){l(e.exports,"appendFile",()=>n),l(e.exports,"chmod",()=>i),l(e.exports,"lstat",()=>p),l(e.exports,"mkdir",()=>d),l(e.exports,"open",()=>h),l(e.exports,"readdir",()=>m),l(e.exports,"readFile",()=>v),l(e.exports,"readlink",()=>g),l(e.exports,"stat",()=>x),l(e.exports,"symlink",()=>b),l(e.exports,"utimes",()=>S),l(e.exports,"writeFile",()=>O),l(e.exports,"rm",()=>T),n6.promises;let{access:r,appendFile:n,chmod:i,chown:o,copyFile:s,lchmod:a,lchown:c,link:u,lstat:p,mkdir:d,mkdtemp:f,open:h,readdir:m,readFile:v,readlink:g,realpath:E,rename:y,rmdir:w,stat:x,symlink:b,truncate:R,unlink:I,utimes:S,writeFile:O}=n6.promises,T="rm"in n6.promises?n6.promises.rm:(0,rr.promisify)(n6.unlink);}),rR("bGwAu",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;n{for(let[t,r]of f)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-]${d}*`),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",`${d}+`),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*$");}),rR("3qgxS",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};}),rR("3CqZ1",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;}),rR("aMLnW",function(e,t){var r=rb("3CqZ1"),n=rb("3qgxS"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,s=rb("9J5od"),a=s.safeRe,l=s.t,c=rb("6omBt"),u=rb("fx8Ft").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;}),rR("6omBt",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rR("fx8Ft",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)};}),rR("UI3XL",function(e,t){var r=rb("aMLnW");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;}};}),rR("l655J",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rR("jzJq8",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rR("b1nH1",function(e,t){var r=rb("aMLnW");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;}};}),rR("inG4j",function(e,t){var r=rb("UI3XL");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";};}),rR("2aJGP",function(e,t){var r=rb("aMLnW");e.exports=(e,t)=>new r(e,t).major;}),rR("h6Ixq",function(e,t){var r=rb("aMLnW");e.exports=(e,t)=>new r(e,t).minor;}),rR("90ROK",function(e,t){var r=rb("aMLnW");e.exports=(e,t)=>new r(e,t).patch;}),rR("8m4O1",function(e,t){var r=rb("UI3XL");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rR("3uysP",function(e,t){var r=rb("aMLnW");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rR("hYBTv",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>r(t,e,n);}),rR("ftcZo",function(e,t){var r=rb("3uysP");e.exports=(e,t)=>r(e,t,!0);}),rR("1CIrW",function(e,t){var r=rb("aMLnW");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rR("exBHN",function(e,t){var r=rb("1CIrW");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rR("lm1lq",function(e,t){var r=rb("1CIrW");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rR("cPjhN",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>r(e,t,n)>0;}),rR("avz3V",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0>r(e,t,n);}),rR("fXQFJ",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0===r(e,t,n);}),rR("bu0Ra",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0!==r(e,t,n);}),rR("9xdhv",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rR("8aNoG",function(e,t){var r=rb("3uysP");e.exports=(e,t,n)=>0>=r(e,t,n);}),rR("8gipG",function(e,t){var r=rb("fXQFJ"),n=rb("bu0Ra"),i=rb("cPjhN"),o=rb("9xdhv"),s=rb("avz3V"),a=rb("8aNoG");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);}};}),rR("l8hao",function(e,t){var r=rb("aMLnW"),n=rb("UI3XL"),i=rb("9J5od"),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);};}),rR("dSz9p",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=rb("6omBt"),o=rb("9J5od"),s=o.safeRe,a=o.t,l=rb("8gipG"),c=rb("3CqZ1"),u=rb("aMLnW"),p=rb("4FTez");}),rR("4FTez",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.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.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&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&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,$(this.options.includePrerelease))),s("comparator trim",e=e.replace(c[u.COMPARATORTRIM],p)),s("tilde trim",e=e.replace(c[u.TILDETRIM],d)),s("caret trim",e=e.replace(c[u.CARETTRIM],f));let l=e.split(" ").map(e=>w(e,this.options)).join(" ").split(/\s+/).map(e=>A(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 E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>y(r,t)&&e.set.some(e=>y(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,E=e=>""===e.value,y=(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=I(e,t)),s("tildes",e=b(e,t)),s("xrange",e=O(e,t)),s("stars",e=C(e,t)),e),x=e=>!e||"x"===e.toLowerCase()||"*"===e,b=(e,t)=>e.trim().split(/\s+/).map(e=>R(e,t)).join(" "),R=(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),x(r)?a="":x(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:x(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;});},I=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(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),x(r)?l="":x(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:x(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;});},O=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map(e=>T(e,t)).join(" ")),T=(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=x(i),u=c||x(o),p=u||x(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;});},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[u.STAR],"")),A=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),$=e=>(t,r,n,i,o,s,a,l,c,u,p,d,f)=>(r=x(n)?"":x(i)?`>=${n}.0.0${e?"-0":""}`:x(o)?`>=${n}.${i}.0${e?"-0":""}`:s?">="+r:`>=${r}${e?"-0":""}`,l=x(c)?"":x(u)?`<${+c+1}.0.0-0`:x(p)?`<${c}.${+u+1}.0-0`:d?`<=${c}.${u}.${p}-${d}`:e?`<${c}.${u}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),N=(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;};}),rR("eGCLk",function(e,t){var r=rb("JD6z9");let n=Symbol(),i=Symbol(),o=Symbol(),s=Symbol(),a=Symbol(),l=Symbol(),c=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(g(e,n),!e[s])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a];},v=e=>{if(e[i]>e[n])for(let t=e[u].tail;e[i]>e[n]&&null!==t;){let r=t.prev;g(e,t),t=r;}},g=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[u].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let y=(e,t,r,n)=>{let i=r.value;m(e,i)&&(g(e,r),e[s]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[l]=e.dispose,this[c]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,v(this);}get max(){return this[n];}set allowStale(e){this[s]=!!e;}get allowStale(){return this[s];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[a]=e,v(this);}get maxAge(){return this[a];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),v(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[u].length;}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){let n=r.prev;y(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){let n=r.next;y(this,e,r,t),r=n;}}keys(){return this[u].toArray().map(e=>e.key);}values(){return this[u].toArray().map(e=>e.value);}reset(){this[l]&&this[u]&&this[u].length&&this[u].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[u]=new r(),this[i]=0;}dump(){return this[u].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[u];}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let s=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[c]&&this[l](e,o.value),o.now=s,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),v(this),!0;}let f=new E(e,t,d,s,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[u].unshift(f),this[p].set(e,this[u].head),v(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[u].tail;return e?(g(this,e),e.value):null;}del(e){g(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rR("JD6z9",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&ii;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(tthis.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var s=[],i=0;o&&i{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rR("eRnrA",function(e,t){var r=rb("4FTez");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rR("aAvhf",function(e,t){var r=rb("aMLnW"),n=rb("4FTez");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;};}),rR("iWAcu",function(e,t){var r=rb("aMLnW"),n=rb("4FTez");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;};}),rR("32TwK",function(e,t){var r=rb("aMLnW"),n=rb("4FTez"),i=rb("cPjhN");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;};}),rR("194Ox",function(e,t){var r=rb("4FTez");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rR("a8VZj",function(e,t){var r=rb("aMLnW"),n=rb("dSz9p");let{ANY:i}=n;var o=rb("4FTez"),s=rb("2bU8Y"),a=rb("cPjhN"),l=rb("avz3V"),c=rb("8aNoG"),u=rb("9xdhv");e.exports=(e,t,p,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new o(t,d),p){case">":f=a,h=c,m=l,v=">",g=">=";break;case"<":f=l,h=u,m=a,v="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(s(e,t,d))return!1;for(let r=0;r{e.semver===i&&(e=new n(">=0.0.0")),s=s||e,a=a||e,f(e.semver,s.semver,d)?s=e:m(e.semver,a.semver,d)&&(a=e);}),s.operator===v||s.operator===g||(!a.operator||a.operator===v)&&h(e,a.semver)||a.operator===g&&m(e,a.semver))return!1;}return!0;};}),rR("2yv5J",function(e,t){var r=rb("a8VZj");e.exports=(e,t,n)=>r(e,t,">",n);}),rR("46KXA",function(e,t){var r=rb("a8VZj");e.exports=(e,t,n)=>r(e,t,"<",n);}),rR("e3Thp",function(e,t){var r=rb("4FTez");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rR("8g51l",function(e,t){var r=rb("2bU8Y"),n=rb("3uysP");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,d,f,h,m,v;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?a:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let g=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=u(n,t,r):"<"===t.operator||"<="===t.operator?c=p(c,t,r):g.add(t.semver);if(g.size>1||n&&c&&((d=s(n.semver,c.semver,r))>0||0===d&&(">="!==n.operator||"<="!==c.operator)))return null;for(let e of g){if(n&&!o(e,n+"",r)||c&&!o(e,c+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!c&&!r.includePrerelease&&!!c.semver.prerelease.length&&c.semver,y=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===c.operator&&0===E.prerelease[0]&&(E=!1),t)){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if((f=u(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(c){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(c,e,r))===e&&h!==c)return!1;}else if("<="===c.operator&&!o(c.semver,e+"",r))return!1;}if(!e.operator&&(c||n)&&0!==d)return!1;}return(!n||!m||!!c||0===d)&&(!c||!v||!!n||0===d)&&!y&&!E;},u=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=s(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=c(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rR("kY0n1",function(e,t){async function r(e){try{return await(0,rn.promises).access(e),!0;}catch{return!1;}}l(e.exports,"pathExists",()=>r);}),rR("i8A01",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rR("bzNgi",function(e,t){var r,n,i,o,s,a,u,p,d,f,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 E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function y(e,t=!0){return t?(0,n3.basename)(e):(0,n3.basename)(e,(0,n3.extname)(e));}function w(e){return(0,n3.normalize)(e).replace(RegExp((0,r.default)(n3.sep)+"$"),"");}function x(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function b(e,t){let r=(0,n3.extname)(e),n=`${t}${(0,n3.basename)(e,r)}${r}`;return(0,n3.join)((0,n3.dirname)(e),n);}function R(e,t){let r=(0,n3.extname)(e),n=`${(0,n3.basename)(e,r)}${t}${r}`;return(0,n3.join)((0,n3.dirname)(e),n);}function I(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function S(e){return"win32"===process.platform?e:"./"+e;}function O(e){let t=(0,n3.extname)(e).length;return e.slice(0,-t);}function T(e,t){return c(n)(e,t);}function C(e,t){let r=(0,n3.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+n3.sep)||r===(0,n3.resolve)(e));}l(e.exports,"addExeExt",()=>x),l(e.exports,"addShExt",()=>I),l(e.exports,"addShRelativePrefix",()=>S),l(e.exports,"dirname",()=>n3.dirname),l(e.exports,"join",()=>n3.join),r=rb("iNGpn"),n=rb("axeRu"),i={},E(o={},"name",()=>y),E(s={},"normalizeTrim",()=>w),E(a={},"addExeExt",()=>x),E(u={},"addNamePrefix",()=>b),E(p={},"addNameSuffix",()=>R),E(d={},"addShExt",()=>I),E(f={},"addShRelativePrefix",()=>S),E(h={},"removeExt",()=>O),E(m={},"replaceExt",()=>T),E(v={},"isPathInside",()=>C),g(i,o),g(i,s),g(i,a),g(i,u),g(i,p),g(i,d),g(i,f),g(i,h),g(i,m),g(i,v);}),rR("iNGpn",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);}),rR("axeRu",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=n3.basename(e,n3.extname(e))+t,i=n3.join(n3.dirname(e),n);return(r=e.slice(0,2))==="."+n3.sep||"./"===r?"."+n3.sep+i:i;};}),rR("hZdK0",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*(){rt.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(n3),p=i(rb("ipB3d"));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 d=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,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===u.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield c(e,d,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;}),rR("ipB3d",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(n6),c=i(n3);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";};}),rR("42L4Y",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(rb("lroIv"));s=rb("4t50X"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,c;let u=n4.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=n4.platform(),r="";if("darwin"===t)r=ri.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 n6.existsSync(e)?r=n6.readFileSync(e).toString():n6.existsSync(t)&&(r=n6.readFileSync(t).toString()),r;};}),rR("lroIv",function(e,t){function r(e){A[e]=$++;}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>R||!(t.loose?T[A.LOOSE]:T[A.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>R)throw TypeError("version is longer than "+R+" 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?T[A.LOOSE]:T[A.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>I||this.major<0)throw TypeError("Invalid major version");if(this.minor>I||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>I||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 d(e,t,r){return a(e,t,r)>=0;}function f(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 d(e,r,n);case"<":return c(e,r,n);case"<=":return f(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===D?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 E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function y(e,t,r,n,i,o,s,a,l,c,u,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(a=E(l)?"":E(c)?"<"+(+l+1)+".0.0":E(u)?"<"+l+"."+(+c+1)+".0":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 x(e,t,r,n){switch(e=new o(e,n),t=new v(t,n),r){case">":i=l,s=f,a=c,u=">",p=">=";break;case"<":i=c,s=d,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")),E=E||e,y=y||e,i(e.semver,E.semver,n)?E=e:a(e.semver,y.semver,n)&&(y=e);}),E.operator===u||E.operator===p||(!y.operator||y.operator===u)&&s(e,y.semver)||y.operator===p&&a(e,y.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",R=256,I=Number.MAX_SAFE_INTEGER||9007199254740991,S=R-6,O=t.re=[],T=t.safeRe=[],C=t.src=[],A=t.tokens={},$=0,_=[["\\s",1],["\\d",R],[N="[a-zA-Z0-9-]",S]],r("NUMERICIDENTIFIER"),C[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),C[A.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),C[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+N+"*",r("MAINVERSION"),C[A.MAINVERSION]="("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")\\.("+C[A.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),C[A.MAINVERSIONLOOSE]="("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")\\.("+C[A.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),C[A.PRERELEASEIDENTIFIER]="(?:"+C[A.NUMERICIDENTIFIER]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),C[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+C[A.NUMERICIDENTIFIERLOOSE]+"|"+C[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),C[A.PRERELEASE]="(?:-("+C[A.PRERELEASEIDENTIFIER]+"(?:\\."+C[A.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),C[A.PRERELEASELOOSE]="(?:-?("+C[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+C[A.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),C[A.BUILDIDENTIFIER]=N+"+",r("BUILD"),C[A.BUILD]="(?:\\+("+C[A.BUILDIDENTIFIER]+"(?:\\."+C[A.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),C[A.FULLPLAIN]="v?"+C[A.MAINVERSION]+C[A.PRERELEASE]+"?"+C[A.BUILD]+"?",C[A.FULL]="^"+C[A.FULLPLAIN]+"$",r("LOOSEPLAIN"),C[A.LOOSEPLAIN]="[v=\\s]*"+C[A.MAINVERSIONLOOSE]+C[A.PRERELEASELOOSE]+"?"+C[A.BUILD]+"?",r("LOOSE"),C[A.LOOSE]="^"+C[A.LOOSEPLAIN]+"$",r("GTLT"),C[A.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),C[A.XRANGEIDENTIFIERLOOSE]=C[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),C[A.XRANGEIDENTIFIER]=C[A.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),C[A.XRANGEPLAIN]="[v=\\s]*("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:\\.("+C[A.XRANGEIDENTIFIER]+")(?:"+C[A.PRERELEASE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),C[A.XRANGEPLAINLOOSE]="[v=\\s]*("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+C[A.XRANGEIDENTIFIERLOOSE]+")(?:"+C[A.PRERELEASELOOSE]+")?"+C[A.BUILD]+"?)?)?",r("XRANGE"),C[A.XRANGE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAIN]+"$",r("XRANGELOOSE"),C[A.XRANGELOOSE]="^"+C[A.GTLT]+"\\s*"+C[A.XRANGEPLAINLOOSE]+"$",r("COERCE"),C[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),O[A.COERCERTL]=RegExp(C[A.COERCE],"g"),T[A.COERCERTL]=RegExp(n(C[A.COERCE]),"g"),r("LONETILDE"),C[A.LONETILDE]="(?:~>?)",r("TILDETRIM"),C[A.TILDETRIM]="(\\s*)"+C[A.LONETILDE]+"\\s+",O[A.TILDETRIM]=RegExp(C[A.TILDETRIM],"g"),T[A.TILDETRIM]=RegExp(n(C[A.TILDETRIM]),"g"),r("TILDE"),C[A.TILDE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAIN]+"$",r("TILDELOOSE"),C[A.TILDELOOSE]="^"+C[A.LONETILDE]+C[A.XRANGEPLAINLOOSE]+"$",r("LONECARET"),C[A.LONECARET]="(?:\\^)",r("CARETTRIM"),C[A.CARETTRIM]="(\\s*)"+C[A.LONECARET]+"\\s+",O[A.CARETTRIM]=RegExp(C[A.CARETTRIM],"g"),T[A.CARETTRIM]=RegExp(n(C[A.CARETTRIM]),"g"),r("CARET"),C[A.CARET]="^"+C[A.LONECARET]+C[A.XRANGEPLAIN]+"$",r("CARETLOOSE"),C[A.CARETLOOSE]="^"+C[A.LONECARET]+C[A.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),C[A.COMPARATORLOOSE]="^"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),C[A.COMPARATOR]="^"+C[A.GTLT]+"\\s*("+C[A.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),C[A.COMPARATORTRIM]="(\\s*)"+C[A.GTLT]+"\\s*("+C[A.LOOSEPLAIN]+"|"+C[A.XRANGEPLAIN]+")",O[A.COMPARATORTRIM]=RegExp(C[A.COMPARATORTRIM],"g"),T[A.COMPARATORTRIM]=RegExp(n(C[A.COMPARATORTRIM]),"g"),P="$1$2$3",r("HYPHENRANGE"),C[A.HYPHENRANGE]="^\\s*("+C[A.XRANGEPLAIN]+")\\s+-\\s+("+C[A.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),C[A.HYPHENRANGELOOSE]="^\\s*("+C[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+C[A.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),C[A.STAR]="(<|>)?=?\\s*\\*";for(var b,R,I,S,O,T,C,A,$,N,_,P,L,D,k=0;k<$;k++)b(k,C[k]),O[k]||(O[k]=new RegExp(C[k]),T[k]=new RegExp(n(C[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return b("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),s(this.major,e.major)||s(this.minor,e.minor)||s(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(b("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return s(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=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=d,t.lte=f,t.cmp=h,t.Comparator=m,D={},m.prototype.parse=function(e){var t=this.options.loose?T[A.COMPARATORLOOSE]:T[A.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=D;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(b("Comparator.test",e,this.options.loose),this.semver===D||e===D)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?T[A.HYPHENRANGELOOSE]:T[A.HYPHENRANGE];e=e.replace(r,y),b("hyphen replace",e),e=e.replace(T[A.COMPARATORTRIM],P),b("comparator trim",e,T[A.COMPARATORTRIM]),e=(e=(e=e.replace(T[A.TILDETRIM],"$1~")).replace(T[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?T[A.COMPARATORLOOSE]:T[A.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?T[A.CARETLOOSE]:T[A.CARET],t.replace(n,function(e,r,n,i,o){var s;return b("caret",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(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?T[A.TILDELOOSE]:T[A.TILDE],t.replace(r,function(e,r,n,i,o){var s;return b("tilde",t,e,r,n,i,o),E(r)?s="":E(n)?s=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?s=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(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?T[A.XRANGELOOSE]:T[A.XRANGE],t.replace(n,function(e,n,i,o,s,a){b("xRange",t,e,n,i,o,s,a);var l=E(i),c=l||E(o),u=c||E(s);return"="===n&&u&&(n=""),a=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&u?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):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(T[A.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 x(e,t,"<",r);},t.gtr=function(e,t,r){return x(e,t,">",r);},t.outside=x,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=T[A.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),T[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;T[A.COERCERTL].lastIndex=-1;}else n=e.match(T[A.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rR("eAF86",function(e,t){var r=rb("1W8as"),n=rb("hTpVN");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);};}),rR("1W8as",function(e,t){e.exports=function(){return n8.randomBytes(16);};}),rR("hTpVN",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("");};}),rR("1f6JF",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(rb("4B2AJ"));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 ro.StringDecoder("utf8"),c=new ro.StringDecoder("utf8"),u=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),u&&u(e);},stderr(e){a+=c.write(e),p&&p(e);}}),f=yield s(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),a+=c.end(),{exitCode:f,stdout:o,stderr:a};});};}),rR("4B2AJ",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(n4),a=i(re),l=i(ri),c=i(n3),u=i(rb("hZdK0")),p=i(rb("ipB3d")),d="win32"===process.platform;class f extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){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 d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(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("/")||d&&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=f,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=rs.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();}}}}),rR("4JiFg",function(e,t){e.exports=Promise.resolve(require("./actions_python.c4cbfdde.js")).then(()=>rb("4kQHk"));}),rR("2tlzJ",function(e,t){e.exports=Promise.resolve(require("./hdi.9d60a332.js")).then(()=>rb("8Fs7q"));}),rI=rb("52cQ1"),rS=rb("ER74K"),rO=rb("iWDmx"),function(){rb("eCDnw").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(rT={}),rC={},rC=rb("gMm9F"),rA={},rA={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"}}}},r$={},l(rN={},"isexe",()=>n9),l(rN,"sync",()=>ie),r_=rb("4oHc1");const n9=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it(await(0,r_.stat)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},ie=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return it((0,n6.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},it=(e,t)=>e.isFile()&&ir(e,t),ir=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(void 0===r||void 0===i)throw Error("cannot get uid or gid");let o=new Set([i,...n]),s=e.mode,a=e.uid,l=e.gid,c=parseInt("100",8),u=parseInt("010",8);return!!(s&parseInt("001",8)||s&u&&o.has(l)||s&c&&a===r||s&(c|u)&&0===r);};l(rP={},"isexe",()=>ii),l(rP,"sync",()=>io),r_=rb("4oHc1");const ii=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia(await(0,r_.stat)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},io=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return ia((0,n6.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},is=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;te.isFile()&&is(t,r),il="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rP:rN,ic=il.isexe,iu=il.sync;rL=n3.join,rD=n3.delimiter,rk=n3.sep,rU=n3.posix;const ip="win32"===process.platform,id=new RegExp(`[${rU.sep}${rk===rU.sep?"":rk}]`.replace(/(\\)/g,"\\$1")),ih=RegExp("^\\."+id.source),im=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iv=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=rD})=>{let i=e.match(id)?[""]:[...(ip?[process.cwd()]:[]),...(t||"").split(n)];if(ip){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:[""]};},ig=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&ih.test(t)?t.slice(0,2):"")+rL(r,t);},iE=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(await ic(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 im(e);};r$=iE,iE.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=iv(e,t),o=[];for(let s of r){let r=ig(s,e);for(let e of n){let n=r+e;if(iu(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 im(e);},rj={},rF={},rM={},rG={};const iy="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,iw=iy?";":":";rB={},"win32"===process.platform||ry.TESTING_WINDOWS?rH=rb("bGwAu"):rH=rb("d3qS7"),rB=u,u.sync=function(e,t){try{return rH.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const ix=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ib=(e,t)=>{let r=t.colon||iw,n=e.match(/\//)||iy&&e.match(/\\/)?[""]:[...(iy?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=iy?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=iy?i.split(r):[""];return iy&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},iR=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=ib(e,t),s=[],a=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&s.length?i(s):o(ix(e));let a=n[r],c=/^".*"$/.test(a)?a.slice(1,-1):a,u=n3.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];rB(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return c(e+p);s.push(e+p);}return c(l(e,r,n+1));});});return r?a(0).then(e=>r(null,e),r):a(0);};rG=iR,iR.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=ib(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=iI).default=iI,rM=function(e){return p(e)||p(e,!0);};rq=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},rz=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;},rX={},rK={},rW={},rW=/^#!(.*)/,rK=(e="")=>{let t=e.match(rW);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},rX=function(e){let t;let r=Buffer.alloc(150);try{t=n6.openSync(e,"r"),n6.readSync(t,r,0,150,0),n6.closeSync(t);}catch(e){}return rK(r.toString());};const iS="win32"===process.platform;rF=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(!iS)return e;let t=function(e){e.file=rM(e);let t=e.file&&rX(e.file);return t?(e.args.unshift(e.file),e.command=t,rM(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=n3.normalize(e.command),e.command=rq(e.command),e.args=e.args.map(e=>rz(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);},rY={};const iO="win32"===process.platform;rY={hookChildProcess:function(e,t){if(!iO)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=f(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:f,verifyENOENTSync:function(e,t){return iO&&1===e&&!t.file?d(t.original,"spawnSync"):null;},notFoundError:d},(rj=h).spawn=h,rj.sync=function(e,t,r){let n=rF(e,t,r),i=ri.spawnSync(n.command,n.args,n.options);return i.error=i.error||rY.verifyENOENTSync(i.status,n),i;},rj._parse=rF,rj._enoent=rY;const iT=(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);(iC(i,o)||!n)&&Object.defineProperty(e,r,o);},iC=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);},iA=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},i$=(e,t)=>`/* Wrapped ${e}*/ ${t}`,iN=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),i_=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),iP=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=i$.bind(null,n,t.toString());Object.defineProperty(i,"name",i_),Object.defineProperty(e,"toString",{...iN,value:i});},iL=new WeakMap(),iD=(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(iL.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))iT(e,t,n,r);iA(e,t),iP(e,t,n);}(o,e),iL.set(o,n),o;};iD.callCount=e=>{if(!iL.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return iL.get(e);},rJ=iD;const ik=()=>Array.from({length:iF-ij+1},iU),iU=(e,t)=>({name:"SIGRT"+(t+1),number:ij+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ij=34,iF=64,iM=[{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"}],iG=()=>[...iM,...ik()].map(iB),iB=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:s}}=rd.constants,a=void 0!==s;return{name:e,number:a?s:t,description:r,supported:a,action:n,forced:i,standard:o};},iH=Object.fromEntries(iG().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}])),iV=(e,t)=>{let r=iq(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}};},iq=(e,t)=>{let r=t.find(({name:t})=>rd.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=iG();return Object.assign({},...Array.from({length:iF+1},(t,r)=>iV(r,e)));})();const iz=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",iX=({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:d,cwd:f=c(ru).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,m=iz({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),v=`Command ${m}: ${s}`,g="[object Error]"===Object.prototype.toString.call(n),E=g?`${v} ${n.message}`:v,y=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=E,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,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;},iK=["stdin","stdout","stderr"],iW=e=>iK.some(t=>void 0!==e[t]),iY=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iK.map(t=>e[t]);if(iW(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iK.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,iK.length)},(e,r)=>t[r]);};rQ={};const iJ=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(iJ(rZ=ry.process)){var iQ,iZ=rt,i0=rb("e1Rfe"),i1=/^win/i.test(rZ.platform),i2=re;"function"!=typeof i2&&(i2=i2.EventEmitter),rZ.__signal_exit_emitter__?iQ=rZ.__signal_exit_emitter__:((iQ=rZ.__signal_exit_emitter__=new i2()).count=0,iQ.emitted={}),iQ.infinite||(iQ.setMaxListeners(1/0),iQ.infinite=!0);var i4=function(){i8&&iJ(ry.process)&&(i8=!1,i0.forEach(function(e){try{rZ.removeListener(e,i6[e]);}catch(e){}}),rZ.emit=oe,rZ.reallyExit=i7,iQ.count-=1);};(rQ=function(e,t){if(!iJ(ry.process))return function(){};iZ.equal(typeof e,"function","a callback must be provided for exit handler"),!1===i8&&i5();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),iQ.on(r,e),function(){iQ.removeListener(r,e),0===iQ.listeners("exit").length&&0===iQ.listeners("afterexit").length&&i4();};}).unload=i4;var i3=function(e,t,r){iQ.emitted[e]||(iQ.emitted[e]=!0,iQ.emit(e,t,r));},i6={};i0.forEach(function(e){i6[e]=function(){iJ(ry.process)&&rZ.listeners(e).length===iQ.count&&(i4(),i3("exit",null,e),i3("afterexit",null,e),i1&&"SIGHUP"===e&&(e="SIGINT"),rZ.kill(rZ.pid,e));};}),rQ.signals=function(){return i0;};var i8=!1,i5=function(){!i8&&iJ(ry.process)&&(i8=!0,iQ.count+=1,i0=i0.filter(function(e){try{return rZ.on(e,i6[e]),!0;}catch(e){return!1;}}),rZ.emit=ot,rZ.reallyExit=i9);};rQ.load=i5;var i7=rZ.reallyExit,i9=function(e){iJ(ry.process)&&(rZ.exitCode=e||0,i3("exit",rZ.exitCode,null),i3("afterexit",rZ.exitCode,null),i7.call(rZ,rZ.exitCode));},oe=rZ.emit,ot=function(e,t){if(!("exit"===e&&iJ(ry.process)))return oe.apply(this,arguments);void 0!==t&&(rZ.exitCode=t);var r=oe.apply(this,arguments);return i3("exit",rZ.exitCode,null),i3("afterexit",rZ.exitCode,null),r;};}else rQ=function(){return function(){};};const or=(e,t="SIGTERM",r={})=>{let n=e(t);return on(e,t,r,n),n;},on=(e,t,r,n)=>{if(!oi(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},os(r));i.unref&&i.unref();},oi=(e,{forceKillAfterTimeout:t},r)=>oo(e)&&!1!==t&&r,oo=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),os=({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;},oa=(e,t)=>{e.kill()&&(t.isCanceled=!0);},ol=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},oc=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{ol(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},ou=({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})`);},op=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rQ)(()=>{e.kill();});return n.finally(()=>{i();});},od=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,of=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!od(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},oh=e=>{null!==e.stdout&&(e.pipeStdout=of.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=of.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=of.bind(void 0,e,"all"));};r0={},r1=rf.constants,r2=rr.promisify,r4={},r3=rh.PassThrough,r4=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 r3({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 om=r2(rh.pipeline);class ov extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(r0=w).buffer=(e,t)=>w(e,{...t,encoding:"buffer"}),r0.array=(e,t)=>w(e,{...t,array:!0}),r0.MaxBufferError=ov,r6={},r8=rh.PassThrough,r6=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 r8({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 og=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oE=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.readFileSync)(t)),oy=e=>{let t=oE(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},ow=({input:e,inputFile:t})=>"string"!=typeof t?e:(og(e),(0,rn.createReadStream)(t)),ox=(e,t)=>{let r=ow(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},ob=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},oR=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},oI=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},oS=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=oI(e,{encoding:n,buffer:i,maxBuffer:o}),l=oI(t,{encoding:n,buffer:i,maxBuffer:o}),c=oI(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},oR(e,a),oR(t,l),oR(r,c)]);}},oO=(async()=>{})().constructor.prototype,oT=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oO,e)]),oC=(e,t)=>{for(let[r,n]of oT){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},oA=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);});}),o$=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],oN=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,o_=(e,t)=>o$(e,t).join(" "),oP=(e,t)=>o$(e,t).map(e=>oN(e)).join(" "),oL=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;},oD=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},ok=(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)],oU=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=ok(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return ok(s,Array.isArray(a)?a.map(e=>oD(e)):[oD(a)],o.endsWith(" "));},oj=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=oU({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},oF=(0,rm.debuglog)("execa").enabled,oM=(e,t)=>(e+"").padStart(t,"0"),oG=()=>{let e=new Date();return`${oM(e.getHours(),2)}:${oM(e.getMinutes(),2)}:${oM(e.getSeconds(),2)}.${oM(e.getMilliseconds(),3)}`;},oB=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${oG()}] ${e} `);},oH=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},oV=(e,t,r={})=>{let n=c(rj)._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(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oF,...r}).env=oH(r),r.stdio=iY(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},oq=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",oz=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},oX=(e={})=>({preferLocal:!0,...oz(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=oj(n,i);return x(o,s,oX(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]=oj(e,r);return b(n,i,oX(t));},r;}();const oK={stdio:"inherit",shell:!0},oW=/^~(?=$|\/|\\)/;rS=rb("ER74K"),r5={},r7=rb("bSUdl"),r9=rv.env.npm_package_json,nt=!!((ne=rv.env.npm_config_user_agent)&&ne.startsWith("npm")),nr=!!(r9&&r9.endsWith("package.json")),nn=nt||nr,ni=!!(ne&&ne.startsWith("yarn")),no=nn||ni,ns=n4.homedir(),na=process.env.XDG_CONFIG_HOME||n3.join(ns,".config","simple-update-notifier"),nl=function(e){return n3.join(na,"".concat(e.replace("@","").replace("/","__"),".json"));},nc=function(){n6.existsSync(na)||n6.mkdirSync(na,{recursive:!0});},nu=function(e){var t=nl(e);try{if(!n6.existsSync(t))return;return JSON.parse(n6.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},np=function(e){var t=nl(e);n6.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},nd=function(e,t){return $(void 0,void 0,void 0,function(){var r;return N(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){n7.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);});})];});});},nf=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 $(void 0,void 0,void 0,function(){var e,r;return N(this,function(i){switch(i.label){case 0:if(nc(),e=nu(t.name),!(s||!e||e/1\d+\.\d+/.test(e)&&+t>=17134.1184;ny=function(e){return oY?e.replace(/(\s+)/g,"\\$1"):oQ(.../(\d+\.\d+)\.(\d+)/.exec(oJ).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rb("i8A01"),t=function(e){return e.split("").reverse().join("");},nw=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(nw={});const oZ=({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",o0=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:s,escapedCommand:a,timedOut:l,isCanceled:c,killed:u,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:iH[i].description,f=oZ({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:c}),h=`Command ${f}: ${s}`,m="[object Error]"===Object.prototype.toString.call(n),v=m?`${h} ${n.message}`:h,g=[v,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=g):n=Error(g),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},o1=["stdin","stdout","stderr"],o2=e=>o1.some(t=>void 0!==e[t]),o4=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return o1.map(t=>e[t]);if(o2(e))throw Error("It's not possible to provide `stdio` in combination with one of "+o1.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,o1.length)},(e,r)=>t[r]);},o3=(e,t="SIGTERM",r={})=>{let n=e(t);return o6(e,t,r,n),n;},o6=(e,t,r,n)=>{if(!o8(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},o7(r));i.unref&&i.unref();},o8=(e,{forceKillAfterTimeout:t},r)=>o5(e)&&!1!==t&&r,o5=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),o7=({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;},o9=(e,t)=>{e.kill()&&(t.isCanceled=!0);},se=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},st=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{se(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},sr=({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})`);},sn=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=c(rQ)(()=>{e.kill();});return n.finally(()=>{i();});},si=e=>e instanceof rc.ChildProcess&&"function"==typeof e.then,so=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rn.createWriteStream)(r)),e;if(y(r))return e[t].pipe(r),e;if(!si(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!y(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},ss=e=>{null!==e.stdout&&(e.pipeStdout=so.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=so.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=so.bind(void 0,e,"all"));},sa=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},sl=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.readFileSync)(t)),sc=e=>{let t=sl(e);if(E(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},su=({input:e,inputFile:t})=>"string"!=typeof t?e:(sa(e),(0,rn.createReadStream)(t)),sp=(e,t)=>{let r=su(t);void 0!==r&&(E(r)?r.pipe(e.stdin):e.stdin.end(r));},sd=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=c(r6)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sf=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},sh=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?c(r0)(e,{encoding:t,maxBuffer:n}):c(r0).buffer(e,{maxBuffer:n});},sm=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{let a=sh(e,{encoding:n,buffer:i,maxBuffer:o}),l=sh(t,{encoding:n,buffer:i,maxBuffer:o}),c=sh(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},sf(e,a),sf(t,l),sf(r,c)]);}},sv=(async()=>{})().constructor.prototype,sg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(sv,e)]),sE=(e,t)=>{for(let[r,n]of sg){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sy=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);});}),sw=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],sx=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sb=(e,t)=>sw(e,t).join(" "),sR=(e,t)=>sw(e,t).map(e=>sx(e)).join(" "),sI=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rc.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,ra.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},sS=(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)],sO=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=i??e.raw[n],s=sS(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return s;let a=t[n];return sS(s,Array.isArray(a)?a.map(e=>sI(e)):[sI(a)],o.endsWith(" "));},sT=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sO({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sC=(0,rm.debuglog)("execa").enabled,sA=(e,t)=>(e+"").padStart(t,"0"),s$=()=>{let e=new Date();return`${sA(e.getHours(),2)}:${sA(e.getMinutes(),2)}:${sA(e.getSeconds(),2)}.${sA(e.getMilliseconds(),3)}`;},sN=(e,{verbose:t})=>{t&&c(ru).stderr.write(`[${s$()}] ${e} `);},s_=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?g({env:o,cwd:n,execPath:i}):o;},sP=(e,t,r={})=>{let n=c(rj)._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(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sC,...r}).env=s_(r),r.stdio=o4(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sL=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?m(t):t:void 0===r?void 0:"",sD=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sk=(e={})=>({preferLocal:!0,...sD(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sT(n,i);return U(o,s,sk(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]=sT(e,r);return function(e,t,r){let n;let i=sP(e,t,r),o=sb(e,t),s=sR(e,t);sN(s,i.options);let a=sc(i.options);try{n=c(rc).spawnSync(i.file,i.args,{...i.options,input:a});}catch(e){throw o0({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sL(i.options,n.stdout,n.error),u=sL(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=o0({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};}(n,i,sk(t));},r;}(),r_=rb("4oHc1"),nE=rb("kY0n1");const sU={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sj=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sF=A("~/.cpprc");let sM=!1,sG=!1,sB=!1;const sH=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t5=nx||(nx={}))[t5.NameDashVersion=0]="NameDashVersion",t5[t5.NameEqualsVersion=1]="NameEqualsVersion",t5[t5.Name=2]="Name",t5[t5.None=3]="None",nv=rb("4t50X"),nb=rb("bzNgi"),nR=rb("hZdK0"),r_=rb("4oHc1"),nb=rb("bzNgi");let sV=!1;rS=rb("ER74K"),nE=rb("kY0n1"),nb=rb("bzNgi");let sq=!1;rS=rb("ER74K"),rS=rb("ER74K");let sz=!1,sX=!1;const sK=/Version\s*:\s*(.*)/g;nI={},nS=n3.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nO=nI&&nI.__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];}),nT=nI&&nI.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nC=nI&&nI.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nO(t,e,r);return nT(t,e),t;},nA=nI&&nI.__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());});},n$=nI&&nI.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nI,"__esModule",{value:!0}),nI.evaluateVersions=nI.isExplicitVersion=nI.findFromManifest=nI.getManifestFromRepo=nI.findAllVersions=nI.find=nI.cacheFile=nI.cacheDir=nI.extractZip=nI.extractXar=nI.extractTar=nI.extract7z=nI.downloadTool=nI.HTTPError=void 0;const sW=nC(rb("4t50X")),sY=nC(rb("hZdK0")),sJ=nC(n6),sQ=nC(rb("42L4Y")),sZ=nC(n4),s0=nC(n3),s1=nC(rb("a7JAS")),s2=nC(rb("lroIv")),s4=nC(rh),s3=nC(rr),s6=n$(rb("eAF86"));nN=rb("1f6JF"),nP=(n_={},n_.__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];})),nL=n_&&n_.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nD=n_&&n_.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nP(t,e,r);return nL(t,e),t;},nk=n_&&n_.__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(n_,"__esModule",{value:!0}),n_.RetryHelper=void 0;const s8=nD(rb("4t50X"));n_.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return nk(this,void 0,void 0,function*(){let r=1;for(;rsetTimeout(t,1e3*e));});}};class s5 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nI.HTTPError=s5;const s7="win32"===process.platform,s9="darwin"===process.platform;nI.downloadTool=function(e,t,r,n){return nA(this,void 0,void 0,function*(){t=t||s0.join(eb(),s6.default()),yield sY.mkdirP(s0.dirname(t)),sW.debug("Downloading "+e),sW.debug("Destination "+t);let i=eR("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eR("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),s=new n_.RetryHelper(3,i,o);return yield s.execute(()=>nA(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nA(this,void 0,void 0,function*(){if(sJ.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new s1.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sW.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 s5(o.message.statusCode);throw sW.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let s=s3.promisify(s4.pipeline),a=eR("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield s(a,sJ.createWriteStream(t)),sW.debug("download complete"),l=!0,t;}finally{if(!l){sW.debug("download failed");try{yield sY.rmRF(t);}catch(e){sW.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof s5)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nI.extract7z=function(e,t,r){return nA(this,void 0,void 0,function*(){rt.ok(s7,"extract7z() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sW.isDebug()?"-bb1":"-bb0";yield nN.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=s0.join(nS,"..","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 sY.which("powershell",!0);yield nN.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",s],{silent:!0});}finally{process.chdir(n);}}return t;});},nI.extractTar=function(e,t,r="xz"){return nA(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield ev(t),sW.debug("Checking tar --version");let i="";yield nN.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sW.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sW.isDebug()&&!r.includes("v")&&n.push("-v");let s=t,a=e;return s7&&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 nN.exec("tar",n),t;});},nI.extractXar=function(e,t,r=[]){return nA(this,void 0,void 0,function*(){let n;rt.ok(s9,"extractXar() not supported on current OS"),rt.ok(e,'parameter "file" is required'),t=yield ev(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sW.isDebug()&&n.push("-v");let i=yield sY.which("xar",!0);return yield nN.exec(`"${i}"`,Array.from(new Set(n))),t;});},nI.extractZip=function(e,t){return nA(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield ev(t),s7?yield function(e,t){return nA(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 sY.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 $_ } } ;`;sW.debug("Using pwsh at path: "+i),yield nN.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 sY.which("powershell",!0);sW.debug("Using powershell at path: "+t),yield nN.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nA(this,void 0,void 0,function*(){let r=yield sY.which("unzip",!0),n=[e];sW.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nN.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nI.cacheDir=function(e,t,r,n){return nA(this,void 0,void 0,function*(){if(r=s2.clean(r)||r,n=n||sZ.arch(),sW.debug(`Caching tool ${t} ${r} ${n}`),sW.debug("source dir: "+e),!sJ.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eg(t,r,n);for(let t of sJ.readdirSync(e)){let r=s0.join(e,t);yield sY.cp(r,i,{recursive:!0});}return eE(t,r,n),i;});},nI.cacheFile=function(e,t,r,n,i){return nA(this,void 0,void 0,function*(){if(n=s2.clean(n)||n,i=i||sZ.arch(),sW.debug(`Caching tool ${r} ${n} ${i}`),sW.debug("source file: "+e),!sJ.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eg(r,n,i),s=s0.join(o,t);return sW.debug("destination file "+s),yield sY.cp(e,s),eE(r,n,i),o;});},nI.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||sZ.arch(),ey(t)||(t=ew(em(e,r),t));let n="";if(t){t=s2.clean(t)||"";let i=s0.join(ex(),e,t,r);sW.debug("checking cache: "+i),sJ.existsSync(i)&&sJ.existsSync(`${i}.complete`)?(sW.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sW.debug("not found");}return n;},nI.findAllVersions=em,nI.getManifestFromRepo=function(e,t,r,n="master"){return nA(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,s=new s1.HttpClient("tool-cache"),a={};r&&(sW.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){sW.debug("Invalid json");}}return i;});},nI.findFromManifest=function(e,t,r,n=sZ.arch()){return nA(this,void 0,void 0,function*(){return yield sQ._findMatch(e,t,r,n);});},nI.isExplicitVersion=ey,nI.evaluateVersions=ew,nb=rb("bzNgi"),nU=rb("l8hao"),nj=rb("8aNoG"),nR=rb("hZdK0"),rS=rb("ER74K"),rS=rb("ER74K"),nb=rb("bzNgi"),rI=rb("52cQ1"),nE=rb("kY0n1"),Object.defineProperty(nF={},"__esModule",{value:!0}),nF.retryAsPromised=nF.TimeoutError=void 0;class ae extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}nF.TimeoutError=ae,nF.retryAsPromised=e$,nF.default=e$;let at=!1;nv=rb("4t50X"),nM={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},nG=Array.prototype.slice,nB=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eL(this.keys),size:this.size,values:eL(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var s=1;o>s;s++)if(r(i[s],e))return s;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var s=e.length;if(s>1){for(var a=0;o>a;a++)if((t=i[a]).length===s){for(r=0;s>r&&n(t[r],e[r]);r++);if(r===s)return a;}}else for(var a=0;o>a;a++)if((t=i[a]).length===s&&n(t[0],e[0]))return a;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,s=r;s--;)n[s+1]=n[s],i[s+1]=i[s];n[0]=e,i[0]=t;var a=this.options.maxSize;o===a&&r===o?(n.pop(),i.pop()):r>=a&&(n.length=i.length=a);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],s=this.values[0];this.values[0]=s.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}();const ar=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||n6.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||n6.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||n6.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||n6.mkdirSync,t;},an=(e,t,r)=>{let n=(0,n3.dirname)(e),i={...ar(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 an(e,i,an(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;}}},ai=Object.assign(async(e,t,r)=>{let n=ar(t);n.recursive=!1;let i=(0,n3.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 ai(i,n).then(t=>ai(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:an}),ao=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?ao(e,(0,n3.dirname)(t),t):void 0);},as=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?as(e,(0,n3.dirname)(t),t):void 0;}},aa=(e,t)=>{let r=ar(t);if(r.recursive=!0,(0,n3.dirname)(e)===e)return r.mkdirSync(e,r);let n=as(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return an(e,r);throw t;}},al=Object.assign(async(e,t)=>{let r={...ar(t),recursive:!0};return(0,n3.dirname)(e)===e?await r.mkdirAsync(e,r):ao(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return ai(e,r);throw t;}));},{sync:aa}),ac=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,au=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,n3.resolve)(e),"win32"===ac){let{root:t}=(0,n3.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ap=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),ad=+ap[0]>10||10==+ap[0]&&+ap[1]>=12,af=ad?e=>ar(e).mkdirSync===n6.mkdirSync:()=>!1,ah=Object.assign(ad?e=>ar(e).mkdir===n6.mkdir:()=>!1,{sync:af}),am=(e,t)=>{e=au(e);let r=ar(t);return af(r)?aa(e,r):an(e,r);},av=Object.assign(async(e,t)=>{e=au(e);let r=ar(t);return ah(r)?al(e,r):ai(e,r);},{mkdirpSync:am,mkdirpNative:al,mkdirpNativeSync:aa,mkdirpManual:ai,mkdirpManualSync:an,sync:am,native:al,nativeSync:aa,manual:ai,manualSync:an,useNative:ah,useNativeSync:af});nE=rb("kY0n1"),nb=rb("bzNgi"),nN=rb("1f6JF"),rI=rb("52cQ1"),rS=rb("ER74K"),nE=rb("kY0n1"),nb=rb("bzNgi"),nN=rb("1f6JF"),rS=rb("ER74K"),nH=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rg.URL(t),!0;}catch{return!1;}},nV=async e=>{if(!nH(e))return!1;let t=await ej(e,"HEAD");return!!t||!!(t=await ej(e,"GET"));},nU=rb("l8hao"),nq=rb("3uysP"),nz=rb("l655J");const ag=/v?(\d\S*)/,aE={llvm:eH(),clangtidy:eH(),clangformat:eH(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:D()?"1.10.0-1":"1.10.0",gcc:D()?"13.2.1-3":"13"},ay={pip:"22.2.0",python:"3.7.9"},aw={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{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:{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:{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:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}},ax=eU(e2,{isPromise:!0});rS=rb("ER74K"),Object.defineProperty(nX={},"__esModule",{value:!0}),nX.getUbuntuVersion=void 0,nX.getUbuntuVersion=e6;const ab=eU(e8,{isPromise:!0}),aR=eU(tt,{isPromise:!0}),aI=eU(tr,{isPromise:!0}),aS=eU(tn,{isPromise:!0});rS=rb("ER74K"),nb=rb("bzNgi"),nE=rb("kY0n1");const aO=new Map([[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"]]]),aT=eU(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||c(rd).release()).split(".")[0];let[t,r]=aO.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>Number.parseInt(e,10));});rI=rb("52cQ1"),rS=rb("ER74K"),nE=rb("kY0n1"),nb=rb("bzNgi"),nU=rb("l8hao"),nK=rb("2aJGP"),nN=rb("1f6JF"),rS=rb("ER74K"),nW=n3.resolve(__dirname,"../../src/gcc");const aC={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"}};nK=rb("2aJGP"),nz=rb("l655J"),rS=rb("ER74K"),nb=rb("bzNgi"),nb=rb("bzNgi"),nY=n3.resolve(__dirname,"../../src/kcov"),rI=rb("52cQ1"),rS=rb("ER74K"),nE=rb("kY0n1"),nb=rb("bzNgi"),r_=rb("4oHc1"),nv=rb("4t50X"),rS=rb("ER74K");class aA extends Error{constructor(e){super(e),this.name="TimeoutError";}}class a$ extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const aN=e=>void 0===globalThis.DOMException?new a$(e):new DOMException(e),a_=e=>{let t=void 0===e.reason?aN("This operation was aborted."):e.reason;return t instanceof Error?t:aN(t);};nb=rb("bzNgi"),rS=rb("ER74K"),nv=rb("4t50X");const aP=rv.env["ProgramFiles(x86)"],aL=[rv.env["ProgramFiles(x86)"],rv.env.ProgramFiles],aD=["Enterprise","Professional","Community","BuildTools"],ak=["2022","2019","2017"],aU={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nJ=tA;const aj=`${aP}\\Microsoft Visual Studio\\Installer`;nQ=t$,nZ=function(e,t,r,n,i,o){if("win32"!=rv.platform){nv.info("This is not a Windows virtual environment, bye!");return;}rv.env.PATH+=n3.delimiter+aj;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=`"${t$(o)}" ${a.join(" ")}`;nv.debug("vcvars command-line: "+l);let c=ri.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),u=c[0].split("\r\n"),p=c[1].split("\r\n"),d=c[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of u){let[t,r]=e.split("=");h[t]=r;}for(let e of(nv.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nv.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(";")),nv.exportVariable(t,r));}nv.endGroup(),nv.info("Configured Developer Command Prompt");},nE=rb("kY0n1");const aF=12e5;(t7=n0||(n0={}))[t7.All=0]="All",t7[t7.ClangFormat=1]="ClangFormat",t7[t7.Core=2]="Core",rS=rb("ER74K"),nb=rb("bzNgi"),nj=rb("8aNoG");const aM=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"]),aG=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),aB=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"]),aH=new Map(),aV={"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"},aq="17.0.6";n1=n3.resolve(__dirname,"../../src/llvm");const az=eU(tH,{isPromise:!0}),aX=eU(tq,{isPromise:!0}),aK=eU(tz,{isPromise:!0});rI=rb("52cQ1"),nb=rb("bzNgi"),rS=rb("ER74K"),nE=rb("kY0n1"),n2=n3.resolve(__dirname,"../../src/msvc"),nb=rb("bzNgi"),nb=rb("bzNgi"),rS=rb("ER74K"),nE=rb("kY0n1"),nb=rb("bzNgi");let aW=!1;const aY={nala:tQ,cmake:eP,ninja:tR,python:eV,vcpkg:t4,bazel:ed,conan:function(e,t,r){return e7("conan",e);},meson:function(e,t,r){return e7("meson",e);},gcovr:function(e,t,r){return e7("gcovr",e);},opencppcoverage:tZ,llvm:tB,gcc:tg,choco:el,brew:eo,powershell:t1,ccache:function(e,t,r){switch(process.platform){case"win32":return ec("ccache",e);case"darwin":return ea("ccache",e);case"linux":if(D())return ef("ccache",e);if(L())return eu([{name:"ccache",version:e}]);if(k())return K([{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 ec("sccache",e);case"linux":case"darwin":return ea("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tf,graphviz:tc,cppcheck:ta,clangtidy:function(e,t,r){return tV(e,t,r);},clangformat:function(e,t,r){return tV(e,t,r,n0.ClangFormat);},msvc:tY,vcvarsall:tN,kcov:tC,make:tW,task:function(e,t,r){return eN("task",e,t2,t,r);},sevenzip:eI},aJ=Object.keys(aY),aQ=["compiler","architecture","timeout",...aJ];nv=rb("4t50X"),rS=rb("ER74K"),nz=rb("l655J"),t8(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rS.error)("main() panicked!"),(0,rS.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map