setup-cpp/dist/setup_cpp.js

3 lines
151 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

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

function e(e){return e&&e.__esModule?e.default:e}function t(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}function r(e,t,r){const n=new Qe(e,t,r);process.stdout.write(""+n+Je.EOL)}function n(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 o(e,t={}){Xe.issueCommand("error",Ze.toCommandProperties(t),e instanceof Error?""+e:e)}function s(e){Xe.issue("group",e)}function i(){Xe.issue("endgroup")}function a(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise(((r,n)=>{a(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}yt(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}function c(t,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof St)return{binDir:St};const o=e(mt).sync("brew",{nothrow:!0});return null!==o?(St=Ee.dirname(o),{binDir:St}):(Ae.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),St="/usr/local/bin/",{binDir:St})}function l(e,t){const r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,s=o&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let i;try{i=mt.sync(e.command,{path:r[$t({env:r})],pathExt:t?Ee.delimiter:void 0})}catch(e){}finally{s&&process.chdir(n)}return i&&(i=Ee.resolve(o?e.options.cwd:"",i)),i}function u(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 p(e,t){return Ft&&1===e&&!t.file?u(t.original,"spawn"):null}function d(e,t,r){const n=Ct(e,t,r),o=Ae.spawn(n.command,n.args,n.options);return kt.hookChildProcess(o,n),o}function h(){vr&&(vr=!1,dr.forEach((e=>{try{process.removeListener(e,mr[e])}catch(e){}})),process.emit=yr,process.reallyExit=gr,pr.count-=1)}function f(e,t,r){pr.emitted[e]||(pr.emitted[e]=!0,pr.emit(e,t,r))}function m(){vr||(vr=!0,pr.count+=1,dr=dr.filter((e=>{try{return process.on(e,mr[e]),!0}catch(e){return!1}})),process.emit=g,process.reallyExit=v)}function v(e){process.exitCode=e||0,f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),gr.call(process,process.exitCode)}function g(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=yr.apply(this,arguments);return f("exit",process.exitCode,null),f("afterexit",process.exitCode,null),r}return yr.apply(this,arguments)}async function y(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,o)=>{const s=e=>{e&&n.getBufferedLength()<=Ir.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{await Rr(e,n),t()}catch(e){s(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&s(new Nr)}))})),n.getBufferedValue()}function x(t,r,n){return void 0!==rn||(rn=(!!process.env.CI||0===(null===(o=process.getuid)||void 0===o?void 0:o.call(process)))&&null!==e(mt).sync("sudo",{nothrow:!0})),rn?e(Ot).command("sudo "+[t,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:n}):e(Ot)(t,r);var o}async function w(e,t,r=!0){const n="apt-get";if(Array.isArray(r))for(const e of r)await x("add-apt-repository",["--update","-y",e]);if(nn&&!0!==r||(await x(n,["update","-y"]),nn=!0),void 0!==t&&""!==t)try{await x(n,["install","--fix-broken","-y",`${e}=${t}`])}catch{await x(n,["install","--fix-broken","-y",`${e}-${t}`])}else await x(n,["install","--fix-broken","-y",e]);return{binDir:"/usr/bin/"}}function b(t,r){return on&&null!==e(mt).sync("brew",{nothrow:!0})||(c(0,0,process),on=!0),e(Ot).sync("brew",["install",void 0!==r&&""!==r?`${t}@${r}`:t]),{binDir:"/usr/local/bin/"}}function E(){return"true"===process.env.CI&&"true"==process.env.GITHUB_ACTIONS}function S(e){try{E()?He.addPath(e):P(e)}catch(t){try{return He.error(t),P(e)}catch(e){He.error(e)}He.error(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}function P(t){switch(process.platform){case"win32":return e(Ot).sync(`setx PATH=${t};%PATH%`),void He.info(t+" was added to the PATH.");case"linux":case"darwin":{const r=e(sn)("~/.profile");return Pe.appendFileSync(r,`\nexport PATH=${t}:$PATH\n`),void He.info(`${t} was added to "${r}"`)}}process.env.PATH=`${t}${Ee.delimiter}${process.env.PATH}`}function O(t,r,n){if("win32"!==process.platform)return;if("string"==typeof cn)return{binDir:cn};const o=e(mt).sync("choco",{nothrow:!0});if(null!==o)return cn=Ee.dirname(o),{binDir:cn};let s="powershell.exe";const i=e(mt).sync(process.env.SystemRoot+"\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",{nothrow:!0});null!==i&&(s=i),e(Ot).sync(s,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"]),S(process.env.ALLUSERSPROFILE+"\\chocolatey\\bin");const a=e(mt).sync("choco",{nothrow:!0});return cn=null!==a?Ee.dirname(a):"C:/ProgramData/Chocolatey/bin/",Pe.existsSync(cn)?{binDir:cn}:void 0}async function _(t,r,n=[]){ln&&null!==e(mt).sync("choco",{nothrow:!0})||(O(0,0,process),ln=!0);const o=process.env.PATH,s={...process.env};delete s.TMP,delete s.TEMP,delete s.Path,s.PATH=o,e(Ot).sync("choco",void 0!==r&&""!==r?["install","-y",t,"--version="+r,...n]:["install","-y",t,...n],{env:s,extendEnv:!1});const i="C:/ProgramData/Chocolatey/bin/";return S(i),{binDir:i}}function C(e,t,r){return An(this,void 0,void 0,(function*(){const n=Rn.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");const o=n[0];return t=n.slice(1).concat(t||[]),new Rn.ToolRunner(o,t,r).exec()}))}function $(e,t){const r=[];t=t||wn.arch();const n=bn.join(L(),e);if(yn.existsSync(n)){const e=yn.readdirSync(n);for(const o of e)if(R(o)){const e=bn.join(n,o,t||"");yn.existsSync(e)&&yn.existsSync(e+".complete")&&r.push(o)}}return r}function T(e){return fn(this,void 0,void 0,(function*(){return e||(e=bn.join(D(),_n.default())),yield gn.mkdirP(e),e}))}function I(e,t,r){return fn(this,void 0,void 0,(function*(){const n=bn.join(L(),e,Sn.clean(t)||t,r||"");vn.debug("destination "+n);const o=n+".complete";return yield gn.rmRF(n),yield gn.rmRF(o),yield gn.mkdirP(n),n}))}function A(e,t,r){const n=bn.join(L(),e,Sn.clean(t)||t,r||"");yn.writeFileSync(n+".complete",""),vn.debug("finished caching tool")}function R(e){const t=Sn.clean(e)||"";vn.debug("isExplicit: "+t);const r=null!=Sn.valid(t);return vn.debug("explicit? "+r),r}function N(e,t){let r="";vn.debug(`evaluating ${e.length} versions`);for(let n=(e=e.sort(((e,t)=>Sn.gt(e,t)?1:-1))).length-1;n>=0;n--){const o=e[n];if(Sn.satisfies(o,t)){r=o;break}}return vn.debug(r?"matched: "+r:"match not found"),r}function L(){const e=process.env.RUNNER_TOOL_CACHE||"";return Te.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e}function D(){const e=process.env.RUNNER_TEMP||"";return Te.ok(e,"Expected RUNNER_TEMP to be defined"),e}function j(e,t){const r=Fe[e];return void 0!==r?r:t}async function k(e,t,r,n){var o,s;process.env.RUNNER_TEMP=null!==(o=process.env.RUNNER_TEMP)&&void 0!==o?o:Se.tmpdir(),process.env.RUNNER_TOOL_CACHE=null!==(s=process.env.RUNNER_TOOL_CACH)&&void 0!==s?s:Ee.join(Se.tmpdir(),"setup-cpp","ToolCache");const{url:i,binRelativeDir:a,binFileName:c,extractedFolderName:l,extractFunction:u}=await r(t,process.platform);if(E())try{const r=un.find(e,t);if(r){const n=Ee.join(r,l),o=Ee.join(n,a);if(Pe.existsSync(o)&&Pe.existsSync(Ee.join(o,c)))return He.info(`${e} ${t} was found in the cache.`),S(o),{installDir:n,binDir:o}}}catch{}const p=Ee.join(n,l),d=Ee.join(p,a),h=Ee.join(d,c);if(!Pe.existsSync(d)||!Pe.existsSync(h)){He.info(`Download and extract ${e} ${t}`);const r=await un.downloadTool(i);await(null==u?void 0:u(r,n))}return He.info(`Add ${d} to PATH`),S(d),E()&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&await un.cacheDir(n,e,t),{installDir:p,binDir:d}}function F(e){return"win32"===process.platform?e+".exe":e}function M(e){return"win32"===process.platform?e+".bat":e+".sh"}function G(t,r){var n;const o=null!==(n=e(Bn)(t))&&void 0!==n?n:t,s=null!=r?r:process.platform,i=He.getInput("architecture")||process.arch;switch(s){case"win32":{const r=e(Vn)(o,"v3.19.6");let n;n=["ia32","x86","i386","x32"].includes(i)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";const s=`cmake-${t}-${n}`;return{binRelativeDir:"bin/",binFileName:F("cmake"),extractedFolderName:s,extractFunction:un.extractZip,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${s}.zip`}}case"darwin":{const r=`cmake-${t}-${e(Vn)(o,"v3.19.1")?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:F("cmake"),extractedFolderName:r,extractFunction:un.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${r}.tar.gz`}}case"linux":{const r=e(Vn)(o,"v3.19.8");let n;n=["aarch64"].includes(i)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";const s=`cmake-${t}-${n}`;return{binRelativeDir:"bin/",binFileName:F("cmake"),extractedFolderName:s,extractFunction:un.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${t}/${s}.tar.gz`}}default:throw Error(`Unsupported platform '${s}'`)}}function U(e,t,r){if(!E())return H("",t,r);try{const{setupActionsPython:n}=Ue("apy8x");return n(e,t,r)}catch(n){return H(e,t,r)}}async function H(t,r,n){switch(process.platform){case"win32":{const o=await e(Hn).async(t+n,{algorithm:"md5"}),s=Ee.join(r,o,"python"),i=s;return await _("python3",t,["/InstallDir:"+s]),(e=>{He.info(`Add ${e} to PATH`),S(e)})(i),{installDir:s,binDir:i}}case"darwin":return b("python3",t);case"linux":{const e=await w("python3",t);return await w("python3-pip"),e}default:throw Error("Unsupported platform")}}function V(e){return new Promise((t=>{_e.get(e,(e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&399>=e.statusCode)}))}))}async function B(t,r){if(void 0===Qn&&(null!==e(mt).sync("pip3",{nothrow:!0})?Qn="pip3":null!==e(mt).sync("pip",{nothrow:!0})&&await(async(t,r,n=/v?(\d\S*)/)=>{const o=await(async(e,t=/v?(\d\S*)/)=>{try{var r;const n=await Cn.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)}})(t,n);return"string"==typeof o&&"string"==typeof r&&""!==o&&""!==r&&-1!==e(Jn)(o,r)})("python","3.0.0")?Qn="pip":(await U("3.x","",process.arch),Qn="pip3")),e(Ot).sync(Qn,["install",void 0!==r&&""!==r?`${t}==${r}`:t]),void 0===eo){if("linux"===process.platform)eo="/home/runner/.local/bin/";else if("darwin"===process.platform)eo="/usr/local/bin/";else try{eo=Ee.join((await Cn.getExecOutput('python3 -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}catch{eo=Ee.join((await Cn.getExecOutput('python -c "import sys;print(sys.base_exec_prefix);"')).stdout.trim(),"Scripts")}He.info(eo+" to PATH"),S(eo)}return{binDir:eo}}async function q(t,r){return await e(Ot)("7z",["x",t,"-o"+r]),r}async function W(t,r,n=["--strip-components=1"]){try{await ro.mkdirP(r)}catch{}return await e(Ot)("tar",["xf",t,"-C",r,...n]),r}function X(e,t){try{E()?He.exportVariable(e,t):Y(e,t)}catch(r){try{return He.error(r),Y(e,t)}catch(e){He.error(e)}He.error(`Failed to export environment variable ${e}=${t}. You should add it manually.`)}}function Y(t,r){switch(process.platform){case"win32":return e(Ot).sync(`setx "${t}"="${r}"`),void He.info(`${t}="${r} was set in the environment."`);case"linux":case"darwin":{const n=e(sn)("~/.profile");return Pe.appendFileSync(n,`\nexport ${t}="${r}\n`),void He.info(`${t}="${r} was added to "${n}"`)}}process.env[t]=r}async function z(){if("darwin"===process.platform)try{const e=await Cn.getExecOutput("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?X("SDKROOT",t.trim()):He.error("SDKROOT not set")}catch(e){He.error(e)}}function K(e,t,r){return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${t}${e}${r}`}function J(e,t,r){return`https://releases.llvm.org/${e}/${t}${e}${r}`}function Z(t,r){switch(t){case"darwin":return(t=>{if(oo.has(t))return null;const r="clang+llvm-",n=`-x86_64${"9.0.0"===t?"-darwin-apple":"-apple-darwin"}.tar.xz`;return e(Vn)(t,"9.0.1")?J(t,r,n):K(t,r,n)})(r);case"linux":return(t=>{let r=t;const n=so.get(r);let o;void 0!==n&&(r=n),o=r.includes("ubuntu")?r:""!==r&&r in io?io[r]:io["13.0.0"];const s="clang+llvm-",i="5.0.0"===r?`-linux-x86_64${o}.tar.xz`:`-x86_64-linux-gnu${o}.tar.xz`;return e(Vn)(r,"9.0.1")?J(r,s,i):K(r,s,i)})(r);case"win32":return(async t=>{if(ao.has(t))return null;const r="LLVM-",n=e(Vn)(t,"3.7.0")?"-win32.exe":"-win64.exe",o=e(Vn)(t,"9.0.1");let s,i=!1;return o&&(s=J(t,r,n),await V(s)||(i=!0)),!i&&o||(s=K(t,r,n)),s})(r);default:return null}}async function Q(e,t){const[r,n]=await(async(e,t,r,n)=>{if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}')`);for(const o of((e,t)=>Array.from(e).filter((e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t))).sort().reverse())(e,r)){const e=await n(t,o);if(null!==e&&await V(e))return[o,e]}throw Error(`Unsupported target! (platform='${t}', version='${r}')`)})(no,t,e,Z);return He.setOutput("version",r),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:F("clang"),extractFunction:"win32"===t?q:W}}async function ee(t,r,n){const o=await k("llvm",t,Q,r);return await(async(t,r)=>{const n=(t=>{if(null===e(Zn)(t))try{const r=e(Bn)(t);if(null!==r)return r.version}catch(e){}return t})(r),o=Ee.join(t,"lib");var s;const i=null!==(s=process.env.LD_LIBRARY_PATH)&&void 0!==s?s:"";var a;const c=null!==(a=process.env.DYLD_LIBRARY_PATH)&&void 0!==a?a:"";X("LLVM_PATH",t);const l=e(to)(n);X("LD_LIBRARY_PATH",`${o}${Ee.delimiter}${i}`),X("DYLD_LIBRARY_PATH",`${o}${Ee.delimiter}${c}`),"win32"!==process.platform&&X("CPATH",`${t}/lib/clang/${l}/include`),X("LDFLAGS",`-L${t}/lib`),X("CPPFLAGS",`-I${t}/include`),X("CC",t+"/bin/clang"),X("CXX",t+"/bin/clang++"),X("LIBRARY_PATH",t+"/lib"),await z()})(r,t),o}function te(e,t,r){const n=new xo(e,t,r);process.stdout.write(""+n+go.EOL)}function re(e){mo.issue("error",e instanceof Error?""+e:e)}function ne(e){mo.issue("group",e)}function oe(){mo.issue("endgroup")}function se(e){return Object.values(Ao).includes(e)?e:e in Ao?Ao[e]:e}function ie(e){if(Object.keys(Ao).includes(e))return e;for(const[t,r]of Object.entries(Ao))if(r===e)return t;return e}function ae(e){const t=se(e);let r;if(t){const e=t.split(".")[0]+".9";r=`-version "${t},${e}"`}else r="-latest";let n=((e,t)=>{try{return(""+Ae.execSync(`vswhere -products * ${t} -prerelease -property installationPath`)).trim()+"\\VC\\Auxiliary\\Build\\vcvarsall.bat"}catch(e){po.warning("vswhere failed: "+e)}return null})(0,r);if(n&&Pe.existsSync(n))return po.info("Found with vswhere: "+n),n;po.info("Not found with vswhere");const o=e?[ie(e)]:Io;for(const e of $o)for(const t of o)for(const r of To)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,po.info("Trying standard location: "+n),Pe.existsSync(n))return po.info("Found standard location: "+n),n;if(po.info("Not found in standard locations"),n=Co+"\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat",Pe.existsSync(n))return po.info("Found VS 2015: "+n),n;throw po.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found")}function ce(e){return-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(e.toUpperCase())}function le(e,t,r,n,o,s,i){void 0!==t&&Pe.existsSync(t)&&(He.info(`Adding ${t} to PATH`),X("VCTargetsPath",t)),uo((e=>{switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e}})(r),o,n,s,i,e)}async function ue(e,t,r,n,o,s){if("win32"!==process.platform)return;const i=co(e);let a,c,l=!1;try{lo(i),l=!0}catch{}try{"14.0"===i?(a="14.0",l||await _("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),c="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===i?(a="14.16",l||await _("visualstudio2017buildtools","15.9.41.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===i?(a="14.29",l||await _("visualstudio2019buildtools","16.11.7.0",[]),c="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):He.error(`The given MSVC versions ${e} is not supported yet.`)}catch(e){He.error(e)}le(i,c,r,a,n,o,s)}function pe(e,t){const r=(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:F("ninja"),extractedFolderName:"",extractFunction:un.extractZip,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`}}function de(e){return null==e?[]:Array.isArray(e)?e:[e]}function he(e,t,r,n){var o,s=e[t],i=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==s?i:Array.isArray(s)?s.concat(i):[s,i]}function fe(e,t){return"true"===t||void 0===t&&e in No?No[e]:null!=t?t:""}async function me(t,r,n){let o;switch(process.platform){case"win32":"arm"!==n&&"arm64"!==n||await _("gcc-arm-embedded",t),await _("mingw",t),"x64"===n&&Pe.existsSync("C:/tools/mingw64/bin")?(o="C:/tools/mingw64/bin",S(o)):"ia32"===n&&Pe.existsSync("C:/tools/mingw32/bin")?(o="C:/tools/mingw32/bin",S(o)):Pe.existsSync("C:/ProgramData/Chocolatey/bin/g++.exe")&&(o="C:/ProgramData/Chocolatey/bin/");break;case"darwin":o=b("gcc",t).binDir;break;case"linux":"x64"===n?(await w("gcc",t,["deb http://dk.archive.ubuntu.com/ubuntu/ xenial main","deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe","ppa:ubuntu-toolchain-r/test"]),o=(await w("g++",t,["deb http://dk.archive.ubuntu.com/ubuntu/ xenial main","deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe","ppa:ubuntu-toolchain-r/test"])).binDir):(He.info(`Install g++-multilib because gcc for ${n} was requested`),await w("gcc-multilib",t,["deb http://dk.archive.ubuntu.com/ubuntu/ xenial main","deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe","ppa:ubuntu-toolchain-r/test"]),o=(await w("g++-multilib",t,["deb http://dk.archive.ubuntu.com/ubuntu/ xenial main","deb http://dk.archive.ubuntu.com/ubuntu/ xenial universe","ppa:ubuntu-toolchain-r/test"])).binDir);break;default:throw Error("Unsupported platform for "+n)}if(void 0!==o)return await(async(t,r)=>{if("win32"===process.platform)X("CC",r+"/gcc"),X("CXX",r+"/g++");else{var n;const o=e(to)(null!==(n=e(Bn)(t))&&void 0!==n?n:t);5>o?(X("CC",`${r}/gcc-${t}`),X("CXX",`${r}/g++-${t}`)):(X("CC",`${r}/gcc-${o}`),X("CXX",`${r}/g++-${o}`))}await z()})(t,o),{binDir:o}}function ve(e){return E()?He.error(e):console.log(`${e}`)}function ge(t){const r=parseInt(t.replace(/^v/,""),10);return 38===r&&(t="v38"),39>r?{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${t}.tar.gz`,extractedFolderName:"kcov-"+r,binRelativeDir:"build/",binFileName:F("kcov"),async extractFunction(t,r){const n=await W(t,r);return await w("libdw-dev"),await w("libcurl4-openssl-dev"),await e(Ot)("cmake",["-S","./","-B","./build"],{cwd:n}),await e(Ot)("cmake",["--build","./build","--config","Release"],{cwd:n}),await x("cmake",["--install","./build"],n),n}}:{url:`https://github.com/SimonKagstrom/kcov/releases/download/${t}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:F("kcov"),extractFunction(e,t){return W(e,t,["--strip-components=0"])}}}async function ye(t){E()||(process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");const r=((e,t)=>{var r,n,o,s,i,a={_:[]},c=0,l=0,u=0,p=(e=e||[]).length;const d=void 0!==(t=t||{}).alias,h=void 0!==t.unknown,f=void 0!==t.default;if(t.alias=t.alias||{},t.string=de(t.string),t.boolean=de(t.boolean),d)for(r in t.alias)for(n=t.alias[r]=de(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(s=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[s])for(t[s].push(r),c=0;n.length>c;c++)t[s].push(n[c]);const m=h?Object.keys(t.alias):[];for(c=0;p>c;c++){if("--"===(o=e[c])){a._=a._.concat(e.slice(++c));break}for(l=0;o.length>l&&45===o.charCodeAt(l);l++);if(0===l)a._.push(o);else if("no-"===o.substring(l,l+3)){if(s=o.substring(l+3),h&&!~m.indexOf(s))return t.unknown(o);a[s]=!1}else{for(u=l+1;o.length>u&&61!==o.charCodeAt(u);u++);for(s=o.substring(l,u),i=o.substring(++u)||c+1===p||45===(""+e[c+1]).charCodeAt(0)||e[++c],n=2===l?[s]:s,u=0;n.length>u;u++){if(s=n[u],h&&!~m.indexOf(s))return t.unknown("-".repeat(l)+s);he(a,s,n.length>u+1||i,t)}}}if(f)for(r in t.default)void 0===a[r]&&(a[r]=t.default[r]);if(d)for(r in a)for(n=t.alias[r]||[];n.length>0;)a[n.shift()]=a[r];return a})(t,{string:ko,default:Object.fromEntries(ko.map((e=>[e,we(e)]))),alias:{h:"help"},boolean:"help"});var n;r.help&&He.info('\nsetup_cpp [options]\nsetup_cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true\n\nInstall all the tools required for building and testing C++/C projects.\n\n--architecture\t the cpu architecture to install the tools for. By default it uses the current CPU architecture.\n--compiler\t the <compiler> to install.\n \t You can specify the version instead of specifying just the name e.g: --compiler \'llvm-13.0.0\'\n\n--tool_name\t pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"\n\nAll the available tools:\n--llvm\n--gcc\n--vcvarsall\n--cmake\n--ninja\n--vcpkg\n--meson\n--conan\n--ccache\n--cppcheck\n--doxygen\n--gcovr\n--opencppcoverage\n--kcov\n--python\n--choco\n--brew\n ');const o=null!==(n=r.architecture)&&void 0!==n?n:process.arch;var s;const i=null!==(s=process.env.SETUP_CPP_DIR)&&void 0!==s?s:e(sn)("~/"),a=[],c=[];for(const e of jo){const t=r[e];if(void 0!==t)try{let r;if("vcvarsall"===e)le(fe(e,t),void 0,o,void 0,void 0,!1,!1);else{const n=Do[e];r=await n(fe(e,t),Ee.join(i,e),o)}a.push(void 0!==r?be(e,r):e+" was successfully installed")}catch(t){ve(t),c.push(e+" failed to install")}}const l=r.compiler;try{if(void 0!==l){const{compiler:e,version:t}=xe(l);switch(e){case"llvm":case"clang":case"clang++":await ee(fe("llvm",t),Ee.join(i,"llvm"));break;case"gcc":case"mingw":case"cygwin":case"msys":await me(fe("gcc",t),Ee.join(i,"gcc"),o);break;case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":await ue(fe("msvc",t),Ee.join(i,"msvc"),o);break;case"appleclang":case"applellvm":He.info("Assuming apple-clang is already installed"),X("CC","clang"),X("CXX","clang++");break;default:c.push("Unsupported compiler "+e)}}}catch(e){ve(e),c.push("Failed to install the "+l)}if(a.forEach((e=>{return t=e,E()?He.info(t):console.log(`${t}`);var t})),c.forEach((e=>ve(e))),He.info("setup_cpp finished"),!E())switch(process.platform){case"win32":He.info("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":He.info("Run `source ~/.profile` or restart your shell to update the environment.")}return 0===c.length?0:1}function xe(t){const r=t.split("-"),n=r[0];if(1 in r){const t=r[1];return null!==e(Zn)(t)||He.info(`Invalid semver version ${t} used for the compiler.`),{compiler:n,version:t}}return{compiler:n,version:void 0}}function we(e){const t=He.getInput(e.toLowerCase());if("false"!==t&&""!==t)return t}function be(e,t){let r=e+" was successfully installed";return"installDir"in t&&(r+="\nThe installation directory is "+t.installDir),""!==t.binDir&&(r+="\nThe binary directory is "+t.binDir),r}var Ee=require("path"),Se=require("os"),Pe=require("fs"),Oe=require("http"),_e=require("https");require("net");var Ce=require("tls"),$e=require("events"),Te=require("assert"),Ie=require("util"),Ae=require("child_process"),Re=require("buffer"),Ne=require("stream"),Le=require("crypto"),De=require("string_decoder"),je=require("timers"),ke=require("process"),Fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},Me={},Ge={},Ue=Fe.parcelRequire810d;null==Ue&&((Ue=e=>{if(e in Me)return Me[e].exports;if(e in Ge){var t=Ge[e];delete Ge[e];var r={id:e,exports:{}};return Me[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)=>{Ge[e]=t},Fe.parcelRequire810d=Ue),t(module.exports,"main",(()=>ye)),t(module.exports,"getCompilerInfo",(()=>xe));var He={},Ve=He&&He.__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]}),Be=He&&He.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),qe=He&&He.__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)&&Ve(t,e,r);return Be(t,e),t}),We=He&&He.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(He,"__esModule",{value:!0}),He.getIDToken=He.getState=He.saveState=He.group=He.endGroup=He.startGroup=He.info=He.notice=He.warning=He.error=He.debug=He.isDebug=He.setFailed=He.setCommandEcho=He.setOutput=He.getBooleanInput=He.getMultilineInput=He.getInput=He.addPath=He.setSecret=He.exportVariable=He.ExitCode=void 0;var Xe={},Ye=Xe&&Xe.__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]}),ze=Xe&&Xe.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),Ke=Xe&&Xe.__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)&&Ye(t,e,r);return ze(t,e),t});Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.issue=Xe.issueCommand=void 0;const Je=Ke(Se);var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.toCommandProperties=Ze.toCommandValue=void 0,Ze.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),Ze.toCommandProperties=e=>Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{},Xe.issueCommand=r,Xe.issue=(e,t="")=>{r(e,{},t)};class Qe{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,Ze.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>Ze.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var et={},tt=et&&et.__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]}),rt=et&&et.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),nt=et&&et.__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)&&tt(t,e,r);return rt(t,e),t});Object.defineProperty(et,"__esModule",{value:!0}),et.issueCommand=void 0;const ot=nt(Pe),st=nt(Se);et.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!ot.existsSync(r))throw Error("Missing file at path: "+r);ot.appendFileSync(r,`${Ze.toCommandValue(t)}${st.EOL}`,{encoding:"utf8"})};const it=qe(Se),at=qe(Ee);var ct={},lt=ct&&ct.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(ct,"__esModule",{value:!0}),ct.OidcClient=void 0,Ue.register("ba1Cu",(function(e,t){"use strict";Object.defineProperty(e.exports,"__esModule",{value:!0});var r=Ue("8NGVX");let n;var o,s,i,a,c;(s=o=e.exports.HttpCodes||(e.exports.HttpCodes={}))[s.OK=200]="OK",s[s.MultipleChoices=300]="MultipleChoices",s[s.MovedPermanently=301]="MovedPermanently",s[s.ResourceMoved=302]="ResourceMoved",s[s.SeeOther=303]="SeeOther",s[s.NotModified=304]="NotModified",s[s.UseProxy=305]="UseProxy",s[s.SwitchProxy=306]="SwitchProxy",s[s.TemporaryRedirect=307]="TemporaryRedirect",s[s.PermanentRedirect=308]="PermanentRedirect",s[s.BadRequest=400]="BadRequest",s[s.Unauthorized=401]="Unauthorized",s[s.PaymentRequired=402]="PaymentRequired",s[s.Forbidden=403]="Forbidden",s[s.NotFound=404]="NotFound",s[s.MethodNotAllowed=405]="MethodNotAllowed",s[s.NotAcceptable=406]="NotAcceptable",s[s.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",s[s.RequestTimeout=408]="RequestTimeout",s[s.Conflict=409]="Conflict",s[s.Gone=410]="Gone",s[s.TooManyRequests=429]="TooManyRequests",s[s.InternalServerError=500]="InternalServerError",s[s.NotImplemented=501]="NotImplemented",s[s.BadGateway=502]="BadGateway",s[s.ServiceUnavailable=503]="ServiceUnavailable",s[s.GatewayTimeout=504]="GatewayTimeout",(a=i=e.exports.Headers||(e.exports.Headers={})).Accept="accept",a.ContentType="content-type",(c=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=e=>{let t=r.getProxyUrl(new URL(e));return t?t.href:""};const l=[o.MovedPermanently,o.ResourceMoved,o.SeeOther,o.TemporaryRedirect,o.PermanentRedirect],u=[o.BadGateway,o.ServiceUnavailable,o.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class d extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,d.prototype)}}e.exports.HttpClientError=d;class h{constructor(e){this.message=e}readBody(){return new Promise((async(e,t)=>{let r=Buffer.alloc(0);this.message.on("data",(e=>{r=Buffer.concat([r,e])})),this.message.on("end",(()=>{e(""+r)}))}))}}e.exports.HttpClientResponse=h,e.exports.isHttps=e=>"https:"===new URL(e).protocol;class f{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 this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,r){return this.request("POST",e,t,r||{})}patch(e,t,r){return this.request("PATCH",e,t,r||{})}put(e,t,r){return this.request("PUT",e,t,r||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,r,n){return this.request(e,t,r,n)}async getJson(e,t={}){t[i.Accept]=this._getExistingOrDefaultHeader(t,i.Accept,c.ApplicationJson);let r=await this.get(e,t);return this._processResponse(r,this.requestOptions)}async postJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let o=await this.post(e,n,r);return this._processResponse(o,this.requestOptions)}async putJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let o=await this.put(e,n,r);return this._processResponse(o,this.requestOptions)}async patchJson(e,t,r={}){let n=JSON.stringify(t,null,2);r[i.Accept]=this._getExistingOrDefaultHeader(r,i.Accept,c.ApplicationJson),r[i.ContentType]=this._getExistingOrDefaultHeader(r,i.ContentType,c.ApplicationJson);let o=await this.patch(e,n,r);return this._processResponse(o,this.requestOptions)}async request(e,t,r,n){if(this._disposed)throw Error("Client has already been disposed.");let s,i=new URL(t),a=this._prepareRequest(e,i,n),c=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,d=0;for(;c>d;){if(s=await this.requestRaw(a,r),s&&s.message&&s.message.statusCode===o.Unauthorized){let e;for(let t=0;this.handlers.length>t;t++)if(this.handlers[t].canHandleAuthentication(s)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,r):s}let t=this._maxRedirects;for(;-1!=l.indexOf(s.message.statusCode)&&this._allowRedirects&&t>0;){const o=s.message.headers.location;if(!o)break;let c=new URL(o);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(await s.readBody(),c.hostname!==i.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];a=this._prepareRequest(e,c,n),s=await this.requestRaw(a,r),t--}if(-1==u.indexOf(s.message.statusCode))return s;d+=1,c>d&&(await s.readBody(),await this._performExponentialBackoff(d))}return s}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise(((r,n)=>{this.requestRawWithCallback(e,t,((e,t)=>{e&&n(e),r(t)}))}))}requestRawWithCallback(e,t,r){let n;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,s=(e,t)=>{o||(o=!0,r(e,t))},i=e.httpModule.request(e.options,(e=>{let t=new h(e);s(null,t)}));i.on("socket",(e=>{n=e})),i.setTimeout(this._socketTimeout||18e4,(()=>{n&&n.end(),s(Error("Request timeout: "+e.options.path),null)})),i.on("error",(e=>{s(e,null)})),t&&"string"==typeof t&&i.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(()=>{i.end()})),t.pipe(i)):i.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}_prepareRequest(e,t,r){const n={};n.parsedUrl=t;const o="https:"===n.parsedUrl.protocol;n.httpModule=o?_e:Oe;const s=o?443:80;return n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):s,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers&&this.handlers.forEach((e=>{e.prepareRequest(n.options)})),n}_mergeHeaders(e){const t=e=>Object.keys(e).reduce(((t,r)=>(t[r.toLowerCase()]=e[r],t)),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getExistingOrDefaultHeader(e,t,r){let n;var o;return this.requestOptions&&this.requestOptions.headers&&(n=(o=this.requestOptions.headers,Object.keys(o).reduce(((e,t)=>(e[t.toLowerCase()]=o[t],e)),{}))[t]),e[t]||n||r}_getAgent(e){let t,o=r.getProxyUrl(e),s=o&&o.hostname;if(this._keepAlive&&s&&(t=this._proxyAgent),this._keepAlive&&!s&&(t=this._agent),t)return t;const i="https:"===e.protocol;let a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||Oe.globalAgent.maxSockets),s){n||(n=Ue("bbp3j"));const e={maxSockets:a,keepAlive:this._keepAlive,proxy:{...(o.username||o.password)&&{proxyAuth:`${o.username}:${o.password}`},host:o.hostname,port:o.port}};let r;const s="https:"===o.protocol;r=i?s?n.httpsOverHttps:n.httpsOverHttp:s?n.httpOverHttps:n.httpOverHttp,t=r(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new _e.Agent(e):new Oe.Agent(e),this._agent=t}return t||(t=i?_e.globalAgent:Oe.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_performExponentialBackoff(e){const t=5*Math.pow(2,e=Math.min(10,e));return new Promise((e=>setTimeout((()=>e()),t)))}static dateTimeDeserializer(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}async _processResponse(e,t){return new Promise((async(r,n)=>{const s=e.message.statusCode,i={statusCode:s,result:null,headers:{}};let a,c;s==o.NotFound&&r(i);try{c=await e.readBody(),c&&c.length>0&&(a=t&&t.deserializeDates?JSON.parse(c,f.dateTimeDeserializer):JSON.parse(c),i.result=a),i.headers=e.message.headers}catch(e){}if(s>299){let e;e=a&&a.message?a.message:c&&c.length>0?c:"Failed request: ("+s+")";let t=new d(e,s);t.result=i.result,n(t)}else r(i)}))}}e.exports.HttpClient=f})),Ue.register("8NGVX",((e,t)=>{"use strict";function r(e){if(!e.hostname)return!1;let t,r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];"number"==typeof t&&n.push(`${n[0]}:${t}`);for(let e of r.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.getProxyUrl=e=>{let t,n,o="https:"===e.protocol;return r(e)||(n=o?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY,n&&(t=new URL(n))),t},e.exports.checkBypass=r})),Ue.register("bbp3j",((e,t)=>{e.exports=Ue("fNJ5J")})),Ue.register("fNJ5J",(function(e,r){function n(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||Oe.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",((e,r,n,o)=>{for(var i=s(r,n,o),a=0,c=t.requests.length;c>a;++a){var l=t.requests[a];if(l.host===i.host&&l.port===i.port)return t.requests.splice(a,1),void l.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function o(e,t){var r=this;n.prototype.createSocket.call(r,e,(n=>{var o=e.request.getHeader("host"),s=i({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):e.host}),a=Ce.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,t(a)}))}function s(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e}function i(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var o=Object.keys(n),s=0,i=o.length;i>s;++s){var a=o[s];void 0!==n[a]&&(e[a]=n[a])}}return e}var a,c,l,u,p,d;t(e.exports,"httpOverHttp",(()=>a),(e=>a=e)),t(e.exports,"httpsOverHttp",(()=>c),(e=>c=e)),t(e.exports,"httpOverHttps",(()=>l),(e=>l=e)),t(e.exports,"httpsOverHttps",(()=>u),(e=>u=e)),t(e.exports,"debug",(()=>p),(e=>p=e)),a=e=>{var t=new n(e);return t.request=Oe.request,t},c=e=>{var t=new n(e);return t.request=Oe.request,t.createSocket=o,t.defaultPort=443,t},l=e=>{var t=new n(e);return t.request=_e.request,t},u=e=>{var t=new n(e);return t.request=_e.request,t.createSocket=o,t.defaultPort=443,t},Ie.inherits(n,$e.EventEmitter),n.prototype.addRequest=function(e,t,r,n){var o=this,a=i({request:e},o.options,s(t,r,n));this.maxSockets>o.sockets.length?o.createSocket(a,(t=>{function r(){o.emit("free",t,a)}function n(e){o.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n)}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t)})):o.requests.push(a)},n.prototype.createSocket=function(e,t){function r(r,s,i){var c;return a.removeAllListeners(),s.removeAllListeners(),200!==r.statusCode?(d("tunneling socket could not be established, statusCode=%d",r.statusCode),s.destroy(),(c=Error("tunneling socket could not be established, statusCode="+r.statusCode)).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):i.length>0?(d("got illegal response body from proxy"),s.destroy(),(c=Error("got illegal response body from proxy")).code="ECONNRESET",e.request.emit("error",c),void n.removeSocket(o)):(d("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=s,t(s))}var n=this,o={};n.sockets.push(o);var s=i({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),d("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",(e=>{e.upgrade=!0})),a.once("upgrade",((e,t,n)=>{process.nextTick((()=>{r(e,t,n)}))})),a.once("connect",r),a.once("error",(t=>{a.removeAllListeners(),d("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),n.removeSocket(o)})),a.end()},n.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,(e=>{r.request.onSocket(e)}))}},p=d=()=>{}}));var ut,pt,dt=Ue("ba1Cu"),ht={};Object.defineProperty(ht,"__esModule",{value:!0}),ht.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from(this.username+":"+this.password).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}},ht.BearerCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Bearer "+this.token}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}},ht.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e}prepareRequest(e){e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64")}canHandleAuthentication(e){return!1}handleAuthentication(e,t,r){return null}};class ft{static createHttpClient(e=!0,t=10){const r={allowRetries:e,maxRetries:t};return new dt.HttpClient("actions/oidc-client",[new ht.BearerCredentialHandler(ft.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 lt(this,void 0,void 0,(function*(){const r=ft.createHttpClient(),n=yield r.getJson(e).catch((e=>{throw Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.result.message}`)})),o=null===(t=n.result)||void 0===t?void 0:t.value;if(!o)throw Error("Response json body do not have ID Token field");return o}))}static getIDToken(e){return lt(this,void 0,void 0,(function*(){try{let t=ft.getIDTokenUrl();e&&(t=`${t}&audience=${encodeURIComponent(e)}`),He.debug("ID token url is "+t);const r=yield ft.getCall(t);return He.setSecret(r),r}catch(e){throw Error("Error message: "+e.message)}}))}}ct.OidcClient=ft,(pt=ut=He.ExitCode||(He.ExitCode={}))[pt.Success=0]="Success",pt[pt.Failure=1]="Failure",He.exportVariable=(e,t)=>{const r=Ze.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";et.issueCommand("ENV",`${e}<<${t}${it.EOL}${r}${it.EOL}${t}`)}else Xe.issueCommand("set-env",{name:e},r)},He.setSecret=e=>{Xe.issueCommand("add-mask",{},e)},He.addPath=e=>{process.env.GITHUB_PATH?et.issueCommand("PATH",e):Xe.issueCommand("add-path",{},e),process.env.PATH=`${e}${at.delimiter}${process.env.PATH}`},He.getInput=n,He.getMultilineInput=(e,t)=>n(e,t).split("\n").filter((e=>""!==e)),He.getBooleanInput=(e,t)=>{const r=n(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))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\``)},He.setOutput=(e,t)=>{process.stdout.write(it.EOL),Xe.issueCommand("set-output",{name:e},t)},He.setCommandEcho=e=>{Xe.issue("echo",e?"on":"off")},He.setFailed=e=>{process.exitCode=ut.Failure,o(e)},He.isDebug=()=>"1"===process.env.RUNNER_DEBUG,He.debug=e=>{Xe.issueCommand("debug",{},e)},He.error=o,He.warning=(e,t={})=>{Xe.issueCommand("warning",Ze.toCommandProperties(t),e instanceof Error?""+e:e)},He.notice=(e,t={})=>{Xe.issueCommand("notice",Ze.toCommandProperties(t),e instanceof Error?""+e:e)},He.info=e=>{process.stdout.write(e+it.EOL)},He.startGroup=s,He.endGroup=i,He.group=function(e,t){return We(this,void 0,void 0,(function*(){let r;s(e);try{r=yield t()}finally{i()}return r}))},He.saveState=(e,t)=>{Xe.issueCommand("save-state",{name:e},t)},He.getState=e=>process.env["STATE_"+e]||"",He.getIDToken=function(e){return We(this,void 0,void 0,(function*(){return yield ct.OidcClient.getIDToken(e)}))};var mt={};const vt="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,gt=vt?";":":";var yt,xt={};Ue.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 o=r[n].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1})(t,r)}function n(e,t,n){Pe.stat(e,((o,s)=>{n(o,!o&&r(s,e,t))}))}e.exports=n,n.sync=(e,t)=>r(Pe.statSync(e),e,t)})),Ue.register("9yF3I",((e,t)=>{function r(e,t,r){Pe.stat(e,((e,o)=>{r(e,!e&&n(o,t))}))}function n(e,t){return e.isFile()&&((e,t)=>{var r=e.mode,n=e.uid,o=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),i=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8),l=a|c;return r&parseInt("001",8)||r&c&&o===i||r&a&&n===s||r&l&&0===s})(e,t)}e.exports=r,r.sync=(e,t)=>n(Pe.statSync(e),t)})),yt="win32"===process.platform||Fe.TESTING_WINDOWS?Ue("ftrAD"):Ue("9yF3I"),xt=a,a.sync=(e,t)=>{try{return yt.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}};const wt=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),bt=(e,t)=>{const r=t.colon||gt,n=e.match(/\//)||vt&&e.match(/\\/)?[""]:[...vt?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(r)],o=vt?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=vt?o.split(r):[""];return vt&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:n,pathExt:s,pathExtExe:o}},Et=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});const{pathEnv:n,pathExt:o,pathExtExe:s}=bt(e,t),i=[],a=r=>new Promise(((o,s)=>{if(r===n.length)return t.all&&i.length?o(i):s(wt(e));const a=n[r],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=Ee.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;o(c(p,r,0))})),c=(e,r,n)=>new Promise(((l,u)=>{if(n===o.length)return l(a(r+1));const p=o[n];xt(e+p,{pathExt:s},((o,s)=>{if(!o&&s){if(!t.all)return l(e+p);i.push(e+p)}return l(c(e,r,n+1))}))}));return r?a(0).then((e=>r(null,e)),r):a(0)};let St;mt=Et,Et.sync=(e,t)=>{t=t||{};const{pathEnv:r,pathExt:n,pathExtExe:o}=bt(e,t),s=[];for(let i=0;r.length>i;i++){const a=r[i],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=Ee.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(xt.sync(r,{pathExt:o})){if(!t.all)return r;s.push(r)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw wt(e)};var Pt,Ot={},_t={},Ct={},$t={};const Tt=(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 It,At;($t=Tt).default=Tt,Pt=e=>l(e)||l(e,!0),It=e=>e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),At=(e,t)=>(e=(e=`"${e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e);var Rt,Nt;Rt=(e="")=>{const t=e.match(/^#!(.*)/);if(!t)return null;const[r,n]=t[0].replace(/#! ?/,"").split(" "),o=r.split("/").pop();return"env"===o?n:n?`${o} ${n}`:o},Nt=e=>{const t=Buffer.alloc(150);let r;try{r=Pe.openSync(e,"r"),Pe.readSync(r,t,0,150,0),Pe.closeSync(r)}catch(e){}return Rt(""+t)};const Lt="win32"===process.platform,Dt=/\.(?:com|exe)$/i,jt=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;Ct=(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(!Lt)return e;const t=(e=>{e.file=Pt(e);const t=e.file&&Nt(e.file);return t?(e.args.unshift(e.file),e.command=t,Pt(e)):e.file})(e),r=!Dt.test(t);if(e.options.forceShell||r){const r=jt.test(t);e.command=Ee.normalize(e.command),e.command=It(e.command),e.args=e.args.map((e=>At(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 kt={};const Ft="win32"===process.platform;var Mt;kt={hookChildProcess(e,t){if(!Ft)return;const r=e.emit;e.emit=function(n,o){if("exit"===n){const n=p(o,t);if(n)return r.call(e,"error",n)}return r.apply(e,arguments)}},verifyENOENT:p,verifyENOENTSync(e,t){return Ft&&1===e&&!t.file?u(t.original,"spawnSync"):null},notFoundError:u},(_t=d).spawn=d,_t.sync=(e,t,r)=>{const n=Ct(e,t,r),o=Ae.spawnSync(n.command,n.args,n.options);return o.error=o.error||kt.verifyENOENTSync(o.status,n),o},_t._parse=Ct,_t._enoent=kt,Mt=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 Gt={};const Ut=e=>{let t;e={cwd:process.cwd(),path:process.env[$t()],execPath:process.execPath,...e};let r=Ee.resolve(e.cwd);const n=[];for(;t!==r;)n.push(Ee.join(r,"node_modules/.bin")),t=r,r=Ee.resolve(r,"..");const o=Ee.resolve(e.cwd,e.execPath,"..");return n.push(o),n.concat(e.path).join(Ee.delimiter)};(Gt=Ut).default=Ut,Gt.env=e=>{const t={...(e={env:process.env,...e}).env},r=$t({env:t});return e.path=t[r],t[r]=Gt(e),t};var Ht={},Vt={};const Bt=(e,t)=>{for(const r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};(Vt=Bt).default=Bt;const qt=new WeakMap,Wt=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let r,n=0;const o=e.displayName||e.name||"<anonymous>",s=function(...i){if(qt.set(s,++n),1===n)r=e.apply(this,i),e=null;else if(!0===t.throw)throw Error(`Function \`${o}\` can only be called once`);return r};return Vt(s,e),qt.set(s,n),s};(Ht=Wt).default=Wt,Ht.callCount=e=>{if(!qt.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return qt.get(e)};var Xt,Yt={};Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.signalsByNumber=Yt.signalsByName=void 0;var zt={};Object.defineProperty(zt,"__esModule",{value:!0}),zt.getSignals=void 0;var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.SIGNALS=void 0,Kt.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 Jt={};Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.SIGRTMAX=Jt.getRealtimeSignals=void 0,Jt.getRealtimeSignals=()=>Array.from({length:er-Qt+1},Zt);const Zt=(e,t)=>({name:"SIGRT"+(t+1),number:Qt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),Qt=34,er=64;Jt.SIGRTMAX=er,zt.getSignals=()=>{const e=(0,Jt.getRealtimeSignals)();return[...Kt.SIGNALS,...e].map(tr)};const tr=({name:e,number:t,description:r,action:n,forced:o=!1,standard:s})=>{const{signals:{[e]:i}}=Se.constants,a=void 0!==i;return{name:e,number:a?i:t,description:r,supported:a,action:n,forced:o,standard:s}},rr=(0,zt.getSignals)().reduce(((e,{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a})=>({...e,[t]:{name:t,number:r,description:n,supported:o,action:s,forced:i,standard:a}})),{});Yt.signalsByName=rr;const nr=(()=>{const e=(0,zt.getSignals)(),t=Array.from({length:Jt.SIGRTMAX+1},((t,r)=>((e,t)=>{const r=((e,t)=>{const r=t.find((({name:t})=>Se.constants.signals[t]===e));return void 0!==r?r:t.find((t=>t.number===e))})(e,t);if(void 0===r)return{};const{name:n,description:o,supported:s,action:i,forced:a,standard:c}=r;return{[e]:{name:n,number:e,description:o,supported:s,action:i,forced:a,standard:c}}})(r,e)));return Object.assign({},...t)})();Yt.signalsByNumber=nr;var or=Yt.signalsByName;Xt=({stdout:e,stderr:t,all:r,error:n,signal:o,exitCode:s,command:i,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{const d=void 0===(o=null===o?void 0:o)?void 0:or[o].description,h=(({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:o,exitCode:s,isCanceled:i})=>e?`timed out after ${t} milliseconds`:i?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${o})`:void 0!==s?"failed with exit code "+s:"failed")({timedOut:c,timeout:p,errorCode:n&&n.code,signal:o,signalDescription:d,exitCode:s=null===s?void 0:s,isCanceled:l}),f=`Command ${h}: ${i}`,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=i,n.escapedCommand=a,n.exitCode=s,n.signal=o,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!c,n.isCanceled=l,n.killed=u&&!c,n};var sr={};const ir=["stdin","stdout","stderr"],ar=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return ir.map((t=>e[t]));if((e=>ir.some((t=>void 0!==e[t])))(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ir.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,ir.length)},((e,r)=>t[r]))};(sr=ar).node=e=>{const t=ar(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var cr,lr,ur={};ur=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&ur.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&ur.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");var pr,dr=ur,hr=/^win/i.test(process.platform),fr=$e;"function"!=typeof fr&&(fr=fr.EventEmitter),process.__signal_exit_emitter__?pr=process.__signal_exit_emitter__:((pr=process.__signal_exit_emitter__=new fr).count=0,pr.emitted={}),pr.infinite||(pr.setMaxListeners(1/0),pr.infinite=!0),(lr=(e,t)=>{Te.equal(typeof e,"function","a callback must be provided for exit handler"),!1===vr&&m();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),pr.on(r,e),()=>{pr.removeListener(r,e),0===pr.listeners("exit").length&&0===pr.listeners("afterexit").length&&h()}}).unload=h;var mr={};dr.forEach((e=>{mr[e]=()=>{process.listeners(e).length===pr.count&&(h(),f("exit",null,e),f("afterexit",null,e),hr&&"SIGHUP"===e&&(e="SIGINT"),process.kill(process.pid,e))}})),lr.signals=()=>dr,lr.load=m;var vr=!1,gr=process.reallyExit,yr=process.emit;const xr=e=>e===Se.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase();var wr,br=(cr={spawnedKill(e,t="SIGTERM",r={}){const n=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>xr(e)&&!1!==t&&r)(t,r,n))return;const o=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||0>e)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e})(r),s=setTimeout((()=>{e("SIGKILL")}),o);s.unref&&s.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){if(0===t||void 0===t)return n;let o;const s=new Promise(((n,s)=>{o=setTimeout((()=>{((e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))})(e,r,s)}),t)})),i=n.finally((()=>{clearTimeout(o)}));return Promise.race([s,i])},validateTimeout({timeout:e}){if(void 0!==e&&(!Number.isFinite(e)||0>e))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},async setExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)return n;const o=lr((()=>{e.kill()}));return n.finally((()=>{o()}))}}).spawnedKill,Er=cr.spawnedCancel,Sr=cr.setupTimeout,Pr=cr.validateTimeout,Or=cr.setExitHandler,_r={};const Cr=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Cr.writable=e=>Cr(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Cr.readable=e=>Cr(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Cr.duplex=e=>Cr.writable(e)&&Cr.readable(e),Cr.transform=e=>Cr.duplex(e)&&"function"==typeof e._transform,_r=Cr;var $r,Tr={},Ir=Re.constants,Ar=Ne.PassThrough;$r=e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const n="buffer"===r;let o=!1;t?o=!(r||n):r=r||"utf8",n&&(r=null);const s=new Ar({objectMode:o});r&&s.setEncoding(r);let i=0;const a=[];return s.on("data",(e=>{a.push(e),o?i=a.length:i+=e.length})),s.getBufferedValue=()=>t?a:n?Buffer.concat(a,i):a.join(""),s.getBufferedLength=()=>i,s};const Rr=(0,Ie.promisify)(Ne.pipeline);class Nr extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}(Tr=y).buffer=(e,t)=>y(e,{...t,encoding:"buffer"}),Tr.array=(e,t)=>y(e,{...t,array:!0}),Tr.MaxBufferError=Nr;var Lr,Dr=Ne.PassThrough;Lr=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",o.emit.bind(o,"error")),t.pipe(o,{end:!1}),this)}function t(){return 0==n.length}function r(e){!(n=n.filter((t=>t!==e))).length&&o.readable&&o.end()}var n=[],o=new Dr({objectMode:!0});return o.setMaxListeners(0),o.add=e,o.isEmpty=t,o.on("unpipe",r),[].slice.call(arguments).forEach(e),o};const jr=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},kr=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?Tr(e,{encoding:t,maxBuffer:n}):Tr.buffer(e,{maxBuffer:n})};var Fr,Mr=(wr={handleInput(e,t){void 0!==t&&void 0!==e.stdin&&(_r(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream(e,{all:t}){if(!t||!e.stdout&&!e.stderr)return;const r=Lr();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},async getSpawnedResult({stdout:e,stderr:t,all:r},{encoding:n,buffer:o,maxBuffer:s},i){const a=kr(e,{encoding:n,buffer:o,maxBuffer:s}),c=kr(t,{encoding:n,buffer:o,maxBuffer:s}),l=kr(r,{encoding:n,buffer:o,maxBuffer:2*s});try{return await Promise.all([i,a,c,l])}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},jr(e,a),jr(t,c),jr(r,l)])}},validateInputSync({input:e}){if(_r(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}}).handleInput,Gr=wr.getSpawnedResult,Ur=wr.makeAllStream,Hr=wr.validateInputSync;const Vr=(async()=>{})().constructor.prototype,Br=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Vr,e)]));var qr,Wr=(Fr={mergePromise(e,t){for(const[r,n]of Br){const o="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:o})}return e},getSpawnedPromise(e){return new Promise(((t,r)=>{e.on("exit",((e,r)=>{t({exitCode:e,signal:r})})),e.on("error",(e=>{r(e)})),e.stdin&&e.stdin.on("error",(e=>{r(e)}))}))}}).mergePromise,Xr=Fr.getSpawnedPromise;const Yr=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],zr=/^[\w.-]+$/;var Kr=(qr={joinCommand(e,t){return Yr(e,t).join(" ")},getEscapedCommand(e,t){return Yr(e,t).map((e=>(e=>"string"!=typeof e||zr.test(e)?e:`"${e.replace(/"/g,'\\"')}"`)(e))).join(" ")},parseCommand(e){const t=[];for(const r of e.trim().split(/ +/g)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r)}return t}}).joinCommand,Jr=qr.parseCommand,Zr=qr.getEscapedCommand;const Qr=(e,t,r={})=>{const n=_t._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...r}).env=(({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:o})=>{const s=t?{...process.env,...e}:e;return r?Gt.env({env:s,cwd:n,execPath:o}):s})(r),r.stdio=sr(r),"win32"===process.platform&&"cmd"===Ee.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?Mt(t):t:void 0===r?void 0:"",tn=(e,t,r)=>{const n=Qr(e,t,r),o=Kr(e,t),s=Zr(e,t);let i;Pr(n.options);try{i=Ae.spawn(n.file,n.args,n.options)}catch(e){const t=new Ae.ChildProcess,r=Promise.reject(Xt({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Wr(t,r)}const a=Xr(i),c=Sr(i,n.options,a),l=Or(i,n.options,c),u={isCanceled:!1};i.kill=br.bind(null,i.kill.bind(i)),i.cancel=Er.bind(null,i,u);const p=Ht((async()=>{const[{error:e,exitCode:t,signal:r,timedOut:a},c,p,d]=await Gr(i,n.options,l),h=en(n.options,c),f=en(n.options,p),m=en(n.options,d);if(e||0!==t||null!==r){const c=Xt({error:e,exitCode:t,signal:r,stdout:h,stderr:f,all:m,command:o,escapedCommand:s,parsed:n,timedOut:a,isCanceled:u.isCanceled,killed:i.killed});if(!n.options.reject)return c;throw c}return{command:o,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return Mr(i,n.options.input),i.all=Ur(i,n.options),Wr(i,p)};let rn;(Ot=tn).sync=(e,t,r)=>{const n=Qr(e,t,r),o=Kr(e,t),s=Zr(e,t);let i;Hr(n.options);try{i=Ae.spawnSync(n.file,n.args,n.options)}catch(e){throw Xt({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:s,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}const a=en(n.options,i.stdout,i.error),c=en(n.options,i.stderr,i.error);if(i.error||0!==i.status||null!==i.signal){const e=Xt({stdout:a,stderr:c,error:i.error,signal:i.signal,exitCode:i.status,command:o,escapedCommand:s,parsed:n,timedOut:i.error&&"ETIMEDOUT"===i.error.code,isCanceled:!1,killed:null!==i.signal});if(!n.options.reject)return e;throw e}return{command:o,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Ot.command=(e,t)=>{const[r,...n]=Jr(e);return tn(r,n,t)},Ot.commandSync=(e,t)=>{const[r,...n]=Jr(e);return tn.sync(r,n,t)},Ot.node=(e,t,r={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(r=t,t=[]);const n=sr.node(r),o=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:s=process.execPath,nodeOptions:i=o}=r;return tn(s,[...i,e,...Array.isArray(t)?t:[]],{...r,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})};let nn=!1,on=!1;var sn;const an=Se.homedir();let cn;sn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string, got "+typeof e);return an?e.replace(/^~(?=$|\/|\\)/,an):e};let ln=!1;var un={},pn=un&&un.__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]}),dn=un&&un.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),hn=un&&un.__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)&&pn(t,e,r);return dn(t,e),t}),fn=un&&un.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),mn=un&&un.__importDefault||(e=>e&&e.__esModule?e:{default:e});Object.defineProperty(un,"__esModule",{value:!0}),un.evaluateVersions=un.isExplicitVersion=un.findFromManifest=un.getManifestFromRepo=un.findAllVersions=un.find=un.cacheFile=un.cacheDir=un.extractZip=un.extractXar=un.extractTar=un.extract7z=un.downloadTool=un.HTTPError=void 0,Ue.register("4wFnS",(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",d.toCommandProperties(t),e instanceof Error?""+e:e)}function o(e){u.issue("group",e)}function s(){u.issue("endgroup")}var i=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),a=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),c=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&i(t,e,r);return a(t,e),t}),l=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.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=Ue("VYPTu"),p=Ue("6aHzk"),d=Ue("gczhj");const h=c(Se),f=c(Ee);var m;(e=>{e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(m=e.exports.ExitCode||(e.exports.ExitCode={})),e.exports.exportVariable=(e,t)=>{const r=d.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";p.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?p.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",d.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.notice=(e,t={})=>{u.issueCommand("notice",d.toCommandProperties(t),e instanceof Error?""+e:e)},e.exports.info=e=>{process.stdout.write(e+h.EOL)},e.exports.startGroup=o,e.exports.endGroup=s,e.exports.group=function(e,t){return l(this,void 0,void 0,(function*(){let r;o(e);try{r=yield t()}finally{s()}return r}))},e.exports.saveState=(e,t)=>{u.issueCommand("save-state",{name:e},t)},e.exports.getState=e=>process.env["STATE_"+e]||""})),Ue.register("VYPTu",(function(e,t){"use strict";function r(e,t,r){const n=new c(e,t,r);process.stdout.write(""+n+i.EOL)}var n=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),o=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),s=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;const i=s(Se);var a=Ue("gczhj");e.exports.issueCommand=r,e.exports.issue=(e,t="")=>{r(e,{},t)};class c{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,a.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>a.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}})),Ue.register("gczhj",((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,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}})),Ue.register("6aHzk",((e,t)=>{"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issueCommand=void 0;const s=o(Pe),i=o(Se);var a=Ue("gczhj");e.exports.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${i.EOL}`,{encoding:"utf8"})}}));const vn=hn(Ue("4wFnS"));Ue.register("bMvjP",(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*(){Te.ok(e,"a path argument must be provided"),yield h.mkdir(e,{recursive:!0})}))}function o(e){return u(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'tool' is required");const t=[];if(h.IS_WINDOWS&&process.env.PATHEXT)for(const e of process.env.PATHEXT.split(d.delimiter))e&&t.push(e);if(h.isRooted(e)){const r=yield h.tryGetExecutablePath(e,t);return r?[r]:[]}if(e.includes(d.sep))return[];const r=[];if(process.env.PATH)for(const e of process.env.PATH.split(d.delimiter))e&&r.push(e);const n=[];for(const o of r){const r=yield h.tryGetExecutablePath(d.join(o,e),t);r&&n.push(r)}return n}))}function s(e,t,r,o){return u(this,void 0,void 0,(function*(){if(r>=255)return;r++,yield n(t);const a=yield h.readdir(e);for(const n of a){const a=`${e}/${n}`,c=`${t}/${n}`;(yield h.lstat(a)).isDirectory()?yield s(a,c,r,o):yield i(a,c,o)}yield h.chmod(t,(yield h.stat(e)).mode)}))}function i(e,t,r){return u(this,void 0,void 0,(function*(){if((yield h.lstat(e)).isSymbolicLink()){try{yield h.lstat(t),yield h.unlink(t)}catch(e){"EPERM"===e.code&&(yield h.chmod(t,"0666"),yield h.unlink(t))}const r=yield h.readlink(e);yield h.symlink(r,t,h.IS_WINDOWS?"junction":null)}else(yield h.exists(t))&&!r||(yield h.copyFile(e,t))}))}var a=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),c=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),l=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&a(t,e,r);return c(t,e),t}),u=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;const p=l(Ae),d=l(Ee),h=l(Ue("jXMuL")),f=Ie.promisify(p.exec),m=Ie.promisify(p.execFile);e.exports.cp=function(e,t,r={}){return u(this,void 0,void 0,(function*(){const{force:n,recursive:o,copySourceDirectory:a}=(e=>({force:null==e.force||e.force,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory}))(r),c=(yield h.exists(t))?yield h.stat(t):null;if(c&&c.isFile()&&!n)return;const l=c&&c.isDirectory()&&a?d.join(t,d.basename(e)):t;if(!(yield h.exists(e)))throw Error("no such file or directory: "+e);if((yield h.stat(e)).isDirectory()){if(!o)throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);yield s(e,l,0,n)}else{if(""===d.relative(e,l))throw Error(`'${l}' and '${e}' are the same file`);yield i(e,l,n)}}))},e.exports.mv=function(e,t,o={}){return u(this,void 0,void 0,(function*(){if(yield h.exists(t)){let n=!0;if((yield h.isDirectory(t))&&(t=d.join(t,d.basename(e)),n=yield h.exists(t)),n){if(null!=o.force&&!o.force)throw Error("Destination already exists");yield r(t)}}yield n(d.dirname(t)),yield h.rename(e,t)}))},e.exports.rmRF=r,e.exports.mkdirP=n,e.exports.which=function e(t,r){return u(this,void 0,void 0,(function*(){if(!t)throw Error("parameter 'tool' is required");if(r){const r=yield e(t,!1);if(!r)throw Error(h.IS_WINDOWS?`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`:`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);return r}const n=yield o(t);return n&&n.length>0?n[0]:""}))},e.exports.findInPath=o})),Ue.register("jXMuL",(function(e,t){"use strict";function r(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid()}var n,o=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),s=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),i=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&o(t,e,r);return s(t,e),t}),a=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;const c=i(Pe),l=i(Ee);e.exports.chmod=(n=c.promises).chmod,e.exports.copyFile=n.copyFile,e.exports.lstat=n.lstat,e.exports.mkdir=n.mkdir,e.exports.readdir=n.readdir,e.exports.readlink=n.readlink,e.exports.rename=n.rename,e.exports.rmdir=n.rmdir,e.exports.stat=n.stat,e.exports.symlink=n.symlink,e.exports.unlink=n.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.exists=function(t){return a(this,void 0,void 0,(function*(){try{yield e.exports.stat(t)}catch(e){if("ENOENT"===e.code)return!1;throw e}return!0}))},e.exports.isDirectory=function(t,r=!1){return a(this,void 0,void 0,(function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory()}))},e.exports.isRooted=t=>{if(!(t=(t=>(t=t||"",e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))(t)))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")},e.exports.tryGetExecutablePath=function(t,n){return a(this,void 0,void 0,(function*(){let o;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile())if(e.exports.IS_WINDOWS){const e=l.extname(t).toUpperCase();if(n.some((t=>t.toUpperCase()===e)))return t}else if(r(o))return t;const s=t;for(const i of n){t=s+i,o=void 0;try{o=yield e.exports.stat(t)}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`)}if(o&&o.isFile()){if(e.exports.IS_WINDOWS){try{const r=l.dirname(t),n=l.basename(t).toUpperCase();for(const o of yield e.exports.readdir(r))if(n===o.toUpperCase()){t=l.join(r,o);break}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`)}return t}if(r(o))return t}}return""}))},e.exports.getCmdPath=()=>{var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe"}}));const gn=hn(Ue("bMvjP")),yn=hn(Pe);Ue.register("l7BLh",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;const i=o(Ue("7Lo32"));var a=Ue("4wFnS");e.exports._findMatch=function(t,r,n,o){return s(this,void 0,void 0,(function*(){const s=Se.platform();let c,l,u;for(const c of n){const n=c.version;if(a.debug(`check ${n} satisfies ${t}`),i.satisfies(n,t)&&(!r||c.stable===r)&&(u=c.files.find((t=>{a.debug(`${t.arch}===${o} && ${t.platform}===${s}`);let r=t.arch===o&&t.platform===s;if(r&&t.platform_version){const n=e.exports._getOsVersion();r=n===t.platform_version||i.satisfies(n,t.platform_version)}return r})),u)){a.debug("matched "+c.version),l=c;break}}return l&&u&&(c=Object.assign({},l),c.files=[u]),c}))},e.exports._getOsVersion=()=>{const t=Se.platform();let r="";if("darwin"===t)r=""+Ae.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 Pe.existsSync(e)?r=""+Pe.readFileSync(e):Pe.existsSync(t)&&(r=""+Pe.readFileSync(t)),r}})),Ue.register("7Lo32",((e,t)=>{var r=Ue("bvxLv");e.exports={re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:Ue("fdwSe").SEMVER_SPEC_VERSION,SemVer:Ue("lFsiB"),compareIdentifiers:Ue("iwJsr").compareIdentifiers,rcompareIdentifiers:Ue("iwJsr").rcompareIdentifiers,parse:Ue("duwNw"),valid:Ue("3vako"),clean:Ue("4O9De"),inc:Ue("4pwP3"),diff:Ue("3KZ51"),major:Ue("gro6R"),minor:Ue("iawVE"),patch:Ue("f85A0"),prerelease:Ue("ctiRO"),compare:Ue("dvs9N"),rcompare:Ue("2Y98I"),compareLoose:Ue("7twMD"),compareBuild:Ue("6PcNk"),sort:Ue("csbi6"),rsort:Ue("qJMGv"),gt:Ue("0Lbfy"),lt:Ue("epyGF"),eq:Ue("fZcKH"),neq:Ue("iiSw7"),gte:Ue("7xTgx"),lte:Ue("dj1Te"),cmp:Ue("5lOVn"),coerce:Ue("3w4LS"),Comparator:Ue("7CcqG"),Range:Ue("4SVex"),satisfies:Ue("hID6V"),toComparators:Ue("1KxDd"),maxSatisfying:Ue("hAUPX"),minSatisfying:Ue("j168r"),minVersion:Ue("iKMXF"),validRange:Ue("aIAu1"),outside:Ue("7MTZc"),gtr:Ue("egpbD"),ltr:Ue("jKdoI"),intersects:Ue("84pp0"),simplifyRange:Ue("6KbSC"),subset:Ue("83Xwe")}})),Ue.register("bvxLv",((e,t)=>{var r=Ue("fdwSe").MAX_SAFE_COMPONENT_LENGTH,n=Ue("6m3CZ");const o=(t=e.exports={}).re=[],s=t.src=[],i=t.t={};let a=0;const c=(e,t,r)=>{const c=a++;n(c,t),i[e]=c,s[c]=t,o[c]=RegExp(t,r?"g":void 0)};c("NUMERICIDENTIFIER","0|[1-9]\\d*"),c("NUMERICIDENTIFIERLOOSE","[0-9]+"),c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),c("MAINVERSION",`(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})\\.(${s[i.NUMERICIDENTIFIER]})`),c("MAINVERSIONLOOSE",`(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})\\.(${s[i.NUMERICIDENTIFIERLOOSE]})`),c("PRERELEASEIDENTIFIER",`(?:${s[i.NUMERICIDENTIFIER]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASEIDENTIFIERLOOSE",`(?:${s[i.NUMERICIDENTIFIERLOOSE]}|${s[i.NONNUMERICIDENTIFIER]})`),c("PRERELEASE",`(?:-(${s[i.PRERELEASEIDENTIFIER]}(?:\\.${s[i.PRERELEASEIDENTIFIER]})*))`),c("PRERELEASELOOSE",`(?:-?(${s[i.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[i.PRERELEASEIDENTIFIERLOOSE]})*))`),c("BUILDIDENTIFIER","[0-9A-Za-z-]+"),c("BUILD",`(?:\\+(${s[i.BUILDIDENTIFIER]}(?:\\.${s[i.BUILDIDENTIFIER]})*))`),c("FULLPLAIN",`v?${s[i.MAINVERSION]}${s[i.PRERELEASE]}?${s[i.BUILD]}?`),c("FULL",`^${s[i.FULLPLAIN]}$`),c("LOOSEPLAIN",`[v=\\s]*${s[i.MAINVERSIONLOOSE]}${s[i.PRERELEASELOOSE]}?${s[i.BUILD]}?`),c("LOOSE",`^${s[i.LOOSEPLAIN]}$`),c("GTLT","((?:<|>)?=?)"),c("XRANGEIDENTIFIERLOOSE",s[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),c("XRANGEIDENTIFIER",s[i.NUMERICIDENTIFIER]+"|x|X|\\*"),c("XRANGEPLAIN",`[v=\\s]*(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:\\.(${s[i.XRANGEIDENTIFIER]})(?:${s[i.PRERELEASE]})?${s[i.BUILD]}?)?)?`),c("XRANGEPLAINLOOSE",`[v=\\s]*(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[i.XRANGEIDENTIFIERLOOSE]})(?:${s[i.PRERELEASELOOSE]})?${s[i.BUILD]}?)?)?`),c("XRANGE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAIN]}$`),c("XRANGELOOSE",`^${s[i.GTLT]}\\s*${s[i.XRANGEPLAINLOOSE]}$`),c("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),c("COERCERTL",s[i.COERCE],!0),c("LONETILDE","(?:~>?)"),c("TILDETRIM",`(\\s*)${s[i.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",c("TILDE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAIN]}$`),c("TILDELOOSE",`^${s[i.LONETILDE]}${s[i.XRANGEPLAINLOOSE]}$`),c("LONECARET","(?:\\^)"),c("CARETTRIM",`(\\s*)${s[i.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",c("CARET",`^${s[i.LONECARET]}${s[i.XRANGEPLAIN]}$`),c("CARETLOOSE",`^${s[i.LONECARET]}${s[i.XRANGEPLAINLOOSE]}$`),c("COMPARATORLOOSE",`^${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]})$|^$`),c("COMPARATOR",`^${s[i.GTLT]}\\s*(${s[i.FULLPLAIN]})$|^$`),c("COMPARATORTRIM",`(\\s*)${s[i.GTLT]}\\s*(${s[i.LOOSEPLAIN]}|${s[i.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",c("HYPHENRANGE",`^\\s*(${s[i.XRANGEPLAIN]})\\s+-\\s+(${s[i.XRANGEPLAIN]})\\s*$`),c("HYPHENRANGELOOSE",`^\\s*(${s[i.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[i.XRANGEPLAINLOOSE]})\\s*$`),c("STAR","(<|>)?=?\\s*\\*"),c("GTE0","^\\s*>=\\s*0.0.0\\s*$"),c("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")})),Ue.register("fdwSe",((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}})),Ue.register("6m3CZ",((e,t)=>{const r=("object"==typeof process&&process,()=>{});e.exports=r})),Ue.register("lFsiB",(function(e,t){var r=Ue("6m3CZ"),n=Ue("fdwSe"),o=n.MAX_LENGTH,s=n.MAX_SAFE_INTEGER,i=Ue("bvxLv"),a=i.re,c=i.t,l=Ue("3YuHv"),u=Ue("iwJsr").compareIdentifiers;class p{constructor(e,t){if(t=l(t),e instanceof p){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>o)throw new TypeError(`version is longer than ${o} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[c.LOOSE]:a[c.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>s||0>this.major)throw new TypeError("Invalid major version");if(this.minor>s||0>this.minor)throw new TypeError("Invalid minor version");if(this.patch>s||0>this.patch)throw new TypeError("Invalid patch version");this.prerelease=n[4]?n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&s>t)return t}return e})):[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof p)){if("string"==typeof e&&e===this.version)return 0;e=new p(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof p||(e=new p(e,this.options)),u(this.major,e.major)||u(this.minor,e.minor)||u(this.patch,e.patch)}comparePre(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],o=e.prerelease[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{const n=this.build[t],o=e.build[t];if(r("prerelease compare",t,n,o),void 0===n&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===n)return-1;if(n!==o)return u(n,o)}while(++t)}inc(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{let e=this.prerelease.length;for(;--e>=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(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=p})),Ue.register("3YuHv",((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)),{}):{}})),Ue.register("iwJsr",((e,t)=>{const r=/^[0-9]+$/,n=(e,t)=>{const n=r.test(e),o=r.test(t);return n&&o&&(e=+e,t=+t),e===t?0:n&&!o?-1:o&&!n?1:t>e?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers(e,t){return n(t,e)}}})),Ue.register("duwNw",((e,t)=>{var r=Ue("fdwSe").MAX_LENGTH,n=Ue("bvxLv"),o=n.re,s=n.t,i=Ue("lFsiB"),a=Ue("3YuHv");e.exports=(e,t)=>{if(t=a(t),e instanceof i)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?o[s.LOOSE]:o[s.FULL]).test(e))return null;try{return new i(e,t)}catch(e){return null}}})),Ue.register("3vako",((e,t)=>{var r=Ue("duwNw");e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}})),Ue.register("4O9De",((e,t)=>{var r=Ue("duwNw");e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}})),Ue.register("4pwP3",((e,t)=>{var r=Ue("lFsiB");e.exports=(e,t,n,o)=>{"string"==typeof n&&(o=n,n=void 0);try{return new r(e,n).inc(t,o).version}catch(e){return null}}})),Ue.register("3KZ51",((e,t)=>{var r=Ue("duwNw"),n=Ue("fZcKH");e.exports=(e,t)=>{if(n(e,t))return null;{const n=r(e),o=r(t),s=n.prerelease.length||o.prerelease.length,i=s?"pre":"",a=s?"prerelease":"";for(const e in n)if(("major"===e||"minor"===e||"patch"===e)&&n[e]!==o[e])return i+e;return a}}})),Ue.register("fZcKH",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>0===r(e,t,n)})),Ue.register("dvs9N",((e,t)=>{var r=Ue("lFsiB");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))})),Ue.register("gro6R",((e,t)=>{var r=Ue("lFsiB");e.exports=(e,t)=>new r(e,t).major})),Ue.register("iawVE",((e,t)=>{var r=Ue("lFsiB");e.exports=(e,t)=>new r(e,t).minor})),Ue.register("f85A0",((e,t)=>{var r=Ue("lFsiB");e.exports=(e,t)=>new r(e,t).patch})),Ue.register("ctiRO",((e,t)=>{var r=Ue("duwNw");e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}})),Ue.register("2Y98I",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>r(t,e,n)})),Ue.register("7twMD",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t)=>r(e,t,!0)})),Ue.register("6PcNk",((e,t)=>{var r=Ue("lFsiB");e.exports=(e,t,n)=>{const o=new r(e,n),s=new r(t,n);return o.compare(s)||o.compareBuild(s)}})),Ue.register("csbi6",((e,t)=>{var r=Ue("6PcNk");e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))})),Ue.register("qJMGv",((e,t)=>{var r=Ue("6PcNk");e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))})),Ue.register("0Lbfy",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>r(e,t,n)>0})),Ue.register("epyGF",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>0>r(e,t,n)})),Ue.register("iiSw7",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>0!==r(e,t,n)})),Ue.register("7xTgx",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>r(e,t,n)>=0})),Ue.register("dj1Te",((e,t)=>{var r=Ue("dvs9N");e.exports=(e,t,n)=>0>=r(e,t,n)})),Ue.register("5lOVn",((e,t)=>{var r=Ue("fZcKH"),n=Ue("iiSw7"),o=Ue("0Lbfy"),s=Ue("7xTgx"),i=Ue("epyGF"),a=Ue("dj1Te");e.exports=(e,t,c,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e===c;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof c&&(c=c.version),e!==c;case"":case"=":case"==":return r(e,c,l);case"!=":return n(e,c,l);case">":return o(e,c,l);case">=":return s(e,c,l);case"<":return i(e,c,l);case"<=":return a(e,c,l);default:throw new TypeError("Invalid operator: "+t)}}})),Ue.register("3w4LS",((e,t)=>{var r=Ue("lFsiB"),n=Ue("duwNw"),o=Ue("bvxLv"),s=o.re,i=o.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((t=t||{}).rtl){let t;for(;(t=s[i.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),s[i.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[i.COERCERTL].lastIndex=-1}else o=e.match(s[i.COERCE]);return null===o?null:n(`${o[2]}.${o[3]||"0"}.${o[4]||"0"}`,t)}})),Ue.register("7CcqG",(function(e,t){const r=Symbol();class n{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof n){if(e.loose===!!t.loose)return e;e=e.value}l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.value=this.semver===r?"":this.operator+this.semver.version,l("comp",this)}parse(e){const t=e.match(this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR]);if(!t)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),this.semver=t[2]?new u(t[2],this.options.loose):r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||new p(e.value,t).test(this.value);if(""===e.operator)return""===e.value||new p(this.value,t).test(e.semver);const r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),s=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=c(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=c(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||s&&i||a||l}}e.exports=n;var o=Ue("3YuHv"),s=Ue("bvxLv"),i=s.re,a=s.t,c=Ue("5lOVn"),l=Ue("6m3CZ"),u=Ue("lFsiB"),p=Ue("4SVex")})),Ue.register("4SVex",(function(e,t){class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof s)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!f(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&m(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=`parseRange:${Object.keys(this.options).join(",")}:${e}`,r=n.get(t);if(r)return r;const o=this.options.loose;e=e.replace(o?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE],C(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),i("comparator trim",e,l[u.COMPARATORTRIM]),e=(e=(e=e.replace(l[u.TILDETRIM],d)).replace(l[u.CARETTRIM],h)).split(/\s+/).join(" ");const a=o?l[u.COMPARATORLOOSE]:l[u.COMPARATOR],c=e.split(" ").map((e=>g(e,this.options))).join(" ").split(/\s+/).map((e=>_(e,this.options))).filter(this.options.loose?e=>!!e.match(a):()=>!0).map((e=>new s(e,this.options))),m=new Map;for(const e of c){if(f(e))return[e];m.set(e.value,e)}m.size>1&&m.has("")&&m.delete("");const v=[...m.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($(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const n=new(Ue("lIfWq"))({max:1e3});var o=Ue("3YuHv"),s=Ue("7CcqG"),i=Ue("6m3CZ"),a=Ue("lFsiB"),c=Ue("bvxLv"),l=c.re,u=c.t,p=c.comparatorTrimReplace,d=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 o=n.pop();for(;r&&n.length;)r=n.every((e=>o.intersects(e,t))),o=n.pop();return r},g=(e,t)=>(i("comp",e,t),e=b(e,t),i("caret",e),e=x(e,t),i("tildes",e),e=S(e,t),i("xrange",e),e=O(e,t),i("stars",e),e),y=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>e.replace(t.loose?l[u.TILDELOOSE]:l[u.TILDE],((t,r,n,o,s)=>{let a;return i("tilde",e,t,r,n,o,s),y(r)?a="":y(n)?a=`>=${r}.0.0 <${+r+1}.0.0-0`:y(o)?a=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(i("replaceTilde pr",s),a=`>=${r}.${n}.${o}-${s} <${r}.${+n+1}.0-0`):a=`>=${r}.${n}.${o} <${r}.${+n+1}.0-0`,i("tilde return",a),a})),b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{i("caret",e,t);const r=t.includePrerelease?"-0":"";return e.replace(t.loose?l[u.CARETLOOSE]:l[u.CARET],((t,n,o,s,a)=>{let c;return i("caret",e,t,n,o,s,a),y(n)?c="":y(o)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:y(s)?c="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:a?(i("replaceCaret pr",a),c="0"===n?"0"===o?`>=${n}.${o}.${s}-${a} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}-${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s}-${a} <${+n+1}.0.0-0`):(i("no pr"),c="0"===n?"0"===o?`>=${n}.${o}.${s}${r} <${n}.${o}.${+s+1}-0`:`>=${n}.${o}.${s}${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${s} <${+n+1}.0.0-0`),i("caret return",c),c}))},S=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map((e=>P(e,t))).join(" ")),P=(e,t)=>(e=e.trim()).replace(t.loose?l[u.XRANGELOOSE]:l[u.XRANGE],((r,n,o,s,a,c)=>{i("xRange",e,r,n,o,s,a,c);const l=y(o),u=l||y(s),p=u||y(a);return"="===n&&p&&(n=""),c=t.includePrerelease?"-0":"",l?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(u&&(s=0),a=0,">"===n?(n=">=",u?(o=+o+1,s=0,a=0):(s=+s+1,a=0)):"<="===n&&(n="<",u?o=+o+1:s=+s+1),"<"===n&&(c="-0"),r=`${n+o}.${s}.${a}${c}`):u?r=`>=${o}.0.0${c} <${+o+1}.0.0-0`:p&&(r=`>=${o}.${s}.0${c} <${o}.${+s+1}.0-0`),i("xRange return",r),r})),O=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),_=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),C=e=>(t,r,n,o,s,i,a,c,l,u,p,d,h)=>`${r=y(n)?"":y(o)?`>=${n}.0.0${e?"-0":""}`:y(s)?`>=${n}.${o}.0${e?"-0":""}`:i?">="+r:`>=${r}${e?"-0":""}`} ${c=y(l)?"":y(u)?`<${+l+1}.0.0-0`:y(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:"<="+c}`.trim(),$=(e,t,r)=>{for(let r=0;e.length>r;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;e.length>r;r++)if(i(e[r].semver),e[r].semver!==s.ANY&&e[r].semver.prerelease.length>0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}})),Ue.register("lIfWq",(function(e,t){"use strict";var r=Ue("52BTm");const n=Symbol(),o=Symbol(),s=Symbol(),i=Symbol(),a=Symbol(),c=Symbol(),l=Symbol(),u=Symbol(),p=Symbol(),d=Symbol(),h=()=>1,f=(e,t,r)=>{const n=e[p].get(t);if(n){const t=n.value;if(m(e,t)){if(g(e,n),!e[i])return}else r&&(e[d]&&(n.value.now=Date.now()),e[u].unshiftNode(n));return t.value}},m=(e,t)=>{if(!t||!t.maxAge&&!e[a])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[a]&&r>e[a]},v=e=>{if(e[o]>e[n])for(let t=e[u].tail;e[o]>e[n]&&null!==t;){const r=t.prev;g(e,t),t=r}},g=(e,t)=>{if(t){const r=t.value;e[c]&&e[c](r.key,r.value),e[o]-=r.length,e[p].delete(r.key),e[u].removeNode(t)}};class y{constructor(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}}const x=(e,t,r,n)=>{let o=r.value;m(e,o)&&(g(e,r),e[i]||(o=void 0)),o&&t.call(n,o.value,o.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||0>e.max))throw new TypeError("max must be a non-negative number");this[n]=e.max||1/0;const t=e.length||h;if(this[s]="function"!=typeof t?h:t,this[i]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[a]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||0>e)throw new TypeError("max must be a non-negative number");this[n]=e||1/0,v(this)}get max(){return this[n]}set allowStale(e){this[i]=!!e}get allowStale(){return this[i]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[a]=e,v(this)}get maxAge(){return this[a]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[s]&&(this[s]=e,this[o]=0,this[u].forEach((e=>{e.length=this[s](e.value,e.key),this[o]+=e.length}))),v(this)}get lengthCalculator(){return this[s]}get length(){return this[o]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let r=this[u].tail;null!==r;){const n=r.prev;x(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[u].head;null!==r;){const n=r.next;x(this,e,r,t),r=n}}keys(){return this[u].toArray().map((e=>e.key))}values(){return this[u].toArray().map((e=>e.value))}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach((e=>this[c](e.key,e.value))),this[p]=new Map,this[u]=new r,this[o]=0}dump(){return this[u].map((e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[u]}set(e,t,r){if((r=r||this[a])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const i=r?Date.now():0,d=this[s](t,e);if(this[p].has(e)){if(d>this[n])return g(this,this[p].get(e)),!1;const s=this[p].get(e).value;return this[c]&&(this[l]||this[c](e,s.value)),s.now=i,s.maxAge=r,s.value=t,this[o]+=d-s.length,s.length=d,this.get(e),v(this),!0}const h=new y(e,t,d,i,r);return h.length>this[n]?(this[c]&&this[c](e,t),!1):(this[o]+=h.length,this[u].unshift(h),this[p].set(e,this[u].head),v(this),!0)}has(e){if(!this[p].has(e))return!1;const t=this[p].get(e).value;return!m(this,t)}get(e){return f(this,e,!0)}peek(e){return f(this,e,!1)}pop(){const e=this[u].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{const e=o-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[p].forEach(((e,t)=>f(this,t,!1)))}}})),Ue.register("52BTm",(function(e,t){"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((e=>{t.push(e)}));else if(arguments.length>0)for(var n=0,o=arguments.length;o>n;n++)t.push(arguments[n]);return t}function n(e,t,r){var n=t===e.head?new i(r,null,t,e):new i(r,t,t.next,e);return null===n.next&&(e.tail=n),null===n.prev&&(e.head=n),e.length++,n}function o(e,t){e.tail=new i(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function s(e,t){e.head=new i(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function i(e,t,r,n){if(!(this instanceof i))return new i(e,t,r,n);this.list=n,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null}e.exports=r,r.Node=i,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;t>e;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;t>e;e++)s(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,o=this.head;null!==o;)n.push(e.call(t,o.value,this)),o=o.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,o=this.tail;null!==o;)n.push(e.call(t,o.value,this)),o=o.prev;return n},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},r.prototype.slice=function(e,t){0>(t=t||this.length)&&(t+=this.length),0>(e=e||0)&&(e+=this.length);var n=new r;if(e>t||0>t)return n;0>e&&(e=0),t>this.length&&(t=this.length);for(var o=0,s=this.head;null!==s&&e>o;o++)s=s.next;for(;null!==s&&t>o;o++,s=s.next)n.push(s.value);return n},r.prototype.sliceReverse=function(e,t){0>(t=t||this.length)&&(t+=this.length),0>(e=e||0)&&(e+=this.length);var n=new r;if(e>t||0>t)return n;0>e&&(e=0),t>this.length&&(t=this.length);for(var o=this.length,s=this.tail;null!==s&&o>t;o--)s=s.prev;for(;null!==s&&o>e;o--,s=s.prev)n.push(s.value);return n},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),0>e&&(e=this.length+e);for(var o=0,s=this.head;null!==s&&e>o;o++)s=s.next;var i=[];for(o=0;s&&t>o;o++)i.push(s.value),s=this.removeNode(s);for(null===s&&(s=this.tail),s!==this.head&&s!==this.tail&&(s=s.prev),o=0;r.length>o;o++)s=n(this,s,r[o]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this};try{Ue("d6YpR")(r)}catch(e){}})),Ue.register("d6YpR",(function(e,t){"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}})),Ue.register("hID6V",((e,t)=>{var r=Ue("4SVex");e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}})),Ue.register("1KxDd",((e,t)=>{var r=Ue("4SVex");e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))})),Ue.register("hAUPX",((e,t)=>{var r=Ue("lFsiB"),n=Ue("4SVex");e.exports=(e,t,o)=>{let s=null,i=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==i.compare(e)||(s=e,i=new r(s,o)))})),s}})),Ue.register("j168r",((e,t)=>{var r=Ue("lFsiB"),n=Ue("4SVex");e.exports=(e,t,o)=>{let s=null,i=null,a=null;try{a=new n(t,o)}catch(e){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==i.compare(e)||(s=e,i=new r(s,o)))})),s}})),Ue.register("iKMXF",((e,t)=>{var r=Ue("lFsiB"),n=Ue("4SVex"),o=Ue("0Lbfy");e.exports=(e,t)=>{e=new n(e,t);let s=new r("0.0.0");if(e.test(s))return s;if(s=new r("0.0.0-0"),e.test(s))return s;s=null;for(let t=0;e.set.length>t;++t){let n=null;e.set[t].forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!o(t,n)||(n=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator)}})),!n||s&&!o(s,n)||(s=n)}return s&&e.test(s)?s:null}})),Ue.register("aIAu1",((e,t)=>{var r=Ue("4SVex");e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}})),Ue.register("7MTZc",((e,t)=>{var r=Ue("lFsiB"),n=Ue("7CcqG");const{ANY:o}=n;var s=Ue("4SVex"),i=Ue("hID6V"),a=Ue("0Lbfy"),c=Ue("epyGF"),l=Ue("dj1Te"),u=Ue("7xTgx");e.exports=(e,t,p,d)=>{let h,f,m,v,g;switch(e=new r(e,d),t=new s(t,d),p){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(i(e,t,d))return!1;for(let r=0;t.set.length>r;++r){let s=null,i=null;if(t.set[r].forEach((e=>{e.semver===o&&(e=new n(">=0.0.0")),s=s||e,i=i||e,h(e.semver,s.semver,d)?s=e:m(e.semver,i.semver,d)&&(i=e)})),s.operator===v||s.operator===g)return!1;if((!i.operator||i.operator===v)&&f(e,i.semver))return!1;if(i.operator===g&&m(e,i.semver))return!1}return!0}})),Ue.register("egpbD",((e,t)=>{var r=Ue("7MTZc");e.exports=(e,t,n)=>r(e,t,">",n)})),Ue.register("jKdoI",((e,t)=>{var r=Ue("7MTZc");e.exports=(e,t,n)=>r(e,t,"<",n)})),Ue.register("84pp0",((e,t)=>{var r=Ue("4SVex");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t))})),Ue.register("6KbSC",((e,t)=>{var r=Ue("hID6V"),n=Ue("dvs9N");e.exports=(e,t,o)=>{const s=[];let i=null,a=null;const c=e.sort(((e,t)=>n(e,t,o)));for(const e of c)r(e,t,o)?(a=e,i||(i=e)):(a&&s.push([i,a]),a=null,i=null);i&&s.push([i,null]);const l=[];for(const[e,t]of s)l.push(e===t?e:t||e!==c[0]?t?e===c[0]?"<="+t:`${e} - ${t}`:">="+e:"*");const u=l.join(" || ");return("string"==typeof t.raw?t.raw:t+"").length>u.length?u:t}})),Ue.register("83Xwe",((e,t)=>{var r=Ue("4SVex"),n=Ue("7CcqG");const{ANY:o}=n;var s=Ue("hID6V"),i=Ue("dvs9N");const a=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=r.includePrerelease?[new n(">=0.0.0-0")]:[new n(">=0.0.0")]}if(1===t.length&&t[0].semver===o){if(r.includePrerelease)return!0;t=[new n(">=0.0.0")]}const a=new Set;let u,p,d,h,f,m,v;for(const t of e)">"===t.operator||">="===t.operator?u=c(u,t,r):"<"===t.operator||"<="===t.operator?p=l(p,t,r):a.add(t.semver);if(a.size>1)return null;if(u&&p){if(d=i(u.semver,p.semver,r),d>0)return null;if(0===d&&(">="!==u.operator||"<="!==p.operator))return null}for(const e of a){if(u&&!s(e,u+"",r))return null;if(p&&!s(e,p+"",r))return null;for(const n of t)if(!s(e,n+"",r))return!1;return!0}let g=!(!p||r.includePrerelease||!p.semver.prerelease.length)&&p.semver,y=!(!u||r.includePrerelease||!u.semver.prerelease.length)&&u.semver;g&&1===g.prerelease.length&&"<"===p.operator&&0===g.prerelease[0]&&(g=!1);for(const e of t){if(v=v||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,u)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=c(u,e,r),h===e&&h!==u)return!1}else if(">="===u.operator&&!s(u.semver,e+"",r))return!1;if(p)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(p,e,r),f===e&&f!==p)return!1}else if("<="===p.operator&&!s(p.semver,e+"",r))return!1;if(!e.operator&&(p||u)&&0!==d)return!1}return!(u&&m&&!p&&0!==d||p&&v&&!u&&0!==d||y||g)},c=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return n>0?e:0>n||">"===t.operator&&">="===e.operator?t:e},l=(e,t,r)=>{if(!e)return t;const n=i(e.semver,t.semver,r);return 0>n?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let o=!1;e:for(const r of e.set){for(const e of t.set){const t=a(r,e,n);if(o=o||null!==t,t)continue e}if(o)return!1}return!0}}));const xn=hn(Ue("l7BLh")),wn=hn(Se),bn=hn(Ee),En=hn(Ue("ba1Cu")),Sn=hn(Ue("7Lo32")),Pn=hn(Ne),On=hn(Ie);Ue.register("iFKS7",((e,t)=>{var r=Ue("joDHm"),n=Ue("inTPA");e.exports=(e,t,o)=>{var s=t&&o||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||r)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var a=0;16>a;++a)t[s+a]=i[a];return t||n(i)}})),Ue.register("joDHm",((e,t)=>{e.exports=()=>Le.randomBytes(16)})),Ue.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++]]}}));const _n=mn(Ue("iFKS7"));var Cn={},$n=Cn&&Cn.__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]}),Tn=Cn&&Cn.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),In=Cn&&Cn.__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 Tn(t,e),t}),An=Cn&&Cn.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.getExecOutput=Cn.exec=void 0,Ue.register("2c9fQ",(function(e,t){"use strict";var r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get(){return t[r]}})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),o=e.exports&&e.exports.__importStar||(e=>{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&r(t,e,o);return n(t,e),t}),s=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;const i=o(Se),a=o($e),c=o(Ae),l=o(Ee),u=o(Ue("bMvjP")),p=o(Ue("jXMuL")),d="win32"===process.platform;e.exports.ToolRunner=class extends a.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){const r=this._getSpawnFileName(),n=this._getSpawnArgs(e);let o=t?"":"[command]";if(d)if(this._isCmdFile()){o+=r;for(const e of n)o+=" "+e}else if(e.windowsVerbatimArguments){o+=`"${r}"`;for(const e of n)o+=" "+e}else{o+=this._windowsQuoteCmdArg(r);for(const e of n)o+=" "+this._windowsQuoteCmdArg(e)}else{o+=r;for(const e of n)o+=" "+e}return o}_processLineBuffer(e,t,r){try{let n=t+""+e,o=n.indexOf(i.EOL);for(;o>-1;)r(n.substring(0,o)),n=n.substring(o+i.EOL.length),o=n.indexOf(i.EOL);return n}catch(e){return this._debug("error processing line. Failed with error "+e),""}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(const r of this.args)t+=" ",t+=e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r);return t+='"',[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let r=!1;for(const n of e)if(t.some((e=>e===n))){r=!0;break}if(!r)return e;let n='"',o=!0;for(let t=e.length;t>0;t--)n+=e[t-1],o&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(o=!0,n+='"'):o=!1;return n+='"',n.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return t+='"',t.split("").reverse().join("")}_cloneExecOptions(e){const t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){const r={};return r.cwd=(e=e||{}).cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r}exec(){return s(this,void 0,void 0,(function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield u.which(this.toolPath,!0),new Promise(((e,t)=>s(this,void 0,void 0,(function*(){this._debug("exec tool: "+this.toolPath),this._debug("arguments:");for(const e of this.args)this._debug(" "+e);const r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+i.EOL);const n=new h(r,this.toolPath);if(n.on("debug",(e=>{this._debug(e)})),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));const o=this._getSpawnFileName(),s=c.spawn(o,this._getSpawnArgs(r),this._getSpawnOptions(this.options,o));let a="";s.stdout&&s.stdout.on("data",(e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),a=this._processLineBuffer(e,a,(e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)}))}));let l="";if(s.stderr&&s.stderr.on("data",(e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),l=this._processLineBuffer(e,l,(e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)}))})),s.on("error",(e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete()})),s.on("exit",(e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete()})),s.on("close",(e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete()})),n.on("done",((r,n)=>{a.length>0&&this.emit("stdline",a),l.length>0&&this.emit("errline",l),s.removeAllListeners(),r?t(r):e(n)})),this.options.input){if(!s.stdin)throw Error("child process missing stdin");s.stdin.end(this.options.input)}}))))}))}},e.exports.argStringToArray=e=>{function t(e){o&&'"'!==e&&(s+="\\"),s+=e,o=!1}const r=[];let n=!1,o=!1,s="";for(let i=0;e.length>i;i++){const a=e.charAt(i);'"'!==a?"\\"===a&&o?t(a):"\\"===a&&n?o=!0:" "!==a||n?t(a):s.length>0&&(r.push(s),s=""):o?t(a):n=!n}return s.length>0&&r.push(s.trim()),r};class h extends a.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError="",this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error("toolPath must not be empty");this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=je.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())}}}));const Rn=In(Ue("2c9fQ"));Cn.exec=C,Cn.getExecOutput=function(e,t,r){var n,o;return An(this,void 0,void 0,(function*(){let s="",i="";const a=new De.StringDecoder("utf8"),c=new De.StringDecoder("utf8"),l=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,u=null===(o=null==r?void 0:r.listeners)||void 0===o?void 0:o.stderr,p=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){s+=a.write(e),l&&l(e)},stderr(e){i+=c.write(e),u&&u(e)}}),d=yield C(e,t,Object.assign(Object.assign({},r),{listeners:p}));return s+=a.end(),i+=c.end(),{exitCode:d,stdout:s,stderr:i}}))};var Nn={},Ln=Nn&&Nn.__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]}),Dn=Nn&&Nn.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!0,value:t})}:(e,t)=>{e.default=t}),jn=Nn&&Nn.__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)&&Ln(t,e,r);return Dn(t,e),t}),kn=Nn&&Nn.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())})));Object.defineProperty(Nn,"__esModule",{value:!0}),Nn.RetryHelper=void 0;const Fn=jn(Ue("4wFnS"));Nn.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 kn(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;Fn.info(e.message)}const n=this.getSleepAmount();Fn.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 kn(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,1e3*e)))}))}};class Mn extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}}un.HTTPError=Mn;const Gn="win32"===process.platform,Un="darwin"===process.platform;un.downloadTool=function(e,t,r,n){return fn(this,void 0,void 0,(function*(){t=t||bn.join(D(),_n.default()),yield gn.mkdirP(bn.dirname(t)),vn.debug("Downloading "+e),vn.debug("Destination "+t);const o=j("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),s=j("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new Nn.RetryHelper(3,o,s);return yield i.execute((()=>fn(this,void 0,void 0,(function*(){return yield function(e,t,r,n){return fn(this,void 0,void 0,(function*(){if(yn.existsSync(t))throw Error(`Destination file path ${t} already exists`);const o=new En.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(vn.debug("set auth"),void 0===n&&(n={}),n.authorization=r);const s=yield o.get(e,n);if(200!==s.message.statusCode){const t=new Mn(s.message.statusCode);throw vn.debug(`Failed to download from "${e}". Code(${s.message.statusCode}) Message(${s.message.statusMessage})`),t}const i=On.promisify(Pn.pipeline),a=j("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>s.message))();let c=!1;try{return yield i(a,yn.createWriteStream(t)),vn.debug("download complete"),c=!0,t}finally{if(!c){vn.debug("download failed");try{yield gn.rmRF(t)}catch(e){vn.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}(e,t||"",r,n)}))),(e=>!(e instanceof Mn&&e.httpStatusCode&&500>e.httpStatusCode&&408!==e.httpStatusCode&&429!==e.httpStatusCode)))}))},un.extract7z=function(e,t,r){return fn(this,void 0,void 0,(function*(){Te.ok(Gn,"extract7z() not supported on current OS"),Te.ok(e,'parameter "file" is required'),t=yield T(t);const n=process.cwd();if(process.chdir(t),r)try{const t=["x",vn.isDebug()?"-bb1":"-bb0","-bd","-sccUTF-8",e],o={silent:!0};yield Cn.exec(`"${r}"`,t,o)}finally{process.chdir(n)}else{const r=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${bn.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Source '${e.replace(/'/g,"''").replace(/"|\n|\r/g,"")}' -Target '${t.replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`],o={silent:!0};try{const e=yield gn.which("powershell",!0);yield Cn.exec(`"${e}"`,r,o)}finally{process.chdir(n)}}return t}))},un.extractTar=function(e,t,r="xz"){return fn(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");t=yield T(t),vn.debug("Checking tar --version");let n="";yield Cn.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout(e){return n+=""+e},stderr(e){return n+=""+e}}}),vn.debug(n.trim());const o=n.toUpperCase().includes("GNU TAR");let s;s=r instanceof Array?r:[r],vn.isDebug()&&!r.includes("v")&&s.push("-v");let i=t,a=e;return Gn&&o&&(s.push("--force-local"),i=t.replace(/\\/g,"/"),a=e.replace(/\\/g,"/")),o&&(s.push("--warning=no-unknown-keyword"),s.push("--overwrite")),s.push("-C",i,"-f",a),yield Cn.exec("tar",s),t}))},un.extractXar=function(e,t,r=[]){return fn(this,void 0,void 0,(function*(){let n;Te.ok(Un,"extractXar() not supported on current OS"),Te.ok(e,'parameter "file" is required'),t=yield T(t),n=r instanceof Array?r:[r],n.push("-x","-C",t,"-f",e),vn.isDebug()&&n.push("-v");const o=yield gn.which("xar",!0);var s;return yield Cn.exec(`"${o}"`,(s=n,Array.from(new Set(s)))),t}))},un.extractZip=function(e,t){return fn(this,void 0,void 0,(function*(){if(!e)throw Error("parameter 'file' is required");return t=yield T(t),Gn?yield function(e,t){return fn(this,void 0,void 0,(function*(){const r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield gn.which("pwsh",!1);if(o){const e=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;",`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`].join(" ")];vn.debug("Using pwsh at path: "+o),yield Cn.exec(`"${o}"`,e)}else{const e=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",["$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;",`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`].join(" ")],t=yield gn.which("powershell",!0);vn.debug("Using powershell at path: "+t),yield Cn.exec(`"${t}"`,e)}}))}(e,t):yield function(e,t){return fn(this,void 0,void 0,(function*(){const r=yield gn.which("unzip",!0),n=[e];vn.isDebug()||n.unshift("-q"),n.unshift("-o"),yield Cn.exec(`"${r}"`,n,{cwd:t})}))}(e,t),t}))},un.cacheDir=function(e,t,r,n){return fn(this,void 0,void 0,(function*(){if(r=Sn.clean(r)||r,n=n||wn.arch(),vn.debug(`Caching tool ${t} ${r} ${n}`),vn.debug("source dir: "+e),!yn.statSync(e).isDirectory())throw Error("sourceDir is not a directory");const o=yield I(t,r,n);for(const t of yn.readdirSync(e)){const r=bn.join(e,t);yield gn.cp(r,o,{recursive:!0})}return A(t,r,n),o}))},un.cacheFile=function(e,t,r,n,o){return fn(this,void 0,void 0,(function*(){if(n=Sn.clean(n)||n,o=o||wn.arch(),vn.debug(`Caching tool ${r} ${n} ${o}`),vn.debug("source file: "+e),!yn.statSync(e).isFile())throw Error("sourceFile is not a file");const s=yield I(r,n,o),i=bn.join(s,t);return vn.debug("destination file "+i),yield gn.cp(e,i),A(r,n,o),s}))},un.find=(e,t,r)=>{if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||wn.arch(),R(t)||(t=N($(e,r),t));let n="";if(t){t=Sn.clean(t)||"";const o=bn.join(L(),e,t,r);vn.debug("checking cache: "+o),yn.existsSync(o)&&yn.existsSync(o+".complete")?(vn.debug(`Found tool in cache ${e} ${t} ${r}`),n=o):vn.debug("not found")}return n},un.findAllVersions=$,un.getManifestFromRepo=function(e,t,r,n="master"){return fn(this,void 0,void 0,(function*(){let o=[];const s=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,i=new En.HttpClient("tool-cache"),a={};r&&(vn.debug("set auth"),a.authorization=r);const c=yield i.getJson(s,a);if(!c.result)return o;let l="";for(const e of c.result.tree)if("versions-manifest.json"===e.path){l=e.url;break}a.accept="application/vnd.github.VERSION.raw";let u=yield(yield i.get(l,a)).readBody();if(u){u=u.replace(/^\uFEFF/,"");try{o=JSON.parse(u)}catch(e){vn.debug("Invalid json")}}return o}))},un.findFromManifest=function(e,t,r,n=wn.arch()){return fn(this,void 0,void 0,(function*(){return yield xn._findMatch(e,t,r,n)}))},un.isExplicitVersion=R,un.evaluateVersions=N;var Hn,Vn=Ue("dj1Te"),Bn=Ue("3w4LS");const{Worker:qn}=(()=>{try{return $a32596d6c226411b$import$99ffd1ece40e237f}catch(e){return{}}})();let Wn,Xn=0;const Yn=new Map,zn=(e,t,r)=>new Promise(((n,o)=>{const s=Xn++;Yn.set(s,{resolve:n,reject:o}),void 0===Wn&&(Wn=new qn(Ee.join(__dirname,"thread.js")),Wn.on("message",(e=>{const t=Yn.get(e.id);Yn.delete(e.id),0===Yn.size&&Wn.unref(),void 0===e.error?t.resolve(e.value):t.reject((e=>{const t=Error(e.message);for(const[r,n]of Object.entries(e))"message"!==r&&(t[r]=n);return t})(e.error))})),Wn.on("error",(e=>{throw e}))),Wn.ref(),Wn.postMessage({id:s,method:e,args:t},r)})),Kn=(e,t={})=>{let r=t.encoding||"hex";"buffer"===r&&(r=void 0);const n=Le.createHash(t.algorithm||"sha512"),o=e=>{n.update(e,"string"==typeof e?"utf8":void 0)};return Array.isArray(e)?e.forEach(o):o(e),n.digest(r)};Kn.stream=(e={})=>{let t=e.encoding||"hex";"buffer"===t&&(t=void 0);const r=Le.createHash(e.algorithm||"sha512");return r.setEncoding(t),r},Kn.fromStream=async(e,t={})=>{if(!_r(e))throw new TypeError("Expected a stream");return new Promise(((r,n)=>{e.on("error",n).pipe(Kn.stream(t)).on("error",n).on("finish",(function(){r(this.read())}))}))},void 0===qn?(Kn.fromFile=async(e,t)=>Kn.fromStream(Pe.createReadStream(e),t),Kn.async=async(e,t)=>Kn(e,t)):(Kn.fromFile=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{const n=await zn("hashFile",[t,e]);return"buffer"===r?Buffer.from(n):Buffer.from(n).toString(r)},Kn.async=async(e,{algorithm:t="sha512",encoding:r="hex"}={})=>{"buffer"===r&&(r=void 0);const n=await zn("hash",[t,e]);return void 0===r?Buffer.from(n):Buffer.from(n).toString(r)}),Kn.fromFileSync=(e,t)=>Kn(Pe.readFileSync(e),t),Hn=Kn,Ue.register("apy8x",((e,r)=>{async function n(e,t,r){if(e.startsWith("pypy-")){const t=await s.findPyPyVersion(e,r);He.info(`Successfully setup PyPy ${t.resolvedPyPyVersion} with Python (${t.resolvedPythonVersion})`)}else{const t=await o.findPythonVersion(e,r);He.info(`Successfully setup ${t.impl} (${t.version})`)}}t(e.exports,"setupActionsPython",(()=>n));var o=Ue("Hawjo"),s=Ue("b2AVd")})),Ue.register("Hawjo",((e,r)=>{function n(e,t){const r=un.find.bind(void 0,"PyPy",e);let n=r(t);if(!n&&i.IS_WINDOWS&&(n=r("x86")),!n)throw Error(`PyPy ${e} not found`);const s=Ee.join(n,"bin");He.exportVariable("pythonLocation",i.IS_WINDOWS?n:s),He.addPath(n),He.addPath(s),i.IS_WINDOWS&&He.addPath(Ee.join(n,"Scripts"));const a="pypy"+e;return He.setOutput("python-version",a),{impl:a,version:o(n)}}function o(e){const t=e.split(Ee.sep),r=t.findIndex((e=>"PyPy"===e||"Python"===e));return t[r+1]||""}async function s(e,t){switch(e.toUpperCase()){case"PYPY2":return n("2",t);case"PYPY3":return n("3.6",t);default:return await(async(e,t)=>{const r=((n=e).endsWith("-dev")?`>= ${n.slice(0,-4)}.0-a0`:n).replace(/(\d+\.\d+\.\d+)((?:a|b|rc)\d*)/g,"$1-$2");var n;He.debug(`Semantic version spec of ${e} is ${r}`);let s=un.find("Python",r,t);if(!s){He.info(`Version ${r} was not found in the local cache`);const e=await c.findReleaseFromManifest(r,t);e&&e.files&&e.files.length>0&&(He.info(`Version ${r} is available for downloading`),await c.installCpythonFromRelease(e),s=un.find("Python",r,t))}if(!s)throw Error([`Version ${e} with arch ${t} not found`,"The list of all available versions can be found here: "+c.MANIFEST_URL].join(Se.EOL));if(He.exportVariable("pythonLocation",s),i.IS_LINUX){const e=process.env.LD_LIBRARY_PATH?":"+process.env.LD_LIBRARY_PATH:"",t=Ee.join(s,"lib");e.split(":").includes(t)||He.exportVariable("LD_LIBRARY_PATH",t+e)}if(He.addPath(s),He.addPath((e=>Ee.join(e,i.IS_WINDOWS?"Scripts":"bin"))(s)),i.IS_WINDOWS){const e=Ee.basename(Ee.dirname(s)),t=a.major(e),r=a.minor(e),n=Ee.join(process.env.APPDATA||"","Python",`Python${t}${r}`,"Scripts");He.addPath(n)}const l=o(s);return He.setOutput("python-version",l),{impl:"CPython",version:l}})(e,t)}}t(e.exports,"findPythonVersion",(()=>s));var i=Ue("ibWnW"),a=Ue("7Lo32"),c=Ue("9ES0m")})),Ue.register("ibWnW",((r,n)=>{function o(t,r,n,o=!1){const s=Ee.join(t,r),i=Ee.join(t,n);e(Pe).existsSync(i)||(e(Pe).symlinkSync(s,i),!h&&o&&e(Pe).chmodSync(i,"755"))}function s(e){return i(e)||!!d.validRange(e)}function i(e){return"nightly"===e}function a(e){return Ee.basename(Ee.dirname(e))}function c(t){let r="",n=Ee.join(t,g);return e(Pe).existsSync(n)&&(r=""+e(Pe).readFileSync(n)),r}function l(t,r){const n=Ee.join(t,g);e(Pe).writeFileSync(n,r)}function u(e){return/^\d+\.\d+$/.test(e)}function p(){return"GITHUB.COM"!==new URL(process.env.GITHUB_SERVER_URL||"https://github.com").hostname.toUpperCase()}t(r.exports,"IS_WINDOWS",(()=>h)),t(r.exports,"IS_LINUX",(()=>f)),t(r.exports,"WINDOWS_ARCHS",(()=>m)),t(r.exports,"WINDOWS_PLATFORMS",(()=>v)),t(r.exports,"createSymlinkInFolder",(()=>o)),t(r.exports,"validateVersion",(()=>s)),t(r.exports,"isNightlyKeyword",(()=>i)),t(r.exports,"getPyPyVersionFromPath",(()=>a)),t(r.exports,"readExactPyPyVersionFile",(()=>c)),t(r.exports,"writeExactPyPyVersionFile",(()=>l)),t(r.exports,"validatePythonVersionFormatForPyPy",(()=>u)),t(r.exports,"isGhes",(()=>p));var d=Ue("7Lo32");const h="win32"===process.platform,f="linux"===process.platform,m=["x86","x64"],v=["win32","win64"],g="PYPY_VERSION"})),Ue.register("9ES0m",((e,r)=>{async function n(e,t){const r=await un.getManifestFromRepo(c,l,a,u);return await un.findFromManifest(e,!1,r,t)}async function o(e){const t=e.files[0].download_url;He.info(`Download from "${t}"`);const r=await un.downloadTool(t,void 0,a);let n;He.info("Extract downloaded archive"),n=s.IS_WINDOWS?await un.extractZip(r):await un.extractTar(r),He.info("Execute installation script"),await(async e=>{const t={cwd:e,env:{...process.env,...s.IS_LINUX&&{LD_LIBRARY_PATH:Ee.join(e,"lib")}},silent:!0,listeners:{stdout(e){He.info((""+e).trim())},stderr(e){He.error((""+e).trim())}}};s.IS_WINDOWS?await Cn.exec("powershell",["./setup.ps1"],t):await Cn.exec("bash",["./setup.sh"],t)})(n)}t(e.exports,"MANIFEST_URL",(()=>p)),t(e.exports,"findReleaseFromManifest",(()=>n)),t(e.exports,"installCpythonFromRelease",(()=>o));var s=Ue("ibWnW");const i=He.getInput("token"),a=!i||s.isGhes()?void 0:"token "+i,c="actions",l="python-versions",u="main",p="https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json"})),Ue.register("b2AVd",((e,r)=>{async function n(e,t){let r,n="",a="";const c=(e=>{const t=e.split("-").filter((e=>!!e));if(2>t.length||"pypy"!=t[0])throw Error("Invalid 'version' property for PyPy. PyPy version should be specified as 'pypy-<python-version>'. See README for examples and documentation.");const r=t[1];let n;if(n=t.length>2?o.pypyVersionToSemantic(t[2]):"x",!s.validateVersion(r)||!s.validateVersion(n))throw Error("Invalid 'version' property for PyPy. Both Python version and PyPy versions should satisfy SemVer notation. See README for examples and documentation.");if(!s.validatePythonVersionFormatForPyPy(r))throw Error("Invalid format of Python version for PyPy. Python version should be specified in format 'x.y'. See README for examples and documentation.");return{pypyVersion:n,pythonVersion:r}})(e);({installDir:r,resolvedPythonVersion:a,resolvedPyPyVersion:n}=((e,t,r)=>{let n="",o="",a=s.IS_WINDOWS?(e=>{let t="";return s.WINDOWS_ARCHS.forEach((r=>t=t||un.find("PyPy",e,r))),t})(e):un.find("PyPy",e,r);return a&&(o=s.getPyPyVersionFromPath(a),n=s.readExactPyPyVersionFile(a),i.satisfies(n,t)||(a=null,n="",o="")),a||He.info(`PyPy version ${e} (${t}) was not found in the local cache`),{installDir:a,resolvedPythonVersion:o,resolvedPyPyVersion:n}})(c.pythonVersion,c.pypyVersion,t)),r||({installDir:r,resolvedPythonVersion:a,resolvedPyPyVersion:n}=await o.installPyPy(c.pypyVersion,c.pythonVersion,t));const l=Ee.join(r,s.IS_WINDOWS?"Scripts":"bin"),u=o.getPyPyBinaryPath(r);return He.exportVariable("pythonLocation",u),He.addPath(u),He.addPath(l),{resolvedPyPyVersion:n,resolvedPythonVersion:a}}t(e.exports,"findPyPyVersion",(()=>n));var o=Ue("PFyxE"),s=Ue("ibWnW"),i=Ue("7Lo32")})),Ue.register("PFyxE",((r,n)=>{async function o(t,r,n){let o;const d=await(async()=>{const e="https://downloads.python.org/pypy/versions.json",t=new u.HttpClient("tool-cache"),r=await t.getJson(e);if(!r.result)throw Error(`Unable to retrieve the list of available PyPy versions from '${e}'`);return r.result})();if(!d||0===d.length)throw Error("No release was found in PyPy version.json");const h=((e,t,r,n)=>{const o=e.filter((e=>{const o=l.satisfies(l.coerce(e.python_version),t),s=p.isNightlyKeyword(r)&&p.isNightlyKeyword(e.pypy_version)||l.satisfies(i(e.pypy_version),r),a=e.files&&(p.IS_WINDOWS?(e=>e.files.some((e=>p.WINDOWS_ARCHS.includes(e.arch)&&p.WINDOWS_PLATFORMS.includes(e.platform))))(e):((e,t,r)=>e.files.some((e=>e.arch===t&&e.platform===r)))(e,n,process.platform));return o&&s&&a}));if(0===o.length)return null;const s=o.sort(((e,t)=>l.compare(l.coerce(i(t.pypy_version)),l.coerce(i(e.pypy_version)))||l.compare(l.coerce(t.python_version),l.coerce(e.python_version))))[0];return{foundAsset:p.IS_WINDOWS?a(s):c(s,n,process.platform),resolvedPythonVersion:s.python_version,resolvedPyPyVersion:s.pypy_version}})(d,r,t,n);if(!h||!h.foundAsset)throw Error(`PyPy version ${r} (${t}) with arch ${n} not found`);const{foundAsset:f,resolvedPythonVersion:m,resolvedPyPyVersion:v}=h;let g=""+f.download_url;He.info(`Downloading PyPy from "${g}" ...`);const y=await un.downloadTool(g);He.info("Extracting downloaded archive..."),o=p.IS_WINDOWS?await un.extractZip(y):await un.extractTar(y,void 0,"x");const x=e(Pe).readdirSync(o)[0],w=Ee.join(o,x);let b=w;p.isNightlyKeyword(v)||(b=await un.cacheDir(w,"PyPy",m,n)),p.writeExactPyPyVersionFile(b,v);const E=s(b);return await(async(e,t)=>{const r=l.coerce(t),n=l.major(r),o=2===n?"":"3";let s=p.IS_WINDOWS?".exe":"";He.info("Creating symlinks..."),p.createSymlinkInFolder(e,`pypy${o}${s}`,`python${n}${s}`,!0),p.createSymlinkInFolder(e,`pypy${o}${s}`,"python"+s,!0)})(E,m),await(async e=>{He.info("Installing and updating pip");const t=Ee.join(e,"python");await Cn.exec(t+" -m ensurepip"),await Cn.exec(e+"/python -m pip install --ignore-installed pip")})(E),{installDir:b,resolvedPythonVersion:m,resolvedPyPyVersion:v}}function s(e){const t=Ee.join(e,"bin");return p.IS_WINDOWS?e:t}function i(e){return e.replace(/(\d+\.\d+\.\d+)((?:a|b|rc))(\d*)/g,"$1-$2.$3")}function a(e){return e.files.find((e=>p.WINDOWS_ARCHS.includes(e.arch)&&p.WINDOWS_PLATFORMS.includes(e.platform)))}function c(e,t,r){return e.files.find((e=>e.arch===t&&e.platform===r))}t(r.exports,"installPyPy",(()=>o)),t(r.exports,"getPyPyBinaryPath",(()=>s)),t(r.exports,"pypyVersionToSemantic",(()=>i));var l=Ue("7Lo32"),u=Ue("ba1Cu"),p=Ue("ibWnW")}));var Jn=Ue("dvs9N"),Zn=(Bn=Ue("3w4LS"),Ue("3vako"));let Qn,eo;Vn=Ue("dj1Te");var to=Ue("gro6R"),ro=Ue("bMvjP");const no=(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"]),oo=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"]),so=new Map,io={"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"},ao=new Set(["10.0.1"]);var co,lo,uo,po={},ho=po&&po.__awaiter||((e,t,r,n)=>new(r||(r=Promise))(((o,s)=>{function i(e){try{c(n.next(e))}catch(e){s(e)}}function a(e){try{c(n.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((e=>{e(t)}))).then(i,a)}c((n=n.apply(e,t||[])).next())}))),fo=po&&po.__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(po,"__esModule",{value:!0});var mo={},vo=mo&&mo.__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(mo,"__esModule",{value:!0});const go=vo(Se);var yo={};Object.defineProperty(yo,"__esModule",{value:!0}),yo.toCommandValue=e=>null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e),mo.issueCommand=te,mo.issue=(e,t="")=>{te(e,{},t)};class xo{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r}toString(){let e="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(const n in this.properties)if(this.properties.hasOwnProperty(n)){const o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${t=o,yo.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`)}}var t;return e+="::"+(e=>yo.toCommandValue(this.message).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A"))(),e}}var wo={},bo=wo&&wo.__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(wo,"__esModule",{value:!0});const Eo=bo(Pe),So=bo(Se);wo.issueCommand=(e,t)=>{const r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!Eo.existsSync(r))throw Error("Missing file at path: "+r);Eo.appendFileSync(r,`${yo.toCommandValue(t)}${So.EOL}`,{encoding:"utf8"})};const Po=fo(Se),Oo=fo(Ee);var _o;(e=>{e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(_o=po.ExitCode||(po.ExitCode={})),po.exportVariable=(e,t)=>{const r=yo.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV){const t="_GitHubActionsFileCommandDelimeter_";wo.issueCommand("ENV",`${e}<<${t}${Po.EOL}${r}${Po.EOL}${t}`)}else mo.issueCommand("set-env",{name:e},r)},po.setSecret=e=>{mo.issueCommand("add-mask",{},e)},po.addPath=e=>{process.env.GITHUB_PATH?wo.issueCommand("PATH",e):mo.issueCommand("add-path",{},e),process.env.PATH=`${e}${Oo.delimiter}${process.env.PATH}`},po.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()},po.setOutput=(e,t)=>{mo.issueCommand("set-output",{name:e},t)},po.setCommandEcho=e=>{mo.issue("echo",e?"on":"off")},po.setFailed=e=>{process.exitCode=_o.Failure,re(e)},po.isDebug=()=>"1"===process.env.RUNNER_DEBUG,po.debug=e=>{mo.issueCommand("debug",{},e)},po.error=re,po.warning=e=>{mo.issue("warning",e instanceof Error?""+e:e)},po.info=e=>{process.stdout.write(e+Po.EOL)},po.startGroup=ne,po.endGroup=oe,po.group=function(e,t){return ho(this,void 0,void 0,(function*(){let r;ne(e);try{r=yield t()}finally{oe()}return r}))},po.saveState=(e,t)=>{mo.issueCommand("save-state",{name:e},t)},po.getState=e=>process.env["STATE_"+e]||"";const Co=ke.env["ProgramFiles(x86)"],$o=[ke.env["ProgramFiles(x86)"],ke.env.ProgramFiles],To=["Enterprise","Professional","Community"],Io=["2022","2019","2017"],Ao={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};co=se;const Ro=Co+"\\Microsoft Visual Studio\\Installer";lo=ae,uo=(e,t,r,n,o,s)=>{if("win32"!=ke.platform)return void po.info("This is not a Windows virtual environment, bye!");ke.env.PATH+=Ee.delimiter+Ro;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var a=[e];"true"==n&&a.push("uwp"),t&&a.push(t),r&&a.push("-vcvars_ver="+r),"true"==o&&a.push("-vcvars_spectre_libs=spectre");const c=`"${ae(s)}" ${a.join(" ")}`;po.debug("vcvars command-line: "+c);const l=(""+Ae.execSync(`set && cls && ${c} && cls && set`,{shell:"cmd"})).split("\f"),u=l[0].split("\r\n"),p=l[1].split("\r\n"),d=l[2].split("\r\n"),h=p.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}po.startGroup("Environment variables");for(let e of d){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==f[t]&&(po.info("Setting "+t),ce(t)&&(r=r.split(";").filter(((e,t,r)=>r.indexOf(e)===t)).join(";")),po.exportVariable(t,r))}po.endGroup(),po.info("Configured Developer Command Prompt")},Zn=Ue("3vako");const No={msvc:"2019",vcvarsall:"2019",llvm:"13.0.0",ninja:"1.10.2",cmake:"3.22.0",gcovr:"5.0",conan:"1.42.1",meson:"0.60.1",python:"3.10.0",kcov:"v39",gcc:"win32"===process.platform?"11.2.0.07112021":"11"};to=Ue("gro6R"),Bn=Ue("3w4LS");let Lo=!1;const Do={cmake(e,t,r){return k("cmake",e,G,t)},ninja(e,t,r){return k("ninja",e,pe,t)},python:U,vcpkg(t,r,n){return Lo&&null!==e(mt).sync("vcpkg",{nothrow:!0})?{binDir:Ee.dirname(e(mt).sync("vcpkg"))}:(Pe.existsSync(Ee.join(r,M("bootstrap-vcpkg")))?He.warning("Vcpkg folder already exists at "+r):e(Ot).sync("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:Ee.dirname(r)}),e(Ot).sync(M((o="bootstrap-vcpkg","win32"===process.platform?o:"./"+o)),{cwd:r,shell:!0}),He.addPath(r),Lo=!0,{binDir:r});var o},conan(e,t,r){return B("conan",e)},meson(e,t,r){return B("meson",e)},gcovr(e,t,r){return B("gcovr",e)},async opencppcoverage(e,t,r){if("win32"===process.platform)return await _("opencppcoverage",e),{binDir:(()=>{const e="C:/Program Files/OpenCppCoverage";return S(e),e})()}},llvm:ee,gcc:me,choco:O,brew:c,ccache(e,t,r){switch(process.platform){case"win32":return _("ccache",e);case"darwin":return b("ccache",e);case"linux":return w("ccache",e);default:throw Error("Unsupported platform")}},async doxygen(e,t,r){switch(process.platform){case"win32":return await _("doxygen.install",e),{binDir:(()=>{S("C:/Program Files/Graphviz/bin");const e="C:/Program Files/doxygen/bin";return S(e),e})()};case"darwin":return b("doxygen",e),b("graphviz",e);case"linux":return await w("doxygen",e),w("graphviz",e);default:throw Error("Unsupported platform")}},async cppcheck(e,t,r){switch(process.platform){case"win32":return await _("cppcheck",e),{binDir:(()=>{const e="C:/Program Files/Cppcheck";return S(e),e})()};case"darwin":return b("cppcheck",e);case"linux":return w("cppcheck",e);default:throw Error("Unsupported platform")}},msvc:ue,vcvarsall:le,async kcov(e,t,r){if("linux"===process.platform)return await k("kcov",e,ge,t);throw Error("Unsupported platform for "+r)}},jo=["choco","brew","python","vcpkg","cmake","ninja","conan","meson","gcovr","opencppcoverage","ccache","doxygen","cppcheck","llvm","gcc","msvc","vcvarsall","kcov"],ko=["compiler","architecture",...jo];ye(process.argv).then((e=>{process.exitCode=e})).catch((e=>{ve("main() panicked!"),ve(e),process.exitCode=1}));
//# sourceMappingURL=setup_cpp.js.map