mirror of https://github.com/aminya/setup-cpp
4 lines
237 KiB
JavaScript
4 lines
237 KiB
JavaScript
#!/usr/bin/env node
|
||
function e(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e){return null==e?[]:Array.isArray(e)?e:[e]}function n(e,t,r,n){var o,s=e[t],i=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==s?i:Array.isArray(s)?s.concat(i):[s,i]}function o(e){return e&&e.__esModule?e.default:e}function s(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function i(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((r,n)=>{i(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Wt(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}function a(e,t){const r=e.options.env||process.env,n=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){}let i;try{i=qt.sync(e.command,{path:r[nr({env:r})],pathExt:t?lt.delimiter:void 0})}catch(e){}finally{s&&process.chdir(n)}return i&&(i=(0,lt.resolve)(o?e.options.cwd:"",i)),i}function c(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 l(e,t){return mr&&1===e&&!t.file?c(t.original,"spawn"):null}function u(e,t,r){const n=rr(e,t,r),o=(0,yt.spawn)(n.command,n.args,n.options);return fr.hookChildProcess(o,n),o}async function d(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=pn(t);return await new Promise(((t,o)=>{const s=e=>{e&&n.getBufferedLength()<=fn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{await gn(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(new vn)}))})),n.getBufferedValue()}function p(){return null!==o(qt).sync("sudo",{nothrow:!0})}function h(){return 0===process.getuid?.()||!!process.env.CI}function f(){return h()&&p()}function m(e){return f()?"sudo "+e:e}function g(e,t=[],r={stdio:"inherit",shell:!0}){return f()?o(er).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(er).sync(e,t,r)}function v(e,t=[],r={stdio:"inherit",shell:!0}){return f()?o(er).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(er)(e,t,r)}function y(){return"win32"===process.platform?Hn():h()}function w(e){return f()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?(0,lt.join)("/Users/",process.env.SUDO_USER,e):(0,lt.join)("/home/",process.env.SUDO_USER,e):t(Ut)("~/"+e)}function x(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((r,n)=>{x(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Wn(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}function b(e,t){const r=e.options.env||process.env,n=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){}let i;try{i=qn.sync(e.command,{path:r[no({env:r})],pathExt:t?lt.delimiter:void 0})}catch(e){}finally{s&&process.chdir(n)}return i&&(i=lt.resolve(o?e.options.cwd:"",i)),i}function E(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 S(e,t){return go&&1===e&&!t.file?E(t.original,"spawn"):null}function _(e,t,r){const n=ro(e,t,r),o=yt.spawn(n.command,n.args,n.options);return mo.hookChildProcess(o,n),o}async function O(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=hs(t);return await new Promise(((t,o)=>{const s=e=>{e&&n.getBufferedLength()<=ms.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{await vs(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(new ys)}))})),n.getBufferedValue()}function T(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function C(){return null!==t(qn).sync("sudo",{nothrow:!0})}function R(){return 0===process.getuid?.()||!!process.env.CI}function P(){return R()&&C()}function $(e){return P()?"sudo "+e:e}function I(e,r=[],n={stdio:"inherit",shell:!0}){return P()?t(eo).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(eo).sync(e,r,n)}function A(e,r=[],n={stdio:"inherit",shell:!0}){return P()?t(eo).command("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(eo)(e,r,n)}function N(){return"win32"===process.platform?qs():R()}function k(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return t(eo)((()=>{if(void 0===Xs){const e=t(qn).sync("pwsh",{nothrow:!0});null!==e&&(Xs=e);const r=t(qn).sync("powershell",{nothrow:!0});null!==r&&(Xs=r)}if(void 0===Xs)throw Error("Could not find powershell");return Xs})(),[...r,"-c",e],n)}function L(e){"linux"!==process.platform&&"darwin"!==process.platform||!f()||void 0===process.env.SUDO_USER||g("chown",[...(0,ut.statSync)(e).isDirectory()?["-R"]:[],process.env.SUDO_USER,e],{cwd:e,stdio:"inherit",shell:!0})}async function j(e,r,n=!1){const o=((e,r=!1)=>{const n=r?t(Ws)(e):e;return t(ei)(n,'"',"\\")})(r??"",n);try{if("github-actions"===t($t)())try{(0,Pt.exportVariable)(e,o)}catch(t){(0,It.error)(t),await U(e,o)}else await U(e,o)}catch(t){(0,It.error)(t),(0,Pt.setFailed)(`Failed to export environment variable ${e}=${o}. You should add it manually.`)}}async function D(e){process.env.PATH=`${e}${lt.delimiter}${process.env.PATH}`;try{if("github-actions"===t($t)())try{(0,Pt.addPath)(e)}catch(t){(0,It.error)(t),await M(e)}else await M(e)}catch(t){(0,It.error)(t),(0,Pt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function U(e,t){const r=t??"";switch(process.platform){case"win32":return await k(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,Pt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return await F(),(0,ut.appendFileSync)(ri,`\nexport ${e}="${r}"\n`),void(0,Pt.info)(`${e}="${r}" was added to "${ri}`)}process.env[e]=r}async function M(e){switch(process.platform){case"win32":return await k(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void(0,Pt.info)(`"${e}" was added to the PATH.`);case"linux":case"darwin":return await F(),(0,ut.appendFileSync)(ri,`\nexport PATH="${e}:$PATH"\n`),void(0,Pt.info)(`"${e}" was added to "${ri}"`);default:return}}async function F(){if(ni)return;const e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await t(ti)(ri)&&(0,ut.readFileSync)(ri,"utf8").includes(e))return;(0,ut.appendFileSync)(ri,`\n${e}\n`),(0,Pt.info)(`Added ${e} to ${ri}`);const r=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${ri}" ]]; then source "${ri}"; fi\n`;try{const e=w(".profile");(0,ut.appendFileSync)(e,r),(0,Pt.info)(`${r} was added to ${e}`);const t=w(".bashrc");(0,ut.appendFileSync)(t,r),(0,Pt.info)(`${r} was added to ${t}`)}catch(e){(0,It.warning)(`Failed to add ${r} to .profile or .bashrc. You should add it manually: ${e}`)}ni=!0}async function G(e,r=!1){const n=(()=>{let e;return e=null!==t(oi).sync("nala",{nothrow:!0})?"nala":"apt-get",e})();for(const{name:t,version:r}of e)(0,Pt.info)(`Installing ${t} ${r??""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",yi&&!r||(B(n),yi=!0),wi||(await(async e=>{I(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);const t=[z(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),z(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(j("LANG","C.UTF-8"),j("LC_ALL","C.UTF-8")),await Promise.all(t)})(n),wi=!0);const o=[...new Set(e.flatMap((e=>e.repositories??[])))];if(0!==o.length){for(const e of o)I("add-apt-repository",["-y",e]);B(n)}return I(n,["install","--fix-broken","-y",...await Promise.all(e.map((e=>(async(e,r)=>{if(void 0!==r&&""!==r){const{stdout:n}=await t(eo)("apt-cache",["search","--names-only",`^${(0,gi.default)(e)}-${(0,gi.default)(r)}$`]);return""!==n.trim()?`${e}-${r}`:`${e}=${r}`}return e})(e.name,e.version))))]),{binDir:"/usr/bin/"}}function B(e){I(e,"nala"!==e?["update","-y"]:["update"])}function H(){I("gpg",["-k"])}async function z(e,r,n="keyserver.ubuntu.com"){const o="/etc/apt/trusted.gpg.d/"+r;return await t(ti)(o)||(H(),await Promise.all(e.map((async e=>{await A("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",n,"--recv-keys",e]),await A("chmod",["644",o])})))),o}async function q(e,r){const n="/etc/apt/trusted.gpg.d/"+e;return await t(ti)(n)||(H(),await G([{name:"curl"}],void 0),I("bash",["-c",`curl -s ${r} | gpg --no-default-keyring --keyring gnupg-ring:${n} --import`]),I("chmod",["644",n])),n}async function V(e,r){return"github-actions"===t($t)()?A("update-alternatives",["--install","/usr/bin/"+e,e,r,"40"]):(await F(),vi(ri,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${r} 40; fi\n`))}async function X(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof bi)return{binDir:bi};const o=t(oi).sync("brew",{nothrow:!0});if(null!==o)return bi=(0,Lt.dirname)(o),{binDir:bi};const s=t(lt).join((0,ct.tmpdir)(),"setup-cpp","brew");await(0,xi.mkdirP)(s),t(eo).sync("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:s});const i=(0,lt.join)(s,"install.sh");return"linux"===process.platform&&(0,ut.readFileSync)(i,"utf-8").replace("#!/bin/bash",""),t(eo).sync("/bin/bash",[i],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),bi=W(),await D(bi),{binDir:bi}}function W(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/"}async function Y(e,r,n=[]){(0,Pt.info)(`Installing ${e} ${r??""} via brew`),Si&&null!==t(oi).sync("brew",{nothrow:!0})||(await X(0,0,process),Si=!0);const o=W();return t(eo).sync((0,Lt.join)(o,"brew"),["install",void 0!==r&&""!==r?`${e}@${r}`:e,...n],{stdio:"inherit"}),{binDir:o}}async function K(e,r,n){if("win32"!==process.platform)return;if("string"==typeof Ei)return{binDir:Ei};const o=t(oi).sync("choco",{nothrow:!0});if(null!==o)return Ei=(0,Lt.dirname)(o),{binDir:Ei};let s="powershell.exe";const i=t(oi).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(s=i),t(eo).sync(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});const a=process.env.ALLUSERSPROFILE+"\\chocolatey\\bin";await D(a);const c=t(oi).sync("choco",{nothrow:!0});return Ei=null!==c?(0,Lt.dirname)(c):(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin",await t(ti)(Ei)?{binDir:Ei}:void 0}async function J(e,r,n=[]){(0,Pt.info)(`Installing ${e} ${r??""} via chocolatey`),Ci&&null!==t(oi).sync("choco",{nothrow:!0})||(await K(0,0,process),Ci=!0);const o=process.env.PATH,s={...process.env};if(delete s.TMP,delete s.TEMP,delete s.Path,s.PATH=o,void 0!==r&&""!==r)t(eo).sync("choco",["install","-y",e,"--version="+r,...n],{env:s,extendEnv:!1,stdio:"inherit"});else try{t(eo).sync("choco",["install","-y",e,...n],{env:s,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;(0,It.notice)(e+" might require a reboot for the completion of the installation.")}const i=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin";return await D(i),{binDir:i}}function Z(){return"linux"===process.platform&&(void 0===_i&&(_i=null!==t(oi).sync("pacman",{nothrow:!0})),_i)}function Q(){return"linux"===process.platform&&(void 0===Oi&&(Oi=null!==t(oi).sync("dnf",{nothrow:!0})),Oi)}function ee(e,t){(0,It.info)(`Installing ${e} ${t??""} via dnf`);const r="dnf";if(void 0!==t&&""!==t)try{I(r,["-y","install",`${e}-${t}`])}catch(t){(0,It.warning)(t+"\nInstalling the default version available via dnf"),I(r,["-y","install",e])}else I(r,["-y","install",e]);return{binDir:"/usr/bin/"}}function te(){if("linux"!==process.platform)return!1;if(void 0===Ti){const e="apt-get";Ti=null!==t(oi).sync(e,{nothrow:!0})}return Ti}function re(e,t,r){(0,It.info)(`Installing ${e} ${t??""} via pacman`);const n="pacman";if(Ri||"yay"===r||(I(n,["-Sy","--noconfirm"]),Ri=!0),Pi||(I(n,["-S","--noconfirm","base-devel"]),Pi=!0),void 0!==t&&""!==t)try{I(r??n,["-S","--noconfirm",`${e}=${t}`])}catch{I(r??n,["-S","--noconfirm",`${e}${t}`])}else I(r??n,["-S","--noconfirm",e]);return{binDir:"/usr/bin/"}}function ne(e,t){const r=[];t=t||Gi.arch();const n=Bi.join(le(),e);if(Mi.existsSync(n)){const e=Mi.readdirSync(n);for(const o of e)if(ae(o)){const e=Bi.join(n,o,t||"");Mi.existsSync(e)&&Mi.existsSync(e+".complete")&&r.push(o)}}return r}function oe(e){return Li(this,void 0,void 0,(function*(){return e||(e=Bi.join(ue(),Xi.default())),yield Ui.mkdirP(e),e}))}function se(e,t,r){return Li(this,void 0,void 0,(function*(){const n=Bi.join(le(),e,zi.clean(t)||t,r||"");Di.debug("destination "+n);const o=n+".complete";return yield Ui.rmRF(n),yield Ui.rmRF(o),yield Ui.mkdirP(n),n}))}function ie(e,t,r){const n=Bi.join(le(),e,zi.clean(t)||t,r||"");Mi.writeFileSync(n+".complete",""),Di.debug("finished caching tool")}function ae(e){const t=zi.clean(e)||"";Di.debug("isExplicit: "+t);const r=null!=zi.valid(t);return Di.debug("explicit? "+r),r}function ce(e,t){let r="";Di.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>zi.gt(e,t)?1:-1))).length-1;n>=0;n--){const o=e[n];if(zi.satisfies(o,t)){r=o;break}}return Di.debug(r?"matched: "+r:"match not found"),r}function le(){const e=process.env.RUNNER_TOOL_CACHE||"";return gt.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function ue(){const e=process.env.RUNNER_TEMP||"";return gt.ok(e,"Expected RUNNER_TEMP to be defined"),e}function de(e,t){const r=Ot[e];return void 0!==r?r:t}function pe(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");const 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(((t,n)=>{let o,s,i;r.timeout&&(o=setTimeout((()=>{s&&clearTimeout(s),n(new aa(r.name+" timed out",i))}),r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then((()=>{o&&clearTimeout(o),s&&clearTimeout(s)})).catch((a=>{o&&clearTimeout(o),s&&clearTimeout(s),i=a,r.report&&r.report(a&&""+a||a,r,a);var c=r.max>r.$current;if(!c)return n(a);if(c=0===r.match.length||r.match.some((e=>((e,t)=>{if("function"==typeof e)try{if(t instanceof e)return!0}catch(r){return!!e(t)}return e===""+t||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(""+t))})(e,a))),!c)return n(a);var l=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),l?(r.report&&r.report(`Delaying retry of ${r.name} by ${l}`,r),s=setTimeout((()=>{pe(e,r).then(t).catch(n)}),l)):pe(e,r).then(t).catch(n)}))}))}async function he(e,r,n,o,s){(0,It.info)(`Installing ${e} ${r} ${s} via direct downloading`),process.env.RUNNER_TEMP=process.env.RUNNER_TEMP??(0,ct.tmpdir)(),process.env.RUNNER_TOOL_CACHE=process.env.RUNNER_TOOL_CACHE??(0,Lt.join)((0,ct.tmpdir)(),"setup-cpp","hostedtoolcache");const{url:i,binRelativeDir:a,binFileName:c,extractedFolderName:l,extractFunction:u}=await n(r,process.platform,s);if("github-actions"===t($t)())try{const n=(0,$i.find)(e,r);if(n){const o=(0,Lt.join)(n,l),s=(0,Lt.join)(o,a);if(await t(ti)((0,Lt.join)(s,c)))return(0,It.info)(`${e} ${r} was found in the cache at ${s}.`),await D(s),{installDir:o,binDir:s}}}catch{}const d=(0,Lt.join)(o,l),p=(0,Lt.join)(d,a),h=(0,Lt.join)(p,c);if((await Promise.all([t(ti)(p),t(ti)(h)])).includes(!1))try{(0,It.info)(`Download ${e} ${r}`);const n=await t(ia)((()=>(0,$i.downloadTool)(i)),{name:i,max:4,backoffBase:2e3,report(e){return(0,It.info)(e)}});la||((0,It.info)("Installing extraction dependencies"),"linux"===process.platform&&(Z()?(re("unzip"),re("tar"),re("xz")):Q()?(ee("unzip"),ee("tar"),ee("xz")):te()&&await G([{name:"unzip"},{name:"tar"},{name:"xz-utils"}])),la=!0),(0,It.info)(`Extracting ${n} to ${o}`),await(u?.(n,o))}catch(t){throw Error(`Failed to download ${e} ${r} ${s} from ${i}: ${t}`)}return(0,It.info)(`Add ${p} to PATH`),await D(p),"github-actions"===t($t)()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await(0,$i.cacheDir)(o,e,r),{installDir:d,binDir:p}}function fe(e,t,r){switch(process.platform){case"win32":return J("7zip",e);case"darwin":return Y("p7zip",e);case"linux":if(Z())return re("p7zip",e);if(Q())return ee("p7zip",e),ee("p7zip-plugins",e);if(te())return G([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}async function me(e,r){return await t(eo)(await(async()=>(void 0===ca&&(null===t(oi).sync("7z",{nothrow:!0})&&await fe("",0,process),ca="7z"),ca))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),L(r),r}function ge(e,t){return me(e,t)}function ve(e,t){return me(e,t)}async function ye(e,r,n=["--strip-components=0"]){try{await(0,xi.mkdirP)(r)}catch{}try{await t(eo)("tar",["xf",e,"-C",r,...n],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,It.warning)(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return L(r),r}function we(e,r,n){const o=t(sa)(e)??e;switch(r){case"win32":{const r=t(oa)(o,"v3.19.6");let s;s=["ia32","x86","i386","x32"].includes(n)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const i=`cmake-${e}-${s}`;return{binRelativeDir:"bin/",binFileName:(0,Lt.addExeExt)("cmake"),extractedFolderName:i,extractFunction:ve,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.zip`}}case"darwin":{const r=`cmake-${e}-${t(oa)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,Lt.addExeExt)("cmake"),extractedFolderName:r,extractFunction:$i.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(oa)(o,"v3.19.8");let s;s=["aarch64"].includes(n)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const i=`cmake-${e}-${s}`;return{binRelativeDir:"bin/",binFileName:(0,Lt.addExeExt)("cmake"),extractedFolderName:i,extractFunction:$i.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${i}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function xe(e,t,r){return he("cmake",e,we,t,r)}function be(e,t){return new Promise((r=>{try{const n=(0,ht.request)(e,{method:t},(e=>{r((e=>void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)(e))}));n.on("error",(e=>{r(!1)})),n.end()}catch{r(!1)}}))}function Ee(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function Se(){switch(process.platform){case"linux":return"15.0.6-ubuntu-18.04";case"darwin":return"15.0.3";default:return"15.0.4"}}function _e(e,t,r=null){return Oe(t,e)?"linux"===process.platform&&null!==r&&e in fa?((e,t)=>{const r=t[0];return parseInt(Object.keys(fa[e])[0],10)>r?"":fa[e][r]})(e,r):ha[e]:t??""}function Oe(e,t){return"true"===e||void 0===e&&t in ha}async function Te(e,r,n){if("github-actions"!==t($t)())return Ce(e,r);try{(0,It.info)("Installing python in GitHub Actions");const{setupActionsPython:t}=await Rt("8vv5p");return t(e,r,n)}catch(t){return(0,It.warning)(""+t),Ce(e,r)}}async function Ce(e,r,n){switch(process.platform){case"win32":{r?await J("python3",e,["--params=/InstallDir:"+r]):await J("python3",e);const n=t(oi).sync("python3.exe",{nothrow:!0})??t(oi).sync("python.exe",{nothrow:!0})??(0,Lt.join)(r,"python.exe"),o=(0,Lt.dirname)(n);return await D(o),{installDir:o,binDir:o}}case"darwin":return Y("python3",e);case"linux":{let t;if(Z())t=re("python",e),re("python-pip");else if(Q())t=ee("python3",e),ee("python3-pip");else{if(!te())throw Error("Unsupported linux distributions");t=await G([{name:"python3",version:e},{name:"python3-pip"}])}return t}default:throw Error("Unsupported platform")}}async function Re(){let e;if(null!==t(oi).sync("python3",{nothrow:!0}))e="python3";else{if(null===t(oi).sync("python",{nothrow:!0})||!await(async(e,r,n=pa)=>{const o=await(async(e,t=pa)=>{try{const r=await(0,Wi.getExecOutput)(e,["--version"]),n=r.stdout||r.stderr||"",o=n.trim().match(t)?.[1];return o}catch(e){return void console.error(e)}})(e,n);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==t(da)(o,r)})("python","3.0.0")){if((0,It.info)("python3 was not found. Installing python"),await Te(_e("python",void 0),"",process.arch),va)throw Error("Failed to install python");return va=!0,Re()}e="python"}return t(gt)("string"==typeof e),"win32"===process.platform?t(eo).sync(e,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&(Z()?re("python-pip"):Q()?ee("python3-pip"):te()&&await G([{name:"python3-pip"}])),t(eo).sync(e,["-m","pip","install","-U","wheel"],{stdio:"inherit"}),e}async function Pe(e,r){(0,Pt.info)(`Installing ${e} ${r??""} via pip`),void 0===ma&&(ma=await Re()),t(eo).sync(ma,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===ga&&(ga=await async function(e){const t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");const r=(await(0,Wi.getExecOutput)(e+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim();return t.push((0,Lt.join)(r,"Scripts"),(0,Lt.join)(r,"Scripts","bin"),(0,Lt.join)(r,"bin")),(e=>[...new Set(e)])(t)}(ma));const n=await(async(e,r)=>{const n=await Promise.all(e.map((e=>t(ti)((0,Lt.join)(e,(0,Lt.addExeExt)(r)))))),o=e[n.findIndex((e=>e))];if(void 0!==o)return o;const s=t(oi).sync((0,Lt.addExeExt)(r),{nothrow:!0});return null!==s?(0,Lt.dirname)(s):e[e.length-1]})(ga,e);return await D(n),{binDir:n}}async function $e(e,t,r){switch(process.platform){case"win32":return await J("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await D(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return Y("graphviz",e);case"linux":if(Z())return re("graphviz",e);if(Q())return ee("graphviz",e);if(te())return G([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}}function Ie(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,Lt.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:$i.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,Lt.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:ve,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Ae(){if("darwin"===process.platform)try{const e=await(0,Wi.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await j("SDKROOT",t.trim()):(0,It.error)("SDKROOT not set")}catch(e){(0,It.error)(e)}}function Ne(e,t,r){if("win32"===t){const t=xa[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const n="ia32"===r?"i686":"x86_64",o="seh";return{binRelativeDir:"bin/",binFileName:(0,Lt.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:me,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${n}-posix-${o}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function ke(e,r,n){let o;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await J("gcc-arm-embedded",e);try{o=await he("g++",e,Ne,r,n)}catch(r){(0,It.info)(`Failed to download g++ binary. ${r}. Falling back to chocolatey.`),o=await(async(e,r)=>{let n;return await J("mingw",e),"x64"===r&&await t(ti)("C:/tools/mingw64/bin")?(n="C:/tools/mingw64/bin",await D(n)):"ia32"===r&&await t(ti)("C:/tools/mingw32/bin")?(n="C:/tools/mingw32/bin",await D(n)):await t(ti)((process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(n=(process.env.ChocolateyInstall??"C:/ProgramData/chocolatey")+"/bin"),void 0!==n?{binDir:n}:void 0})(e,n)}break;case"darwin":o=await Y("gcc",e);break;case"linux":"x64"===n?Z()?o=re("gcc",e):Q()?(o=ee("gcc",e),ee("gcc-c++",e),ee("libstdc++-devel",void 0)):te()&&(o=await G([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,It.info)(`Install g++-multilib because gcc for ${n} was requested`),Z()?re("gcc-multilib",e):te()&&await G([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+n)}if(void 0!==o)return await(async(e,r)=>{const n=[];if("win32"===process.platform)n.push(j("CC",(0,Lt.addExeExt)(r+"/gcc")),j("CXX",(0,Lt.addExeExt)(r+"/g++")));else{const o=t(ya)(t(sa)(e)??e);5>o?(n.push(j("CC",`${r}/gcc-${e}`),j("CXX",`${r}/g++-${e}`)),te()&&n.push(V("cc",`${r}/gcc-${e}`),V("cxx",`${r}/g++-${e}`),V("gcc",`${r}/gcc-${e}`),V("g++",`${r}/g++-${e}`))):(n.push(j("CC",`${r}/gcc-${o}`),j("CXX",`${r}/g++-${o}`)),te()&&n.push(V("cc",`${r}/gcc-${o}`),V("cxx",`${r}/g++-${o}`),V("gcc",`${r}/gcc-${o}`),V("g++",`${r}/g++-${o}`)))}n.push(Ae()),"github-actions"===t($t)()&&await(async()=>{const e=(0,Lt.join)(wa,"gcc_matcher.json");if(!await t(ti)(e))return(0,It.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,It.info)("::add-matcher::"+e)})(),await Promise.all(n)})(e,o.binDir),o}function Le(e,t,r){const n=(e=>{switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`)}})(t);return{binRelativeDir:"",binFileName:(0,Lt.addExeExt)("ninja"),extractedFolderName:"",extractFunction:ve,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`}}function je(e,t,r){return he("ninja",e,Le,t,r)}function De(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,Lt.addExeExt)("kcov"),extractFunction:ye}}function Ue(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,Lt.addExeExt)("kcov"),extractFunction:Me}}async function Me(e,r){const n=await ye(e,r,["--strip-components=1"]),o=await(async()=>{let e=t(oi).sync("cmake",{nothrow:!0});if(null===e){const{binDir:t}=await xe(_e("cmake",void 0),(0,Lt.join)(w(""),"cmake"),"");e=(0,Lt.join)(t,"cmake")}return null===t(oi).sync("ninja",{nothrow:!0})&&await je(_e("ninja",void 0),(0,Lt.join)(w(""),"ninja"),""),e})();"linux"===process.platform&&(Z()?(re("libdwarf"),re("libcurl-openssl")):Q()?(ee("libdwarf-devel"),ee("libcurl-devel")):te()&&await G([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}]));const s=(0,Lt.join)(n,"build");return await t(eo)(o,["-S",n,"-B",s,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:n,stdio:"inherit"}),await t(eo)(o,["--build",s,"--config","Release"],{cwd:n,stdio:"inherit"}),n}function Fe(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function Ge(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Be(e,r){switch(e){case"darwin":return(e=>{if(Sa.has(e))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(oa)(e,"9.0.1")?Ge(e,r,n):Fe(e,r,n)})(r);case"linux":return(e=>{let r=e;const n=_a.get(r);let o;if(void 0!==n&&(r=n),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!ba.has(e))throw Error("Unsupported Ubuntu version: "+e);o=r.replace(e,""),r=Ee(ba,e)[0]}else""!==r&&r in Oa?o=Oa[r]:(o=Oa[Ta],(0,It.warning)(`Falling back to LLVM version ${Ta} ${o} for the Ubuntu.`));const s="clang+llvm-";let i;return i="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:o.includes("-rhel86")?`-x86_64-unknown-linux-gnu${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`,t(oa)(r,"9.0.1")?Ge(r,s,i):Fe(r,s,i)})(r);case"win32":return(async e=>{if(Ea.has(e))return null;const r="LLVM-",n=t(oa)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=t(oa)(e,"9.0.1");let s,i=!1;return o&&(s=Ge(e,r,n),await ua(s)||(i=!0)),!i&&o||(s=Fe(e,r,n)),s})(r);default:return null}}async function He(e,t,r){const[n,o]=await(async(e,t,r,n)=>{if("linux"===t&&r.includes("ubuntu")){const e=await n(t,r);if(null!==e&&await ua(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);const o=[];for(const s of Ee(e,r)){const e=await n(t,s);if(null!==e){if(await ua(e))return[s,e];o.push(e)}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). The offline urls tested:\n${o.join("\n")}`)})(ba,t,e,Be);return(0,It.info)("specific llvm version: "+n),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,Lt.addExeExt)("clang"),extractFunction:"win32"===t?ge:(e,t)=>ye(e,t,["--strip-components=1"])}}async function ze(){try{if(te()){null===t(oi).sync("lsb_release",{nothrow:!0})&&await G([{name:"lsb-release"}]);const e=await(0,Ca.getUbuntuVersion)();return 0===e.length?((0,It.warning)("Failed to get the ubuntu major version."),null):e}return null}catch(e){return(0,It.warning)(""+e),null}}async function qe(e,r,n){const o=await Ve(e,r,n);return await(async(e,r)=>{const n=(e=>{if(null===t(jt)(e))try{const r=t(sa)(e);if(null!==r)return(0,It.info)(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),o=(0,Lt.join)(e,"lib"),s=process.env.LD_LIBRARY_PATH??"",i=process.env.DYLD_LIBRARY_PATH??"",a=[j("LLVM_PATH",e),j("LD_LIBRARY_PATH",`${o}${lt.delimiter}${s}`),j("DYLD_LIBRARY_PATH",`${o}${lt.delimiter}${i}`),j("LDFLAGS",`-L"${e}/lib"`),j("CPPFLAGS",`-I"${e}/include"`),j("CC",(0,Lt.addExeExt)(e+"/bin/clang")),j("CXX",(0,Lt.addExeExt)(e+"/bin/clang++")),j("LIBRARY_PATH",e+"/lib"),Ae()];if("win32"!==process.platform){const r=t(ya)(n);await t(ti)(`${e}/lib/clang/${n}/include`)?a.push(j("CPATH",`${e}/lib/clang/${n}/include`)):await t(ti)(`${e}/lib/clang/${r}/include`)&&a.push(j("CPATH",`${e}/lib/clang/${r}/include`))}te()&&a.push(V("cc",e+"/bin/clang"),V("cxx",e+"/bin/clang++"),V("clang",e+"/bin/clang"),V("clang++",e+"/bin/clang++"),V("lld",e+"/bin/lld"),V("ld.lld",e+"/bin/ld.lld"),V("llvm-ar",e+"/bin/llvm-ar")),"github-actions"===t($t)()&&await We(),await Promise.all(a)})(o.installDir??r,e),o}async function Ve(e,t,r){const n=he("llvm",e,He,t,r);let o;Pa?o=Promise.resolve():(o=(async(e,t)=>{if("linux"===process.platform){const r=await ze();await ke(_e("gcc",void 0,r),"",e),te()&&(parseInt(t.split(".")[0],10)>10?await G([{name:"libtinfo-dev"}]):await G([{name:"libtinfo5"}]))}})(r,e),Pa=!0);const[s,i]=await Promise.all([n,o]);return s}async function Xe(e,r,n){return"github-actions"===t($t)()&&await We(),Ve(e,r,n)}async function We(){const e=(0,Lt.join)(Ra,"llvm_matcher.json");if(!await t(ti)(e))return(0,It.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,It.info)("::add-matcher::"+e)}function Ye(e,t,r){const n=new Fa(e,t,r);process.stdout.write(""+n+Ua.EOL)}function Ke(e){ja.issue("error",e instanceof Error?""+e:e)}function Je(e){ja.issue("group",e)}function Ze(){ja.issue("endgroup")}function Qe(e){return Object.values(Qa).includes(e)?e:e in Qa?Qa[e]:e}function et(e){if(Object.keys(Qa).includes(e))return e;for(const[t,r]of Object.entries(Qa))if(r===e)return t;return e}function tt(e){const t=Qe(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+yt.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){Na.warning("vswhere failed: "+e)}return null})(0,r);if(n&&ut.existsSync(n))return Na.info("Found with vswhere: "+n),n;Na.info("Not found with vswhere");const o=e?[et(e)]:Za;for(const e of Ka)for(const t of o)for(const r of Ja)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,Na.info("Trying standard location: "+n),ut.existsSync(n))return Na.info("Found standard location: "+n),n;if(Na.info("Not found in standard locations"),n=Ya+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",ut.existsSync(n))return Na.info("Found VS 2015: "+n),n;throw Na.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function rt(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function nt(e,r,n,o,s,i,a){void 0!==r&&await t(ti)(r)&&((0,It.info)(`Adding ${r} to PATH`),await j("VCTargetsPath",r)),Aa((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(n),s,o,i,a,e)}async function ot(e,r,n,o,s,i){if("win32"!==process.platform)return;const a=$a(e);(0,It.info)(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=Ia(a);u=!0,(0,It.info)("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await J("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),l="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(c="14.16",await J("visualstudio2017buildtools","15.9.41.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(c="14.29",await J("visualstudio2019buildtools","16.11.7.0",[]),l="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(c=void 0,await J("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):(0,It.error)(`The given MSVC versions ${e} is not supported yet.`)}catch(e){(0,It.error)(e)}await nt(a,l,n,c,o,s,i),"github-actions"===t($t)()&&await(async()=>{const e=(0,Lt.join)(tc,"msvc_matcher.json");if(!await t(ti)(e))return(0,It.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,It.info)("::add-matcher::"+e)})()}function st(e,t,r){const n=(e=>"win32"===e?"windows":e)(t),o=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),s="win32"===t,i=s?"zip":"tar.gz";return{binRelativeDir:"",binFileName:(0,Lt.addExeExt)("task"),extractedFolderName:"",extractFunction:s?ve:ye,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${o}.${i}`}}function it(e){const t=(0,Pt.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t}function at(e,t){let r=`✅ ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r}var ct=require("os"),lt=require("path"),ut=require("fs"),dt=require("crypto"),pt=require("http"),ht=require("https");require("net");var ft=require("tls"),mt=require("events"),gt=require("assert"),vt=require("util"),yt=require("child_process"),wt=require("string_decoder"),xt=require("timers"),bt=require("buffer"),Et=require("stream"),St=require("process"),_t=require("url"),Ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Tt={},Ct={},Rt=Ot.parcelRequire810d;null==Rt&&((Rt=e=>{if(e in Tt)return Tt[e].exports;if(e in Ct){var t=Ct[e];delete Ct[e];var r={id:e,exports:{}};return Tt[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{Ct[e]=t},Ot.parcelRequire810d=Rt),Rt.register("lXEOe",(function(e,t){"use strict";function r(e,t){const 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 n(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function s(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;var u=Rt("kAYz9"),d=Rt("a16eX"),p=Rt("1y8ch");const h=c(ct),f=c(lt);var m,g,v=Rt("dyb8L");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=p.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return d.issueFileCommand("ENV",d.prepareKeyValueMessage(e,t));u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?d.issueFileCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>{const n=r(e,t).split("\n").filter((e=>""!==e));return t&&!1===t.trimWhitespace?n:n.map((e=>e.trim()))},e.exports.getBooleanInput=(e,t)=>{const n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{if(process.env.GITHUB_OUTPUT)return d.issueFileCommand("OUTPUT",d.prepareKeyValueMessage(e,t));process.stdout.write(h.EOL),u.issueCommand("set-output",{name:e},p.toCommandValue(t))},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=o,e.exports.endGroup=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{s()}return r}))},e.exports.saveState=(e,t)=>{if(process.env.GITHUB_STATE)return d.issueFileCommand("STATE",d.prepareKeyValueMessage(e,t));u.issueCommand("save-state",{name:e},p.toCommandValue(t))},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield v.OidcClient.getIDToken(e)}))};var y=Rt("kCeDZ");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary}}),y=Rt("kCeDZ"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}});var w=Rt("5FsRV");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return w.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return w.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return w.toPlatformPath}})})),Rt.register("kAYz9",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+i.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=s(ct);var a=Rt("1y8ch");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Rt.register("1y8ch",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Rt.register("a16eX",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;const s=o(ut),i=o(ct);var a=Rt("5KhFO"),c=Rt("1y8ch");e.exports.issueFileCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${c.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})},e.exports.prepareKeyValueMessage=(e,t)=>{const r="ghadelimiter_"+a.default(),n=c.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}${i.EOL}${n}${i.EOL}${r}`}})),Rt.register("5KhFO",((t,r)=>{e(t.exports,"default",(()=>s));var n=Rt("dXRdC"),o=Rt("dvQWo"),s=(e,t,r)=>{const s=(e=e||{}).random||(e.rng||n.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){r=r||0;for(let e=0;16>e;++e)t[r+e]=s[e];return t}return(0,o.default)(s)}})),Rt.register("dXRdC",((r,n)=>{function o(){return i>s.length-16&&(t(dt).randomFillSync(s),i=0),s.slice(i,i+=16)}e(r.exports,"default",(()=>o));const s=new Uint8Array(256);let i=s.length})),Rt.register("dvQWo",((t,r)=>{e(t.exports,"default",(()=>s));var n=Rt("bDRem");const o=[];for(let e=0;256>e;++e)o.push((e+256).toString(16).substr(1));var s=(e,t=0)=>{const r=(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase();if(!(0,n.default)(r))throw TypeError("Stringified UUID is invalid");return r}})),Rt.register("bDRem",((t,r)=>{e(t.exports,"default",(()=>o));var n=Rt("2cHNJ"),o=e=>"string"==typeof e&&n.default.test(e)})),Rt.register("2cHNJ",((t,r)=>{e(t.exports,"default",(()=>n));var n=/^(?:[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})),Rt.register("dyb8L",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Rt("lkZr1"),o=Rt("90YqL"),s=Rt("lXEOe");class i{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(i.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=i.createHttpClient(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=n.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=i.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),s.debug("ID token url is "+t);const r=yield i.getCall(t);return s.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=i})),Rt.register("lkZr1",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;const i=o(pt),a=o(ht),c=o(Rt("aNZ4r")),l=o(Rt("jlAXB"));var u,d,p,h,f;(d=u=e.exports.HttpCodes||(e.exports.HttpCodes={}))[d.OK=200]="OK",d[d.MultipleChoices=300]="MultipleChoices",d[d.MovedPermanently=301]="MovedPermanently",d[d.ResourceMoved=302]="ResourceMoved",d[d.SeeOther=303]="SeeOther",d[d.NotModified=304]="NotModified",d[d.UseProxy=305]="UseProxy",d[d.SwitchProxy=306]="SwitchProxy",d[d.TemporaryRedirect=307]="TemporaryRedirect",d[d.PermanentRedirect=308]="PermanentRedirect",d[d.BadRequest=400]="BadRequest",d[d.Unauthorized=401]="Unauthorized",d[d.PaymentRequired=402]="PaymentRequired",d[d.Forbidden=403]="Forbidden",d[d.NotFound=404]="NotFound",d[d.MethodNotAllowed=405]="MethodNotAllowed",d[d.NotAcceptable=406]="NotAcceptable",d[d.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",d[d.RequestTimeout=408]="RequestTimeout",d[d.Conflict=409]="Conflict",d[d.Gone=410]="Gone",d[d.TooManyRequests=429]="TooManyRequests",d[d.InternalServerError=500]="InternalServerError",d[d.NotImplemented=501]="NotImplemented",d[d.BadGateway=502]="BadGateway",d[d.ServiceUnavailable=503]="ServiceUnavailable",d[d.GatewayTimeout=504]="GatewayTimeout",(h=p=e.exports.Headers||(e.exports.Headers={})).Accept="accept",h.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=c.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],g=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype)}}e.exports.HttpClientError=y;class w{constructor(e){this.message=e}readBody(){return s(this,void 0,void 0,(function*(){return new Promise((e=>s(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)}))}))))}))}}e.exports.HttpClientResponse=w,e.exports.isHttps=e=>"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 s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return s(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return s(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return s(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.post(e,n,r);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.put(e,n,r);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}))}request(e,t,r,n){return s(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let s=this._prepareRequest(e,o,n);const i=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(s,r),a&&a.message&&a.message.statusCode===u.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,s,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const i=a.message.headers.location;if(!i)break;const c=new URL(i);if("https:"===o.protocol&&o.protocol!==c.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 a.readBody(),c.hostname!==o.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];s=this._prepareRequest(e,c,n),a=yield this.requestRaw(s,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;c+=1,i>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(i>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(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;const s=e.httpModule.request(e.options,(e=>{n(void 0,new w(e))}));let i;s.on("socket",(e=>{i=e})),s.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),n(Error("Request timeout: "+e.options.path))})),s.on("error",(e=>{n(e)})),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{s.end()})),t.pipe(s)):s.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o="https:"===n.parsedUrl.protocol;n.httpModule=o?a:i;const s=o?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):s,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(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},x(this.requestOptions.headers),x(e||{})):x(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=x(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const o="https:"===e.protocol;let s=100;if(this.requestOptions&&(s=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i="https:"===r.protocol;n=o?i?l.httpsOverHttps:l.httpsOverHttp:i?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=o?new a.Agent(e):new i.Agent(e),this._agent=t}return t||(t=o?a.globalAgent:i.globalAgent),o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((r,n)=>s(this,void 0,void 0,(function*(){const o=e.message.statusCode||0,s={statusCode:o,result:null,headers:{}};let i,a;o===u.NotFound&&r(s);try{a=yield e.readBody(),a&&a.length>0&&(i=t&&t.deserializeDates?JSON.parse(a,((e,t)=>{if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),s.result=i),s.headers=e.message.headers}catch(e){}if(o>299){let e;e=i&&i.message?i.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new y(e,o);t.result=s.result,n(t)}else r(s)}))))}))}};const x=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Rt.register("aNZ4r",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;if((e=>{const t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")})(e.hostname))return!0;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=+e.port:"http:"===e.protocol?r=80:"https:"===e.protocol&&(r=443);const n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.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=e=>{const t="https:"===e.protocol;if(r(e))return;const 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})),Rt.register("jlAXB",((e,t)=>{e.exports=Rt("1216J")})),Rt.register("1216J",(function(t,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||pt.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,o)=>{for(var i=s(r,n,o),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var o=e.request.getHeader("host"),s=i({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host}),a=ft.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function s(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var o=Object.keys(n),s=0,i=o.length;i>s;++s){var a=o[s];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,d,p;e(t.exports,"httpOverHttp",(()=>a),(e=>a=e)),e(t.exports,"httpsOverHttp",(()=>c),(e=>c=e)),e(t.exports,"httpOverHttps",(()=>l),(e=>l=e)),e(t.exports,"httpsOverHttps",(()=>u),(e=>u=e)),e(t.exports,"debug",(()=>d),(e=>d=e)),a=e=>{var t=new n(e);return t.request=pt.request,t},c=e=>{var t=new n(e);return t.request=pt.request,t.createSocket=o,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=ht.request,t},u=e=>{var t=new n(e);return t.request=ht.request,t.createSocket=o,t.defaultPort=443,t},vt.inherits(n,mt.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var o=this,a=i({request:e},o.options,s(t,r,n));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function n(e){o.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)})):o.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,s,i){var c;return a.removeAllListeners(),s.removeAllListeners(),200!==r.statusCode?(p("tunneling socket could not be established, statusCode=%d",r.statusCode),s.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):i.length>0?(p("got illegal response body from proxy"),s.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):(p("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=s,t(s))}var n=this,o={};n.sockets.push(o);var s=i({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),p("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),p("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),n.removeSocket(o)})),a.end()},n.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(e=>{r.request.onSocket(e)}))}},d=p=()=>{}})),Rt.register("90YqL",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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")}))}}})),Rt.register("kCeDZ",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;const{access:n,appendFile:o,writeFile:s}=ut.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";const i=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const 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,ut.constants.R_OK|ut.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={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?s:o;return yield n(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(ct.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(r,n);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:o}=e,s=t?"th":"td",i=Object.assign(Object.assign({},n&&{colspan:n}),o&&{rowspan:o});return this.wrap(s,r,i)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:o}=r||{},s=Object.assign(Object.assign({},n&&{width:n}),o&&{height:o}),i=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(i).addEOL()}addHeading(e,t){const r="h"+t,n=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",e);return this.addRaw(n).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=i,e.exports.summary=i})),Rt.register("5FsRV",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const s=o(lt);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,s.sep)})),Rt.register("dG9nM",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTIONS?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"woodpecker"===process.env.CI?"woodpecker":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Rt.register("bouSm",((r,n)=>{function o(e){return"github-actions"===t(u)()?l.error(e):console.log(`[31m${e}[0m`)}function s(e){return console.log(`[32m${e}[0m`)}function i(e){return"github-actions"===t(u)()?l.warning(e):console.log(`[33m${e}[0m`)}function a(e){return"github-actions"===t(u)()?l.notice(e):console.log(`[94m${e}[0m`)}function c(e){return"github-actions"===t(u)()?l.info(e):console.log(e)}e(r.exports,"error",(()=>o)),e(r.exports,"success",(()=>s)),e(r.exports,"warning",(()=>i)),e(r.exports,"notice",(()=>a)),e(r.exports,"info",(()=>c));var l=Rt("1PzKq"),u=Rt("1QGzx")})),Rt.register("1PzKq",(function(e,t){"use strict";function r(e,t){const 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 n(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function s(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;var u=Rt("dxuv4"),d=Rt("kBRBX"),p=Rt("hGxq9");const h=c(ct),f=c(lt);var m,g,v=Rt("5KhFO"),y=Rt("dOzCq");(g=m=e.exports.ExitCode||(e.exports.ExitCode={}))[g.Success=0]="Success",g[g.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=p.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="ghadelimiter_"+v.default();if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);d.issueCommand("ENV",`${e}<<${t}${h.EOL}${r}${h.EOL}${t}`)}else u.issueCommand("set-env",{name:e},r)},e.exports.setSecret=e=>{u.issueCommand("add-mask",{},e)},e.exports.addPath=e=>{process.env.GITHUB_PATH?d.issueCommand("PATH",e):u.issueCommand("add-path",{},e),process.env.PATH=`${e}${f.delimiter}${process.env.PATH}`},e.exports.getInput=r,e.exports.getMultilineInput=(e,t)=>r(e,t).split("\n").filter((e=>""!==e)),e.exports.getBooleanInput=(e,t)=>{const n=r(e,t);if(["true","True","TRUE"].includes(n))return!0;if(["false","False","FALSE"].includes(n))return!1;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)},e.exports.setOutput=(e,t)=>{process.stdout.write(h.EOL),u.issueCommand("set-output",{name:e},t)},e.exports.setCommandEcho=e=>{u.issue("echo",e?"on":"off")},e.exports.setFailed=e=>{process.exitCode=m.Failure,n(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=n,e.exports.warning=(e,t={})=>{u.issueCommand("warning",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",p.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=o,e.exports.endGroup=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{s()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||"",e.exports.getIDToken=function(e){return l(this,void 0,void 0,(function*(){return yield y.OidcClient.getIDToken(e)}))};var w=Rt("9TEfs");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return w.summary}}),w=Rt("9TEfs"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return w.markdownSummary}});var x=Rt("13oDU");Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get(){return x.toPosixPath}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get(){return x.toWin32Path}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get(){return x.toPlatformPath}})})),Rt.register("dxuv4",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+i.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=s(ct);var a=Rt("hGxq9");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Rt.register("hGxq9",((e,t)=>{"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),e.exports.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Rt.register("kBRBX",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const s=o(ut),i=o(ct);var a=Rt("hGxq9");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}})),Rt.register("dOzCq",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=Rt("1mHcB"),o=Rt("itiEo"),s=Rt("1PzKq");class i{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new n.HttpClient("actions/oidc-client",[new o.BearerCredentialHandler(i.getRequestToken())],r)}static getRequestToken(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e}static getIDTokenUrl(){const e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e}static getCall(e){var t;return r(this,void 0,void 0,(function*(){const r=i.createHttpClient(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=n.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=i.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),s.debug("ID token url is "+t);const r=yield i.getCall(t);return s.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=i})),Rt.register("1mHcB",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;const i=o(pt),a=o(ht),c=o(Rt("9YcLS")),l=o(Rt("jlAXB"));var u,d,p,h,f;(d=u=e.exports.HttpCodes||(e.exports.HttpCodes={}))[d.OK=200]="OK",d[d.MultipleChoices=300]="MultipleChoices",d[d.MovedPermanently=301]="MovedPermanently",d[d.ResourceMoved=302]="ResourceMoved",d[d.SeeOther=303]="SeeOther",d[d.NotModified=304]="NotModified",d[d.UseProxy=305]="UseProxy",d[d.SwitchProxy=306]="SwitchProxy",d[d.TemporaryRedirect=307]="TemporaryRedirect",d[d.PermanentRedirect=308]="PermanentRedirect",d[d.BadRequest=400]="BadRequest",d[d.Unauthorized=401]="Unauthorized",d[d.PaymentRequired=402]="PaymentRequired",d[d.Forbidden=403]="Forbidden",d[d.NotFound=404]="NotFound",d[d.MethodNotAllowed=405]="MethodNotAllowed",d[d.NotAcceptable=406]="NotAcceptable",d[d.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",d[d.RequestTimeout=408]="RequestTimeout",d[d.Conflict=409]="Conflict",d[d.Gone=410]="Gone",d[d.TooManyRequests=429]="TooManyRequests",d[d.InternalServerError=500]="InternalServerError",d[d.NotImplemented=501]="NotImplemented",d[d.BadGateway=502]="BadGateway",d[d.ServiceUnavailable=503]="ServiceUnavailable",d[d.GatewayTimeout=504]="GatewayTimeout",(h=p=e.exports.Headers||(e.exports.Headers={})).Accept="accept",h.ContentType="content-type",(f=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{const t=c.getProxyUrl(new URL(e));return t?t.href:""};const m=[u.MovedPermanently,u.ResourceMoved,u.SeeOther,u.TemporaryRedirect,u.PermanentRedirect],g=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype)}}e.exports.HttpClientError=y;class w{constructor(e){this.message=e}readBody(){return s(this,void 0,void 0,(function*(){return new Promise((e=>s(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)}))}))))}))}}e.exports.HttpClientResponse=w,e.exports.isHttps=e=>"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 s(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return s(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return s(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,r){return s(this,void 0,void 0,(function*(){return this.request("POST",e,t,r||{})}))}patch(e,t,r){return s(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,r||{})}))}put(e,t,r){return s(this,void 0,void 0,(function*(){return this.request("PUT",e,t,r||{})}))}head(e,t){return s(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,r,n){return s(this,void 0,void 0,(function*(){return this.request(e,t,r,n)}))}getJson(e,t={}){return s(this,void 0,void 0,(function*(){t[p.Accept]=this._getExistingOrDefaultHeader(t,p.Accept,f.ApplicationJson);const r=yield this.get(e,t);return this._processResponse(r,this.requestOptions)}))}postJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.post(e,n,r);return this._processResponse(o,this.requestOptions)}))}putJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.put(e,n,r);return this._processResponse(o,this.requestOptions)}))}patchJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const n=JSON.stringify(t,null,2);r[p.Accept]=this._getExistingOrDefaultHeader(r,p.Accept,f.ApplicationJson),r[p.ContentType]=this._getExistingOrDefaultHeader(r,p.ContentType,f.ApplicationJson);const o=yield this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}))}request(e,t,r,n){return s(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const o=new URL(t);let s=this._prepareRequest(e,o,n);const i=this._allowRetries&&v.includes(e)?this._maxRetries+1:1;let a,c=0;do{if(a=yield this.requestRaw(s,r),a&&a.message&&a.message.statusCode===u.Unauthorized){let e;for(const t of this.handlers)if(t.canHandleAuthentication(a)){e=t;break}return e?e.handleAuthentication(this,s,r):a}let t=this._maxRedirects;for(;a.message.statusCode&&m.includes(a.message.statusCode)&&this._allowRedirects&&t>0;){const i=a.message.headers.location;if(!i)break;const c=new URL(i);if("https:"===o.protocol&&o.protocol!==c.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 a.readBody(),c.hostname!==o.hostname)for(const e in n)"authorization"===e.toLowerCase()&&delete n[e];s=this._prepareRequest(e,c,n),a=yield this.requestRaw(s,r),t--}if(!a.message.statusCode||!g.includes(a.message.statusCode))return a;c+=1,i>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(i>c);return a}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?n(e):t?r(t):n(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function n(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;const s=e.httpModule.request(e.options,(e=>{n(void 0,new w(e))}));let i;s.on("socket",(e=>{i=e})),s.setTimeout(this._socketTimeout||18e4,(()=>{i&&i.end(),n(Error("Request timeout: "+e.options.path))})),s.on("error",(e=>{n(e)})),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{s.end()})),t.pipe(s)):s.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o="https:"===n.parsedUrl.protocol;n.httpModule=o?a:i;const s=o?443:80;if(n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):s,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(const e of this.handlers)e.prepareRequest(n.options);return n}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},x(this.requestOptions.headers),x(e||{})):x(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=x(this.requestOptions.headers)[t]),e[t]||n||r}_getAgent(e){let t;const r=c.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;const o="https:"===e.protocol;let s=100;if(this.requestOptions&&(s=this.requestOptions.maxSockets||i.globalAgent.maxSockets),r&&r.hostname){const e={maxSockets:s,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})};let n;const i="https:"===r.protocol;n=o?i?l.httpsOverHttps:l.httpsOverHttp:i?l.httpOverHttps:l.httpOverHttp,t=n(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=o?new a.Agent(e):new i.Agent(e),this._agent=t}return t||(t=o?a.globalAgent:i.globalAgent),o&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){return s(this,void 0,void 0,(function*(){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return s(this,void 0,void 0,(function*(){return new Promise(((r,n)=>s(this,void 0,void 0,(function*(){const o=e.message.statusCode||0,s={statusCode:o,result:null,headers:{}};let i,a;o===u.NotFound&&r(s);try{a=yield e.readBody(),a&&a.length>0&&(i=t&&t.deserializeDates?JSON.parse(a,((e,t)=>{if("string"==typeof t){const e=new Date(t);if(!isNaN(e.valueOf()))return e}return t})):JSON.parse(a),s.result=i),s.headers=e.message.headers}catch(e){}if(o>299){let e;e=i&&i.message?i.message:a&&a.length>0?a:`Failed request: (${o})`;const t=new y(e,o);t.result=s.result,n(t)}else r(s)}))))}))}};const x=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Rt.register("9YcLS",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;const t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;let r;e.port?r=+e.port:"http:"===e.protocol?r=80:"https:"===e.protocol&&(r=443);const n=[e.hostname.toUpperCase()];"number"==typeof r&&n.push(`${n[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(n.some((t=>t===e)))return!0;return!1}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=e=>{const t="https:"===e.protocol;if(r(e))return;const 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})),Rt.register("itiEo",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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")}))}}})),Rt.register("9TEfs",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;const{access:n,appendFile:o,writeFile:s}=ut.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";const i=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,(function*(){if(this._filePath)return this._filePath;const 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,ut.constants.R_OK|ut.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={}){const n=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),n=t?s:o;return yield n(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(ct.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",n=e.map((e=>this.wrap("li",e))).join(""),o=this.wrap(r,n);return this.addRaw(o).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if("string"==typeof e)return this.wrap("td",e);const{header:t,data:r,colspan:n,rowspan:o}=e,s=t?"th":"td",i=Object.assign(Object.assign({},n&&{colspan:n}),o&&{rowspan:o});return this.wrap(s,r,i)})).join("");return this.wrap("tr",t)})).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL()}addDetails(e,t){const r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL()}addImage(e,t,r){const{width:n,height:o}=r||{},s=Object.assign(Object.assign({},n&&{width:n}),o&&{height:o}),i=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(i).addEOL()}addHeading(e,t){const r="h"+t,n=this.wrap(["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",e);return this.addRaw(n).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=i,e.exports.summary=i})),Rt.register("13oDU",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;const s=o(lt);e.exports.toPosixPath=e=>e.replace(/[\\]/g,"/"),e.exports.toWin32Path=e=>e.replace(/[/]/g,"\\"),e.exports.toPlatformPath=e=>e.replace(/[/\\]/g,s.sep)})),Rt.register("1QGzx",((e,t)=>{e.exports=()=>process.env.GERRIT_PROJECT?"gerrit":process.env.SYSTEM_TEAMFOUNDATIONCOLLECTIONURI?"azure-pipelines":process.env.BITRISE_IO?"bitrise":process.env.BUDDY_WORKSPACE_ID?"buddy":process.env.BUILDKITE?"buildkite":process.env.CIRRUS_CI?"cirrus":process.env.GITLAB_CI?"gitlab":process.env.APPVEYOR?"appveyor":process.env.CIRCLECI?"circle-ci":process.env.SEMAPHORE?"semaphore":process.env.DRONE?"drone":process.env.DSARI?"dsari":process.env.GITHUB_ACTION?"github-actions":process.env.TDDIUM?"tddium":process.env.SCREWDRIVER?"screwdriver":process.env.STRIDER?"strider":process.env.TASKCLUSTER_ROOT_URL?"taskcluster":process.env.JENKINS_URL?"jenkins":process.env["bamboo.buildKey"]?"bamboo":process.env.GO_PIPELINE_NAME?"gocd":process.env.HUDSON_URL?"hudson":process.env.WERCKER?"wercker":process.env.NETLIFY?"netlify":process.env.NOW_GITHUB_DEPLOYMENT?"now-github":process.env.GITLAB_DEPLOYMENT?"now-gitlab":process.env.BITBUCKET_DEPLOYMENT?"now-bitbucket":process.env.BITBUCKET_BUILD_NUMBER?"bitbucket-pipelines":process.env.NOW_BUILDER?"now":process.env.VERCEL_GITHUB_DEPLOYMENT?"vercel-github":process.env.VERCEL_GITLAB_DEPLOYMENT?"vercel-gitlab":process.env.VERCEL_BITBUCKET_DEPLOYMENT?"vercel-bitbucket":process.env.VERCEL_URL?"vercel":process.env.MAGNUM?"magnum":process.env.NEVERCODE?"nevercode":process.env.RENDER?"render":process.env.SAIL_CI?"sail":process.env.SHIPPABLE?"shippable":process.env.TEAMCITY_VERSION?"teamcity":process.env.CI_NAME?process.env.CI_NAME:/\/\.heroku\/node\/bin\/node$/.test(process.env.NODE||"")?"heroku":process.env.TRAVIS?"travis-ci":process.env.CODEBUILD_SRC_DIR?"aws-codebuild":"true"===process.env.CI||"1"===process.env.CI?"custom":!!process.env.BUILDER_OUTPUT&&"builder"})),Rt.register("e40J2",(function(e,t){var r=lt.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){"use strict";function t(e,t,r){if(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var s=o[e](t);return void 0!==r[s]?r[s]:null}function n(e){(e=>void 0!==o[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var o={},s={create(e){return n(e),{pluralize(r,n){return t(e,r,n)}}},addLocale(e,t){o[e]=t},pluralize:t};void 0!==e.exports?e.exports=s:this.numerous=s}).call(e.exports)})),Rt.register("jeNZZ",((r,n)=>{function o(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 s(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function i(e,t=!0){return t?(0,lt.basename)(e):(0,lt.basename)(e,(0,lt.extname)(e))}function a(e){return(0,lt.normalize)(e).replace(RegExp((0,g.default)(lt.sep)+"$"),"")}function c(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function l(e,t){const r=(0,lt.extname)(e),n=`${t}${(0,lt.basename)(e,r)}${r}`;return(0,lt.join)((0,lt.dirname)(e),n)}function u(e,t){const r=(0,lt.extname)(e),n=`${(0,lt.basename)(e,r)}${t}${r}`;return(0,lt.join)((0,lt.dirname)(e),n)}function d(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`}function p(e){return"win32"===process.platform?e:"./"+e}function h(e){const t=(0,lt.extname)(e).length;return e.slice(0,-t)}function f(e,r){return t(v)(e,r)}function m(e,t){const r=(0,lt.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+lt.sep)||r===(0,lt.resolve)(e))}e(r.exports,"addExeExt",(()=>c)),e(r.exports,"addShExt",(()=>d)),e(r.exports,"addShRelativePrefix",(()=>p)),e(r.exports,"dirname",(()=>lt.dirname)),e(r.exports,"join",(()=>lt.join));var g=Rt("hOZXx"),v=Rt("6g92b"),y={},w={};s(w,"name",(()=>i));var x={};s(x,"normalizeTrim",(()=>a));var b={};s(b,"addExeExt",(()=>c));var E={};s(E,"addNamePrefix",(()=>l));var S={};s(S,"addNameSuffix",(()=>u));var _={};s(_,"addShExt",(()=>d));var O={};s(O,"addShRelativePrefix",(()=>p));var T={};s(T,"removeExt",(()=>h));var C={};s(C,"replaceExt",(()=>f));var R={};s(R,"isPathInside",(()=>m)),o(y,w),o(y,x),o(y,b),o(y,E),o(y,S),o(y,_),o(y,O),o(y,T),o(y,C),o(y,R)})),Rt.register("hOZXx",((t,r)=>{function n(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}e(t.exports,"default",(()=>n))})),Rt.register("6g92b",((e,t)=>{"use strict";e.exports=(e,t)=>{if("string"!=typeof e)return e;if(0===e.length)return e;var r,n=lt.basename(e,lt.extname(e))+t,o=lt.join(lt.dirname(e),n);return(r=e.slice(0,2))==="."+lt.sep||"./"===r?"."+lt.sep+o:o}})),Rt.register("7Vtia",((e,t)=>{var r=Rt("9uhqa").MAX_SAFE_COMPONENT_LENGTH,n=Rt("hwyMk");const o=(t=e.exports={}).re=[],s=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(e,c,t),i[e]=c,s[c]=t,o[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),c("FULL",`^${s[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),c("LOOSE",`^${s[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),c("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Rt.register("9uhqa",((e,t)=>{e.exports={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16}})),Rt.register("hwyMk",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Rt.register("9atXJ",((e,t)=>{function r(e){Array.isArray(e)||(e=[e]);for(const t of e){const{id:e,data:r}=t;c[e]=r}}function n(e,t,r){const n=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let n=null;if(r.some((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 o.pluralize(r.locale,t,n[e]).replace("{0}",t)}var o=Rt("78qQg"),s=Rt("ifq1q");const i=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},c={};e.exports={create(e){return e=Object.assign({},a,e||{}),{format(t,o,a){return((e,t,o)=>{if(((e,t)=>{const{autoload:n}=t;if(!c[e]){if(!s||!n)throw Error(`Missing locale: ${e}, you must load it manually before using it`);(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)}})(o.locale,{autoload:o.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");const a=((e,t)=>{let r=t-e;const n=[];return i.some((e=>{const t=e[0],o=e[1],s=Math.floor(r/o);if(r-=s*o,n.push([t,s]),0>=r)return!0})),n})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(n(t,r,o)),l.length>=o.span)break}return l.join(o.delimiter)})(t,o,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Rt.register("78qQg",((e,t)=>{e.exports=Rt("e40J2")})),Rt.register("ifq1q",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),Rt.register("52wAv",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function n(e,t,n){ut.stat(e,((o,s)=>{n(o,!o&&r(s,e,t))}))}e.exports=n,n.sync=(e,t)=>r(ut.statSync(e),e,t)})),Rt.register("jwcoa",((e,t)=>{function r(e,t,r){ut.stat(e,((e,o)=>{r(e,!e&&n(o,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===i||r&a&&n===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>n(ut.statSync(e),t)})),Rt.register("4W4Te",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")})),Rt.register("bYrg8",((e,t)=>{"use strict";var r=/[|\\{}()[\]^$+*?.]/g;e.exports=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(r,"\\$&")}})),Rt.register("8Xzrp",((e,t)=>{"use strict";const r=(0,vt.promisify)(ut.access);e.exports=async e=>{try{return await r(e),!0}catch(e){return!1}},e.exports.sync=e=>{try{return ut.accessSync(e),!0}catch(e){return!1}}})),Rt.register("cczJY",(function(e,t){"use strict";function r(e){return u(this,void 0,void 0,(function*(){if(h.IS_WINDOWS){if(/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{const t=h.getCmdPath();(yield h.isDirectory(e,!0))?yield f(t+' /s /c "rd /s /q "%inputPath%""',{env:{inputPath:e}}):yield f(t+' /s /c "del /f /a "%inputPath%""',{env:{inputPath:e}})}catch(e){if("ENOENT"!==e.code)throw e}try{yield h.unlink(e)}catch(e){if("ENOENT"!==e.code)throw e}}else{let t=!1;try{t=yield h.isDirectory(e)}catch(e){if("ENOENT"!==e.code)throw e;return}t?yield m("rm",["-rf",""+e]):yield h.unlink(e)}}))}function n(e){return u(this,void 0,void 0,(function*(){gt.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function o(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(p.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(p.delimiter))e&&r.push(e);const n=[];for(const o of r){const r=yield h.tryGetExecutablePath(p.join(o,e),t);r&&n.push(r)}return n}))}function s(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield h.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield h.lstat(a)).isDirectory()?yield s(a,c,r,o):yield i(a,c,o)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function i(e,t,r){return u(this,void 0,void 0,(function*(){if((yield h.lstat(e)).isSymbolicLink()){try{yield h.lstat(t),yield h.unlink(t)}catch(e){"EPERM"===e.code&&(yield h.chmod(t,"0666"),yield h.unlink(t))}const r=yield h.readlink(e);yield h.symlink(r,t,h.IS_WINDOWS?"junction":null)}else(yield h.exists(t))&&!r||(yield h.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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;const d=l(yt),p=l(lt),h=l(Rt("6x28s")),f=vt.promisify(d.exec),m=vt.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,recursive:o,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!o)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield s(e,l,0,n)}else{if(""===p.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,n)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let n=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),n=yield h.exists(t)),n){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield n(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(h.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}const n=yield o(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=o})),Rt.register("6x28s",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return s(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((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.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=i(ut),l=i(lt);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.exists=function(t){return a(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 a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))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,n){return a(this,void 0,void 0,(function*(){let o;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const s=t;for(const i of n){t=s+i,o=void 0;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(n===o.toUpperCase()){t=l.join(r,o);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(o))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Rt.register("3IR8t",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=o(Rt("cTdPL"));var a=Rt("lXEOe");e.exports._findMatch=function(t,r,n,o){return s(this,void 0,void 0,(function*(){const s=ct.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),i.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${s}`);let r=t.arch===o&&t.platform===s;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||i.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=ct.platform();let r="";if("darwin"===t)r=""+yt.execSync("sw_vers -productVersion");else if("linux"===t){const t=e.exports._readLinuxVersionFile();if(t){const e=t.split("\n");for(const t of e){const e=t.split("=");if(2===e.length&&("VERSION_ID"===e[0].trim()||"DISTRIB_RELEASE"===e[0].trim())){r=e[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return r},e.exports._readLinuxVersionFile=()=>{const e="/etc/lsb-release",t="/etc/os-release";let r="";return ut.existsSync(e)?r=""+ut.readFileSync(e):ut.existsSync(t)&&(r=""+ut.readFileSync(t)),r}})),Rt.register("cTdPL",((e,t)=>{var r=Rt("7Vtia"),n=Rt("9uhqa"),o=Rt("bCyR3"),s=Rt("2Wpz6"),i=Rt("8DumP"),a=Rt("1wrDf"),c=Rt("adwKS"),l=Rt("hKpp7"),u=Rt("3AYNE"),d=Rt("iwVHA"),p=Rt("9kVgg"),h=Rt("51Be6"),f=Rt("7r3l7"),m=Rt("1eEUU"),g=Rt("jVISN"),v=Rt("ePyta"),y=Rt("7nRdz"),w=Rt("enXHc"),x=Rt("9y79V"),b=Rt("bmjaY"),E=Rt("chPew"),S=Rt("5aJun"),_=Rt("bsY6E"),O=Rt("jVRwJ"),T=Rt("9Kys9"),C=Rt("fhH0P"),R=Rt("9YDsN"),P=Rt("hktyb"),$=Rt("91aii"),I=Rt("3njbl"),A=Rt("f6D2c"),N=Rt("9QfVs"),k=Rt("cReYU"),L=Rt("cIhxo"),j=Rt("gIL2L"),D=Rt("gUhUf"),U=Rt("k64sy"),M=Rt("lgOoT"),F=Rt("k0m8E"),G=Rt("lUXp0"),B=Rt("2JpyI");e.exports={parse:i,valid:a,clean:c,inc:l,diff:u,major:d,minor:p,patch:h,prerelease:f,compare:m,rcompare:g,compareLoose:v,compareBuild:y,sort:w,rsort:x,gt:b,lt:E,eq:S,neq:_,gte:O,lte:T,cmp:C,coerce:R,Comparator:P,Range:$,satisfies:I,toComparators:A,maxSatisfying:N,minSatisfying:k,minVersion:L,validRange:j,outside:D,gtr:U,ltr:M,intersects:F,simplifyRange:G,subset:B,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,compareIdentifiers:s.compareIdentifiers,rcompareIdentifiers:s.rcompareIdentifiers}})),Rt.register("bCyR3",(function(e,t){var r=Rt("hwyMk"),n=Rt("9uhqa"),o=n.MAX_LENGTH,s=n.MAX_SAFE_INTEGER,i=Rt("7Vtia"),a=i.re,c=i.t,l=Rt("k5Nz9"),u=Rt("2Wpz6").compareIdentifiers;class d{constructor(e,t){if(t=l(t),e instanceof d){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||0>this.major)throw new TypeError("Invalid major version");if(this.minor>s||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>s||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&s>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof d)){if("string"==typeof e&&e===this.version)return 0;e=new d(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof d||(e=new d(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof d||(e=new d(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}inc(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{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(0===u(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}}e.exports=d})),Rt.register("k5Nz9",((e,t)=>{const r=["includePrerelease","loose","rtl"];e.exports=e=>e?"object"!=typeof e?{loose:!0}:r.filter((t=>e[t])).reduce(((e,t)=>(e[t]=!0,e)),{}):{}})),Rt.register("2Wpz6",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),o=r.test(t);return n&&o&&(e=+e,t=+t),e===t?0:n&&!o?-1:o&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Rt.register("8DumP",((e,t)=>{var r=Rt("9uhqa").MAX_LENGTH,n=Rt("7Vtia"),o=n.re,s=n.t,i=Rt("bCyR3"),a=Rt("k5Nz9");e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Rt.register("1wrDf",((e,t)=>{var r=Rt("8DumP");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Rt.register("adwKS",((e,t)=>{var r=Rt("8DumP");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Rt.register("hKpp7",((e,t)=>{var r=Rt("bCyR3");e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,o).version}catch(e){return null}}})),Rt.register("3AYNE",((e,t)=>{var r=Rt("8DumP"),n=Rt("5aJun");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),o=r(t),s=n.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return i+e;return a}}})),Rt.register("5aJun",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>0===r(e,t,n)})),Rt.register("1eEUU",((e,t)=>{var r=Rt("bCyR3");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Rt.register("iwVHA",((e,t)=>{var r=Rt("bCyR3");e.exports=(e,t)=>new r(e,t).major})),Rt.register("9kVgg",((e,t)=>{var r=Rt("bCyR3");e.exports=(e,t)=>new r(e,t).minor})),Rt.register("51Be6",((e,t)=>{var r=Rt("bCyR3");e.exports=(e,t)=>new r(e,t).patch})),Rt.register("7r3l7",((e,t)=>{var r=Rt("8DumP");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Rt.register("jVISN",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>r(t,e,n)})),Rt.register("ePyta",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t)=>r(e,t,!0)})),Rt.register("7nRdz",((e,t)=>{var r=Rt("bCyR3");e.exports=(e,t,n)=>{const o=new r(e,n),s=new r(t,n);return o.compare(s)||o.compareBuild(s)}})),Rt.register("enXHc",((e,t)=>{var r=Rt("7nRdz");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Rt.register("9y79V",((e,t)=>{var r=Rt("7nRdz");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Rt.register("bmjaY",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>r(e,t,n)>0})),Rt.register("chPew",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>0>r(e,t,n)})),Rt.register("bsY6E",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>0!==r(e,t,n)})),Rt.register("jVRwJ",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>r(e,t,n)>=0})),Rt.register("9Kys9",((e,t)=>{var r=Rt("1eEUU");e.exports=(e,t,n)=>0>=r(e,t,n)})),Rt.register("fhH0P",((e,t)=>{var r=Rt("5aJun"),n=Rt("bsY6E"),o=Rt("bmjaY"),s=Rt("jVRwJ"),i=Rt("chPew"),a=Rt("9Kys9");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return o(e,c,l);case">=":return s(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Rt.register("9YDsN",((e,t)=>{var r=Rt("bCyR3"),n=Rt("8DumP"),o=Rt("7Vtia"),s=o.re,i=o.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else o=e.match(s[i.COERCE]);return null===o?null:n(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),Rt.register("hktyb",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("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 c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new d(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new d(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||s&&i||a||l}}e.exports=n;var o=Rt("k5Nz9"),s=Rt("7Vtia"),i=s.re,a=s.t,c=Rt("fhH0P"),l=Rt("hwyMk"),u=Rt("bCyR3"),d=Rt("91aii")})),Rt.register("91aii",(function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)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,this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(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){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],C(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),i("comparator trim",e);let a=(e=(e=(e=e.replace(l[u.TILDETRIM],p)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ")).split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));o&&(a=a.filter((e=>(i("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),i("range list",a);const c=new Map,m=a.map((e=>new s(e,this.options)));for(const e of m){if(f(e))return[e];c.set(e.value,e)}c.size>1&&c.has("")&&c.delete("");const g=[...c.values()];return n.set(t,g),g}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>g(r,t)&&e.set.some((e=>g(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}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;this.set.length>t;t++)if(R(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Rt("gQrgg"))({max:1e3});var o=Rt("k5Nz9"),s=Rt("hktyb"),i=Rt("hwyMk"),a=Rt("bCyR3"),c=Rt("7Vtia"),l=c.re,u=c.t,d=c.comparatorTrimReplace,p=c.tildeTrimReplace,h=c.caretTrimReplace;const f=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let r=!0;const n=e.slice();let o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},v=(e,t)=>(i("comp",e,t),e=b(e,t),i("caret",e),e=w(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,o,s)=>{let a;return i("tilde",e,t,r,n,o,s),y(r)?a="":y(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${r}.${n}.${o}-${s} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,i("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,o,s,a)=>{let c;return i("caret",e,t,n,o,s,a),y(n)?c="":y(o)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(s)?c="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===n?"0"===o?`>=${n}.${o}.${s}-${a} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}-${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s}-${a} <${+n+1}.0.0-0`):(i("no pr"),c="0"===n?"0"===o?`>=${n}.${o}.${s}${r} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s} <${+n+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>_(e,t))).join(" ")),_=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,o,s,a,c)=>{i("xRange",e,r,n,o,s,a,c);const l=y(o),u=l||y(s),d=u||y(a);return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(u&&(s=0),a=0,">"===n?(n=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===n&&(n="<",u?o=+o+1:s=+s+1),"<"===n&&(c="-0"),r=`${n+o}.${s}.${a}${c}`):u?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:d&&(r=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),T=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,n,o,s,i,a,c,l,u,d,p,h)=>`${r=y(n)?"":y(o)?`>=${n}.0.0${e?"-0":""}`:y(s)?`>=${n}.${o}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(d)?`<${l}.${+u+1}.0-0`:p?`<=${l}.${u}.${d}-${p}`:e?`<${l}.${u}.${+d+1}-0`:"<="+c}`.trim(),R=(e,t,r)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;e.length>r;r++)if(i(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Rt.register("gQrgg",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,n="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new n.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),o=new Set,s=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},i=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:n}=f,{get:o}=Object.getOwnPropertyDescriptor(n,e);l(r,e+" method",`cache.${t}()`,o)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!o.has(e),l=(e,t,r,n)=>{o.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,n)},u=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),d=e=>u(e)?e>256?e>65536?e>4294967296?e>Number.MAX_SAFE_INTEGER?null:p:Uint32Array:Uint16Array:Uint8Array:null;class p extends Array{constructor(e){super(e),this.fill(0)}}class h{constructor(e){if(0===e)return[];const t=d(e);this.heap=new t(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}}class f{constructor(e={}){const{max:t=0,ttl:r,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:l,updateAgeOnHas:p,allowStale:m,dispose:g,disposeAfter:v,noDisposeOnSet:y,noUpdateTTL:w,maxSize:x=0,sizeCalculation:b,fetchMethod:E}=e,{length:S,maxAge:_,stale:O}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const T=t?d(t):Array;if(!T)throw Error("invalid max value: "+t);if(this.max=t,this.maxSize=x,this.sizeCalculation=b||S,this.sizeCalculation){if(!this.maxSize)throw new TypeError("cannot set sizeCalculation without setting maxSize");if("function"!=typeof this.sizeCalculation)throw new TypeError("sizeCalculation set to non-function")}if(this.fetchMethod=E||null,this.fetchMethod&&"function"!=typeof this.fetchMethod)throw new TypeError("fetchMethod must be a function if specified");if(this.keyMap=new Map,this.keyList=Array(t).fill(null),this.valList=Array(t).fill(null),this.next=new T(t),this.prev=new T(t),this.head=0,this.tail=0,this.free=new h(t),this.initialFill=1,this.size=0,"function"==typeof g&&(this.dispose=g),"function"==typeof v?(this.disposeAfter=v,this.disposed=[]):(this.disposeAfter=null,this.disposed=null),this.noDisposeOnSet=!!y,this.noUpdateTTL=!!w,0!==this.maxSize){if(!u(this.maxSize))throw new TypeError("maxSize must be a positive integer if specified");this.initializeSizeTracking()}if(this.allowStale=!!m||!!O,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!p,this.ttlResolution=u(n)||0===n?n:1,this.ttlAutopurge=!!i,this.ttl=r||_||0,this.ttl){if(!u(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.initializeTTLTracking()}if(0===this.max&&0===this.ttl&&0===this.maxSize)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.max&&!this.maxSize){const e="LRU_CACHE_UNBOUNDED";c(e)&&(o.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}O&&s("stale","allowStale"),_&&s("maxAge","ttl"),S&&s("length","sizeCalculation")}getRemainingTTL(e){return this.has(e,{updateAgeOnHas:!1})?1/0:0}initializeTTLTracking(){this.ttls=new p(this.max),this.starts=new p(this.max),this.setItemTTL=(e,t)=>{if(this.starts[e]=0!==t?r.now():0,this.ttls[e]=t,0!==t&&this.ttlAutopurge){const r=setTimeout((()=>{this.isStale(e)&&this.delete(this.keyList[e])}),t+1);r.unref&&r.unref()}},this.updateItemAge=e=>{this.starts[e]=0!==this.ttls[e]?r.now():0};let e=0;const t=()=>{const t=r.now();if(this.ttlResolution>0){e=t;const r=setTimeout((()=>e=0),this.ttlResolution);r.unref&&r.unref()}return t};this.getRemainingTTL=r=>{const n=this.keyMap.get(r);return void 0===n?0:0===this.ttls[n]||0===this.starts[n]?1/0:this.starts[n]+this.ttls[n]-(e||t())},this.isStale=r=>0!==this.ttls[r]&&0!==this.starts[r]&&(e||t())-this.starts[r]>this.ttls[r]}updateItemAge(e){}setItemTTL(e,t){}isStale(e){return!1}initializeSizeTracking(){this.calculatedSize=0,this.sizes=new p(this.max),this.removeItemSize=e=>this.calculatedSize-=this.sizes[e],this.requireSize=(e,t,r,n)=>{if(!u(r)){if(!n)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof n)throw new TypeError("sizeCalculation must be a function");if(r=n(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,n)=>{this.sizes[e]=n;const o=this.maxSize-this.sizes[e];for(;this.calculatedSize>o;)this.evict(!0);this.calculatedSize+=this.sizes[e]},this.delete=e=>{if(0!==this.size){const t=this.keyMap.get(e);void 0!==t&&(this.calculatedSize-=this.sizes[t])}return f.prototype.delete.call(this,e)}}removeItemSize(e){}addItemSize(e,t,r,n){}requireSize(e,t,r,n){if(r||n)throw new TypeError("cannot set size without setting maxSize on cache")}*indexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.tail;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.head);)t=this.prev[t]}*rindexes({allowStale:e=this.allowStale}={}){if(this.size)for(let t=this.head;this.isValidIndex(t)&&(!e&&this.isStale(t)||(yield t),t!==this.tail);)t=this.next[t]}isValidIndex(e){return this.keyMap.get(this.keyList[e])===e}*entries(){for(const e of this.indexes())yield[this.keyList[e],this.valList[e]]}*rentries(){for(const e of this.rindexes())yield[this.keyList[e],this.valList[e]]}*keys(){for(const e of this.indexes())yield this.keyList[e]}*rkeys(){for(const e of this.rindexes())yield this.keyList[e]}*values(){for(const e of this.indexes())yield this.valList[e]}*rvalues(){for(const e of this.rindexes())yield this.valList[e]}[Symbol.iterator](){return this.entries()}find(e,t={}){for(const r of this.indexes())if(e(this.valList[r],this.keyList[r],this))return this.get(this.keyList[r],t)}forEach(e,t=this){for(const r of this.indexes())e.call(t,this.valList[r],this.keyList[r],this)}rforEach(e,t=this){for(const r of this.rindexes())e.call(t,this.valList[r],this.keyList[r],this)}get prune(){return i("prune","purgeStale"),this.purgeStale}purgeStale(){let e=!1;for(const t of this.rindexes({allowStale:!0}))this.isStale(t)&&(this.delete(this.keyList[t]),e=!0);return e}dump(){const e=[];for(const t of this.indexes()){const r=this.keyList[t],n={value:this.valList[t]};this.ttls&&(n.ttl=this.ttls[t]),this.sizes&&(n.size=this.sizes[t]),e.unshift([r,n])}return e}load(e){this.clear();for(const[t,r]of e)this.set(t,r.value,r)}dispose(e,t,r){}set(e,t,{ttl:r=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:o=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:i=this.noUpdateTTL}={}){o=this.requireSize(e,t,o,s);let a=0===this.size?void 0:this.keyMap.get(e);if(void 0===a)a=this.newIndex(),this.keyList[a]=e,this.valList[a]=t,this.keyMap.set(e,a),this.next[this.tail]=a,this.prev[a]=this.tail,this.tail=a,this.size++,this.addItemSize(a,t,e,o),i=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():n||(this.dispose(r,e,"set"),this.disposeAfter&&this.disposed.push([r,e,"set"])),this.removeItemSize(a),this.valList[a]=t,this.addItemSize(a,t,e,o)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),i||this.setItemTTL(a,r),this.disposeAfter)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return this}newIndex(){return 0===this.size?this.tail:this.size===this.max&&0!==this.max?this.evict(!1):0!==this.free.length?this.free.pop():this.initialFill++}pop(){if(this.size){const e=this.valList[this.head];return this.evict(!0),e}}evict(e){const t=this.head,r=this.keyList[t],n=this.valList[t];return this.isBackgroundFetch(n)?n.__abortController.abort():(this.dispose(n,r,"evict"),this.disposeAfter&&this.disposed.push([n,r,"evict"])),this.removeItemSize(t),e&&(this.keyList[t]=null,this.valList[t]=null,this.free.push(t)),this.head=this.next[t],this.keyMap.delete(r),this.size--,t}has(e,{updateAgeOnHas:t=this.updateAgeOnHas}={}){const r=this.keyMap.get(e);return void 0!==r&&!this.isStale(r)&&(t&&this.updateItemAge(r),!0)}peek(e,{allowStale:t=this.allowStale}={}){const r=this.keyMap.get(e);if(void 0!==r&&(t||!this.isStale(r)))return this.valList[r]}backgroundFetch(e,t,r){const o=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(o))return o;const s=new n,i={signal:s.signal,options:r},a=Promise.resolve(this.fetchMethod(e,o,i)).then((t=>(s.signal.aborted||this.set(e,t,i.options),t)));return a.__abortController=s,a.__staleWhileFetching=o,void 0===t?(this.set(e,a,i.options),t=this.keyMap.get(e)):this.valList[t]=a,a}isBackgroundFetch(e){return e&&"object"==typeof e&&"function"==typeof e.then&&{}.hasOwnProperty.call(e,"__staleWhileFetching")}async fetch(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,ttl:n=this.ttl,noDisposeOnSet:o=this.noDisposeOnSet,size:s=0,sizeCalculation:i=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:n,noDisposeOnSet:o,size:s,sizeCalculation:i,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const n=this.valList[l];if(this.isBackgroundFetch(n))return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),n;const o=this.backgroundFetch(e,l,c);return t&&void 0!==o.__staleWhileFetching?o.__staleWhileFetching:o}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const n=this.keyMap.get(e);if(void 0!==n){const o=this.valList[n],s=this.isBackgroundFetch(o);if(this.isStale(n))return s?t?o.__staleWhileFetching:void 0:(this.delete(e),t?o:void 0);if(s)return;return this.moveToTail(n),r&&this.updateItemAge(n),o}}connect(e,t){this.prev[t]=e,this.next[e]=t}moveToTail(e){e!==this.tail&&(e===this.head?this.head=this.next[e]:this.connect(this.prev[e],this.next[e]),this.connect(this.tail,e),this.tail=e)}get del(){return i("del","delete"),this.delete}delete(e){let t=!1;if(0!==this.size){const r=this.keyMap.get(e);if(void 0!==r)if(t=!0,1===this.size)this.clear();else{this.removeItemSize(r);const t=this.valList[r];this.isBackgroundFetch(t)?t.__abortController.abort():(this.dispose(t,e,"delete"),this.disposeAfter&&this.disposed.push([t,e,"delete"])),this.keyMap.delete(e),this.keyList[r]=null,this.valList[r]=null,r===this.tail?this.tail=this.prev[r]:r===this.head?this.head=this.next[r]:(this.next[this.prev[r]]=this.next[r],this.prev[this.next[r]]=this.prev[r]),this.size--,this.free.push(r)}}if(this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift());return t}clear(){for(const e of this.rindexes({allowStale:!0})){const t=this.valList[e];if(this.isBackgroundFetch(t))t.__abortController.abort();else{const r=this.keyList[e];this.dispose(t,r,"delete"),this.disposeAfter&&this.disposed.push([t,r,"delete"])}}if(this.keyMap.clear(),this.valList.fill(null),this.keyList.fill(null),this.ttls&&(this.ttls.fill(0),this.starts.fill(0)),this.sizes&&this.sizes.fill(0),this.head=0,this.tail=0,this.initialFill=1,this.free.length=0,this.calculatedSize=0,this.size=0,this.disposed)for(;this.disposed.length;)this.disposeAfter(...this.disposed.shift())}get reset(){return i("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_"+e;if(c(r)){const{prototype:t}=f,{get:n}=Object.getOwnPropertyDescriptor(t,e);l(r,e+" property","cache.size",n)}})("length"),this.size}}e.exports=f})),Rt.register("3njbl",((e,t)=>{var r=Rt("91aii");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Rt.register("f6D2c",((e,t)=>{var r=Rt("91aii");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Rt.register("9QfVs",((e,t)=>{var r=Rt("bCyR3"),n=Rt("91aii");e.exports=(e,t,o)=>{let s=null,i=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,o)))})),s}})),Rt.register("cReYU",((e,t)=>{var r=Rt("bCyR3"),n=Rt("91aii");e.exports=(e,t,o)=>{let s=null,i=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,o)))})),s}})),Rt.register("cIhxo",((e,t)=>{var r=Rt("bCyR3"),n=Rt("91aii"),o=Rt("bmjaY");e.exports=(e,t)=>{e=new n(e,t);let s=new r("0.0.0");if(e.test(s))return s;if(s=new r("0.0.0-0"),e.test(s))return s;s=null;for(let t=0;e.set.length>t;++t){let n=null;e.set[t].forEach((e=>{const 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">=":n&&!o(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||s&&!o(s,n)||(s=n)}return s&&e.test(s)?s:null}})),Rt.register("gIL2L",((e,t)=>{var r=Rt("91aii");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Rt.register("gUhUf",((e,t)=>{var r=Rt("bCyR3"),n=Rt("hktyb");const{ANY:o}=n;var s=Rt("91aii"),i=Rt("3njbl"),a=Rt("bmjaY"),c=Rt("chPew"),l=Rt("9Kys9"),u=Rt("jVRwJ");e.exports=(e,t,d,p)=>{let h,f,m,g,v;switch(e=new r(e,p),t=new s(t,p),d){case">":h=a,f=l,m=c,g=">",v=">=";break;case"<":h=c,f=u,m=a,g="<",v="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(i(e,t,p))return!1;for(let r=0;t.set.length>r;++r){let s=null,i=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new n(">=0.0.0")),s=s||e,i=i||e,h(e.semver,s.semver,p)?s=e:m(e.semver,i.semver,p)&&(i=e)})),s.operator===g||s.operator===v)return!1;if((!i.operator||i.operator===g)&&f(e,i.semver))return!1;if(i.operator===v&&m(e,i.semver))return!1}return!0}})),Rt.register("k64sy",((e,t)=>{var r=Rt("gUhUf");e.exports=(e,t,n)=>r(e,t,">",n)})),Rt.register("lgOoT",((e,t)=>{var r=Rt("gUhUf");e.exports=(e,t,n)=>r(e,t,"<",n)})),Rt.register("k0m8E",((e,t)=>{var r=Rt("91aii");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Rt.register("lUXp0",((e,t)=>{var r=Rt("3njbl"),n=Rt("1eEUU");e.exports=(e,t,o)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>n(e,t,o)));for(const e of c)r(e,t,o)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Rt.register("2JpyI",((e,t)=>{var r=Rt("91aii"),n=Rt("hktyb");const{ANY:o}=n;var s=Rt("3njbl"),i=Rt("1eEUU");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,d,p,h,f,m,g;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?d=l(d,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&d){if(p=i(u.semver,d.semver,r),p>0)return null;if(0===p&&(">="!==u.operator||"<="!==d.operator))return null}for(const e of a){if(u&&!s(e,u+"",r))return null;if(d&&!s(e,d+"",r))return null;for(const n of t)if(!s(e,n+"",r))return!1;return!0}let v=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;v&&1===v.prerelease.length&&"<"===d.operator&&0===v.prerelease[0]&&(v=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!s(u.semver,e+"",r))return!1;if(d)if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),"<"===e.operator||"<="===e.operator){if(f=l(d,e,r),f===e&&f!==d)return!1}else if("<="===d.operator&&!s(d.semver,e+"",r))return!1;if(!e.operator&&(d||u)&&0!==p)return!1}return!(u&&m&&!d&&0!==p||d&&g&&!u&&0!==p||y||v)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return 0>n?e:n>0||"<"===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 o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}})),Rt.register("8sanl",((e,t)=>{var r=Rt("jBVqO"),n=Rt("5H1AS");e.exports=(e,t,o)=>{var s=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[s+a]=i[a];return t||n(i)}})),Rt.register("jBVqO",((e,t)=>{e.exports=()=>dt.randomBytes(16)})),Rt.register("5H1AS",((e,t)=>{for(var r=[],n=0;256>n;++n)r[n]=(n+256).toString(16).substr(1);e.exports=(e,t)=>{var n=t||0;return""+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+"-"+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]+r[e[n++]]}})),Rt.register("2bg3w",(function(e,t){"use strict";function r(e,t,r){return i(this,void 0,void 0,(function*(){const n=a.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=n[0];return t=n.slice(1).concat(t||[]),new a.ToolRunner(o,t,r).exec()}))}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t}),i=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=s(Rt("dW3zn"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,n){var o,s;return i(this,void 0,void 0,(function*(){let i="",a="";const c=new wt.StringDecoder("utf8"),l=new wt.StringDecoder("utf8"),u=null===(o=null==n?void 0:n.listeners)||void 0===o?void 0:o.stdout,d=null===(s=null==n?void 0:n.listeners)||void 0===s?void 0:s.stderr,p=Object.assign(Object.assign({},null==n?void 0:n.listeners),{stdout(e){i+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},n),{listeners:p}));return i+=c.end(),a+=l.end(),{exitCode:h,stdout:i,stderr:a}}))}})),Rt.register("dW3zn",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=o(ct),a=o(mt),c=o(yt),l=o(lt),u=o(Rt("cczJY")),d=o(Rt("6x28s")),p="win32"===process.platform;e.exports.ToolRunner=class 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){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let o=t?"":"[command]";if(p)if(this._isCmdFile()){o+=r;for(const e of n)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of n)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of n)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of n)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let n=t+""+e,o=n.indexOf(i.EOL);for(;o>-1;)r(n.substring(0,o)),n=n.substring(o+i.EOL.length),o=n.indexOf(i.EOL);return n}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return p&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(p&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',o=!0;for(let t=e.length;t>0;t--)n+=e[t-1],o&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(o=!0,n+='"'):o=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',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+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return s(this,void 0,void 0,(function*(){return!d.isRooted(this.toolPath)&&(this.toolPath.includes("/")||p&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const n=new h(r,this.toolPath);if(n.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield d.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),s=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let a="";s.stdout&&s.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!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 l="";if(s.stderr&&s.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),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),s.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),s.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),s.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),l.length>0&&this.emit("errline",l),s.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!s.stdin)throw Error("child process missing stdin");s.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}const r=[];let n=!1,o=!1,s="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&n?o=!0:" "!==a||n?t(a):s.length>0&&(r.push(s),s=""):o?t(a):n=!n}return s.length>0&&r.push(s.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=xt.setTimeout(h.HandleTimeout,this.delay,this)))}_debug(e){this.emit("debug",e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode)}static HandleTimeout(e){e.done||(!e.processClosed&&e.processExited&&e._debug(`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`),e._setResult())}}})),Rt.register("8vv5p",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.7717b49b.js")).then((()=>Rt("ijScl")))}));var Pt=Rt("lXEOe"),$t=Rt("dG9nM"),It=Rt("bouSm"),At=Rt("78qQg"),Nt={};Rt("e40J2").addLocale("en",(e=>{var t=Math.floor(Math.abs(e)),r=(""+e).replace(/^[^.]*\.?/,"").length;return"string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r?"one":"other"}));var kt,Lt=Rt("jeNZZ"),jt=Rt("1wrDf"),Dt={};Dt=Rt("9atXJ"),kt={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"}}}};var Ut={};const Mt=ct.homedir();Ut=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Mt?e.replace(/^~(?=$|\/|\\)/,Mt):e};var Ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==Ot?Ot:{},Gt={},Bt={},Ht=Ft.parcelRequireb51e;null==Ht&&((Ht=e=>{if(e in Gt)return Gt[e].exports;if(e in Bt){var t=Bt[e];delete Bt[e];var r={id:e,exports:{}};return Gt[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{Bt[e]=t},Ft.parcelRequireb51e=Ht),Ht.register("djkmR",((e,t)=>{function r(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&((e,t)=>{var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;r.length>n;n++){var o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function n(e,t,n){(0,ut.stat)(e,((o,s)=>{n(o,!o&&r(s,e,t))}))}e.exports=n,n.sync=(e,t)=>r((0,ut.statSync)(e),e,t)})),Ht.register("e1CjR",((e,t)=>{function r(e,t,r){(0,ut.stat)(e,((e,o)=>{r(e,!e&&n(o,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===i||r&a&&n===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>n((0,ut.statSync)(e),t)})),Ht.register("4c98W",((e,t)=>{e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}));var zt={};s(zt,"hasSudo",(()=>p)),s(zt,"isRoot",(()=>h)),s(zt,"isSudo",(()=>f)),s(zt,"prependSudo",(()=>m)),s(zt,"execRootSync",(()=>g)),s(zt,"execRoot",(()=>v));var qt={};const Vt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Xt=Vt?";":":";var Wt,Yt={};Wt="win32"===process.platform||Ft.TESTING_WINDOWS?Ht("djkmR"):Ht("e1CjR"),Yt=i,i.sync=(e,t)=>{try{return Wt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Kt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Jt=(e,t)=>{const r=t.colon||Xt,n=e.match(/\//)||Vt&&e.match(/\\/)?[""]:[...Vt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Vt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Vt?o.split(r):[""];return Vt&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:o}},Zt=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:s}=Jt(e,t),i=[],a=r=>new Promise(((o,s)=>{if(r===n.length)return t.all&&i.length?o(i):s(Kt(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=(0,lt.join)(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const d=o[n];Yt(e+d,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return l(e+d);i.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};qt=Zt,Zt.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=Jt(e,t),s=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=(0,lt.join)(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let r=0;n.length>r;r++){const i=u+n[r];try{if(Yt.sync(i,{pathExt:o})){if(!t.all)return i;s.push(i)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Kt(e)};var Qt,er={},tr={},rr={},nr={};const or=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var sr,ir;(nr=or).default=or,Qt=e=>a(e)||a(e,!0);const ar=/([()\][%!^"`<>&|;, *?])/g;var cr,lr,ur;sr=e=>e.replace(ar,"^$1"),ir=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(ar,"^$1"),t&&(e=e.replace(ar,"^$1")),e),lr=/^#!(.*)/,cr=(e="")=>{const t=e.match(lr);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o},ur=e=>{const t=Buffer.alloc(150);let r;try{r=(0,ut.openSync)(e,"r"),(0,ut.readSync)(r,t,0,150,0),(0,ut.closeSync)(r)}catch(e){}return cr(""+t)};const dr="win32"===process.platform,pr=/\.(?:com|exe)$/i,hr=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;rr=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!dr)return e;const t=(e=>{e.file=Qt(e);const t=e.file&&ur(e.file);return t?(e.args.unshift(e.file),e.command=t,Qt(e)):e.file})(e),r=!pr.test(t);if(e.options.forceShell||r){const r=hr.test(t);e.command=(0,lt.normalize)(e.command),e.command=sr(e.command),e.args=e.args.map((e=>ir(e,r)));const 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)};var fr={};const mr="win32"===process.platform;var gr;fr={hookChildProcess(e,t){if(!mr)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=l(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:l,verifyENOENTSync:(e,t)=>mr&&1===e&&!t.file?c(t.original,"spawnSync"):null,notFoundError:c},(tr=u).spawn=u,tr.sync=(e,t,r)=>{const n=rr(e,t,r),o=(0,yt.spawnSync)(n.command,n.args,n.options);return o.error=o.error||fr.verifyENOENTSync(o.status,n),o},tr._parse=rr,tr._enoent=fr,gr=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var vr={};const yr=e=>{let t;e={cwd:process.cwd(),path:process.env[nr()],execPath:process.execPath,...e};let r=(0,lt.resolve)(e.cwd);const n=[];for(;t!==r;)n.push((0,lt.join)(r,"node_modules/.bin")),t=r,r=(0,lt.resolve)(r,"..");const o=(0,lt.resolve)(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(lt.delimiter)};(vr=yr).default=yr,vr.env=e=>{const t={...(e={env:process.env,...e}).env},r=nr({env:t});return e.path=t[r],t[r]=vr(e),t};var wr={},xr={};const br=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(xr=br).default=br;const Er=new WeakMap,Sr=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const o=e.displayName||e.name||"<anonymous>",s=function(...i){if(Er.set(s,++n),1===n)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return xr(s,e),Er.set(s,n),s};(wr=Sr).default=Sr,wr.callCount=e=>{if(!Er.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Er.get(e)};var _r,Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.signalsByNumber=Or.signalsByName=void 0;var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.getSignals=void 0;var Cr={};Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.SIGNALS=void 0,Cr.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.SIGRTMAX=Rr.getRealtimeSignals=void 0,Rr.getRealtimeSignals=()=>Array.from({length:Ir-$r+1},Pr);const Pr=(e,t)=>({name:"SIGRT"+(t+1),number:$r+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),$r=34,Ir=64;Rr.SIGRTMAX=Ir,Tr.getSignals=()=>{const e=(0,Rr.getRealtimeSignals)();return[...Cr.SIGNALS,...e].map(Ar)};const Ar=({name:e,number:t,description:r,action:n,forced:o=!1,standard:s})=>{const{signals:{[e]:i}}=ct.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:n,forced:o,standard:s}},Nr=(0,Tr.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a}})),{});Or.signalsByName=Nr;const kr=(()=>{const e=(0,Tr.getSignals)(),t=Array.from({length:Rr.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>ct.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:o,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:s,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Or.signalsByNumber=kr;var Lr=Or.signalsByName;_r=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:s,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(o=null===o?void 0:o)?void 0:Lr[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${o})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:o,signalDescription:p,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${i}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=i,n.escapedCommand=a,n.exitCode=s,n.signal=o,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var jr={};const Dr=["stdin","stdout","stderr"],Ur=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Dr.map((t=>e[t]));if((e=>Dr.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Dr.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Dr.length)},((e,r)=>t[r]))};(jr=Ur).node=e=>{const t=Ur(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Mr,Fr={},Gr=Ft.process;const Br=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(Br(Gr)){var Hr,zr=gt,qr=Ht("4c98W"),Vr=/^win/i.test(Gr.platform),Xr=mt;"function"!=typeof Xr&&(Xr=Xr.EventEmitter),Gr.__signal_exit_emitter__?Hr=Gr.__signal_exit_emitter__:((Hr=Gr.__signal_exit_emitter__=new Xr).count=0,Hr.emitted={}),Hr.infinite||(Hr.setMaxListeners(1/0),Hr.infinite=!0),Fr=(e,t)=>{if(!Br(Ft.process))return()=>{};zr.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Jr&&Zr();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Hr.on(r,e),()=>{Hr.removeListener(r,e),0===Hr.listeners("exit").length&&0===Hr.listeners("afterexit").length&&Wr()}};var Wr=()=>{Jr&&Br(Ft.process)&&(Jr=!1,qr.forEach((e=>{try{Gr.removeListener(e,Kr[e])}catch(e){}})),Gr.emit=tn,Gr.reallyExit=Qr,Hr.count-=1)};Fr.unload=Wr;var Yr=(e,t,r)=>{Hr.emitted[e]||(Hr.emitted[e]=!0,Hr.emit(e,t,r))},Kr={};qr.forEach((e=>{Kr[e]=()=>{Br(Ft.process)&&Gr.listeners(e).length===Hr.count&&(Wr(),Yr("exit",null,e),Yr("afterexit",null,e),Vr&&"SIGHUP"===e&&(e="SIGINT"),Gr.kill(Gr.pid,e))}})),Fr.signals=()=>qr;var Jr=!1,Zr=()=>{!Jr&&Br(Ft.process)&&(Jr=!0,Hr.count+=1,qr=qr.filter((e=>{try{return Gr.on(e,Kr[e]),!0}catch(e){return!1}})),Gr.emit=rn,Gr.reallyExit=en)};Fr.load=Zr;var Qr=Gr.reallyExit,en=e=>{Br(Ft.process)&&(Gr.exitCode=e||0,Yr("exit",Gr.exitCode,null),Yr("afterexit",Gr.exitCode,null),Qr.call(Gr,Gr.exitCode))},tn=Gr.emit,rn=function(e,t){if("exit"===e&&Br(Ft.process)){void 0!==t&&(Gr.exitCode=t);var r=tn.apply(this,arguments);return Yr("exit",Gr.exitCode,null),Yr("afterexit",Gr.exitCode,null),r}return tn.apply(this,arguments)}}else Fr=()=>()=>{};var nn,on=(Mr={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>(e=>e===ct.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase())(e)&&!1!==t&&r)(t,r,n))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let o;const s=new Promise(((n,s)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=n.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;const o=Fr((()=>{e.kill()}));return n.finally((()=>{o()}))}}).spawnedKill,sn=Mr.spawnedCancel,an=Mr.setupTimeout,cn=Mr.validateTimeout,ln=Mr.setExitHandler,un={};const dn=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;dn.writable=e=>dn(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,dn.readable=e=>dn(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,dn.duplex=e=>dn.writable(e)&&dn.readable(e),dn.transform=e=>dn.duplex(e)&&"function"==typeof e._transform,un=dn;var pn,hn={},fn=bt.constants,mn=Et.PassThrough;pn=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const s=new mn({objectMode:o});r&&s.setEncoding(r);let i=0;const a=[];return s.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s};const gn=(0,vt.promisify)(Et.pipeline);class vn extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(hn=d).buffer=(e,t)=>d(e,{...t,encoding:"buffer"}),hn.array=(e,t)=>d(e,{...t,array:!0}),hn.MaxBufferError=vn;var yn,wn=Et.PassThrough;yn=function(){function e(o){return Array.isArray(o)?(o.forEach(e),this):(r.push(o),o.once("end",t.bind(null,o)),o.once("error",n.emit.bind(n,"error")),o.pipe(n,{end:!1}),this)}function t(e){!(r=r.filter((t=>t!==e))).length&&n.readable&&n.end()}var r=[],n=new wn({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=()=>0==r.length,n.on("unpipe",t),[].slice.call(arguments).forEach(e),n};const xn=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},bn=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?hn(e,{encoding:t,maxBuffer:n}):hn.buffer(e,{maxBuffer:n})};var En,Sn=(nn={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(un(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=yn();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:s},i){const a=bn(e,{encoding:n,buffer:o,maxBuffer:s}),c=bn(t,{encoding:n,buffer:o,maxBuffer:s}),l=bn(r,{encoding:n,buffer:o,maxBuffer:2*s});try{return await Promise.all([i,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},xn(e,a),xn(t,c),xn(r,l)])}},validateInputSync({input:e}){if(un(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,_n=nn.getSpawnedResult,On=nn.makeAllStream,Tn=nn.validateInputSync;const Cn=(async()=>{})().constructor.prototype,Rn=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Cn,e)]));var Pn,$n=(En={mergePromise(e,t){for(const[r,n]of Rn){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}return e},getSpawnedPromise:e=>new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}).mergePromise,In=En.getSpawnedPromise;const An=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Nn=/^[\w.-]+$/,kn=/"/g,Ln=/ +/g;var jn=(Pn={joinCommand:(e,t)=>An(e,t).join(" "),getEscapedCommand:(e,t)=>An(e,t).map((e=>(e=>"string"!=typeof e||Nn.test(e)?e:`"${e.replace(kn,'\\"')}"`)(e))).join(" "),parseCommand(e){const t=[];for(const r of e.trim().split(Ln)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Dn=Pn.parseCommand,Un=Pn.getEscapedCommand;const Mn=(e,t,r={})=>{const n=tr._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const s=t?{...process.env,...e}:e;return r?vr.env({env:s,cwd:n,execPath:o}):s})(r),r.stdio=jr(r),"win32"===process.platform&&"cmd"===(0,lt.basename)(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Fn=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?gr(t):t:void 0===r?void 0:"",Gn=(e,t,r)=>{const n=Mn(e,t,r),o=jn(e,t),s=Un(e,t);let i;cn(n.options);try{i=(0,yt.spawn)(n.file,n.args,n.options)}catch(e){const t=new(0,yt.ChildProcess),r=Promise.reject(_r({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return $n(t,r)}const a=In(i),c=an(i,n.options,a),l=ln(i,n.options,c),u={isCanceled:!1};i.kill=on.bind(null,i.kill.bind(i)),i.cancel=sn.bind(null,i,u);const d=wr((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await _n(i,n.options,l),h=Fn(n.options,c),f=Fn(n.options,d),m=Fn(n.options,p);if(e||0!==t||null!==r){const c=_r({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:s,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Sn(i,n.options.input),i.all=On(i,n.options),$n(i,d)};(er=Gn).sync=(e,t,r)=>{const n=Mn(e,t,r),o=jn(e,t),s=Un(e,t);let i;Tn(n.options);try{i=(0,yt.spawnSync)(n.file,n.args,n.options)}catch(e){throw _r({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=Fn(n.options,i.stdout,i.error),c=Fn(n.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=_r({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:s,parsed:n,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},er.command=(e,t)=>{const[r,...n]=Dn(e);return Gn(r,n,t)},er.commandSync=(e,t)=>{const[r,...n]=Dn(e);return Gn.sync(r,n,t)},er.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=jr.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=r;return Gn(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})};var Bn={};s(Bn,"isAdminWindows",(()=>Hn)),s(Bn,"isAdminPosix",(()=>zn)),s(Bn,"isAdmin",(()=>y));const Hn=async()=>{if("win32"!==t(St).platform)return!1;try{return await o(er)("fsutil",["dirty","query",t(St).env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await o(er)("fltmc"),!0}catch{return!1}})()}},zn=h;var qn={};const Vn="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Xn=Vn?";":":";var Wn,Yn={};Wn="win32"===process.platform||Ot.TESTING_WINDOWS?Rt("52wAv"):Rt("jwcoa"),Yn=x,x.sync=(e,t)=>{try{return Wn.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const Kn=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),Jn=(e,t)=>{const r=t.colon||Xn,n=e.match(/\//)||Vn&&e.match(/\\/)?[""]:[...Vn?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=Vn?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Vn?o.split(r):[""];return Vn&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:o}},Zn=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:s}=Jn(e,t),i=[],a=r=>new Promise(((o,s)=>{if(r===n.length)return t.all&&i.length?o(i):s(Kn(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=lt.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(d,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const d=o[n];Yn(e+d,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return l(e+d);i.push(e+d)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};qn=Zn,Zn.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=Jn(e,t),s=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=lt.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;n.length>e;e++){const r=u+n[e];try{if(Yn.sync(r,{pathExt:o})){if(!t.all)return r;s.push(r)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw Kn(e)};var Qn,eo={},to={},ro={},no={};const oo=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};var so,io;(no=oo).default=oo,Qn=e=>b(e)||b(e,!0);const ao=/([()\][%!^"`<>&|;, *?])/g;so=e=>e.replace(ao,"^$1"),io=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(ao,"^$1"),t&&(e=e.replace(ao,"^$1")),e);var co,lo,uo;lo=/^#!(.*)/,co=(e="")=>{const t=e.match(lo);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o},uo=e=>{const t=Buffer.alloc(150);let r;try{r=ut.openSync(e,"r"),ut.readSync(r,t,0,150,0),ut.closeSync(r)}catch(e){}return co(""+t)};const po="win32"===process.platform,ho=/\.(?:com|exe)$/i,fo=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;ro=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:(e=>{if(!po)return e;const t=(e=>{e.file=Qn(e);const t=e.file&&uo(e.file);return t?(e.args.unshift(e.file),e.command=t,Qn(e)):e.file})(e),r=!ho.test(t);if(e.options.forceShell||r){const r=fo.test(t);e.command=lt.normalize(e.command),e.command=so(e.command),e.args=e.args.map((e=>io(e,r)));const 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)};var mo={};const go="win32"===process.platform;var vo;mo={hookChildProcess(e,t){if(!go)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=S(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:S,verifyENOENTSync(e,t){return go&&1===e&&!t.file?E(t.original,"spawnSync"):null},notFoundError:E},(to=_).spawn=_,to.sync=(e,t,r)=>{const n=ro(e,t,r),o=yt.spawnSync(n.command,n.args,n.options);return o.error=o.error||mo.verifyENOENTSync(o.status,n),o},to._parse=ro,to._enoent=mo,vo=e=>{const t="string"==typeof e?"\r":13;return e[e.length-1]===("string"==typeof e?"\n":10)&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e};var yo={};const wo=e=>{let t;e={cwd:process.cwd(),path:process.env[no()],execPath:process.execPath,...e};let r=lt.resolve(e.cwd);const n=[];for(;t!==r;)n.push(lt.join(r,"node_modules/.bin")),t=r,r=lt.resolve(r,"..");const o=lt.resolve(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(lt.delimiter)};(yo=wo).default=wo,yo.env=e=>{const t={...(e={env:process.env,...e}).env},r=no({env:t});return e.path=t[r],t[r]=yo(e),t};var xo={},bo={};const Eo=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(bo=Eo).default=Eo;const So=new WeakMap,_o=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const o=e.displayName||e.name||"<anonymous>",s=function(...i){if(So.set(s,++n),1===n)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return bo(s,e),So.set(s,n),s};(xo=_o).default=_o,xo.callCount=e=>{if(!So.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return So.get(e)};var Oo,To={};Object.defineProperty(To,"__esModule",{value:!0}),To.signalsByNumber=To.signalsByName=void 0;var Co={};Object.defineProperty(Co,"__esModule",{value:!0}),Co.getSignals=void 0;var Ro={};Object.defineProperty(Ro,"__esModule",{value:!0}),Ro.SIGNALS=void 0,Ro.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var Po={};Object.defineProperty(Po,"__esModule",{value:!0}),Po.SIGRTMAX=Po.getRealtimeSignals=void 0,Po.getRealtimeSignals=()=>Array.from({length:Ao-Io+1},$o);const $o=(e,t)=>({name:"SIGRT"+(t+1),number:Io+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Io=34,Ao=64;Po.SIGRTMAX=Ao,Co.getSignals=()=>{const e=(0,Po.getRealtimeSignals)();return[...Ro.SIGNALS,...e].map(No)};const No=({name:e,number:t,description:r,action:n,forced:o=!1,standard:s})=>{const{signals:{[e]:i}}=ct.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:n,forced:o,standard:s}},ko=(0,Co.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a}})),{});To.signalsByName=ko;const Lo=(()=>{const e=(0,Co.getSignals)(),t=Array.from({length:Po.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>ct.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:o,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:s,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();To.signalsByNumber=Lo;var jo=To.signalsByName;Oo=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:s,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(o=null===o?void 0:o)?void 0:jo[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${o})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:d,errorCode:n&&n.code,signal:o,signalDescription:p,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${i}`,m="[object Error]"==={}.toString.call(n),g=m?`${f}\n${n.message}`:f,v=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=i,n.escapedCommand=a,n.exitCode=s,n.signal=o,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var Do={};const Uo=["stdin","stdout","stderr"],Mo=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Uo.map((t=>e[t]));if((e=>Uo.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Uo.map((e=>`\`${e}\``)).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,Uo.length)},((e,r)=>t[r]))};(Do=Mo).node=e=>{const t=Mo(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var Fo,Go={},Bo=Ot.process;const Ho=e=>e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;if(Ho(Bo)){var zo,qo=gt,Vo=Rt("4W4Te"),Xo=/^win/i.test(Bo.platform),Wo=mt;"function"!=typeof Wo&&(Wo=Wo.EventEmitter),Bo.__signal_exit_emitter__?zo=Bo.__signal_exit_emitter__:((zo=Bo.__signal_exit_emitter__=new Wo).count=0,zo.emitted={}),zo.infinite||(zo.setMaxListeners(1/0),zo.infinite=!0),Go=(e,t)=>{if(!Ho(Ot.process))return()=>{};qo.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Zo&&Qo();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),zo.on(r,e),()=>{zo.removeListener(r,e),0===zo.listeners("exit").length&&0===zo.listeners("afterexit").length&&Yo()}};var Yo=()=>{Zo&&Ho(Ot.process)&&(Zo=!1,Vo.forEach((e=>{try{Bo.removeListener(e,Jo[e])}catch(e){}})),Bo.emit=rs,Bo.reallyExit=es,zo.count-=1)};Go.unload=Yo;var Ko=(e,t,r)=>{zo.emitted[e]||(zo.emitted[e]=!0,zo.emit(e,t,r))},Jo={};Vo.forEach((e=>{Jo[e]=()=>{Ho(Ot.process)&&Bo.listeners(e).length===zo.count&&(Yo(),Ko("exit",null,e),Ko("afterexit",null,e),Xo&&"SIGHUP"===e&&(e="SIGINT"),Bo.kill(Bo.pid,e))}})),Go.signals=()=>Vo;var Zo=!1,Qo=()=>{!Zo&&Ho(Ot.process)&&(Zo=!0,zo.count+=1,Vo=Vo.filter((e=>{try{return Bo.on(e,Jo[e]),!0}catch(e){return!1}})),Bo.emit=ns,Bo.reallyExit=ts)};Go.load=Qo;var es=Bo.reallyExit,ts=e=>{Ho(Ot.process)&&(Bo.exitCode=e||0,Ko("exit",Bo.exitCode,null),Ko("afterexit",Bo.exitCode,null),es.call(Bo,Bo.exitCode))},rs=Bo.emit,ns=function(e,t){if("exit"===e&&Ho(Ot.process)){void 0!==t&&(Bo.exitCode=t);var r=rs.apply(this,arguments);return Ko("exit",Bo.exitCode,null),Ko("afterexit",Bo.exitCode,null),r}return rs.apply(this,arguments)}}else Go=()=>()=>{};const os=e=>e===ct.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var ss,is=(Fo={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>os(e)&&!1!==t&&r)(t,r,n))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let o;const s=new Promise(((n,s)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=n.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;const o=Go((()=>{e.kill()}));return n.finally((()=>{o()}))}}).spawnedKill,as=Fo.spawnedCancel,cs=Fo.setupTimeout,ls=Fo.validateTimeout,us=Fo.setExitHandler,ds={};const ps=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;ps.writable=e=>ps(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,ps.readable=e=>ps(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,ps.duplex=e=>ps.writable(e)&&ps.readable(e),ps.transform=e=>ps.duplex(e)&&"function"==typeof e._transform,ds=ps;var hs,fs={},ms=bt.constants,gs=Et.PassThrough;hs=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const s=new gs({objectMode:o});r&&s.setEncoding(r);let i=0;const a=[];return s.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s};const vs=(0,vt.promisify)(Et.pipeline);class ys extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(fs=O).buffer=(e,t)=>O(e,{...t,encoding:"buffer"}),fs.array=(e,t)=>O(e,{...t,array:!0}),fs.MaxBufferError=ys;var ws,xs=Et.PassThrough;ws=function(){function e(o){return Array.isArray(o)?(o.forEach(e),this):(r.push(o),o.once("end",t.bind(null,o)),o.once("error",n.emit.bind(n,"error")),o.pipe(n,{end:!1}),this)}function t(e){!(r=r.filter((t=>t!==e))).length&&n.readable&&n.end()}var r=[],n=new xs({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=()=>0==r.length,n.on("unpipe",t),[].slice.call(arguments).forEach(e),n};const bs=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Es=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?fs(e,{encoding:t,maxBuffer:n}):fs.buffer(e,{maxBuffer:n})};var Ss,_s=(ss={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(ds(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=ws();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:s},i){const a=Es(e,{encoding:n,buffer:o,maxBuffer:s}),c=Es(t,{encoding:n,buffer:o,maxBuffer:s}),l=Es(r,{encoding:n,buffer:o,maxBuffer:2*s});try{return await Promise.all([i,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},bs(e,a),bs(t,c),bs(r,l)])}},validateInputSync({input:e}){if(ds(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,Os=ss.getSpawnedResult,Ts=ss.makeAllStream,Cs=ss.validateInputSync;const Rs=(async()=>{})().constructor.prototype,Ps=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Rs,e)]));var $s,Is=(Ss={mergePromise(e,t){for(const[r,n]of Ps){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).mergePromise,As=Ss.getSpawnedPromise;const Ns=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ks=/^[\w.-]+$/,Ls=/"/g,js=/ +/g;var Ds=($s={joinCommand(e,t){return Ns(e,t).join(" ")},getEscapedCommand(e,t){return Ns(e,t).map((e=>(e=>"string"!=typeof e||ks.test(e)?e:`"${e.replace(Ls,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(js)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Us=$s.parseCommand,Ms=$s.getEscapedCommand;const Fs=(e,t,r={})=>{const n=to._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const s=t?{...process.env,...e}:e;return r?yo.env({env:s,cwd:n,execPath:o}):s})(r),r.stdio=Do(r),"win32"===process.platform&&"cmd"===lt.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},Gs=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?vo(t):t:void 0===r?void 0:"",Bs=(e,t,r)=>{const n=Fs(e,t,r),o=Ds(e,t),s=Ms(e,t);let i;ls(n.options);try{i=yt.spawn(n.file,n.args,n.options)}catch(e){const t=new yt.ChildProcess,r=Promise.reject(Oo({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Is(t,r)}const a=As(i),c=cs(i,n.options,a),l=us(i,n.options,c),u={isCanceled:!1};i.kill=is.bind(null,i.kill.bind(i)),i.cancel=as.bind(null,i,u);const d=xo((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await Os(i,n.options,l),h=Gs(n.options,c),f=Gs(n.options,d),m=Gs(n.options,p);if(e||0!==t||null!==r){const c=Oo({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:s,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return _s(i,n.options.input),i.all=Ts(i,n.options),Is(i,d)};(eo=Bs).sync=(e,t,r)=>{const n=Fs(e,t,r),o=Ds(e,t),s=Ms(e,t);let i;Cs(n.options);try{i=yt.spawnSync(n.file,n.args,n.options)}catch(e){throw Oo({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=Gs(n.options,i.stdout,i.error),c=Gs(n.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=Oo({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:s,parsed:n,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},eo.command=(e,t)=>{const[r,...n]=Us(e);return Bs(r,n,t)},eo.commandSync=(e,t)=>{const[r,...n]=Us(e);return Bs.sync(r,n,t)},eo.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=Do.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=r;return Bs(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})};var Hs={};T(Hs,"hasSudo",(()=>C)),T(Hs,"isRoot",(()=>R)),T(Hs,"isSudo",(()=>P)),T(Hs,"prependSudo",(()=>$)),T(Hs,"execRootSync",(()=>I)),T(Hs,"execRoot",(()=>A));var zs={};T(zs,"isAdminWindows",(()=>qs)),T(zs,"isAdminPosix",(()=>Vs)),T(zs,"isAdmin",(()=>N));const qs=async()=>{if("win32"!==process.platform)return!1;try{return await t(eo)("fsutil",["dirty","query",process.env.systemdrive??""]),!0}catch(e){return"ENOENT"===e.code&&(async()=>{try{return await t(eo)("fltmc"),!0}catch{return!1}})()}},Vs=R;let Xs;Pt=Rt("lXEOe"),$t=Rt("dG9nM"),Pt=Rt("lXEOe"),$t=Rt("dG9nM"),It=Rt("bouSm");var Ws={};const Ys="win32"!==ct.platform(),Ks=ct.release(),Js=/(\d+\.\d+)\.(\d+)/;Ws=e=>Ys?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Js.exec(Ks).splice(1))?e:e.replace(/(\s+)/g,"%20");var Zs,Qs,ei={};Zs=Rt("bYrg8"),Qs=e=>e.split("").reverse().join(""),ei=(e,t,r)=>{var n;return null==t&&(t="'"),null==r&&(r="\\"),"string"!=typeof e?e:(n=RegExp("(["+Zs(t)+"])(?!"+Zs(r)+")","g"),Qs(Qs(e).replace(n,"$1"+r)))};var ti=Rt("8Xzrp");const ri=w(".cpprc");let ni=!1;var oi={},si=lt.join,ii=lt.delimiter,ai=lt.sep,ci=lt.posix;const li="win32"===process.platform,ui=RegExp(`[${ci.sep}${ai===ci.sep?"":ai}]`.replace(/(\\)/g,"\\$1")),di=RegExp("^\\."+ui.source),pi=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),hi=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=ii})=>{const o=e.match(ui)?[""]:[...li?[process.cwd()]:[],...(t||"").split(n)];if(li){const t=r||[".EXE",".CMD",".BAT",".COM"].join(n),s=t.split(n);return e.includes(".")&&""!==s[0]&&s.unshift(""),{pathEnv:o,pathExt:s,pathExtExe:t}}return{pathEnv:o,pathExt:[""]}},fi=(e,t)=>{const r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&di.test(t)?t.slice(0,2):"")+si(r,t)},mi=async(e,t={})=>{const{pathEnv:r,pathExt:n,pathExtExe:o}=hi(e,t),s=[];for(const i of r){const r=fi(i,e);for(const e of n){const n=r+e;if(await Yn(n,{pathExt:o,ignoreErrors:!0})){if(!t.all)return n;s.push(n)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw pi(e)};oi=mi,mi.sync=(e,t={})=>{const{pathEnv:r,pathExt:n,pathExtExe:o}=hi(e,t),s=[];for(const i of r){const r=fi(i,e);for(const e of n){const n=r+e;if(Yn.sync(n,{pathExt:o,ignoreErrors:!0})){if(!t.all)return n;s.push(n)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw pi(e)},ti=Rt("8Xzrp");var gi=Rt("hOZXx");const{appendFile:vi}=ut.promises;let yi=!1,wi=!1;Pt=Rt("lXEOe"),Lt=Rt("jeNZZ"),Lt=Rt("jeNZZ");var xi=Rt("cczJY");let bi,Ei,Si=!1;ti=Rt("8Xzrp"),Lt=Rt("jeNZZ"),Pt=Rt("lXEOe"),It=Rt("bouSm");let _i,Oi,Ti,Ci=!1;It=Rt("bouSm"),It=Rt("bouSm");let Ri=!1,Pi=!1;var $i={},Ii=lt.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),Ai=$i&&$i.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Ni=$i&&$i.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),ki=$i&&$i.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&Ai(t,e,r);return Ni(t,e),t}),Li=$i&&$i.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),ji=$i&&$i.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty($i,"__esModule",{value:!0}),$i.evaluateVersions=$i.isExplicitVersion=$i.findFromManifest=$i.getManifestFromRepo=$i.findAllVersions=$i.find=$i.cacheFile=$i.cacheDir=$i.extractZip=$i.extractXar=$i.extractTar=$i.extract7z=$i.downloadTool=$i.HTTPError=void 0;const Di=ki(Rt("lXEOe")),Ui=ki(Rt("cczJY")),Mi=ki(ut),Fi=ki(Rt("3IR8t")),Gi=ki(ct),Bi=ki(lt),Hi=ki(Rt("lkZr1")),zi=ki(Rt("cTdPL")),qi=ki(Et),Vi=ki(vt),Xi=ji(Rt("8sanl"));var Wi=Rt("2bg3w"),Yi={},Ki=Yi&&Yi.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),Ji=Yi&&Yi.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Zi=Yi&&Yi.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&Ki(t,e,r);return Ji(t,e),t}),Qi=Yi&&Yi.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.RetryHelper=void 0;const ea=Zi(Rt("lXEOe"));Yi.RetryHelper=class{constructor(e,t,r){if(1>e)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 Qi(this,void 0,void 0,(function*(){let r=1;for(;this.maxAttempts>r;){try{return yield e()}catch(e){if(t&&!t(e))throw e;ea.info(e.message)}const n=this.getSleepAmount();ea.info(`Waiting ${n} seconds before trying again`),yield this.sleep(n),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Qi(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class ta extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}$i.HTTPError=ta;const ra="win32"===process.platform,na="darwin"===process.platform;$i.downloadTool=function(e,t,r,n){return Li(this,void 0,void 0,(function*(){t=t||Bi.join(ue(),Xi.default()),yield Ui.mkdirP(Bi.dirname(t)),Di.debug("Downloading "+e),Di.debug("Destination "+t);const o=de("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=de("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new Yi.RetryHelper(3,o,s);return yield i.execute((()=>Li(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return Li(this,void 0,void 0,(function*(){if(Mi.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new Hi.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(Di.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const s=yield o.get(e,n);if(200!==s.message.statusCode){const t=new ta(s.message.statusCode);throw Di.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),t}const i=Vi.promisify(qi.pipeline),a=de("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>s.message))();let c=!1;try{return yield i(a,Mi.createWriteStream(t)),Di.debug("download complete"),c=!0,t}finally{if(!c){Di.debug("download failed");try{yield Ui.rmRF(t)}catch(e){Di.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof ta&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},$i.extract7z=function(e,t,r){return Li(this,void 0,void 0,(function*(){gt.ok(ra,"extract7z() not supported on current OS"),gt.ok(e,'parameter "file" is required'),t=yield oe(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",Di.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield Wi.exec(`"${r}"`,t,n)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${Bi.join(Ii,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],o={silent:!0};try{const e=yield Ui.which("powershell",!0);yield Wi.exec(`"${e}"`,r,o)}finally{process.chdir(n)}}return t}))},$i.extractTar=function(e,t,r="xz"){return Li(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield oe(t),Di.debug("Checking tar --version");let n="";yield Wi.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),Di.debug(n.trim());const o=n.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],Di.isDebug()&&!r.includes("v")&&s.push("-v");let i=t,a=e;return ra&&o&&(s.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",i,"-f",a),yield Wi.exec("tar",s),t}))},$i.extractXar=function(e,t,r=[]){return Li(this,void 0,void 0,(function*(){let n;gt.ok(na,"extractXar() not supported on current OS"),gt.ok(e,'parameter "file" is required'),t=yield oe(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),Di.isDebug()&&n.push("-v");const o=yield Ui.which("xar",!0);var s;return yield Wi.exec(`"${o}"`,(s=n,Array.from(new Set(s)))),t}))},$i.extractZip=function(e,t){return Li(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield oe(t),ra?yield function(e,t){return Li(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield Ui.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$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 $_ } } ;`].join(" ")];Di.debug("Using pwsh at path: "+o),yield Wi.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$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) }`].join(" ")],t=yield Ui.which("powershell",!0);Di.debug("Using powershell at path: "+t),yield Wi.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return Li(this,void 0,void 0,(function*(){const r=yield Ui.which("unzip",!0),n=[e];Di.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Wi.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},$i.cacheDir=function(e,t,r,n){return Li(this,void 0,void 0,(function*(){if(r=zi.clean(r)||r,n=n||Gi.arch(),Di.debug(`Caching tool ${t} ${r} ${n}`),Di.debug("source dir: "+e),!Mi.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield se(t,r,n);for(const t of Mi.readdirSync(e)){const r=Bi.join(e,t);yield Ui.cp(r,o,{recursive:!0})}return ie(t,r,n),o}))},$i.cacheFile=function(e,t,r,n,o){return Li(this,void 0,void 0,(function*(){if(n=zi.clean(n)||n,o=o||Gi.arch(),Di.debug(`Caching tool ${r} ${n} ${o}`),Di.debug("source file: "+e),!Mi.statSync(e).isFile())throw Error("sourceFile is not a file");const s=yield se(r,n,o),i=Bi.join(s,t);return Di.debug("destination file "+i),yield Ui.cp(e,i),ie(r,n,o),s}))},$i.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||Gi.arch(),ae(t)||(t=ce(ne(e,r),t));let n="";if(t){t=zi.clean(t)||"";const o=Bi.join(le(),e,t,r);Di.debug("checking cache: "+o),Mi.existsSync(o)&&Mi.existsSync(o+".complete")?(Di.debug(`Found tool in cache ${e} ${t} ${r}`),n=o):Di.debug("not found")}return n},$i.findAllVersions=ne,$i.getManifestFromRepo=function(e,t,r,n="master"){return Li(this,void 0,void 0,(function*(){let o=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,i=new Hi.HttpClient("tool-cache"),a={};r&&(Di.debug("set auth"),a.authorization=r);const c=yield i.getJson(s,a);if(!c.result)return o;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){Di.debug("Invalid json")}}return o}))},$i.findFromManifest=function(e,t,r,n=Gi.arch()){return Li(this,void 0,void 0,(function*(){return yield Fi._findMatch(e,t,r,n)}))},$i.isExplicitVersion=ae,$i.evaluateVersions=ce;var oa=Rt("9Kys9"),sa=Rt("9YDsN"),ia=(Lt=Rt("jeNZZ"),It=Rt("bouSm"),$t=Rt("dG9nM"),ti=Rt("8Xzrp"),{});Object.defineProperty(ia,"__esModule",{value:!0}),ia.retryAsPromised=ia.TimeoutError=void 0;class aa extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t}}ia.TimeoutError=aa,ia.retryAsPromised=pe,ia.default=pe;let ca,la=!1;Lt=Rt("jeNZZ"),xi=Rt("cczJY"),It=Rt("bouSm"),Pt=Rt("lXEOe"),$t=Rt("dG9nM"),It=Rt("bouSm"),Lt=Rt("jeNZZ"),Wi=Rt("2bg3w");var ua=async e=>{const t=(e=>{if("string"!=typeof e)return!1;const t=e.trim();if(t.includes(" "))return!1;try{return new(0,_t.URL)(t),!0}catch{return!1}})(e);if(!t)return!1;let r=await be(e,"HEAD");return!!r||(r=await be(e,"GET"),!!r)},da=Rt("1eEUU");sa=Rt("9YDsN"),jt=Rt("1wrDf"),Wi=Rt("2bg3w"),It=Rt("bouSm");const pa=/v?(\d\S*)/,ha={llvm:Se(),clangtidy:Se(),clangformat:Se(),ninja:"1.11.1",cmake:"3.25.1",gcovr:"5.2",conan:"1.57.0",meson:"1.0.0",kcov:"40",task:"3.20.0",doxygen:Z()?"1.9.6-1":"1.9.6",gcc:Z()?"11":"12"},fa={gcc:{22:"12",20:"11",18:"11",16:"11",14:"11"},llvm:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"15.0.6-ubuntu-18.04",20:"15.0.6-ubuntu-18.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"5.2",20:"5.2",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"40",20:"40-binary",18:"40",16:"40",14:"40"}};let ma,ga,va=!1;Lt=Rt("jeNZZ"),ti=Rt("8Xzrp"),Lt=Rt("jeNZZ"),It=Rt("bouSm"),ti=Rt("8Xzrp");var ya=Rt("iwVHA"),wa=(sa=Rt("9YDsN"),Wi=Rt("2bg3w"),It=Rt("bouSm"),Lt=Rt("jeNZZ"),It=Rt("bouSm"),$t=Rt("dG9nM"),ti=Rt("8Xzrp"),lt.resolve(__dirname,"../../src/gcc"));const xa={12:{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-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};jt=Rt("1wrDf"),ya=Rt("iwVHA"),Lt=Rt("jeNZZ"),It=Rt("bouSm"),Lt=Rt("jeNZZ"),Lt=Rt("jeNZZ"),ya=Rt("iwVHA"),It=Rt("bouSm"),$t=Rt("dG9nM"),oa=Rt("9Kys9"),It=Rt("bouSm"),Lt=Rt("jeNZZ");const ba=(e=>{const t=new Set(e);for(const 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"]),Ea=new Set(["10.0.1","15.0.5","15.0.6"]),Sa=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"]),_a=new Map,Oa={"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"},Ta="15.0.6";It=Rt("bouSm");var Ca={};Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.getUbuntuVersion=void 0,Ca.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,n)=>{yt.execFile(t,r,{encoding:"utf8",shell:!1},((o,s,i)=>{if(o)return"errno"in o&&"ENOENT"===o.code?void e(null):void n(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${o} (stderr=${i})`));e(s)}))})));var t,r;if(null===e)return[];const n=/^Distributor ID:\s*(.+)$/,o=/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/,s=/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/;let i=null,a=null,c=!1;for(const t of e.split("\n")){const e=t.match(n);if(null!==e){if("Ubuntu"!==e[1])return[];c=!0}const r=t.match(o);r&&(i=r);const l=t.match(s);if(l&&(a=l),c&&i&&a)break}if(!c)return[];for(const e of[i,a])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},ti=Rt("8Xzrp");var Ra=lt.resolve(__dirname,"../../src/llvm");let Pa=!1;var $a,Ia,Aa,Na={},ka=Na&&Na.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),La=Na&&Na.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Na,"__esModule",{value:!0});var ja={},Da=ja&&ja.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(ja,"__esModule",{value:!0});const Ua=Da(ct);var Ma={};Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),ja.issueCommand=Ye,ja.issue=(e,t="")=>{Ye(e,{},t)};class Fa{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,Ma.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Ma.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var Ga={},Ba=Ga&&Ga.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t});Object.defineProperty(Ga,"__esModule",{value:!0});const Ha=Ba(ut),za=Ba(ct);Ga.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Ha.existsSync(r))throw Error("Missing file at path: "+r);Ha.appendFileSync(r,`${Ma.toCommandValue(t)}${za.EOL}`,{encoding:"utf8"})};const qa=La(ct),Va=La(lt);var Xa,Wa;(Wa=Xa=Na.ExitCode||(Na.ExitCode={}))[Wa.Success=0]="Success",Wa[Wa.Failure=1]="Failure",Na.exportVariable=(e,t)=>{const r=Ma.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";Ga.issueCommand("ENV",`${e}<<${t}${qa.EOL}${r}${qa.EOL}${t}`)}else ja.issueCommand("set-env",{name:e},r)},Na.setSecret=e=>{ja.issueCommand("add-mask",{},e)},Na.addPath=e=>{process.env.GITHUB_PATH?Ga.issueCommand("PATH",e):ja.issueCommand("add-path",{},e),process.env.PATH=`${e}${Va.delimiter}${process.env.PATH}`},Na.getInput=(e,t)=>{const r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return r.trim()},Na.setOutput=(e,t)=>{ja.issueCommand("set-output",{name:e},t)},Na.setCommandEcho=e=>{ja.issue("echo",e?"on":"off")},Na.setFailed=e=>{process.exitCode=Xa.Failure,Ke(e)},Na.isDebug=()=>"1"===process.env.RUNNER_DEBUG,Na.debug=e=>{ja.issueCommand("debug",{},e)},Na.error=Ke,Na.warning=e=>{ja.issue("warning",e instanceof Error?""+e:e)},Na.info=e=>{process.stdout.write(e+qa.EOL)},Na.startGroup=Je,Na.endGroup=Ze,Na.group=function(e,t){return ka(this,void 0,void 0,(function*(){let r;Je(e);try{r=yield t()}finally{Ze()}return r}))},Na.saveState=(e,t)=>{ja.issueCommand("save-state",{name:e},t)},Na.getState=e=>process.env["STATE_"+e]||"";const Ya=St.env["ProgramFiles(x86)"],Ka=[St.env["ProgramFiles(x86)"],St.env.ProgramFiles],Ja=["Enterprise","Professional","Community"],Za=["2022","2019","2017"],Qa={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};$a=Qe;const ec=Ya+"\\Microsoft Visual Studio\\Installer";Ia=tt,Aa=(e,t,r,n,o,s)=>{if("win32"!=St.platform)return void Na.info("This is not a Windows virtual environment, bye!");St.env.PATH+=lt.delimiter+ec;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const c=`"${tt(s)}" ${a.join(" ")}`;Na.debug("vcvars command-line: "+c);const l=(""+yt.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),d=l[1].split("\r\n"),p=l[2].split("\r\n"),h=d.filter((e=>!(!e.match(/^\[ERROR.*\]/)||e.match(/Error in script usage. The correct usage is:$/))));if(h.length>0)throw Error("invalid parameters\r\n"+h.join("\r\n"));let f={};for(let e of u){const[t,r]=e.split("=");f[t]=r}Na.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(Na.info("Setting "+t),rt(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),Na.exportVariable(t,r))}Na.endGroup(),Na.info("Configured Developer Command Prompt")},It=Rt("bouSm"),ti=Rt("8Xzrp"),$t=Rt("dG9nM"),Lt=Rt("jeNZZ"),It=Rt("bouSm"),ti=Rt("8Xzrp");var tc=lt.resolve(__dirname,"../../src/msvc");let rc;Lt=Rt("jeNZZ"),Lt=Rt("jeNZZ"),Lt=Rt("jeNZZ"),It=Rt("bouSm"),ti=Rt("8Xzrp");let nc=!1;const oc={async nala(e,r,n){if(!te())return;if("string"==typeof rc)return{binDir:rc};const o=t(oi).sync("nala",{nothrow:!0});if(null!==o)return rc=(0,Lt.dirname)(o),{binDir:rc};I("/bin/bash",["-c",`echo "deb [signed-by=${await q("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key")}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await G([{name:"nala"}],!0):await G([{name:"nala-legacy"}],!0)}catch(e){await G([{name:"nala-legacy"}],!0)}return rc="/usr/bin",{binDir:rc}},cmake:xe,ninja:je,python:Te,async vcpkg(e,r,n){return nc&&null!==t(oi).sync("vcpkg",{nothrow:!0})?{binDir:(0,Lt.dirname)(t(oi).sync("vcpkg"))}:("linux"===process.platform&&(Z()?(re("curl"),re("zip"),re("unzip"),re("tar"),re("git"),re("pkg-config")):Q()?(ee("curl"),ee("zip"),ee("unzip"),ee("tar"),ee("git"),ee("pkg-config")):te()&&await G([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}])),await t(ti)((0,Lt.join)(r,(0,Lt.addShExt)("bootstrap-vcpkg",".bat")))?(0,It.notice)(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(eo).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,Lt.dirname)(r),stdio:"inherit"}),t(eo).sync((0,Lt.addShExt)((0,Lt.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:r,shell:!0,stdio:"inherit"}),L(r),await D(r),nc=!0,{binDir:r})},async bazel(e,t,r){switch(process.platform){case"win32":return J("bazelisk",e);case"darwin":return Y("bazelisk",e);case"linux":if(Z())throw Error("installing bazel on Arch linux is not supported yet");if(Q())return ee("dnf-plugins-core",void 0),I("dnf",["copr","enable","vbatts/bazel"]),ee("bazel4",void 0);if(te())return I("bash",["-c",`echo "deb [arch=amd64 signed-by=${await q("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg")}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),G([{name:"bazel",version:e}],!0);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},async conan(e,t,r){return await Pe("setuptools",""),Pe("conan",e)},meson(e,t,r){return Pe("meson",e)},gcovr(e,t,r){return Pe("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await J("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await D(e),e})()}},llvm:qe,gcc:ke,choco:K,brew:X,async powershell(e,t,r){switch(process.platform){case"win32":{await J("powershell-core",e);const t="C:/Program Files/PowerShell/7";return await D(t),{binDir:t}}case"darwin":return Y("powershell",e,["--cask"]);case"linux":if(Z())return re("powershell-bin",e,"yay");if(Q())return ee("curl"),I("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ee("powershell",e);if(te()){await G([{name:"curl"}]);const t=await ze();return I("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t[0]}.0${t[1]}/packages-microsoft-prod.deb`]),I("dpkg",["-i","packages-microsoft-prod.deb"]),G([{name:"powershell",version:e}],!0)}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},ccache(e,t,r){switch(process.platform){case"win32":return J("ccache",e);case"darwin":return Y("ccache",e);case"linux":if(Z())return re("ccache",e);if(Q())return ee("ccache",e);if(te())return G([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},sccache(e,t,r){switch(process.platform){case"win32":return J("sccache",e);case"linux":case"darwin":return Y("sccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,r,n){switch(process.platform){case"win32":{await t(ia)((()=>J("doxygen.install",e)),{name:"doxygen.install",max:4,backoffBase:2e3,report(e){return(0,It.info)(e)}});const r={binDir:await(async()=>{if("win32"===process.platform){for(const e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await t(ti)((0,Lt.join)(e,"doxygen.exe")))return await D(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await $e(_e("graphviz",void 0)),r}case"darwin":{const e=await Y("doxygen",void 0);return await $e(_e("graphviz",void 0)),e}case"linux":{let t;if(""===e||Z()||Q())if(Z())t=re("doxygen",e);else{if(Q())return ee("doxygen",e);if(!te())throw Error("Unsupported linux distributions");t=await G([{name:"doxygen",version:e}])}else{if(!te())throw Error("Unsupported linux distributions");try{t=await he("doxygen",e,Ie,r,n),await G([{name:"libclang-cpp9"}])}catch(e){(0,It.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),t=await G([{name:"doxygen"}])}}return await $e(_e("graphviz",void 0)),t}default:throw Error("Unsupported platform")}},graphviz:$e,async cppcheck(e,t,r){switch(process.platform){case"win32":return await J("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await D(e),e})()};case"darwin":return Y("cppcheck",e);case"linux":if(Z())return re("cppcheck",e);if(Q())return ee("ccache",e);if(te())return G([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},clangtidy:Xe,clangformat:Xe,msvc:ot,vcvarsall:nt,async kcov(e,t,r){if("linux"!==process.platform)return void(0,It.info)("Kcov is not supported on non-linux");const n=e.split("-");let o=(e=>e.match(/^v/)?e:"v"+e)(n[0]);const s=n[1],i=(e=>parseInt(e.replace(/^v/,""),10))(o);let a;return 38===i&&(o="v38"),"binary"!==s||39>i?(a=await he("kcov",o,Ue,t,r),a):(a=await he("kcov",o,De,t,r),Z()?re("binutils"):Q()?ee("binutils"):te()&&await G([{name:"libbinutils"}]),a)},async make(e,t,r){switch(process.platform){case"win32":return J("make",e);case"darwin":return await Y("make",e),await D("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(Z())return re("make",e);if(Q())return ee("make",e);if(te())return G([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform")}},task(e,t,r){return he("task",e,st,t,r)},sevenzip:fe},sc=Object.keys(oc),ic=["compiler","architecture",...sc];(async e=>{"github-actions"!==t($t)()&&(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const o=(e=>((e,t)=>{var o,s,i,a,c,l={_:[]},u=0,d=0,p=0,h=(e=e||[]).length;const f=void 0!==(t=t||{}).alias,m=void 0!==t.unknown,g=void 0!==t.default;if(t.alias=t.alias||{},t.string=r(t.string),t.boolean=r(t.boolean),f)for(o in t.alias)for(s=t.alias[o]=r(t.alias[o]),u=0;s.length>u;u++)(t.alias[s[u]]=s.concat(o)).splice(u,1);for(u=t.boolean.length;u-- >0;)for(d=(s=t.alias[t.boolean[u]]||[]).length;d-- >0;)t.boolean.push(s[d]);for(u=t.string.length;u-- >0;)for(d=(s=t.alias[t.string[u]]||[]).length;d-- >0;)t.string.push(s[d]);if(g)for(o in t.default)if(a=typeof t.default[o],s=t.alias[o]=t.alias[o]||[],void 0!==t[a])for(t[a].push(o),u=0;s.length>u;u++)t[a].push(s[u]);const v=m?Object.keys(t.alias):[];for(u=0;h>u;u++){if("--"===(i=e[u])){l._=l._.concat(e.slice(++u));break}for(d=0;i.length>d&&45===i.charCodeAt(d);d++);if(0===d)l._.push(i);else if("no-"===i.substring(d,d+3)){if(a=i.substring(d+3),m&&!~v.indexOf(a))return t.unknown(i);l[a]=!1}else{for(p=d+1;i.length>p&&61!==i.charCodeAt(p);p++);for(a=i.substring(d,p),c=i.substring(++p)||u+1===h||45===(""+e[u+1]).charCodeAt(0)||e[++u],s=2===d?[a]:a,p=0;s.length>p;p++){if(a=s[p],m&&!~v.indexOf(a))return t.unknown("-".repeat(d)+a);n(l,a,s.length>p+1||c,t)}}}if(g)for(o in t.default)void 0===l[o]&&(l[o]=t.default[o]);if(f)for(o in l)for(s=t.alias[o]||[];s.length>0;)l[s.shift()]=l[o];return l})(e,{string:ic,default:Object.fromEntries(ic.map((e=>[e,it(e)]))),alias:{h:"help"},boolean:"help"}))(e);o.help&&(0,It.info)('\nsetup-cpp [options]\nsetup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--bazel\n--meson\n--conan\n--make\n--task\n--ccache\n--sccache\n--cppcheck\n--clangformat\n--clangtidy\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n--python\n--choco\n--brew\n--nala\n--sevenzip\n--graphviz\n--powershell\n ');const s=o.architecture??process.arch,i=process.env.SETUP_CPP_DIR??w(""),a=[],c=[],l=Dt.create({autoloadLocales:!0});let u,d;Dt.addLocale(t(kt)),At.addLocale(t(Nt));const p=await ze();if(!((e,t)=>{const r=["llvm","clangtidy","clangformat"].filter((t=>void 0!==e[t])),n=r.filter((t=>!Oe(e[t],t))),o=1>n.length?"true":e[n[0]];return!n.some((t=>e[t]!==o))&&(r.forEach((t=>{e[t]=o})),!0)})(o))return(0,It.error)("The same version must be used for llvm, clangformat and clangtidy"),1;let h=!1;Z()&&"string"==typeof o.cppcheck&&"string"==typeof o.gcovr&&((0,It.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),re("python-pygments"));for(const e of sc){const t=o[e];if(void 0!==t){u=Date.now(),(0,Pt.startGroup)(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await nt(_e(e,t,p),void 0,s,void 0,void 0,!1,!1);else{const n=oc[e];h=["llvm","clangformat","clangtidy"].includes(e);const o=(0,Lt.join)(i,h?"llvm":e);r=await n(_e(e,t,p),o,s)}a.push(at(e,r))}catch(t){(0,It.error)(t),c.push(e+" failed to install")}(0,Pt.endGroup)(),d=Date.now(),(0,It.info)("took "+(l.format(u,d)||"0 seconds"))}}const f=o.compiler;u=Date.now();try{if(void 0!==f){const{compiler:e,version:r}=(e=>{const r=e.split("-"),n=r[0];if(1 in r){const e=r[1];return null!==t(jt)(e)||(0,It.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:n,version:e}}return{compiler:n,version:void 0}})(f);switch((0,Pt.startGroup)(`Installing ${e} ${r??""}`),e){case"llvm":case"clang":case"clang++":{const e=await qe(_e("llvm",r,p),(0,Lt.join)(i,"llvm"),s);await j("GCOV","llvm-cov gcov"),a.push(at("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=_e("gcc",r,p),n=await ke(e,(0,Lt.join)(i,"gcc"),s);h&&await j("CPPFLAGS",""),await(e=>{const r=t(jt)(e),n=null!==r?t(ya)(r):e;return j("GCOV",""!==n?"gcov-"+n:"gcov")})(e),a.push(at("gcc",n));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await ot(_e("msvc",r,p),(0,Lt.join)(i,"msvc"),s);h&&await j("CPPFLAGS",""),a.push(at("msvc",e));break}case"appleclang":case"applellvm":(0,Pt.notice)("Assuming apple-clang is already installed"),await Promise.all([j("CC","clang"),j("CXX","clang++")]),a.push(at("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}(0,Pt.endGroup)(),d=Date.now(),(0,It.info)("took "+(l.format(u,d)||"0 seconds"))}}catch(e){(0,It.error)(e),c.push("Failed to install the "+f),(0,Pt.endGroup)(),d=Date.now(),(0,It.info)("took "+(l.format(u,d)||"0 seconds"))}if(await(async()=>{if(await t(ti)(ri)){const e=(0,ut.readFileSync)(ri,"utf-8").split("\n"),t=[...new Set(e.reverse())].reverse();(0,ut.writeFileSync)(ri,t.join("\n"));try{L(ri)}catch{}}})(),0===a.length&&0===c.length)return(0,It.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>(0,It.success)(e))),c.forEach((e=>(0,It.error)(e))),(0,It.info)("setup-cpp finished"),"github-actions"!==t($t)())switch(process.platform){case"win32":(0,It.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,It.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1})(process.argv).then((e=>{process.exitCode=e})).catch((e=>{(0,It.error)("main() panicked!"),(0,It.error)(e),process.exitCode=1}));
|
||
//# sourceMappingURL=setup-cpp.js.map
|