mirror of https://github.com/aminya/setup-cpp
39 lines
319 KiB
JavaScript
39 lines
319 KiB
JavaScript
#!/usr/bin/env node
|
||
let e,t,r,n,i,o,a,s,l,u;function c(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function p(e){return e&&e.__esModule?e.default:e;}function d(e,t,r){if("function"==typeof t&&(r=t,t={}),!r){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(r,n){d(e,t||{},function(e,t){e?n(e):r(t);});});}r7(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}function f(e,t){let r;let n=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,a=o&&void 0!==process.chdir&&!process.chdir.disabled;if(a)try{process.chdir(e.options.cwd);}catch(e){}try{r=r8.sync(e.command,{path:n[ne({env:n})],pathExt:t?iE.delimiter:void 0});}catch(e){}finally{a&&process.chdir(i);}return r&&(r=iE.resolve(o?e.options.cwd:"",r)),r;}function h(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 m(e,t){return ou&&1===e&&!t.file?h(t.original,"spawn"):null;}function g(e,t,r){let n=r5(e,t,r),i=rS.spawn(n.command,n.args,n.options);return na.hookChildProcess(i,n),i;}function v(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}function E(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function w({env:e=p(rA).env,...t}={}){let r=E({env:e={...e}});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=p(rA).cwd(),path:n=p(rA).env[E()],execPath:i=p(rA).execPath}=e,o=i instanceof URL?p(rO).fileURLToPath(i):i,a=r instanceof URL?p(rO).fileURLToPath(r):r,s=p(rN).resolve(a),l=[];for(;t!==s;)l.push(p(rN).join(s,"node_modules/.bin")),t=s,s=p(rN).resolve(s,"..");return l.push(p(rN).resolve(a,o,"..")),[...l,n].join(p(rN).delimiter);}(t),e;}function y(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function b(e){return y(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function x(e,t){if(!e)throw Error("Expected a stream");let{maxBuffer:r}=t={maxBuffer:1/0,...t},n=nf(t);return await new Promise((t,i)=>{let o=e=>{e&&n.getBufferedLength()<=np.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{await o9(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(new o7());});}),n.getBufferedValue();}function S(e,t,r){let n;let i=aN(e,t,r),o=am(e,t),a=ag(e,t);aT(a,i.options),o2(i.options);try{n=p(rI).spawn(i.file,i.args,i.options);}catch(t){let e=new(p(rI).ChildProcess)();return ap(e,Promise.reject(oO({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=ad(n),l=o3(n,i.options,s),u=o4(n,i.options,l),c={isCanceled:!1};n.kill=oK.bind(null,n.kill.bind(n)),n.cancel=o0.bind(null,n,c);let d=ns(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:s},l,p,d]=await al(n,i.options,u),f=aI(i.options,l),h=aI(i.options,p),m=aI(i.options,d);if(e||0!==t||null!==r){let l=oO({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:a,parsed:i,timedOut:s,isCanceled:c.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:a,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ai(n,i.options),n.all=ao(n,i.options),o8(n),ap(n,d),n;}function D(e,t,r){let n;let i=aN(e,t,r),o=am(e,t),a=ag(e,t);aT(a,i.options);let s=ar(i.options);try{n=p(rI).spawnSync(i.file,i.args,{...i.options,input:s});}catch(e){throw oO({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=aI(i.options,n.stdout,n.error),u=aI(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=oO({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:a,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:a,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function T(){var e,t;return((null===(e=(t=process).getuid)||void 0===e?void 0:e.call(t))===0||!!process.env.CI)&&null!==p(rQ).sync("sudo",{nothrow:!0});}function R(e,t=[],r=aC){return T()?function(e,t){let[r,...n]=av(e);return D(r,n,t);}(I(e,t),r):D(e,A(t),r);}function N(e,t=[],r=aC){return T()?function(e,t){let[r,...n]=av(e);return S(r,n,t);}(I(e,t),r):S(e,A(t),r);}function I(e,t){return"sudo "+A([e,...t]).join(" ");}function A(e){return e.map(e=>`'${e}'`);}async function O(e){if(("linux"===process.platform||"darwin"===process.platform)&&T()&&void 0!==process.env.SUDO_USER){let t=p(iw).statSync(e).isDirectory();await N("chown",[...(t?["-R"]:[]),process.env.SUDO_USER,e],aC);}}function C(e){let t=function(){if(T()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,iE.join)("/Users/",process.env.SUDO_USER):(0,iE.join)("/home/",process.env.SUDO_USER);{let e=(0,iv.homedir)();if(""===e)return;return e;}}();return void 0===t?e:e.replace(a_,t);}function _(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});}function L(e,t){function r(r){return function(l){return function(r){if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,r[0]&&(s=0)),s;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,i=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){s=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){s.label=r[1];break;}if(6===r[0]&&s.label<o[1]){s.label=o[1],o=r;break;}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(r);break;}o[2]&&s.ops.pop(),s.trys.pop();continue;}r=t.call(e,s);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0};}([r,l]);};}var n,i,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1];},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this;}),a;}async function $(){try{await p(nv)({pkg:p(nP)});}catch(e){(0,rX.warning)("Failed to check for updates: "+(e instanceof Error?e.message+e.stack:e));}}function P(e){return null==e?[]:Array.isArray(e)?e:[e];}function k(e,t,r){let n;let i=sf(e,t,r),o=sr(e,t),a=sn(e,t);sp(a,i.options),aX(i.options);try{n=p(rI).spawn(i.file,i.args,i.options);}catch(t){let e=new(p(rI).ChildProcess)();return a9(e,Promise.reject(a$({error:t,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=a7(n),l=aV(n,i.options,s),u=az(n,i.options,l),c={isCanceled:!1};n.kill=aF.bind(null,n.kill.bind(n)),n.cancel=aG.bind(null,n,c);let d=ns(async()=>{let[{error:e,exitCode:t,signal:r,timedOut:s},l,p,d]=await a5(n,i.options,u),f=sh(i.options,l),h=sh(i.options,p),m=sh(i.options,d);if(e||0!==t||null!==r){let l=a$({error:e,exitCode:t,signal:r,stdout:f,stderr:h,all:m,command:o,escapedCommand:a,parsed:i,timedOut:s,isCanceled:c.isCanceled||!!i.options.signal&&i.options.signal.aborted,killed:n.killed});if(!i.options.reject)return l;throw l;}return{command:o,escapedCommand:a,exitCode:0,stdout:f,stderr:h,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return a1(n,i.options),n.all=a3(n,i.options),aW(n),a9(n,d),n;}function U(t,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){return k(function(){if(void 0===e){let t=p(rQ).sync("pwsh",{nothrow:!0});null!==t&&(e=t);let r=p(rQ).sync("powershell",{nothrow:!0});null!==r&&(e=r);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...r,"-c",t],n);}async function F(e,t,r=sy){let n=function(e,t=!1){let r=t?p(nU)(e):e;return p(nF)(r,'"',"\\");}(null!=t?t:"",r.shouldEscapeSpace);try{if(rV.GITHUB_ACTIONS)try{if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nk.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,nk.exportVariable)(e,n);}catch(t){(0,rX.error)(t),await j(e,n,r);}else await j(e,n,r);}catch(t){(0,rX.error)(t),(0,nk.setFailed)(`Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function M(e){if(!function(e){if(sb.some(t=>t.test(e))){var t,r;return(null!==(r=null===(t=process.env.PATH)||void 0===t?void 0:t.split(iE.delimiter))&&void 0!==r?r:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${iE.delimiter}${process.env.PATH}`;try{if(rV.GITHUB_ACTIONS)try{(0,nk.addPath)(e);}catch(t){(0,rX.error)(t),await q(e);}else await q(e);}catch(t){(0,rX.error)(t),(0,nk.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function j(e,t,r){let n=null!=t?t:"";switch(process.platform){case"win32":if(r.shouldAddOnlyIfNotDefined&&void 0!==process.env[e]){(0,nk.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await U(`[Environment]::SetEnvironmentVariable('${e}', '${n}', "User")`),(0,nk.info)(`${e}='${n}' was set in the environment.`);return;case"linux":case"darwin":await B(),r.shouldAddOnlyIfNotDefined?((0,iw.appendFileSync)(sx,`
|
||
if [ -z "\${${e}}" ]; then export ${e}="${n}"; fi
|
||
`),(0,nk.info)(`if not defined ${e} then ${e}="${n}" was added to "${sx}`)):((0,iw.appendFileSync)(sx,`
|
||
export ${e}="${n}"
|
||
`),(0,nk.info)(`${e}="${n}" was added to "${sx}`));return;}process.env[e]=n;}async function q(e){switch(process.platform){case"win32":await U(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nk.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await B(),(0,iw.appendFileSync)(sx,`
|
||
export PATH="${e}:$PATH"
|
||
`),(0,nk.info)(`"${e}" was added to "${sx}"`);return;default:return;}}async function B(){if(sS)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if((await(0,nM.pathExists)(sx))&&(0,iw.readFileSync)(sx,"utf8").includes(e))return;(0,iw.appendFileSync)(sx,`
|
||
${e}
|
||
`),(0,nk.info)(`Added ${e} to ${sx}`);let t=`
|
||
# source .cpprc if SOURCE_CPPRC is not set to 0
|
||
if [[ "$SOURCE_CPPRC" != 0 && -f "${sx}" ]]; then source "${sx}"; fi
|
||
`;try{let e=C("~/.profile");(0,iw.appendFileSync)(e,t),(0,nk.info)(`${t} was added to ${e}`);let r=C("~/.bashrc");(0,iw.appendFileSync)(r,t),(0,nk.info)(`${t} was added to ${r}`);}catch(e){(0,rX.warning)(`Failed to add ${t} to .profile or .bashrc. You should add it manually: ${e}`);}sS=!0;}async function G(){if(await(0,nM.pathExists)(sx)){let e=[...new Set((0,iw.readFileSync)(sx,"utf-8").split("\n").reverse())].reverse();(0,iw.writeFileSync)(sx,e.join("\n")),await O(sx);}}async function H(e,t=!1){let r;let n=z()?"nala":"apt-get";for(let{name:t,version:r}of e)(0,rX.info)(`Installing ${t} ${null!=r?r:""} via ${n}`);process.env.DEBIAN_FRONTEND="noninteractive",(!sT||t)&&(Y(n),sT=!0),sR||(await K(n),sR=!0);let i=[...new Set(e.flatMap(e=>{var t;return null!==(t=e.repositories)&&void 0!==t?t:[];}))];if(0!==i.length){for(let e of i)R("add-apt-repository",["-y",e]);Y(n);}let o=await Promise.all(e.map(e=>X(e.name,e.version)));try{R(n,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let t=e.stderr;sN.some(e=>t.includes(e))&&((0,rX.warning)(`Failed to install packages ${o}. Retrying...`),R(n,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function V(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await S("apt-cache",["search","--names-only",`^${(0,nj.default)(e)}-${(0,nj.default)(t)}$`]);if(""!==r.trim())return 0;try{let{stdout:r}=await S("apt-cache",["show",`${e}=${t}`]);if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await S("apt-cache",["show",e]);if(""!==t.trim())return 2;}catch{}return 3;}async function X(e,t){switch(await V(e,t)){case 0:return`${e}-${t}`;case 1:return`${e}=${t}`;case 2:return e;default:throw Error(`Could not find package ${e} ${null!=t?t:""}`);}}function z(){return null!==p(rQ).sync("nala",{nothrow:!0});}function Y(e){R(e,"nala"!==e?["update","-y"]:["update"]);}async function K(e){R(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let t=[Q(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),Q(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&t.push(F("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),F("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(t);}function W(){R("gpg",["-k"]);}async function Q(e,t,r="keyserver.ubuntu.com"){try{let n="/etc/apt/trusted.gpg.d/"+t;return(await(0,nM.pathExists)(n))||(W(),await Promise.all(e.map(async e=>{await N("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+n,"--keyserver",r,"--recv-keys",e]),await N("chmod",["644",n]);}))),n;}catch(e){(0,rX.warning)(`Failed to add apt key via server ${r}: ${e}`);return;}}async function J(e,t){let r="/etc/apt/trusted.gpg.d/"+e;return(await(0,nM.pathExists)(r))||(W(),await H([{name:"curl"},{name:"ca-certificates"}],void 0),await S("curl",["-s",t,"-o","/tmp/"+e]),R("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import","/tmp/"+e]),R("chmod",["644",r])),r;}async function Z(e,t,r=40){return rV.GITHUB_ACTIONS?N("update-alternatives",["--install","/usr/bin/"+e,e,t,r.toString()]):(await B(),sD(sx,`
|
||
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${t} ${r}; fi
|
||
`));}async function ee(e){try{let{stdout:t}=await S("dpkg",["-l",e]);return t.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function et(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof t)return{binDir:t};let i=p(rQ).sync("brew",{nothrow:!0});if(null!==i)return{binDir:t=(0,nB.dirname)(i)};let o=p(iE).join((0,iv.tmpdir)(),"setup-cpp","brew");await(0,nG.mkdirP)(o),D("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let a=(0,iE.join)(o,"install.sh");return"linux"===process.platform&&(0,iw.readFileSync)(a,"utf-8").replace("#!/bin/bash",""),D("/bin/bash",[a],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),t=er(),await M(t),{binDir:t};}function er(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function en(e,t,r=[]){(0,nk.info)(`Installing ${e} ${null!=t?t:""} via brew`),sI&&null!==p(rQ).sync("brew",{nothrow:!0})||(await et("","",process.arch),sI=!0);let n=er();return D((0,nB.join)(n,"brew"),["install",void 0!==t&&""!==t?`${e}@${t}`:e,...r],{stdio:"inherit"}),{binDir:n};}async function ei(e,t,n){var i;if("win32"!==process.platform)return;if("string"==typeof r)return{binDir:r};let o=p(rQ).sync("choco",{nothrow:!0});if(null!==o)return{binDir:r=(0,nB.dirname)(o)};let a="powershell.exe",s=p(rQ).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(a=s),D(a,["-NoProfile","-InputFormat","None","-ExecutionPolicy","Bypass","-Command","[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))"],{stdio:"inherit"});let l=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await M(l);let u=p(rQ).sync("choco",{nothrow:!0});if(r=null!==u?(0,nB.dirname)(u):`${null!==(i=process.env.ChocolateyInstall)&&void 0!==i?i:"C:/ProgramData/chocolatey"}/bin`,await(0,nM.pathExists)(r))return{binDir:r};}async function eo(e,t,r=[]){var n;(0,rX.info)(`Installing ${e} ${null!=t?t:""} via chocolatey`),sA&&null!==p(rQ).sync("choco",{nothrow:!0})||(await ei("","",process.arch),sA=!0);let i=process.env.PATH,o={...process.env};if(delete o.TMP,delete o.TEMP,delete o.Path,o.PATH=i,void 0!==t&&""!==t)D("choco",["install","-y",e,"--version="+t,...r],{env:o,extendEnv:!1,stdio:"inherit"});else try{D("choco",["install","-y",e,...r],{env:o,extendEnv:!1,stdio:"inherit"});}catch(t){if(t.message.includes("exit code 3010"))(0,rX.info)(`${e} might require a reboot for the completion of the installation.`);else throw t;}let a=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`;return await M(a),{binDir:a};}function ea(){return"linux"===process.platform&&(void 0===s&&(s=null!==p(rQ).sync("pacman",{nothrow:!0})),s);}function es(){return"linux"===process.platform&&(void 0===l&&(l=null!==p(rQ).sync("dnf",{nothrow:!0})),l);}async function el(e){for(let{name:t,version:r}of e)(0,rX.info)(`Installing ${t} ${null!=r?r:""} via dnf`);return R("dnf",["-y","install",...(await Promise.all(e.map(e=>eu(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function eu(e,t){if(void 0!==t&&""!==t){let{stdout:r}=await S("dnf",["search","-q",`${e}-${t}`]);if(""!==r.trim())return`${e}-${t}`;{let{stdout:r}=await S("dnf",["search","-q",`${e}${t}`]);if(""!==r.trim())return`${e}${t}`;(0,rX.warning)(`Failed to install ${e} ${t} via dnf, trying without version`);}}return e;}function ec(){return"linux"===process.platform&&(void 0===u&&(u=null!==p(rQ).sync("apt-get",{nothrow:!0})),u);}async function ep(e,t,r){switch(process.platform){case"win32":return eo("bazelisk",e);case"darwin":return en("bazelisk",e);case"linux":if(ea())throw Error("installing bazel on Arch linux is not supported yet");if(es())return await el([{name:"dnf-plugins-core"}]),R("dnf",["copr","enable","vbatts/bazel"]),el([{name:"bazel4"}]);if(ec()){let t=await J("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return R("bash",["-c",`echo "deb [arch=amd64 signed-by=${t}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),H([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ed(e,t,r){(0,rX.info)(`Installing ${e} ${null!=t?t:""} via pacman`);let n="pacman";if("yay"===r&&null===p(rQ).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);sO||"yay"===r||(R(n,["-Sy","--noconfirm"]),sO=!0),sC||"yay"===r||(R(n,["-S","--noconfirm","base-devel"]),sC=!0);let i=e=>"yay"===r?D(r,["-S","--noconfirm",e]):R(null!=r?r:n,["-S","--noconfirm",e]);if(void 0!==t&&""!==t){if((await ef(n,e)).includes(t))try{i(`${e}=${t}`);}catch{i(`${e}${t}`);}else(0,rX.info)(`Failed to install ${e} ${t} via pacman, trying without version`),i(e);}else i(e);return{binDir:"/usr/bin/"};}async function ef(e,t){let r=[];try{let{stdout:n}=await S(e,["-Si",t]);for(let e of n.matchAll(s_))r.push(e[1]);}catch(e){(0,rX.warning)(`Failed to get available versions for ${t}: ${e}`);}return r;}function eh(e,t){let r=[];t=t||sU.arch();let n=sF.join(ey(),e);if(sP.existsSync(n)){for(let e of sP.readdirSync(n))if(eE(e)){let i=sF.join(n,e,t||"");sP.existsSync(i)&&sP.existsSync(`${i}.complete`)&&r.push(e);}}return r;}function em(e){return nK(this,void 0,void 0,function*(){return e||(e=sF.join(eb(),sG.default())),yield s$.mkdirP(e),e;});}function eg(e,t,r){return nK(this,void 0,void 0,function*(){let n=sF.join(ey(),e,sj.clean(t)||t,r||"");sL.debug("destination "+n);let i=`${n}.complete`;return yield s$.rmRF(n),yield s$.rmRF(i),yield s$.mkdirP(n),n;});}function ev(e,t,r){let n=sF.join(ey(),e,sj.clean(t)||t,r||""),i=`${n}.complete`;sP.writeFileSync(i,""),sL.debug("finished caching tool");}function eE(e){let t=sj.clean(e)||"";sL.debug("isExplicit: "+t);let r=null!=sj.valid(t);return sL.debug("explicit? "+r),r;}function ew(e,t){let r="";sL.debug(`evaluating ${e.length} versions`),e=e.sort((e,t)=>sj.gt(e,t)?1:-1);for(let n=e.length-1;n>=0;n--){let i=e[n];if(sj.satisfies(i,t)){r=i;break;}}return r?sL.debug("matched: "+r):sL.debug("match not found"),r;}function ey(){let e=process.env.RUNNER_TOOL_CACHE||"";return ry.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eb(){let e=process.env.RUNNER_TEMP||"";return ry.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function ex(e,t){let r=rj[e];return void 0!==r?r:t;}function eS(e,t){if(!e||!t)throw Error("retry-as-promised must be passed a callback and a options set");let r={$current:"$current"in(t="number"==typeof t?{max:t}:t)?t.$current:1,max:t.max,timeout:t.timeout||void 0,match:t.match?Array.isArray(t.match)?t.match:[t.match]:[],backoffBase:void 0===t.backoffBase?100:t.backoffBase,backoffExponent:t.backoffExponent||1.1,report:t.report,name:t.name||e.name||"unknown"};return r.match&&!Array.isArray(r.match)&&(r.match=[r.match]),r.report&&r.report("Trying "+r.name+" #"+r.$current+" at "+new Date().toLocaleTimeString(),r),new Promise(function(t,n){let i,o,a;r.timeout&&(i=setTimeout(function(){o&&clearTimeout(o),n(new sY(r.name+" timed out",a));},r.timeout)),Promise.resolve(e({current:r.$current})).then(t).then(function(){i&&clearTimeout(i),o&&clearTimeout(o);}).catch(function(s){i&&clearTimeout(i),o&&clearTimeout(o),a=s,r.report&&r.report(s&&s.toString()||s,r,s);var l=r.$current<r.max;if(!l||!(l=0===r.match.length||r.match.some(function(e){return function(e,t){if("function"==typeof e)try{if(t instanceof e)return!0;}catch(r){return!!e(t);}return e===t.toString()||e===t.message||e instanceof RegExp&&(e.test(t.message)||e.test(t.toString()));}(e,s);})))return n(s);var u=r.backoffBase*Math.pow(r.backoffExponent,r.$current-1);r.$current++,r.report&&r.report(`Retrying ${r.name} (${r.$current})`,r),u?(r.report&&r.report(`Delaying retry of ${r.name} by ${u}`,r),o=setTimeout(function(){eS(e,r).then(t).catch(n);},u)):eS(e,r).then(t).catch(n);});});}async function eD(e,t,r,n,i){var o,a;(0,rX.info)(`Installing ${e} ${t} ${i} via direct downloading`),process.env.RUNNER_TEMP=null!==(o=process.env.RUNNER_TEMP)&&void 0!==o?o:(0,iv.tmpdir)(),process.env.RUNNER_TOOL_CACHE=null!==(a=process.env.RUNNER_TOOL_CACHE)&&void 0!==a?a:(0,nB.join)((0,iv.tmpdir)(),"setup-cpp","hostedtoolcache");let{url:s,binRelativeDir:l,binFileName:u,extractedFolderName:c,extractFunction:d}=await r(t,process.platform,i);if(rV.GITHUB_ACTIONS)try{let r=(0,nH.find)(e,t);if(r){let n=(0,nB.join)(r,c),i=(0,nB.join)(n,l);if(await(0,nM.pathExists)((0,nB.join)(i,u)))return(0,rX.info)(`${e} ${t} was found in the cache at ${i}.`),await M(i),{installDir:n,binDir:i};}}catch{}let f=(0,nB.join)(n,c),h=(0,nB.join)(f,l),m=(0,nB.join)(h,u);if((await Promise.all([(0,nM.pathExists)(h),(0,nM.pathExists)(m)])).includes(!1))try{(0,rX.info)(`Download ${e} ${t}`);let r=await p(n5)(()=>(0,nH.downloadTool)(s),{name:s,max:4,backoffBase:2e3,report:e=>(0,rX.info)(e)});sK||((0,rX.info)("Installing extraction dependencies"),"linux"===process.platform&&(ea()?await Promise.all([ed("unzip"),ed("tar"),ed("xz")]):es()?await el([{name:"unzip"},{name:"tar"},{name:"xz"}]):ec()&&(await H([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),sK=!0),(0,rX.info)(`Extracting ${r} to ${n}`),await(null==d?void 0:d(r,n));}catch(r){throw Error(`Failed to download ${e} ${t} ${i} from ${s}: ${r}`);}return(0,rX.info)(`Add ${h} to PATH`),await M(h),rV.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&(await(0,nH.cacheDir)(n,e,t)),{installDir:f,binDir:h};}function eT(e,t,r){switch(process.platform){case"win32":return eo("7zip",e);case"darwin":return en("p7zip",e);case"linux":if(ea())return ed("p7zip",e);if(es())return el([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(ec())return H([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eR(e,t){return await S(await eN(),["x",e,"-o"+t,"-y"],{stdio:"inherit"}),await O(t),t;}async function eN(){return void 0===n&&(null===p(rQ).sync("7z",{nothrow:!0})&&(await eT("","",process.arch)),n="7z"),n;}function eI(e,t){return eR(e,t);}function eA(e,t){return eR(e,t);}async function eO(e,t,r=["--strip-components=0"]){try{await(0,nG.mkdirP)(t);}catch{}try{await S("tar",["xf",e,"-C",t,...r],{stdio:"inherit"});}catch(r){"win32"===process.platform&&r.message.includes("Can't create '\\\\?\\C:")&&(0,rX.warning)(`Failed to extract symlink ${e} to ${t}. Ignoring this symlink.`);}return O(t),t;}function eC(e,t,r){var n;let i=null!==(n=p(n4)(e))&&void 0!==n?n:e;switch(t){case"win32":{let t;let n=p(n2)(i,"v3.19.6");t=["ia32","x86","i386","x32"].includes(r)?n?"win32-x86":"windows-i386":n?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nB.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eA,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let t=p(n2)(i,"v3.19.1"),r=`cmake-${e}-${t?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,nB.addExeExt)("cmake"),extractedFolderName:r,extractFunction:nH.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${r}.tar.gz`};}case"linux":{let t;let n=p(n2)(i,"v3.19.8");t=["aarch64"].includes(r)?n?"Linux-aarch64":"linux-aarch64":n?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${t}`;return{binRelativeDir:"bin/",binFileName:(0,nB.addExeExt)("cmake"),extractedFolderName:o,extractFunction:nH.extractTar,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${t}'`);}}function e_(e,t,r){return eD("cmake",e,eC,t,r);}function eL(e){var t=e.length;return t?1===t?[e[0]]:2===t?[e[0],e[1]]:3===t?[e[0],e[1],e[2]]:n8.call(e,0):[];}function e$(e,t){return e===t||e!=e&&t!=t;}function eP(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r;}function ek(e,t){if(void 0===t&&(t={}),"function"==typeof e&&e.isMemoized)return ek(e.fn,eP(e.options,t));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var r=t.isEqual,n=t.isMatchingKey,i=t.isPromise,o=void 0!==i&&i,a=t.maxSize,s=t.onCacheAdd,l=t.onCacheChange,u=t.onCacheHit,c=t.transformKey,p=eP({isEqual:void 0===r?e$:r,isMatchingKey:n,isPromise:o,maxSize:void 0===a?1:a,onCacheAdd:s,onCacheChange:l,onCacheHit:u,transformKey:c},function(e){var t={};for(var r in e)n6[r]||(t[r]=e[r]);return t;}(t)),d=new n9(p),f=d.keys,h=d.values,m=d.canTransformKey,g=d.shouldCloneArguments,v=d.shouldUpdateOnAdd,E=d.shouldUpdateOnChange,w=d.shouldUpdateOnHit,y=function(){var t=g?eL(arguments):arguments;m&&(t=c(t));var r=f.length?d.getKeyIndex(t):-1;if(-1!==r)w&&u(d,p,y),r&&(d.orderByLru(f[r],h[r],r),E&&l(d,p,y));else{var n=e.apply(this,arguments),i=g?t:eL(arguments);d.orderByLru(i,n,f.length),o&&d.updateAsyncCache(y),v&&s(d,p,y),E&&l(d,p,y);}return h[0];};return y.cache=d,y.fn=e,y.isMemoized=!0,y.options=p,y;}function eU(e,t){return new Promise(r=>{try{let n=(0,ix.request)(e,{method:t},e=>{r(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});n.on("error",e=>{r(!1);}),n.end();}catch{r(!1);}});}function eF(e,t){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(t)).sort((e,t)=>{try{return p(it)(e,t);}catch(r){return e.localeCompare(t);}}).reverse();}async function eM(e,t,r,n){if("linux"===t&&r.includes("ubuntu")){let e=await n(t,r);if(null!==e&&(await ie(e)))return[r,e];}if(!e.has(r))throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);let i=[];for(let o of eF(e,r)){let e=await n(t,o);if(null!==e){if(await ie(e))return[o,e];i.push(e);}}throw Error(`Unsupported target! (platform='${t}', version='${r}'). Try one of the following: ${JSON.stringify(e)}`);}async function ej(e,t=sW){try{var r,n;let i=await(0,nQ.getExecOutput)(e,["--version"]),o=i.stdout||i.stderr||"",a=null===(r=o.trim().match(t))||void 0===r?void 0:r[1];return null!==(n=p(n4)(a))&&void 0!==n?n:void 0;}catch(e){console.error(e);return;}}async function eq(e,t,r=sW){let n=await ej(e,r);return void 0!==n&&""!==t&&-1!==p(it)(n,t);}function eB(){switch(process.platform){case"win32":default:return"17.0.6";case"linux":return"17.0.6-ubuntu-22.04";case"darwin":return"15.0.3";}}async function eG(e,t,r){let n=await eX(e,t,r);p(ry)(void 0!==n.bin);let i=n.bin;if(void 0===(await eW(i)))throw Error("pip was not installed correctly");return await eH(i),await eV(i),n;}async function eH(e){try{if(!(await e7(e)))try{await e9(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===to("pipx",!1))throw Error("pipx was not installed correctly "+e);}await S(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await e9(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,rX.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function eV(e){try{await e9(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await e9(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,rX.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function eX(e,t,r){let n;let i=await eY(t);if(void 0!==i){let e=(0,nB.dirname)(i);n={bin:i,installDir:e,binDir:e};}else{if(rV.GITHUB_ACTIONS)try{(0,rX.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await rG("fEioR");await o(e,t,r),i=await eY(t);let a=(0,nB.dirname)(i);n={bin:i,installDir:a,binDir:a};}catch(e){(0,rX.warning)(e.toString());}void 0===n&&(n=await ez(t,e));}return(void 0===i||void 0===n.bin)&&(i=await eY(t),n.bin=i),n;}async function ez(e,t){let r;switch(process.platform){case"win32":{e?await eo("python3",t,["--params=/InstallDir:"+e]):await eo("python3",t);let n=await eY(e),i=(0,nB.dirname)(n);await M(i),r={installDir:i,binDir:i,bin:n};break;}case"darwin":{r=await en("python3",t);let e=await S("brew",["--prefix","python"],{stdio:"pipe"}),n=(0,nB.join)(e.stdout,"libexec","bin");await M(n);break;}case"linux":if(ea())r=await ed("python",t);else if(es())r=await el([{name:"python3",version:t}]);else if(ec())r=await H([{name:"python3",version:t},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return r;}async function eY(e){for(let t of["python3","python"]){let r=await eK(t,e);if(void 0!==r)return r;}}async function eK(e,t){try{var r;if(void 0!==t){let r=(0,nB.join)(t,(0,nB.addExeExt)(e));if((await(0,nM.pathExists)(r))&&(await eq(r,sJ.python)))return r;}for(let t of null!==(r=await p(rQ)(e,{nothrow:!0,all:!0}))&&void 0!==r?r:[])if(await eq(t,sJ.python))return t;}catch{}}async function eW(e){let t=await eQ();return void 0===t?((0,rX.info)("pip was not found. Installing pip"),await eZ(e),eQ()):t;}async function eQ(){for(let e of["pip3","pip"]){let t=await eJ(e);if(void 0!==t)return t;}}async function eJ(e){try{var t;for(let r of null!==(t=await p(rQ)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(null!==r&&(await eq(r,sJ.pip)))return r;}catch{}}async function eZ(e){(await e0(e))||(await to("pip"),await e0(e));}async function e0(e){try{return await S(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(t){(0,rX.info)(t.toString());try{return await S(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,rX.info)(e.toString());}}return!1;}async function e1(e){let t=[];"linux"===process.platform?t.push("/home/runner/.local/bin/"):"darwin"===process.platform&&t.push("/usr/local/bin/");let r=(await(0,nQ.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return t.push((0,nB.join)(r,"Scripts"),(0,nB.join)(r,"Scripts","bin"),(0,nB.join)(r,"bin")),[...new Set(t)];}function e3(e,t,r=null){return e2(t)&&"linux"===process.platform&&null!==r&&e in sZ?function(e,t){let r=e[0],n=Object.keys(t).map(e=>parseInt(e,10)).sort((e,t)=>t-e).find(e=>r>=e);return void 0===n?"":t[n];}(r,sZ[e]):e2(t)&&e in sQ?sQ[e]:"true"===t?"":null!=t?t:"";}function e2(e){return"true"===e||void 0===e;}async function e4(){var e,t;if("linux"!==process.platform)return[];let r=await(e="lsb_release",t=["-a"],new Promise((r,n)=>{rS.execFile(e,t,{encoding:"utf8",shell:!1},(i,o,a)=>{if(i){if("errno"in i&&"ENOENT"===i.code){r(null);return;}n(Error(`Could not execute \`${e} ${t.join(" ")}\`: ${i} (stderr=${a})`));return;}r(o);});}));if(null===r)return[];let n=null,i=null,o=!1;for(let e of r.split("\n")){let t=e.match(/^Distributor ID:\s*(.+)$/);if(null!==t){if("Ubuntu"!==t[1])return[];o=!0;}let r=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);r&&(n=r);let a=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(a&&(i=a),o&&n&&i)break;}if(!o)return[];for(let e of[n,i])if(e){let t=[e[1],e[2]];return e[3]&&t.push(e[3]),t.map(e=>parseInt(e,10));}return[];}async function e5(){try{if(!ec())return null;{try{null===p(rQ).sync("lsb_release",{nothrow:!0})&&(await H([{name:"lsb-release"}]));}catch{return e6();}let e=await(0,ii.getUbuntuVersion)();if(0===e.length)return e6();return e;}}catch(e){return(0,rX.warning)(e.toString()),null;}}function e6(){let e=p(iv).version().split("."),t=parseInt(e[0].replace("#",""),10);return[t,parseInt(e[1].replace("~",""),10),parseInt(e[2].split("-")[0],10)];}async function e8(e,t,r={}){return e9(await lu(),e,t,r);}async function e9(e,t,r,n={}){let{usePipx:i=!0,user:o=!0,upgrade:a=!1,isLibrary:s=!1}=n,l=i&&!s&&(await e7(e)),u=l?"pipx":"pip";if(await tn(e,t))try{(0,nk.info)(`Installing ${t} ${null!=r?r:""} via ${u}`);let n=void 0!==r&&""!==r?`${t}==${r}`:t,i=process.env;l&&o&&(i.PIPX_HOME=await ls(),i.PIPX_BIN_DIR=await ll()),D(e,["-m",u,...(a?l?["upgrade"]:["install","--upgrade"]:["install"]),...(!l&&o?["--user"]:[]),n],{stdio:"inherit",env:i});}catch(e){if((0,nk.info)(`Failed to install ${t} via ${u}: ${e}.`),(await to(t))===null)throw Error(`Failed to install ${t} via ${u}: ${e}.`);}else if((await to(t))===null)throw Error(`Failed to install ${t} as it was not found via ${u} or the system package manager`);let c=await s0(e),p=await ti(c,t);return await M(p),{binDir:p};}async function e7(e){return 0===(await S(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function te(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let t=C("~/.local/pipx");if(await(0,nM.pathExists)(t))return t;switch(process.platform){case"win32":e=C("~/AppData/Local/pipx");break;case"darwin":e=C("~/Library/Application Support/pipx");break;default:e=C("~/.local/share/pipx");}return await la(e),await la((0,nB.join)(e,"trash")),await la((0,nB.join)(e,"shared")),await la((0,nB.join)(e,"venv")),e;}async function tt(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=C("~/.local/bin");return await M(e),await la(e),e;}async function tr(){let e=(await eG(e3("python",void 0,await s1()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function tn(e,t){return 0===(await S(e,["-m","pip","-qq","index","versions",t],{stdio:"ignore",reject:!1})).exitCode;}async function ti(e,t){let r=(await Promise.all(e.map(e=>(0,nM.pathExists)((0,nB.join)(e,(0,nB.addExeExt)(t)))))).findIndex(e=>e);if(-1!==r)return e[r];let n=p(rQ).sync((0,nB.addExeExt)(t),{nothrow:!0});return null!==n?(0,nB.dirname)(n):e[e.length-1];}function to(e,t=!0){if("linux"===process.platform){if((0,nk.info)(`Installing ${e} via the system package manager`),ea())return ed(t?"python-"+e:e);if(es())return el([{name:t?"python3-"+e:e}]);if(ec())return H([{name:t?"python3-"+e:e}]);}return null;}async function ta(e,t,r){switch(process.platform){case"win32":return await eo("cppcheck",e),{binDir:await ts()};case"darwin":return en("cppcheck",e);case"linux":if(ea())return ed("cppcheck",e);if(es())return el([{name:"ccache",version:e}]);if(ec())return H([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ts(){let e="C:/Program Files/Cppcheck";return await M(e),e;}async function tl(e,t,r){switch(process.platform){case"win32":return await eo("graphviz",e),tu();case"darwin":return en("graphviz",e);case"linux":if(ea())return ed("graphviz",e);if(es())return el([{name:"graphviz",version:e}]);if(ec())return H([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function tu(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await M(e),{binDir:e};}throw Error("Unsupported platform");}function tc(e){let t=null,r=null,n=[],i=new io({locator:{},errorHandler:{warning(e){},error(e){n.push(e);},fatalError(e){n.push(e);}}}).parseFromString(e,"text/xml");if(n.length)throw Error("XML decode error: "+n[0]);let{childNodes:o}=i,a=i.documentElement||null;for(let e=0,n=o.length;n>e;e++){let n=o[e];if(n===a)break;let i=n.toString();/^<\?xml[^>]*\?>$/.test(i)&&(t=i),/^<!DOCTYPE[^>]*>$/.test(i)&&(r=i);}if(!a)throw Error("XML decode error: No document element");return{declaration:t,doctype:r,documentElement:a};}function tp(e){let{childNodes:t}=e,r=[];for(let n=0,i=t.length;i>n;n++){let i=t[n];if("tagName"in i){r.push(i);continue;}let{nodeValue:o}=i;if(o&&!/^\s*$/.test(o))throw Error("Found text children of: "+e.tagName);}return r;}function td(e){let{childNodes:t}=e,r=null;for(let n=0,i=t.length;i>n;n++){if(n)throw Error("Multiple child elements in: "+e.tagName);let i=t[n];if(!("tagName"in i)&&"data"in i&&"nodeValue"in i)r=i;else throw Error("Unexpected child element in: "+e.tagName);}return r;}function tf(e,t){if(e.tagName!==t)throw Error("Unexpected tagName: "+t);}function th(e){let t=e.length,r="";for(let n=0;t>n;){let i=e[n++],o=t>n?e[n++]:null,a=t>n?e[n++]:null,s=i<<16|(o||0)<<8|(a||0);r+=lf[s>>18]+lf[s>>12&ld]+lf[null===o?64:s>>6&ld]+lf[null===a?64:s&ld];}return r;}function tm(e){if("number"==typeof e&&!Number.isInteger(e))throw Error("Value not an integer: "+e);}function tg(e){return e.replace(/\\/g,"/").replace(/([^/])\/+$/,"$1");}function tv(e){return(0,rN.join)(e,"..namedfork","rsrc");}async function tE(e){let t=[],r=0;return await(0,rF.pipeline)(e,new rU.Writable({write(e,n,i){t.push(e),r+=e.length,i();}})),Buffer.concat(t,r);}async function tw(e,t){if(!lO)return;let r=await i$(e,lI|lA);try{await r.chmod(t);}finally{await r.close();}}async function ty(e,t,r){await iV(e,t,r);}async function tb(e,t,r){if(!lC)return;let n=await i$(e,lI|lA);try{await n.utimes(t,r);}finally{await n.close();}}async function tx(e){return iU(e,"buffer");}async function tS(e,t){await iB(t,e);}async function tD(e,t){await iT(e,t);}async function tT(e){return(await iP(e)).sort();}async function tR(e){return iC(e);}async function tN(e){try{return await tR(e);}catch(t){let{code:e}=t;if("ENOENT"===e||"ENOTDIR"===e)return null;throw t;}}async function tI(e,t,r={}){let{ignoreUnreadableDirectories:n}=r,i=(await tT(e)).reverse();for(;i.length;){let r=i.pop(),o=(0,rN.join)(e,r),a=await tR(o),s=await t(r,a);if(null===s)break;if(!1===s||!a.isDirectory())continue;let l=[];try{l=await tT(o);}catch(e){if(!(e&&n&&"EACCES"===e.code))throw e;}for(let e=l.length;e--;)i.push((0,rN.join)(r,l[e]));}}async function tA(e,t){let r=new lF(e);await r.read(async e=>{await e.extract((0,iE.join)(t,e.path));});}function tO(e,t,r){switch(t){case"linux":{let t="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nB.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:nH.extractTar,url:`https://www.doxygen.nl/files/${t}.linux.bin.tar.gz`};}case"win32":{let t="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,nB.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:eA,url:`https://www.doxygen.nl/files/${t}.windows.x64.bin.zip`};}case"darwin":{let t="Doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,nB.addExeExt)("doxygen"),extractedFolderName:t,extractFunction:tA,url:`https://doxygen.nl/files/${t}.dmg`};}default:throw Error(`Unsupported platform '${t}'`);}}async function tC(e,t,r){switch(process.platform){case"win32":{await p(n5)(()=>eo("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,rX.info)(e)});let t=await t_();return await tl(e3("graphviz",void 0),"",r),{binDir:t};}case"darwin":{let n;try{n=await eD("doxygen",e,tO,t,r);}catch{n=await en("doxygen",void 0);}return lp()[0]>11&&(await tl(e3("graphviz",void 0),"",r)),n;}case"linux":{let n;if(""===e||ea()||es()){if(ea())n=await ed("doxygen",e);else if(es())return el([{name:"doxygen",version:e}]);else if(ec())n=await H([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(ec())try{n=await eD("doxygen",e,tO,t,r);try{await H([{name:"libclang-cpp9"}]);}catch(e){(0,rX.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,rX.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),n=await H([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await tl(e3("graphviz",void 0,await s1()),"",r),n;}default:throw Error("Unsupported platform");}}async function t_(){if("win32"===process.platform){for(let e of["C:/ProgramData/chocolatey/bin","C:/Program Files/doxygen/bin","C:/Program Files (x86)/doxygen"])if(await(0,nM.pathExists)((0,nB.join)(e,"doxygen.exe")))return await M(e),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function tL(){if("darwin"===process.platform)try{let e=await(0,nQ.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),t=e.stdout||e.stderr;t?await F("SDKROOT",t.trim()):(0,rX.error)("SDKROOT not set");}catch(e){(0,rX.error)(e);}}function t$(e,t,r){if("win32"===t){let t=lM[e];if(void 0===t)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,nB.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eR,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${t.releaseName}/winlibs-${"ia32"===r?"i686":"x86_64"}-posix-seh-gcc-${t.fileSuffix}.7z`};}throw Error(`Unsupported platform '${t}'`);}async function tP(e,t,r,n=40){let i;switch(process.platform){case"win32":("arm"===r||"arm64"===r)&&(await eo("gcc-arm-embedded",e));try{i=await eD("g++",e,t$,t,r);}catch(t){(0,rX.info)(`Failed to download g++ binary. ${t}. Falling back to chocolatey.`),i=await tU(e,r);}break;case"darwin":i=await en("gcc",e);break;case"linux":"x64"===r?ea()?i=await ed("gcc",e):es()?i=await el([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):ec()&&(i=await H([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,rX.info)(`Install g++-multilib because gcc for ${r} was requested`),ea()?await ed("gcc-multilib",e):ec()&&(await H([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==i)return await tF(e,i.binDir,n),i;}async function tk(e,t,r){let n;switch(process.platform){case"win32":case"darwin":return tP(e,t,r);case"linux":ea()?n=await ed("mingw-w64-gcc",e):es()?n=await el([{name:"mingw64-gcc",version:e}]):ec()&&(n=await H([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+r);}if(void 0!==n)return n;}async function tU(e,t){var r,n;let i;if(await eo("mingw",e),"x64"===t&&(await(0,nM.pathExists)("C:/tools/mingw64/bin"))?(i="C:/tools/mingw64/bin",await M(i)):"ia32"===t&&(await(0,nM.pathExists)("C:/tools/mingw32/bin"))?(i="C:/tools/mingw32/bin",await M(i)):(await(0,nM.pathExists)(`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(i=`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`),void 0!==i)return{binDir:i};}async function tF(e,t,r=40){let n=[];if("win32"===process.platform)n.push(F("CC",(0,nB.addExeExt)(`${t}/gcc`)),F("CXX",(0,nB.addExeExt)(`${t}/g++`)));else{var i;let o=p(is)(null!==(i=p(n4)(e))&&void 0!==i?i:e);o>=5?(n.push(F("CC",`${t}/gcc-${o}`),F("CXX",`${t}/g++-${o}`)),ec()&&n.push(Z("cc",`${t}/gcc-${o}`,r),Z("cxx",`${t}/g++-${o}`,r),Z("gcc",`${t}/gcc-${o}`,r),Z("g++",`${t}/g++-${o}`,r))):(n.push(F("CC",`${t}/gcc-${e}`),F("CXX",`${t}/g++-${e}`)),ec()&&n.push(Z("cc",`${t}/gcc-${e}`,r),Z("cxx",`${t}/g++-${e}`,r),Z("gcc",`${t}/gcc-${e}`,r),Z("g++",`${t}/g++-${e}`,r)));}n.push(tL()),rV.GITHUB_ACTIONS&&(await tM()),await Promise.all(n);}async function tM(){let e=(0,nB.join)(il,"gcc_matcher.json");if(!(await(0,nM.pathExists)(e)))return(0,rX.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rX.info)("::add-matcher::"+e);}function tj(e,t,r){let n=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(t);return{binRelativeDir:"",binFileName:(0,nB.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eA,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${n}.zip`};}function tq(e,t,r){return eD("ninja",e,tj,t,r);}function tB(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,nB.addExeExt)("kcov"),extractFunction:eO};}function tG(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,nB.addExeExt)("kcov"),extractFunction:tH};}async function tH(e,t){let r=await eO(e,t,["--strip-components=1"]),n=await tV();"linux"===process.platform&&(ea()?await Promise.all([ed("libdwarf"),ed("libcurl-openssl")]):es()?await el([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):ec()&&(await H([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==p(rQ).sync("patch",{nothrow:!0})){let e=(0,nB.join)(iu,"gcc13.patch");await S("patch",["-N","-p1","-i",e],{cwd:r,stdio:"inherit"});}else(0,rX.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let i=(0,nB.join)(r,"build");return await S(n,["-S",r,"-B",i,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:r,stdio:"inherit"}),await S(n,["--build",i,"--config","Release"],{cwd:r,stdio:"inherit"}),r;}async function tV(){let e=p(rQ).sync("cmake",{nothrow:!0});if(null===e){let{binDir:t}=await e_(e3("cmake",void 0,await s1()),(0,nB.join)(C("~"),"cmake"),"");e=(0,nB.join)(t,"cmake");}return null===p(rQ).sync("ninja",{nothrow:!0})&&(await tq(e3("ninja",void 0,await s1()),(0,nB.join)(C("~"),"ninja"),"")),e;}async function tX(e,t,r){var n;let i;if("linux"!==process.platform){(0,rX.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),a=(n=o[0]).match(/^v/)?n:"v"+n,s=o[1],l=parseInt(a.replace(/^v/,""),10);return 38===l&&(a="v38"),"binary"===s&&l>=39?(i=await eD("kcov",a,tB,t,r),ea()?await ed("binutils"):es()?await el([{name:"binutils"}]):ec()&&(await H([{name:"libbinutils"}]))):i=await eD("kcov",a,tG,t,r),i;}function tz(e){if(Object.values(lH).includes(e));else if(e in lH)return lH[e];return e;}function tY(e){let t;let r=tz(e);if(r){let e=r.split(".")[0]+".9";t=`-version "${r},${e}"`;}else t="-latest";let n=function(e,t){try{return rS.execSync(`vswhere -products * ${t} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){nk.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",t);if(n&&iw.existsSync(n))return nk.info("Found with vswhere: "+n),n;nk.info("Not found with vswhere");let i=e?[function(e){if(Object.keys(lH).includes(e));else for(let[t,r]of Object.entries(lH))if(r===e)return t;return e;}(e)]:lG;for(let e of lq)for(let t of i)for(let r of lB)if(n=`${e}\\Microsoft Visual Studio\\${t}\\${r}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,nk.info("Trying standard location: "+n),iw.existsSync(n))return nk.info("Found standard location: "+n),n;if(nk.info("Not found in standard locations"),n=`${lj}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,iw.existsSync(n))return nk.info("Found VS 2015: "+n),n;throw nk.info("Not found in VS 2015 location: "+n),Error("Microsoft Visual Studio not found");}async function tK(e,t,r,n,i,o,a){void 0!==t&&(await(0,nM.pathExists)(t))&&((0,rX.info)(`Adding ${t} to PATH`),await F("VCTargetsPath",t)),id(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(r),i,n,o,a,e);}async function tW(e,t,r,n,i,o,a,s=lW){(0,nk.startGroup)(`Installing ${e} ${t}`);let l=!1;try{l=await function(e,t){let r;let{milliseconds:n,fallback:i,message:o,customTimers:a={setTimeout:setTimeout,clearTimeout:clearTimeout}}=t,s=new Promise((s,l)=>{if("number"!=typeof n||1!==Math.sign(n))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${n}\``);if(t.signal){let{signal:e}=t;e.aborted&&l(lK(e)),e.addEventListener("abort",()=>{l(lK(e));});}if(n===Number.POSITIVE_INFINITY){e.then(s,l);return;}let u=new lX();r=a.setTimeout.call(void 0,()=>{if(i){try{s(i());}catch(e){l(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?s():o instanceof Error?l(o):(u.message=null!=o?o:`Promise timed out after ${n} milliseconds`,l(u));},n),(async()=>{try{s(await e);}catch(e){l(e);}})();}).finally(()=>{s.clear();});return s.clear=()=>{a.clearTimeout.call(void 0,r),r=void 0;},s;}(tQ(e,t,r,n,l,i,o),{milliseconds:s,message:`Timeout while installing ${e} ${t}. You can increase the timeout from options`});}catch(t){(0,rX.error)(t),a.push(`${e} failed to install`);}return(0,nk.endGroup)(),l;}async function tQ(e,t,r,n,i,o,a){let s;if("vcvarsall"===e)await tK(e3(e,t,r),void 0,n,void 0,void 0,!1,!1);else{let a=ue[e];i=["llvm","clangformat","clangtidy"].includes(e);let l=(0,nB.join)(o,i?"llvm":e);s=await a(e3(e,t,r),l,n);}return a.push(rd(e,s)),i;}async function tJ(e,t=0){let r="/usr/lib/llvm-"+e;await H([{name:"curl"}]),await S("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let n=await tZ("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,t);return await H(n),await lZ("/tmp/llvm-setup-cpp.sh","755"),await N("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===t?["all"]:[])],{stdio:"inherit",shell:!0,timeout:lW}),await M(`${r}/bin`),{installDir:""+r,binDir:`${r}/bin`,bin:`${r}/bin/clang++`};}async function tZ(e,t,r,n){var i,o,a,s,l;let u=await lQ(e,"utf-8");return o=n,a=u=(i=u,u=process.env.NODE_DEBUG?i:i.replace(/set -eux/g,"set -eu")).replace(/add-apt-repository "\${REPO_NAME}"/g,'add-apt-repository -y "${REPO_NAME}"'),s=r,u=1===o?a.replace(/ -y \$PKG/g," -y clang-format-"+s):a,l=u=await t0(u),u=z()?l.replace(/apt-get/g,"nala"):l,await lJ(t,u),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function t0(e){let t=e.replace(/apt-get install -y/g,'apt-get install -o Dpkg::Options::="--force-overwrite" -y --fix-broken');return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let r=e.replace("$LLVM_VERSION","*");(await ee(r))&&((0,rM.info)("Removing conflicting package "+r),t=t.replace(e,""));})),t;}function t1(e,t,r){let n=`${t}${e}${r}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${n}`;}function t3(e,t,r){let n=`${t}${e}${r}`;return`https://releases.llvm.org/${e}/${n}`;}async function t2(e){let t;if(l1.has(e))return null;let r="LLVM-",n=p(n2)(e,"3.7.0")?"-win32.exe":"-win64.exe",i=p(n2)(e,"9.0.1"),o=!1;return i&&(t=t3(e,r,n),(await ie(t))||(o=!0)),(o||!i)&&(t=t1(e,r,n)),t;}function t4(e,t){switch(e){case"darwin":return function(e){if(l3.has(e))return null;let t="9.0.0"===e?"-darwin-apple":"-apple-darwin",r="clang+llvm-",n=`-x86_64${t}.tar.xz`;return p(n2)(e,"9.0.1")?t3(e,r,n):t1(e,r,n);}(t);case"linux":return function(e){let t,r,n=e,i=l2.get(n);if(void 0!==i&&(n=i),n.includes("ubuntu")){let e=n.replace(/-ubuntu-.*/,"");if(!l0.has(e))throw Error("Unsupported Ubuntu version: "+e);t=n.replace(e,""),n=eF(l0,e)[0];}else""!==n&&n in l4?t=l4[n]:(t=l4[l5],(0,rX.warning)(`Falling back to LLVM version ${l5} ${t} for the Ubuntu.`));let o="clang+llvm-";return(r="5.0.0"===n?`-linux-x86_64${t}.tar.xz`:t.includes("-rhel86")?`-x86_64-unknown-linux-gnu${t}.tar.xz`:`-x86_64-linux-gnu${t}.tar.xz`,p(n2)(n,"9.0.1"))?t3(n,o,r):t1(n,o,r);}(t);case"win32":return t2(t);default:return null;}}async function t5(e,t,r){let[n,i]=await eM(l0,t,e,t4);return(0,rX.info)("specific llvm version: "+n),{url:i,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,nB.addExeExt)("clang"),extractFunction:"win32"===t?eI:(e,t)=>eO(e,t,["--strip-components=1"])};}async function t6(e,t,r){var n;let i=await l6(e,t,r);return await rt(null!==(n=i.installDir)&&void 0!==n?n:t),i;}async function t8(e,t,r){let[n,i,o]=await Promise.all([t9(e,t,r),l9(r),rr()]);return n;}async function t9(e,t,r,n=ih.All){let i=parseInt(function(e){if(null===p(ir)(e))try{let t=p(n4)(e);if(null!==t)return(0,rX.info)(`Coerced version '${e}' to '${t}'`),t.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(ec())return await tJ(i,n);}catch(e){(0,rX.info)("Failed to install llvm via system package manager "+e);}let o=await eD("llvm",e,t5,t,r);return await l8(i),o;}async function t7(e){ec()&&(e<=10?await H([{name:"libtinfo5"}]):await H([{name:"libtinfo-dev"}]));}async function re(e){"linux"===process.platform&&(await tP(e3("gcc",void 0,await s1()),"",e,40));}async function rt(e){var t,r;let n=null!==(t=process.env.LD_LIBRARY_PATH)&&void 0!==t?t:"",i=null!==(r=process.env.DYLD_LIBRARY_PATH)&&void 0!==r?r:"",o=[F("LLVM_PATH",e),F("LD_LIBRARY_PATH",`${e}/lib${iE.delimiter}${n}`),F("DYLD_LIBRARY_PATH",`${e}/lib${iE.delimiter}${i}`),F("LDFLAGS",`-L"${e}/lib"`),F("CPPFLAGS",`-I"${e}/include"`),F("CC",(0,nB.addExeExt)(`${e}/bin/clang`)),F("CXX",(0,nB.addExeExt)(`${e}/bin/clang++`)),F("LIBRARY_PATH",`${e}/lib`),tL()];ec()&&o.push(Z("cc",`${e}/bin/clang`,60),Z("cxx",`${e}/bin/clang++`,60),Z("clang",`${e}/bin/clang`),Z("clang++",`${e}/bin/clang++`),Z("lld",`${e}/bin/lld`),Z("ld.lld",`${e}/bin/ld.lld`),Z("llvm-ar",`${e}/bin/llvm-ar`)),await Promise.all(o);}async function rr(){if(rV.GITHUB_ACTIONS){let e=(0,nB.join)(im,"llvm_matcher.json");if(!(await(0,nM.pathExists)(e)))return(0,rX.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rX.info)("::add-matcher::"+e);}}async function rn(e,t,r){switch(process.platform){case"win32":return eo("make",e);case"darwin":return await en("make",e),await M("/usr/local/opt/make/libexec/gnubin"),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(ea())return ed("make",e);if(es())return el([{name:"make",version:e}]);if(ec())return H([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ri(e,t,r,n,i,o){let a,s;if("win32"!==process.platform)return;let l=ic(e);(0,rX.info)(`Checking if MSVC ${l} is already installed`);let u=!1;try{let e=ip(l);u=!0,(0,rX.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!u)try{"14.0"===l?(a="14.0",await eo("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),s="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===l?(a="14.16",await eo("visualstudio2017buildtools","15.9.41.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===l?(a="14.29",await eo("visualstudio2019buildtools","16.11.7.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===l?(a=void 0,await eo("visualstudio2022buildtools","117.0.5.0",[]),s=void 0):(0,rX.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,rX.error)(e);}await tK(l,s,r,a,n,i,o),rV.GITHUB_ACTIONS&&(await ro());}async function ro(){let e=(0,nB.join)(ig,"msvc_matcher.json");if(!(await(0,nM.pathExists)(e)))return(0,rX.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,rX.info)("::add-matcher::"+e);}async function ra(e,t,r){if(!ec())return;if("string"==typeof a)return{binDir:a};let n=p(rQ).sync("nala",{nothrow:!0});if(null!==n)return{binDir:a=(0,nB.dirname)(n)};let i=await J("volian-archive-scar-unstable.gpg","https://deb.volian.org/volian/scar.key");R("/bin/bash",["-c",`echo "deb [signed-by=${i}] http://deb.volian.org/volian/ scar main" | tee /etc/apt/sources.list.d/volian-archive-scar-unstable.list`]);try{"legacy"!==e?await H([{name:"nala"}],!0):await H([{name:"nala-legacy"}],!0);}catch(e){await H([{name:"nala-legacy"}],!0);}return{binDir:a="/usr/bin"};}async function rs(e,t,r){if("win32"===process.platform)return await eo("opencppcoverage",e),{binDir:await rl()};}async function rl(){let e="C:/Program Files/OpenCppCoverage";return await M(e),e;}async function ru(e,t,r){switch(process.platform){case"win32":{await eo("powershell-core",e);let t="C:/Program Files/PowerShell/7";return await M(t),{binDir:t};}case"darwin":return en("powershell",e,["--cask"]);case"linux":if(ea())return ed("powershell-bin",e,"yay");if(es())return el([{name:"curl"}]),R("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),el([{name:"powershell",version:e}]);if(ec()){await H([{name:"curl"}]);let t=await s1(),r=`${t[0]}.0${t[1]}`;return R("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${r}/packages-microsoft-prod.deb`]),R("dpkg",["-i","packages-microsoft-prod.deb"]),H([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function rc(e,t,r){var n;let i="win32"===(n=t)?"windows":n,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(r),a="win32"===t;return{binRelativeDir:"",binFileName:(0,nB.addExeExt)("task"),extractedFolderName:"",extractFunction:a?eA:eO,url:`https://github.com/go-task/task/releases/download/v${e}/task_${i}_${o}.${a?"zip":"tar.gz"}`};}async function rp(e,t,r){return l7&&null!==p(rQ).sync("vcpkg",{nothrow:!0})?{binDir:(0,nB.dirname)(p(rQ).sync("vcpkg"))}:("linux"===process.platform&&(ea()?await Promise.all([ed("curl"),ed("zip"),ed("unzip"),ed("tar"),ed("git"),ed("pkg-config")]):es()?await el([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):ec()&&(await H([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,nM.pathExists)((0,nB.join)(t,(0,nB.addShExt)("bootstrap-vcpkg",".bat"))))?(0,rX.notice)(`Vcpkg folder already exists at ${t}. This might mean that ~/vcpkg is restored from the cache.`):D("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,nB.dirname)(t),stdio:"inherit"}),D((0,nB.addShExt)((0,nB.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:t,shell:!0,stdio:"inherit"}),await O(t),await M(t),l7=!0,{binDir:t});}function rd(e,t){let r=`\u{2705} ${e} was installed successfully:`;return void 0===t||("installDir"in t&&(r+="\n- The installation directory is "+t.installDir),""!==t.binDir&&(r+="\n- The binary directory is "+t.binDir)),r;}async function rf(e,t,r,n,i,o,a){try{let{compiler:s,version:l}=function(e){let t=e.split("-"),r=t[0];if(1 in t){let e=t[1];return null!==p(ir)(e)||(0,rX.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:r,version:e};}return{compiler:r,version:void 0};}(e);switch((0,nk.startGroup)(`Installing ${s} ${null!=l?l:""}`),s){case"llvm":case"clang":case"clang++":{let e=await t6(e3("llvm",l,t),(0,iE.join)(r,"llvm"),n);await F("GCOV","llvm-cov gcov"),i.push(rd("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===s?e3("mingw",l,t):e3("gcc",l,t),a="mingw"===s?await tk(e,(0,iE.join)(r,"gcc"),n):await tP(e,(0,iE.join)(r,"gcc"),n);o&&(await F("CPPFLAGS","")),await function(e){let t=p(ir)(e),r=null!==t?p(is)(t):e;return F("GCOV",""!==r?"gcov-"+r:"gcov");}(e),i.push(rd("gcc",a));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await ri(e3("msvc",l,t),(0,iE.join)(r,"msvc"),n);o&&(await F("CPPFLAGS","")),i.push(rd("msvc",e));break;}case"appleclang":case"applellvm":(0,nk.notice)("Assuming apple-clang is already installed"),await Promise.all([F("CC","clang"),F("CXX","clang++")]),i.push(rd("apple-clang",void 0));break;default:a.push("Unsupported compiler "+s);}}catch(t){(0,rX.error)(t),a.push("Failed to install the "+e);}(0,nk.endGroup)();}async function rh(e){var t,r,n;let i,o,a=Promise.resolve();rV.GITHUB_ACTIONS||(a=$(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,t){t=t||{};var r,n,i,o,a,s={_:[]},l=0,u=0,c=0,p=(e=e||[]).length;let d=void 0!==t.alias,f=void 0!==t.unknown,h=void 0!==t.default;if(t.alias=t.alias||{},t.string=P(t.string),t.boolean=P(t.boolean),d)for(r in t.alias)for(l=0,n=t.alias[r]=P(t.alias[r]);l<n.length;l++)(t.alias[n[l]]=n.concat(r)).splice(l,1);for(l=t.boolean.length;l-->0;)for(u=(n=t.alias[t.boolean[l]]||[]).length;u-->0;)t.boolean.push(n[u]);for(l=t.string.length;l-->0;)for(u=(n=t.alias[t.string[l]]||[]).length;u-->0;)t.string.push(n[u]);if(h){for(r in t.default)if(o=typeof t.default[r],n=t.alias[r]=t.alias[r]||[],void 0!==t[o])for(t[o].push(r),l=0;l<n.length;l++)t[o].push(n[l]);}let m=f?Object.keys(t.alias):[];for(l=0;p>l;l++){if("--"===(i=e[l])){s._=s._.concat(e.slice(++l));break;}for(u=0;u<i.length&&45===i.charCodeAt(u);u++);if(0===u)s._.push(i);else if("no-"===i.substring(u,u+3)){if(o=i.substring(u+3),f&&!~m.indexOf(o))return t.unknown(i);s[o]=!1;}else{for(c=u+1;c<i.length&&61!==i.charCodeAt(c);c++);for(o=i.substring(u,c),a=i.substring(++c)||l+1===p||45===(""+e[l+1]).charCodeAt(0)||e[++l],n=2===u?[o]:o,c=0;c<n.length;c++){if(o=n[c],f&&!~m.indexOf(o))return t.unknown("-".repeat(u)+o);!function(e,t,r,n){var i,o=e[t],a=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeof r?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(i=+r)==0?i:r),!!r)):0*(i=+r)==0?i:r;e[t]=null==o?a:Array.isArray(o)?o.concat(a):[o,a];}(s,o,c+1<n.length||a,t);}}}if(h)for(r in t.default)void 0===s[r]&&(s[r]=t.default[r]);if(d)for(r in s)for(n=t.alias[r]||[];n.length>0;)s[n.shift()]=s[r];return s;}(e,{string:[...ur,"timeout"],default:Object.fromEntries(ur.map(e=>[e,function(e){let t=(0,nk.getInput)(e.toLowerCase());if("false"!==t&&""!==t)return t;}(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,rX.info)(`
|
||
setup-cpp [options]
|
||
setup-cpp --compiler llvm --cmake true --ninja true --ccache true --vcpkg true
|
||
|
||
Install all the tools required for building and testing C++/C projects.
|
||
|
||
--architecture the cpu architecture to install the tools for. By default it uses the current CPU architecture.
|
||
--timeout the timeout for the installation of each tool in minutes. By default it is 10 minutes.
|
||
--compiler the <compiler> to install.
|
||
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
|
||
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
|
||
|
||
All the available tools:
|
||
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let l=null!==(t=s.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:C("~"),c=[],d=[],f=rK.create({autoloadLocales:!0});rK.addLocale(p(rW)),rz.addLocale(p(rY));let h=await s1();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!e2(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(s,["llvm","clangtidy","clangformat"]))return(0,rX.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ea()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,rX.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ed("python-pygments"));let m=!1,g=!1;for(let e of ut){if(rV.isCI&&0!==d.length){g=!0;break;}let t=s[e];void 0!==t&&(i=Date.now(),m=await tW(e,t,h,l,u,c,d,6e4*parseFloat(null!==(n=s.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,rX.info)("took "+(f.format(i,o)||"0 seconds")));}if(!g){let e=s.compiler;if(void 0!==e){let t=Date.now();await rf(e,h,u,l,c,m,d);let r=Date.now();(0,rX.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await G(),0===c.length&&0===d.length)return(0,rX.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(c.forEach(e=>(0,rX.success)(e)),d.forEach(e=>(0,rX.error)(e)),(0,rX.info)("setup-cpp finished"),!rV.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rX.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rX.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await a,0===d.length?0:1;}var rm,rg,rv,rE,rw,ry,rb,rx,rS,rD,rT,rR,rN,rI,rA,rO,rC,r_,rL,r$,rP,rk,rU,rF,rM,rj,rq,rB,rG,rH,rV,rX,rz,rY,rK,rW,rQ,rJ,rZ,r0,r1,r3,r2,r4,r5,r6,r8,r9,r7,ne,nt,nr,nn,ni,no,na,ns,nl,nu,nc,np,nd,nf,nh,nm,ng,nv,nE,nw,ny,nb,nx,nS,nD,nT,nR,nN,nI,nA,nO,nC,n_,nL,n$,nP,nk,nU,nF,nM,nj,nq,nB,nG,nH,nV,nX,nz,nY,nK,nW,nQ,nJ,nZ,n0,n1,n3,n2,n4,n5,n6,n8,n9,n7,ie,it,ir,ii,io,ia,is,il,iu,ic,ip,id,ih,im,ig,iv=require("os"),iE=require("path"),iw=require("fs"),iy=require("crypto"),ib=require("http"),ix=require("https");require("net"),rE=require("tls"),rw=require("events"),ry=require("assert"),rb=require("util"),rx=require("fs"),rS=require("child_process"),rD=require("string_decoder"),rT=require("timers"),rR=require("buffer"),rN=require("path"),rI=require("child_process"),rA=require("process"),rO=require("url"),rC=require("os"),r_=require("buffer"),rL=require("stream"),r$=require("util"),rP=require("process"),rk=require("url"),rU=require("stream"),rF=require("stream/promises"),rM=require("console"),rq={},rB={},null==(rG=(rj=globalThis).parcelRequire810d)&&((rG=function(e){if(e in rq)return rq[e].exports;if(e in rB){var t=rB[e];delete rB[e];var r={id:e,exports:{}};return rq[e]=r,t.call(r.exports,r,r.exports),r.exports;}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rB[e]=t;},rj.parcelRequire810d=rG),(rH=rG.register)("dAuy6",function(e,t){var r;function n(e){return"string"==typeof e?!!i[e]:"env"in e?i[e.env]&&i[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){return i[t]===e[t];});}r=rG("5vZJI");let i=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){let r=(Array.isArray(t.env)?t.env:[t.env]).every(function(e){return n(e);});if(e.exports[t.constant]=r,r)switch(e.exports.name=t.name,typeof t.pr){case"string":e.exports.isPR=!!i[t.pr];break;case"object":"env"in t.pr?e.exports.isPR=t.pr.env in i&&i[t.pr.env]!==t.pr.ne:"any"in t.pr?e.exports.isPR=t.pr.any.some(function(e){return!!i[e];}):e.exports.isPR=n(t.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==i.CI&&(i.BUILD_ID||i.BUILD_NUMBER||i.CI||i.CI_APP_ID||i.CI_BUILD_ID||i.CI_BUILD_NUMBER||i.CI_NAME||i.CONTINUOUS_INTEGRATION||i.RUN_ID||e.exports.name));}),rH("5vZJI",function(e,t){e.exports=JSON.parse('[{"name":"Agola CI","constant":"AGOLA","env":"AGOLA_GIT_REF","pr":"AGOLA_PULL_REQUEST_ID"},{"name":"Appcircle","constant":"APPCIRCLE","env":"AC_APPCIRCLE"},{"name":"AppVeyor","constant":"APPVEYOR","env":"APPVEYOR","pr":"APPVEYOR_PULL_REQUEST_NUMBER"},{"name":"AWS CodeBuild","constant":"CODEBUILD","env":"CODEBUILD_BUILD_ARN"},{"name":"Azure Pipelines","constant":"AZURE_PIPELINES","env":"TF_BUILD","pr":{"BUILD_REASON":"PullRequest"}},{"name":"Bamboo","constant":"BAMBOO","env":"bamboo_planKey"},{"name":"Bitbucket Pipelines","constant":"BITBUCKET","env":"BITBUCKET_COMMIT","pr":"BITBUCKET_PR_ID"},{"name":"Bitrise","constant":"BITRISE","env":"BITRISE_IO","pr":"BITRISE_PULL_REQUEST"},{"name":"Buddy","constant":"BUDDY","env":"BUDDY_WORKSPACE_ID","pr":"BUDDY_EXECUTION_PULL_REQUEST_ID"},{"name":"Buildkite","constant":"BUILDKITE","env":"BUILDKITE","pr":{"env":"BUILDKITE_PULL_REQUEST","ne":"false"}},{"name":"CircleCI","constant":"CIRCLE","env":"CIRCLECI","pr":"CIRCLE_PULL_REQUEST"},{"name":"Cirrus CI","constant":"CIRRUS","env":"CIRRUS_CI","pr":"CIRRUS_PR"},{"name":"Codefresh","constant":"CODEFRESH","env":"CF_BUILD_ID","pr":{"any":["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{"name":"Codemagic","constant":"CODEMAGIC","env":"CM_BUILD_ID","pr":"CM_PULL_REQUEST"},{"name":"Codeship","constant":"CODESHIP","env":{"CI_NAME":"codeship"}},{"name":"Drone","constant":"DRONE","env":"DRONE","pr":{"DRONE_BUILD_EVENT":"pull_request"}},{"name":"dsari","constant":"DSARI","env":"DSARI"},{"name":"Earthly","constant":"EARTHLY","env":"EARTHLY_CI"},{"name":"Expo Application Services","constant":"EAS","env":"EAS_BUILD"},{"name":"Gerrit","constant":"GERRIT","env":"GERRIT_PROJECT"},{"name":"Gitea Actions","constant":"GITEA_ACTIONS","env":"GITEA_ACTIONS"},{"name":"GitHub Actions","constant":"GITHUB_ACTIONS","env":"GITHUB_ACTIONS","pr":{"GITHUB_EVENT_NAME":"pull_request"}},{"name":"GitLab CI","constant":"GITLAB","env":"GITLAB_CI","pr":"CI_MERGE_REQUEST_ID"},{"name":"GoCD","constant":"GOCD","env":"GO_PIPELINE_LABEL"},{"name":"Google Cloud Build","constant":"GOOGLE_CLOUD_BUILD","env":"BUILDER_OUTPUT"},{"name":"Harness CI","constant":"HARNESS","env":"HARNESS_BUILD_ID"},{"name":"Heroku","constant":"HEROKU","env":{"env":"NODE","includes":"/app/.heroku/node/bin/node"}},{"name":"Hudson","constant":"HUDSON","env":"HUDSON_URL"},{"name":"Jenkins","constant":"JENKINS","env":["JENKINS_URL","BUILD_ID"],"pr":{"any":["ghprbPullId","CHANGE_ID"]}},{"name":"LayerCI","constant":"LAYERCI","env":"LAYERCI","pr":"LAYERCI_PULL_REQUEST"},{"name":"Magnum CI","constant":"MAGNUM","env":"MAGNUM"},{"name":"Netlify CI","constant":"NETLIFY","env":"NETLIFY","pr":{"env":"PULL_REQUEST","ne":"false"}},{"name":"Nevercode","constant":"NEVERCODE","env":"NEVERCODE","pr":{"env":"NEVERCODE_PULL_REQUEST","ne":"false"}},{"name":"Prow","constant":"PROW","env":"PROW_JOB_ID"},{"name":"ReleaseHub","constant":"RELEASEHUB","env":"RELEASE_BUILD_ID"},{"name":"Render","constant":"RENDER","env":"RENDER","pr":{"IS_PULL_REQUEST":"true"}},{"name":"Sail CI","constant":"SAIL","env":"SAILCI","pr":"SAIL_PULL_REQUEST_NUMBER"},{"name":"Screwdriver","constant":"SCREWDRIVER","env":"SCREWDRIVER","pr":{"env":"SD_PULL_REQUEST","ne":"false"}},{"name":"Semaphore","constant":"SEMAPHORE","env":"SEMAPHORE","pr":"PULL_REQUEST_NUMBER"},{"name":"Sourcehut","constant":"SOURCEHUT","env":{"CI_NAME":"sourcehut"}},{"name":"Strider CD","constant":"STRIDER","env":"STRIDER"},{"name":"TaskCluster","constant":"TASKCLUSTER","env":["TASK_ID","RUN_ID"]},{"name":"TeamCity","constant":"TEAMCITY","env":"TEAMCITY_VERSION"},{"name":"Travis CI","constant":"TRAVIS","env":"TRAVIS","pr":{"env":"TRAVIS_PULL_REQUEST","ne":"false"}},{"name":"Vela","constant":"VELA","env":"VELA","pr":{"VELA_PULL_REQUEST":"1"}},{"name":"Vercel","constant":"VERCEL","env":{"any":["NOW_BUILDER","VERCEL"]},"pr":"VERCEL_GIT_PULL_REQUEST_ID"},{"name":"Visual Studio App Center","constant":"APPCENTER","env":"APPCENTER_BUILD_ID"},{"name":"Woodpecker","constant":"WOODPECKER","env":{"CI":"woodpecker"},"pr":{"CI_BUILD_EVENT":"pull_request"}},{"name":"Xcode Cloud","constant":"XCODE_CLOUD","env":"CI_XCODE_PROJECT","pr":"CI_PULL_REQUEST_NUMBER"},{"name":"Xcode Server","constant":"XCODE_SERVER","env":"XCS"}]');}),rH("hHq4F",function(e,t){var r,n;function i(e){return n.GITHUB_ACTIONS?r.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function a(e){return n.GITHUB_ACTIONS?r.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function s(e){return n.GITHUB_ACTIONS?r.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function l(e){return n.GITHUB_ACTIONS?r.info(e):console.log(e);}c(e.exports,"error",()=>i),c(e.exports,"success",()=>o),c(e.exports,"warning",()=>a),c(e.exports,"notice",()=>s),c(e.exports,"info",()=>l),r=rG("1o3Gj"),n=rG("dAuy6");}),rH("1o3Gj",function(e,t){var r,n,i,o,a,s,l,u,c,p,d,f;function h(e,t){let r=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(t&&t.required&&!r)throw Error("Input required and not supplied: "+e);return t&&!1===t.trimWhitespace?r:r.trim();}function m(e,t={}){a.issueCommand("error",l.toCommandProperties(t),e instanceof Error?e.toString():e);}function g(e){a.issue("group",e);}function v(){a.issue("endgroup");}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getIDToken=e.exports.getState=e.exports.saveState=e.exports.group=e.exports.endGroup=e.exports.startGroup=e.exports.info=e.exports.notice=e.exports.warning=e.exports.error=e.exports.debug=e.exports.isDebug=e.exports.setFailed=e.exports.setCommandEcho=e.exports.setOutput=e.exports.getBooleanInput=e.exports.getMultilineInput=e.exports.getInput=e.exports.addPath=e.exports.setSecret=e.exports.exportVariable=e.exports.ExitCode=void 0,a=rG("1g3mY"),s=rG("8prV6"),l=rG("5nnws");let E=i(iv),w=i(iE);u=rG("dU1e3"),(f=c=e.exports.ExitCode||(e.exports.ExitCode={}))[f.Success=0]="Success",f[f.Failure=1]="Failure",e.exports.exportVariable=function(e,t){let r=l.toCommandValue(t);if(process.env[e]=r,process.env.GITHUB_ENV)return s.issueFileCommand("ENV",s.prepareKeyValueMessage(e,t));a.issueCommand("set-env",{name:e},r);},e.exports.setSecret=function(e){a.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?s.issueFileCommand("PATH",e):a.issueCommand("add-path",{},e),process.env.PATH=`${e}${w.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,t){let r=h(e,t).split("\n").filter(e=>""!==e);return t&&!1===t.trimWhitespace?r:r.map(e=>e.trim());},e.exports.getBooleanInput=function(e,t){let r=h(e,t);if(["true","True","TRUE"].includes(r))return!0;if(["false","False","FALSE"].includes(r))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}
|
||
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``);},e.exports.setOutput=function(e,t){if(process.env.GITHUB_OUTPUT)return s.issueFileCommand("OUTPUT",s.prepareKeyValueMessage(e,t));process.stdout.write(E.EOL),a.issueCommand("set-output",{name:e},l.toCommandValue(t));},e.exports.setCommandEcho=function(e){a.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=c.Failure,m(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){a.issueCommand("debug",{},e);},e.exports.error=m,e.exports.warning=function(e,t={}){a.issueCommand("warning",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.notice=function(e,t={}){a.issueCommand("notice",l.toCommandProperties(t),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+E.EOL);},e.exports.startGroup=g,e.exports.endGroup=v,e.exports.group=function(e,t){return o(this,void 0,void 0,function*(){let r;g(e);try{r=yield t();}finally{v();}return r;});},e.exports.saveState=function(e,t){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(e,t));a.issueCommand("save-state",{name:e},l.toCommandValue(t));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield u.OidcClient.getIDToken(e);});},p=rG("dV9Cu"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return p.summary;}}),p=rG("dV9Cu"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return p.markdownSummary;}}),d=rG("9i0tI"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return d.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return d.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return d.toPlatformPath;}});}),rH("1g3mY",function(e,t){var r,n,i,o;function a(e,t,r){let n=new l(e,t,r);process.stdout.write(n.toString()+s.EOL);}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let s=i(iv);o=rG("5nnws"),e.exports.issueCommand=a,e.exports.issue=function(e,t=""){a(e,{},t);};class l{constructor(e,t,r){e||(e="missing.command"),this.command=e,this.properties=t,this.message=r;}toString(){var e;let t="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let e=!0;for(let r in this.properties)if(this.properties.hasOwnProperty(r)){let n=this.properties[r];n&&(e?e=!1:t+=",",t+=`${r}=${o.toCommandValue(n).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return t+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),rH("5nnws",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toCommandProperties=e.exports.toCommandValue=void 0,e.exports.toCommandValue=function(e){return null==e?"":"string"==typeof e||e instanceof String?e:JSON.stringify(e);},e.exports.toCommandProperties=function(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{};};}),rH("8prV6",function(e,t){var r,n,i,o,a;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let s=i(iw),l=i(iv);o=rG("1Un9O"),a=rG("5nnws"),e.exports.issueFileCommand=function(e,t){let r=process.env["GITHUB_"+e];if(!r)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(r))throw Error("Missing file at path: "+r);s.appendFileSync(r,`${a.toCommandValue(t)}${l.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,t){let r="ghadelimiter_"+o.default(),n=a.toCommandValue(t);if(e.includes(r))throw Error(`Unexpected input: name should not contain the delimiter "${r}"`);if(n.includes(r))throw Error(`Unexpected input: value should not contain the delimiter "${r}"`);return`${e}<<${r}${l.EOL}${n}${l.EOL}${r}`;};}),rH("1Un9O",function(e,t){var r,n,i;c(e.exports,"default",()=>i),r=rG("jyKkd"),n=rG("4DdbA"),i=function(e,t,i){let o=(e=e||{}).random||(e.rng||(0,r.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(let e=0;e<16;++e)t[i+e]=o[e];return t;}return(0,n.default)(o);};}),rH("jyKkd",function(e,t){function r(){return i>n.length-16&&(p(iy).randomFillSync(n),i=0),n.slice(i,i+=16);}c(e.exports,"default",()=>r);let n=new Uint8Array(256),i=n.length;}),rH("4DdbA",function(e,t){var r,n;c(e.exports,"default",()=>n),r=rG("4XBHo");let i=[];for(let e=0;e<256;++e)i.push((e+256).toString(16).substr(1));n=function(e,t=0){let n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n;};}),rH("4XBHo",function(e,t){var r,n;c(e.exports,"default",()=>n),r=rG("dcWu5"),n=function(e){return"string"==typeof e&&(0,r.default).test(e);};}),rH("dcWu5",function(e,t){c(e.exports,"default",()=>r);var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;}),rH("dU1e3",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var n=rG("eamjo"),i=rG("h6tQO"),o=rG("1o3Gj");class a{static createHttpClient(e=!0,t=10){return new n.HttpClient("actions/oidc-client",[new i.BearerCredentialHandler(a.getRequestToken())],{allowRetries:e,maxRetries:t});}static getRequestToken(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_TOKEN;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable");return e;}static getIDTokenUrl(){let e=process.env.ACTIONS_ID_TOKEN_REQUEST_URL;if(!e)throw Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable");return e;}static getCall(e){var t;return r(this,void 0,void 0,function*(){let r=a.createHttpClient(),n=null===(t=(yield r.getJson(e).catch(e=>{throw Error(`Failed to get ID Token.
|
||
|
||
Error Code : ${e.statusCode}
|
||
|
||
Error Message: ${e.message}`);})).result)||void 0===t?void 0:t.value;if(!n)throw Error("Response json body do not have ID Token field");return n;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=a.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield a.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=a;}),rH("eamjo",function(e,t){var r,n,i,o,a,s,l,u,c;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let p=i(ib),d=i(ix),f=i(rG("jnrYh")),h=i(rG("3RDK7"));(u=a=e.exports.HttpCodes||(e.exports.HttpCodes={}))[u.OK=200]="OK",u[u.MultipleChoices=300]="MultipleChoices",u[u.MovedPermanently=301]="MovedPermanently",u[u.ResourceMoved=302]="ResourceMoved",u[u.SeeOther=303]="SeeOther",u[u.NotModified=304]="NotModified",u[u.UseProxy=305]="UseProxy",u[u.SwitchProxy=306]="SwitchProxy",u[u.TemporaryRedirect=307]="TemporaryRedirect",u[u.PermanentRedirect=308]="PermanentRedirect",u[u.BadRequest=400]="BadRequest",u[u.Unauthorized=401]="Unauthorized",u[u.PaymentRequired=402]="PaymentRequired",u[u.Forbidden=403]="Forbidden",u[u.NotFound=404]="NotFound",u[u.MethodNotAllowed=405]="MethodNotAllowed",u[u.NotAcceptable=406]="NotAcceptable",u[u.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",u[u.RequestTimeout=408]="RequestTimeout",u[u.Conflict=409]="Conflict",u[u.Gone=410]="Gone",u[u.TooManyRequests=429]="TooManyRequests",u[u.InternalServerError=500]="InternalServerError",u[u.NotImplemented=501]="NotImplemented",u[u.BadGateway=502]="BadGateway",u[u.ServiceUnavailable=503]="ServiceUnavailable",u[u.GatewayTimeout=504]="GatewayTimeout",(c=s=e.exports.Headers||(e.exports.Headers={})).Accept="accept",c.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[a.MovedPermanently,a.ResourceMoved,a.SeeOther,a.TemporaryRedirect,a.PermanentRedirect],g=[a.BadGateway,a.ServiceUnavailable,a.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class E extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,E.prototype);}}e.exports.HttpClientError=E;class w{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}}e.exports.HttpClientResponse=w,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[],this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries));}options(e,t){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,t||{});});}get(e,t){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,t||{});});}del(e,t){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,t||{});});}post(e,t,r){return o(this,void 0,void 0,function*(){return this.request("POST",e,t,r||{});});}patch(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,t,r||{});});}put(e,t,r){return o(this,void 0,void 0,function*(){return this.request("PUT",e,t,r||{});});}head(e,t){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,t||{});});}sendStream(e,t,r,n){return o(this,void 0,void 0,function*(){return this.request(e,t,r,n);});}getJson(e,t={}){return o(this,void 0,void 0,function*(){t[s.Accept]=this._getExistingOrDefaultHeader(t,s.Accept,l.ApplicationJson);let r=yield this.get(e,t);return this._processResponse(r,this.requestOptions);});}postJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let i=yield this.post(e,n,r);return this._processResponse(i,this.requestOptions);});}putJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let i=yield this.put(e,n,r);return this._processResponse(i,this.requestOptions);});}patchJson(e,t,r={}){return o(this,void 0,void 0,function*(){let n=JSON.stringify(t,null,2);r[s.Accept]=this._getExistingOrDefaultHeader(r,s.Accept,l.ApplicationJson),r[s.ContentType]=this._getExistingOrDefaultHeader(r,s.ContentType,l.ApplicationJson);let i=yield this.patch(e,n,r);return this._processResponse(i,this.requestOptions);});}request(e,t,r,n){return o(this,void 0,void 0,function*(){let i;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(t),s=this._prepareRequest(e,o,n),l=this._allowRetries&&v.includes(e)?this._maxRetries+1:1,u=0;do{if((i=yield this.requestRaw(s,r))&&i.message&&i.message.statusCode===a.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(i)){e=t;break;}if(e)return e.handleAuthentication(this,s,r);break;}let t=this._maxRedirects;for(;i.message.statusCode&&m.includes(i.message.statusCode)&&this._allowRedirects&&t>0;){let a=i.message.headers.location;if(!a)break;let l=new URL(a);if("https:"===o.protocol&&o.protocol!==l.protocol&&!this._allowRedirectDowngrade)throw Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");if(yield i.readBody(),l.hostname!==o.hostname)for(let e in n)"authorization"===e.toLowerCase()&&delete n[e];s=this._prepareRequest(e,l,n),i=yield this.requestRaw(s,r),t--;}if(!i.message.statusCode||!g.includes(i.message.statusCode))break;(u+=1)<l&&(yield i.readBody(),yield this._performExponentialBackoff(u));}while(u<l);return i;});}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0;}requestRaw(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>{this.requestRawWithCallback(e,t,function(e,t){e?n(e):t?r(t):n(Error("Unknown error"));});});});}requestRawWithCallback(e,t,r){let n;function i(e,t){o||(o=!0,r(e,t));}"string"==typeof t&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let o=!1,a=e.httpModule.request(e.options,e=>{i(void 0,new w(e));});a.on("socket",e=>{n=e;}),a.setTimeout(this._socketTimeout||18e4,()=>{n&&n.end(),i(Error("Request timeout: "+e.options.path));}),a.on("error",function(e){i(e);}),t&&"string"==typeof t&&a.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",function(){a.end();}),t.pipe(a)):a.end();}getAgent(e){let t=new URL(e);return this._getAgent(t);}_prepareRequest(e,t,r){let n={};n.parsedUrl=t;let i="https:"===n.parsedUrl.protocol;if(n.httpModule=i?d:p,n.options={},n.options.host=n.parsedUrl.hostname,n.options.port=n.parsedUrl.port?parseInt(n.parsedUrl.port):i?443:80,n.options.path=(n.parsedUrl.pathname||"")+(n.parsedUrl.search||""),n.options.method=e,n.options.headers=this._mergeHeaders(r),null!=this.userAgent&&(n.options.headers["user-agent"]=this.userAgent),n.options.agent=this._getAgent(n.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(n.options);return n;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},y(this.requestOptions.headers),y(e||{})):y(e||{});}_getExistingOrDefaultHeader(e,t,r){let n;return this.requestOptions&&this.requestOptions.headers&&(n=y(this.requestOptions.headers)[t]),e[t]||n||r;}_getAgent(e){let t;let r=f.getProxyUrl(e),n=r&&r.hostname;if(this._keepAlive&&n&&(t=this._proxyAgent),this._keepAlive&&!n&&(t=this._agent),t)return t;let i="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||p.globalAgent.maxSockets),r&&r.hostname){let e;let n={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(r.username||r.password)&&{proxyAuth:`${r.username}:${r.password}`}),{host:r.hostname,port:r.port})},a="https:"===r.protocol;t=(i?a?h.httpsOverHttps:h.httpsOverHttp:a?h.httpOverHttps:h.httpOverHttp)(n),this._proxyAgent=t;}if(this._keepAlive&&!t){let e={keepAlive:this._keepAlive,maxSockets:o};t=i?new d.Agent(e):new p.Agent(e),this._agent=t;}return t||(t=i?d.globalAgent:p.globalAgent),i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let t=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),t));});}_processResponse(e,t){return o(this,void 0,void 0,function*(){return new Promise((r,n)=>o(this,void 0,void 0,function*(){let i,o;let s=e.message.statusCode||0,l={statusCode:s,result:null,headers:{}};s===a.NotFound&&r(l);try{(o=yield e.readBody())&&o.length>0&&(i=t&&t.deserializeDates?JSON.parse(o,function(e,t){if("string"==typeof t){let e=new Date(t);if(!isNaN(e.valueOf()))return e;}return t;}):JSON.parse(o),l.result=i),l.headers=e.message.headers;}catch(e){}if(s>299){let e;let t=new E(i&&i.message?i.message:o&&o.length>0?o:`Failed request: (${s})`,s);t.result=l.result,n(t);}else r(l);}));});}};let y=e=>Object.keys(e).reduce((t,r)=>(t[r.toLowerCase()]=e[r],t),{});}),rH("jnrYh",function(e,t){function r(e){let t;if(!e.hostname)return!1;if(function(e){let t=e.toLowerCase();return"localhost"===t||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;e.port?t=+e.port:"http:"===e.protocol?t=80:"https:"===e.protocol&&(t=443);let n=[e.hostname.toUpperCase()];for(let e of("number"==typeof t&&n.push(`${n[0]}:${t}`),r.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||n.some(t=>t===e||t.endsWith("."+e)||e.startsWith(".")&&t.endsWith(""+e)))return!0;return!1;}Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.checkBypass=e.exports.getProxyUrl=void 0,e.exports.getProxyUrl=function(e){let t="https:"===e.protocol;if(r(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;return n?new URL(n):void 0;},e.exports.checkBypass=r;}),rH("3RDK7",function(e,t){e.exports=rG("jZQ4B");}),rH("jZQ4B",function(e,t){var r,n,i,o,a,s;function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||ib.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",function(e,r,n,i){for(var o=p(r,n,i),a=0,s=t.requests.length;s>a;++a){var l=t.requests[a];if(l.host===o.host&&l.port===o.port){t.requests.splice(a,1),l.request.onSocket(e);return;}}e.destroy(),t.removeSocket(e);});}function u(e,t){var r=this;l.prototype.createSocket.call(r,e,function(n){var i=e.request.getHeader("host"),o=d({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):e.host}),a=rE.connect(0,o);r.sockets[r.sockets.indexOf(n)]=a,t(a);});}function p(e,t,r){return"string"==typeof e?{host:e,port:t,localAddress:r}:e;}function d(e){for(var t=1,r=arguments.length;r>t;++t){var n=arguments[t];if("object"==typeof n)for(var i=Object.keys(n),o=0,a=i.length;a>o;++o){var s=i[o];void 0!==n[s]&&(e[s]=n[s]);}}return e;}c(e.exports,"httpOverHttp",()=>r,e=>r=e),c(e.exports,"httpsOverHttp",()=>n,e=>n=e),c(e.exports,"httpOverHttps",()=>i,e=>i=e),c(e.exports,"httpsOverHttps",()=>o,e=>o=e),c(e.exports,"debug",()=>a,e=>a=e),r=function(e){var t=new l(e);return t.request=ib.request,t;},n=function(e){var t=new l(e);return t.request=ib.request,t.createSocket=u,t.defaultPort=443,t;},i=function(e){var t=new l(e);return t.request=ix.request,t;},o=function(e){var t=new l(e);return t.request=ix.request,t.createSocket=u,t.defaultPort=443,t;},rb.inherits(l,rw.EventEmitter),l.prototype.addRequest=function(e,t,r,n){var i=this,o=d({request:e},i.options,p(t,r,n));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return;}i.createSocket(o,function(t){function r(){i.emit("free",t,o);}function n(e){i.removeSocket(t),t.removeListener("free",r),t.removeListener("close",n),t.removeListener("agentRemove",n);}t.on("free",r),t.on("close",n),t.on("agentRemove",n),e.onSocket(t);});},l.prototype.createSocket=function(e,t){function r(r,n,l){if(i.removeAllListeners(),n.removeAllListeners(),200!==r.statusCode){s("tunneling socket could not be established, statusCode=%d",r.statusCode),n.destroy();var u=Error("tunneling socket could not be established, statusCode="+r.statusCode);u.code="ECONNRESET",e.request.emit("error",u),o.removeSocket(a);return;}if(l.length>0){s("got illegal response body from proxy"),n.destroy();var u=Error("got illegal response body from proxy");u.code="ECONNRESET",e.request.emit("error",u),o.removeSocket(a);return;}return s("tunneling connection has established"),o.sockets[o.sockets.indexOf(a)]=n,t(n);}var n,i,o=this,a={};o.sockets.push(a),n=d({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(n.localAddress=e.localAddress),n.proxyAuth&&(n.headers=n.headers||{},n.headers["Proxy-Authorization"]="Basic "+new Buffer(n.proxyAuth).toString("base64")),s("making CONNECT request"),(i=o.request(n)).useChunkedEncodingByDefault=!1,i.once("response",function(e){e.upgrade=!0;}),i.once("upgrade",function(e,t,n){process.nextTick(function(){r(e,t,n);});}),i.once("connect",r),i.once("error",function(t){i.removeAllListeners(),s("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var r=Error("tunneling socket could not be established, cause="+t.message);r.code="ECONNRESET",e.request.emit("error",r),o.removeSocket(a);}),i.end();},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var r=this.requests.shift();r&&this.createSocket(r,function(e){r.request.onSocket(e);});}},process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?s=function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e);}:s=function(){},a=s;}),rH("h6tQO",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.PersonalAccessTokenCredentialHandler=e.exports.BearerCredentialHandler=e.exports.BasicCredentialHandler=void 0,e.exports.BasicCredentialHandler=class{constructor(e,t){this.username=e,this.password=t;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from(`${this.username}:${this.password}`).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.BearerCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Bearer "+this.token;}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}},e.exports.PersonalAccessTokenCredentialHandler=class{constructor(e){this.token=e;}prepareRequest(e){if(!e.headers)throw Error("The request has no headers");e.headers.Authorization="Basic "+Buffer.from("PAT:"+this.token).toString("base64");}canHandleAuthentication(){return!1;}handleAuthentication(){return r(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),rH("dV9Cu",function(e,t){var r=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=iw.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let a=new class{constructor(){this._buffer="";}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield n(t,iw.constants.R_OK|iw.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`);}return this._filePath=t,this._filePath;});}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>` ${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`;}write(e){return r(this,void 0,void 0,function*(){let t=!!(null==e?void 0:e.overwrite),r=yield this.filePath();return yield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return r(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0});});}stringify(){return this._buffer;}isEmptyBuffer(){return 0===this._buffer.length;}emptyBuffer(){return this._buffer="",this;}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this;}addEOL(){return this.addRaw(iv.EOL);}addCodeBlock(e,t){let r=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);return this.addRaw(n).addEOL();}addList(e,t=!1){let r=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);return this.addRaw(n).addEOL();}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});return this.wrap(t?"th":"td",r,o);}).join("");return this.wrap("tr",t);}).join(""),r=this.wrap("table",t);return this.addRaw(r).addEOL();}addDetails(e,t){let r=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(r).addEOL();}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),a=this.wrap("img",null,Object.assign({src:e,alt:t},o));return this.addRaw(a).addEOL();}addHeading(e,t){let r="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL();}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL();}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL();}addQuote(e,t){let r=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);return this.addRaw(n).addEOL();}addLink(e,t){let r=this.wrap("a",e,{href:t});return this.addRaw(r).addEOL();}}();e.exports.markdownSummary=a,e.exports.summary=a;}),rH("9i0tI",function(e,t){var r,n,i;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=i(iE);e.exports.toPosixPath=function(e){return e.replace(/[\\]/g,"/");},e.exports.toWin32Path=function(e){return e.replace(/[/]/g,"\\");},e.exports.toPlatformPath=function(e){return e.replace(/[/\\]/g,o.sep);};}),rH("kswPT",function(e,t){var r=iE.resolve(__dirname,"../../node_modules/numerous/lib");(function(){var t,n;function i(e,r,n){if(o(e),"object"!=typeof n)throw Error("List of variants should be specified as an object");var i=t[e](r);return void 0!==n[i]?n[i]:null;}function o(e){!(void 0!==t[e])&&function(e){try{require(r+"/../locales/"+e+".js");}catch(t){throw Error("Failed to load the following locale: "+e);}}(e);}t={},n={create:function(e){return o(e),{pluralize:function(t,r){return i(e,t,r);}};},addLocale:function(e,r){t[e]=r;},pluralize:i},void 0!==e.exports?e.exports=n:this.numerous=n;}).call(e.exports);}),rH("foOBZ",function(e,t){function r(e){for(let t of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:r}=t;s[e]=r;}}var n=rG("6OFKY"),i=rG("5GOZM");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],a={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};e.exports={create:function(e){return e=Object.assign({},a,e||{}),{format:function(t,a,l){return function(e,t,a){if(function(e,t){let{autoload:n}=t;if(!s[e]){if(i&&n)(function(e){try{r(require(`../locales/${e}.js`));}catch(t){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${t}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(a.locale,{autoload:a.autoloadLocales}),!e)throw Error("Missing first date argument");if(!t)throw Error("Missing second date argument");let l=function(e,t){let r=t-e,n=[];return o.some(function(e){let t=e[0],i=e[1],o=Math.floor(r/i);if(r-=o*i,n.push([t,o]),r<=0)return!0;}),n;}(e,t),u=[];for(let e of l){let[t,r]=e;if(r>0&&u.push(function(e,t,r){let i=function(e){let t=s[e.locale],r=e.unitTypeLookupOrder.slice();r.unshift(e.unitType);let n=null;if((r=Array.from(new Set(r))).some(function(e){if(void 0!==t[e])return n=t[e],!0;}),null===n)throw Error("Can not find any unit type data for locale: "+e.locale);return n;}(r);return n.pluralize(r.locale,t,i[e]).replace("{0}",t);}(t,r,a)),u.length>=a.span)break;}return u.join(a.delimiter);}(t,a,l=Object.assign({},e,l||{}));}};},addLocale:r,defaultConfig:a};}),rH("6OFKY",function(e,t){e.exports=rG("kswPT");}),rH("5GOZM",function(e,t){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),rH("8nJMC",function(e,t){function r(e,t,r){return!!(e.isSymbolicLink()||e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r||-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0;}return!1;}(t,r);}function n(e,t,n){iw.stat(e,function(i,o){n(i,!i&&r(o,e,t));});}e.exports=n,n.sync=function(e,t){return r(iw.statSync(e),e,t);};}),rH("lo7XV",function(e,t){function r(e,t,r){iw.stat(e,function(e,i){r(e,!e&&n(i,t));});}function n(e,t){var r,n,i,o,a,s,l,u,c;return e.isFile()&&(r=e,n=t,i=r.mode,o=r.uid,a=r.gid,s=void 0!==n.uid?n.uid:process.getuid&&process.getuid(),l=void 0!==n.gid?n.gid:process.getgid&&process.getgid(),u=parseInt("100",8),c=parseInt("010",8),i&parseInt("001",8)||i&c&&a===l||i&u&&o===s||i&(u|c)&&0===s);}e.exports=r,r.sync=function(e,t){return n(iw.statSync(e),t);};}),rH("dVIKq",function(e,t){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED");}),rH("coVwk",function(e,t){var r=rG("hhSwF"),n=rG("iXsaM"),i=rG("8cXe9"),o=rG("dAM2Q"),a=rG("cHnHr"),s=rG("2kZmC"),l=rG("3Ixw1"),u=rG("5r5vN"),c=rG("bDrwm"),p=rG("lORAA"),d=rG("2Lh6z"),f=rG("73KaH"),h=rG("j5Xr5"),m=rG("jDqfd"),g=rG("2QKGl"),v=rG("3puHo"),E=rG("7qrQi"),w=rG("hZ1Xd"),y=rG("3YOIj"),b=rG("cOpcP"),x=rG("58P10"),S=rG("lTmeS"),D=rG("jzqBf"),T=rG("3XWvL"),R=rG("hlfY9"),N=rG("84iFB"),I=rG("6v1Be"),A=rG("1bxhC"),O=rG("bswWF"),C=rG("42oIR"),_=rG("4zfp3"),L=rG("ga5uZ"),$=rG("lPGVL"),P=rG("1I8AA"),k=rG("dBtft"),U=rG("83Sp2"),F=rG("eK4my"),M=rG("eNXBI"),j=rG("kHzUo"),q=rG("1x2XZ"),B=rG("hTYir");e.exports={parse:a,valid:s,clean:l,inc:u,diff:c,major:p,minor:d,patch:f,prerelease:h,compare:m,rcompare:g,compareLoose:v,compareBuild:E,sort:w,rsort:y,gt:b,lt:x,eq:S,neq:D,gte:T,lte:R,cmp:N,coerce:I,Comparator:A,Range:O,satisfies:C,toComparators:_,maxSatisfying:L,minSatisfying:$,minVersion:P,validRange:k,outside:U,gtr:F,ltr:M,intersects:j,simplifyRange:q,subset:B,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:n.SEMVER_SPEC_VERSION,RELEASE_TYPES:n.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),rH("hhSwF",function(e,t){var r=rG("iXsaM"),n=r.MAX_SAFE_COMPONENT_LENGTH,i=r.MAX_SAFE_BUILD_LENGTH,o=r.MAX_LENGTH,a=rG("jl9Uf");let s=(t=e.exports={}).re=[],l=t.safeRe=[],u=t.src=[],c=t.t={},p=0,d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=e=>{for(let[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e;},m=(e,t,r)=>{let n=h(t),i=p++;a(e,i,t),c[e]=i,u[i]=t,s[i]=new RegExp(t,r?"g":void 0),l[i]=new RegExp(n,r?"g":void 0);};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})\\.(${u[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})\\.(${u[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${u[c.NUMERICIDENTIFIER]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${u[c.NUMERICIDENTIFIERLOOSE]}|${u[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${u[c.PRERELEASEIDENTIFIER]}(?:\\.${u[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${u[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${u[c.BUILDIDENTIFIER]}(?:\\.${u[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${u[c.MAINVERSION]}${u[c.PRERELEASE]}?${u[c.BUILD]}?`),m("FULL",`^${u[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${u[c.MAINVERSIONLOOSE]}${u[c.PRERELEASELOOSE]}?${u[c.BUILD]}?`),m("LOOSE",`^${u[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${u[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${u[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:\\.(${u[c.XRANGEIDENTIFIER]})(?:${u[c.PRERELEASE]})?${u[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[c.XRANGEIDENTIFIERLOOSE]})(?:${u[c.PRERELEASELOOSE]})?${u[c.BUILD]}?)?)?`),m("XRANGE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${u[c.GTLT]}\\s*${u[c.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),m("COERCE",`${u[c.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",u[c.COERCEPLAIN]+`(?:${u[c.PRERELEASE]})?`+`(?:${u[c.BUILD]})?`+"(?:$|[^\\d])"),m("COERCERTL",u[c.COERCE],!0),m("COERCERTLFULL",u[c.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${u[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${u[c.LONETILDE]}${u[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${u[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${u[c.LONECARET]}${u[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${u[c.LONECARET]}${u[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${u[c.GTLT]}\\s*(${u[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${u[c.GTLT]}\\s*(${u[c.LOOSEPLAIN]}|${u[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${u[c.XRANGEPLAIN]})\\s+-\\s+(${u[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${u[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),rH("iXsaM",function(e,t){let r=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:r,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),rH("jl9Uf",function(e,t){let r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=r;}),rH("8cXe9",function(e,t){var r=rG("jl9Uf"),n=rG("iXsaM"),i=n.MAX_LENGTH,o=n.MAX_SAFE_INTEGER,a=rG("hhSwF"),s=a.safeRe,l=a.t,u=rG("5v8m5"),c=rG("dAM2Q").compareIdentifiers;class p{constructor(e,t){if(t=u(t),e instanceof p){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;e=e.version;}else if("string"!=typeof e)throw TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;let n=e.trim().match(t.loose?s[l.LOOSE]:s[l.FULL]);if(!n)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<o)return t;}return e;}):this.prerelease=[],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)),c(this.major,e.major)||c(this.minor,e.minor)||c(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{let n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;else if(n===i)continue;else return c(n,i);}while(++t);}compareBuild(e){e instanceof p||(e=new p(e,this.options));let t=0;do{let n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;else if(n===i)continue;else return c(n,i);}while(++t);}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,r),this.inc("pre",t,r);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":{let e=+r?1:0;if(!t&&!1===r)throw Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(t){let n=[t,e];!1===r&&(n=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=p;}),rH("5v8m5",function(e,t){let r=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?r:e:n;}),rH("dAM2Q",function(e,t){let r=(e,t)=>{let r=/^[0-9]+$/.test(e),n=/^[0-9]+$/.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;};e.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)};}),rH("cHnHr",function(e,t){var r=rG("8cXe9");e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t);}catch(e){if(!n)return null;throw e;}};}),rH("2kZmC",function(e,t){var r=rG("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null;};}),rH("3Ixw1",function(e,t){var r=rG("cHnHr");e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null;};}),rH("5r5vN",function(e,t){var r=rG("8cXe9");e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version;}catch(e){return null;}};}),rH("bDrwm",function(e,t){var r=rG("cHnHr");e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;let a=o>0,s=a?n:i,l=a?i:n,u=!!s.prerelease.length;if(l.prerelease.length&&!u)return l.patch||l.minor?s.patch?"patch":s.minor?"minor":"major":"major";let c=u?"pre":"";return n.major!==i.major?c+"major":n.minor!==i.minor?c+"minor":n.patch!==i.patch?c+"patch":"prerelease";};}),rH("lORAA",function(e,t){var r=rG("8cXe9");e.exports=(e,t)=>new r(e,t).major;}),rH("2Lh6z",function(e,t){var r=rG("8cXe9");e.exports=(e,t)=>new r(e,t).minor;}),rH("73KaH",function(e,t){var r=rG("8cXe9");e.exports=(e,t)=>new r(e,t).patch;}),rH("j5Xr5",function(e,t){var r=rG("cHnHr");e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null;};}),rH("jDqfd",function(e,t){var r=rG("8cXe9");e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n));}),rH("2QKGl",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>r(t,e,n);}),rH("3puHo",function(e,t){var r=rG("jDqfd");e.exports=(e,t)=>r(e,t,!0);}),rH("7qrQi",function(e,t){var r=rG("8cXe9");e.exports=(e,t,n)=>{let i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o);};}),rH("hZ1Xd",function(e,t){var r=rG("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t));}),rH("3YOIj",function(e,t){var r=rG("7qrQi");e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t));}),rH("cOpcP",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>0;}),rH("58P10",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>0>r(e,t,n);}),rH("lTmeS",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>0===r(e,t,n);}),rH("jzqBf",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>0!==r(e,t,n);}),rH("3XWvL",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>r(e,t,n)>=0;}),rH("hlfY9",function(e,t){var r=rG("jDqfd");e.exports=(e,t,n)=>0>=r(e,t,n);}),rH("84iFB",function(e,t){var r=rG("lTmeS"),n=rG("jzqBf"),i=rG("cOpcP"),o=rG("3XWvL"),a=rG("58P10"),s=rG("hlfY9");e.exports=(e,t,l,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e===l;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof l&&(l=l.version),e!==l;case"":case"=":case"==":return r(e,l,u);case"!=":return n(e,l,u);case">":return i(e,l,u);case">=":return o(e,l,u);case"<":return a(e,l,u);case"<=":return s(e,l,u);default:throw TypeError("Invalid operator: "+t);}};}),rH("6v1Be",function(e,t){var r=rG("8cXe9"),n=rG("cHnHr"),i=rG("hhSwF"),o=i.safeRe,a=i.t;e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let i=null;if((t=t||{}).rtl){let r;let n=t.includePrerelease?o[a.COERCERTLFULL]:o[a.COERCERTL];for(;(r=n.exec(e))&&(!i||i.index+i[0].length!==e.length);)i&&r.index+r[0].length===i.index+i[0].length||(i=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1;}else i=e.match(t.includePrerelease?o[a.COERCEFULL]:o[a.COERCE]);if(null===i)return null;let s=i[2],l=i[3]||"0",u=i[4]||"0",c=t.includePrerelease&&i[5]?"-"+i[5]:"",p=t.includePrerelease&&i[6]?"+"+i[6]:"";return n(`${s}.${l}.${u}${c}${p}`,t);};}),rH("1bxhC",function(e,t){let r=Symbol();class n{static get ANY(){return r;}constructor(e,t){if(t=i(t),e instanceof n){if(!!t.loose===e.loose)return e;e=e.value;}u("comparator",e=e.trim().split(/\s+/).join(" "),t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,u("comp",this);}parse(e){let t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new c(n[2],this.options.loose):this.semver=r;}toString(){return this.value;}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new c(e,this.options);}catch(e){return!1;}return l(e,this.operator,this.semver,this.options);}intersects(e,t){if(!(e instanceof n))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=i(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&!!(this.operator.startsWith(">")&&e.operator.startsWith(">")||this.operator.startsWith("<")&&e.operator.startsWith("<")||this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")||l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=n;var i=rG("5v8m5"),o=rG("hhSwF"),a=o.safeRe,s=o.t,l=rG("84iFB"),u=rG("jl9Uf"),c=rG("8cXe9"),p=rG("bswWF");}),rH("bswWF",function(e,t){class r{constructor(e,t){if(t=i(t),e instanceof r){if(!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease)return e;return new r(e.raw,t);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!v(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(1===e.length&&E(e[0])){this.set=[e];break;}}}this.format();}format(){return this.range=this.set.map(e=>e.join(" ").trim()).join("||").trim(),this.range;}toString(){return this.range;}parseRange(e){let t=((this.options.includePrerelease&&m)|(this.options.loose&&g))+":"+e,r=n.get(t);if(r)return r;let i=this.options.loose,s=i?u[c.HYPHENRANGELOOSE]:u[c.HYPHENRANGE];a("hyphen replace",e=e.replace(s,O(this.options.includePrerelease))),a("comparator trim",e=e.replace(u[c.COMPARATORTRIM],p)),a("tilde trim",e=e.replace(u[c.TILDETRIM],d)),a("caret trim",e=e.replace(u[c.CARETTRIM],f));let l=e.split(" ").map(e=>y(e,this.options)).join(" ").split(/\s+/).map(e=>A(e,this.options));i&&(l=l.filter(e=>(a("loose invalid filter",e,this.options),!!e.match(u[c.COMPARATORLOOSE])))),a("range list",l);let h=new Map();for(let e of l.map(e=>new o(e,this.options))){if(v(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let E=[...h.values()];return n.set(t,E),E;}intersects(e,t){if(!(e instanceof r))throw TypeError("a Range is required");return this.set.some(r=>w(r,t)&&e.set.some(e=>w(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 s(e,this.options);}catch(e){return!1;}for(let t=0;t<this.set.length;t++)if(C(this.set[t],e,this.options))return!0;return!1;}}e.exports=r;let n=new(rG("31A6g"))({max:1e3});var i=rG("5v8m5"),o=rG("1bxhC"),a=rG("jl9Uf"),s=rG("8cXe9"),l=rG("hhSwF"),u=l.safeRe,c=l.t,p=l.comparatorTrimReplace,d=l.tildeTrimReplace,f=l.caretTrimReplace,h=rG("iXsaM"),m=h.FLAG_INCLUDE_PRERELEASE,g=h.FLAG_LOOSE;let v=e=>"<0.0.0-0"===e.value,E=e=>""===e.value,w=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(e=>i.intersects(e,t)),i=n.pop();return r;},y=(e,t)=>(a("comp",e,t),a("caret",e=D(e,t)),a("tildes",e=x(e,t)),a("xrange",e=R(e,t)),a("stars",e=I(e,t)),e),b=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(" "),S=(e,t)=>{let r=t.loose?u[c.TILDELOOSE]:u[c.TILDE];return e.replace(r,(t,r,n,i,o)=>{let s;return a("tilde",e,t,r,n,i,o),b(r)?s="":b(n)?s=`>=${r}.0.0 <${+r+1}.0.0-0`:b(i)?s=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:o?(a("replaceTilde pr",o),s=`>=${r}.${n}.${i}-${o} <${r}.${+n+1}.0-0`):s=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",s),s;});},D=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(" "),T=(e,t)=>{a("caret",e,t);let r=t.loose?u[c.CARETLOOSE]:u[c.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(t,r,i,o,s)=>{let l;return a("caret",e,t,r,i,o,s),b(r)?l="":b(i)?l=`>=${r}.0.0${n} <${+r+1}.0.0-0`:b(o)?l="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:s?(a("replaceCaret pr",s),l="0"===r?"0"===i?`>=${r}.${i}.${o}-${s} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}-${s} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o}-${s} <${+r+1}.0.0-0`):(a("no pr"),l="0"===r?"0"===i?`>=${r}.${i}.${o}${n} <${r}.${i}.${+o+1}-0`:`>=${r}.${i}.${o}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${o} <${+r+1}.0.0-0`),a("caret return",l),l;});},R=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map(e=>N(e,t)).join(" ")),N=(e,t)=>{e=e.trim();let r=t.loose?u[c.XRANGELOOSE]:u[c.XRANGE];return e.replace(r,(r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);let u=b(i),c=u||b(o),p=c||b(s);return"="===n&&p&&(n=""),l=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&p?(c&&(o=0),s=0,">"===n?(n=">=",c?(i=+i+1,o=0):o=+o+1,s=0):"<="===n&&(n="<",c?i=+i+1:o=+o+1),"<"===n&&(l="-0"),r=`${n+i}.${o}.${s}${l}`):c?r=`>=${i}.0.0${l} <${+i+1}.0.0-0`:p&&(r=`>=${i}.${o}.0${l} <${i}.${+o+1}.0-0`),a("xRange return",r),r;});},I=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[c.STAR],"")),A=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),O=e=>(t,r,n,i,o,a,s,l,u,c,p,d,f)=>(r=b(n)?"":b(i)?`>=${n}.0.0${e?"-0":""}`:b(o)?`>=${n}.${i}.0${e?"-0":""}`:a?">="+r:`>=${r}${e?"-0":""}`,l=b(u)?"":b(c)?`<${+u+1}.0.0-0`:b(p)?`<${u}.${+c+1}.0-0`:d?`<=${u}.${c}.${p}-${d}`:e?`<${u}.${c}.${+p+1}-0`:"<="+l,`${r} ${l}`.trim()),C=(e,t,r)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let r=0;r<e.length;r++)if(a(e[r].semver),e[r].semver!==o.ANY&&e[r].semver.prerelease.length>0){let n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0;}return!1;}return!0;};}),rH("31A6g",function(e,t){var r=rG("i08Cw");let n=Symbol(),i=Symbol(),o=Symbol(),a=Symbol(),s=Symbol(),l=Symbol(),u=Symbol(),c=Symbol(),p=Symbol(),d=Symbol(),f=()=>1,h=(e,t,r)=>{let n=e[p].get(t);if(n){let t=n.value;if(m(e,t)){if(v(e,n),!e[a])return;}else r&&(e[d]&&(n.value.now=Date.now()),e[c].unshiftNode(n));return t.value;}},m=(e,t)=>{if(!t||!t.maxAge&&!e[s])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[s]&&r>e[s];},g=e=>{if(e[i]>e[n])for(let t=e[c].tail;e[i]>e[n]&&null!==t;){let r=t.prev;v(e,t),t=r;}},v=(e,t)=>{if(t){let r=t.value;e[l]&&e[l](r.key,r.value),e[i]-=r.length,e[p].delete(r.key),e[c].removeNode(t);}};class E{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0;}}let w=(e,t,r,n)=>{let i=r.value;m(e,i)&&(v(e,r),e[a]||(i=void 0)),i&&t.call(n,i.value,i.key,e);};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw TypeError("max must be a non-negative number");this[n]=e.max||1/0;let t=e.length||f;if(this[o]="function"!=typeof t?f:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw TypeError("maxAge must be a number");this[s]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[d]=e.updateAgeOnGet||!1,this.reset();}set max(e){if("number"!=typeof e||e<0)throw TypeError("max must be a non-negative number");this[n]=e||1/0,g(this);}get max(){return this[n];}set allowStale(e){this[a]=!!e;}get allowStale(){return this[a];}set maxAge(e){if("number"!=typeof e)throw TypeError("maxAge must be a non-negative number");this[s]=e,g(this);}get maxAge(){return this[s];}set lengthCalculator(e){"function"!=typeof e&&(e=f),e!==this[o]&&(this[o]=e,this[i]=0,this[c].forEach(e=>{e.length=this[o](e.value,e.key),this[i]+=e.length;})),g(this);}get lengthCalculator(){return this[o];}get length(){return this[i];}get itemCount(){return this[c].length;}rforEach(e,t){t=t||this;for(let r=this[c].tail;null!==r;){let n=r.prev;w(this,e,r,t),r=n;}}forEach(e,t){t=t||this;for(let r=this[c].head;null!==r;){let n=r.next;w(this,e,r,t),r=n;}}keys(){return this[c].toArray().map(e=>e.key);}values(){return this[c].toArray().map(e=>e.value);}reset(){this[l]&&this[c]&&this[c].length&&this[c].forEach(e=>this[l](e.key,e.value)),this[p]=new Map(),this[c]=new r(),this[i]=0;}dump(){return this[c].map(e=>!m(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e);}dumpLru(){return this[c];}set(e,t,r){if((r=r||this[s])&&"number"!=typeof r)throw TypeError("maxAge must be a number");let a=r?Date.now():0,d=this[o](t,e);if(this[p].has(e)){if(d>this[n])return v(this,this[p].get(e)),!1;let o=this[p].get(e).value;return this[l]&&!this[u]&&this[l](e,o.value),o.now=a,o.maxAge=r,o.value=t,this[i]+=d-o.length,o.length=d,this.get(e),g(this),!0;}let f=new E(e,t,d,a,r);return f.length>this[n]?(this[l]&&this[l](e,t),!1):(this[i]+=f.length,this[c].unshift(f),this[p].set(e,this[c].head),g(this),!0);}has(e){return!!this[p].has(e)&&!m(this,this[p].get(e).value);}get(e){return h(this,e,!0);}peek(e){return h(this,e,!1);}pop(){let e=this[c].tail;return e?(v(this,e),e.value):null;}del(e){v(this,this[p].get(e));}load(e){this.reset();let t=Date.now();for(let r=e.length-1;r>=0;r--){let n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{let e=i-t;e>0&&this.set(n.k,n.v,e);}}}prune(){this[p].forEach((e,t)=>h(this,t,!1));}};}),rH("i08Cw",function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r()),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e);});else if(arguments.length>0)for(var n=0,i=arguments.length;i>n;n++)t.push(arguments[n]);return t;}function n(e,t,r,i){if(!(this instanceof n))return new n(e,t,r,i);this.list=i,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,r?(r.prev=this,this.next=r):this.next=null;}e.exports=r,r.Node=n,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw Error("removing node which does not belong to this list");var t=e.next,r=e.prev;return t&&(t.prev=r),r&&(r.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=r),e.list.length--,e.next=null,e.prev=null,e.list=null,t;},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++;}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++;}},r.prototype.push=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.tail=new n(e,this.tail,null,this),this.head||(this.head=this.tail),this.length++;return this.length;},r.prototype.unshift=function(){for(var e,t=0,r=arguments.length;r>t;t++)e=arguments[t],this.head=new n(e,null,this.head,this),this.tail||(this.tail=this.head),this.length++;return this.length;},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e;}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e;}},r.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;null!==r;n++)e.call(t,r.value,n,this),r=r.next;},r.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;null!==r;n--)e.call(t,r.value,n,this),r=r.prev;},r.prototype.get=function(e){for(var t=0,r=this.head;null!==r&&e>t;t++)r=r.next;if(t===e&&null!==r)return r.value;},r.prototype.getReverse=function(e){for(var t=0,r=this.tail;null!==r&&e>t;t++)r=r.prev;if(t===e&&null!==r)return r.value;},r.prototype.map=function(e,t){t=t||this;for(var n=new r(),i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n;},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r(),i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n;},r.prototype.reduce=function(e,t){var r,n=this.head;if(arguments.length>1)r=t;else if(this.head)n=this.head.next,r=this.head.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r;},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else if(this.tail)n=this.tail.prev,r=this.tail.value;else throw TypeError("Reduce of empty list with no initial value");for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r;},r.prototype.toArray=function(){for(var e=Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e;},r.prototype.toArrayReverse=function(){for(var e=Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e;},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&t>i;i++,o=o.next)n.push(o.value);return n;},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r();if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n;},r.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;null!==o&&e>i;i++)o=o.next;for(var a=[],i=0;o&&i<t;i++)a.push(o.value),o=this.removeNode(o);null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var i=0;i<r.length;i++)o=function(e,t,r){var i=t===e.head?new n(r,null,t,e):new n(r,t,t.next,e);return null===i.next&&(e.tail=i),null===i.prev&&(e.head=i),e.length++,i;}(this,o,r[i]);return a;},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{rG("5MZUR")(r);}catch(e){}}),rH("5MZUR",function(e,t){e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value;};};}),rH("42oIR",function(e,t){var r=rG("bswWF");e.exports=(e,t,n)=>{try{t=new r(t,n);}catch(e){return!1;}return t.test(e);};}),rH("4zfp3",function(e,t){var r=rG("bswWF");e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),rH("ga5uZ",function(e,t){var r=rG("8cXe9"),n=rG("bswWF");e.exports=(e,t,i)=>{let o=null,a=null,s=null;try{s=new n(t,i);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||-1===a.compare(e))&&(a=new r(o=e,i));}),o;};}),rH("lPGVL",function(e,t){var r=rG("8cXe9"),n=rG("bswWF");e.exports=(e,t,i)=>{let o=null,a=null,s=null;try{s=new n(t,i);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||1===a.compare(e))&&(a=new r(o=e,i));}),o;};}),rH("1I8AA",function(e,t){var r=rG("8cXe9"),n=rG("bswWF"),i=rG("cOpcP");e.exports=(e,t)=>{e=new n(e,t);let o=new r("0.0.0");if(e.test(o)||(o=new r("0.0.0-0"),e.test(o)))return o;o=null;for(let t=0;t<e.set.length;++t){let n=e.set[t],a=null;n.forEach(e=>{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!a||i(t,a))&&(a=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),a&&(!o||i(o,a))&&(o=a);}return o&&e.test(o)?o:null;};}),rH("dBtft",function(e,t){var r=rG("bswWF");e.exports=(e,t)=>{try{return new r(e,t).range||"*";}catch(e){return null;}};}),rH("83Sp2",function(e,t){var r=rG("8cXe9"),n=rG("1bxhC");let{ANY:i}=n;var o=rG("bswWF"),a=rG("42oIR"),s=rG("cOpcP"),l=rG("58P10"),u=rG("hlfY9"),c=rG("3XWvL");e.exports=(e,t,p,d)=>{let f,h,m,g,v;switch(e=new r(e,d),t=new o(t,d),p){case">":f=s,h=u,m=l,g=">",v=">=";break;case"<":f=l,h=c,m=s,g="<",v="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(a(e,t,d))return!1;for(let r=0;r<t.set.length;++r){let o=t.set[r],a=null,s=null;if(o.forEach(e=>{e.semver===i&&(e=new n(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e);}),a.operator===g||a.operator===v||(!s.operator||s.operator===g)&&h(e,s.semver)||s.operator===v&&m(e,s.semver))return!1;}return!0;};}),rH("eK4my",function(e,t){var r=rG("83Sp2");e.exports=(e,t,n)=>r(e,t,">",n);}),rH("eNXBI",function(e,t){var r=rG("83Sp2");e.exports=(e,t,n)=>r(e,t,"<",n);}),rH("kHzUo",function(e,t){var r=rG("bswWF");e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n));}),rH("1x2XZ",function(e,t){var r=rG("42oIR"),n=rG("jDqfd");e.exports=(e,t,i)=>{let o=[],a=null,s=null,l=e.sort((e,t)=>n(e,t,i));for(let e of l)r(e,t,i)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);let u=[];for(let[e,t]of o)e===t?u.push(e):t||e!==l[0]?t?e===l[0]?u.push("<="+t):u.push(`${e} - ${t}`):u.push(">="+e):u.push("*");let c=u.join(" || "),p="string"==typeof t.raw?t.raw:t+"";return c.length<p.length?c:t;};}),rH("hTYir",function(e,t){var r=rG("bswWF"),n=rG("1bxhC");let{ANY:i}=n;var o=rG("42oIR"),a=rG("jDqfd");let s=[new n(">=0.0.0-0")],l=[new n(">=0.0.0")],u=(e,t,r)=>{let n,u,d,f,h,m,g;if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=r.includePrerelease?s:l;}if(1===t.length&&t[0].semver===i){if(r.includePrerelease)return!0;t=l;}let v=new Set();for(let t of e)">"===t.operator||">="===t.operator?n=c(n,t,r):"<"===t.operator||"<="===t.operator?u=p(u,t,r):v.add(t.semver);if(v.size>1||n&&u&&((d=a(n.semver,u.semver,r))>0||0===d&&(">="!==n.operator||"<="!==u.operator)))return null;for(let e of v){if(n&&!o(e,n+"",r)||u&&!o(e,u+"",r))return null;for(let n of t)if(!o(e,n+"",r))return!1;return!0;}let E=!!u&&!r.includePrerelease&&!!u.semver.prerelease.length&&u.semver,w=!!n&&!r.includePrerelease&&!!n.semver.prerelease.length&&n.semver;for(let e of(E&&1===E.prerelease.length&&"<"===u.operator&&0===E.prerelease[0]&&(E=!1),t)){if(g=g||">"===e.operator||">="===e.operator,m=m||"<"===e.operator||"<="===e.operator,n){if(w&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===w.major&&e.semver.minor===w.minor&&e.semver.patch===w.patch&&(w=!1),">"===e.operator||">="===e.operator){if((f=c(n,e,r))===e&&f!==n)return!1;}else if(">="===n.operator&&!o(n.semver,e+"",r))return!1;}if(u){if(E&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===E.major&&e.semver.minor===E.minor&&e.semver.patch===E.patch&&(E=!1),"<"===e.operator||"<="===e.operator){if((h=p(u,e,r))===e&&h!==u)return!1;}else if("<="===u.operator&&!o(u.semver,e+"",r))return!1;}if(!e.operator&&(u||n)&&0!==d)return!1;}return(!n||!m||!!u||0===d)&&(!u||!g||!!n||0===d)&&!w&&!E;},c=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n>0?e:n<0?t:">"===t.operator&&">="===e.operator?t:e;},p=(e,t,r)=>{if(!e)return t;let n=a(e.semver,t.semver,r);return n<0?e:n>0?t:"<"===t.operator&&"<="===e.operator?t:e;};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(let r of e.set){for(let e of t.set){let t=u(r,e,n);if(i=i||null!==t,t)continue e;}if(i)return!1;}return!0;};}),rH("8CJZb",function(e,t){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),rH("6t4SD",function(e,t){async function r(e){try{return await(0,rx.promises).access(e),!0;}catch{return!1;}}c(e.exports,"pathExists",()=>r);}),rH("eAXk4",function(e,t){var r,n,i,o,a,s,l,u,d,f,h,m,g;function v(e,t){return Object.keys(t).forEach(r=>{"default"===r||"__esModule"===r||e.hasOwnProperty(r)||Object.defineProperty(e,r,{enumerable:!0,get:()=>t[r]});}),e;}function E(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}function w(e,t=!0){return t?(0,iE.basename)(e):(0,iE.basename)(e,(0,iE.extname)(e));}function y(e){return(0,iE.normalize)(e).replace(RegExp((0,r.default)(iE.sep)+"$"),"");}function b(e,t=".exe",r=""){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function x(e,t){let r=(0,iE.extname)(e),n=`${t}${(0,iE.basename)(e,r)}${r}`;return(0,iE.join)((0,iE.dirname)(e),n);}function S(e,t){let r=(0,iE.extname)(e),n=`${(0,iE.basename)(e,r)}${t}${r}`;return(0,iE.join)((0,iE.dirname)(e),n);}function D(e,t=".cmd",r=".sh"){return"win32"===process.platform?`${e}${t}`:`${e}${r}`;}function T(e){return"win32"===process.platform?e:"./"+e;}function R(e){let t=(0,iE.extname)(e).length;return e.slice(0,-t);}function N(e,t){return p(n)(e,t);}function I(e,t){let r=(0,iE.relative)(t,e);return!(!r||".."===r||r.startsWith(".."+iE.sep)||r===(0,iE.resolve)(e));}c(e.exports,"addExeExt",()=>b),c(e.exports,"addShExt",()=>D),c(e.exports,"addShRelativePrefix",()=>T),c(e.exports,"dirname",()=>iE.dirname),c(e.exports,"join",()=>iE.join),r=rG("f44Uw"),n=rG("fBJE3"),i={},E(o={},"name",()=>w),E(a={},"normalizeTrim",()=>y),E(s={},"addExeExt",()=>b),E(l={},"addNamePrefix",()=>x),E(u={},"addNameSuffix",()=>S),E(d={},"addShExt",()=>D),E(f={},"addShRelativePrefix",()=>T),E(h={},"removeExt",()=>R),E(m={},"replaceExt",()=>N),E(g={},"isPathInside",()=>I),v(i,o),v(i,a),v(i,s),v(i,l),v(i,u),v(i,d),v(i,f),v(i,h),v(i,m),v(i,g);}),rH("f44Uw",function(e,t){function r(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}c(e.exports,"default",()=>r);}),rH("fBJE3",function(e,t){e.exports=function(e,t){if("string"!=typeof e||0===e.length)return e;var r,n=iE.basename(e,iE.extname(e))+t,i=iE.join(iE.dirname(e),n);return(r=e.slice(0,2))==="."+iE.sep||"./"===r?"."+iE.sep+i:i;};}),rH("zdagz",function(e,t){var r,n,i,o;function a(e){return o(this,void 0,void 0,function*(){if(p.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield p.rm(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300});}catch(e){throw Error("File was unable to be removed "+e);}});}function s(e){return o(this,void 0,void 0,function*(){ry.ok(e,"a path argument must be provided"),yield p.mkdir(e,{recursive:!0});});}function l(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let t=[];if(p.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(c.delimiter))e&&t.push(e);if(p.isRooted(e)){let r=yield p.tryGetExecutablePath(e,t);return r?[r]:[];}if(e.includes(c.sep))return[];let r=[];if(process.env.PATH)for(let e of process.env.PATH.split(c.delimiter))e&&r.push(e);let n=[];for(let i of r){let r=yield p.tryGetExecutablePath(c.join(i,e),t);r&&n.push(r);}return n;});}function u(e,t,r){return o(this,void 0,void 0,function*(){if((yield p.lstat(e)).isSymbolicLink()){try{yield p.lstat(t),yield p.unlink(t);}catch(e){"EPERM"===e.code&&(yield p.chmod(t,"0666"),yield p.unlink(t));}let r=yield p.readlink(e);yield p.symlink(r,t,p.IS_WINDOWS?"junction":null);}else(!(yield p.exists(t))||r)&&(yield p.copyFile(e,t));});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.findInPath=e.exports.which=e.exports.mkdirP=e.exports.rmRF=e.exports.mv=e.exports.cp=void 0;let c=i(iE),p=i(rG("fwMQK"));e.exports.cp=function(e,t,r={}){return o(this,void 0,void 0,function*(){let{force:n,recursive:i,copySourceDirectory:a}=function(e){let t=null==e.force||e.force;return{force:t,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(r),l=(yield p.exists(t))?yield p.stat(t):null;if(l&&l.isFile()&&!n)return;let d=l&&l.isDirectory()&&a?c.join(t,c.basename(e)):t;if(!(yield p.exists(e)))throw Error("no such file or directory: "+e);if((yield p.stat(e)).isDirectory()){if(i)yield function e(t,r,n,i){return o(this,void 0,void 0,function*(){if(!(n>=255)){for(let o of(n++,yield s(r),yield p.readdir(t))){let a=`${t}/${o}`,s=`${r}/${o}`;(yield p.lstat(a)).isDirectory()?yield e(a,s,n,i):yield u(a,s,i);}yield p.chmod(r,(yield p.stat(t)).mode);}});}(e,d,0,n);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===c.relative(e,d))throw Error(`'${d}' and '${e}' are the same file`);yield u(e,d,n);}});},e.exports.mv=function(e,t,r={}){return o(this,void 0,void 0,function*(){if(yield p.exists(t)){let n=!0;if((yield p.isDirectory(t))&&(t=c.join(t,c.basename(e)),n=yield p.exists(t)),n){if(null==r.force||r.force)yield a(t);else throw Error("Destination already exists");}}yield s(c.dirname(t)),yield p.rename(e,t);});},e.exports.rmRF=a,e.exports.mkdirP=s,e.exports.which=function e(t,r){return o(this,void 0,void 0,function*(){if(!t)throw Error("parameter 'tool' is required");if(r){let r=yield e(t,!1);if(!r){if(p.IS_WINDOWS)throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`);throw Error(`Unable to locate executable file: ${t}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`);}return r;}let n=yield l(t);return n&&n.length>0?n[0]:"";});},e.exports.findInPath=l;}),rH("fwMQK",function(e,t){var r,n,i,o,a;function s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getCmdPath=e.exports.tryGetExecutablePath=e.exports.isRooted=e.exports.isDirectory=e.exports.exists=e.exports.READONLY=e.exports.UV_FS_O_EXLOCK=e.exports.IS_WINDOWS=e.exports.unlink=e.exports.symlink=e.exports.stat=e.exports.rmdir=e.exports.rm=e.exports.rename=e.exports.readlink=e.exports.readdir=e.exports.open=e.exports.mkdir=e.exports.lstat=e.exports.copyFile=e.exports.chmod=void 0;let l=i(iw),u=i(iE);a=l.promises,e.exports.chmod=a.chmod,e.exports.copyFile=a.copyFile,e.exports.lstat=a.lstat,e.exports.mkdir=a.mkdir,e.exports.open=a.open,e.exports.readdir=a.readdir,e.exports.readlink=a.readlink,e.exports.rename=a.rename,e.exports.rm=a.rm,e.exports.rmdir=a.rmdir,e.exports.stat=a.stat,e.exports.symlink=a.symlink,e.exports.unlink=a.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=l.constants.O_RDONLY,e.exports.exists=function(t){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(t);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(t,r=!1){return o(this,void 0,void 0,function*(){return(r?yield e.exports.stat(t):yield e.exports.lstat(t)).isDirectory();});},e.exports.isRooted=function(t){var r;if(r=(r=t)||"",!(t=e.exports.IS_WINDOWS?(r=r.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):r.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/");},e.exports.tryGetExecutablePath=function(t,r){return o(this,void 0,void 0,function*(){let n;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){let e=u.extname(t).toUpperCase();if(r.some(t=>t.toUpperCase()===e))return t;}else if(s(n))return t;}let i=t;for(let o of r){t=i+o,n=void 0;try{n=yield e.exports.stat(t);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${t}': ${e}`);}if(n&&n.isFile()){if(e.exports.IS_WINDOWS){try{let r=u.dirname(t),n=u.basename(t).toUpperCase();for(let i of yield e.exports.readdir(r))if(n===i.toUpperCase()){t=u.join(r,i);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${t}': ${e}`);}return t;}if(s(n))return t;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),rH("gn8Si",function(e,t){var r,n,i,o,a;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let s=i(rG("0306Y"));a=rG("1o3Gj"),e.exports._findMatch=function(t,r,n,i){return o(this,void 0,void 0,function*(){let o,l,u;let c=iv.platform();for(let o of n){let n=o.version;if(a.debug(`check ${n} satisfies ${t}`),s.satisfies(n,t)&&(!r||o.stable===r)&&(u=o.files.find(t=>{a.debug(`${t.arch}===${i} && ${t.platform}===${c}`);let r=t.arch===i&&t.platform===c;if(r&&t.platform_version){let n=e.exports._getOsVersion();r=n===t.platform_version||s.satisfies(n,t.platform_version);}return r;}))){a.debug("matched "+o.version),l=o;break;}}return l&&u&&((o=Object.assign({},l)).files=[u]),o;});},e.exports._getOsVersion=function(){let t=iv.platform(),r="";if("darwin"===t)r=rS.execSync("sw_vers -productVersion").toString();else if("linux"===t){let t=e.exports._readLinuxVersionFile();if(t)for(let e of t.split("\n")){let t=e.split("=");if(2===t.length&&("VERSION_ID"===t[0].trim()||"DISTRIB_RELEASE"===t[0].trim())){r=t[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return r;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",t="/etc/os-release",r="";return iw.existsSync(e)?r=iw.readFileSync(e).toString():iw.existsSync(t)&&(r=iw.readFileSync(t).toString()),r;};}),rH("0306Y",function(e,t){function r(e){A[e]=O++;}function n(e){for(var t=0;t<_.length;t++){var r=_[t][0],n=_[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}");}return e;}function i(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o)return e;if("string"!=typeof e||e.length>S||!(t.loose?N[A.LOOSE]:N[A.FULL]).test(e))return null;try{return new o(e,t);}catch(e){return null;}}function o(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof o){if(e.loose===t.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>S)throw TypeError("version is longer than "+S+" characters");if(!(this instanceof o))return new o(e,t);x("SemVer",e,t),this.options=t,this.loose=!!t.loose;var r=e.trim().match(t.loose?N[A.LOOSE]:N[A.FULL]);if(!r)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>D||this.major<0)throw TypeError("Invalid major version");if(this.minor>D||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>D||this.patch<0)throw TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<D)return t;}return e;}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format();}function a(e,t){var r=$.test(e),n=$.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:t>e?-1:1;}function s(e,t,r){return new o(e,r).compare(new o(t,r));}function l(e,t,r){return s(e,t,r)>0;}function u(e,t,r){return 0>s(e,t,r);}function c(e,t,r){return 0===s(e,t,r);}function p(e,t,r){return 0!==s(e,t,r);}function d(e,t,r){return s(e,t,r)>=0;}function f(e,t,r){return 0>=s(e,t,r);}function h(e,t,r,n){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return c(e,r,n);case"!=":return p(e,r,n);case">":return l(e,r,n);case">=":return d(e,r,n);case"<":return u(e,r,n);case"<=":return f(e,r,n);default:throw TypeError("Invalid operator: "+t);}}function m(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof m){if(!!t.loose===e.loose)return e;e=e.value;}if(!(this instanceof m))return new m(e,t);e=e.trim().split(/\s+/).join(" "),x("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===P?this.value="":this.value=this.operator+this.semver.version,x("comp",this);}function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g)return!!t.loose===e.loose&&!!t.includePrerelease===e.includePrerelease?e:new g(e.raw,t);if(e instanceof m)return new g(e.value,t);if(!(this instanceof g))return new g(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim());},this).filter(function(e){return e.length;}),!this.set.length)throw TypeError("Invalid SemVer Range: "+this.raw);this.format();}function v(e,t){for(var r=!0,n=e.slice(),i=n.pop();r&&n.length;)r=n.every(function(e){return i.intersects(e,t);}),i=n.pop();return r;}function E(e){return!e||"x"===e.toLowerCase()||"*"===e;}function w(e,t,r,n,i,o,a,s,l,u,c,p,d){return((t=E(r)?"":E(n)?">="+r+".0.0":E(i)?">="+r+"."+n+".0":">="+t)+" "+(s=E(l)?"":E(u)?"<"+(+l+1)+".0.0":E(c)?"<"+l+"."+(+u+1)+".0":p?"<="+l+"."+u+"."+c+"-"+p:"<="+s)).trim();}function y(e,t,r){try{t=new g(t,r);}catch(e){return!1;}return t.test(e);}function b(e,t,r,n){switch(e=new o(e,n),t=new g(t,n),r){case">":i=l,a=f,s=u,c=">",p=">=";break;case"<":i=u,a=d,s=l,c="<",p="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(y(e,t,n))return!1;for(var i,a,s,c,p,h=0;h<t.set.length;++h){var v=t.set[h],E=null,w=null;if(v.forEach(function(e){e.semver===P&&(e=new m(">=0.0.0")),E=E||e,w=w||e,i(e.semver,E.semver,n)?E=e:s(e.semver,w.semver,n)&&(w=e);}),E.operator===c||E.operator===p||(!w.operator||w.operator===c)&&a(e,w.semver)||w.operator===p&&s(e,w.semver))return!1;}return!0;}t=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?x=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:x=function(){},t.SEMVER_SPEC_VERSION="2.0.0",S=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,T=S-6,R=t.re=[],N=t.safeRe=[],I=t.src=[],A=t.tokens={},O=0,_=[["\\s",1],["\\d",S],[C="[a-zA-Z0-9-]",T]],r("NUMERICIDENTIFIER"),I[A.NUMERICIDENTIFIER]="0|[1-9]\\d*",r("NUMERICIDENTIFIERLOOSE"),I[A.NUMERICIDENTIFIERLOOSE]="\\d+",r("NONNUMERICIDENTIFIER"),I[A.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+C+"*",r("MAINVERSION"),I[A.MAINVERSION]="("+I[A.NUMERICIDENTIFIER]+")\\.("+I[A.NUMERICIDENTIFIER]+")\\.("+I[A.NUMERICIDENTIFIER]+")",r("MAINVERSIONLOOSE"),I[A.MAINVERSIONLOOSE]="("+I[A.NUMERICIDENTIFIERLOOSE]+")\\.("+I[A.NUMERICIDENTIFIERLOOSE]+")\\.("+I[A.NUMERICIDENTIFIERLOOSE]+")",r("PRERELEASEIDENTIFIER"),I[A.PRERELEASEIDENTIFIER]="(?:"+I[A.NUMERICIDENTIFIER]+"|"+I[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASEIDENTIFIERLOOSE"),I[A.PRERELEASEIDENTIFIERLOOSE]="(?:"+I[A.NUMERICIDENTIFIERLOOSE]+"|"+I[A.NONNUMERICIDENTIFIER]+")",r("PRERELEASE"),I[A.PRERELEASE]="(?:-("+I[A.PRERELEASEIDENTIFIER]+"(?:\\."+I[A.PRERELEASEIDENTIFIER]+")*))",r("PRERELEASELOOSE"),I[A.PRERELEASELOOSE]="(?:-?("+I[A.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+I[A.PRERELEASEIDENTIFIERLOOSE]+")*))",r("BUILDIDENTIFIER"),I[A.BUILDIDENTIFIER]=C+"+",r("BUILD"),I[A.BUILD]="(?:\\+("+I[A.BUILDIDENTIFIER]+"(?:\\."+I[A.BUILDIDENTIFIER]+")*))",r("FULL"),r("FULLPLAIN"),I[A.FULLPLAIN]="v?"+I[A.MAINVERSION]+I[A.PRERELEASE]+"?"+I[A.BUILD]+"?",I[A.FULL]="^"+I[A.FULLPLAIN]+"$",r("LOOSEPLAIN"),I[A.LOOSEPLAIN]="[v=\\s]*"+I[A.MAINVERSIONLOOSE]+I[A.PRERELEASELOOSE]+"?"+I[A.BUILD]+"?",r("LOOSE"),I[A.LOOSE]="^"+I[A.LOOSEPLAIN]+"$",r("GTLT"),I[A.GTLT]="((?:<|>)?=?)",r("XRANGEIDENTIFIERLOOSE"),I[A.XRANGEIDENTIFIERLOOSE]=I[A.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",r("XRANGEIDENTIFIER"),I[A.XRANGEIDENTIFIER]=I[A.NUMERICIDENTIFIER]+"|x|X|\\*",r("XRANGEPLAIN"),I[A.XRANGEPLAIN]="[v=\\s]*("+I[A.XRANGEIDENTIFIER]+")(?:\\.("+I[A.XRANGEIDENTIFIER]+")(?:\\.("+I[A.XRANGEIDENTIFIER]+")(?:"+I[A.PRERELEASE]+")?"+I[A.BUILD]+"?)?)?",r("XRANGEPLAINLOOSE"),I[A.XRANGEPLAINLOOSE]="[v=\\s]*("+I[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+I[A.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+I[A.XRANGEIDENTIFIERLOOSE]+")(?:"+I[A.PRERELEASELOOSE]+")?"+I[A.BUILD]+"?)?)?",r("XRANGE"),I[A.XRANGE]="^"+I[A.GTLT]+"\\s*"+I[A.XRANGEPLAIN]+"$",r("XRANGELOOSE"),I[A.XRANGELOOSE]="^"+I[A.GTLT]+"\\s*"+I[A.XRANGEPLAINLOOSE]+"$",r("COERCE"),I[A.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",r("COERCERTL"),R[A.COERCERTL]=RegExp(I[A.COERCE],"g"),N[A.COERCERTL]=RegExp(n(I[A.COERCE]),"g"),r("LONETILDE"),I[A.LONETILDE]="(?:~>?)",r("TILDETRIM"),I[A.TILDETRIM]="(\\s*)"+I[A.LONETILDE]+"\\s+",R[A.TILDETRIM]=RegExp(I[A.TILDETRIM],"g"),N[A.TILDETRIM]=RegExp(n(I[A.TILDETRIM]),"g"),r("TILDE"),I[A.TILDE]="^"+I[A.LONETILDE]+I[A.XRANGEPLAIN]+"$",r("TILDELOOSE"),I[A.TILDELOOSE]="^"+I[A.LONETILDE]+I[A.XRANGEPLAINLOOSE]+"$",r("LONECARET"),I[A.LONECARET]="(?:\\^)",r("CARETTRIM"),I[A.CARETTRIM]="(\\s*)"+I[A.LONECARET]+"\\s+",R[A.CARETTRIM]=RegExp(I[A.CARETTRIM],"g"),N[A.CARETTRIM]=RegExp(n(I[A.CARETTRIM]),"g"),r("CARET"),I[A.CARET]="^"+I[A.LONECARET]+I[A.XRANGEPLAIN]+"$",r("CARETLOOSE"),I[A.CARETLOOSE]="^"+I[A.LONECARET]+I[A.XRANGEPLAINLOOSE]+"$",r("COMPARATORLOOSE"),I[A.COMPARATORLOOSE]="^"+I[A.GTLT]+"\\s*("+I[A.LOOSEPLAIN]+")$|^$",r("COMPARATOR"),I[A.COMPARATOR]="^"+I[A.GTLT]+"\\s*("+I[A.FULLPLAIN]+")$|^$",r("COMPARATORTRIM"),I[A.COMPARATORTRIM]="(\\s*)"+I[A.GTLT]+"\\s*("+I[A.LOOSEPLAIN]+"|"+I[A.XRANGEPLAIN]+")",R[A.COMPARATORTRIM]=RegExp(I[A.COMPARATORTRIM],"g"),N[A.COMPARATORTRIM]=RegExp(n(I[A.COMPARATORTRIM]),"g"),L="$1$2$3",r("HYPHENRANGE"),I[A.HYPHENRANGE]="^\\s*("+I[A.XRANGEPLAIN]+")\\s+-\\s+("+I[A.XRANGEPLAIN]+")\\s*$",r("HYPHENRANGELOOSE"),I[A.HYPHENRANGELOOSE]="^\\s*("+I[A.XRANGEPLAINLOOSE]+")\\s+-\\s+("+I[A.XRANGEPLAINLOOSE]+")\\s*$",r("STAR"),I[A.STAR]="(<|>)?=?\\s*\\*";for(var x,S,D,T,R,N,I,A,O,C,_,L,$,P,k=0;k<O;k++)x(k,I[k]),R[k]||(R[k]=new RegExp(I[k]),N[k]=new RegExp(n(I[k])));t.parse=i,t.valid=function(e,t){var r=i(e,t);return r?r.version:null;},t.clean=function(e,t){var r=i(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null;},t.SemVer=o,o.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version;},o.prototype.toString=function(){return this.version;},o.prototype.compare=function(e){return x("SemVer.compare",this.version,this.options,e),e instanceof o||(e=new o(e,this.options)),this.compareMain(e)||this.comparePre(e);},o.prototype.compareMain=function(e){return e instanceof o||(e=new o(e,this.options)),a(this.major,e.major)||a(this.minor,e.minor)||a(this.patch,e.patch);},o.prototype.comparePre=function(e){if(e instanceof o||(e=new o(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],n=e.prerelease[t];if(x("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return a(r,n);}while(++t);},o.prototype.compareBuild=function(e){e instanceof o||(e=new o(e,this.options));var t=0;do{var r=this.build[t],n=e.build[t];if(x("prerelease compare",t,r,n),void 0===r&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===r)return-1;else if(r===n)continue;else return a(r,n);}while(++t);},o.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var r=this.prerelease.length;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0);}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new o(e,r).inc(t,n).version;}catch(e){return null;}},t.diff=function(e,t){if(c(e,t))return null;var r=i(e),n=i(t),o="";if(r.prerelease.length||n.prerelease.length){o="pre";var a="prerelease";}for(var s in r)if(("major"===s||"minor"===s||"patch"===s)&&r[s]!==n[s])return o+s;return a;},t.compareIdentifiers=a,$=/^[0-9]+$/,t.rcompareIdentifiers=function(e,t){return a(t,e);},t.major=function(e,t){return new o(e,t).major;},t.minor=function(e,t){return new o(e,t).minor;},t.patch=function(e,t){return new o(e,t).patch;},t.compare=s,t.compareLoose=function(e,t){return s(e,t,!0);},t.compareBuild=function(e,t,r){var n=new o(e,r),i=new o(t,r);return n.compare(i)||n.compareBuild(i);},t.rcompare=function(e,t,r){return s(t,e,r);},t.sort=function(e,r){return e.sort(function(e,n){return t.compareBuild(e,n,r);});},t.rsort=function(e,r){return e.sort(function(e,n){return t.compareBuild(n,e,r);});},t.gt=l,t.lt=u,t.eq=c,t.neq=p,t.gte=d,t.lte=f,t.cmp=h,t.Comparator=m,P={},m.prototype.parse=function(e){var t=this.options.loose?N[A.COMPARATORLOOSE]:N[A.COMPARATOR],r=e.match(t);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new o(r[2],this.options.loose):this.semver=P;},m.prototype.toString=function(){return this.value;},m.prototype.test=function(e){if(x("Comparator.test",e,this.options.loose),this.semver===P||e===P)return!0;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}return h(e,this.operator,this.semver,this.options);},m.prototype.intersects=function(e,t){if(!(e instanceof m))throw TypeError("a Comparator is required");if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(r=new g(e.value,t),y(this.value,r,t));if(""===e.operator)return""===e.value||(r=new g(this.value,t),y(e.semver,r,t));var r,n=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),i=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,a=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=h(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=h(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||i||o&&a||s||l;},t.Range=g,g.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},g.prototype.toString=function(){return this.range;},g.prototype.parseRange=function(e){var t=this.options.loose,r=t?N[A.HYPHENRANGELOOSE]:N[A.HYPHENRANGE];e=e.replace(r,w),x("hyphen replace",e),e=e.replace(N[A.COMPARATORTRIM],L),x("comparator trim",e,N[A.COMPARATORTRIM]),e=(e=(e=e.replace(N[A.TILDETRIM],"$1~")).replace(N[A.CARETTRIM],"$1^")).split(/\s+/).join(" ");var n=t?N[A.COMPARATORLOOSE]:N[A.COMPARATOR],i=e.split(" ").map(function(e){var t,r,n,i,o,a,s,l,u;return t=e,r=this.options,x("comp",t,r),n=t,i=r,t=n.trim().split(/\s+/).map(function(e){var t,r,n;return x("caret",t=e,r=i),n=r.loose?N[A.CARETLOOSE]:N[A.CARET],t.replace(n,function(e,r,n,i,o){var a;return x("caret",t,e,r,n,i,o),E(r)?a="":E(n)?a=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?a="0"===r?">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":">="+r+"."+n+".0 <"+(+r+1)+".0.0":o?(x("replaceCaret pr",o),a="0"===r?"0"===n?">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+"-"+o+" <"+(+r+1)+".0.0"):(x("no pr"),a="0"===r?"0"===n?">="+r+"."+n+"."+i+" <"+r+"."+n+"."+(+i+1):">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0":">="+r+"."+n+"."+i+" <"+(+r+1)+".0.0"),x("caret return",a),a;});}).join(" "),x("caret",t),o=t,a=r,t=o.trim().split(/\s+/).map(function(e){var t,r;return t=e,r=a.loose?N[A.TILDELOOSE]:N[A.TILDE],t.replace(r,function(e,r,n,i,o){var a;return x("tilde",t,e,r,n,i,o),E(r)?a="":E(n)?a=">="+r+".0.0 <"+(+r+1)+".0.0":E(i)?a=">="+r+"."+n+".0 <"+r+"."+(+n+1)+".0":o?(x("replaceTilde pr",o),a=">="+r+"."+n+"."+i+"-"+o+" <"+r+"."+(+n+1)+".0"):a=">="+r+"."+n+"."+i+" <"+r+"."+(+n+1)+".0",x("tilde return",a),a;});}).join(" "),x("tildes",t),x("replaceXRanges",s=t,l=r),t=s.split(/\s+/).map(function(e){var t,r,n;return t=e,r=l,t=t.trim(),n=r.loose?N[A.XRANGELOOSE]:N[A.XRANGE],t.replace(n,function(e,n,i,o,a,s){x("xRange",t,e,n,i,o,a,s);var l=E(i),u=l||E(o),c=u||E(a);return"="===n&&c&&(n=""),s=r.includePrerelease?"-0":"",l?e=">"===n||"<"===n?"<0.0.0-0":"*":n&&c?(u&&(o=0),a=0,">"===n?(n=">=",u?(i=+i+1,o=0):o=+o+1,a=0):"<="===n&&(n="<",u?i=+i+1:o=+o+1),e=n+i+"."+o+"."+a+s):u?e=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:c&&(e=">="+i+"."+o+".0"+s+" <"+i+"."+(+o+1)+".0"+s),x("xRange return",e),e;});}).join(" "),x("xrange",t),x("replaceStars",u=t,r),t=u.trim().replace(N[A.STAR],""),x("stars",t),t;},this).join(" ").split(/\s+/);return this.options.loose&&(i=i.filter(function(e){return!!e.match(n);})),i=i.map(function(e){return new m(e,this.options);},this);},g.prototype.intersects=function(e,t){if(!(e instanceof g))throw TypeError("a Range is required");return this.set.some(function(r){return v(r,t)&&e.set.some(function(e){return v(e,t)&&r.every(function(r){return e.every(function(e){return r.intersects(e,t);});});});});},t.toComparators=function(e,t){return new g(e,t).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},g.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new o(e,this.options);}catch(e){return!1;}for(var t=0;t<this.set.length;t++)if(function(e,t,r){for(var n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(n=0;n<e.length;n++)if(x(e[n].semver),e[n].semver!==P&&e[n].semver.prerelease.length>0){var i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0;}return!1;}return!0;}(this.set[t],e,this.options))return!0;return!1;},t.satisfies=y,t.maxSatisfying=function(e,t,r){var n=null,i=null;try{var a=new g(t,r);}catch(e){return null;}return e.forEach(function(e){a.test(e)&&(!n||-1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minSatisfying=function(e,t,r){var n=null,i=null;try{var a=new g(t,r);}catch(e){return null;}return e.forEach(function(e){a.test(e)&&(!n||1===i.compare(e))&&(i=new o(n=e,r));}),n;},t.minVersion=function(e,t){e=new g(e,t);var r=new o("0.0.0");if(e.test(r)||(r=new o("0.0.0-0"),e.test(r)))return r;r=null;for(var n=0;n<e.set.length;++n)e.set[n].forEach(function(e){var t=new o(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!r||l(r,t))&&(r=t);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return r&&e.test(r)?r:null;},t.validRange=function(e,t){try{return new g(e,t).range||"*";}catch(e){return null;}},t.ltr=function(e,t,r){return b(e,t,"<",r);},t.gtr=function(e,t,r){return b(e,t,">",r);},t.outside=b,t.prerelease=function(e,t){var r=i(e,t);return r&&r.prerelease.length?r.prerelease:null;},t.intersects=function(e,t,r){return e=new g(e,r),t=new g(t,r),e.intersects(t);},t.coerce=function(e,t){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var r,n=null;if((t=t||{}).rtl){for(;(r=N[A.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),N[A.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;N[A.COERCERTL].lastIndex=-1;}else n=e.match(N[A.COERCE]);return null===n?null:i(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t);};}),rH("GX8zo",function(e,t){var r=rG("7qQbq"),n=rG("c22IK");e.exports=function(e,t,i){var o=t&&i||0;"string"==typeof e&&(t="binary"===e?Array(16):null,e=null);var a=(e=e||{}).random||(e.rng||r)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,t)for(var s=0;s<16;++s)t[o+s]=a[s];return t||n(a);};}),rH("7qQbq",function(e,t){e.exports=function(){return iy.randomBytes(16);};}),rH("c22IK",function(e,t){for(var r=[],n=0;n<256;++n)r[n]=(n+256).toString(16).substr(1);e.exports=function(e,t){var n=t||0;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("");};}),rH("bHzmH",function(e,t){var r,n,i,o;function a(e,t,r){return o(this,void 0,void 0,function*(){let n=s.argStringToArray(e);if(0===n.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let i=n[0];return t=n.slice(1).concat(t||[]),new s.ToolRunner(i,t,r).exec();});}r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=i(rG("iYbsa"));e.exports.exec=a,e.exports.getExecOutput=function(e,t,r){var n,i;return o(this,void 0,void 0,function*(){let o="",s="",l=new rD.StringDecoder("utf8"),u=new rD.StringDecoder("utf8"),c=null===(n=null==r?void 0:r.listeners)||void 0===n?void 0:n.stdout,p=null===(i=null==r?void 0:r.listeners)||void 0===i?void 0:i.stderr,d=Object.assign(Object.assign({},null==r?void 0:r.listeners),{stdout(e){o+=l.write(e),c&&c(e);},stderr(e){s+=u.write(e),p&&p(e);}}),f=yield a(e,t,Object.assign(Object.assign({},r),{listeners:d}));return o+=l.end(),s+=u.end(),{exitCode:f,stdout:o,stderr:s};});};}),rH("iYbsa",function(e,t){var r,n,i,o;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let a=i(iv),s=i(rw),l=i(rS),u=i(iE),c=i(rG("zdagz")),p=i(rG("fwMQK")),d="win32"===process.platform;class f extends s.EventEmitter{constructor(e,t,r){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=t||[],this.options=r||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,t){let r=this._getSpawnFileName(),n=this._getSpawnArgs(e),i=t?"":"[command]";if(d){if(this._isCmdFile())for(let e of(i+=r,n))i+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(i+=`"${r}"`,n))i+=" "+e;else for(let e of(i+=this._windowsQuoteCmdArg(r),n))i+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(i+=r,n))i+=" "+e;return i;}_processLineBuffer(e,t,r){try{let n=t+e.toString(),i=n.indexOf(a.EOL);for(;i>-1;){let e=n.substring(0,i);r(e),i=(n=n.substring(i+a.EOL.length)).indexOf(a.EOL);}return n;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return d&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(d&&this._isCmdFile()){let t='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let r of this.args)t+=" "+(e.windowsVerbatimArguments?r:this._windowsQuoteCmdArg(r));return[t+='"'];}return this.args;}_endsWith(e,t){return e.endsWith(t);}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT");}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return'""';let t=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],r=!1;for(let n of e)if(t.some(e=>e===n)){r=!0;break;}if(!r)return e;let n='"',i=!0;for(let t=e.length;t>0;t--)n+=e[t-1],i&&"\\"===e[t-1]?n+="\\":'"'===e[t-1]?(i=!0,n+='"'):i=!1;return(n+='"').split("").reverse().join("");}_uvQuoteCmdArg(e){if(!e)return'""';if(!e.includes(" ")&&!e.includes(" ")&&!e.includes('"'))return e;if(!e.includes('"')&&!e.includes("\\"))return`"${e}"`;let t='"',r=!0;for(let n=e.length;n>0;n--)t+=e[n-1],r&&"\\"===e[n-1]?t+="\\":'"'===e[n-1]?(r=!0,t+="\\"):r=!1;return(t+='"').split("").reverse().join("");}_cloneExecOptions(e){let t={cwd:(e=e||{}).cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t;}_getSpawnOptions(e,t){e=e||{};let r={};return r.cwd=e.cwd,r.env=e.env,r.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(r.argv0=`"${t}"`),r;}exec(){return o(this,void 0,void 0,function*(){return!p.isRooted(this.toolPath)&&(this.toolPath.includes("/")||d&&this.toolPath.includes("\\"))&&(this.toolPath=u.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise((e,t)=>o(this,void 0,void 0,function*(){for(let e of(this._debug("exec tool: "+this.toolPath),this._debug("arguments:"),this.args))this._debug(" "+e);let r=this._cloneExecOptions(this.options);!r.silent&&r.outStream&&r.outStream.write(this._getCommandString(r)+a.EOL);let n=new h(r,this.toolPath);if(n.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield p.exists(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let i=this._getSpawnFileName(),o=l.spawn(i,this._getSpawnArgs(r),this._getSpawnOptions(this.options,i)),s="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!r.silent&&r.outStream&&r.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let u="";if(o.stderr&&o.stderr.on("data",e=>{n.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!r.silent&&r.errStream&&r.outStream&&(r.failOnStdErr?r.errStream:r.outStream).write(e),u=this._processLineBuffer(e,u,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{n.processError=e.message,n.processExited=!0,n.processClosed=!0,n.CheckComplete();}),o.on("exit",e=>{n.processExitCode=e,n.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),n.CheckComplete();}),o.on("close",e=>{n.processExitCode=e,n.processExited=!0,n.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),n.CheckComplete();}),n.on("done",(r,n)=>{s.length>0&&this.emit("stdline",s),u.length>0&&this.emit("errline",u),o.removeAllListeners(),r?t(r):e(n);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=f,e.exports.argStringToArray=function(e){function t(e){i&&'"'!==e&&(o+="\\"),o+=e,i=!1;}let r=[],n=!1,i=!1,o="";for(let a=0;a<e.length;a++){let s=e.charAt(a);if('"'===s){i?t(s):n=!n;continue;}if("\\"===s&&i){t(s);continue;}if("\\"===s&&n){i=!0;continue;}if(" "===s&&!n){o.length>0&&(r.push(o),o="");continue;}t(s);}return o.length>0&&r.push(o.trim()),r;};class h extends s.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=rT.setTimeout(h.HandleTimeout,this.delay,this)));}_debug(e){this.emit("debug",e);}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):0===this.processExitCode||this.options.ignoreReturnCode?this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)):e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)),this.timeout&&(clearTimeout(this.timeout),this.timeout=null),this.done=!0,this.emit("done",e,this.processExitCode);}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t);}e._setResult();}}}}),rH("fEioR",function(e,t){e.exports=Promise.resolve(require("./actions_python.7877377d.js")).then(()=>rG("8L9T2"));}),rH("7fBnG",function(e,t){var r,n,i,o,a,s,l,u,p;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n");}function f(e){this.options=e||{locator:{}};}function h(){this.cdata=!1;}function m(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber;}function g(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]";}function v(e,t,r){return"string"==typeof e?e.substr(t,r):e.length>=t+r||t?new java.lang.String(e,t,r)+"":e;}function E(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t);}c(e.exports,"DOMParser",()=>r,e=>r=e),n=rG("e95yL"),i=rG("7KjWO"),o=rG("aeYiS"),a=rG("aKT05"),s=i.DOMImplementation,l=n.NAMESPACE,u=a.ParseError,p=a.XMLReader,f.prototype.parseFromString=function(e,t){var r=this.options,n=new p(),i=r.domBuilder||new h(),a=r.errorHandler,s=r.locator,u=r.xmlns||{},c=/\/x?html?$/.test(t),f=c?o.HTML_ENTITIES:o.XML_ENTITIES;s&&i.setDocumentLocator(s),n.errorHandler=function(e,t,r){var n,i;function o(t){var o=e[t];!o&&i&&(o=2==e.length?function(r){e(t,r);}:e),n[t]=o&&function(e){o("[xmldom "+t+"] "+e+g(r));}||function(){};}if(!e){if(t instanceof h)return t;e=t;}return n={},i=e instanceof Function,r=r||{},o("warning"),o("error"),o("fatalError"),n;}(a,i,s),n.domBuilder=r.domBuilder||i,c&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var m=r.normalizeLineEndings||d;return e&&"string"==typeof e?n.parse(m(e),u,f):n.errorHandler.error("invalid doc source"),i.doc;},h.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId);},startElement:function(e,t,r,n){var i=this.doc,o=i.createElementNS(e,r||t),a=n.length;E(this,o),this.currentElement=o,this.locator&&m(this.locator,o);for(var s=0;a>s;s++){var e=n.getURI(s),l=n.getValue(s),r=n.getQName(s),u=i.createAttributeNS(e,r);this.locator&&m(n.getLocator(s),u),u.value=u.nodeValue=l,o.setAttributeNode(u);}},endElement:function(e,t,r){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode;},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var r=this.doc.createProcessingInstruction(e,t);this.locator&&m(this.locator,r),E(this,r);},ignorableWhitespace:function(e,t,r){},characters:function(e,t,r){if(e=v.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else var n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&m(this.locator,n);}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize();},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0);},comment:function(e,t,r){e=v.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&m(this.locator,n),E(this,n);},startCDATA:function(){this.cdata=!0;},endCDATA:function(){this.cdata=!1;},startDTD:function(e,t,r){var n=this.doc.implementation;if(n&&n.createDocumentType){var i=n.createDocumentType(e,t,r);this.locator&&m(this.locator,i),E(this,i),this.doc.doctype=i;}},warning:function(e){console.warn("[xmldom warning] "+e,g(this.locator));},error:function(e){console.error("[xmldom error] "+e,g(this.locator));},fatalError:function(e){throw new u(e,this.locator);}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null;};}),r=f;}),rH("e95yL",function(e,t){var r,n,i,o,a;function s(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e;}c(e.exports,"find",()=>r,e=>r=e),c(e.exports,"freeze",()=>n,e=>n=e),c(e.exports,"NAMESPACE",()=>i,e=>i=e),o=s({HTML:"text/html",isHTML:function(e){return e===o.HTML;},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),a=s({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===a.HTML;},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),r=function(e,t,r){if(void 0===r&&(r=Array.prototype),e&&"function"==typeof r.find)return r.find.call(e,t);for(var n=0;n<e.length;n++)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n];if(t.call(void 0,i,n,e))return i;}},n=s,i=a;}),rH("7KjWO",function(e,t){var r,n,i,o,a,s,l,u,p,d,f,h,m,g,v,E,w,y,b,x,S,D,T;function R(e){return""!==e;}function N(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e;}function I(e){return e?Object.keys((e?e.split(/[\t\n\f\r ]+/).filter(R):[]).reduce(N,{})):[];}function A(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);}function O(e,t){var r=e.prototype;if(!(r instanceof t)){function n(){}n.prototype=t.prototype,A(r,n=new n()),e.prototype=r=n;}r.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),r.constructor=e);}function C(e,t){if(t instanceof Error)var r=t;else r=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,C);return r.code=e,t&&(this.message=this.message+": "+t),r;}function _(){}function L(e,t){this._node=e,this._refresh=t,$(this);}function $(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var r=e._refresh(e._node);if(ev(e,"length",r.length),!e.$$length||r.length<e.$$length)for(var n=r.length;(n in e);n++)Object.prototype.hasOwnProperty.call(e,n)&&delete e[n];A(r,e),e._inc=t;}}function P(){}function k(e,t){for(var r=e.length;r--;)if(e[r]===t)return r;}function U(e,t,r,n){if(n?t[k(t,n)]=r:t[t.length++]=r,e){r.ownerElement=e;var i,o,s,l=e.ownerDocument;l&&(n&&H(l,e,n),i=l,o=e,s=r,i&&i._inc++,s.namespaceURI===a.XMLNS&&(o._nsMap[s.prefix?s.localName:""]=s.value));}}function F(e,t,r){var n=k(t,r);if(n>=0){for(var i=t.length-1;i>n;)t[n]=t[++n];if(t.length=i,e){var o=e.ownerDocument;o&&(H(o,e,r),r.ownerElement=null);}}else throw new C(D,Error(e.tagName+"@"+r));}function M(){}function j(){}function q(e){return"<"==e&&"<"||">"==e&&">"||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";";}function B(e,t){if(t(e))return!0;if(e=e.firstChild)do if(B(e,t))return!0;while(e=e.nextSibling);}function G(){this.ownerDocument=this;}function H(e,t,r,n){e&&e._inc++,r.namespaceURI===a.XMLNS&&delete t._nsMap[r.prefix?r.localName:""];}function V(e,t,r){if(e&&e._inc){e._inc++;var n=t.childNodes;if(r)n[n.length++]=r;else{for(var i=t.firstChild,o=0;i;)n[o++]=i,i=i.nextSibling;n.length=o,delete n[n.length];}}}function X(e,t){var r=t.previousSibling,n=t.nextSibling;return r?r.nextSibling=n:e.firstChild=n,n?n.previousSibling=r:e.lastChild=r,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t;}function z(e){return e&&e.nodeType===j.DOCUMENT_TYPE_NODE;}function Y(e){return e&&e.nodeType===j.ELEMENT_NODE;}function K(e){return e&&e.nodeType===j.TEXT_NODE;}function W(e,t){var r=e.childNodes||[];if(o(r,Y)||z(t))return!1;var n=o(r,z);return!(t&&n&&r.indexOf(n)>r.indexOf(t));}function Q(e,t){var r,n=e.childNodes||[];return!o(n,function(e){return Y(e)&&e!==t;})&&(r=o(n,z),!(t&&r&&n.indexOf(r)>n.indexOf(t)));}function J(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===j.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Y);if(a.length>1||o(i,K))throw new C(S,"More than one element or text in fragment");if(1===a.length&&!Q(e,r))throw new C(S,"Element in fragment can not be inserted before doctype");}if(Y(t)&&!Q(e,r))throw new C(S,"Only one element can be added and only after doctype");if(z(t)){if(o(n,function(e){return z(e)&&e!==r;}))throw new C(S,"Only one doctype is allowed");var s=o(n,Y);if(r&&n.indexOf(s)<n.indexOf(r))throw new C(S,"Doctype can only be inserted before an element");}}function Z(e,t,r,n){(function(e,t,r){if(!(e&&(e.nodeType===j.DOCUMENT_NODE||e.nodeType===j.DOCUMENT_FRAGMENT_NODE||e.nodeType===j.ELEMENT_NODE)))throw new C(S,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new C(D,"child not in parent");if(!(t&&(Y(t)||K(t)||z(t)||t.nodeType===j.DOCUMENT_FRAGMENT_NODE||t.nodeType===j.COMMENT_NODE||t.nodeType===j.PROCESSING_INSTRUCTION_NODE))||z(t)&&e.nodeType!==j.DOCUMENT_NODE)throw new C(S,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType);})(e,t,r),e.nodeType===j.DOCUMENT_NODE&&(n||function(e,t,r){var n=e.childNodes||[],i=t.childNodes||[];if(t.nodeType===j.DOCUMENT_FRAGMENT_NODE){var a=i.filter(Y);if(a.length>1||o(i,K))throw new C(S,"More than one element or text in fragment");if(1===a.length&&!W(e,r))throw new C(S,"Element in fragment can not be inserted before doctype");}if(Y(t)&&!W(e,r))throw new C(S,"Only one element can be added and only after doctype");if(z(t)){if(o(n,z))throw new C(S,"Only one doctype is allowed");var s=o(n,Y);if(r&&n.indexOf(s)<n.indexOf(r))throw new C(S,"Doctype can only be inserted before an element");if(!r&&s)throw new C(S,"Doctype can not be appended since element is present");}})(e,t,r);var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===w){var a=t.firstChild;if(null==a)return t;var s=t.lastChild;}else a=s=t;var l=r?r.previousSibling:e.lastChild;a.previousSibling=l,s.nextSibling=r,l?l.nextSibling=a:e.firstChild=a,null==r?e.lastChild=s:r.previousSibling=s;do a.parentNode=e;while(a!==s&&(a=a.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==w&&(t.firstChild=t.lastChild=null),t;}function ee(){this._nsMap={};}function et(){}function er(){}function en(){}function ei(){}function eo(){}function ea(){}function es(){}function el(){}function eu(){}function ec(){}function ep(){}function ed(){}function ef(e,t){var r=[],n=9==this.nodeType&&this.documentElement||this,i=n.prefix,o=n.namespaceURI;if(o&&null==i){var i=n.lookupPrefix(o);if(null==i)var a=[{namespace:o,prefix:null}];}return eg(this,r,e,t,a),r.join("");}function eh(e,t,r){var n=e.prefix||"",i=e.namespaceURI;if(!i||"xml"===n&&i===a.XML||i===a.XMLNS)return!1;for(var o=r.length;o--;){var s=r[o];if(s.prefix===n)return s.namespace!==i;}return!0;}function em(e,t,r){e.push(" ",t,'="',r.replace(/[<>&"\t\n\r]/g,q),'"');}function eg(e,t,r,n,i){if(i||(i=[]),n){if(!(e=n(e)))return;if("string"==typeof e){t.push(e);return;}}switch(e.nodeType){case l:var o,s=e.attributes,c=s.length,h=e.firstChild,y=e.tagName;r=a.isHTML(e.namespaceURI)||r;var b=y;if(!r&&!e.prefix&&e.namespaceURI){for(var x=0;x<s.length;x++)if("xmlns"===s.item(x).name){o=s.item(x).value;break;}if(!o)for(var S=i.length-1;S>=0;S--){var D=i[S];if(""===D.prefix&&D.namespace===e.namespaceURI){o=D.namespace;break;}}if(o!==e.namespaceURI)for(var S=i.length-1;S>=0;S--){var D=i[S];if(D.namespace===e.namespaceURI){D.prefix&&(b=D.prefix+":"+y);break;}}}t.push("<",b);for(var T=0;c>T;T++){var R=s.item(T);"xmlns"==R.prefix?i.push({prefix:R.localName,namespace:R.value}):"xmlns"==R.nodeName&&i.push({prefix:"",namespace:R.value});}for(var T=0;c>T;T++){var R=s.item(T);if(eh(R,r,i)){var N=R.prefix||"",I=R.namespaceURI;em(t,N?"xmlns:"+N:"xmlns",I),i.push({prefix:N,namespace:I});}eg(R,t,r,n,i);}if(y===b&&eh(e,r,i)){var N=e.prefix||"",I=e.namespaceURI;em(t,N?"xmlns:"+N:"xmlns",I),i.push({prefix:N,namespace:I});}if(h||r&&!/^(?:meta|link|img|br|hr|input)$/i.test(y)){if(t.push(">"),r&&/^script$/i.test(y))for(;h;)h.data?t.push(h.data):eg(h,t,r,n,i.slice()),h=h.nextSibling;else for(;h;)eg(h,t,r,n,i.slice()),h=h.nextSibling;t.push("</",b,">");}else t.push("/>");return;case v:case w:for(var h=e.firstChild;h;)eg(h,t,r,n,i.slice()),h=h.nextSibling;return;case u:return em(t,e.name,e.value);case p:return t.push(e.data.replace(/[<&>]/g,q));case d:return t.push("<![CDATA[",e.data,"]]>");case g:return t.push("<!--",e.data,"-->");case E:var A=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),A)t.push(" PUBLIC ",A),O&&"."!=O&&t.push(" ",O),t.push(">");else if(O&&"."!=O)t.push(" SYSTEM ",O,">");else{var C=e.internalSubset;C&&t.push(" [",C,"]"),t.push(">");}return;case m:return t.push("<?",e.target," ",e.data,"?>");case f:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName);}}function ev(e,t,r){e[t]=r;}c(e.exports,"DOMImplementation",()=>r,e=>r=e),c(e.exports,"XMLSerializer",()=>n,e=>n=e),o=(i=rG("e95yL")).find,a=i.NAMESPACE,l=(s={}).ELEMENT_NODE=1,u=s.ATTRIBUTE_NODE=2,p=s.TEXT_NODE=3,d=s.CDATA_SECTION_NODE=4,f=s.ENTITY_REFERENCE_NODE=5,h=s.ENTITY_NODE=6,m=s.PROCESSING_INSTRUCTION_NODE=7,g=s.COMMENT_NODE=8,v=s.DOCUMENT_NODE=9,E=s.DOCUMENT_TYPE_NODE=10,w=s.DOCUMENT_FRAGMENT_NODE=11,y=s.NOTATION_NODE=12,x={},(b={}).INDEX_SIZE_ERR=(x[1]="Index size error",1),b.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),S=b.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3),b.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),b.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5),b.NO_DATA_ALLOWED_ERR=(x[6]="No data allowed",6),b.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),D=b.NOT_FOUND_ERR=(x[8]="Not found",8),b.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),T=b.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10),b.INVALID_STATE_ERR=(x[11]="Invalid state",11),b.SYNTAX_ERR=(x[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(x[13]="Invalid modification",13),b.NAMESPACE_ERR=(x[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(x[15]="Invalid access",15),C.prototype=Error.prototype,A(b,C),_.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null;},toString:function(e,t){for(var r=[],n=0;n<this.length;n++)eg(this[n],r,e,t);return r.join("");},filter:function(e){return Array.prototype.filter.call(this,e);},indexOf:function(e){return Array.prototype.indexOf.call(this,e);}},L.prototype.item=function(e){return $(this),this[e]||null;},O(L,_),P.prototype={length:0,item:_.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var r=this[t];if(r.nodeName==e)return r;}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new C(T);var r=this.getNamedItem(e.nodeName);return U(this._ownerElement,this,e,r),r;},setNamedItemNS:function(e){var t,r=e.ownerElement;if(r&&r!=this._ownerElement)throw new C(T);return t=this.getNamedItemNS(e.namespaceURI,e.localName),U(this._ownerElement,this,e,t),t;},removeNamedItem:function(e){var t=this.getNamedItem(e);return F(this._ownerElement,this,t),t;},removeNamedItemNS:function(e,t){var r=this.getNamedItemNS(e,t);return F(this._ownerElement,this,r),r;},getNamedItemNS:function(e,t){for(var r=this.length;r--;){var n=this[r];if(n.localName==t&&n.namespaceURI==e)return n;}return null;}},M.prototype={hasFeature:function(e,t){return!0;},createDocument:function(e,t,r){var n=new G();if(n.implementation=this,n.childNodes=new _(),n.doctype=r||null,r&&n.appendChild(r),t){var i=n.createElementNS(e,t);n.appendChild(i);}return n;},createDocumentType:function(e,t,r){var n=new ea();return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=r||"",n;}},j.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Z(this,e,t);},replaceChild:function(e,t){Z(this,e,t,J),t&&this.removeChild(t);},removeChild:function(e){return X(this,e);},appendChild:function(e){return this.insertBefore(e,null);},hasChildNodes:function(){return null!=this.firstChild;},cloneNode:function(e){return function e(t,r,n){var i=new r.constructor();for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)){var a=r[o];"object"!=typeof a&&a!=i[o]&&(i[o]=a);}switch(r.childNodes&&(i.childNodes=new _()),i.ownerDocument=t,i.nodeType){case l:var s=r.attributes,c=i.attributes=new P(),p=s.length;c._ownerElement=i;for(var d=0;p>d;d++)i.setAttributeNode(e(t,s.item(d),!0));break;case u:n=!0;}if(n)for(var f=r.firstChild;f;)i.appendChild(e(t,f,n)),f=f.nextSibling;return i;}(this.ownerDocument||this,this,e);},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==p&&e.nodeType==p?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t);}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t);},hasAttributes:function(){return this.attributes.length>0;},lookupPrefix:function(e){for(var t=this;t;){var r=t._nsMap;if(r){for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)&&r[n]===e)return n;}t=t.nodeType==u?t.ownerDocument:t.parentNode;}return null;},lookupNamespaceURI:function(e){for(var t=this;t;){var r=t._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];t=t.nodeType==u?t.ownerDocument:t.parentNode;}return null;},isDefaultNamespace:function(e){return null==this.lookupPrefix(e);}},A(s,j),A(s,j.prototype),G.prototype={nodeName:"#document",nodeType:v,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==w){for(var r=e.firstChild;r;){var n=r.nextSibling;this.insertBefore(r,t),r=n;}return e;}return Z(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===l&&(this.documentElement=e),e;},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),X(this,e);},replaceChild:function(e,t){Z(this,e,t,J),e.ownerDocument=this,t&&this.removeChild(t),Y(e)&&(this.documentElement=e);},importNode:function(e,t){return function e(t,r,n){var i;switch(r.nodeType){case l:(i=r.cloneNode(!1)).ownerDocument=t;case w:break;case u:n=!0;}if(i||(i=r.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,n)for(var o=r.firstChild;o;)i.appendChild(e(t,o,n)),o=o.nextSibling;return i;}(this,e,t);},getElementById:function(e){var t=null;return B(this.documentElement,function(r){if(r.nodeType==l&&r.getAttribute("id")==e)return t=r,!0;}),t;},getElementsByClassName:function(e){var t=I(e);return new L(this,function(r){var n=[];return t.length>0&&B(r.documentElement,function(i){if(i!==r&&i.nodeType===l){var o=i.getAttribute("class");if(o){var a=e===o;if(!a){var s=I(o);a=t.every(function(e){return s&&-1!==s.indexOf(e);});}a&&n.push(i);}}}),n;});},createElement:function(e){var t=new ee();return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new _(),(t.attributes=new P())._ownerElement=t,t;},createDocumentFragment:function(){var e=new ec();return e.ownerDocument=this,e.childNodes=new _(),e;},createTextNode:function(e){var t=new en();return t.ownerDocument=this,t.appendData(e),t;},createComment:function(e){var t=new ei();return t.ownerDocument=this,t.appendData(e),t;},createCDATASection:function(e){var t=new eo();return t.ownerDocument=this,t.appendData(e),t;},createProcessingInstruction:function(e,t){var r=new ep();return r.ownerDocument=this,r.tagName=r.nodeName=r.target=e,r.nodeValue=r.data=t,r;},createAttribute:function(e){var t=new et();return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t;},createEntityReference:function(e){var t=new eu();return t.ownerDocument=this,t.nodeName=e,t;},createElementNS:function(e,t){var r=new ee(),n=t.split(":"),i=r.attributes=new P();return r.childNodes=new _(),r.ownerDocument=this,r.nodeName=t,r.tagName=t,r.namespaceURI=e,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,i._ownerElement=r,r;},createAttributeNS:function(e,t){var r=new et(),n=t.split(":");return r.ownerDocument=this,r.nodeName=t,r.name=t,r.namespaceURI=e,r.specified=!0,2==n.length?(r.prefix=n[0],r.localName=n[1]):r.localName=t,r;}},O(G,j),ee.prototype={nodeType:l,hasAttribute:function(e){return null!=this.getAttributeNode(e);},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||"";},getAttributeNode:function(e){return this.attributes.getNamedItem(e);},setAttribute:function(e,t){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+t,this.setAttributeNode(r);},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t);},appendChild:function(e){return e.nodeType===w?this.insertBefore(e,null):(e.parentNode&&e.parentNode.removeChild(e),e.parentNode=this,e.previousSibling=this.lastChild,e.nextSibling=null,e.previousSibling?e.previousSibling.nextSibling=e:this.firstChild=e,this.lastChild=e,V(this.ownerDocument,this,e),e);},setAttributeNode:function(e){return this.attributes.setNamedItem(e);},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e);},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName);},removeAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);r&&this.removeAttributeNode(r);},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t);},getAttributeNS:function(e,t){var r=this.getAttributeNodeNS(e,t);return r&&r.value||"";},setAttributeNS:function(e,t,r){var n=this.ownerDocument.createAttributeNS(e,t);n.value=n.nodeValue=""+r,this.setAttributeNode(n);},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t);},getElementsByTagName:function(e){return new L(this,function(t){var r=[];return B(t,function(n){n!==t&&n.nodeType==l&&("*"===e||n.tagName==e)&&r.push(n);}),r;});},getElementsByTagNameNS:function(e,t){return new L(this,function(r){var n=[];return B(r,function(i){i!==r&&i.nodeType===l&&("*"===e||i.namespaceURI===e)&&("*"===t||i.localName==t)&&n.push(i);}),n;});}},G.prototype.getElementsByTagName=ee.prototype.getElementsByTagName,G.prototype.getElementsByTagNameNS=ee.prototype.getElementsByTagNameNS,O(ee,j),et.prototype.nodeType=u,O(et,j),er.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t);},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length;},insertData:function(e,t){this.replaceData(e,0,t);},appendChild:function(e){throw Error(x[S]);},deleteData:function(e,t){this.replaceData(e,t,"");},replaceData:function(e,t,r){r=this.data.substring(0,e)+r+this.data.substring(e+t),this.nodeValue=this.data=r,this.length=r.length;}},O(er,j),en.prototype={nodeName:"#text",nodeType:p,splitText:function(e){var t=this.data,r=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var n=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n;}},O(en,er),ei.prototype={nodeName:"#comment",nodeType:g},O(ei,er),eo.prototype={nodeName:"#cdata-section",nodeType:d},O(eo,er),ea.prototype.nodeType=E,O(ea,j),es.prototype.nodeType=y,O(es,j),el.prototype.nodeType=h,O(el,j),eu.prototype.nodeType=f,O(eu,j),ec.prototype.nodeName="#document-fragment",ec.prototype.nodeType=w,O(ec,j),ep.prototype.nodeType=m,O(ep,j),ed.prototype.serializeToString=function(e,t,r){return ef.call(e,t,r);},j.prototype.toString=ef;try{Object.defineProperty&&(Object.defineProperty(L.prototype,"length",{get:function(){return $(this),this.$$length;}}),Object.defineProperty(j.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case l:case w:var r=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&r.push(e(t)),t=t.nextSibling;return r.join("");default:return t.nodeValue;}}(this);},set:function(e){switch(this.nodeType){case l:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(e||e+"")&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e;}}}),ev=function(e,t,r){e["$$"+t]=r;});}catch(e){}r=M,n=ed;}),rH("aeYiS",function(e,t){c(e.exports,"XML_ENTITIES",()=>r,e=>r=e),c(e.exports,"HTML_ENTITIES",()=>n,e=>n=e);var r,n,i=rG("e95yL").freeze;r=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),n=i({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"\uD835\uDD54",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"\uD835\uDD25",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"\uD835\uDD59",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"\uD835\uDCBD",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"\uD835\uDD26",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"\uD835\uDCBE",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"ȷ",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"\uD835\uDCC1",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"∓",Mscr:"ℳ",mscr:"\uD835\uDCC2",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"\uD835\uDD5F",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"\uD835\uDCAA",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"\uD835\uDD61",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"⨌",Qopf:"ℚ",qopf:"\uD835\uDD62",qprime:"⁗",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"\uD835\uDCC7",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ї",yicy:"ї",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"\uD835\uDD37",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"",zwnj:""});}),rH("aKT05",function(e,t){var r,n,i,o,a;function s(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,s);}function l(){}function u(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t;}function p(e,t,r){for(var n=e.tagName,o=null,a=e.length;a--;){var s=e[a],l=s.qName,u=s.value,c=l.indexOf(":");if(c>0)var p=s.prefix=l.slice(0,c),f=l.slice(c+1),h="xmlns"===p&&f;else f=l,p=null,h="xmlns"===l&&"";s.localName=f,!1!==h&&(null==o&&(o={},d(r,r={})),r[h]=o[h]=u,s.uri=i.XMLNS,t.startPrefixMapping(h,u));}for(var a=e.length;a--;){var p=(s=e[a]).prefix;p&&("xml"===p&&(s.uri=i.XML),"xmlns"!==p&&(s.uri=r[p||""]));}var c=n.indexOf(":");c>0?(p=e.prefix=n.slice(0,c),f=e.localName=n.slice(c+1)):(p=null,f=e.localName=n);var m=e.uri=r[p||""];if(t.startElement(m,f,n,e),!e.closed)return e.currentNSMap=r,e.localNSMap=o,!0;if(t.endElement(m,f,n),o)for(p in o)Object.prototype.hasOwnProperty.call(o,p)&&t.endPrefixMapping(p);}function d(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);}function f(){this.attributeNames={};}c(e.exports,"XMLReader",()=>r,e=>r=e),c(e.exports,"ParseError",()=>n,e=>n=e),i=rG("e95yL").NAMESPACE,o=RegExp("[\\-\\.0-9"+/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=RegExp("^"+/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/.source+o.source+"*(?::"+/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/.source+o.source+"*)?$"),s.prototype=Error(),s.prototype.name="$7d48dd32ae42de33$var$ParseError",l.prototype={parse:function(e,t,r){var n=this.domBuilder;n.startDocument(),d(t,t={}),function(e,t,r,n,o){function a(e){var t,n=e.slice(1,-1);return Object.hasOwnProperty.call(r,n)?r[n]:"#"===n.charAt(0)?(t=parseInt(n.substr(1).replace("x","0x")))>65535?String.fromCharCode(55296+((t-=65536)>>10),56320+(1023&t)):String.fromCharCode(t):(o.error("entity not found:"+e),e);}function l(t){if(t>w){var r=e.substring(w,t).replace(/&#?\w+;/g,a);g&&c(w),n.characters(r,0,t-w),w=t;}}function c(t,r){for(;t>=h&&(r=m.exec(e));)h=(d=r.index)+r[0].length,g.lineNumber++;g.columnNumber=t-d+1;}for(var d=0,h=0,m=/.*(?:\r\n?|\n)|.*$/g,g=n.locator,v=[{currentNSMap:t}],E={},w=0;;){try{var y=e.indexOf("<",w);if(y<0){if(!e.substr(w).match(/^\s*$/)){var b=n.doc,x=b.createTextNode(e.substr(w));b.appendChild(x),n.currentElement=x;}return;}switch(y>w&&l(y),e.charAt(y+1)){case"/":var S=e.indexOf(">",y+3),D=e.substring(y+2,S).replace(/[ \t\n\r]+$/g,""),T=v.pop();S<0?(D=e.substring(y+2).replace(/[\s<].*/,""),o.error("end tag name: "+D+" is not complete:"+T.tagName),S=y+1+D.length):D.match(/\s</)&&(D=D.replace(/[\s<].*/,""),o.error("end tag name: "+D+" maybe not complete"),S=y+1+D.length);var R=T.localNSMap,N=T.tagName==D;if(N||T.tagName&&T.tagName.toLowerCase()==D.toLowerCase()){if(n.endElement(T.uri,T.localName,D),R)for(var I in R)Object.prototype.hasOwnProperty.call(R,I)&&n.endPrefixMapping(I);N||o.fatalError("end tag name: "+D+" is not match the current start tagName:"+T.tagName);}else v.push(T);S++;break;case"?":g&&c(y),S=function(e,t,r){var n=e.indexOf("?>",t);if(n){var i=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i)return i[0].length,r.processingInstruction(i[1],i[2]),n+2;}return-1;}(e,y,n);break;case"!":g&&c(y),S=function(e,t,r,n){if("-"===e.charAt(t+2)){if("-"===e.charAt(t+3)){var i=e.indexOf("-->",t+4);if(i>t)return r.comment(e,t+4,i-t-4),i+3;n.error("Unclosed comment");}}else{if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return r.startCDATA(),r.characters(e,t+9,i-t-9),r.endCDATA(),i+3;}var o=function(e,t){var r,n=[];for(/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g.lastIndex=t,/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g.exec(e);r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g.exec(e);)if(n.push(r),r[1])return n;}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],l=!1,u=!1;a>3&&(/^public$/i.test(o[2][0])?(l=o[3][0],u=a>4&&o[4][0]):/^system$/i.test(o[2][0])&&(u=o[3][0]));var c=o[a-1];return r.startDTD(s,l,u),r.endDTD(),c.index+c[0].length;}}return-1;}(e,y,n,o);break;default:g&&c(y);var A=new f(),O=v[v.length-1].currentNSMap,S=function(e,t,r,n,o,a){function s(e,t,n){r.attributeNames.hasOwnProperty(e)&&a.fatalError("Attribute "+e+" redefined"),r.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,o),n);}for(var l,u,c=++t,p=0;;){var d=e.charAt(c);switch(d){case"=":if(1===p)l=e.slice(t,c),p=3;else if(2===p)p=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===p||1===p){if(1===p&&(a.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,(c=e.indexOf(d,t))>0)s(l,u=e.slice(t,c),t-1),p=5;else throw Error("attribute value no end '"+d+"' match");}else if(4==p)s(l,u=e.slice(t,c),t),a.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,p=5;else throw Error('attribute value must after "="');break;case"/":switch(p){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:p=7,r.closed=!0;case 4:case 1:break;case 2:r.closed=!0;break;default:throw Error("attribute invalid close char('/')");}break;case"":return a.error("unexpected end of input"),0==p&&r.setTagName(e.slice(t,c)),c;case">":switch(p){case 0:r.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(u=e.slice(t,c)).slice(-1)&&(r.closed=!0,u=u.slice(0,-1));case 2:2===p&&(u=l),4==p?(a.warning('attribute "'+u+'" missed quot(")!'),s(l,u,t)):(i.isHTML(n[""])&&u.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+u+'" missed value!! "'+u+'" instead!!'),s(u,u,t));break;case 3:throw Error("attribute value missed!!");}return c;case"":d=" ";default:if(d<=" ")switch(p){case 0:r.setTagName(e.slice(t,c)),p=6;break;case 1:l=e.slice(t,c),p=2;break;case 4:var u=e.slice(t,c);a.warning('attribute "'+u+'" missed quot(")!!'),s(l,u,t);case 5:p=6;}else switch(p){case 2:r.tagName,i.isHTML(n[""])&&l.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),s(l,l,t),t=c,p=1;break;case 5:a.warning('attribute space is required"'+l+'"!!');case 6:p=1,t=c;break;case 3:p=4,t=c;break;case 7:throw Error("elements closed character '/' and '>' must be connected to");}}c++;}}(e,y,A,O,a,o),C=A.length;if(!A.closed&&function(e,t,r,n){var i=n[r];return null==i&&((i=e.lastIndexOf("</"+r+">"))<t&&(i=e.lastIndexOf("</"+r)),n[r]=i),i<t;}(e,S,A.tagName,E)&&(A.closed=!0,r.nbsp||o.warning("unclosed xml attribute")),g&&C){for(var _=u(g,{}),L=0;C>L;L++){var $=A[L];c($.offset),$.locator=u(g,{});}n.locator=_,p(A,n,O)&&v.push(A),n.locator=g;}else p(A,n,O)&&v.push(A);i.isHTML(A.uri)&&!A.closed?S=function(e,t,r,n,i){if(/^(?:script|textarea)$/i.test(r)){var o=e.indexOf("</"+r+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return /^script$/i.test(r)||(a=a.replace(/&#?\w+;/g,n)),i.characters(a,0,a.length),o;}return t+1;}(e,S,A.tagName,a,n):S++;}}catch(e){if(e instanceof s)throw e;o.error("element parse error: "+e),S=-1;}S>w?w=S:l(Math.max(y,w)+1);}}(e,t,r,n,this.errorHandler),n.endDocument();}},f.prototype={setTagName:function(e){if(!a.test(e))throw Error("invalid tagName:"+e);this.tagName=e;},addValue:function(e,t,r){if(!a.test(e))throw Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:r};},length:0,getLocalName:function(e){return this[e].localName;},getLocator:function(e){return this[e].locator;},getQName:function(e){return this[e].qName;},getURI:function(e){return this[e].uri;},getValue:function(e){return this[e].value;}},r=l,n=s;}),rV=rG("dAuy6"),rX=rG("hHq4F"),rz=rG("6OFKY"),function(){rG("kswPT").addLocale("en",function(e){var t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===t&&0===r)?"one":"other";});}.call(rY={}),rK={},rK=rG("foOBZ"),rW={},rW={id:"en",data:{long:{years:{one:"{0} year",other:"{0} years"},months:{one:"{0} month",other:"{0} months"},weeks:{one:"{0} week",other:"{0} weeks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hour",other:"{0} hours"},minutes:{one:"{0} minute",other:"{0} minutes"},seconds:{one:"{0} second",other:"{0} seconds"}},narrow:{years:{one:"{0}y",other:"{0}y"},months:{one:"{0}m",other:"{0}m"},weeks:{one:"{0}w",other:"{0}w"},days:{one:"{0}d",other:"{0}d"},hours:{one:"{0}h",other:"{0}h"},minutes:{one:"{0}m",other:"{0}m"},seconds:{one:"{0}s",other:"{0}s"}},short:{years:{one:"{0} yr",other:"{0} yrs"},months:{one:"{0} mth",other:"{0} mths"},weeks:{one:"{0} wk",other:"{0} wks"},days:{one:"{0} day",other:"{0} days"},hours:{one:"{0} hr",other:"{0} hr"},minutes:{one:"{0} min",other:"{0} min"},seconds:{one:"{0} sec",other:"{0} sec"}}}},rQ={},c(rJ={},"isexe",()=>iY),c(rJ,"sync",()=>iK),iw.promises;const{access:iS,appendFile:iD,chmod:iT,chown:iR,copyFile:iN,lchmod:iI,lchown:iA,link:iO,lstat:iC,mkdir:i_,mkdtemp:iL,open:i$,readdir:iP,readFile:ik,readlink:iU,realpath:iF,rename:iM,rmdir:ij,stat:iq,symlink:iB,truncate:iG,unlink:iH,utimes:iV,writeFile:iX,rm:iz}=iw.promises,iY=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return iW(await iq(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iK=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return iW((0,iw.statSync)(e),t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iW=(e,t)=>e.isFile()&&iQ(e,t),iQ=(e,t)=>{var r,n,i,o,a,s,l,u,c,p,d;let f=null!==(l=t.uid)&&void 0!==l?l:null===(r=(n=process).getuid)||void 0===r?void 0:r.call(n),h=null!==(c=null!==(u=t.groups)&&void 0!==u?u:null===(i=(o=process).getgroups)||void 0===i?void 0:i.call(o))&&void 0!==c?c:[],m=null!==(d=null!==(p=t.gid)&&void 0!==p?p:null===(a=(s=process).getgid)||void 0===a?void 0:a.call(s))&&void 0!==d?d:h[0];if(void 0===f||void 0===m)throw Error("cannot get uid or gid");let g=new Set([m,...h]),v=e.mode,E=e.uid,w=e.gid,y=parseInt("100",8),b=parseInt("010",8);return!!(v&parseInt("001",8)||v&b&&g.has(w)||v&y&&E===f||v&(y|b)&&0===f);};c(rZ={},"isexe",()=>iJ),c(rZ,"sync",()=>iZ);const iJ=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i1(await iq(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},iZ=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return i1((0,iw.statSync)(e),e,t);}catch(e){if(r||"EACCES"===e.code)return!1;throw e;}},i0=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(-1!==n.indexOf(""))return!0;for(let t=0;t<n.length;t++){let r=n[t].toLowerCase(),i=e.substring(e.length-r.length).toLowerCase();if(r&&i===r)return!0;}return!1;},i1=(e,t,r)=>e.isFile()&&i0(t,r),i3="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?rZ:rJ,i2=i3.isexe,i4=i3.sync;r0=iE.join,r1=iE.delimiter,r3=iE.sep,r2=iE.posix;const i5="win32"===process.platform,i6=new RegExp(`[${r2.sep}${r3===r2.sep?"":r3}]`.replace(/(\\)/g,"\\$1")),i8=RegExp("^\\."+i6.source),i9=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),i7=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=r1})=>{let i=e.match(i6)?[""]:[...(i5?[process.cwd()]:[]),...(t||"").split(n)];if(i5){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},oe=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&i8.test(t)?t.slice(0,2):"")+r0(r,t);},ot=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=i7(e,t),o=[];for(let a of r){let r=oe(a,e);for(let e of n){let n=r+e;if(await i2(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw i9(e);};rQ=ot,ot.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=i7(e,t),o=[];for(let a of r){let r=oe(a,e);for(let e of n){let n=r+e;if(i4(n,{pathExt:i,ignoreErrors:!0})){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw i9(e);},r4={},r5={},r6={},r8={};const or="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,on=or?";":":";r9={},"win32"===process.platform||rj.TESTING_WINDOWS?r7=rG("8nJMC"):r7=rG("lo7XV"),r9=d,d.sync=function(e,t){try{return r7.sync(e,t||{});}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const oi=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),oo=(e,t)=>{let r=t.colon||on,n=e.match(/\//)||or&&e.match(/\\/)?[""]:[...(or?[process.cwd()]:[]),...(t.path||process.env.PATH||"").split(r)],i=or?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=or?i.split(r):[""];return or&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:i};},oa=(e,t,r)=>{"function"==typeof t&&(r=t,t={}),t||(t={});let{pathEnv:n,pathExt:i,pathExtExe:o}=oo(e,t),a=[],s=r=>new Promise((i,o)=>{if(r===n.length)return t.all&&a.length?i(a):o(oi(e));let s=n[r],u=/^".*"$/.test(s)?s.slice(1,-1):s,c=iE.join(u,e);i(l(!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c,r,0));}),l=(e,r,n)=>new Promise((u,c)=>{if(n===i.length)return u(s(r+1));let p=i[n];r9(e+p,{pathExt:o},(i,o)=>{if(!i&&o){if(!t.all)return u(e+p);a.push(e+p);}return u(l(e,r,n+1));});});return r?s(0).then(e=>r(null,e),r):s(0);};r8=oa,oa.sync=(e,t)=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=oo(e,t=t||{}),o=[];for(let a=0;a<r.length;a++){let s=r[a],l=/^".*"$/.test(s)?s.slice(1,-1):s,u=iE.join(l,e),c=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let e=0;e<n.length;e++){let r=c+n[e];try{if(r9.sync(r,{pathExt:i})){if(!t.all)return r;o.push(r);}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw oi(e);},ne={};const os=(e={})=>{let t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(ne=os).default=os,r6=function(e){return f(e)||f(e,!0);};nt=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},nr=function(e,t){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),t&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},nn={},ni={},no={},no=/^#!(.*)/,ni=(e="")=>{let t=e.match(no);if(!t)return null;let[r,n]=t[0].replace(/#! ?/,"").split(" "),i=r.split("/").pop();return"env"===i?n:n?`${i} ${n}`:i;},nn=function(e){let t;let r=Buffer.alloc(150);try{t=iw.openSync(e,"r"),iw.readSync(t,r,0,150,0),iw.closeSync(t);}catch(e){}return ni(r.toString());};const ol="win32"===process.platform;r5=function(e,t,r){t&&!Array.isArray(t)&&(r=t,t=null);let n={command:e,args:t=t?t.slice(0):[],options:r=Object.assign({},r),file:void 0,original:{command:e,args:t}};return r.shell?n:function(e){if(!ol)return e;let t=function(e){e.file=r6(e);let t=e.file&&nn(e.file);return t?(e.args.unshift(e.file),e.command=t,r6(e)):e.file;}(e),r=!/\.(?:com|exe)$/i.test(t);if(e.options.forceShell||r){let r=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(t);e.command=iE.normalize(e.command),e.command=nt(e.command),e.args=e.args.map(e=>nr(e,r));let n=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${n}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(n);},na={};const ou="win32"===process.platform;na={hookChildProcess:function(e,t){if(!ou)return;let r=e.emit;e.emit=function(n,i){if("exit"===n){let n=m(i,t,"spawn");if(n)return r.call(e,"error",n);}return r.apply(e,arguments);};},verifyENOENT:m,verifyENOENTSync:function(e,t){return ou&&1===e&&!t.file?h(t.original,"spawnSync"):null;},notFoundError:h},(r4=g).spawn=g,r4.sync=function(e,t,r){let n=r5(e,t,r),i=rS.spawnSync(n.command,n.args,n.options);return i.error=i.error||na.verifyENOENTSync(i.status,n),i;},r4._parse=r5,r4._enoent=na;const oc=(e,t,r,n)=>{if("length"===r||"prototype"===r||"arguments"===r||"caller"===r)return;let i=Object.getOwnPropertyDescriptor(e,r),o=Object.getOwnPropertyDescriptor(t,r);(op(i,o)||!n)&&Object.defineProperty(e,r,o);},op=function(e,t){return void 0===e||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value);},od=(e,t)=>{let r=Object.getPrototypeOf(t);r!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,r);},of=(e,t)=>`/* Wrapped ${e}*/
|
||
${t}`,oh=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),om=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),og=(e,t,r)=>{let n=""===r?"":`with ${r.trim()}() `,i=of.bind(null,n,t.toString());Object.defineProperty(i,"name",om),Object.defineProperty(e,"toString",{...oh,value:i});},ov=new WeakMap(),oE=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...a){if(ov.set(o,++n),1===n)r=e.apply(this,a),e=null;else if(!0===t.throw)throw Error(`Function \`${i}\` can only be called once`);return r;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(let n of Reflect.ownKeys(t))oc(e,t,n,r);od(e,t),og(e,t,n);}(o,e),ov.set(o,n),o;};oE.callCount=e=>{if(!ov.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return ov.get(e);},ns=oE;const ow=()=>Array.from({length:ox-ob+1},oy),oy=(e,t)=>({name:"SIGRT"+(t+1),number:ob+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ob=34,ox=64,oS=[{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"}],oD=()=>[...oS,...ow()].map(oT),oT=({name:e,number:t,description:r,action:n,forced:i=!1,standard:o})=>{let{signals:{[e]:a}}=rC.constants,s=void 0!==a;return{name:e,number:s?a:t,description:r,supported:s,action:n,forced:i,standard:o};},oR=Object.fromEntries(oD().map(({name:e,number:t,description:r,supported:n,action:i,forced:o,standard:a})=>[e,{name:e,number:t,description:r,supported:n,action:i,forced:o,standard:a}])),oN=(e,t)=>{let r=oI(e,t);if(void 0===r)return{};let{name:n,description:i,supported:o,action:a,forced:s,standard:l}=r;return{[e]:{name:n,number:e,description:i,supported:o,action:a,forced:s,standard:l}};},oI=(e,t)=>{let r=t.find(({name:t})=>rC.constants.signals[t]===e);return void 0!==r?r:t.find(t=>t.number===e);};(()=>{let e=oD();return Object.assign({},...Array.from({length:ox+1},(t,r)=>oN(r,e)));})();const oA=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",oO=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:a,escapedCommand:s,timedOut:l,isCanceled:u,killed:c,parsed:{options:{timeout:d,cwd:f=p(rA).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(i=null===i?void 0:i)?void 0:oR[i].description,m=oA({timedOut:l,timeout:d,errorCode:n&&n.code,signal:i,signalDescription:h,exitCode:o,isCanceled:u}),g=`Command ${m}: ${a}`,v="[object Error]"===Object.prototype.toString.call(n),E=v?`${g}
|
||
${n.message}`:g,w=[E,t,e].filter(Boolean).join("\n");return v?(n.originalMessage=n.message,n.message=w):n=Error(w),n.shortMessage=E,n.command=a,n.escapedCommand=s,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=c&&!l,n;},oC=["stdin","stdout","stderr"],o_=e=>oC.some(t=>void 0!==e[t]),oL=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oC.map(t=>e[t]);if(o_(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oC.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,oC.length)},(e,r)=>t[r]);};nl={};const o$=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on;};if(o$(nu=rj.process)){var oP,ok=ry,oU=rG("dVIKq"),oF=/^win/i.test(nu.platform),oM=rw;"function"!=typeof oM&&(oM=oM.EventEmitter),nu.__signal_exit_emitter__?oP=nu.__signal_exit_emitter__:((oP=nu.__signal_exit_emitter__=new oM()).count=0,oP.emitted={}),oP.infinite||(oP.setMaxListeners(1/0),oP.infinite=!0);var oj=function(){oG&&o$(rj.process)&&(oG=!1,oU.forEach(function(e){try{nu.removeListener(e,oB[e]);}catch(e){}}),nu.emit=oz,nu.reallyExit=oV,oP.count-=1);};(nl=function(e,t){if(!o$(rj.process))return function(){};ok.equal(typeof e,"function","a callback must be provided for exit handler"),!1===oG&&oH();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),oP.on(r,e),function(){oP.removeListener(r,e),0===oP.listeners("exit").length&&0===oP.listeners("afterexit").length&&oj();};}).unload=oj;var oq=function(e,t,r){oP.emitted[e]||(oP.emitted[e]=!0,oP.emit(e,t,r));},oB={};oU.forEach(function(e){oB[e]=function(){o$(rj.process)&&nu.listeners(e).length===oP.count&&(oj(),oq("exit",null,e),oq("afterexit",null,e),oF&&"SIGHUP"===e&&(e="SIGINT"),nu.kill(nu.pid,e));};}),nl.signals=function(){return oU;};var oG=!1,oH=function(){!oG&&o$(rj.process)&&(oG=!0,oP.count+=1,oU=oU.filter(function(e){try{return nu.on(e,oB[e]),!0;}catch(e){return!1;}}),nu.emit=oY,nu.reallyExit=oX);};nl.load=oH;var oV=nu.reallyExit,oX=function(e){o$(rj.process)&&(nu.exitCode=e||0,oq("exit",nu.exitCode,null),oq("afterexit",nu.exitCode,null),oV.call(nu,nu.exitCode));},oz=nu.emit,oY=function(e,t){if(!("exit"===e&&o$(rj.process)))return oz.apply(this,arguments);void 0!==t&&(nu.exitCode=t);var r=oz.apply(this,arguments);return oq("exit",nu.exitCode,null),oq("afterexit",nu.exitCode,null),r;};}else nl=function(){return function(){};};const oK=(e,t="SIGTERM",r={})=>{let n=e(t);return oW(e,t,r,n),n;},oW=(e,t,r,n)=>{if(!oQ(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},oZ(r));i.unref&&i.unref();},oQ=(e,{forceKillAfterTimeout:t},r)=>oJ(e)&&!1!==t&&r,oJ=e=>e===p(rC).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oZ=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},o0=(e,t)=>{e.kill()&&(t.isCanceled=!0);},o1=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o3=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{o1(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},o2=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},o4=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=p(nl)(()=>{e.kill();});return n.finally(()=>{i();});},o5=e=>e instanceof rI.ChildProcess&&"function"==typeof e.then,o6=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rx.createWriteStream)(r)),e;if(b(r))return e[t].pipe(r),e;if(!o5(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!b(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},o8=e=>{null!==e.stdout&&(e.pipeStdout=o6.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=o6.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=o6.bind(void 0,e,"all"));};nc={},np=r_.constants,nd=rb.promisify,nf={},nh=rL.PassThrough,nf=e=>{let{array:t}=e={...e},{encoding:r}=e,n="buffer"===r,i=!1;t?i=!(r||n):r=r||"utf8",n&&(r=null);let o=new nh({objectMode:i});r&&o.setEncoding(r);let a=0,s=[];return o.on("data",e=>{s.push(e),i?a=s.length:a+=e.length;}),o.getBufferedValue=()=>t?s:n?Buffer.concat(s,a):s.join(""),o.getBufferedLength=()=>a,o;};const o9=nd(rL.pipeline);class o7 extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(nc=x).buffer=(e,t)=>x(e,{...t,encoding:"buffer"}),nc.array=(e,t)=>x(e,{...t,array:!0}),nc.MaxBufferError=o7,nm={},ng=rL.PassThrough,nm=function(){function e(i){return Array.isArray(i)?i.forEach(e):(r.push(i),i.once("end",t.bind(null,i)),i.once("error",n.emit.bind(n,"error")),i.pipe(n,{end:!1})),this;}function t(e){!(r=r.filter(function(t){return t!==e;})).length&&n.readable&&n.end();}var r=[],n=new ng({objectMode:!0});return n.setMaxListeners(0),n.add=e,n.isEmpty=function(){return 0==r.length;},n.on("unpipe",t),Array.prototype.slice.call(arguments).forEach(e),n;};const ae=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},at=({input:e,inputFile:t})=>"string"!=typeof t?e:(ae(e),(0,rx.readFileSync)(t)),ar=e=>{let t=at(e);if(y(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},an=({input:e,inputFile:t})=>"string"!=typeof t?e:(ae(e),(0,rx.createReadStream)(t)),ai=(e,t)=>{let r=an(t);void 0!==r&&(y(r)?r.pipe(e.stdin):e.stdin.end(r));},ao=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=p(nm)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},aa=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},as=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?p(nc)(e,{encoding:t,maxBuffer:n}):p(nc).buffer(e,{maxBuffer:n});},al=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},a)=>{let s=as(e,{encoding:n,buffer:i,maxBuffer:o}),l=as(t,{encoding:n,buffer:i,maxBuffer:o}),u=as(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([a,s,l,u]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},aa(e,s),aa(t,l),aa(r,u)]);}},au=(async()=>{})().constructor.prototype,ac=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(au,e)]),ap=(e,t)=>{for(let[r,n]of ac){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},ad=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),af=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],ah=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,am=(e,t)=>af(e,t).join(" "),ag=(e,t)=>af(e,t).map(e=>ah(e)).join(" "),av=e=>{let t=[];for(let r of e.trim().split(/ +/g)){let e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${r}`:t.push(r);}return t;},aE=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rI.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rR.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},aw=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],ay=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],a=aw(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return a;let s=t[n];return aw(a,Array.isArray(s)?s.map(e=>aE(e)):[aE(s)],o.endsWith(" "));},ab=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=ay({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},ax=(0,r$.debuglog)("execa").enabled,aS=(e,t)=>(e+"").padStart(t,"0"),aD=()=>{let e=new Date();return`${aS(e.getHours(),2)}:${aS(e.getMinutes(),2)}:${aS(e.getSeconds(),2)}.${aS(e.getMilliseconds(),3)}`;},aT=(e,{verbose:t})=>{t&&p(rA).stderr.write(`[${aD()}] ${e}
|
||
`);},aR=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...p(rA).env,...e}:e;return r?w({env:o,cwd:n,execPath:i}):o;},aN=(e,t,r={})=>{let n=p(r4)._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||p(rA).cwd(),execPath:p(rA).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:ax,...r}).env=aR(r),r.stdio=oL(r),"win32"===p(rA).platform&&"cmd"===p(rN).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},aI=(e,t,r)=>"string"==typeof t||(0,rR.Buffer).isBuffer(t)?e.stripFinalNewline?v(t):t:void 0===r?void 0:"",aA=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},aO=(e={})=>({preferLocal:!0,...aA(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...a]=ab(n,i);return S(o,a,aO(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=ab(e,r);return D(n,i,aO(t));},r;}();const aC={stdio:"inherit",shell:!0},a_=/^~(?=$|\/|\\)/;rX=rG("hHq4F"),nv={},nE=rG("coVwk"),nw=rP.env.npm_package_json,nb=!!((ny=rP.env.npm_config_user_agent)&&ny.startsWith("npm")),nx=!!(nw&&nw.endsWith("package.json")),nS=nb||nx,nD=!!(ny&&ny.startsWith("yarn")),nT=nS||nD,nR=iv.homedir(),nN=process.env.XDG_CONFIG_HOME||iE.join(nR,".config","simple-update-notifier"),nI=function(e){return iE.join(nN,"".concat(e.replace("@","").replace("/","__"),".json"));},nA=function(){iw.existsSync(nN)||iw.mkdirSync(nN,{recursive:!0});},nO=function(e){var t=nI(e);try{if(!iw.existsSync(t))return;return JSON.parse(iw.readFileSync(t,"utf8")).lastUpdateCheck;}catch(e){return;}},nC=function(e){var t=nI(e);iw.writeFileSync(t,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},n_=function(e,t){return _(void 0,void 0,void 0,function(){var r;return L(this,function(n){return r="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,n){ix.get(r,function(r){var i="";r.on("data",function(e){return i+=e;}),r.on("end",function(){try{var r=JSON.parse(i)[t];r||n(Error("Error getting version")),e(r);}catch(e){n(Error("Could not parse version response"));}});}).on("error",function(e){return n(e);});})];});});},nL=function(e){var t=e.pkg,r=e.updateCheckInterval,n=void 0===r?864e5:r,i=e.distTag,o=void 0===i?"latest":i,a=e.alwaysRun,s=e.debug;return _(void 0,void 0,void 0,function(){var e,r;return L(this,function(i){switch(i.label){case 0:if(nA(),e=nO(t.name),!(a||!e||e<new Date().getTime()-n))return[3,2];return[4,n_(t.name,o)];case 1:if(r=i.sent(),nC(t.name),nE.gt(r,t.version))return[2,r];return s&&console.error("Latest version (".concat(r,") not newer than current version (").concat(t.version,")")),[3,3];case 2:s&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(n,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),i.label=3;case 3:return[2,!1];}});});},n$=function(e){for(var t=e.split("\n"),r=Math.max.apply(Math,t.map(function(e){return e.length;})),n=["┌".concat("─".repeat(r+2),"┐")],i=0;i<t.length;i++){var o=t[i];n.push("│ ".concat(o.padEnd(r)," │"));}return n.push("└".concat("─".repeat(r+2),"┘")),n.join("\n");},nv=function(e){return _(void 0,void 0,void 0,function(){var t,r;return L(this,function(n){switch(n.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||nT&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,nL(e)];case 2:return(t=n.sent())&&console.error(n$("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(t))),[3,4];case 3:return r=n.sent(),e.debug&&r instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",r),[3,4];case 4:return[2];}});});},nP={},nP=JSON.parse('{"name":"setup-cpp","version":"0.36.2"}'),nk=rG("1o3Gj"),rX=rG("hHq4F"),rV=rG("dAuy6"),nk=rG("1o3Gj"),rV=rG("dAuy6"),rX=rG("hHq4F");const aL=({timedOut:e,timeout:t,errorCode:r,signal:n,signalDescription:i,exitCode:o,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":void 0!==r?"failed with "+r:void 0!==n?`was killed with ${n} (${i})`:void 0!==o?"failed with exit code "+o:"failed",a$=({stdout:e,stderr:t,all:r,error:n,signal:i,exitCode:o,command:a,escapedCommand:s,timedOut:l,isCanceled:u,killed:c,parsed:{options:{timeout:p}}})=>{o=null===o?void 0:o;let d=void 0===(i=null===i?void 0:i)?void 0:oR[i].description,f=aL({timedOut:l,timeout:p,errorCode:n&&n.code,signal:i,signalDescription:d,exitCode:o,isCanceled:u}),h=`Command ${f}: ${a}`,m="[object Error]"===Object.prototype.toString.call(n),g=m?`${h}
|
||
${n.message}`:h,v=[g,t,e].filter(Boolean).join("\n");return m?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=g,n.command=a,n.escapedCommand=s,n.exitCode=o,n.signal=i,n.signalDescription=d,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=c&&!l,n;},aP=["stdin","stdout","stderr"],ak=e=>aP.some(t=>void 0!==e[t]),aU=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return aP.map(t=>e[t]);if(ak(e))throw Error("It's not possible to provide `stdio` in combination with one of "+aP.map(e=>`\`${e}\``).join(", "));if("string"==typeof t)return t;if(!Array.isArray(t))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);return Array.from({length:Math.max(t.length,aP.length)},(e,r)=>t[r]);},aF=(e,t="SIGTERM",r={})=>{let n=e(t);return aM(e,t,r,n),n;},aM=(e,t,r,n)=>{if(!aj(t,r,n))return;let i=setTimeout(()=>{e("SIGKILL");},aB(r));i.unref&&i.unref();},aj=(e,{forceKillAfterTimeout:t},r)=>aq(e)&&!1!==t&&r,aq=e=>e===p(rC).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),aB=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e;},aG=(e,t)=>{e.kill()&&(t.isCanceled=!0);},aH=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},aV=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{let i;return 0===t||void 0===t?n:Promise.race([new Promise((n,o)=>{i=setTimeout(()=>{aH(e,r,o);},t);}),n.finally(()=>{clearTimeout(i);})]);},aX=({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);},az=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)return n;let i=p(nl)(()=>{e.kill();});return n.finally(()=>{i();});},aY=e=>e instanceof rI.ChildProcess&&"function"==typeof e.then,aK=(e,t,r)=>{if("string"==typeof r)return e[t].pipe((0,rx.createWriteStream)(r)),e;if(b(r))return e[t].pipe(r),e;if(!aY(r))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!b(r.stdin))throw TypeError("The target child process's stdin must be available.");return e[t].pipe(r.stdin),r;},aW=e=>{null!==e.stdout&&(e.pipeStdout=aK.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=aK.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=aK.bind(void 0,e,"all"));},aQ=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},aJ=({input:e,inputFile:t})=>"string"!=typeof t?e:(aQ(e),(0,rx.readFileSync)(t)),aZ=e=>{let t=aJ(e);if(y(t))throw TypeError("The `input` option cannot be a stream in sync mode");return t;},a0=({input:e,inputFile:t})=>"string"!=typeof t?e:(aQ(e),(0,rx.createReadStream)(t)),a1=(e,t)=>{let r=a0(t);void 0!==r&&(y(r)?r.pipe(e.stdin):e.stdin.end(r));},a3=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let r=p(nm)();return e.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},a2=async(e,t)=>{if(e&&void 0!==t){e.destroy();try{return await t;}catch(e){return e.bufferedData;}}},a4=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)return t?p(nc)(e,{encoding:t,maxBuffer:n}):p(nc).buffer(e,{maxBuffer:n});},a5=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},a)=>{let s=a4(e,{encoding:n,buffer:i,maxBuffer:o}),l=a4(t,{encoding:n,buffer:i,maxBuffer:o}),u=a4(r,{encoding:n,buffer:i,maxBuffer:2*o});try{return await Promise.all([a,s,l,u]);}catch(n){return Promise.all([{error:n,signal:n.signal,timedOut:n.timedOut},a2(e,s),a2(t,l),a2(r,u)]);}},a6=(async()=>{})().constructor.prototype,a8=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(a6,e)]),a9=(e,t)=>{for(let[r,n]of a8){let i="function"==typeof t?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},a7=e=>new Promise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error",e=>{r(e);}),e.stdin&&e.stdin.on("error",e=>{r(e);});}),se=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],st=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,sr=(e,t)=>se(e,t).join(" "),sn=(e,t)=>se(e,t).map(e=>st(e)).join(" "),si=e=>{let t=typeof e;if("string"===t)return e;if("number"===t)return e+"";if("object"===t&&null!==e&&!(e instanceof rI.ChildProcess)&&"stdout"in e){let t=typeof e.stdout;if("string"===t)return e.stdout;if((0,rR.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${t}" stdout in template expression`);}throw TypeError(`Unexpected "${t}" in template expression`);},so=(e,t,r)=>r||0===e.length||0===t.length?[...e,...t]:[...e.slice(0,-1),`${e[e.length-1]}${t[0]}`,...t.slice(1)],sa=({templates:e,expressions:t,tokens:r,index:n,template:i})=>{let o=null!=i?i:e.raw[n],a=so(r,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(n===t.length)return a;let s=t[n];return so(a,Array.isArray(s)?s.map(e=>si(e)):[si(s)],o.endsWith(" "));},ss=(e,t)=>{let r=[];for(let[n,i]of e.entries())r=sa({templates:e,expressions:t,tokens:r,index:n,template:i});return r;},sl=(0,r$.debuglog)("execa").enabled,su=(e,t)=>(e+"").padStart(t,"0"),sc=()=>{let e=new Date();return`${su(e.getHours(),2)}:${su(e.getMinutes(),2)}:${su(e.getSeconds(),2)}.${su(e.getMilliseconds(),3)}`;},sp=(e,{verbose:t})=>{t&&p(rA).stderr.write(`[${sc()}] ${e}
|
||
`);},sd=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...p(rA).env,...e}:e;return r?w({env:o,cwd:n,execPath:i}):o;},sf=(e,t,r={})=>{let n=p(r4)._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||p(rA).cwd(),execPath:p(rA).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sl,...r}).env=sd(r),r.stdio=aU(r),"win32"===p(rA).platform&&"cmd"===p(rN).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sh=(e,t,r)=>"string"==typeof t||(0,rR.Buffer).isBuffer(t)?e.stripFinalNewline?v(t):t:void 0===r?void 0:"",sm=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sg=(e={})=>({preferLocal:!0,...sm(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...a]=ss(n,i);return k(o,a,sg(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=ss(e,r);return function(e,t,r){let n;let i=sf(e,t,r),o=sr(e,t),a=sn(e,t);sp(a,i.options);let s=aZ(i.options);try{n=p(rI).spawnSync(i.file,i.args,{...i.options,input:s});}catch(e){throw a$({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:a,parsed:i,timedOut:!1,isCanceled:!1,killed:!1});}let l=sh(i.options,n.stdout,n.error),u=sh(i.options,n.stderr,n.error);if(n.error||0!==n.status||null!==n.signal){let e=a$({stdout:l,stderr:u,error:n.error,signal:n.signal,exitCode:n.status,command:o,escapedCommand:a,parsed:i,timedOut:n.error&&"ETIMEDOUT"===n.error.code,isCanceled:!1,killed:null!==n.signal});if(!i.options.reject)return e;throw e;}return{command:o,escapedCommand:a,exitCode:0,stdout:l,stderr:u,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(n,i,sg(t));},r;}(),nU={};const sv="win32"!==iv.platform(),sE=iv.release(),sw=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nU=function(e){return sv?e.replace(/(\s+)/g,"\\$1"):sw(.../(\d+\.\d+)\.(\d+)/.exec(sE).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rG("8CJZb"),t=function(e){return e.split("").reverse().join("");},nF=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nF={}),nM=rG("6t4SD");const sy={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sb=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sx=C("~/.cpprc");let sS=!1;nM=rG("6t4SD"),nj=rG("f44Uw"),rX=rG("hHq4F");const{appendFile:sD}=iw.promises;let sT=!1,sR=!1;const sN=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(rm=nq||(nq={}))[rm.NameDashVersion=0]="NameDashVersion",rm[rm.NameEqualsVersion=1]="NameEqualsVersion",rm[rm.Name=2]="Name",rm[rm.None=3]="None",nk=rG("1o3Gj"),nB=rG("eAXk4"),nB=rG("eAXk4"),nG=rG("zdagz");let sI=!1;nM=rG("6t4SD"),nB=rG("eAXk4"),rX=rG("hHq4F");let sA=!1;rX=rG("hHq4F"),rX=rG("hHq4F");let sO=!1,sC=!1;const s_=/Version\s*:\s*(.*)/g;nH={},nV=iE.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),nX=nH&&nH.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),nz=nH&&nH.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nY=nH&&nH.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nX(t,e,r);return nz(t,e),t;},nK=nH&&nH.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},nW=nH&&nH.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nH,"__esModule",{value:!0}),nH.evaluateVersions=nH.isExplicitVersion=nH.findFromManifest=nH.getManifestFromRepo=nH.findAllVersions=nH.find=nH.cacheFile=nH.cacheDir=nH.extractZip=nH.extractXar=nH.extractTar=nH.extract7z=nH.downloadTool=nH.HTTPError=void 0;const sL=nY(rG("1o3Gj")),s$=nY(rG("zdagz")),sP=nY(iw),sk=nY(rG("gn8Si")),sU=nY(iv),sF=nY(iE),sM=nY(rG("eamjo")),sj=nY(rG("0306Y")),sq=nY(rL),sB=nY(rb),sG=nW(rG("GX8zo"));nQ=rG("bHzmH"),nZ=(nJ={},nJ.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];})),n0=nJ&&nJ.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),n1=nJ&&nJ.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nZ(t,e,r);return n0(t,e),t;},n3=nJ&&nJ.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{l(n.next(e));}catch(e){o(e);}}function s(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(a,s);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(nJ,"__esModule",{value:!0}),nJ.RetryHelper=void 0;const sH=n1(rG("1o3Gj"));nJ.RetryHelper=class{constructor(e,t,r){if(e<1)throw Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(r),this.minSeconds>this.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,t){return n3(this,void 0,void 0,function*(){let r=1;for(;r<this.maxAttempts;){try{return yield e();}catch(e){if(t&&!t(e))throw e;sH.info(e.message);}let n=this.getSleepAmount();sH.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 n3(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,1e3*e));});}};class sV extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}nH.HTTPError=sV;const sX="win32"===process.platform,sz="darwin"===process.platform;nH.downloadTool=function(e,t,r,n){return nK(this,void 0,void 0,function*(){t=t||sF.join(eb(),sG.default()),yield s$.mkdirP(sF.dirname(t)),sL.debug("Downloading "+e),sL.debug("Destination "+t);let i=ex("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=ex("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),a=new nJ.RetryHelper(3,i,o);return yield a.execute(()=>nK(this,void 0,void 0,function*(){return yield function(e,t,r,n){return nK(this,void 0,void 0,function*(){if(sP.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new sM.HttpClient("actions/tool-cache",[],{allowRetries:!1});r&&(sL.debug("set auth"),void 0===n&&(n={}),n.authorization=r);let o=yield i.get(e,n);if(200!==o.message.statusCode){let t=new sV(o.message.statusCode);throw sL.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),t;}let a=sB.promisify(sq.pipeline),s=ex("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),l=!1;try{return yield a(s,sP.createWriteStream(t)),sL.debug("download complete"),l=!0,t;}finally{if(!l){sL.debug("download failed");try{yield s$.rmRF(t);}catch(e){sL.debug(`Failed to delete '${t}'. ${e.message}`);}}}});}(e,t||"",r,n);}),e=>!(e instanceof sV)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},nH.extract7z=function(e,t,r){return nK(this,void 0,void 0,function*(){ry.ok(sX,"extract7z() not supported on current OS"),ry.ok(e,'parameter "file" is required'),t=yield em(t);let n=process.cwd();if(process.chdir(t),r)try{let t=sL.isDebug()?"-bb1":"-bb0";yield nQ.exec(`"${r}"`,["x",t,"-bd","-sccUTF-8",e],{silent:!0});}finally{process.chdir(n);}else{let r=sF.join(nV,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),i=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),a=`& '${r}' -Source '${i}' -Target '${o}'`;try{let e=yield s$.which("powershell",!0);yield nQ.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",a],{silent:!0});}finally{process.chdir(n);}}return t;});},nH.extractTar=function(e,t,r="xz"){return nK(this,void 0,void 0,function*(){let n;if(!e)throw Error("parameter 'file' is required");t=yield em(t),sL.debug("Checking tar --version");let i="";yield nQ.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>i+=e.toString(),stderr:e=>i+=e.toString()}}),sL.debug(i.trim());let o=i.toUpperCase().includes("GNU TAR");n=r instanceof Array?r:[r],sL.isDebug()&&!r.includes("v")&&n.push("-v");let a=t,s=e;return sX&&o&&(n.push("--force-local"),a=t.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),o&&(n.push("--warning=no-unknown-keyword"),n.push("--overwrite")),n.push("-C",a,"-f",s),yield nQ.exec("tar",n),t;});},nH.extractXar=function(e,t,r=[]){return nK(this,void 0,void 0,function*(){let n;ry.ok(sz,"extractXar() not supported on current OS"),ry.ok(e,'parameter "file" is required'),t=yield em(t),(n=r instanceof Array?r:[r]).push("-x","-C",t,"-f",e),sL.isDebug()&&n.push("-v");let i=yield s$.which("xar",!0);return yield nQ.exec(`"${i}"`,Array.from(new Set(n))),t;});},nH.extractZip=function(e,t){return nK(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return t=yield em(t),sX?yield function(e,t){return nK(this,void 0,void 0,function*(){let r=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=t.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=yield s$.which("pwsh",!1);if(i){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else { throw $_ } } ;`;sL.debug("Using pwsh at path: "+i),yield nQ.exec(`"${i}"`,["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}else{let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ; if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${r}' -DestinationPath '${n}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${r}', '${n}', $true) }`,t=yield s$.which("powershell",!0);sL.debug("Using powershell at path: "+t),yield nQ.exec(`"${t}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,t):yield function(e,t){return nK(this,void 0,void 0,function*(){let r=yield s$.which("unzip",!0),n=[e];sL.isDebug()||n.unshift("-q"),n.unshift("-o"),yield nQ.exec(`"${r}"`,n,{cwd:t});});}(e,t),t;});},nH.cacheDir=function(e,t,r,n){return nK(this,void 0,void 0,function*(){if(r=sj.clean(r)||r,n=n||sU.arch(),sL.debug(`Caching tool ${t} ${r} ${n}`),sL.debug("source dir: "+e),!sP.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let i=yield eg(t,r,n);for(let t of sP.readdirSync(e)){let r=sF.join(e,t);yield s$.cp(r,i,{recursive:!0});}return ev(t,r,n),i;});},nH.cacheFile=function(e,t,r,n,i){return nK(this,void 0,void 0,function*(){if(n=sj.clean(n)||n,i=i||sU.arch(),sL.debug(`Caching tool ${r} ${n} ${i}`),sL.debug("source file: "+e),!sP.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eg(r,n,i),a=sF.join(o,t);return sL.debug("destination file "+a),yield s$.cp(e,a),ev(r,n,i),o;});},nH.find=function(e,t,r){if(!e)throw Error("toolName parameter is required");if(!t)throw Error("versionSpec parameter is required");r=r||sU.arch(),eE(t)||(t=ew(eh(e,r),t));let n="";if(t){t=sj.clean(t)||"";let i=sF.join(ey(),e,t,r);sL.debug("checking cache: "+i),sP.existsSync(i)&&sP.existsSync(`${i}.complete`)?(sL.debug(`Found tool in cache ${e} ${t} ${r}`),n=i):sL.debug("not found");}return n;},nH.findAllVersions=eh,nH.getManifestFromRepo=function(e,t,r,n="master"){return nK(this,void 0,void 0,function*(){let i=[],o=`https://api.github.com/repos/${e}/${t}/git/trees/${n}`,a=new sM.HttpClient("tool-cache"),s={};r&&(sL.debug("set auth"),s.authorization=r);let l=yield a.getJson(o,s);if(!l.result)return i;let u="";for(let e of l.result.tree)if("versions-manifest.json"===e.path){u=e.url;break;}s.accept="application/vnd.github.VERSION.raw";let c=yield(yield a.get(u,s)).readBody();if(c){c=c.replace(/^\uFEFF/,"");try{i=JSON.parse(c);}catch(e){sL.debug("Invalid json");}}return i;});},nH.findFromManifest=function(e,t,r,n=sU.arch()){return nK(this,void 0,void 0,function*(){return yield sk._findMatch(e,t,r,n);});},nH.isExplicitVersion=eE,nH.evaluateVersions=ew,n2=rG("hlfY9"),n4=rG("6v1Be"),nB=rG("eAXk4"),rX=rG("hHq4F"),rV=rG("dAuy6"),nM=rG("6t4SD"),Object.defineProperty(n5={},"__esModule",{value:!0}),n5.retryAsPromised=n5.TimeoutError=void 0;class sY extends Error{constructor(e,t){super(e),this.name="TimeoutError",this.previous=t;}}n5.TimeoutError=sY,n5.retryAsPromised=eS,n5.default=eS;let sK=!1;nB=rG("eAXk4"),nG=rG("zdagz"),rX=rG("hHq4F"),nk=rG("1o3Gj"),nM=rG("6t4SD"),nB=rG("eAXk4"),nQ=rG("bHzmH"),rV=rG("dAuy6"),rX=rG("hHq4F"),n6={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},n8=Array.prototype.slice,n9=function(){function e(e){this.keys=[],this.values=[],this.options=e;var t="function"==typeof e.isMatchingKey;t?this.getKeyIndex=this._getKeyIndexFromMatchingKey:e.maxSize>1?this.getKeyIndex=this._getKeyIndexForMany:this.getKeyIndex=this._getKeyIndexForSingle,this.canTransformKey="function"==typeof e.transformKey,this.shouldCloneArguments=this.canTransformKey||t,this.shouldUpdateOnAdd="function"==typeof e.onCacheAdd,this.shouldUpdateOnChange="function"==typeof e.onCacheChange,this.shouldUpdateOnHit="function"==typeof e.onCacheHit;}return Object.defineProperty(e.prototype,"size",{get:function(){return this.keys.length;},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"snapshot",{get:function(){return{keys:eL(this.keys),size:this.size,values:eL(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var t=this.options,r=t.isMatchingKey,n=t.maxSize,i=this.keys,o=i.length;if(!o)return-1;if(r(i[0],e))return 0;if(n>1){for(var a=1;o>a;a++)if(r(i[a],e))return a;}return-1;},e.prototype._getKeyIndexForMany=function(e){var t,r,n=this.options.isEqual,i=this.keys,o=i.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var a=e.length;if(a>1){for(var s=0;o>s;s++)if((t=i[s]).length===a){for(r=0;a>r&&n(t[r],e[r]);r++);if(r===a)return s;}}else for(var s=0;o>s;s++)if((t=i[s]).length===a&&n(t[0],e[0]))return s;return-1;},e.prototype._getKeyIndexForSingle=function(e){var t=this.keys;if(!t.length)return-1;var r=t[0],n=r.length;if(e.length!==n)return-1;var i=this.options.isEqual;if(n>1){for(var o=0;n>o;o++)if(!i(r[o],e[o]))return-1;return 0;}return i(r[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,t,r){for(var n=this.keys,i=this.values,o=n.length,a=r;a--;)n[a+1]=n[a],i[a+1]=i[a];n[0]=e,i[0]=t;var s=this.options.maxSize;o===s&&r===o?(n.pop(),i.pop()):r>=s&&(n.length=i.length=s);},e.prototype.updateAsyncCache=function(e){var t=this,r=this.options,n=r.onCacheChange,i=r.onCacheHit,o=this.keys[0],a=this.values[0];this.values[0]=a.then(function(r){return t.shouldUpdateOnHit&&i(t,t.options,e),t.shouldUpdateOnChange&&n(t,t.options,e),r;},function(e){var r=t.getKeyIndex(o);throw-1!==r&&(t.keys.splice(r,1),t.values.splice(r,1)),e;});},e;}(),nB=rG("eAXk4"),n7=e=>{if("string"!=typeof e)return!1;let t=e.trim();if(t.includes(" "))return!1;try{return new rk.URL(t),!0;}catch{return!1;}},ie=async e=>{if(!n7(e))return!1;let t=await eU(e,"HEAD");return!!t||!!(t=await eU(e,"GET"));},it=rG("jDqfd"),n4=rG("6v1Be"),ir=rG("2kZmC"),nQ=rG("bHzmH"),rX=rG("hHq4F");const sW=/v?(\d\S*)/,sQ={llvm:eB(),clangtidy:eB(),clangformat:eB(),ninja:"1.11.1",cmake:"3.28.1",gcovr:"5.2",conan:"1.62.0",meson:"1.3.1",kcov:"42",task:"3.33.1",doxygen:ea()?"1.10.0-1":"1.10.0",gcc:ea()?"13.2.1-3":"13"},sJ={pip:"22.2.0",python:"3.7.9"},sZ={gcc:{22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{22:"8.0.0-1",20:"7.0.0-2"},llvm:{22:"17.0.6-ubuntu-22.04",20:"17.0.6-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangtidy:{22:"17.0.2-ubuntu-22.04",20:"17.0.2-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},clangformat:{22:"17.0.2-ubuntu-22.04",20:"17.0.2-ubuntu-22.04",18:"15.0.6-ubuntu-18.04",16:"15.0.6-ubuntu-18.04",14:"13.0.0-ubuntu-16.04"},gcovr:{22:"6.0",20:"6.0",18:"5.0"},meson:{20:"1.0.0",18:"0.61.4"},nala:{22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"}};nM=rG("6t4SD");const s0=ek(e1,{isPromise:!0});rX=rG("hHq4F"),Object.defineProperty(ii={},"__esModule",{value:!0}),ii.getUbuntuVersion=void 0,ii.getUbuntuVersion=e4;const s1=ek(e5,{isPromise:!0}),s3=e=>{if(e){if("object"==typeof e)e={mode:511,...e};else if("number"==typeof e)e={mode:e};else if("string"==typeof e)e={mode:parseInt(e,8)};else throw TypeError("invalid options argument");}else e={mode:511};let t=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||iw.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,r)=>new Promise((n,i)=>t.mkdir(e,r,(e,t)=>e?i(e):n(t))),e.stat=e.stat||r.stat||iw.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((r,n)=>t.stat(e,(e,t)=>e?n(e):r(t))),e.statSync=e.statSync||r.statSync||iw.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||iw.mkdirSync,t;},s2=(e,t,r)=>{let n=(0,iE.dirname)(e),i={...s3(t),recursive:!1};if(n===e)try{return i.mkdirSync(e,i);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return i.mkdirSync(e,i),r||e;}catch(t){if(t&&"ENOENT"===t.code)return s2(e,i,s2(n,i,r));if(t&&"EEXIST"!==t.code&&t&&"EROFS"!==t.code)throw t;try{if(!i.statSync(e).isDirectory())throw t;}catch(e){throw t;}}},s4=Object.assign(async(e,t,r)=>{let n=s3(t);n.recursive=!1;let i=(0,iE.dirname)(e);return i===e?n.mkdirAsync(e,n).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):n.mkdirAsync(e,n).then(()=>r||e,async t=>{if(t&&"ENOENT"===t.code)return s4(i,n).then(t=>s4(e,n,t));if(t&&"EEXIST"!==t.code&&"EROFS"!==t.code)throw t;return n.statAsync(e).then(e=>{if(e.isDirectory())return r;throw t;},()=>{throw t;});});},{sync:s2}),s5=async(e,t,r)=>{if(r!==t)return e.statAsync(t).then(e=>e.isDirectory()?r:void 0,r=>r&&"ENOENT"===r.code?s5(e,(0,iE.dirname)(t),t):void 0);},s6=(e,t,r)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0;}catch(r){return r&&"ENOENT"===r.code?s6(e,(0,iE.dirname)(t),t):void 0;}},s8=(e,t)=>{let r=s3(t);if(r.recursive=!0,(0,iE.dirname)(e)===e)return r.mkdirSync(e,r);let n=s6(r,e);try{return r.mkdirSync(e,r),n;}catch(t){if(t&&"ENOENT"===t.code)return s2(e,r);throw t;}},s9=Object.assign(async(e,t)=>{let r={...s3(t),recursive:!0};return(0,iE.dirname)(e)===e?await r.mkdirAsync(e,r):s5(r,e).then(t=>r.mkdirAsync(e,r).then(e=>t||e).catch(t=>{if(t&&"ENOENT"===t.code)return s4(e,r);throw t;}));},{sync:s8}),s7=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,le=e=>{if(/\0/.test(e))throw Object.assign(TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=(0,iE.resolve)(e),"win32"===s7){let{root:t}=(0,iE.parse)(e);if(/[*|"<>?:]/.test(e.substring(t.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},lt=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),lr=+lt[0]>10||10==+lt[0]&&+lt[1]>=12,ln=lr?e=>s3(e).mkdirSync===iw.mkdirSync:()=>!1,li=Object.assign(lr?e=>s3(e).mkdir===iw.mkdir:()=>!1,{sync:ln}),lo=(e,t)=>{e=le(e);let r=s3(t);return ln(r)?s8(e,r):s2(e,r);},la=Object.assign(async(e,t)=>{e=le(e);let r=s3(t);return li(r)?s9(e,r):s4(e,r);},{mkdirpSync:lo,mkdirpNative:s9,mkdirpNativeSync:s8,mkdirpManual:s4,mkdirpManualSync:s2,sync:lo,native:s9,nativeSync:s8,manual:s4,manualSync:s2,useNative:li,useNativeSync:ln}),ls=ek(te,{isPromise:!0}),ll=ek(tt,{isPromise:!0}),lu=ek(tr,{isPromise:!0});nB=rG("eAXk4"),rX=rG("hHq4F"),nM=rG("6t4SD");const lc=new Map([[23,["Sonoma","14"]],[22,["Ventura","13"]],[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]),lp=ek(function(){let{version:e}=function(e){e=+(e||p(rC).release()).split(".")[0];let[t,r]=lc.get(e)||["Unknown",""];return{name:t,version:r};}();return e.split(".").map(e=>parseInt(e,10));});(ia=rG("7KjWO")).DOMImplementation,ia.XMLSerializer,io=rG("7fBnG").DOMParser;const ld=63,lf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",lh=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];class lm{constructor(){}get type(){return this.constructor.TYPE;}castTo(e){return this.type===e.TYPE?this:null;}castAs(e){let t=this.castTo(e);if(!t)throw Error(`Cannot cast type '${this.type}' to '${e.TYPE}'`);return t;}fromXml(e){let{documentElement:t}=tc(e);this.fromXmlElement(t);}}class lg extends lm{static TYPE="boolean";static TAG_NAMES=["true","false"];value=!1;constructor(e=!1){super(),this.value=e;}fromXmlElement(e){switch(!function(e){let{childNodes:t}=e;if(t.length)throw Error("Unexpected child nodes: "+e.tagName);}(e),e.tagName){case"true":this.value=!0;return;case"false":this.value=!1;return;default:throw tf(e,"");}}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t);return this.value?`${n}<true/>`:`${n}<false/>`;}}class lv extends lm{static TYPE="data";static TAG_NAMES=["data"];constructor(e=new Uint8Array(0)){super(),this.value=e;}fromXmlElement(e){var t;tf(e,"data");let r=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";this.value=function(e){let t=e.length,r=[];e:for(let n,i,o,a,s,l,u=0;t>u;){for(;;){if((s=lh[e.charCodeAt(u++)])>=0){n=s;break;}if(u>=t)break e;}for(;;){if((s=lh[e.charCodeAt(u++)])>=0){i=s;break;}if(u>=t)break e;}for(;;){if((s=lh[e.charCodeAt(u++)])>=0){o=s;break;}if(u>=t)break e;}for(;;){if((s=lh[e.charCodeAt(u++)])>=0){a=s;break;}if(u>=t)break e;}switch(l=(n&ld)<<18|(i&ld)<<12|(o&ld)<<6|a&ld,o>ld?a>ld?2:0:a>ld?1:0){case 0:r.push(l>>16&255,l>>8&255,255&l);break;case 1:r.push(l>>16&255,l>>8&255);break;case 2:r.push(l>>16&255);}}return new Uint8Array(r);}(r);}toXml(e=null,t=0){var r,n,i;let o=null!==(r=null==e?void 0:e.newlineString)&&void 0!==r?r:"\n",a=null!==(n=null==e?void 0:e.dataColumns)&&void 0!==n?n:68,s=(null!==(i=null==e?void 0:e.indentString)&&void 0!==i?i:" ").repeat(t),l=`${s}<data>`;if(a>0)for(let e=th(this.value);e;e=e.substring(a))l+=`${o}${s}${e.substring(0,a)}`;else l+=`${o}${s}${th(this.value)}`;return l+`${o}${s}</data>`;}}class lE extends lm{static TYPE="integer";static TAG_NAMES=["integer"];value=0;constructor(e=0){super(),tm(e),this.value=e;}asBigInt(){return BigInt(this.value);}asNumber(){return+this.value;}fromXmlElement(e){var t;tf(e,"integer");let r=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";if(!/^[-+]?[0-9]+$/.test(r))throw Error("Invalid integer data: "+r);let n=+r;this.value=n>9007199254740991||n<-9007199254740991?BigInt(r):n;}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t),i=this.value;return tm(i),`${n}<integer>${i}</integer>`;}}class lw extends lm{static TYPE="real";static TAG_NAMES=["real"];value=0;constructor(e=0){super(),this.value=e;}fromXmlElement(e){var t;tf(e,"real");let r=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";if(!/^[-+]?([0-9]+|[0-9]*\.[0-9]+)$/.test(r))throw Error("Invalid real data: "+r);this.value=+r;}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t),i=this.value;return`${n}<real>${i}</real>`;}}class ly extends lm{static TYPE="string";static TAG_NAMES=["string"];value="";constructor(e=""){super(),this.value=e;}fromXmlElement(e){var t;tf(e,"string"),this.value=(null===(t=td(e))||void 0===t?void 0:t.nodeValue)||"";}toXml(e=null,t=0){var r;let n=(null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ").repeat(t),i=this.value.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">");return`${n}<string>${i}</string>`;}}class lb extends lm{static TYPE="array";static TAG_NAMES=["array"];static get CHILD_TAG_NAMES(){if(!i)for(let e of(i=new Map(),[lb,lg,lv,lx,lE,lw,ly]))for(let t of e.TAG_NAMES)i.set(t,e);return i;}value=[];constructor(e=[]){super(),this.value=e;}get length(){return this.value.length;}get(e){let{value:t}=this;return e<this.length?t[e]:null;}getValue(e){let t=this.get(e);if(!t)throw Error("Index out of bounds: "+e);return t;}set(e,t){this.value[e]=t;}push(...e){this.value.push(...e);}pop(){return this.value.pop()||null;}popValue(){let e=this.pop();if(!e)throw Error("Cannot pop empty array");return e;}shift(){return this.value.shift()||null;}shiftValue(){let e=this.shift();if(!e)throw Error("Cannot shift empty array");return e;}fromXmlElement(e){tf(e,"array");let t=tp(e);this.value=t.map(e=>this.childFromXmlElement(e));}childFromXmlElement(e){let{tagName:t}=e,{CHILD_TAG_NAMES:r}=this.constructor,n=r.get(t)||null;if(!n)throw Error("Unknown element type: "+t);let i=new n();return i.fromXmlElement(e),i;}toXml(e=null,t=0){var r,n;let i=null!==(r=null==e?void 0:e.newlineString)&&void 0!==r?r:"\n",o=(null!==(n=null==e?void 0:e.indentString)&&void 0!==n?n:" ").repeat(t),a=this.value;if(!a.length)return`${o}<array/>`;let s=`${o}<array>`;for(let r of a)s+=`${i}${r.toXml(e,t+1)}`;return s+`${i}${o}</array>`;}}class lx extends lm{static TYPE="dict";static TAG_NAMES=["dict"];static get CHILD_TAG_NAMES(){if(!o)for(let e of(o=new Map(),[lb,lg,lv,lx,lE,lw,ly]))for(let t of e.TAG_NAMES)o.set(t,e);return o;}value=new Map();constructor(e=new Map()){super(),this.value=e;}get size(){return this.value.size;}has(e){return this.value.has(e);}get(e){return this.value.get(e)||null;}getValue(e){let t=this.get(e);if(!t)throw Error("Key is null: "+e);return t;}set(e,t){this.value.set(e,t);}delete(e){this.value.delete(e);}clear(){this.value.clear();}fromXmlElement(e){tf(e,"dict");let t=tp(e),r=t.length;if(r%2)throw Error("Uneven number of child elements: "+r);let n=new Map();for(let e=0;r>e;e+=2){var i;let r=t[e],o=t[e+1];tf(r,"key");let a=(null===(i=td(r))||void 0===i?void 0:i.nodeValue)||"",s=this.childFromXmlElement(o);n.set(a,s);}this.value=n;}childFromXmlElement(e){let{tagName:t}=e,{CHILD_TAG_NAMES:r}=this.constructor,n=r.get(t)||null;if(!n)throw Error("Unknown element type: "+t);let i=new n();return i.fromXmlElement(e),i;}toXml(e=null,t=0){var r,n;let i=null!==(r=null==e?void 0:e.indentString)&&void 0!==r?r:" ",o=null!==(n=null==e?void 0:e.newlineString)&&void 0!==n?n:"\n",a=i.repeat(t),s=this.value;if(!s.size)return`${a}<dict/>`;let l=i.repeat(t+1),u=`${a}<dict>`;for(let[r,n]of s){let i=r.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">");u+=`${o}${l}<key>${i}</key>${o}${n.toXml(e,t+1)}`;}return u+`${o}${a}</dict>`;}}const lS='<?xml version="1.0" encoding="UTF-8"?>',lD='<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">';class lT{static XML_DECLARATION=lS;static XML_DOCTYPE=lD;xmlDeclaration=lS;xmlDoctype=lD;value=null;constructor(e=null){this.value=e;}getValue(){let{value:e}=this;if(!e)throw Error("Value is null");return e;}valueCastTo(e){let{value:t}=this;return t?t.castTo(e):null;}valueCastAs(e){let t=this.valueCastTo(e);if(!t)throw Error(`Cannot cast value to type '${e.TYPE}'`);return t;}fromXml(e){let{declaration:t,doctype:r,documentElement:n}=tc(e);this.fromXmlElement(n,t,r);}fromXmlElement(e,t=null,r=null){let{tagName:n}=e;if("plist"!==n)throw Error("Unexpected root plist tag name: "+n);let i=tp(e),o=i.length;if(o>1)throw Error("Multiple root plist child tag: "+o);this.value=o?this.childFromXmlElement(i[0]):null,this.xmlDeclaration=t||"",this.xmlDoctype=r||"";}childFromXmlElement(e){return new lx().childFromXmlElement(e);}toXml(e=null){var t,r;let n=null!==(t=null==e?void 0:e.indentRoot)&&void 0!==t&&t,i=null!==(r=null==e?void 0:e.newlineString)&&void 0!==r?r:"\n",o=this.value;return[...[this.xmlDeclaration,this.xmlDoctype].filter(e=>e),'<plist version="1.0">',...(o?[o.toXml(e,n?1:0)]:[]),"</plist>",""].join(i);}}class lR{constructor(e=null){this.hdiutil=(e?e.hdiutil:null)||"hdiutil";}async attach(e,t=null,r=null){let n=await this._runAttach(this._argsAttach(e,t)),{eject:i,ejectSync:o}=this._createEjects(n);return{devices:n,eject:i,ejectSync:o};}attachSync(e,t=null,r=null){let n=this._runAttachSync(this._argsAttach(e,t)),{eject:i,ejectSync:o}=this._createEjects(n);return{devices:n,eject:i,ejectSync:o};}async eject(e,t=null){await this._runEject(this._argsEject(e,t));}ejectSync(e,t=null){this._runEjectSync(this._argsEject(e,t));}_argsAttach(e,t=null){let r=["attach","-plist"];return t&&(t.readonly&&r.push("-readonly"),t.nobrowse&&r.push("-nobrowse")),r.push(this._fileArg(e)),r;}_argsEject(e,t=null){let r=["eject"];return t&&t.force&&r.push("-force"),r.push(this._fileArg(e)),r;}async _runAttach(e){let t=[],r=(0,rI.spawn)(this.hdiutil,e);r.stdout.on("data",e=>{t.push(e);});let n=await new Promise((e,t)=>{r.once("exit",e),r.once("error",t);});if(n)throw Error("Attach failed: hdiutil exit code: "+n);return this._parseDevices(Buffer.concat(t).toString());}_runAttachSync(e){let{status:t,error:r,stdout:n}=(0,rI.spawnSync)(this.hdiutil,e);if(r)throw r;if(t)throw Error("Attach failed: hdiutil exit code: "+t);return this._parseDevices(n.toString());}async _runEject(e){let t=(0,rI.spawn)(this.hdiutil,e),r=await new Promise((e,r)=>{t.once("exit",e),t.once("error",r);});if(r)throw Error("Eject failed: hdiutil exit code: "+r);}_runEjectSync(e){let{status:t,error:r}=(0,rI.spawnSync)(this.hdiutil,e);if(r)throw r;if(t)throw Error("Eject failed: hdiutil exit code: "+t);}_fileArg(e){return e.startsWith("-")?"./"+e:e;}_parseDevices(e){let t=new lT();t.fromXml(e);let r=t.valueCastAs(lx).getValue("system-entities").castAs(lb),n=[];for(let e of r.value){let t=e.castAs(lx),r=t.getValue("dev-entry").castAs(ly).value,i=t.getValue("potentially-mountable").castAs(lg).value,o=t.get("content-hint"),a=t.get("unmapped-content-hint"),s=t.get("volume-kind"),l=t.get("mount-point"),u={devEntry:r,potentiallyMountable:i};o&&(u.contentHint=o.castAs(ly).value),a&&(u.unmappedContentHint=a.castAs(ly).value),s&&(u.volumeKind=s.castAs(ly).value),l&&(u.mountPoint=l.castAs(ly).value),n.push(u);}return n;}_findRootDevice(e){let t=null;for(let r of e)(null===t||t.devEntry.length>r.devEntry.length)&&(t=r);return t;}_createEjects(e,t=null){var r;let n=null===(r=this._findRootDevice(e))||void 0===r?void 0:r.devEntry,i=null,o={eject:async(e=null)=>{n&&(await this.eject(n,e),n="",i&&process.off("exit",i));},ejectSync:(e=null)=>{n&&(this.ejectSync(n,e),n="",i&&process.off("exit",i));}};return t&&(i=()=>{o.ejectSync(t);},process.once("exit",i)),o;}}let lN=((rg={}).DIRECTORY="directory",rg.FILE="file",rg.SYMLINK="symlink",rg.RESOURCE_FORK="resource-fork",rg);const{O_WRONLY:lI,O_SYMLINK:lA}=rx.constants,lO=!!lA,lC=!!lA,l_=(0,r$.promisify)(rU.pipeline);class lL{_triggering=!1;_triggered=!1;_extracted=!1;constructor(e){var t,r,n,i,o,a,s,l,u,c,p,d;this.archive=e.archive,this.type=e.type,this.pathRaw=e.pathRaw,this.path=tg(e.pathRaw),this.size=null!==(t=e.size)&&void 0!==t?t:null,this.sizeComp=null!==(r=e.sizeComp)&&void 0!==r?r:null,this.mode=null!==(n=e.mode)&&void 0!==n?n:null,this.uid=null!==(i=e.uid)&&void 0!==i?i:null,this.gid=null!==(o=e.gid)&&void 0!==o?o:null,this.uname=null!==(a=e.uname)&&void 0!==a?a:null,this.gname=null!==(s=e.gname)&&void 0!==s?s:null,this.atime=null!==(l=e.atime)&&void 0!==l?l:null,this.mtime=null!==(u=e.mtime)&&void 0!==u?u:null,this._readData=null!==(c=e.readData)&&void 0!==c?c:null,this._readRsrc=null!==(p=e.readRsrc)&&void 0!==p?p:null,this._readSymlink=null!==(d=e.readSymlink)&&void 0!==d?d:null;}get hasNamedVolume(){return this.archive.hasNamedVolumes;}get volumeName(){if(this.hasNamedVolume){let{path:e}=this;return e.substring(0,e.indexOf("/"));}return null;}get volumePath(){let{path:e}=this;return this.hasNamedVolume?e.substring(e.indexOf("/")+1):e;}async stream(){return this._beginExtract(),this._stream();}async read(){this._beginExtract();let e=await this._stream();return e?tE(e):null;}async extract(e,t={}){this._beginExtract(),await this._extract(e,t);}async trigger(e){let t;if(this._triggered)throw Error("Archive entry already triggered");this._triggered=this._triggering=!0;try{t=await e(this);}finally{this._triggering=!1;}return t;}async setAttributes(e,t=null,r={}){let n=null===t?e:t,{ignorePermissions:i,ignoreTimes:o}=r,{type:a,mode:s,atime:l,mtime:u}=this,c=!1;switch(a){case lN.FILE:case lN.RESOURCE_FORK:case lN.DIRECTORY:break;case lN.SYMLINK:c=!0;break;default:throw Error("Unsupported path type: "+a);}let p=l||u||null,d=u||l||null;if(!i&&null!==s){let e=c?tw:tD;await e(n,511&s);}if(!o&&p&&d){let e=c?tb:ty;await e(n,p,d);}}_beginExtract(){if(!this._triggering)throw Error("Archive entry is not active");if(this._extracted)throw Error("Archive entry can only be extracted once");this._extracted=!0;}_errorExtractPathExists(e){return Error("Extract path already exists: "+e);}_errorNoResourceFork(e){return Error("Extract path for resource fork not a file: "+e);}async _extract(e,t){this.archive.afterReadSetAttributesRemove(e);let{type:r}=this;switch(r){case lN.FILE:await this._extractFile(e,t);break;case lN.RESOURCE_FORK:await this._extractResourceFork(e,t);break;case lN.DIRECTORY:await this._extractDirectory(e,t);break;case lN.SYMLINK:await this._extractSymlink(e,t);break;default:throw Error("Unsupported path type: "+r);}}async _extractStreamToFile(e,t,r){let{replace:n}=r;if(await tN(e)){if(n)await iz(e,{recursive:!0,force:!0});else throw this._errorExtractPathExists(e);}else await i_((0,rN.dirname)(e),{recursive:!0});await iX(e,Buffer.alloc(0));let i=await t();i&&(await l_(i,(0,rx.createWriteStream)(e))),await this.setAttributes(e,null,r);}async _extractFile(e,t){let r=this._readData;if(!r)throw Error("Internal error");await this._extractStreamToFile(e,r,t);}async _extractResourceFork(e,t){let r=this._readRsrc;if(!r)throw Error("Internal error");if(t.resourceForkAsFile){await this._extractStreamToFile(e,r,t);return;}let n=await tN(e);if(!n||!n.isFile())throw this._errorNoResourceFork(e);let i=tv(e),o=await r();o?await l_(o,(0,rx.createWriteStream)(i)):await iX(i,Buffer.alloc(0)),await this.setAttributes(e,null,t);}async _extractDirectory(e,t){let{replace:r}=t,n=await tN(e);if(n){if(!n.isDirectory()){if(r)await iz(e,{recursive:!0,force:!0}),await i_(e,{recursive:!0});else throw this._errorExtractPathExists(e);}}else await i_(e,{recursive:!0});this.archive.afterReadSetAttributes(e,this,{...t});}async _extractSymlink(e,t){let r=this._readSymlink;if(!r)throw Error("Internal error");let{replace:n,symlinkAsFile:i}=t;if(await tN(e)){if(n)await iz(e,{recursive:!0,force:!0});else throw this._errorExtractPathExists(e);}else await i_((0,rN.dirname)(e),{recursive:!0});let o=await r();i?await iX(e,o):await tS(e,o),await this.setAttributes(e,null,t);}async _stream(){let{type:e}=this;switch(e){case lN.FILE:return this._streamFile();case lN.RESOURCE_FORK:return this._streamResourceFork();case lN.DIRECTORY:return this._streamDirectory();case lN.SYMLINK:return this._streamSymlink();default:throw Error("Unsupported path type: "+e);}}async _streamFile(){let e=this._readData;if(!e)throw Error("Internal error");return e();}async _streamResourceFork(){let e=this._readRsrc;if(!e)throw Error("Internal error");return e();}async _streamDirectory(){return null;}async _streamSymlink(){let e=this._readSymlink;if(!e)throw Error("Internal error");let t=new rU.Readable({read(){e().then(e=>{t.push(e),t.push(null);},e=>{t.emit("error",e);});}});return t;}}class l${static FILE_EXTENSIONS=null;static HAS_NAMED_VOLUMES=!1;Entry=lL;_reading=!1;_afterReadSetAttributes=null;constructor(e){this.path=e;}get fileExtensions(){return this.constructor.FILE_EXTENSIONS||null;}get hasNamedVolumes(){return this.constructor.HAS_NAMED_VOLUMES;}afterReadSetAttributes(e,t,r={}){let n=this._afterReadSetAttributes;if(!n)throw Error("Archive after read callbacks can only be added while reading");n.set((0,rN.resolve)(e),{path:e,entry:t,options:r});}afterReadSetAttributesRemove(e){let t=this._afterReadSetAttributes;if(!t)throw Error("Archive after read callbacks can only be removed while reading");t.delete((0,rN.resolve)(e));}async read(e){if(this._reading)throw Error("Archive already being read");this._reading=!0,this._afterReadSetAttributes=new Map();try{await this._read(e),await this._afterReadSetAttributesTrigger();}finally{this._afterReadSetAttributes=null,this._reading=!1;}}async _afterReadSetAttributesTrigger(){let e=this._afterReadSetAttributes;if(!e)return;let t=[];for(let[r]of e)t.push(r);for(let r of(t.sort((e,t)=>t.length-e.length),t)){let t=e.get(r);if(!t)throw Error("Internal error");let{entry:n,path:i,options:o}=t;await n.setAttributes(i,r,o);}}}const lP={ignoreUnreadableDirectories:!0},lk={force:!0};class lU extends lL{sizeComp=null;uname=null;gname=null;constructor(e){super(e),this.archive=e.archive,this.size=e.size,this.mode=e.mode,this.uid=e.uid,this.gid=e.gid,this.atime=e.atime,this.mtime=e.mtime;}get rsrcPathRaw(){return tv(this.pathRaw);}get rsrcPath(){return tg(tv(this.path));}}class lF extends l${static FILE_EXTENSIONS=[".dmg",".iso",".cdr"];static HAS_NAMED_VOLUMES=!0;Entry=lU;mounterMac=new lR();nobrowse=!1;constructor(e){super(e);}async read(e){await super.read(e);}async _read(e){let{mounterMac:t,nobrowse:r}=this,n=async(t,r,n)=>{let i=n.isSymbolicLink()?lN.SYMLINK:n.isDirectory()?lN.DIRECTORY:n.isFile()?lN.FILE:null;if(null===i)return!0;let{size:o,mode:a,uid:s,gid:l,atime:u,mtime:c}=n,p=i===lN.FILE?async()=>(0,rx.createReadStream)(t):null,d=i===lN.SYMLINK?async()=>tx(t):null,f=new this.Entry({archive:this,type:i,pathRaw:r,size:o,mode:a,uid:s,gid:l,atime:u,mtime:c,readData:p,readSymlink:d}),h=await f.trigger(e);if(!1===h)return null;if(null===h)return!1;if(i===lN.FILE){let n=tv(t),i=await tN(n);if(i){let t=i.size,o=async()=>(0,rx.createReadStream)(n),p=new this.Entry({archive:this,type:lN.RESOURCE_FORK,pathRaw:r,size:t,mode:a,uid:s,gid:l,atime:u,mtime:c,readRsrc:o}),d=await p.trigger(e);if(!1===d)return null;if(null===d)return!1;}}return!0;},i=await t.attach(this.path,{nobrowse:r,readonly:!0},lk);try{for(let e of i.devices){let{mountPoint:t}=e;if(!t)continue;let r=(0,rN.basename)(t);await tI(t,async(e,i)=>{let o=(0,rN.join)(t,e),a=(0,rN.join)(r,e);return n(o,a,i);},lP);}}finally{await i.eject(lk);}}}is=rG("lORAA"),n4=rG("6v1Be"),nQ=rG("bHzmH"),rX=rG("hHq4F"),nB=rG("eAXk4"),rX=rG("hHq4F"),rV=rG("dAuy6"),nM=rG("6t4SD"),il=iE.resolve(__dirname,"../../src/gcc");const lM={13:{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt":{releaseName:"13.2.0-16.0.6-11.0.0-ucrt-r1",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.0-r1"},"13.2-ucrt-mcf":{releaseName:"13.2.0mcf-16.0.6-11.0.1-ucrt-r2",fileSuffix:"13.2.0-mingw-w64ucrt-11.0.1-r2"},"13.2-msvcrt":{releaseName:"13.2.0-16.0.6-11.0.1-msvcrt-r1",fileSuffix:"13.2.0-mingw-w64msvcrt-11.0.1-r1"},"13.1-ucrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-ucrt-r1",fileSuffix:"13.1.0-mingw-w64ucrt-11.0.0-r1"},"13.1-msvcrt":{releaseName:"13.1.0posix-16.0.3-11.0.0-msvcrt-r1",fileSuffix:"13.1.0-mingw-w64msvcrt-11.0.0-r1"},12:{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-ucrt":{releaseName:"12.3.0-16.0.4-11.0.0-ucrt-r1",fileSuffix:"12.3.0-mingw-w64ucrt-11.0.0-r1"},"12.3.0-msvcrt":{releaseName:"12.3.0-16.0.4-11.0.0-msvcrt-r1",fileSuffix:"12.3.0-mingw-w64msvcrt-11.0.0-r1"},"12.2.0-ucrt":{releaseName:"12.2.0-14.0.6-10.0.0-ucrt-r2",fileSuffix:"12.2.0-mingw-w64ucrt-10.0.0-r2"},"12.2.0-msvcrt":{releaseName:"12.2.0-14.0.6-10.0.0-msvcrt-r2",fileSuffix:"12.2.0-mingw-w64msvcrt-10.0.0-r2"},"12.1.0-ucrt":{releaseName:"12.1.0-14.0.4-10.0.0-ucrt-r2",fileSuffix:"12.1.0-mingw-w64ucrt-10.0.0-r2"},"12.1.0-msvcrt":{releaseName:"12.1.0-14.0.6-10.0.0-msvcrt-r3",fileSuffix:"12.1.0-llvm-14.0.6-mingw-w64msvcrt-10.0.0-r3"},11:{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-ucrt":{releaseName:"11.3.0-14.0.3-10.0.0-ucrt-r3",fileSuffix:"11.3.0-mingw-w64ucrt-10.0.0-r3"},"11.3.0-msvcrt":{releaseName:"11.3.0-14.0.3-10.0.0-msvcrt-r3",fileSuffix:"11.3.0-mingw-w64msvcrt-10.0.0-r3"},"11.2.0-ucrt":{releaseName:"11.2.0-9.0.0-ucrt-r5",fileSuffix:"11.2.0-mingw-w64ucrt-9.0.0-r5"},"11.2.0-msvcrt":{releaseName:"11.2.0-9.0.0-msvcrt-r5",fileSuffix:"11.2.0-mingw-w64msvcrt-9.0.0-r5"},10:{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.5.0-msvcrt":{releaseName:"10.5.0-11.0.1-msvcrt-r1",fileSuffix:"10.5.0-mingw-w64msvcrt-11.0.1-r1"},"10.3.0":{releaseName:"10.3.0-12.0.0-9.0.0-r2",fileSuffix:"10.3.0-llvm-12.0.0-mingw-w64-9.0.0-r2"},"10.2.0":{releaseName:"10.2.0-7.0.0-r4",fileSuffix:"10.2.0-llvm-10.0.1-mingw-w64-7.0.0-r4"},9:{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"},"9.4.0":{releaseName:"9.4.0-9.0.0-r1",fileSuffix:"9.4.0-mingw-w64-9.0.0-r1"}};ir=rG("2kZmC"),is=rG("lORAA"),nB=rG("eAXk4"),rX=rG("hHq4F"),nB=rG("eAXk4"),iu=iE.resolve(__dirname,"../../src/kcov"),rV=rG("dAuy6"),rX=rG("hHq4F"),nM=rG("6t4SD"),nB=rG("eAXk4"),nk=rG("1o3Gj"),rX=rG("hHq4F"),nB=rG("eAXk4"),nk=rG("1o3Gj");const lj=rP.env["ProgramFiles(x86)"],lq=[rP.env["ProgramFiles(x86)"],rP.env.ProgramFiles],lB=["Enterprise","Professional","Community","BuildTools"],lG=["2022","2019","2017"],lH={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};ic=tz;const lV=`${lj}\\Microsoft Visual Studio\\Installer`;ip=tY,id=function(e,t,r,n,i,o){if("win32"!=rP.platform){nk.info("This is not a Windows virtual environment, bye!");return;}rP.env.PATH+=iE.delimiter+lV;let a={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in a&&(e=a[e.toLowerCase()]);var s=[e];"true"==n&&s.push("uwp"),t&&s.push(t),r&&s.push("-vcvars_ver="+r),"true"==i&&s.push("-vcvars_spectre_libs=spectre");let l=`"${tY(o)}" ${s.join(" ")}`;nk.debug("vcvars command-line: "+l);let u=rS.execSync(`set && cls && ${l} && cls && set`,{shell:"cmd"}).toString().split("\f"),c=u[0].split("\r\n"),p=u[1].split("\r\n"),d=u[2].split("\r\n"),f=p.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(f.length>0)throw Error("invalid parameters\r\n"+f.join("\r\n"));let h={};for(let e of c){let[t,r]=e.split("=");h[t]=r;}for(let e of(nk.startGroup("Environment variables"),d)){if(!e.includes("="))continue;let[t,r]=e.split("=");r!==h[t]&&(nk.info("Setting "+t),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(t.toUpperCase())&&(r=r.split(";").filter(function(e,t,r){return r.indexOf(e)===t;}).join(";")),nk.exportVariable(t,r));}nk.endGroup(),nk.info("Configured Developer Command Prompt");},rX=rG("hHq4F"),nM=rG("6t4SD");class lX extends Error{constructor(e){super(e),this.name="TimeoutError";}}class lz extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const lY=e=>void 0===globalThis.DOMException?new lz(e):new DOMException(e),lK=e=>{let t=void 0===e.reason?lY("This operation was aborted."):e.reason;return t instanceof Error?t:lY(t);},lW=12e5,{readFile:lQ,writeFile:lJ,chmod:lZ}=iw.promises;(rv=ih||(ih={}))[rv.All=0]="All",rv[rv.ClangFormat=1]="ClangFormat",rv[rv.Core=2]="Core",n2=rG("hlfY9"),rX=rG("hHq4F"),nB=rG("eAXk4");const l0=function(e){let t=new Set(e);for(let r of e)t.add(/^\d+/.exec(r)[0]),t.add(/^\d+\.\d+/.exec(r)[0]);return t;}(["3.5.0","3.5.1","3.5.2","3.6.0","3.6.1","3.6.2","3.7.0","3.7.1","3.8.0","3.8.1","3.9.0","3.9.1","4.0.0","4.0.1","5.0.0","5.0.1","5.0.2","6.0.0","6.0.1","7.0.0","7.0.1","7.1.0","8.0.0","8.0.1","9.0.0","9.0.1","10.0.0","10.0.1","11.0.0","11.0.1","11.1.0","12.0.0","12.0.1","13.0.0","13.0.1","14.0.0","14.0.1","14.0.2","14.0.3","14.0.4","14.0.5","14.0.6","15.0.0","15.0.1","15.0.2","15.0.3","15.0.4","15.0.5","15.0.6","15.0.7","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6"]),l1=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),l3=new Set(["3.5.1","3.6.1","3.6.2","3.7.1","3.8.1","3.9.1","6.0.1","7.0.1","7.1.0","8.0.1","11.0.1","11.1.0","12.0.1","15.0.4","15.0.5","15.0.6","16.0.0","16.0.1","16.0.2","16.0.3","16.0.4","16.0.5","16.0.6","17.0.1","17.0.2","17.0.3","17.0.4","17.0.5","17.0.6"]),l2=new Map(),l4={"3.5.0":"-ubuntu-14.04","3.5.1":"","3.5.2":"-ubuntu-14.04","3.6.0":"-ubuntu-14.04","3.6.1":"-ubuntu-14.04","3.6.2":"-ubuntu-14.04","3.7.0":"-ubuntu-14.04","3.7.1":"-ubuntu-14.04","3.8.0":"-ubuntu-16.04","3.8.1":"-ubuntu-16.04","3.9.0":"-ubuntu-16.04","3.9.1":"-ubuntu-16.04","4.0.0":"-ubuntu-16.04","5.0.0":"-ubuntu16.04","5.0.1":"-ubuntu-16.04","5.0.2":"-ubuntu-16.04","6.0.0":"-ubuntu-16.04","6.0.1":"-ubuntu-16.04","7.0.0":"-ubuntu-16.04","7.0.1":"-ubuntu-18.04","7.1.0":"-ubuntu-14.04","8.0.0":"-ubuntu-18.04","9.0.0":"-ubuntu-18.04","9.0.1":"-ubuntu-16.04","10.0.0":"-ubuntu-18.04","10.0.1":"-ubuntu-16.04","11.0.0":"-ubuntu-20.04","11.0.1":"-ubuntu-16.04","11.1.0":"-ubuntu-16.04","12.0.0":"-ubuntu-20.04","12.0.1":"-ubuntu-16.04","13.0.0":"-ubuntu-20.04","13.0.0-ubuntu-16.04":"-ubuntu-16.04","13.0.0-ubuntu-20.04":"-ubuntu-20.04","13.0.1":"-ubuntu-18.04","13.0.1-ubuntu-18.04":"-ubuntu-18.04","14.0.0":"-ubuntu-18.04","15.0.2":"-rhel86","15.0.5":"-ubuntu-18.04","15.0.6":"-ubuntu-18.04","16.0.0":"-ubuntu-18.04","16.0.2":"-ubuntu-22.04","16.0.3":"-ubuntu-22.04","16.0.4":"-ubuntu-22.04","17.0.2":"-ubuntu-22.04","17.0.4":"-ubuntu-22.04","17.0.5":"-ubuntu-22.04","17.0.6":"-ubuntu-22.04"},l5="17.0.6";im=iE.resolve(__dirname,"../../src/llvm");const l6=ek(t8,{isPromise:!0}),l8=ek(t7,{isPromise:!0}),l9=ek(re,{isPromise:!0});rV=rG("dAuy6"),nB=rG("eAXk4"),rX=rG("hHq4F"),nM=rG("6t4SD"),ig=iE.resolve(__dirname,"../../src/msvc"),nB=rG("eAXk4"),nB=rG("eAXk4"),rX=rG("hHq4F"),nM=rG("6t4SD"),nB=rG("eAXk4");let l7=!1;const ue={nala:ra,cmake:e_,ninja:tq,python:eG,vcpkg:rp,bazel:ep,conan:function(e,t,r){return e8("conan",e);},meson:function(e,t,r){return e8("meson",e);},gcovr:function(e,t,r){return e8("gcovr",e);},opencppcoverage:rs,llvm:t6,gcc:tP,choco:ei,brew:et,powershell:ru,ccache:function(e,t,r){switch(process.platform){case"win32":return eo("ccache",e);case"darwin":return en("ccache",e);case"linux":if(ea())return ed("ccache",e);if(es())return el([{name:"ccache",version:e}]);if(ec())return H([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,t,r){switch(process.platform){case"win32":return eo("sccache",e);case"linux":case"darwin":return en("sccache",e);default:throw Error("Unsupported platform");}},doxygen:tC,graphviz:tl,cppcheck:ta,clangtidy:function(e,t,r){return t9(e,t,r);},clangformat:function(e,t,r){return t9(e,t,r,ih.ClangFormat);},msvc:ri,vcvarsall:tK,kcov:tX,make:rn,task:function(e,t,r){return eD("task",e,rc,t,r);},sevenzip:eT},ut=Object.keys(ue),ur=["compiler","architecture","timeout",...ut];nk=rG("1o3Gj"),rX=rG("hHq4F"),ir=rG("2kZmC"),rh(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,rX.error)("main() panicked!"),(0,rX.error)(e),process.exitCode=1;});
|
||
//# sourceMappingURL=setup-cpp.js.map
|