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