Template
1
0
mirror of https://github.com/aminya/setup-cpp synced 2024-11-30 21:22:30 +08:00
setup-cpp/dist/setup_cpp.js

3 lines
164 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function e(e,t,r,i){Object.defineProperty(e,t,{get:r,set:i,enumerable:!0,configurable:!0})}function t(e){return e&&e.__esModule?e.default:e}function r(e,t,i){if("function"==typeof t&&(i=t,t={}),!i){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((i,n)=>{r(e,t||{},((e,t)=>{e?n(e):i(t)}))}))}Ze(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),i(e,r)}))}function i(e,r,i){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof nt)return{binDir:nt};const n=t(Je).sync("brew",{nothrow:!0});return null!==n?(nt=Ie.dirname(n),{binDir:nt}):(Me.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),nt="/usr/local/bin/",{binDir:nt})}function n(e,t){const r=e.options.env||process.env,i=process.cwd(),n=null!=e.options.cwd,s=n&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let o;try{o=Je.sync(e.command,{path:r[lt({env:r})],pathExt:t?Ie.delimiter:void 0})}catch(e){}finally{s&&process.chdir(i)}return o&&(o=Ie.resolve(n?e.options.cwd:"",o)),o}function s(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 o(e,t){return wt&&1===e&&!t.file?s(t.original,"spawn"):null}function a(e,t,r){const i=ct(e,t,r),n=Me.spawn(i.command,i.args,i.options);return yt.hookChildProcess(n,i),n}async function c(e,t){if(!e)throw Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,i=vr(t);return await new Promise(((t,n)=>{const s=e=>{e&&i.getBufferedLength()<=yr.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),n(e)};(async()=>{try{await xr(e,i),t()}catch(e){s(e)}})(),i.on("data",(()=>{i.getBufferedLength()>r&&s(new br)}))})),i.getBufferedValue()}function l(){var e;return void 0!==Br||(Br=(!!process.env.CI||0===(null===(e=process.getuid)||void 0===e?void 0:e.call(process)))&&null!==t(Je).sync("sudo",{nothrow:!0})),Br}function u(e,r,i){return l()?t(ot).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:i,stdio:"inherit"}):t(ot).sync(e,r,{stdio:"inherit"})}function d(e){return l()&&"string"==typeof process.env.SUDO_USER?"darwin"===process.platform?Ie.join("/Users/",process.env.SUDO_USER,e):Ie.join("/home/",process.env.SUDO_USER,e):t(qr)("~/"+e)}function p(e,r=["-NoProfile","-NoLogo","-NonInteractive"]){return t(ot)((()=>{if(void 0===Wr){const e=t(Je).sync("pwsh",{nothrow:!0});null!==e&&(Wr=e);const r=t(Je).sync("powershell",{nothrow:!0});null!==r&&(Wr=r)}if(void 0===Wr)throw Error("Could not find powershell");return Wr})(),[...r,"-c",e],{stdio:"inherit"})}async function h(e,r,i=!1){const n=i?void 0===(s=r)?"":t(Jr)(s):r;var s;try{if(Xr.isGitHubCI())try{We.exportVariable(e,n)}catch(t){Vr.error(t),await m(e,n)}else await m(e,n)}catch(t){Vr.error(t),We.setFailed(`Failed to export environment variable ${e}=${n}. You should add it manually.`)}}async function f(e){process.env.PATH=`${e}${Ie.delimiter}${process.env.PATH}`;try{if(Xr.isGitHubCI())try{We.addPath(e)}catch(t){Vr.error(t),await v(e)}else await v(e)}catch(t){Vr.error(t),We.setFailed(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}async function m(e,t){const r=null!=t?t:"";switch(process.platform){case"win32":return await p(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void We.info(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":return g(),Ae.appendFileSync(ei,`\nexport ${e}="${r}"\n`),void We.info(`${e}="${r}" was added to "${ei}`)}process.env[e]=r}async function v(e){switch(process.platform){case"win32":return await p(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),void We.info(e+" was added to the PATH.");case"linux":case"darwin":return g(),Ae.appendFileSync(ei,`\nexport PATH=${e}:$PATH\n`),void We.info(`${e} was added to "${ei}"`);default:return}}function g(){if(ti)return;const e="export SOURCE_CPPRC=0";if(Ae.existsSync(ei)&&Ae.readFileSync(ei,"utf8").includes(e))return;Ae.appendFileSync(ei,`\n${e}\n`),We.info(`Added ${e} to ${ei}`);const t=`\n# source .cpprc if SOURCE_CPPRC is not set to 0\nif [[ "$SOURCE_CPPRC" != 0 && -f "${ei}" ]]; then source "${ei}"; fi\n`;try{const e=d(".profile");Ae.appendFileSync(e,t),We.info(`${t} was added to ${e}`);const r=d(".bashrc");Ae.appendFileSync(r,t),We.info(`${t} was added to ${r}`)}catch(e){Vr.warning(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`)}ti=!0}function y(e,t,r=!0){We.info(`Installing ${e} ${null!=t?t:""} via apt`);const i="apt-get";if(process.env.DEBIAN_FRONTEND="noninteractive",ri||(u(i,["update","-y"]),ri=!0),!ii){u(i,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);try{u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","3B4FE6ACC0B21F32"]),u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","40976EAF437D05B5"]),u("apt-key",["adv","--keyserver","keyserver.ubuntu.com","--recv-keys","1E9377A2BA9EF27F"])}catch(e){Vr.warning("Failed to add keys: "+e)}ii=!0}if(Array.isArray(r)){for(const e of r)u("add-apt-repository",["--update","-y",e]);u(i,["update","-y"])}if(void 0!==t&&""!==t)try{u(i,["install","--fix-broken","-y",`${e}=${t}`])}catch{u(i,["install","--fix-broken","-y",`${e}-${t}`])}else u(i,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function w(e,t){return Xr.isGitHubCI()?u("update-alternatives",["--install","/usr/bin/"+e,e,t,"40"]):(g(),Ae.appendFileSync(ei,`\nif [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} 40; fi\n`))}function x(e,r){return We.info(`Installing ${e} ${null!=r?r:""} via brew`),si&&null!==t(Je).sync("brew",{nothrow:!0})||(i(0,0,process),si=!0),t(ot).sync("brew",["install",void 0!==r&&""!==r?`${e}@${r}`:e],{stdio:"inherit"}),{binDir:"/usr/local/bin/"}}async function b(e,r,i){if("win32"!==process.platform)return;if("string"==typeof ni)return{binDir:ni};const n=t(Je).sync("choco",{nothrow:!0});if(null!==n)return ni=Ie.dirname(n),{binDir:ni};let s="powershell.exe";const o=t(Je).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==o&&(s=o),t(ot).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 f(a);const c=t(Je).sync("choco",{nothrow:!0});var l;return ni=null!==c?Ie.dirname(c):(null!==(l=process.env.ChocolateyInstall)&&void 0!==l?l:"C:/ProgramData/chocolatey")+"/bin",Ae.existsSync(ni)?{binDir:ni}:void 0}async function E(e,r,i=[]){We.info(`Installing ${e} ${null!=r?r:""} via chocolatey`),oi&&null!==t(Je).sync("choco",{nothrow:!0})||(await b(0,0,process),oi=!0);const n=process.env.PATH,s={...process.env};if(delete s.TMP,delete s.TEMP,delete s.Path,s.PATH=n,void 0!==r&&""!==r)t(ot).sync("choco",["install","-y",e,"--version="+r,...i],{env:s,extendEnv:!1,stdio:"inherit"});else try{t(ot).sync("choco",["install","-y",e,...i],{env:s,extendEnv:!1,stdio:"inherit"})}catch(t){if(!t.message.includes("exit code 3010"))throw t;Vr.notice(e+" might require a reboot for the completion of the installation.")}var o;const a=(null!==(o=process.env.ChocolateyInstall)&&void 0!==o?o:"C:/ProgramData/chocolatey")+"/bin";return await f(a),{binDir:a}}function S(e){return"win32"===process.platform?e+".exe":e}function O(e){return"win32"===process.platform?e+".bat":e+".sh"}function _(e,t,r){switch(process.platform){case"win32":return E("7zip",e);case"darwin":return x("p7zip",e);case"linux":return y("p7zip-full",e);default:throw Error("Unsupported platform")}}function $(e,t){const r=[];t=t||wi.arch();const i=xi.join(P(),e);if(gi.existsSync(i)){const e=gi.readdirSync(i);for(const n of e)if(I(n)){const e=xi.join(i,n,t||"");gi.existsSync(e)&&gi.existsSync(e+".complete")&&r.push(n)}}return r}function C(e){return hi(this,void 0,void 0,(function*(){return e||(e=xi.join(N(),_i.default())),yield vi.mkdirP(e),e}))}function T(e,t,r){return hi(this,void 0,void 0,(function*(){const i=xi.join(P(),e,Ei.clean(t)||t,r||"");mi.debug("destination "+i);const n=i+".complete";return yield vi.rmRF(i),yield vi.rmRF(n),yield vi.mkdirP(i),i}))}function R(e,t,r){const i=xi.join(P(),e,Ei.clean(t)||t,r||"");gi.writeFileSync(i+".complete",""),mi.debug("finished caching tool")}function I(e){const t=Ei.clean(e)||"";mi.debug("isExplicit: "+t);const r=null!=Ei.valid(t);return mi.debug("explicit? "+r),r}function A(e,t){let r="";mi.debug(`evaluating ${e.length} versions`);for(let i=(e=e.sort(((e,t)=>Ei.gt(e,t)?1:-1))).length-1;i>=0;i--){const n=e[i];if(Ei.satisfies(n,t)){r=n;break}}return mi.debug(r?"matched: "+r:"match not found"),r}function P(){const e=process.env.RUNNER_TOOL_CACHE||"";return je.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function N(){const e=process.env.RUNNER_TEMP||"";return je.ok(e,"Expected RUNNER_TEMP to be defined"),e}function k(e,t){const r=qe[e];return void 0!==r?r:t}async function L(e,r){return await t(ot)(await(async()=>(void 0===ji&&(null===t(Je).sync("7z",{nothrow:!0})&&await _("",0,process),ji="7z"),ji))(),["x",e,"-o"+r,"-y"],{stdio:"inherit"}),r}function j(e,t){return L(e,t)}function D(e,t){return L(e,t)}async function M(e,r,i=["--strip-components=0"]){try{await ai.mkdirP(r)}catch{}try{await t(ot)("tar",["xf",e,"-C",r,...i],{stdio:"inherit"})}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&Vr.warning(`Failed to extract symlink ${e} to ${r}. Ignoring this symlink.`)}return r}async function F(e,t,r,i,n){var s,o;We.info(`Installing ${e} ${t} ${n} via direct downloading`),process.env.RUNNER_TEMP=null!==(s=process.env.RUNNER_TEMP)&&void 0!==s?s:Re.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(o=process.env.RUNNER_TOOL_CACHE)&&void 0!==o?o:Ie.join(Re.tmpdir(),"setup-cpp","hostedtoolcache");const{url:a,binRelativeDir:c,binFileName:l,extractedFolderName:u,extractFunction:d}=await r(t,process.platform,n);if(Xr.isGitHubCI())try{const r=ci.find(e,t);if(r){const i=Ie.join(r,u),n=Ie.join(i,c);if(Ae.existsSync(n)&&Ae.existsSync(Ie.join(n,l)))return We.info(`${e} ${t} was found in the cache at ${n}.`),await f(n),{installDir:i,binDir:n}}}catch{}const p=Ie.join(i,u),h=Ie.join(p,c),m=Ie.join(h,l);if(!Ae.existsSync(h)||!Ae.existsSync(m)){We.info(`Download and extract ${e} ${t}`),Di||("linux"===process.platform&&(y("unzip"),y("tar"),y("xz-utils")),Di=!0);try{const e=await ci.downloadTool(a);await(null==d?void 0:d(e,i))}catch(r){throw Error(`Failed to download ${e} ${t} ${n}: ${r}`)}}return We.info(`Add ${h} to PATH`),await f(h),Xr.isGitHubCI()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await ci.cacheDir(i,e,t),{installDir:p,binDir:h}}function U(e,t,r){const i=(e=>"win32"===e?"windows":e)(t),n=(e=>{switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e}})(r),s="win32"===t,o=s?"zip":"tar.gz";return{binRelativeDir:"",binFileName:S("task"),extractedFolderName:"",extractFunction:s?D:M,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${n}.${o}`}}function G(e,r,i){var n;const s=null!==(n=t(Fi)(e))&&void 0!==n?n:e;switch(r){case"win32":{const r=t(Mi)(s,"v3.19.6");let n;n=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const o=`cmake-${e}-${n}`;return{binRelativeDir:"bin/",binFileName:S("cmake"),extractedFolderName:o,extractFunction:D,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`}}case"darwin":{const r=`cmake-${e}-${t(Mi)(s,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:S("cmake"),extractedFolderName:r,extractFunction:ci.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`}}case"linux":{const r=t(Mi)(s,"v3.19.8");let n;n=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const o=`cmake-${e}-${n}`;return{binRelativeDir:"bin/",binFileName:S("cmake"),extractedFolderName:o,extractFunction:ci.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`}}default:throw Error(`Unsupported platform '${r}'`)}}function H(e,t,r){return F("cmake",e,G,t,r)}async function z(e,t,r){if(!Xr.isGitHubCI())return B(e,t);try{const{setupActionsPython:i}=await Ye("175fe");return i(e,t,r)}catch(r){return Vr.warning(""+r),B(e,t)}}async function B(e,t,r){switch(process.platform){case"win32":return t?await E("python3",e,["--params=/InstallDir:"+t]):await E("python3",e),await(async e=>{Vr.info(`Add ${e} to PATH`),await f(e)})(t),{installDir:t,binDir:t};case"darwin":return x("python3",e);case"linux":{const t=y("python3",e);return y("python3-pip"),t}default:throw Error("Unsupported platform")}}function q(e){return new Promise((t=>{Ne.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}function V(e,t){return Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse()}function X(e,t,r=null){if(Y(t,e)){if("linux"===process.platform&&null!==r&&e in zi){const t=r[0];return parseInt(Object.keys(zi[e])[0],10)>t?"":zi[e][t]}return Hi[e]}return null!=t?t:""}function Y(e,t){return"true"===e||void 0===e&&t in Hi}async function W(e,r){if(We.info(`Installing ${e} ${null!=r?r:""} via pip`),void 0===Bi){if(null!==t(Je).sync("python3",{nothrow:!0}))Bi="python3";else{if(null===t(Je).sync("python",{nothrow:!0})||!await(async(e,r,i=/v?(\d\S*)/)=>{const n=await(async(e,t=/v?(\d\S*)/)=>{try{var r;const i=await $i.getExecOutput(e,["--version"]);return null===(r=(i.stdout||i.stderr||"").trim().match(t))||void 0===r?void 0:r[1]}catch(e){return void console.error(e)}})(e,i);return"string"==typeof n&&"string"==typeof r&&""!==n&&""!==r&&-1!==t(Ui)(n,r)})("python","3.0.0")){if(We.info("python3 was not found. Installing python"),await z(X("python",void 0),"",process.arch),Vi)throw Error("Failed to install python");return Vi=!0,W(e,r)}Bi="python"}"win32"===process.platform?t(ot).sync(Bi,["-m","pip","install","-U","pip==21.3.1"],{stdio:"inherit"}):"linux"===process.platform&&y("python3-pip"),t(ot).sync(Bi,["-m","pip","install","-U","wheel"],{stdio:"inherit"})}if(t(ot).sync(Bi,["-m","pip","install",void 0!==r&&""!==r?`${e}==${r}`:e],{stdio:"inherit"}),void 0===qi){if("linux"===process.platform)qi="/home/runner/.local/bin/";else if("darwin"===process.platform)qi="/usr/local/bin/";else try{qi=Ie.join((await $i.getExecOutput(Bi+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{qi=Ie.join((await $i.getExecOutput(Bi+' -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}We.info(qi+" to PATH"),await f(qi)}return{binDir:qi}}async function J(e,t,r){switch(process.platform){case"win32":return await E("graphviz",e),(async()=>{if("win32"===process.platform){const e="C:/Program Files/Graphviz/bin";return await f(e),{binDir:e}}throw Error("Unsupported platform")})();case"darwin":return x("graphviz",e);case"linux":return y("graphviz",e);default:throw Error("Unsupported platform")}}function K(e,t,r){switch(t){case"linux":{const t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:S("doxygen"),extractedFolderName:t,extractFunction:ci.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`}}case"win32":{const t="doxygen-"+e;return{binRelativeDir:"",binFileName:S("doxygen"),extractedFolderName:t,extractFunction:D,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`}}default:throw Error(`Unsupported platform '${t}'`)}}async function Q(){if("darwin"===process.platform)try{const e=await $i.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await h("SDKROOT",t.trim()):Vr.error("SDKROOT not set")}catch(e){Vr.error(e)}}function Z(e,t,r){if("win32"===t){const t=Wi[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);const i="ia32"===r?"i686":"x86_64",n="seh";return{binRelativeDir:"bin/",binFileName:S("g++"),extractedFolderName:"mingw64",extractFunction:L,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${i}-posix-${n}-gcc-${t.fileSuffix}.7z`}}throw Error(`Unsupported platform '${t}'`)}async function ee(e,r,i){let n;switch(process.platform){case"win32":"arm"!==i&&"arm64"!==i||await E("gcc-arm-embedded",e);try{n=await F("g++",e,Z,r,i)}catch(t){Vr.info(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),n=await(async(e,t)=>{let r;var i,n;return await E("mingw",e),"x64"===t&&Ae.existsSync("C:/tools/mingw64/bin")?(r="C:/tools/mingw64/bin",await f(r)):"ia32"===t&&Ae.existsSync("C:/tools/mingw32/bin")?(r="C:/tools/mingw32/bin",await f(r)):Ae.existsSync((null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey")+"/bin/g++.exe")&&(r=(null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey")+"/bin"),void 0!==r?{binDir:r}:void 0})(e,i)}break;case"darwin":n=x("gcc",e);break;case"linux":"x64"===i?(y("gcc",e,["ppa:ubuntu-toolchain-r/test"]),n=y("g++",e,[])):(Vr.info(`Install g++-multilib because gcc for ${i} was requested`),y("gcc-multilib",e,["ppa:ubuntu-toolchain-r/test"]),n=y("g++-multilib",e,[]));break;default:throw Error("Unsupported platform for "+i)}if(void 0!==n)return await(async(e,r)=>{const i=[];if("win32"===process.platform)i.push(h("CC",S(r+"/gcc")),h("CXX",S(r+"/g++")));else{var n;const s=t(Xi)(null!==(n=t(Fi)(e))&&void 0!==n?n:e);5>s?(i.push(h("CC",`${r}/gcc-${e}`),h("CXX",`${r}/g++-${e}`)),"linux"===process.platform&&(w("cc",`${r}/gcc-${e}`),w("cxx",`${r}/g++-${e}`),w("gcc",`${r}/gcc-${e}`),w("g++",`${r}/g++-${e}`))):(i.push(h("CC",`${r}/gcc-${s}`),h("CXX",`${r}/g++-${s}`)),"linux"===process.platform&&(w("cc",`${r}/gcc-${s}`),w("cxx",`${r}/g++-${s}`),w("gcc",`${r}/gcc-${s}`),w("g++",`${r}/g++-${s}`)))}i.push(Q()),Xr.isGitHubCI()&&(()=>{const e=t(Ie).join(Yi,"gcc_matcher.json");if(!Ae.existsSync(e))return Vr.warning("the gcc_matcher.json file does not exist in the same folder as setup_cpp.js");Vr.info("::add-matcher::"+e)})(),await Promise.all(i)})(e,n.binDir),n}function te(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function re(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function ie(e,r){switch(e){case"darwin":return(e=>{if(Qi.has(e))return null;const r="clang+llvm-",i=`-x86_64${"9.0.0"===e?"-darwin-apple":"-apple-darwin"}.tar.xz`;return t(Mi)(e,"9.0.1")?re(e,r,i):te(e,r,i)})(r);case"linux":return(e=>{let r=e;const i=Zi.get(r);let n;if(void 0!==i&&(r=i),r.includes("ubuntu")){const e=r.replace(/-ubuntu-.*/,"");if(!Ki.has(e))throw Error("Unsupported Ubuntu version: "+e);n=r.replace(e,""),r=V(Ki,e)[0]}else""!==r&&r in en?n=en[r]:(n=en["14.0.0"],Vr.warning(`Falling back to LLVM version 14.0.0 ${n} for the Ubuntu.`));const s="clang+llvm-",o="5.0.0"===r?`-linux-x86_64${n}.tar.xz`:`-x86_64-linux-gnu${n}.tar.xz`;return t(Mi)(r,"9.0.1")?re(r,s,o):te(r,s,o)})(r);case"win32":return(async e=>{if(tn.has(e))return null;const r="LLVM-",i=t(Mi)(e,"3.7.0")?"-win32.exe":"-win64.exe",n=t(Mi)(e,"9.0.1");let s,o=!1;return n&&(s=re(e,r,i),await q(s)||(o=!0)),!o&&n||(s=te(e,r,i)),s})(r);default:return null}}async function ne(e,t,r){const[i,n]=await(async(e,t,r,i)=>{if("linux"===t&&r.includes("ubuntu")){const e=await i(t,r);if(null!==e&&await q(e))return[r,e]}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const n of V(e,r)){const e=await i(t,n);if(null!==e&&await q(e))return[n,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(Ki,t,e,ie);return We.setOutput("version",i),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:S("clang"),extractFunction:"win32"===t?j:(e,t)=>M(e,t,["--strip-components=1"])}}async function se(e,r,i){const n=await oe(e,r,i);var s;return await(async(e,r)=>{const i=(e=>{if(null===t(Gi)(e))try{const r=t(Fi)(e);if(null!==r)return Vr.info(`Coerced version '${e}' to '${r}'`),r.version}catch(e){}return e})(r),n=Ie.join(e,"lib");var s;const o=null!==(s=process.env.LD_LIBRARY_PATH)&&void 0!==s?s:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"",l=[h("LLVM_PATH",e),h("LD_LIBRARY_PATH",`${n}${Ie.delimiter}${o}`),h("DYLD_LIBRARY_PATH",`${n}${Ie.delimiter}${c}`),h("LDFLAGS",`-L"${e}/lib"`),h("CPPFLAGS",`-I"${e}/include"`),h("CC",S(e+"/bin/clang")),h("CXX",S(e+"/bin/clang++")),h("LIBRARY_PATH",e+"/lib"),Q()];if("win32"!==process.platform){const r=t(Xi)(i);Ae.existsSync(`${e}/lib/clang/${i}/include`)?l.push(h("CPATH",`${e}/lib/clang/${i}/include`)):Ae.existsSync(`${e}/lib/clang/${r}/include`)&&l.push(h("CPATH",`${e}/lib/clang/${r}/include`))}"linux"===process.platform&&(w("cc",e+"/bin/clang"),w("cxx",e+"/bin/clang++"),w("clang",e+"/bin/clang"),w("clang++",e+"/bin/clang++"),w("lld",e+"/bin/lld"),w("ld.lld",e+"/bin/ld.lld"),w("llvm-ar",e+"/bin/llvm-ar")),Xr.isGitHubCI()&&ce(),await Promise.all(l)})(null!==(s=n.installDir)&&void 0!==s?s:r,e),n}async function oe(e,t,r){const i=await F("llvm",e,ne,t,r);return rn||("linux"===process.platform&&(await ee(X("gcc",void 0),"",r),y("libtinfo-dev")),rn=!0),i}function ae(e,t,r){return Xr.isGitHubCI()&&ce(),oe(e,t,r)}function ce(){const e=Ie.join(Ji,"llvm_matcher.json");if(!Ae.existsSync(e))return Vr.warning("the llvm_matcher.json file does not exist in the same folder as setup_cpp.js");Vr.info("::add-matcher::"+e)}function le(e,t,r){const i=new fn(e,t,r);process.stdout.write(""+i+pn.EOL)}function ue(e){un.issue("error",e instanceof Error?""+e:e)}function de(e){un.issue("group",e)}function pe(){un.issue("endgroup")}function he(e){return Object.values(Cn).includes(e)?e:e in Cn?Cn[e]:e}function fe(e){if(Object.keys(Cn).includes(e))return e;for(const[t,r]of Object.entries(Cn))if(r===e)return t;return e}function me(e){const t=he(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let i=((e,t)=>{try{return(""+Me.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){an.warning("vswhere failed: "+e)}return null})(0,r);if(i&&Ae.existsSync(i))return an.info("Found with vswhere: "+i),i;an.info("Not found with vswhere");const n=e?[fe(e)]:$n;for(const e of On)for(const t of n)for(const r of _n)if(i=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,an.info("Trying standard location: "+i),Ae.existsSync(i))return an.info("Found standard location: "+i),i;if(an.info("Not found in standard locations"),i=Sn+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",Ae.existsSync(i))return an.info("Found VS 2015: "+i),i;throw an.info("Not found in VS 2015 location: "+i),Error("Microsoft Visual Studio not found")}function ve(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}async function ge(e,t,r,i,n,s,o){void 0!==t&&Ae.existsSync(t)&&(Vr.info(`Adding ${t} to PATH`),await h("VCTargetsPath",t)),on((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),n,i,s,o,e)}async function ye(e,r,i,n,s,o){if("win32"!==process.platform)return;const a=nn(e);Vr.info(`Checking if MSVC ${a} is already installed`);let c,l,u=!1;try{const e=sn(a);u=!0,Vr.info("Found the pre-installed version of MSVC at "+e)}catch{}if(!u)try{"14.0"===a?(c="14.0",await E("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 E("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 E("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 E("visualstudio2022buildtools","117.0.5.0",[]),l=void 0):Vr.error(`The given MSVC versions ${e} is not supported yet.`)}catch(e){Vr.error(e)}await ge(a,l,i,c,n,s,o),Xr.isGitHubCI()&&(()=>{const e=t(Ie).join(In,"msvc_matcher.json");if(!Ae.existsSync(e))return Vr.warning("the msvc_matcher.json file does not exist in the same folder as setup_cpp.js");Vr.info("::add-matcher::"+e)})()}function we(e,t,r){const i=(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:S("ninja"),extractedFolderName:"",extractFunction:D,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${i}.zip`}}function xe(e){return null==e?[]:Array.isArray(e)?e:[e]}function be(e,t,r,i){var n,s=e[t],o=~i.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~i.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(n=+r)==0?n:r),!!r)):0*(n=+r)==0?n:r;e[t]=null==s?o:Array.isArray(s)?s.concat(o):[s,o]}function Ee(e){const t=parseInt(e.replace(/^v/,""),10);return 38===t&&(e="v38"),39>t?{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"kcov-"+t,binRelativeDir:"build/",binFileName:S("kcov"),extractFunction:Se}:{url:`https://github.com/SimonKagstrom/kcov/releases/download/v${t}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:S("kcov"),extractFunction:M}}async function Se(e,r){const i=await M(e,r,["--strip-components=1"]);return null===t(Je).sync("cmake",{nothrow:!0})&&await H(X("cmake",void 0),Ie.join(t(qr)(""),"cmake"),""),"linux"===process.platform&&(y("libdw-dev"),y("libcurl4-openssl-dev")),await t(ot)("cmake",["-S","./","-B","./build"],{cwd:i,stdio:"inherit"}),await t(ot)("cmake",["--build","./build","--config","Release"],{cwd:i,stdio:"inherit"}),u("cmake",["--install","./build"],i),i}async function Oe(e){Xr.isGitHubCI()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=_e(e);var i;r.help&&Vr.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--meson\n--conan\n--make\n--task\n--ccache\n--cppcheck\n--clangformat\n--clangtidy\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n\n--python\n--choco\n--brew\n--sevenzip\n--graphviz\n ');const n=null!==(i=r.architecture)&&void 0!==i?i:process.arch;var s;const o=null!==(s=process.env.SETUP_CPP_DIR)&&void 0!==s?s:d(""),a=[],c=[],l=An.create({autoloadLocales:!0});let u,p;An.addLocale(t(Rn)),Pn.addLocale(t(Nn));let f=null;try{f=await(async()=>{if("linux"===process.platform){const e=await kn.getUbuntuVersion();if(0===e.length)throw Error("Failed to get the ubuntu major version.");return e}return null})()}catch(e){Vr.warning(""+e)}if(!((e,t)=>{for(let r=0;t.length>r;r++){const i=t.slice(0,r).concat(t.slice(r+1)),n=t[r];if(!Y(e[n],n))for(let t=0;i.length>t;t++){const r=i[t];if(Y(e[r],i[t]))e[r]=e[n];else if(e[n]!==e[i[t]])return!1}}return!0})(r,["llvm","clangtidy","clangformat"]))return Vr.error("The same version must be used for llvm, clangformat and clangtidy"),1;for(const e of Dn){const t=r[e];if(void 0!==t){u=Date.now(),We.startGroup(`Installing ${e} ${t}`);try{let r;if("vcvarsall"===e)await ge(X(e,t,f),void 0,n,void 0,void 0,!1,!1);else{const i=jn[e],s=Ie.join(o,["llvm","clangformat","clangtidy"].includes(e)?"llvm":e);r=await i(X(e,t,f),s,n)}a.push(Te(e,r))}catch(t){Vr.error(t),c.push(e+" failed to install")}We.endGroup(),p=Date.now(),Vr.info("took "+(l.format(u,p)||"0 seconds"))}}const m=r.compiler;u=Date.now();try{if(void 0!==m){const{compiler:e,version:t}=$e(m);switch(We.startGroup(`Installing ${e} ${null!=t?t:""}`),e){case"llvm":case"clang":case"clang++":{const e=await se(X("llvm",t,f),Ie.join(o,"llvm"),n);a.push(Te("llvm",e));break}case"gcc":case"mingw":case"cygwin":case"msys":{const e=await ee(X("gcc",t,f),Ie.join(o,"gcc"),n);a.push(Te("gcc",e));break}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{const e=await ye(X("msvc",t,f),Ie.join(o,"msvc"),n);a.push(Te("msvc",e));break}case"appleclang":case"applellvm":We.notice("Assuming apple-clang is already installed"),await Promise.all([h("CC","clang"),h("CXX","clang++")]),a.push(Te("apple-clang",void 0));break;default:c.push("Unsupported compiler "+e)}We.endGroup(),p=Date.now(),Vr.info("took "+(l.format(u,p)||"0 seconds"))}}catch(e){Vr.error(e),c.push("Failed to install the "+m),We.endGroup(),p=Date.now(),Vr.info("took "+(l.format(u,p)||"0 seconds"))}if(0===a.length&&0===c.length)return Vr.warning("setup_cpp was called without any arguments. Nothing to do."),0;if(a.forEach((e=>Vr.success(e))),c.forEach((e=>Vr.error(e))),Vr.info("setup_cpp finished"),!Xr.isGitHubCI())switch(process.platform){case"win32":Vr.warning("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":Vr.warning("Run `source ~/.cpprc` or restart your shell to update the environment.")}return 0===c.length?0:1}function _e(e){return((e,t)=>{var r,i,n,s,o,a={_:[]},c=0,l=0,u=0,d=(e=e||[]).length;const p=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=xe(t.string),t.boolean=xe(t.boolean),p)for(r in t.alias)for(i=t.alias[r]=xe(t.alias[r]),c=0;i.length>c;c++)(t.alias[i[c]]=i.concat(r)).splice(c,1);for(c=t.boolean.length;c-- >0;)for(l=(i=t.alias[t.boolean[c]]||[]).length;l-- >0;)t.boolean.push(i[l]);for(c=t.string.length;c-- >0;)for(l=(i=t.alias[t.string[c]]||[]).length;l-- >0;)t.string.push(i[l]);if(f)for(r in t.default)if(s=typeof t.default[r],i=t.alias[r]=t.alias[r]||[],void 0!==t[s])for(t[s].push(r),c=0;i.length>c;c++)t[s].push(i[c]);const m=h?Object.keys(t.alias):[];for(c=0;d>c;c++){if("--"===(n=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;n.length>l&&45===n.charCodeAt(l);l++);if(0===l)a._.push(n);else if("no-"===n.substring(l,l+3)){if(s=n.substring(l+3),h&&!~m.indexOf(s))return t.unknown(n);a[s]=!1}else{for(u=l+1;n.length>u&&61!==n.charCodeAt(u);u++);for(s=n.substring(l,u),o=n.substring(++u)||c+1===d||45===(""+e[c+1]).charCodeAt(0)||e[++c],i=2===l?[s]:s,u=0;i.length>u;u++){if(s=i[u],h&&!~m.indexOf(s))return t.unknown("-".repeat(l)+s);be(a,s,i.length>u+1||o,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(p)for(r in a)for(i=t.alias[r]||[];i.length>0;)a[i.shift()]=a[r];return a})(e,{string:Mn,default:Object.fromEntries(Mn.map((e=>[e,Ce(e)]))),alias:{h:"help"},boolean:"help"})}function $e(e){const r=e.split("-"),i=r[0];if(1 in r){const e=r[1];return null!==t(Gi)(e)||Vr.info(`Invalid semver version ${e} used for the compiler.`),{compiler:i,version:e}}return{compiler:i,version:void 0}}function Ce(e){const t=We.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function Te(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 Re=require("os"),Ie=require("path"),Ae=require("fs"),Pe=require("http"),Ne=require("https");require("net");var ke=require("tls"),Le=require("events"),je=require("assert"),De=require("util"),Me=require("child_process"),Fe=require("crypto"),Ue=require("string_decoder"),Ge=require("timers"),He=require("buffer"),ze=require("stream"),Be=require("process"),qe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Ve={},Xe={},Ye=qe.parcelRequire810d;null==Ye&&((Ye=e=>{if(e in Ve)return Ve[e].exports;if(e in Xe){var t=Xe[e];delete Xe[e];var r={id:e,exports:{}};return Ve[e]=r,t.call(r.exports,r,r.exports),r.exports}var i=Error("Cannot find module '"+e+"'");throw i.code="MODULE_NOT_FOUND",i}).register=(e,t)=>{Xe[e]=t},qe.parcelRequire810d=Ye),Ye.register("iQ0s7",(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 i(e,t={}){u.issueCommand("error",p.toCommandProperties(t),e instanceof Error?""+e:e)}function n(e){u.issue("group",e)}function s(){u.issue("endgroup")}var o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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)&&o(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.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=Ye("8inDk"),d=Ye("8svd2"),p=Ye("awPJK");const h=c(Re),f=c(Ie);var m,v,g=Ye("b10e8");(v=m=e.exports.ExitCode||(e.exports.ExitCode={}))[v.Success=0]="Success",v[v.Failure=1]="Failure",e.exports.exportVariable=(e,t)=>{const r=p.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";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 i=r(e,t);if(["true","True","TRUE"].includes(i))return!0;if(["false","False","FALSE"].includes(i))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,i(e)},e.exports.isDebug=()=>"1"===process.env.RUNNER_DEBUG,e.exports.debug=e=>{u.issueCommand("debug",{},e)},e.exports.error=i,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=n,e.exports.endGroup=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;n(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 g.OidcClient.getIDToken(e)}))};var y=Ye("ipHtx");Object.defineProperty(e.exports,"summary",{enumerable:!0,get(){return y.summary}}),y=Ye("ipHtx"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get(){return y.markdownSummary}})})),Ye.register("8inDk",(function(e,t){"use strict";function r(e,t,r){const i=new c(e,t,r);process.stdout.write(""+i+o.EOL)}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),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)&&i(t,e,r);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const o=s(Re);var a=Ye("awPJK");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 i in this.properties)if(this.properties.hasOwnProperty(i)){const n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${t=n,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}}})),Ye.register("awPJK",((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}:{}})),Ye.register("8svd2",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const s=n(Ae),o=n(Re);var a=Ye("awPJK");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)}${o.EOL}`,{encoding:"utf8"})}})),Ye.register("b10e8",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var i=Ye("4z9RF"),n=Ye("7v249"),s=Ye("iQ0s7");class o{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new i.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(o.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=o.createHttpClient(),i=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}`)})),n=null===(t=i.result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n}))}static getIDToken(e){return r(this,void 0,void 0,(function*(){try{let t=o.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),s.debug("ID token url is "+t);const r=yield o.getCall(t);return s.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}e.exports.OidcClient=o})),Ye.register("4z9RF",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.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 o=n(Pe),a=n(Ne),c=n(Ye("2IaKG")),l=n(Ye("bbp3j"));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],v=[u.BadGateway,u.ServiceUnavailable,u.GatewayTimeout],g=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype)}}e.exports.HttpClientError=y;class 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,i){return s(this,void 0,void 0,(function*(){return this.request(e,t,r,i)}))}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 i=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 n=yield this.post(e,i,r);return this._processResponse(n,this.requestOptions)}))}putJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const i=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 n=yield this.put(e,i,r);return this._processResponse(n,this.requestOptions)}))}patchJson(e,t,r={}){return s(this,void 0,void 0,(function*(){const i=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 n=yield this.patch(e,i,r);return this._processResponse(n,this.requestOptions)}))}request(e,t,r,i){return s(this,void 0,void 0,(function*(){if(this._disposed)throw Error("Client has already been disposed.");const n=new URL(t);let s=this._prepareRequest(e,n,i);const o=this._allowRetries&&g.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 o=a.message.headers.location;if(!o)break;const c=new URL(o);if("https:"===n.protocol&&n.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!==n.hostname)for(const e in i)"authorization"===e.toLowerCase()&&delete i[e];s=this._prepareRequest(e,c,i),a=yield this.requestRaw(s,r),t--}if(!a.message.statusCode||!v.includes(a.message.statusCode))return a;c+=1,o>c&&(yield a.readBody(),yield this._performExponentialBackoff(c))}while(o>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,i)=>{this.requestRawWithCallback(e,t,((e,t)=>{e?i(e):t?r(t):i(Error("Unknown error"))}))}))}))}requestRawWithCallback(e,t,r){function i(e,t){n||(n=!0,r(e,t))}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let n=!1;const s=e.httpModule.request(e.options,(e=>{i(void 0,new w(e))}));let o;s.on("socket",(e=>{o=e})),s.setTimeout(this._socketTimeout||18e4,(()=>{o&&o.end(),i(Error("Request timeout: "+e.options.path))})),s.on("error",(e=>{i(e)})),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{s.end()})),t.pipe(s)):s.end()}getAgent(e){const t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const i={};i.parsedUrl=t;const n="https:"===i.parsedUrl.protocol;i.httpModule=n?a:o;const s=n?443:80;if(i.options={},i.options.host=i.parsedUrl.hostname,i.options.port=i.parsedUrl.port?parseInt(i.parsedUrl.port):s,i.options.path=(i.parsedUrl.pathname||"")+(i.parsedUrl.search||""),i.options.method=e,i.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(i.options.headers["user-agent"]=this.userAgent),i.options.agent=this._getAgent(i.parsedUrl),this.handlers)for(const e of this.handlers)e.prepareRequest(i.options);return i}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},x(this.requestOptions.headers),x(e||{})):x(e||{})}_getExistingOrDefaultHeader(e,t,r){let i;return this.requestOptions&&this.requestOptions.headers&&(i=x(this.requestOptions.headers)[t]),e[t]||i||r}_getAgent(e){let t;const r=c.getProxyUrl(e),i=r&&r.hostname;if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const n="https:"===e.protocol;let s=100;if(this.requestOptions&&(s=this.requestOptions.maxSockets||o.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 i;const o="https:"===r.protocol;i=n?o?l.httpsOverHttps:l.httpsOverHttp:o?l.httpOverHttps:l.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:s};t=n?new a.Agent(e):new o.Agent(e),this._agent=t}return t||(t=n?a.globalAgent:o.globalAgent),n&&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,i)=>s(this,void 0,void 0,(function*(){const n=e.message.statusCode||0,s={statusCode:n,result:null,headers:{}};let o,a;n===u.NotFound&&r(s);try{a=yield e.readBody(),a&&a.length>0&&(o=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=o),s.headers=e.message.headers}catch(e){}if(n>299){let e;e=o&&o.message?o.message:a&&a.length>0?a:`Failed request: (${n})`;const t=new y(e,n);t.result=s.result,i(t)}else r(s)}))))}))}};const x=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{})})),Ye.register("2IaKG",((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 i=[e.hostname.toUpperCase()];"number"==typeof r&&i.push(`${i[0]}:${r}`);for(const e of t.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e)))if(i.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 i=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return i?new URL(i):void 0},e.exports.checkBypass=r})),Ye.register("bbp3j",((e,t)=>{e.exports=Ye("fNJ5J")})),Ye.register("fNJ5J",(function(t,r){function i(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||Pe.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,i,n)=>{for(var o=s(r,i,n),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===o.host&&l.port===o.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function n(e,t){var r=this;i.prototype.createSocket.call(r,e,(i=>{var n=e.request.getHeader("host"),s=o({},r.options,{socket:i,servername:n?n.replace(/:.*$/,""):e.host}),a=ke.connect(0,s);r.sockets[r.sockets.indexOf(i)]=a,t(a)}))}function s(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function o(e){for(var t=1,r=arguments.length;r>t;++t){var i=arguments[t];if("object"==typeof i)for(var n=Object.keys(i),s=0,o=n.length;o>s;++s){var a=n[s];void 0!==i[a]&&(e[a]=i[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 i(e);return t.request=Pe.request,t},c=e=>{var t=new i(e);return t.request=Pe.request,t.createSocket=n,t.defaultPort=443,t},l=e=>{var t=new i(e);return t.request=Ne.request,t},u=e=>{var t=new i(e);return t.request=Ne.request,t.createSocket=n,t.defaultPort=443,t},De.inherits(i,Le.EventEmitter),i.prototype.addRequest=function(e,t,r,i){var n=this,a=o({request:e},n.options,s(t,r,i));this.maxSockets>n.sockets.length?n.createSocket(a,(t=>{function r(){n.emit("free",t,a)}function i(e){n.removeSocket(t),t.removeListener("free",r),t.removeListener("close",i),t.removeListener("agentRemove",i)}t.on("free",r),t.on("close",i),t.on("agentRemove",i),e.onSocket(t)})):n.requests.push(a)},i.prototype.createSocket=function(e,t){function r(r,s,o){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 i.removeSocket(n)):o.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 i.removeSocket(n)):(p("tunneling connection has established"),i.sockets[i.sockets.indexOf(n)]=s,t(s))}var i=this,n={};i.sockets.push(n);var s=o({},i.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=i.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,i)=>{process.nextTick((()=>{r(e,t,i)}))})),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),i.removeSocket(n)})),a.end()},i.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=()=>{}})),Ye.register("7v249",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.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")}))}}})),Ye.register("ipHtx",(function(e,t){"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.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:i,appendFile:n,writeFile:s}=Ae.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 o=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 i(t,Ae.constants.R_OK|Ae.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 i=Object.entries(r).map((([e,t])=>` ${e}="${t}"`)).join("");return t?`<${e}${i}>${t}</${e}>`:`<${e}${i}>`}write(e){return r(this,void 0,void 0,(function*(){const t=!!(null==e?void 0:e.overwrite),r=yield this.filePath(),i=t?s:n;return yield i(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()}))}clear(){return r(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:!0})}))}stringify(){return this._buffer}isEmptyBuffer(){return 0===this._buffer.length}emptyBuffer(){return this._buffer="",this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(Re.EOL)}addCodeBlock(e,t){const r=Object.assign({},t&&{lang:t}),i=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(i).addEOL()}addList(e,t=!1){const r=t?"ol":"ul",i=e.map((e=>this.wrap("li",e))).join(""),n=this.wrap(r,i);return this.addRaw(n).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:i,rowspan:n}=e,s=t?"th":"td",o=Object.assign(Object.assign({},i&&{colspan:i}),n&&{rowspan:n});return this.wrap(s,r,o)})).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:i,height:n}=r||{},s=Object.assign(Object.assign({},i&&{width:i}),n&&{height:n}),o=this.wrap("img",null,Object.assign({src:e,alt:t},s));return this.addRaw(o).addEOL()}addHeading(e,t){const r="h"+t,i=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",n=this.wrap(i,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}),i=this.wrap("blockquote",e,r);return this.addRaw(i).addEOL()}addLink(e,t){const r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL()}};e.exports.markdownSummary=o,e.exports.summary=o})),Ye.register("ftrAD",((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 i=0;r.length>i;i++){var n=r[i].toLowerCase();if(n&&e.substr(-n.length).toLowerCase()===n)return!0}return!1})(t,r)}function i(e,t,i){Ae.stat(e,((n,s)=>{i(n,!n&&r(s,e,t))}))}e.exports=i,i.sync=(e,t)=>r(Ae.statSync(e),e,t)})),Ye.register("9yF3I",((e,t)=>{function r(e,t,r){Ae.stat(e,((e,n)=>{r(e,!e&&i(n,t))}))}function i(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,i=e.uid,n=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=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&&n===o||r&a&&i===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>i(Ae.statSync(e),t)})),Ye.register("bJALw",((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")})),Ye.register("ditiY",((t,r)=>{function i(e){return l.isGitHubCI()?c.error(e):console.log(`${e}`)}function n(e){return console.log(`${e}`)}function s(e){return l.isGitHubCI()?c.warning(e):console.log(`${e}`)}function o(e){return l.isGitHubCI()?c.notice(e):console.log(`${e}`)}function a(e){return l.isGitHubCI()?c.info(e):console.log(e)}e(t.exports,"error",(()=>i)),e(t.exports,"success",(()=>n)),e(t.exports,"warning",(()=>s)),e(t.exports,"notice",(()=>o)),e(t.exports,"info",(()=>a));var c=Ye("iQ0s7"),l=Ye("di6NI")})),Ye.register("di6NI",((t,r)=>{function i(){return"true"===process.env.CI&&"true"===process.env.GITHUB_ACTIONS}e(t.exports,"isGitHubCI",(()=>i))})),Ye.register("fvrnx",(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 i(e){return u(this,void 0,void 0,(function*(){je.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function n(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(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 i=[];for(const n of r){const r=yield h.tryGetExecutablePath(p.join(n,e),t);r&&i.push(r)}return i}))}function s(e,t,r,n){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield i(t);const a=yield h.readdir(e);for(const i of a){const a=`${e}/${i}`,c=`${t}/${i}`;(yield h.lstat(a)).isDirectory()?yield s(a,c,r,n):yield o(a,c,n)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function o(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,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.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(Me),p=l(Ie),h=l(Ye("2GOko")),f=De.promisify(d.exec),m=De.promisify(d.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:i,recursive:n,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()&&!i)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(!n)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield s(e,l,0,i)}else{if(""===p.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield o(e,l,i)}}))},e.exports.mv=function(e,t,n={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let i=!0;if((yield h.isDirectory(t))&&(t=p.join(t,p.basename(e)),i=yield h.exists(t)),i){if(null!=n.force&&!n.force)throw Error("Destination already exists");yield r(t)}}yield i(p.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=i,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 i=yield n(t);return i&&i.length>0?i[0]:""}))},e.exports.findInPath=n})),Ye.register("2GOko",(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 i,n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),o=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 s(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.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=o(Ae),l=o(Ie);e.exports.chmod=(i=c.promises).chmod,e.exports.copyFile=i.copyFile,e.exports.lstat=i.lstat,e.exports.mkdir=i.mkdir,e.exports.readdir=i.readdir,e.exports.readlink=i.readlink,e.exports.rename=i.rename,e.exports.rmdir=i.rmdir,e.exports.stat=i.stat,e.exports.symlink=i.symlink,e.exports.unlink=i.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,i){return a(this,void 0,void 0,(function*(){let n;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(i.some((t=>t.toUpperCase()===e)))return t}else if(r(n))return t;const s=t;for(const o of i){t=s+o,n=void 0;try{n=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),i=l.basename(t).toUpperCase();for(const n of yield e.exports.readdir(r))if(i===n.toUpperCase()){t=l.join(r,n);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(n))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}})),Ye.register("6kHxT",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const o=n(Ye("4URNm"));var a=Ye("iQ0s7");e.exports._findMatch=function(t,r,i,n){return s(this,void 0,void 0,(function*(){const s=Re.platform();let c,l,u;for(const c of i){const i=c.version;if(a.debug(`check ${i} satisfies ${t}`),o.satisfies(i,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${n} && ${t.platform}===${s}`);let r=t.arch===n&&t.platform===s;if(r&&t.platform_version){const i=e.exports._getOsVersion();r=i===t.platform_version||o.satisfies(i,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=Re.platform();let r="";if("darwin"===t)r=""+Me.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 Ae.existsSync(e)?r=""+Ae.readFileSync(e):Ae.existsSync(t)&&(r=""+Ae.readFileSync(t)),r}})),Ye.register("4URNm",((e,t)=>{var r=Ye("bikcG");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Ye("bgOMw").SEMVER_SPEC_VERSION,SemVer:Ye("7qUJS"),compareIdentifiers:Ye("12NXI").compareIdentifiers,rcompareIdentifiers:Ye("12NXI").rcompareIdentifiers,parse:Ye("gdrva"),valid:Ye("fVzwP"),clean:Ye("hOYls"),inc:Ye("dGcr6"),diff:Ye("bBssn"),major:Ye("fB2B7"),minor:Ye("bye2i"),patch:Ye("87ZGF"),prerelease:Ye("4agny"),compare:Ye("howpO"),rcompare:Ye("zcbgY"),compareLoose:Ye("iGBo4"),compareBuild:Ye("80ezM"),sort:Ye("4qmtg"),rsort:Ye("4pjXu"),gt:Ye("6KPS4"),lt:Ye("lr5pz"),eq:Ye("jXghC"),neq:Ye("fqqGA"),gte:Ye("5cRW4"),lte:Ye("fwsB7"),cmp:Ye("823yM"),coerce:Ye("1YYsi"),Comparator:Ye("eR6XK"),Range:Ye("hvUff"),satisfies:Ye("c8FZS"),toComparators:Ye("2J2hR"),maxSatisfying:Ye("lbfMG"),minSatisfying:Ye("5wbuE"),minVersion:Ye("hZRNG"),validRange:Ye("fqnzG"),outside:Ye("77bPN"),gtr:Ye("gD8Tz"),ltr:Ye("bpPww"),intersects:Ye("cHIUn"),simplifyRange:Ye("k8aCs"),subset:Ye("388OD")}})),Ye.register("bikcG",((e,t)=>{var r=Ye("bgOMw").MAX_SAFE_COMPONENT_LENGTH,i=Ye("jkMsx");const n=(t=e.exports={}).re=[],s=t.src=[],o=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;i(e,c,t),o[e]=c,s[c]=t,n[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[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})\\.(${s[o.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})\\.(${s[o.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[o.NUMERICIDENTIFIER]}|${s[o.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[o.NUMERICIDENTIFIERLOOSE]}|${s[o.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[o.PRERELEASEIDENTIFIER]}(?:\\.${s[o.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[o.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[o.BUILDIDENTIFIER]}(?:\\.${s[o.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[o.MAINVERSION]}${s[o.PRERELEASE]}?${s[o.BUILD]}?`),c("FULL",`^${s[o.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[o.MAINVERSIONLOOSE]}${s[o.PRERELEASELOOSE]}?${s[o.BUILD]}?`),c("LOOSE",`^${s[o.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[o.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:\\.(${s[o.XRANGEIDENTIFIER]})(?:${s[o.PRERELEASE]})?${s[o.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[o.XRANGEIDENTIFIERLOOSE]})(?:${s[o.PRERELEASELOOSE]})?${s[o.BUILD]}?)?)?`),c("XRANGE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[o.GTLT]}\\s*${s[o.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[o.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[o.LONETILDE]}${s[o.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[o.LONECARET]}${s[o.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[o.LONECARET]}${s[o.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[o.GTLT]}\\s*(${s[o.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[o.GTLT]}\\s*(${s[o.LOOSEPLAIN]}|${s[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[o.XRANGEPLAIN]})\\s+-\\s+(${s[o.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[o.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})),Ye.register("bgOMw",((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}})),Ye.register("jkMsx",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Ye.register("7qUJS",(function(e,t){var r=Ye("jkMsx"),i=Ye("bgOMw"),n=i.MAX_LENGTH,s=i.MAX_SAFE_INTEGER,o=Ye("bikcG"),a=o.re,c=o.t,l=Ye("eUvvN"),u=Ye("12NXI").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>n)throw new TypeError(`version is longer than ${n} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const i=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[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=i[4]?i[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&s>t)return t}return e})):[],this.build=i[5]?i[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 i=this.prerelease[t],n=e.prerelease[t];if(r("prerelease compare",t,i,n),void 0===i&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(i!==n)return u(i,n)}while(++t)}compareBuild(e){e instanceof d||(e=new d(e,this.options));let t=0;do{const i=this.build[t],n=e.build[t];if(r("prerelease compare",t,i,n),void 0===i&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(i!==n)return u(i,n)}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})),Ye.register("eUvvN",((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)),{}):{}})),Ye.register("12NXI",((e,t)=>{const r=/^[0-9]+$/,i=(e,t)=>{const i=r.test(e),n=r.test(t);return i&&n&&(e=+e,t=+t),e===t?0:i&&!n?-1:n&&!i?1:t>e?-1:1};e.exports={compareIdentifiers:i,rcompareIdentifiers(e,t){return i(t,e)}}})),Ye.register("gdrva",((e,t)=>{var r=Ye("bgOMw").MAX_LENGTH,i=Ye("bikcG"),n=i.re,s=i.t,o=Ye("7qUJS"),a=Ye("eUvvN");e.exports=(e,t)=>{if(t=a(t),e instanceof o)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?n[s.LOOSE]:n[s.FULL]).test(e))return null;try{return new o(e,t)}catch(e){return null}}})),Ye.register("fVzwP",((e,t)=>{var r=Ye("gdrva");e.exports=(e,t)=>{const i=r(e,t);return i?i.version:null}})),Ye.register("hOYls",((e,t)=>{var r=Ye("gdrva");e.exports=(e,t)=>{const i=r(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null}})),Ye.register("dGcr6",((e,t)=>{var r=Ye("7qUJS");e.exports=(e,t,i,n)=>{"string"==typeof i&&(n=i,i=void 0);try{return new r(e instanceof r?e.version:e,i).inc(t,n).version}catch(e){return null}}})),Ye.register("bBssn",((e,t)=>{var r=Ye("gdrva"),i=Ye("jXghC");e.exports=(e,t)=>{if(i(e,t))return null;{const i=r(e),n=r(t),s=i.prerelease.length||n.prerelease.length,o=s?"pre":"",a=s?"prerelease":"";for(const e in i)if(("major"===e||"minor"===e||"patch"===e)&&i[e]!==n[e])return o+e;return a}}})),Ye.register("jXghC",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>0===r(e,t,i)})),Ye.register("howpO",((e,t)=>{var r=Ye("7qUJS");e.exports=(e,t,i)=>new r(e,i).compare(new r(t,i))})),Ye.register("fB2B7",((e,t)=>{var r=Ye("7qUJS");e.exports=(e,t)=>new r(e,t).major})),Ye.register("bye2i",((e,t)=>{var r=Ye("7qUJS");e.exports=(e,t)=>new r(e,t).minor})),Ye.register("87ZGF",((e,t)=>{var r=Ye("7qUJS");e.exports=(e,t)=>new r(e,t).patch})),Ye.register("4agny",((e,t)=>{var r=Ye("gdrva");e.exports=(e,t)=>{const i=r(e,t);return i&&i.prerelease.length?i.prerelease:null}})),Ye.register("zcbgY",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>r(t,e,i)})),Ye.register("iGBo4",((e,t)=>{var r=Ye("howpO");e.exports=(e,t)=>r(e,t,!0)})),Ye.register("80ezM",((e,t)=>{var r=Ye("7qUJS");e.exports=(e,t,i)=>{const n=new r(e,i),s=new r(t,i);return n.compare(s)||n.compareBuild(s)}})),Ye.register("4qmtg",((e,t)=>{var r=Ye("80ezM");e.exports=(e,t)=>e.sort(((e,i)=>r(e,i,t)))})),Ye.register("4pjXu",((e,t)=>{var r=Ye("80ezM");e.exports=(e,t)=>e.sort(((e,i)=>r(i,e,t)))})),Ye.register("6KPS4",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>r(e,t,i)>0})),Ye.register("lr5pz",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>0>r(e,t,i)})),Ye.register("fqqGA",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>0!==r(e,t,i)})),Ye.register("5cRW4",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>r(e,t,i)>=0})),Ye.register("fwsB7",((e,t)=>{var r=Ye("howpO");e.exports=(e,t,i)=>0>=r(e,t,i)})),Ye.register("823yM",((e,t)=>{var r=Ye("jXghC"),i=Ye("fqqGA"),n=Ye("6KPS4"),s=Ye("5cRW4"),o=Ye("lr5pz"),a=Ye("fwsB7");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 i(e,c,l);case">":return n(e,c,l);case">=":return s(e,c,l);case"<":return o(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Ye.register("1YYsi",((e,t)=>{var r=Ye("7qUJS"),i=Ye("gdrva"),n=Ye("bikcG"),s=n.re,o=n.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=s[o.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),s[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[o.COERCERTL].lastIndex=-1}else n=e.match(s[o.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}})),Ye.register("eR6XK",(function(e,t){const r=Symbol();class i{static get ANY(){return r}constructor(e,t){if(t=n(t),e instanceof i){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?o[a.COMPARATORLOOSE]:o[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 i))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),n=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,o=!(">="!==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||n||s&&o||a||l}}e.exports=i;var n=Ye("eUvvN"),s=Ye("bikcG"),o=s.re,a=s.t,c=Ye("823yM"),l=Ye("jkMsx"),u=Ye("7qUJS"),d=Ye("hvUff")})),Ye.register("hvUff",(function(e,t){class r{constructor(e,t){if(t=n(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=i.get(t);if(r)return r;const n=this.options.loose;e=e.replace(n?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],C(this.options.includePrerelease)),o("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],d),o("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=>g(e,this.options))).join(" ").split(/\s+/).map((e=>$(e,this.options)));n&&(a=a.filter((e=>(o("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),o("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 v=[...c.values()];return i.set(t,v),v}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((r=>v(r,t)&&e.set.some((e=>v(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(T(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(Ye("6MLkQ"))({max:1e3});var n=Ye("eUvvN"),s=Ye("eR6XK"),o=Ye("jkMsx"),a=Ye("7qUJS"),c=Ye("bikcG"),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,v=(e,t)=>{let r=!0;const i=e.slice();let n=i.pop();for(;r&&i.length;)r=i.every((e=>n.intersects(e,t))),n=i.pop();return r},g=(e,t)=>(o("comp",e,t),e=b(e,t),o("caret",e),e=w(e,t),o("tildes",e),e=S(e,t),o("xrange",e),e=_(e,t),o("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,i,n,s)=>{let a;return o("tilde",e,t,r,i,n,s),y(r)?a="":y(i)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(n)?a=`>=${r}.${i}.0 <${r}.${+i+1}.0-0`:s?(o("replaceTilde pr",s),a=`>=${r}.${i}.${n}-${s} <${r}.${+i+1}.0-0`):a=`>=${r}.${i}.${n} <${r}.${+i+1}.0-0`,o("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{o("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,i,n,s,a)=>{let c;return o("caret",e,t,i,n,s,a),y(i)?c="":y(n)?c=`>=${i}.0.0${r} <${+i+1}.0.0-0`:y(s)?c="0"===i?`>=${i}.${n}.0${r} <${i}.${+n+1}.0-0`:`>=${i}.${n}.0${r} <${+i+1}.0.0-0`:a?(o("replaceCaret pr",a),c="0"===i?"0"===n?`>=${i}.${n}.${s}-${a} <${i}.${n}.${+s+1}-0`:`>=${i}.${n}.${s}-${a} <${i}.${+n+1}.0-0`:`>=${i}.${n}.${s}-${a} <${+i+1}.0.0-0`):(o("no pr"),c="0"===i?"0"===n?`>=${i}.${n}.${s}${r} <${i}.${n}.${+s+1}-0`:`>=${i}.${n}.${s}${r} <${i}.${+n+1}.0-0`:`>=${i}.${n}.${s} <${+i+1}.0.0-0`),o("caret return",c),c}))},S=(e,t)=>(o("replaceXRanges",e,t),e.split(/\s+/).map((e=>O(e,t))).join(" ")),O=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,i,n,s,a,c)=>{o("xRange",e,r,i,n,s,a,c);const l=y(n),u=l||y(s),d=u||y(a);return"="===i&&d&&(i=""),c=t.includePrerelease?"-0":"",l?r=">"===i||"<"===i?"<0.0.0-0":"*":i&&d?(u&&(s=0),a=0,">"===i?(i=">=",u?(n=+n+1,s=0,a=0):(s=+s+1,a=0)):"<="===i&&(i="<",u?n=+n+1:s=+s+1),"<"===i&&(c="-0"),r=`${i+n}.${s}.${a}${c}`):u?r=`>=${n}.0.0${c} <${+n+1}.0.0-0`:d&&(r=`>=${n}.${s}.0${c} <${n}.${+s+1}.0-0`),o("xRange return",r),r})),_=(e,t)=>(o("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),$=(e,t)=>(o("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,i,n,s,o,a,c,l,u,d,p,h)=>`${r=y(i)?"":y(n)?`>=${i}.0.0${e?"-0":""}`:y(s)?`>=${i}.${n}.0${e?"-0":""}`:o?">="+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(),T=(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(o(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const i=e[r].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}})),Ye.register("6MLkQ",(function(e,t){const r="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,i="undefined"!=typeof AbortController?AbortController:Object.assign(class{constructor(){this.signal=new i.AbortSignal}abort(){this.signal.aborted=!0}},{AbortSignal:class{constructor(){this.aborted=!1}}}),n=new Set,s=(e,t)=>{const r="LRU_CACHE_OPTION_"+e;c(r)&&l(r,e+" option","options."+t,f)},o=(e,t)=>{const r="LRU_CACHE_METHOD_"+e;if(c(r)){const{prototype:i}=f,{get:n}=Object.getOwnPropertyDescriptor(i,e);l(r,e+" method",`cache.${t}()`,n)}},a=(...e)=>{"object"==typeof process&&process&&"function"==typeof process.emitWarning?process.emitWarning(...e):console.error(...e)},c=e=>!n.has(e),l=(e,t,r,i)=>{n.add(e),a(`The ${t} is deprecated. Please use ${r} instead.`,"DeprecationWarning",e,i)},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:i=1,ttlAutopurge:o,updateAgeOnGet:l,updateAgeOnHas:p,allowStale:m,dispose:v,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:w,maxSize:x=0,sizeCalculation:b,fetchMethod:E}=e,{length:S,maxAge:O,stale:_}=e instanceof f?{}:e;if(0!==t&&!u(t))throw new TypeError("max option must be a nonnegative integer");const $=t?d(t):Array;if(!$)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),this.prev=new $(t),this.head=0,this.tail=0,this.free=new h(t),this.initialFill=1,this.size=0,"function"==typeof v&&(this.dispose=v),"function"==typeof g?(this.disposeAfter=g,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||!!_,this.updateAgeOnGet=!!l,this.updateAgeOnHas=!!p,this.ttlResolution=u(i)||0===i?i:1,this.ttlAutopurge=!!o,this.ttl=r||O||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)&&(n.add(e),a("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",e,f))}_&&s("stale","allowStale"),O&&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 i=this.keyMap.get(r);return void 0===i?0:0===this.ttls[i]||0===this.starts[i]?1/0:this.starts[i]+this.ttls[i]-(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,i)=>{if(!u(r)){if(!i)throw new TypeError("invalid size value (must be positive integer)");if("function"!=typeof i)throw new TypeError("sizeCalculation must be a function");if(r=i(t,e),!u(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}return r},this.addItemSize=(e,t,r,i)=>{this.sizes[e]=i;const n=this.maxSize-this.sizes[e];for(;this.calculatedSize>n;)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,i){}requireSize(e,t,r,i){if(r||i)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 o("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],i={value:this.valList[t]};this.ttls&&(i.ttl=this.ttls[t]),this.sizes&&(i.size=this.sizes[t]),e.unshift([r,i])}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:i=this.noDisposeOnSet,size:n=0,sizeCalculation:s=this.sizeCalculation,noUpdateTTL:o=this.noUpdateTTL}={}){n=this.requireSize(e,t,n,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,n),o=!1;else{const r=this.valList[a];t!==r&&(this.isBackgroundFetch(r)?r.__abortController.abort():i||(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,n)),this.moveToTail(a)}if(0===r||0!==this.ttl||this.ttls||this.initializeTTLTracking(),o||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],i=this.valList[t];return this.isBackgroundFetch(i)?i.__abortController.abort():(this.dispose(i,r,"evict"),this.disposeAfter&&this.disposed.push([i,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 n=void 0===t?void 0:this.valList[t];if(this.isBackgroundFetch(n))return n;const s=new i,o={signal:s.signal,options:r},a=Promise.resolve(this.fetchMethod(e,n,o)).then((t=>(s.signal.aborted||this.set(e,t,o.options),t)));return a.__abortController=s,a.__staleWhileFetching=n,void 0===t?(this.set(e,a,o.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:i=this.ttl,noDisposeOnSet:n=this.noDisposeOnSet,size:s=0,sizeCalculation:o=this.sizeCalculation,noUpdateTTL:a=this.noUpdateTTL}={}){if(!this.fetchMethod)return this.get(e,{allowStale:t,updateAgeOnGet:r});const c={allowStale:t,updateAgeOnGet:r,ttl:i,noDisposeOnSet:n,size:s,sizeCalculation:o,noUpdateTTL:a};let l=this.keyMap.get(e);if(void 0===l)return this.backgroundFetch(e,l,c);{const i=this.valList[l];if(this.isBackgroundFetch(i))return t&&void 0!==i.__staleWhileFetching?i.__staleWhileFetching:i;if(!this.isStale(l))return this.moveToTail(l),r&&this.updateItemAge(l),i;const n=this.backgroundFetch(e,l,c);return t&&void 0!==n.__staleWhileFetching?n.__staleWhileFetching:n}}get(e,{allowStale:t=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet}={}){const i=this.keyMap.get(e);if(void 0!==i){const n=this.valList[i],s=this.isBackgroundFetch(n);if(this.isStale(i))return s?t?n.__staleWhileFetching:void 0:(this.delete(e),t?n:void 0);if(s)return;return this.moveToTail(i),r&&this.updateItemAge(i),n}}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 o("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 o("reset","clear"),this.clear}get length(){return((e,t)=>{const r="LRU_CACHE_PROPERTY_length";if(c(r)){const{prototype:e}=f,{get:t}=Object.getOwnPropertyDescriptor(e,"length");l(r,"length property","cache.size",t)}})(),this.size}}e.exports=f})),Ye.register("c8FZS",((e,t)=>{var r=Ye("hvUff");e.exports=(e,t,i)=>{try{t=new r(t,i)}catch(e){return!1}return t.test(e)}})),Ye.register("2J2hR",((e,t)=>{var r=Ye("hvUff");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Ye.register("lbfMG",((e,t)=>{var r=Ye("7qUJS"),i=Ye("hvUff");e.exports=(e,t,n)=>{let s=null,o=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==o.compare(e)||(s=e,o=new r(s,n)))})),s}})),Ye.register("5wbuE",((e,t)=>{var r=Ye("7qUJS"),i=Ye("hvUff");e.exports=(e,t,n)=>{let s=null,o=null,a=null;try{a=new i(t,n)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==o.compare(e)||(s=e,o=new r(s,n)))})),s}})),Ye.register("hZRNG",((e,t)=>{var r=Ye("7qUJS"),i=Ye("hvUff"),n=Ye("6KPS4");e.exports=(e,t)=>{e=new i(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 i=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">=":i&&!n(t,i)||(i=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!i||s&&!n(s,i)||(s=i)}return s&&e.test(s)?s:null}})),Ye.register("fqnzG",((e,t)=>{var r=Ye("hvUff");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Ye.register("77bPN",((e,t)=>{var r=Ye("7qUJS"),i=Ye("eR6XK");const{ANY:n}=i;var s=Ye("hvUff"),o=Ye("c8FZS"),a=Ye("6KPS4"),c=Ye("lr5pz"),l=Ye("fwsB7"),u=Ye("5cRW4");e.exports=(e,t,d,p)=>{let h,f,m,v,g;switch(e=new r(e,p),t=new s(t,p),d){case">":h=a,f=l,m=c,v=">",g=">=";break;case"<":h=c,f=u,m=a,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(o(e,t,p))return!1;for(let r=0;t.set.length>r;++r){let s=null,o=null;if(t.set[r].forEach((e=>{e.semver===n&&(e=new i(">=0.0.0")),s=s||e,o=o||e,h(e.semver,s.semver,p)?s=e:m(e.semver,o.semver,p)&&(o=e)})),s.operator===v||s.operator===g)return!1;if((!o.operator||o.operator===v)&&f(e,o.semver))return!1;if(o.operator===g&&m(e,o.semver))return!1}return!0}})),Ye.register("gD8Tz",((e,t)=>{var r=Ye("77bPN");e.exports=(e,t,i)=>r(e,t,">",i)})),Ye.register("bpPww",((e,t)=>{var r=Ye("77bPN");e.exports=(e,t,i)=>r(e,t,"<",i)})),Ye.register("cHIUn",((e,t)=>{var r=Ye("hvUff");e.exports=(e,t,i)=>(e=new r(e,i),t=new r(t,i),e.intersects(t))})),Ye.register("k8aCs",((e,t)=>{var r=Ye("c8FZS"),i=Ye("howpO");e.exports=(e,t,n)=>{const s=[];let o=null,a=null;const c=e.sort(((e,t)=>i(e,t,n)));for(const e of c)r(e,t,n)?(a=e,o||(o=e)):(a&&s.push([o,a]),a=null,o=null);o&&s.push([o,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}})),Ye.register("388OD",((e,t)=>{var r=Ye("hvUff"),i=Ye("eR6XK");const{ANY:n}=i;var s=Ye("c8FZS"),o=Ye("howpO");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===n){if(1===t.length&&t[0].semver===n)return!0;e=r.includePrerelease?[new i(">=0.0.0-0")]:[new i(">=0.0.0")]}if(1===t.length&&t[0].semver===n){if(r.includePrerelease)return!0;t=[new i(">=0.0.0")]}const a=new Set;let u,d,p,h,f,m,v;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=o(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 i of t)if(!s(e,i+"",r))return!1;return!0}let g=!(!d||r.includePrerelease||!d.semver.prerelease.length)&&d.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===d.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(v=v||">"===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(g&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===g.major&&e.semver.minor===g.minor&&e.semver.patch===g.patch&&(g=!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&&v&&!u&&0!==p||y||g)},c=(e,t,r)=>{if(!e)return t;const i=o(e.semver,t.semver,r);return i>0?e:0>i||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const i=o(e.semver,t.semver,r);return 0>i?e:i>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,i={})=>{if(e===t)return!0;e=new r(e,i),t=new r(t,i);let n=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,i);if(n=n||null!==t,t)continue e}if(n)return!1}return!0}})),Ye.register("iFKS7",((e,t)=>{var r=Ye("joDHm"),i=Ye("inTPA");e.exports=(e,t,n)=>{var s=t&&n||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;16>a;++a)t[s+a]=o[a];return t||i(o)}})),Ye.register("joDHm",((e,t)=>{e.exports=()=>Fe.randomBytes(16)})),Ye.register("inTPA",((e,t)=>{for(var r=[],i=0;256>i;++i)r[i]=(i+256).toString(16).substr(1);e.exports=(e,t)=>{var i=t||0;return""+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]}})),Ye.register("ca0ts",(function(e,t){"use strict";function r(e,t,r){return o(this,void 0,void 0,(function*(){const i=a.argStringToArray(e);if(0===i.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const n=i[0];return t=i.slice(1).concat(t||[]),new a.ToolRunner(n,t,r).exec()}))}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=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}),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)&&i(t,e,r);return n(t,e),t}),o=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;const a=s(Ye("e0fPv"));e.exports.exec=r,e.exports.getExecOutput=function(e,t,i){var n,s;return o(this,void 0,void 0,(function*(){let o="",a="";const c=new Ue.StringDecoder("utf8"),l=new Ue.StringDecoder("utf8"),u=null===(n=null==i?void 0:i.listeners)||void 0===n?void 0:n.stdout,d=null===(s=null==i?void 0:i.listeners)||void 0===s?void 0:s.stderr,p=Object.assign(Object.assign({},null==i?void 0:i.listeners),{stdout(e){o+=c.write(e),u&&u(e)},stderr(e){a+=l.write(e),d&&d(e)}}),h=yield r(e,t,Object.assign(Object.assign({},i),{listeners:p}));return o+=c.end(),a+=l.end(),{exitCode:h,stdout:o,stderr:a}}))}})),Ye.register("e0fPv",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),n=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const o=n(Re),a=n(Le),c=n(Me),l=n(Ie),u=n(Ye("fvrnx")),d=n(Ye("2GOko")),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(),i=this._getSpawnArgs(e);let n=t?"":"[command]";if(p)if(this._isCmdFile()){n+=r;for(const e of i)n+=" "+e}else if(e.windowsVerbatimArguments){n+=`"${r}"`;for(const e of i)n+=" "+e}else{n+=this._windowsQuoteCmdArg(r);for(const e of i)n+=" "+this._windowsQuoteCmdArg(e)}else{n+=r;for(const e of i)n+=" "+e}return n}_processLineBuffer(e,t,r){try{let i=t+""+e,n=i.indexOf(o.EOL);for(;n>-1;)r(i.substring(0,n)),i=i.substring(n+o.EOL.length),n=i.indexOf(o.EOL);return i}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 i of e)if(t.some((e=>e===i))){r=!0;break}if(!r)return e;let i='"',n=!0;for(let t=e.length;t>0;t--)i+=e[t-1],n&&"\\"===e[t-1]?i+="\\":'"'===e[t-1]?(n=!0,i+='"'):n=!1;return i+='"',i.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 i=e.length;i>0;i--)t+=e[i-1],r&&"\\"===e[i-1]?t+="\\":'"'===e[i-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)+o.EOL);const i=new h(r,this.toolPath);if(i.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 n=this._getSpawnFileName(),s=c.spawn(n,this._getSpawnArgs(r),this._getSpawnOptions(this.options,n));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=>{i.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=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()})),s.on("exit",(e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()})),s.on("close",(e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()})),i.on("done",((r,i)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),s.removeAllListeners(),r?t(r):e(i)})),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){n&&'"'!==e&&(s+="\\"),s+=e,n=!1}const r=[];let i=!1,n=!1,s="";for(let o=0;e.length>o;o++){const a=e.charAt(o);'"'!==a?"\\"===a&&n?t(a):"\\"===a&&i?n=!0:" "!==a||i?t(a):s.length>0&&(r.push(s),s=""):n?t(a):i=!i}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=Ge.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())}}})),Ye.register("175fe",((e,t)=>{e.exports=Promise.resolve(require("./actions_python.4614aeb4.js")).then((()=>Ye("apy8x")))})),Ye.register("cReTf",((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 i(e,t,r){const i=(e=>{const t=c[e.locale];let r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType),r=Array.from(new Set(r));let i=null;if(r.some((e=>{if(void 0!==t[e])return i=t[e],!0})),null===i)throw Error("Can not find any unit type data for locale: "+e.locale);return i})(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t)}var n=Ye("5FRs7"),s=Ye("3Zbea");const o=[["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,n,a){return((e,t,n)=>{if(((e,t)=>{const{autoload:i}=t;if(!c[e]){if(!s||!i)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)}})(n.locale,{autoload:n.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 i=[];return o.some((e=>{const t=e[0],n=e[1],s=Math.floor(r/n);if(r-=s*n,i.push([t,s]),0>=r)return!0})),i})(e,t),l=[];for(const e of a){const[t,r]=e;if(r>0&&l.push(i(t,r,n)),l.length>=n.span)break}return l.join(n.delimiter)})(t,n,a=Object.assign({},e,a||{}))}}},addLocale:r,defaultConfig:a}})),Ye.register("5FRs7",((e,t)=>{e.exports=Ye("j5MHF")})),Ye.register("j5MHF",(function(e,t){var r=Ie.resolve(__dirname,"../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){function t(e,t,r){if(i(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var s=n[e](t);return void 0!==r[s]?r[s]:null}function i(e){(e=>void 0!==n[e])(e)||(e=>{try{require(r+"/../locales/"+e+".js")}catch(t){throw Error("Failed to load the following locale: "+e)}})(e)}var n={},s={create(e){return i(e),{pluralize(r,i){return t(e,r,i)}}},addLocale(e,t){n[e]=t},pluralize:t};void 0!==e.exports?e.exports=s:this.numerous=s}).call(e.exports)})),Ye.register("3Zbea",((e,t)=>{"use strict";e.exports=!("undefined"==typeof process||!process.versions||!process.versions.node)})),e(module.exports,"main",(()=>Oe)),e(module.exports,"parseArgs",(()=>_e)),e(module.exports,"getCompilerInfo",(()=>$e));var We=Ye("iQ0s7"),Je={};const Ke="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Qe=Ke?";":":";var Ze,et={};Ze="win32"===process.platform||qe.TESTING_WINDOWS?Ye("ftrAD"):Ye("9yF3I"),et=r,r.sync=(e,t)=>{try{return Ze.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const tt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),rt=(e,t)=>{const r=t.colon||Qe,i=e.match(/\//)||Ke&&e.match(/\\/)?[""]:[...Ke?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],n=Ke?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=Ke?n.split(r):[""];return Ke&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:n}},it=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:i,pathExt:n,pathExtExe:s}=rt(e,t),o=[],a=r=>new Promise(((n,s)=>{if(r===i.length)return t.all&&o.length?n(o):s(tt(e));const a=i[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Ie.join(l,e),d=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;n(c(d,r,0))})),c=(e,r,i)=>new Promise(((l,u)=>{if(i===n.length)return l(a(r+1));const d=n[i];et(e+d,{pathExt:s},((n,s)=>{if(!n&&s){if(!t.all)return l(e+d);o.push(e+d)}return l(c(e,r,i+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let nt;Je=it,it.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:i,pathExtExe:n}=rt(e,t),s=[];for(let o=0;r.length>o;o++){const a=r[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=Ie.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;i.length>e;e++){const r=u+i[e];try{if(et.sync(r,{pathExt:n})){if(!t.all)return r;s.push(r)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw tt(e)};var st,ot={},at={},ct={},lt={};const ut=(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 dt,pt;(lt=ut).default=ut,st=e=>n(e)||n(e,!0),dt=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),pt=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e);var ht,ft;ht=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,i]=t[0].replace(/#! ?/,"").split(" "),n=r.split("/").pop();return"env"===n?i:i?`${n} ${i}`:n},ft=e=>{const t=Buffer.alloc(150);let r;try{r=Ae.openSync(e,"r"),Ae.readSync(r,t,0,150,0),Ae.closeSync(r)}catch(e){}return ht(""+t)};const mt="win32"===process.platform,vt=/\.(?:com|exe)$/i,gt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;ct=(e,t,r)=>{t&&!Array.isArray(t)&&(r=t,t=null);const i={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?i:(e=>{if(!mt)return e;const t=(e=>{e.file=st(e);const t=e.file&&ft(e.file);return t?(e.args.unshift(e.file),e.command=t,st(e)):e.file})(e),r=!vt.test(t);if(e.options.forceShell||r){const r=gt.test(t);e.command=Ie.normalize(e.command),e.command=dt(e.command),e.args=e.args.map((e=>pt(e,r)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e})(i)};var yt={};const wt="win32"===process.platform;var xt;yt={hookChildProcess(e,t){if(!wt)return;const r=e.emit;e.emit=function(i,n){if("exit"===i){const i=o(n,t);if(i)return r.call(e,"error",i)}return r.apply(e,arguments)}},verifyENOENT:o,verifyENOENTSync(e,t){return wt&&1===e&&!t.file?s(t.original,"spawnSync"):null},notFoundError:s},(at=a).spawn=a,at.sync=(e,t,r)=>{const i=ct(e,t,r),n=Me.spawnSync(i.command,i.args,i.options);return n.error=n.error||yt.verifyENOENTSync(n.status,i),n},at._parse=ct,at._enoent=yt,xt=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 bt={};const Et=e=>{let t;e={cwd:process.cwd(),path:process.env[lt()],execPath:process.execPath,...e};let r=Ie.resolve(e.cwd);const i=[];for(;t!==r;)i.push(Ie.join(r,"node_modules/.bin")),t=r,r=Ie.resolve(r,"..");const n=Ie.resolve(e.cwd,e.execPath,"..");return i.push(n),i.concat(e.path).join(Ie.delimiter)};(bt=Et).default=Et,bt.env=e=>{const t={...(e={env:process.env,...e}).env},r=lt({env:t});return e.path=t[r],t[r]=bt(e),t};var St={},Ot={};const _t=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Ot=_t).default=_t;const $t=new WeakMap,Ct=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,i=0;const n=e.displayName||e.name||"<anonymous>",s=function(...o){if($t.set(s,++i),1===i)r=e.apply(this,o),e=null;else if(!0===t.throw)throw Error(`Function \`${n}\` can only be called once`);return r};return Ot(s,e),$t.set(s,i),s};(St=Ct).default=Ct,St.callCount=e=>{if(!$t.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return $t.get(e)};var Tt,Rt={};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.signalsByNumber=Rt.signalsByName=void 0;var It={};Object.defineProperty(It,"__esModule",{value:!0}),It.getSignals=void 0;var At={};Object.defineProperty(At,"__esModule",{value:!0}),At.SIGNALS=void 0,At.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 Pt={};Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.SIGRTMAX=Pt.getRealtimeSignals=void 0,Pt.getRealtimeSignals=()=>Array.from({length:Lt-kt+1},Nt);const Nt=(e,t)=>({name:"SIGRT"+(t+1),number:kt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),kt=34,Lt=64;Pt.SIGRTMAX=Lt,It.getSignals=()=>{const e=(0,Pt.getRealtimeSignals)();return[...At.SIGNALS,...e].map(jt)};const jt=({name:e,number:t,description:r,action:i,forced:n=!1,standard:s})=>{const{signals:{[e]:o}}=Re.constants,a=void 0!==o;return{name:e,number:a?o:t,description:r,supported:a,action:i,forced:n,standard:s}},Dt=(0,It.getSignals)().reduce(((e,{name:t,number:r,description:i,supported:n,action:s,forced:o,standard:a})=>({...e,[t]:{name:t,number:r,description:i,supported:n,action:s,forced:o,standard:a}})),{});Rt.signalsByName=Dt;const Mt=(()=>{const e=(0,It.getSignals)(),t=Array.from({length:Pt.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>Re.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:i,description:n,supported:s,action:o,forced:a,standard:c}=r;return{[e]:{name:i,number:e,description:n,supported:s,action:o,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Rt.signalsByNumber=Mt;var Ft=Rt.signalsByName;Tt=({stdout:e,stderr:t,all:r,error:i,signal:n,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:d}}})=>{const p=void 0===(n=null===n?void 0:n)?void 0:Ft[n].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:i,signalDescription:n,exitCode:s,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":void 0!==r?"failed with "+r:void 0!==i?`was killed with ${i} (${n})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:d,errorCode:i&&i.code,signal:n,signalDescription:p,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${o}`,m="[object Error]"==={}.toString.call(i),v=m?`${f}\n${i.message}`:f,g=[v,t,e].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=g):i=Error(g),i.shortMessage=v,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=n,i.signalDescription=p,i.stdout=e,i.stderr=t,void 0!==r&&(i.all=r),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=!!c,i.isCanceled=l,i.killed=u&&!c,i};var Ut={};const Gt=["stdin","stdout","stderr"],Ht=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Gt.map((t=>e[t]));if((e=>Gt.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+Gt.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,Gt.length)},((e,r)=>t[r]))};(Ut=Ht).node=e=>{const t=Ht(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var zt,Bt={},qt=qe.process;const Vt=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(Vt(qt)){var Xt,Yt=je,Wt=Ye("bJALw"),Jt=/^win/i.test(qt.platform),Kt=Le;"function"!=typeof Kt&&(Kt=Kt.EventEmitter),qt.__signal_exit_emitter__?Xt=qt.__signal_exit_emitter__:((Xt=qt.__signal_exit_emitter__=new Kt).count=0,Xt.emitted={}),Xt.infinite||(Xt.setMaxListeners(1/0),Xt.infinite=!0),Bt=(e,t)=>{if(!Vt(qe.process))return()=>{};Yt.equal(typeof e,"function","a callback must be provided for exit handler"),!1===tr&&rr();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),Xt.on(r,e),()=>{Xt.removeListener(r,e),0===Xt.listeners("exit").length&&0===Xt.listeners("afterexit").length&&Qt()}};var Qt=()=>{tr&&Vt(qe.process)&&(tr=!1,Wt.forEach((e=>{try{qt.removeListener(e,er[e])}catch(e){}})),qt.emit=sr,qt.reallyExit=ir,Xt.count-=1)};Bt.unload=Qt;var Zt=(e,t,r)=>{Xt.emitted[e]||(Xt.emitted[e]=!0,Xt.emit(e,t,r))},er={};Wt.forEach((e=>{er[e]=()=>{Vt(qe.process)&&qt.listeners(e).length===Xt.count&&(Qt(),Zt("exit",null,e),Zt("afterexit",null,e),Jt&&"SIGHUP"===e&&(e="SIGINT"),qt.kill(qt.pid,e))}})),Bt.signals=()=>Wt;var tr=!1,rr=()=>{!tr&&Vt(qe.process)&&(tr=!0,Xt.count+=1,Wt=Wt.filter((e=>{try{return qt.on(e,er[e]),!0}catch(e){return!1}})),qt.emit=or,qt.reallyExit=nr)};Bt.load=rr;var ir=qt.reallyExit,nr=e=>{Vt(qe.process)&&(qt.exitCode=e||0,Zt("exit",qt.exitCode,null),Zt("afterexit",qt.exitCode,null),ir.call(qt,qt.exitCode))},sr=qt.emit,or=function(e,t){if("exit"===e&&Vt(qe.process)){void 0!==t&&(qt.exitCode=t);var r=sr.apply(this,arguments);return Zt("exit",qt.exitCode,null),Zt("afterexit",qt.exitCode,null),r}return sr.apply(this,arguments)}}else Bt=()=>()=>{};const ar=e=>e===Re.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var cr,lr=(zt={spawnedKill(e,t="SIGTERM",r={}){const i=e(t);return((e,t,r,i)=>{if(!((e,{forceKillAfterTimeout:t},r)=>ar(e)&&!1!==t&&r)(t,r,i))return;const n=(({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")}),n);s.unref&&s.unref()})(e,t,r,i),i},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},i){if(0===t||void 0===t)return i;let n;const s=new Promise(((i,s)=>{n=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),o=i.finally((()=>{clearTimeout(n)}));return Promise.race([s,o])},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},i){if(!t||r)return i;const n=Bt((()=>{e.kill()}));return i.finally((()=>{n()}))}}).spawnedKill,ur=zt.spawnedCancel,dr=zt.setupTimeout,pr=zt.validateTimeout,hr=zt.setExitHandler,fr={};const mr=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;mr.writable=e=>mr(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,mr.readable=e=>mr(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,mr.duplex=e=>mr.writable(e)&&mr.readable(e),mr.transform=e=>mr.duplex(e)&&"function"==typeof e._transform,fr=mr;var vr,gr={},yr=He.constants,wr=ze.PassThrough;vr=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i="buffer"===r;let n=!1;t?n=!(r||i):r=r||"utf8",i&&(r=null);const s=new wr({objectMode:n});r&&s.setEncoding(r);let o=0;const a=[];return s.on("data",(e=>{a.push(e),n?o=a.length:o+=e.length})),s.getBufferedValue=()=>t?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s};const xr=(0,De.promisify)(ze.pipeline);class br extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(gr=c).buffer=(e,t)=>c(e,{...t,encoding:"buffer"}),gr.array=(e,t)=>c(e,{...t,array:!0}),gr.MaxBufferError=br;var Er,Sr=ze.PassThrough;Er=function(){function e(t){return Array.isArray(t)?(t.forEach(e),this):(i.push(t),t.once("end",r.bind(null,t)),t.once("error",n.emit.bind(n,"error")),t.pipe(n,{end:!1}),this)}function t(){return 0==i.length}function r(e){!(i=i.filter((t=>t!==e))).length&&n.readable&&n.end()}var i=[],n=new Sr({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=t,n.on("unpipe",r),[].slice.call(arguments).forEach(e),n};const Or=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},_r=(e,{encoding:t,buffer:r,maxBuffer:i})=>{if(e&&r)return t?gr(e,{encoding:t,maxBuffer:i}):gr.buffer(e,{maxBuffer:i})};var $r,Cr=(cr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(fr(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Er();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:i,buffer:n,maxBuffer:s},o){const a=_r(e,{encoding:i,buffer:n,maxBuffer:s}),c=_r(t,{encoding:i,buffer:n,maxBuffer:s}),l=_r(r,{encoding:i,buffer:n,maxBuffer:2*s});try{return await Promise.all([o,a,c,l])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},Or(e,a),Or(t,c),Or(r,l)])}},validateInputSync({input:e}){if(fr(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,Tr=cr.getSpawnedResult,Rr=cr.makeAllStream,Ir=cr.validateInputSync;const Ar=(async()=>{})().constructor.prototype,Pr=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Ar,e)]));var Nr,kr=($r={mergePromise(e,t){for(const[r,i]of Pr){const n="function"==typeof t?(...e)=>Reflect.apply(i.value,t(),e):i.value.bind(t);Reflect.defineProperty(e,r,{...i,value:n})}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,Lr=$r.getSpawnedPromise;const jr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Dr=/^[\w.-]+$/;var Mr=(Nr={joinCommand(e,t){return jr(e,t).join(" ")},getEscapedCommand(e,t){return jr(e,t).map((e=>(e=>"string"!=typeof e||Dr.test(e)?e:`"${e.replace(/"/g,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(/ +/g)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Fr=Nr.parseCommand,Ur=Nr.getEscapedCommand;const Gr=(e,t,r={})=>{const i=at._parse(e,t,r);return e=i.command,t=i.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=i.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:i,execPath:n})=>{const s=t?{...process.env,...e}:e;return r?bt.env({env:s,cwd:i,execPath:n}):s})(r),r.stdio=Ut(r),"win32"===process.platform&&"cmd"===Ie.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:i}},Hr=(e,t,r)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?xt(t):t:void 0===r?void 0:"",zr=(e,t,r)=>{const i=Gr(e,t,r),n=Mr(e,t),s=Ur(e,t);let o;pr(i.options);try{o=Me.spawn(i.file,i.args,i.options)}catch(e){const t=new Me.ChildProcess,r=Promise.reject(Tt({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return kr(t,r)}const a=Lr(o),c=dr(o,i.options,a),l=hr(o,i.options,c),u={isCanceled:!1};o.kill=lr.bind(null,o.kill.bind(o)),o.cancel=ur.bind(null,o,u);const d=St((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,d,p]=await Tr(o,i.options,l),h=Hr(i.options,c),f=Hr(i.options,d),m=Hr(i.options,p);if(e||0!==t||null!==r){const c=Tt({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:n,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return c;throw c}return{command:n,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Cr(o,i.options.input),o.all=Rr(o,i.options),kr(o,d)};let Br;(ot=zr).sync=(e,t,r)=>{const i=Gr(e,t,r),n=Mr(e,t),s=Ur(e,t);let o;Ir(i.options);try{o=Me.spawnSync(i.file,i.args,i.options)}catch(e){throw Tt({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const a=Hr(i.options,o.stdout,o.error),c=Hr(i.options,o.stderr,o.error);if(o.error||0!==o.status||null!==o.signal){const e=Tt({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:n,escapedCommand:s,parsed:i,timedOut:o.error&&"ETIMEDOUT"===o.error.code,isCanceled:!1,killed:null!==o.signal});if(!i.options.reject)return e;throw e}return{command:n,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},ot.command=(e,t)=>{const[r,...i]=Fr(e);return zr(r,i,t)},ot.commandSync=(e,t)=>{const[r,...i]=Fr(e);return zr.sync(r,i,t)},ot.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const i=Ut.node(r),n=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:o=n}=r;return zr(s,[...o,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})},We=Ye("iQ0s7");var qr,Vr=Ye("ditiY"),Xr=Ye("di6NI");We=Ye("iQ0s7"),Xr=Ye("di6NI");const Yr=Re.homedir();let Wr;var Jr;qr=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return Yr?e.replace(/^~(?=$|\/|\\)/,Yr):e},Vr=Ye("ditiY");const Kr="win32"!==Re.platform(),Qr=Re.release(),Zr=/(\d+\.\d+)\.(\d+)/;Jr=e=>Kr?e.replace(/(\s+)/g,"\\$1"):((e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184)(...Zr.exec(Qr).splice(1))?e:e.replace(/(\s+)/g,"%20");const ei=d(".cpprc");let ti=!1,ri=!1,ii=!1;We=Ye("iQ0s7");let ni,si=!1;We=Ye("iQ0s7"),Vr=Ye("ditiY");let oi=!1;var ai=Ye("fvrnx"),ci=(Vr=Ye("ditiY"),{}),li=Ie.resolve(__dirname,"../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),ui=ci&&ci.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),di=ci&&ci.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),pi=ci&&ci.__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)&&ui(t,e,r);return di(t,e),t}),hi=ci&&ci.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))),fi=ci&&ci.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(ci,"__esModule",{value:!0}),ci.evaluateVersions=ci.isExplicitVersion=ci.findFromManifest=ci.getManifestFromRepo=ci.findAllVersions=ci.find=ci.cacheFile=ci.cacheDir=ci.extractZip=ci.extractXar=ci.extractTar=ci.extract7z=ci.downloadTool=ci.HTTPError=void 0;const mi=pi(Ye("iQ0s7")),vi=pi(Ye("fvrnx")),gi=pi(Ae),yi=pi(Ye("6kHxT")),wi=pi(Re),xi=pi(Ie),bi=pi(Ye("4z9RF")),Ei=pi(Ye("4URNm")),Si=pi(ze),Oi=pi(De),_i=fi(Ye("iFKS7"));var $i=Ye("ca0ts"),Ci={},Ti=Ci&&Ci.__createBinding||(Object.create?(e,t,r,i)=>{void 0===i&&(i=r),Object.defineProperty(e,i,{enumerable:!0,get(){return t[r]}})}:(e,t,r,i)=>{void 0===i&&(i=r),e[i]=t[r]}),Ri=Ci&&Ci.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ii=Ci&&Ci.__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)&&Ti(t,e,r);return Ri(t,e),t}),Ai=Ci&&Ci.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())})));Object.defineProperty(Ci,"__esModule",{value:!0}),Ci.RetryHelper=void 0;const Pi=Ii(Ye("iQ0s7"));Ci.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 Ai(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;Pi.info(e.message)}const i=this.getSleepAmount();Pi.info(`Waiting ${i} seconds before trying again`),yield this.sleep(i),r++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Ai(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Ni extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}ci.HTTPError=Ni;const ki="win32"===process.platform,Li="darwin"===process.platform;let ji;ci.downloadTool=function(e,t,r,i){return hi(this,void 0,void 0,(function*(){t=t||xi.join(N(),_i.default()),yield vi.mkdirP(xi.dirname(t)),mi.debug("Downloading "+e),mi.debug("Destination "+t);const n=k("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=k("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),o=new Ci.RetryHelper(3,n,s);return yield o.execute((()=>hi(this,void 0,void 0,(function*(){return yield function(e,t,r,i){return hi(this,void 0,void 0,(function*(){if(gi.existsSync(t))throw Error(`Destination file path ${t} already exists`);const n=new bi.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(mi.debug("set auth"),void 0===i&&(i={}),i.authorization=r);const s=yield n.get(e,i);if(200!==s.message.statusCode){const t=new Ni(s.message.statusCode);throw mi.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),t}const o=Oi.promisify(Si.pipeline),a=k("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>s.message))();let c=!1;try{return yield o(a,gi.createWriteStream(t)),mi.debug("download complete"),c=!0,t}finally{if(!c){mi.debug("download failed");try{yield vi.rmRF(t)}catch(e){mi.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,i)}))),(e=>!(e instanceof Ni&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},ci.extract7z=function(e,t,r){return hi(this,void 0,void 0,(function*(){je.ok(ki,"extract7z() not supported on current OS"),je.ok(e,'parameter "file" is required'),t=yield C(t);const i=process.cwd();if(process.chdir(t),r)try{const t=["x",mi.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],n={silent:!0};yield $i.exec(`"${r}"`,t,n)}finally{process.chdir(i)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${xi.join(li,"..","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,"")}'`],n={silent:!0};try{const e=yield vi.which("powershell",!0);yield $i.exec(`"${e}"`,r,n)}finally{process.chdir(i)}}return t}))},ci.extractTar=function(e,t,r="xz"){return hi(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield C(t),mi.debug("Checking tar --version");let i="";yield $i.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return i+=""+e},stderr(e){return i+=""+e}}}),mi.debug(i.trim());const n=i.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],mi.isDebug()&&!r.includes("v")&&s.push("-v");let o=t,a=e;return ki&&n&&(s.push("--force-local"),o=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),n&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",o,"-f",a),yield $i.exec("tar",s),t}))},ci.extractXar=function(e,t,r=[]){return hi(this,void 0,void 0,(function*(){let i;je.ok(Li,"extractXar() not supported on current OS"),je.ok(e,'parameter "file" is required'),t=yield C(t),i=r instanceof Array?r:[r],i.push("-x","-C",t,"-f",e),mi.isDebug()&&i.push("-v");const n=yield vi.which("xar",!0);var s;return yield $i.exec(`"${n}"`,(s=i,Array.from(new Set(s)))),t}))},ci.extractZip=function(e,t){return hi(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield C(t),ki?yield function(e,t){return hi(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield vi.which("pwsh",!1);if(n){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}', '${i}', $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 '${i}' -Force } else { throw $_ } } ;`].join(" ")];mi.debug("Using pwsh at path: "+n),yield $i.exec(`"${n}"`,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 '${i}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${i}', $true) }`].join(" ")],t=yield vi.which("powershell",!0);mi.debug("Using powershell at path: "+t),yield $i.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return hi(this,void 0,void 0,(function*(){const r=yield vi.which("unzip",!0),i=[e];mi.isDebug()||i.unshift("-q"),i.unshift("-o"),yield $i.exec(`"${r}"`,i,{cwd:t})}))}(e,t),t}))},ci.cacheDir=function(e,t,r,i){return hi(this,void 0,void 0,(function*(){if(r=Ei.clean(r)||r,i=i||wi.arch(),mi.debug(`Caching tool ${t} ${r} ${i}`),mi.debug("source dir: "+e),!gi.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const n=yield T(t,r,i);for(const t of gi.readdirSync(e)){const r=xi.join(e,t);yield vi.cp(r,n,{recursive:!0})}return R(t,r,i),n}))},ci.cacheFile=function(e,t,r,i,n){return hi(this,void 0,void 0,(function*(){if(i=Ei.clean(i)||i,n=n||wi.arch(),mi.debug(`Caching tool ${r} ${i} ${n}`),mi.debug("source file: "+e),!gi.statSync(e).isFile())throw Error("sourceFile is not a file");const s=yield T(r,i,n),o=xi.join(s,t);return mi.debug("destination file "+o),yield vi.cp(e,o),R(r,i,n),s}))},ci.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||wi.arch(),I(t)||(t=A($(e,r),t));let i="";if(t){t=Ei.clean(t)||"";const n=xi.join(P(),e,t,r);mi.debug("checking cache: "+n),gi.existsSync(n)&&gi.existsSync(n+".complete")?(mi.debug(`Found tool in cache ${e} ${t} ${r}`),i=n):mi.debug("not found")}return i},ci.findAllVersions=$,ci.getManifestFromRepo=function(e,t,r,i="master"){return hi(this,void 0,void 0,(function*(){let n=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${i}`,o=new bi.HttpClient("tool-cache"),a={};r&&(mi.debug("set auth"),a.authorization=r);const c=yield o.getJson(s,a);if(!c.result)return n;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 o.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{n=JSON.parse(u)}catch(e){mi.debug("Invalid json")}}return n}))},ci.findFromManifest=function(e,t,r,i=wi.arch()){return hi(this,void 0,void 0,(function*(){return yield yi._findMatch(e,t,r,i)}))},ci.isExplicitVersion=I,ci.evaluateVersions=A,We=Ye("iQ0s7"),Xr=Ye("di6NI");let Di=!1;var Mi=Ye("fwsB7"),Fi=Ye("1YYsi"),Ui=($i=Ye("ca0ts"),We=Ye("iQ0s7"),Xr=Ye("di6NI"),Vr=Ye("ditiY"),Ye("howpO")),Gi=(Fi=Ye("1YYsi"),Ye("fVzwP"));$i=Ye("ca0ts"),Vr=Ye("ditiY");const Hi={llvm:"13.0.0",clangtidy:"13.0.0",clangformat:"13.0.0",ninja:"1.10.2",cmake:"3.23.1",gcovr:"5.1",conan:"1.48.0",meson:"0.62.1",python:"3.8.10",kcov:"40",task:"3.12.1",doxygen:"darwin"===process.platform?"1.9.3":"1.9.4",gcc:"11"},zi={llvm:{20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},clangformat:{20:"13.0.0-ubuntu-20.04",18:"13.0.1-ubuntu-18.04",16:"13.0.0-ubuntu-16.04",14:"13.0.0-ubuntu-16.04"},gcovr:{20:"5.1",18:"5.0"},meson:{20:"0.62.1",18:"0.61.4"},doxygen:{20:"1.9.4"}};let Bi,qi,Vi=!1;Vr=Ye("ditiY"),Mi=Ye("fwsB7");var Xi=Ye("fB2B7"),Yi=($i=Ye("ca0ts"),Vr=Ye("ditiY"),We=Ye("iQ0s7"),Vr=Ye("ditiY"),Xr=Ye("di6NI"),Xi=Ye("fB2B7"),Fi=Ye("1YYsi"),Vr=Ye("ditiY"),Xr=Ye("di6NI"),Ie.resolve(__dirname,"../src/gcc"));const Wi={12:{releaseName:"12.1.0-10.0.0-msvcrt-r1",fileSuffix:"12.1.0-mingw-w64msvcrt-10.0.0-r1"},"12.1.0-msvcrt":{releaseName:"12.1.0-10.0.0-msvcrt-r1",fileSuffix:"12.1.0-mingw-w64msvcrt-10.0.0-r1"},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"}};var Ji=Ie.resolve(__dirname,"../src/llvm");const Ki=(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"]),Qi=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"]),Zi=new Map,en={"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"},tn=new Set(["10.0.1"]);let rn=!1;var nn,sn,on,an={},cn=an&&an.__awaiter||((e,t,r,i)=>new(r||(r=Promise))(((n,s)=>{function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))),ln=an&&an.__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(an,"__esModule",{value:!0});var un={},dn=un&&un.__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(un,"__esModule",{value:!0});const pn=dn(Re);var hn={};Object.defineProperty(hn,"__esModule",{value:!0}),hn.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),un.issueCommand=le,un.issue=(e,t="")=>{le(e,{},t)};class fn{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 i in this.properties)if(this.properties.hasOwnProperty(i)){const n=this.properties[i];n&&(r?r=!1:e+=",",e+=`${i}=${t=n,hn.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>hn.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var mn={},vn=mn&&mn.__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(mn,"__esModule",{value:!0});const gn=vn(Ae),yn=vn(Re);mn.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!gn.existsSync(r))throw Error("Missing file at path: "+r);gn.appendFileSync(r,`${hn.toCommandValue(t)}${yn.EOL}`,{encoding:"utf8"})};const wn=ln(Re),xn=ln(Ie);var bn,En;(En=bn=an.ExitCode||(an.ExitCode={}))[En.Success=0]="Success",En[En.Failure=1]="Failure",an.exportVariable=(e,t)=>{const r=hn.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";mn.issueCommand("ENV",`${e}<<${t}${wn.EOL}${r}${wn.EOL}${t}`)}else un.issueCommand("set-env",{name:e},r)},an.setSecret=e=>{un.issueCommand("add-mask",{},e)},an.addPath=e=>{process.env.GITHUB_PATH?mn.issueCommand("PATH",e):un.issueCommand("add-path",{},e),process.env.PATH=`${e}${xn.delimiter}${process.env.PATH}`},an.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()},an.setOutput=(e,t)=>{un.issueCommand("set-output",{name:e},t)},an.setCommandEcho=e=>{un.issue("echo",e?"on":"off")},an.setFailed=e=>{process.exitCode=bn.Failure,ue(e)},an.isDebug=()=>"1"===process.env.RUNNER_DEBUG,an.debug=e=>{un.issueCommand("debug",{},e)},an.error=ue,an.warning=e=>{un.issue("warning",e instanceof Error?""+e:e)},an.info=e=>{process.stdout.write(e+wn.EOL)},an.startGroup=de,an.endGroup=pe,an.group=function(e,t){return cn(this,void 0,void 0,(function*(){let r;de(e);try{r=yield t()}finally{pe()}return r}))},an.saveState=(e,t)=>{un.issueCommand("save-state",{name:e},t)},an.getState=e=>process.env["STATE_"+e]||"";const Sn=Be.env["ProgramFiles(x86)"],On=[Be.env["ProgramFiles(x86)"],Be.env.ProgramFiles],_n=["Enterprise","Professional","Community"],$n=["2022","2019","2017"],Cn={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};nn=he;const Tn=Sn+"\\Microsoft Visual Studio\\Installer";sn=me,on=(e,t,r,i,n,s)=>{if("win32"!=Be.platform)return void an.info("This is not a Windows virtual environment, bye!");Be.env.PATH+=Ie.delimiter+Tn;let o={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in o&&(e=o[e.toLowerCase()]);var a=[e];"true"==i&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==n&&a.push("-vcvars_spectre_libs=spectre");const c=`"${me(s)}" ${a.join(" ")}`;an.debug("vcvars command-line: "+c);const l=(""+Me.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}an.startGroup("Environment variables");for(let e of p){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(an.info("Setting "+t),ve(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),an.exportVariable(t,r))}an.endGroup(),an.info("Configured Developer Command Prompt")},Vr=Ye("ditiY"),Xr=Ye("di6NI"),Vr=Ye("ditiY");var Rn,In=Ie.resolve(__dirname,"../src/msvc"),An=(Xr=Ye("di6NI"),{});An=Ye("cReTf"),Rn={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 Pn=Ye("5FRs7"),Nn={};Ye("j5MHF").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 kn={};Object.defineProperty(kn,"__esModule",{value:!0}),kn.getUbuntuVersion=void 0,kn.getUbuntuVersion=async()=>{if("linux"!==process.platform)return[];const e=await(t="lsb_release",r=["-a"],new Promise(((e,i)=>{Me.execFile(t,r,{encoding:"utf8",shell:!1},((n,s,o)=>{if(n)return"errno"in n&&"ENOENT"===n.code?void e(null):void i(Error(`Could not execute \`${t} ${r.join(" ")}\`: ${n} (stderr=${o})`));e(s)}))})));var t,r;if(null===e)return[];let i=null,n=null,s=!1;for(const t of e.split("\n")){const e=t.match(/^Distributor ID:\s*(.+)$/);if(null!==e){if("Ubuntu"!==e[1])return[];s=!0}const r=t.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(i=r);const o=t.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(o&&(n=o),s&&i&&n)break}if(!s)return[];for(const e of[i,n])if(e){const t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map((e=>parseInt(e,10)))}return[]},Gi=Ye("fVzwP"),Vr=Ye("ditiY"),Vr=Ye("ditiY");let Ln=!1;const jn={cmake:H,ninja(e,t,r){return F("ninja",e,we,t,r)},python:z,async vcpkg(e,r,i){return Ln&&null!==t(Je).sync("vcpkg",{nothrow:!0})?{binDir:Ie.dirname(t(Je).sync("vcpkg"))}:("linux"===process.platform&&(y("curl"),y("zip"),y("unzip"),y("tar"),y("git"),y("pkg-config")),Ae.existsSync(Ie.join(r,O("bootstrap-vcpkg")))?Vr.notice(`Vcpkg folder already exists at ${r}. This might mean that ~/vcpkg is restored from the cache.`):t(ot).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Ie.dirname(r),stdio:"inherit"}),t(ot).sync(O((n="bootstrap-vcpkg","win32"===process.platform?n:"./"+n)),{cwd:r,shell:!0,stdio:"inherit"}),"linux"!==process.platform&&"darwin"!==process.platform||!l()||void 0===process.env.SUDO_USER||u("chown",["-R",process.env.SUDO_USER,r],r),await f(r),Ln=!0,{binDir:r});var n},async conan(e,t,r){return await W("setuptools",""),W("conan",e)},meson(e,t,r){return W("meson",e)},gcovr(e,t,r){return W("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await E("opencppcoverage",e),{binDir:await(async()=>{const e="C:/Program Files/OpenCppCoverage";return await f(e),e})()}},llvm:se,gcc:ee,choco:b,brew:i,ccache(e,t,r){switch(process.platform){case"win32":return E("ccache",e);case"darwin":return x("ccache",e);case"linux":return y("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":{await E("doxygen.install",e);const t={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(Ae.existsSync(Ie.join(e,"doxygen.exe")))return await f(e),e;throw Error("Failed to find doxygen binary")}throw Error("Unsupported platform")})()};return await J(X("graphviz",void 0)),t}case"darwin":{const e=x("doxygen",void 0);return await J(X("graphviz",void 0)),e}case"linux":{let i;if(""===e)i=y("doxygen",void 0);else try{i=await F("doxygen",e,K,t,r),y("libclang-cpp9")}catch(e){Vr.notice(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),i=y("doxygen",void 0)}return await J(X("graphviz",void 0)),i}default:throw Error("Unsupported platform")}},graphviz:J,async cppcheck(e,t,r){switch(process.platform){case"win32":return await E("cppcheck",e),{binDir:await(async()=>{const e="C:/Program Files/Cppcheck";return await f(e),e})()};case"darwin":return x("cppcheck",e);case"linux":return y("cppcheck",e);default:throw Error("Unsupported platform")}},clangtidy:ae,clangformat:ae,msvc:ye,vcvarsall:ge,async kcov(e,t,r){if("linux"===process.platform){const i=await F("kcov",e,Ee,t,r);return y("libbinutils"),i}throw Error("Unsupported platform for "+r)},async make(e,t,r){switch(process.platform){case"win32":return E("make",e);case"darwin":return x("make",e),await f("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":return y("make",e);default:throw Error("Unsupported platform")}},task(e,t,r){return F("task",e,U,t,r)},sevenzip:_},Dn=["choco","brew","python","vcpkg","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","graphviz","cppcheck","clangtidy","clangformat","llvm","gcc","msvc","vcvarsall","kcov","make","task","sevenzip"],Mn=["compiler","architecture",...Dn];Oe(process.argv).then((e=>{process.exitCode=e})).catch((e=>{Vr.error("main() panicked!"),Vr.error(e),process.exitCode=1}));
//# sourceMappingURL=setup_cpp.js.map