#!/usr/bin/env node function _classPrivateMethodInitSpec(e,a){_checkPrivateRedeclaration(e,a),a.add(e);}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");}function _classPrivateFieldGet(s,a){return s.get(_assertClassBrand(s,a));}function _classPrivateFieldSet(s,a,r){return s.set(_assertClassBrand(s,a),r),r;}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object");}let e,A,t,r,n,o,i,s;function a(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}function l(e){return e&&e.__esModule?e.default:e;}function c(e,A,t){if("function"==typeof A&&(t=A,A={}),!t){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(t,r){c(e,A||{},function(e,A){e?r(e):t(A);});});}tu(e,A||{},function(e,r){e&&("EACCES"===e.code||A&&A.ignoreErrors)&&(e=null,r=!1),t(e,r);});}function E(e,A){let t;let r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}try{t=tE.sync(e.command,{path:r[th({env:r})],pathExt:A?rG.delimiter:void 0});}catch(e){}finally{i&&process.chdir(n);}return t&&(t=rG.resolve(o?e.options.cwd:"",t)),t;}function g(e,A){return Object.assign(Error(`${A} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${A} ${e.command}`,path:e.command,spawnargs:e.args});}function u(e,A){return nd&&1===e&&!A.file?g(A.original,"spawn"):null;}function h(e,A,t){let r=tl(e,A,t),n=r7.spawn(r.command,r.args,r.options);return tf.hookChildProcess(n,r),n;}function Q(e={}){let{env:A=process.env,platform:t=process.platform}=e;return"win32"!==t?"PATH":Object.keys(A).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function C(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function I(e){return C(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function B(e,A){if(!e)throw Error("Expected a stream");let{maxBuffer:t}=A={maxBuffer:1/0,...A},r=tD(A);return await new Promise((A,n)=>{let o=e=>{e&&r.getBufferedLength()<=tb.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),n(e);};(async()=>{try{await oE(e,r),A();}catch(e){o(e);}})(),r.on("data",()=>{r.getBufferedLength()>t&&o(new og());});}),r.getBufferedValue();}function d(e,A,t){let r;let n=oO(e,A,t),o=oS(e,A),i=ok(e,A);o_(i,n.options),oi(n.options);try{r=l(nr).spawn(n.file,n.args,n.options);}catch(A){let e=new(l(nr).ChildProcess)();return ow(e,Promise.reject(nP({error:A,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=ob(r),a=oo(r,n.options,s),c=os(r,n.options,a),E={isCanceled:!1};r.kill=n6.bind(null,r.kill.bind(r)),r.cancel=or.bind(null,r,E);let g=tp(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,g]=await op(r,n.options,c),u=oY(n.options,a),h=oY(n.options,l),Q=oY(n.options,g);if(e||0!==A||null!==t){let a=nP({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:o,escapedCommand:i,parsed:n,timedOut:s,isCanceled:E.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:o,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return oI(r,n.options),r.all=oB(r,n.options),oc(r),ow(r,g),r;}function f(e,A,t){let r;let n=oO(e,A,t),o=oS(e,A),i=ok(e,A);o_(i,n.options);let s=oQ(n.options);try{r=l(nr).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){throw nP({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=oY(n.options,r.stdout,r.error),c=oY(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let e=nP({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:o,escapedCommand:i,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return e;throw e;}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}function p(A,t=["-NoProfile","-NoLogo","-NonInteractive"],r={stdio:"inherit"}){return d(function(){if(void 0===e){let A=l(tN).sync("pwsh",{nothrow:!0});null!==A&&(e=A);let t=l(tN).sync("powershell",{nothrow:!0});null!==t&&(e=t);}if(void 0===e)throw Error("Could not find powershell");return e;}(),[...t,"-c",A],r);}function y(){var e,A;return((null===(e=(A=process).getuid)||void 0===e?void 0:e.call(A))===0||!!process.env.CI)&&null!==l(tN).sync("sudo",{nothrow:!0});}function m(e,A=[],t=o6){return y()?function(e,A){let[t,...r]=ov(e);return f(t,r,A);}(b(e,A),t):f(e,R(A),t);}function w(e,A=[],t=o6){return y()?function(e,A){let[t,...r]=ov(e);return d(t,r,A);}(b(e,A),t):d(e,R(A),t);}function b(e,A){return"sudo "+R([e,...A]).join(" ");}function R(e){return e.map(e=>`'${e}'`);}async function D(e){if(("linux"===process.platform||"darwin"===process.platform)&&y()&&void 0!==process.env.SUDO_USER){let A=l(rO).statSync(e).isDirectory();await w("chown",[...(A?["-R"]:[]),process.env.SUDO_USER,e],o6);}}function S(e){var A=e.length;return A?1===A?[e[0]]:2===A?[e[0],e[1]]:3===A?[e[0],e[1],e[2]]:tO.call(e,0):[];}function k(e,A){return e===A||e!=e&&A!=A;}function v(e,A){var t={};for(var r in e)t[r]=e[r];for(var r in A)t[r]=A[r];return t;}function N(e,A){if(void 0===A&&(A={}),"function"==typeof e&&e.isMemoized)return N(e.fn,v(e.options,A));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var t=A.isEqual,r=A.isMatchingKey,n=A.isPromise,o=void 0!==n&&n,i=A.maxSize,s=A.onCacheAdd,a=A.onCacheChange,l=A.onCacheHit,c=A.transformKey,E=v({isEqual:void 0===t?k:t,isMatchingKey:r,isPromise:o,maxSize:void 0===i?1:i,onCacheAdd:s,onCacheChange:a,onCacheHit:l,transformKey:c},function(e){var A={};for(var t in e)tG[t]||(A[t]=e[t]);return A;}(A)),g=new tY(E),u=g.keys,h=g.values,Q=g.canTransformKey,C=g.shouldCloneArguments,I=g.shouldUpdateOnAdd,B=g.shouldUpdateOnChange,d=g.shouldUpdateOnHit,f=function(){var A=C?S(arguments):arguments;Q&&(A=c(A));var t=u.length?g.getKeyIndex(A):-1;if(-1!==t)d&&l(g,E,f),t&&(g.orderByLru(u[t],h[t],t),B&&a(g,E,f));else{var r=e.apply(this,arguments),n=C?A:S(arguments);g.orderByLru(n,r,u.length),o&&g.updateAsyncCache(f),I&&s(g,E,f),B&&a(g,E,f);}return h[0];};return f.cache=g,f.fn=e,f.isMemoized=!0,f.options=E,f;}function F(e){let A=function(){if(y()&&"string"==typeof process.env.SUDO_USER&&""!==process.env.SUDO_USER)return"darwin"===process.platform?(0,rG.join)("/Users/",process.env.SUDO_USER):(0,rG.join)("/home/",process.env.SUDO_USER);{let e=(0,r_.homedir)();if(""===e)return;return e;}}();return void 0===A?e:e.replace(o7,A);}async function L(e){let A=void 0===e.guard?` source "${e.rcPath}" `:` # ${e.guard} if [[ "$SOURCE_${e.guard.toUpperCase()}RC" != 0 && -f "${e.rcPath}" ]]; then source "${e.rcPath}"; fi `;try{await Promise.all([U(e),T(A,F("~/.bashrc")),T(A,F("~/.profile"))]);}catch(e){(0,ti.warning)(`Failed to add ${A} to .profile or .bashrc. You should add it manually: ${e}`);}}async function U(e){let A=void 0===e.guard?"\n# Automatically Generated by envosman\n":` # Automatically Generated by envosman ${e.guard} export SOURCE_${e.guard.toUpperCase()}RC=0 `;(await(0,tJ.pathExists)(e.rcPath))&&!(await iA(e.rcPath,"utf8")).includes(A)&&(await ie(e.rcPath,` ${A} `),(0,ti.info)(`Added ${A} to ${e.rcPath}`));}async function T(e,A){(await(0,tJ.pathExists)(A))&&!(await iA(A,"utf-8")).includes(e)&&(await ie(A,e),(0,ti.info)(`${e} was added to ${A}`));}async function M(e){if(await(0,tJ.pathExists)(e.rcPath)){let A=[...new Set((await iA(e.rcPath,"utf-8")).split("\n").reverse())].reverse();await it(e.rcPath,A.join("\n")),await D(e.rcPath);}}async function x(e,A,t={}){let r={escapeSpace:!1,overwrite:!0,rcPath:ir,...t},n=function(e,A=!1){let t=A?l(tH)(e):e;return l(tP)(t,'"',"\\");}(null!=A?A:"",r.escapeSpace);try{if(to.GITHUB_ACTIONS)try{if(!r.overwrite&&void 0!==process.env[e]){(0,ti.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,ts.exportVariable)(e,n);}catch(A){(0,ti.error)(A),await _(e,n,r);}else await _(e,n,r);}catch(A){(0,ti.error)(`${A} Failed to export environment variable ${e}=${n}. You should add it manually.`);}}async function _(e,A,t){let r=null!=A?A:"";switch(process.platform){case"win32":if(!t.overwrite&&void 0!==process.env[e]){(0,ti.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await p(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),(0,ti.info)(`${e}='${r}' was set in the environment.`);return;case"linux":case"darwin":await io(t),t.overwrite?(await il(t.rcPath,` export ${e}="${r}" `),(0,ti.info)(`${e}="${r}" was added to "${t.rcPath}`)):(await il(t.rcPath,` if [ -z "\${${e}}" ]; then export ${e}="${r}"; fi `),(0,ti.info)(`if not defined ${e} then ${e}="${r}" was added to "${t.rcPath}`));return;}process.env[e]=r;}async function G(e,A={}){let t={rcPath:ir,...A};if(!function(e){if(iE.some(A=>A.test(e))){var A,t;return(null!==(t=null===(A=process.env.PATH)||void 0===A?void 0:A.split(rG.delimiter))&&void 0!==t?t:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${rG.delimiter}${process.env.PATH}`;try{if(to.GITHUB_ACTIONS)try{(0,ts.addPath)(e);}catch(A){(0,ti.error)(A),await O(e,t);}else await O(e,t);}catch(A){(0,ti.error)(`${A} Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function O(e,A){switch(process.platform){case"win32":await p(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,ti.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await io(A),await ic(A.rcPath,` export PATH="${e}:$PATH" `),(0,ti.info)(`"${e}" was added to "${A.rcPath}"`);return;default:return;}}function Y(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});}function J(e,A){function t(t){return function(a){return function(t){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,t[0]&&(s=0)),s;)try{if(r=1,n&&(o=2&t[0]?n.return:t[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,t[1])).done)return o;switch(n=0,o&&(t=[2&t[0],o.value]),t[0]){case 0:case 1:o=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,n=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===t[0]||2===t[0])){s=0;continue;}if(3===t[0]&&(!o||t[1]>o[0]&&t[1]e.startsWith("Status: install ok installed"));}catch{return!1;}}async function j(e){try{let{stdout:A}=await d("dpkg",["-l",e],{env:K("apt-get"),stdio:"pipe"});if("string"!=typeof A)return!1;return A.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}function X(e=Z()){m(e,"nala"!==e?["update","-y","-o",iQ]:["update","-o",iQ],{...o6,env:K(e)});}async function $(e,A=!1){let t=Z();for(let{name:A,version:r}of e)(0,ti.info)(`Installing ${A} ${null!=r?r:""} via ${t}`);A&&(X(t),iu=!0),await et(t,e);let r=await ee(t,e);if(0===r.length)return(0,ti.info)("All packages are already installed"),{binDir:"/usr/bin/"};ih||(await ei(t),ih=!0);try{m(t,["install","--fix-broken","-y",...r],{...o6,env:K(t)});}catch(e){if("string"==typeof e.stderr)iC.some(A=>e.stderr.includes(A))&&((0,ti.warning)(`Failed to install packages ${r}. Retrying...`),m(t,["install","--fix-broken","-y","-o",iQ,...r],{...o6,env:K(t)}));else throw e;}return{binDir:"/usr/bin/"};}function z(){return null!==l(tN).sync("nala",{nothrow:!0});}function Z(){let e;return z()?"nala":"apt-get";}function K(e){let A={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===A.LANG&&(A.LANG="C.UTF-8"),void 0===A.LC_ALL&&(A.LC_ALL="C.UTF-8")),A;}async function ee(e,A){return(await Promise.all(A.map(A=>eA(e,A)))).filter(e=>void 0!==e);}async function eA(e,A){let t=await en(e,A.name,A.version);return(await W(t))?void 0:t;}async function et(e,A){let t=[...new Set(A.flatMap(e=>{var A;return null!==(A=e.repositories)&&void 0!==A?A:[];}))];if(0!==t.length){for(let A of(ih||(await ei(e),ih=!0),await eo(e),t))m("add-apt-repository",["-y","--no-update",A],{...o6,env:K(e)});X(e),iu=!0;}}async function er(e,A,t){if(void 0!==t&&""!==t){let{stdout:r}=await d("apt-cache",["search","--names-only",`^${(0,rn.default)(A)}-${(0,rn.default)(t)}$`],{env:K(e),stdio:"pipe"});if(""!==r.trim())return 0;try{let{stdout:r}=await d("apt-cache",["show",`${A}=${t}`],{env:K(e)});if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await d("apt-cache",["show",A],{env:K(e),stdio:"pipe"});if(""!==t.trim())return 2;}catch{}return iu?3:(X(Z()),iu=!0,er(e,A,t));}async function en(e,A,t){switch(await er(e,A,t)){case 0:return`${A}-${t}`;case 1:return`${A}=${t}`;case 2:return void 0!==t&&""!==t&&(0,ti.warning)(`Could not find package ${A} with version ${t}. Installing the latest version.`),A;default:throw Error(`Could not find package ${A} ${null!=t?t:""}`);}}async function eo(e){(await W("software-properties-common"))||m(e,["install","-y","--fix-broken","-o",iQ,"software-properties-common"],{...o6,env:K(e)});}async function ei(e){iu||(X(e),iu=!0);let A=await ee(e,[{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}]);0!==A.length&&m(e,["install","-y","--fix-broken","-o",iQ,...A],{...o6,env:K(e)}),await Promise.all([ea(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),ea(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")]);}function es(){m("gpg",["-k"]);}async function ea(e,A,t="keyserver.ubuntu.com"){try{let r="/etc/apt/trusted.gpg.d/"+A;return(await(0,tJ.pathExists)(r))||(es(),await Promise.all(e.map(async e=>{await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--keyserver",t,"--recv-keys",e]),await w("chmod",["644",r]);}))),r;}catch(e){(0,ti.warning)(`Failed to add apt key via server ${t}: ${e}`);return;}}async function el(e,A){let t="/etc/apt/trusted.gpg.d/"+e;return(await(0,tJ.pathExists)(t))||(es(),await $([{name:"curl"},{name:"ca-certificates"}],void 0),await d("curl",["-s",A,"-o","/tmp/"+e]),m("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+t,"--import","/tmp/"+e]),m("chmod",["644",t])),t;}function ec(){return"linux"===process.platform&&(void 0===o&&(o=null!==l(tN).sync("dnf",{nothrow:!0})),o);}function eE(){return"linux"===process.platform&&(void 0===i&&(i=null!==l(tN).sync("pacman",{nothrow:!0})),i);}function eg(){return"linux"===process.platform&&(void 0===s&&(s=null!==l(tN).sync("apt-get",{nothrow:!0})),s);}async function eu(e,t,r){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof A)return{binDir:A};let n=l(tN).sync("brew",{nothrow:!0});if(null!==n)return{binDir:A=(0,ri.dirname)(n)};let o=l(rG).join((0,r_.tmpdir)(),"setup-cpp","brew");await(0,rs.mkdirP)(o),f("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let i=(0,rG.join)(o,"install.sh");return"linux"===process.platform&&(await(0,tL.readFile)(i,"utf-8")).replace("#!/bin/bash",""),f("/bin/bash",[i],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),A=eh(),await G(A,sD),{binDir:A};}function eh(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function eQ(e,A,t=[]){(0,ts.info)(`Installing ${e} ${null!=A?A:""} via brew`),iI&&null!==l(tN).sync("brew",{nothrow:!0})||(await eu("","",process.arch),iI=!0);let r=eh();return f((0,ri.join)(r,"brew"),["install",void 0!==A&&""!==A?`${e}@${A}`:e,...t],{stdio:"inherit"}),{binDir:r};}async function eC(e,A,r){var n;if("win32"!==process.platform)return;if("string"==typeof t)return{binDir:t};let o=l(tN).sync("choco",{nothrow:!0});if(null!==o)return{binDir:t=(0,ri.dirname)(o)};let i="powershell.exe",s=l(tN).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(i=s),f(i,["-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 a=`${process.env.ALLUSERSPROFILE}\\chocolatey\\bin`;await G(a,sD);let c=l(tN).sync("choco",{nothrow:!0});if(t=null!==c?(0,ri.dirname)(c):`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`,await(0,tJ.pathExists)(t))return{binDir:t};}async function eI(e,A,t=[]){var r;(0,ti.info)(`Installing ${e} ${null!=A?A:""} via chocolatey`),iB&&null!==l(tN).sync("choco",{nothrow:!0})||(await eC("","",process.arch),iB=!0);let n=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=n,void 0!==A&&""!==A)f("choco",["install","-y",e,"--version="+A,...t],{env:o,extendEnv:!1,stdio:"inherit"});else try{f("choco",["install","-y",e,...t],{env:o,extendEnv:!1,stdio:"inherit"});}catch(A){if(A.message.includes("exit code 3010"))(0,ti.info)(`${e} might require a reboot for the completion of the installation.`);else throw A;}let i=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`;return await G(i,sD),{binDir:i};}async function eB(e){for(let{name:A,version:t}of e)(0,ti.info)(`Installing ${A} ${null!=t?t:""} via dnf`);return m("dnf",["-y","install",...(await Promise.all(e.map(e=>ed(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function ed(e,A){if(void 0!==A&&""!==A){let{stdout:t}=await d("dnf",["search","-q",`${e}-${A}`]);if(""!==t.trim())return`${e}-${A}`;{let{stdout:t}=await d("dnf",["search","-q",`${e}${A}`]);if(""!==t.trim())return`${e}${A}`;(0,ti.warning)(`Failed to install ${e} ${A} via dnf, trying without version`);}}return e;}async function ef(e,A,t){switch(process.platform){case"win32":return eI("bazelisk",e);case"darwin":return eQ("bazelisk",e);case"linux":if(eE())throw Error("installing bazel on Arch linux is not supported yet");if(ec())return await eB([{name:"dnf-plugins-core"}]),m("dnf",["copr","enable","vbatts/bazel"]),eB([{name:"bazel4"}]);if(eg()){let A=await el("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return m("bash",["-c",`echo "deb [arch=amd64 signed-by=${A}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),$([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function ep(e,A,t){(0,ti.info)(`Installing ${e} ${null!=A?A:""} via pacman`);let r="pacman";if("yay"===t&&null===l(tN).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);id||"yay"===t||(m(r,["-Sy","--noconfirm"]),id=!0),ip||"yay"===t||(m(r,["-S","--noconfirm","base-devel"]),ip=!0);let n=e=>"yay"===t?f(t,["-S","--noconfirm",e]):m(null!=t?t:r,["-S","--noconfirm",e]);if(void 0!==A&&""!==A){if((await ey(r,e)).includes(A))try{n(`${e}=${A}`);}catch{n(`${e}${A}`);}else(0,ti.info)(`Failed to install ${e} ${A} via pacman, trying without version`),n(e);}else n(e);return{binDir:"/usr/bin/"};}async function ey(e,A){let t=[];try{let{stdout:r}=await d(e,["-Si",A]);for(let e of r.matchAll(iy))t.push(e[1]);}catch(e){(0,ti.warning)(`Failed to get available versions for ${A}: ${e}`);}return t;}function em(e,A,t){switch(process.platform){case"win32":return eI("7zip",e);case"darwin":return eQ("p7zip",e);case"linux":if(eE())return ep("p7zip",e);if(ec())return eB([{name:"p7zip",version:e},{name:"p7zip-plugins",version:e}]);if(eg())return $([{name:"p7zip-full",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function ew(e,A){let t=[];A=A||iD.arch();let r=iS.join(ev(),e);if(ib.existsSync(r)){for(let e of ib.readdirSync(r))if(eS(e)){let n=iS.join(r,e,A||"");ib.existsSync(n)&&ib.existsSync(`${n}.complete`)&&t.push(e);}}return t;}function eb(e){return rQ(this,void 0,void 0,function*(){return e||(e=iS.join(eN(),iL.default())),yield iw.mkdirP(e),e;});}function eR(e,A,t){return rQ(this,void 0,void 0,function*(){let r=iS.join(ev(),e,iv.clean(A)||A,t||"");im.debug("destination "+r);let n=`${r}.complete`;return yield iw.rmRF(r),yield iw.rmRF(n),yield iw.mkdirP(r),r;});}function eD(e,A,t){let r=iS.join(ev(),e,iv.clean(A)||A,t||""),n=`${r}.complete`;ib.writeFileSync(n,""),im.debug("finished caching tool");}function eS(e){let A=iv.clean(e)||"";im.debug("isExplicit: "+A);let t=null!=iv.valid(A);return im.debug("explicit? "+t),t;}function ek(e,A){let t="";im.debug(`evaluating ${e.length} versions`),e=e.sort((e,A)=>iv.gt(e,A)?1:-1);for(let r=e.length-1;r>=0;r--){let n=e[r];if(iv.satisfies(n,A)){t=n;break;}}return t?im.debug("matched: "+t):im.debug("match not found"),t;}function ev(){let e=process.env.RUNNER_TOOL_CACHE||"";return rW.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eN(){let e=process.env.RUNNER_TEMP||"";return rW.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function eF(e,A){let t=na[e];return void 0!==t?t:A;}async function eL(e,A){return await d(await eU(),["x",e,"-o"+A,"-y"],{stdio:"inherit"}),await D(A),A;}async function eU(){return void 0===r&&(null===l(tN).sync("7z",{nothrow:!0})&&(await em("","",process.arch)),r="7z"),r;}function eT(e,A){return eL(e,A);}function eM(e,A){return eL(e,A);}async function ex(e,A,t=0,r=[]){try{await(0,rs.mkdirP)(A);}catch{}try{await d("tar",["xf",e,"-C",A,"--strip-components="+t,...r],{stdio:"inherit"});}catch(t){"win32"===process.platform&&t.message.includes("Can't create '\\\\?\\C:")&&(0,ti.warning)(`Failed to extract symlink ${e} to ${A}. Ignoring this symlink.`);}return await D(A),A;}function e_(e,A){if(!e||!A)throw Error("retry-as-promised must be passed a callback and a options set");let t={$current:"$current"in(A="number"==typeof A?{max:A}:A)?A.$current:1,max:A.max,timeout:A.timeout||void 0,match:A.match?Array.isArray(A.match)?A.match:[A.match]:[],backoffBase:void 0===A.backoffBase?100:A.backoffBase,backoffExponent:A.backoffExponent||1.1,report:A.report,name:A.name||e.name||"unknown"};return t.match&&!Array.isArray(t.match)&&(t.match=[t.match]),t.report&&t.report("Trying "+t.name+" #"+t.$current+" at "+new Date().toLocaleTimeString(),t),new Promise(function(A,r){let n,o,i;t.timeout&&(n=setTimeout(function(){o&&clearTimeout(o),r(new i_(t.name+" timed out",i));},t.timeout)),Promise.resolve(e({current:t.$current})).then(A).then(function(){n&&clearTimeout(n),o&&clearTimeout(o);}).catch(function(s){n&&clearTimeout(n),o&&clearTimeout(o),i=s,t.report&&t.report(s&&s.toString()||s,t,s);var a=t.$current(0,rc.downloadTool)(s),{name:s,max:4,backoffBase:2e3,report:e=>(0,ti.info)(e)});iG||((0,ti.info)("Installing extraction dependencies"),"linux"===process.platform&&(eE()?await Promise.all([ep("unzip"),ep("tar"),ep("xz")]):ec()?await eB([{name:"unzip"},{name:"tar"},{name:"xz"}]):eg()&&(await $([{name:"unzip"},{name:"tar"},{name:"xz-utils"}]))),iG=!0),(0,ti.info)(`Extracting ${t} to ${r}`),await(null==g?void 0:g(t,r));}catch(t){throw Error(`Failed to download ${e} ${A} ${n} from ${s}: ${t}`);}return(0,ti.info)(`Add ${h} to PATH`),await G(h,sD),to.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"===A6("cache-tools")||"true"===process.env.CACHE_TOOLS)&&(await(0,rc.cacheDir)(r,e,A)),{installDir:u,binDir:h};}function eO(e,A,t){var r;let n=null!==(r=l(ra)(e))&&void 0!==r?r:e;switch(A){case"win32":{let A;let r=l(rl)(n,"v3.19.6");A=["ia32","x86","i386","x32"].includes(t)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";let o=`cmake-${e}-${A}`;return{binRelativeDir:"bin/",binFileName:(0,ri.addExeExt)("cmake"),extractedFolderName:o,extractFunction:eM,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.zip`};}case"darwin":{let A=l(rl)(n,"v3.19.1"),t=`cmake-${e}-${A?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,ri.addExeExt)("cmake"),extractedFolderName:t,extractFunction:ex,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`};}case"linux":{let A;let r=l(rl)(n,"v3.19.8");A=["aarch64"].includes(t)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";let o=`cmake-${e}-${A}`;return{binRelativeDir:"bin/",binFileName:(0,ri.addExeExt)("cmake"),extractedFolderName:o,extractFunction:ex,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${o}.tar.gz`};}default:throw Error(`Unsupported platform '${A}'`);}}function eY(e,A,t){return eG("cmake",e,eO,A,t);}function eJ(e,A){return new Promise(t=>{try{let r=(0,rH.request)(e,{method:A},e=>{t(void 0!==e.statusCode&&e.statusCode>=200&&e.statusCode<=399);});r.on("error",e=>{t(!1);}),r.end();}catch{t(!1);}});}function eH(e,A){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(A)).sort((e,A)=>{try{return l(rR)(e,A);}catch(t){return e.localeCompare(A);}}).reverse();}async function eP(e,A,t,r){if("linux"===A&&t.includes("ubuntu")){let e=await r(A,t);if(null!==e&&(await rb(e)))return[t,e];}if(!e.has(t))throw Error(`Unsupported target! (platform='${A}', version='${t}'). Try one of the following: ${JSON.stringify(e)}`);let n=[];for(let o of eH(e,t)){let e=await r(A,o);if(null!==e){if(await rb(e))return[o,e];n.push(e);}}throw Error(`Unsupported target! (platform='${A}', version='${t}'). Try one of the following: ${JSON.stringify(e)}`);}async function eV(e,A=i1){try{var t,r;let n=await(0,rI.getExecOutput)(e,["--version"]),o=n.stdout||n.stderr||"",i=null===(t=o.trim().match(A))||void 0===t?void 0:t[1];return null!==(r=l(ra)(i))&&void 0!==r?r:void 0;}catch(e){console.error(e);return;}}async function eq(e,A,t=i1){let r=await eV(e,t);return void 0!==r&&""!==A&&-1!==l(rR)(r,A);}function eW(){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 ej(e,A,t){let r=await ez(e,A,t);l(rW)(void 0!==r.bin);let n=r.bin;if(void 0===(await e1(n)))throw Error("pip was not installed correctly");return await eX(n),await e$(n),r;}async function eX(e){try{if(!(await An(e)))try{await Ar(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===Ac("pipx",!1))throw Error("pipx was not installed correctly "+e);}await d(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await Ar(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,ti.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function e$(e){try{await Ar(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await Ar(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,ti.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function ez(e,A,t){let r;let n=await eK(A);if(void 0!==n){let e=(0,ri.dirname)(n);r={bin:n,installDir:e,binDir:e};}else{if(to.GITHUB_ACTIONS)try{(0,ti.info)("Installing python in GitHub Actions");let{setupActionsPython:o}=await nE("99cnM");if(await o(e,A,t),n=await eK(A),void 0===n)throw Error("Python binary could not be found");let i=(0,ri.dirname)(n);r={bin:n,installDir:i,binDir:i};}catch(e){(0,ti.warning)(e.toString());}void 0===r&&(r=await eZ(A,e));}if(void 0===n||void 0===r.bin){if(void 0===(n=await eK(A)))throw Error("Python binary could not be found");r.bin=n;}return r;}async function eZ(e,A){let t;switch(process.platform){case"win32":{e?await eI("python3",A,["--params=/InstallDir:"+e]):await eI("python3",A);let r=await eK(e);if(void 0===r)throw Error("Python binary could not be found");let n=(0,ri.dirname)(r);await G(n,sD),t={installDir:n,binDir:n,bin:r};break;}case"darwin":{t=await eQ("python3",A);let e=await d("brew",["--prefix","python"],{stdio:"pipe"}),r=(0,ri.join)(e.stdout,"libexec","bin");await G(r,sD);break;}case"linux":if(eE())t=await ep("python",A);else if(ec())t=await eB([{name:"python3",version:A}]);else if(eg())t=await $([{name:"python3",version:A},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return t;}async function eK(e){for(let A of["python3","python"]){let t=await e0(A,e);if(void 0!==t)return t;}if("win32"===process.platform){let e=(0,rG.parse)((0,r_.homedir)()).root;for(let A of(await(0,tL.readdir)(e)).filter(e=>e.startsWith("Python")))for(let t of["python3","python"]){let r=await e0(t,(0,ri.join)(e,A));if(void 0!==r)return r;}}}async function e0(e,A){try{var t;if(void 0!==A){let t=(0,ri.join)(A,(0,ri.addExeExt)(e));if((await(0,tJ.pathExists)(t))&&(await eq(t,i4.python)))return t;}for(let A of null!==(t=await l(tN)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(await eq(A,i4.python))return A;}catch{}}async function e1(e){let A=await e2();return void 0===A?((0,ti.info)("pip was not found. Installing pip"),await e9(e),e2()):A;}async function e2(){for(let e of["pip3","pip"]){let A=await e4(e);if(void 0!==A)return A;}}async function e4(e){try{var A;for(let t of null!==(A=await l(tN)(e,{nothrow:!0,all:!0}))&&void 0!==A?A:[])if(await eq(t,i4.pip))return t;}catch{}}async function e9(e){(await e8(e))||(await Ac("pip"),await e8(e));}async function e8(e){try{return await d(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(A){(0,ti.info)(A.toString());try{return await d(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,ti.info)(e.toString());}}return!1;}async function e3(e){let A=[];"linux"===process.platform?A.push("/home/runner/.local/bin/"):"darwin"===process.platform&&A.push("/usr/local/bin/");let t=(await(0,rI.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return A.push((0,ri.join)(t,"Scripts"),(0,ri.join)(t,"Scripts","bin"),(0,ri.join)(t,"bin")),[...new Set(A)];}function e5(e,A,t=null){return e6(A)&&"linux"===process.platform&&null!==t&&e in i9?function(e,A){let t=e[0],r=Object.keys(A).map(e=>Number.parseInt(e,10)).sort((e,A)=>A-e).find(e=>t>=e);return void 0===r?"":A[r];}(t,i9[e]):e6(A)&&e in i2?i2[e]:"true"===A?"":null!=A?A:"";}function e6(e){return"true"===e||void 0===e;}async function e7(){var e,A;if("linux"!==process.platform)return[];let t=await(e="lsb_release",A=["-a"],new Promise((t,r)=>{r7.execFile(e,A,{encoding:"utf8",shell:!1},(n,o,i)=>{if(n){if("errno"in n&&"ENOENT"===n.code){t(null);return;}r(Error(`Could not execute \`${e} ${A.join(" ")}\`: ${n} (stderr=${i})`));return;}t(o);});}));if(null===t)return[];let r=null,n=null,o=!1;for(let e of t.split("\n")){let A=e.match(/^Distributor ID:\s*(.+)$/);if(null!==A){if("Ubuntu"!==A[1])return[];o=!0;}let t=e.match(/^Description:\s*Ubuntu\s+(\d+)\.(\d+)(?:\.(\d+))?/);t&&(r=t);let i=e.match(/^Release:\s*(\d+)\.(\d+)(?:\.(\d+))?$/);if(i&&(n=i),o&&r&&n)break;}if(!o)return[];for(let e of[r,n])if(e){let A=[e[1],e[2]];return e[3]&&A.push(e[3]),A.map(e=>parseInt(e,10));}return[];}async function Ae(){try{if(!eg())return null;{try{null===l(tN).sync("lsb_release",{nothrow:!0})&&(await $([{name:"lsb-release"}]));}catch{return AA();}let e=await(0,rS.getUbuntuVersion)();if(0===e.length)return AA();return e;}}catch(e){return(0,ti.warning)(e.toString()),null;}}function AA(){if(!("version"in l(r_)&&"function"==typeof l(r_).version))return null;let e=l(r_).version().split("."),A=Number.parseInt(e[0].replace("#",""),10);return[A,Number.parseInt(e[1].replace("~",""),10),Number.parseInt(e[2].split("-")[0],10)];}async function At(e,A,t={}){return Ar(await i7(),e,A,t);}async function Ar(e,A,t,r={}){let{usePipx:n=!0,user:o=!0,upgrade:i=!1,isLibrary:s=!1}=r,a=n&&!s&&(await An(e)),l=a?"pipx":"pip";if(await Aa(e,A))try{(0,ts.info)(`Installing ${A} ${null!=t?t:""} via ${l}`);let r=void 0!==t&&""!==t?`${A}==${t}`:A,n=process.env;a&&o&&(n.PIPX_HOME=await i5(),n.PIPX_BIN_DIR=await i6()),f(e,["-m",l,...(i?a?["upgrade"]:["install","--upgrade"]:["install"]),...(!a&&o?["--user"]:[]),r],{stdio:"inherit",env:n});}catch(e){if((0,ts.info)(`Failed to install ${A} via ${l}: ${e}.`),(await Ac(A))===null)throw Error(`Failed to install ${A} via ${l}: ${e}.`);}else if((await Ac(A))===null)throw Error(`Failed to install ${A} as it was not found via ${l} or the system package manager`);let c=await i8(e),E=await Al(c,A);return await G(E,sD),{binDir:E};}async function An(e){return 0===(await d(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function Ao(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let A=F("~/.local/pipx");if(await(0,tJ.pathExists)(A))return A;switch(process.platform){case"win32":e=F("~/AppData/Local/pipx");break;case"darwin":e=F("~/Library/Application Support/pipx");break;default:e=F("~/.local/share/pipx");}return await i0(e),await i0((0,ri.join)(e,"trash")),await i0((0,ri.join)(e,"shared")),await i0((0,ri.join)(e,"venv")),e;}async function Ai(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=F("~/.local/bin");return await G(e,sD),await i0(e),e;}async function As(){let e=(await ej(e5("python",void 0,await i3()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function Aa(e,A){return 0===(await d(e,["-m","pip","-qq","index","versions",A],{stdio:"ignore",reject:!1})).exitCode;}async function Al(e,A){let t=(await Promise.all(e.map(e=>(0,tJ.pathExists)((0,ri.join)(e,(0,ri.addExeExt)(A)))))).findIndex(e=>e);if(-1!==t)return e[t];let r=l(tN).sync((0,ri.addExeExt)(A),{nothrow:!0});return null!==r?(0,ri.dirname)(r):e[e.length-1];}function Ac(e,A=!0){if("linux"===process.platform){if((0,ts.info)(`Installing ${e} via the system package manager`),eE())return ep(A?"python-"+e:e);if(ec())return eB([{name:A?"python3-"+e:e}]);if(eg())return $([{name:A?"python3-"+e:e}]);}return null;}async function AE(e,A,t){switch(process.platform){case"win32":return await eI("cppcheck",e),{binDir:await Ag()};case"darwin":return eQ("cppcheck",e);case"linux":if(eE())return ep("cppcheck",e);if(ec())return eB([{name:"ccache",version:e}]);if(eg())return $([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Ag(){let e="C:/Program Files/Cppcheck";return await G(e,sD),e;}async function Au(e,A,t){switch(process.platform){case"win32":return await eI("graphviz",e),Ah();case"darwin":return eQ("graphviz",e);case"linux":if(eE())return ep("graphviz",e);if(ec())return eB([{name:"graphviz",version:e}]);if(eg())return $([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Ah(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await G(e,sD),{binDir:e};}throw Error("Unsupported platform");}async function AQ(e,A){let{ArchiveHdi:t}=await nE("iH0rS"),r=new t(e);await r.read(async e=>{await e.extract((0,rG.join)(A,e.path));});}function AC(e,A,t){switch(A){case"linux":{let A="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,ri.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:rc.extractTar,url:`https://www.doxygen.nl/files/${A}.linux.bin.tar.gz`};}case"win32":{let A="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,ri.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:eM,url:`https://www.doxygen.nl/files/${A}.windows.x64.bin.zip`};}case"darwin":{let A="Doxygen-"+e;return{binRelativeDir:"Doxygen/Doxygen.app/Contents/Resources/",binFileName:(0,ri.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:AQ,url:`https://doxygen.nl/files/${A}.dmg`};}default:throw Error(`Unsupported platform '${A}'`);}}async function AI(e,A,t){switch(process.platform){case"win32":{await l(rm)(()=>eI("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,ti.info)(e)});let A=await AB();return await Au(e5("graphviz",void 0),"",t),{binDir:A};}case"darwin":{let e=await eQ("doxygen",void 0);return sA()[0]>11&&(await Au(e5("graphviz",void 0),"",t)),e;}case"linux":{let r;if(""===e||eE()||ec()){if(eE())r=await ep("doxygen",e);else if(ec())return eB([{name:"doxygen",version:e}]);else if(eg())r=await $([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(eg())try{r=await eG("doxygen",e,AC,A,t);try{await $([{name:"libclang-cpp9"}]);}catch(e){(0,ti.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,ti.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),r=await $([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await Au(e5("graphviz",void 0,await i3()),"",t),r;}default:throw Error("Unsupported platform");}}async function AB(){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,tJ.pathExists)((0,ri.join)(e,"doxygen.exe")))return await G(e,sD),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function Ad(){if("darwin"===process.platform)try{let e=await(0,rI.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),A=e.stdout||e.stderr;A?await x("SDKROOT",A.trim(),sD):(0,ti.error)("SDKROOT not set");}catch(e){(0,ti.error)(e);}}function Af(e,A,t){if("win32"===A){let A=st[e];if(void 0===A)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,ri.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eL,url:`https://github.com/brechtsanders/winlibs_mingw/releases/download/${A.releaseName}/winlibs-${"ia32"===t?"i686":"x86_64"}-posix-seh-gcc-${A.fileSuffix}.7z`};}throw Error(`Unsupported platform '${A}'`);}async function Ap(e,A,t,r=40){let n;switch(process.platform){case"win32":("arm"===t||"arm64"===t)&&(await eI("gcc-arm-embedded",e));try{n=await eG("g++",e,Af,A,t);}catch(A){(0,ti.info)(`Failed to download g++ binary. ${A}. Falling back to chocolatey.`),n=await Am(e,t);}break;case"darwin":n=await eQ("gcc",e);break;case"linux":"x64"===t?eE()?n=await ep("gcc",e):ec()?n=await eB([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):eg()&&(n=await $([{name:"gcc",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]},{name:"g++",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])):((0,ti.info)(`Install g++-multilib because gcc for ${t} was requested`),eE()?await ep("gcc-multilib",e):eg()&&(await $([{name:"gcc-multilib",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}])));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==n)return await Aw(e,n.binDir,r),n;}async function Ay(e,A,t){let r;switch(process.platform){case"win32":case"darwin":return Ap(e,A,t);case"linux":eE()?r=await ep("mingw-w64-gcc",e):ec()?r=await eB([{name:"mingw64-gcc",version:e}]):eg()&&(r=await $([{name:"mingw-w64",version:e,repositories:["ppa:ubuntu-toolchain-r/test"]}]));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==r)return r;}async function Am(e,A){var t,r;let n;if(await eI("mingw",e),"x64"===A&&(await(0,tJ.pathExists)("C:/tools/mingw64/bin"))?(n="C:/tools/mingw64/bin",await G(n,sD)):"ia32"===A&&(await(0,tJ.pathExists)("C:/tools/mingw32/bin"))?(n="C:/tools/mingw32/bin",await G(n,sD)):(await(0,tJ.pathExists)(`${null!==(t=process.env.ChocolateyInstall)&&void 0!==t?t:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(n=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`),void 0!==n)return{binDir:n};}async function Aw(e,A,t=40){let r=[];if("win32"===process.platform)r.push(x("CC",(0,ri.addExeExt)(`${A}/gcc`),sD),x("CXX",(0,ri.addExeExt)(`${A}/g++`),sD));else{var n;let o=l(rk)(null!==(n=l(ra)(e))&&void 0!==n?n:e);o>=5?(r.push(x("CC",`${A}/gcc-${o}`,sD),x("CXX",`${A}/g++-${o}`,sD)),eg()&&r.push(q("cc",`${A}/gcc-${o}`,sD,t),q("cxx",`${A}/g++-${o}`,sD,t),q("gcc",`${A}/gcc-${o}`,sD,t),q("g++",`${A}/g++-${o}`,sD,t))):(r.push(x("CC",`${A}/gcc-${e}`,sD),x("CXX",`${A}/g++-${e}`,sD)),eg()&&r.push(q("cc",`${A}/gcc-${e}`,sD,t),q("cxx",`${A}/g++-${e}`,sD,t),q("gcc",`${A}/gcc-${e}`,sD,t),q("g++",`${A}/g++-${e}`,sD,t)));}r.push(Ad()),to.GITHUB_ACTIONS&&(await Ab()),await Promise.all(r);}async function Ab(){let e=(0,ri.join)(rv,"gcc_matcher.json");if(!(await(0,tJ.pathExists)(e)))return(0,ti.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,ti.info)("::add-matcher::"+e);}function AR(e,A,t){let r=function(e){switch(e){case"win32":return"win";case"darwin":return"mac";case"linux":return"linux";default:throw Error(`Unsupported platform '${e}'`);}}(A);return{binRelativeDir:"",binFileName:(0,ri.addExeExt)("ninja"),extractedFolderName:"",extractFunction:eM,url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`};}function AD(e,A,t){return eG("ninja",e,AR,A,t);}function AS(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,ri.addExeExt)("kcov"),extractFunction:ex};}function Ak(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,ri.addExeExt)("kcov"),extractFunction:Av};}async function Av(e,A){let t=await ex(e,A,1),r=await AN();"linux"===process.platform&&(eE()?await Promise.all([ep("libdwarf"),ep("libcurl-openssl")]):ec()?await eB([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):eg()&&(await $([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==l(tN).sync("patch",{nothrow:!0})){let e=(0,ri.join)(rN,"gcc13.patch");await d("patch",["-N","-p1","-i",e],{cwd:t,stdio:"inherit"});}else(0,ti.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let n=(0,ri.join)(t,"build");return await d(r,["-S",t,"-B",n,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:t,stdio:"inherit"}),await d(r,["--build",n,"--config","Release"],{cwd:t,stdio:"inherit"}),t;}async function AN(){let e=l(tN).sync("cmake",{nothrow:!0});if(null===e){let{binDir:A}=await eY(e5("cmake",void 0,await i3()),(0,ri.join)(F("~"),"cmake"),"");e=(0,ri.join)(A,"cmake");}return null===l(tN).sync("ninja",{nothrow:!0})&&(await AD(e5("ninja",void 0,await i3()),(0,ri.join)(F("~"),"ninja"),"")),e;}async function AF(e,A,t){var r;let n;if("linux"!==process.platform){(0,ti.info)("Kcov is not supported on non-linux");return;}let o=e.split("-"),i=(r=o[0]).match(/^v/)?r:"v"+r,s=o[1],a=Number.parseInt(i.replace(/^v/,""),10);return 38===a&&(i="v38"),"binary"===s&&a>=39?(n=await eG("kcov",i,AS,A,t),eE()?await ep("binutils"):ec()?await eB([{name:"binutils"}]):eg()&&(await $([{name:"libbinutils"}]))):n=await eG("kcov",i,Ak,A,t),n;}function AL(e){if(Object.values(sE).includes(e));else if(e in sE)return sE[e];return e;}function AU(e){let A;let t=AL(e);if(t){let e=t.split(".")[0]+".9";A=`-version "${t},${e}"`;}else A="-latest";let r=function(e,A){try{return r7.execSync(`vswhere -products * ${A} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){ts.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",A);if(r&&rO.existsSync(r))return ts.info("Found with vswhere: "+r),r;ts.info("Not found with vswhere");let n=e?[function(e){if(Object.keys(sE).includes(e));else for(let[A,t]of Object.entries(sE))if(t===e)return A;return e;}(e)]:sc;for(let e of sa)for(let A of n)for(let t of sl)if(r=`${e}\\Microsoft Visual Studio\\${A}\\${t}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,ts.info("Trying standard location: "+r),rO.existsSync(r))return ts.info("Found standard location: "+r),r;if(ts.info("Not found in standard locations"),r=`${ss}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,rO.existsSync(r))return ts.info("Found VS 2015: "+r),r;throw ts.info("Not found in VS 2015 location: "+r),Error("Microsoft Visual Studio not found");}async function AT(e,A,t,r,n,o,i){void 0!==A&&(await(0,tJ.pathExists)(A))&&((0,ti.info)(`Adding ${A} to PATH`),await x("VCTargetsPath",A,sD)),await rU(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(t),n,r,o,i,e);}async function AM(e,A,t,r,n,o,i,s=su){(0,ts.startGroup)(`Installing ${e} ${A}`);let a=!1;try{a=await function(e,A){let t;let{milliseconds:r,fallback:n,message:o,customTimers:i={setTimeout:setTimeout,clearTimeout:clearTimeout}}=A,s=new Promise((s,a)=>{if("number"!=typeof r||1!==Math.sign(r))throw TypeError(`Expected \`milliseconds\` to be a positive number, got \`${r}\``);if(A.signal){let{signal:e}=A;e.aborted&&a(si(e)),e.addEventListener("abort",()=>{a(si(e));});}if(r===Number.POSITIVE_INFINITY){e.then(s,a);return;}let l=new sr();t=i.setTimeout.call(void 0,()=>{if(n){try{s(n());}catch(e){a(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===o?s():o instanceof Error?a(o):(l.message=null!=o?o:`Promise timed out after ${r} milliseconds`,a(l));},r),(async()=>{try{s(await e);}catch(e){a(e);}})();}).finally(()=>{s.clear();});return s.clear=()=>{i.clearTimeout.call(void 0,t),t=void 0;},s;}(Ax(e,A,t,r,n,o),{milliseconds:s,message:`Timeout while installing ${e} ${A}. You can increase the timeout from options`});}catch(A){(0,ti.error)(A),A instanceof Error&&void 0!==A.stack&&(0,ti.error)(A.stack),i.push(`${e} failed to install`);}return(0,ts.endGroup)(),a;}async function Ax(e,A,t,r,n,o){let i;let s=["llvm","clangformat","clangtidy"].includes(e);if("vcvarsall"===e)await AT(e5(e,A,t),void 0,r,void 0,void 0,!1,!1);else{let o=sw[e],a=(0,ri.join)(n,s?"llvm":e);i=await o(e5(e,A,t),a,r);}return o.push(A7(e,i)),s;}async function A_(e,A=0){let t="/usr/lib/llvm-"+e;await $([{name:"curl"}]),await d("curl",["-LJO","https://apt.llvm.org/llvm.sh"],{cwd:"/tmp"});let r=await AG("/tmp/llvm.sh","/tmp/llvm-setup-cpp.sh",e,A);return await $(r),await(0,tL.chmod)("/tmp/llvm-setup-cpp.sh","755"),await w("bash",["/tmp/llvm-setup-cpp.sh",""+e,...(0===A?["all"]:[])],{stdio:"inherit",shell:!0,timeout:su}),await G(`${t}/bin`,sD),{installDir:""+t,binDir:`${t}/bin`,bin:`${t}/bin/clang++`};}async function AG(e,A,t,r){var n,o,i,s,a;let l=await(0,tL.readFile)(e,"utf-8");return o=r,i=l=(n=l,l="1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?n.replace(/set -eux/g,"set -eu"):n).replace(/add-apt-repository "\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}" apt-get update -o ${iQ} -y`),s=t,l=1===o?i.replace(/ -y \$PKG/g," -y clang-format-"+s):i,a=l=await AO(l),l=z()?a.replace(/apt-get/g,"nala"):a,await(0,tL.writeFile)(A,l),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function AO(e){let A=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${iQ} -y --fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let t=e.replace("$LLVM_VERSION","*");(await j(t))&&((0,r9.info)("Removing conflicting package "+t),A=A.replace(e,""));})),A;}function AY(e,A,t){let r=`${A}${e}${t}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${r}`;}function AJ(e,A,t){let r=`${A}${e}${t}`;return`https://releases.llvm.org/${e}/${r}`;}async function AH(e){let A;if(sQ.has(e))return null;let t="LLVM-",r=l(rl)(e,"3.7.0")?"-win32.exe":"-win64.exe",n=l(rl)(e,"9.0.1"),o=!1;return n&&(A=AJ(e,t,r),(await rb(A))||(o=!0)),(o||!n)&&(A=AY(e,t,r)),A;}function AP(e,A){switch(e){case"darwin":return function(e){if(sC.has(e))return null;let A="9.0.0"===e?"-darwin-apple":"-apple-darwin",t="clang+llvm-",r=`-x86_64${A}.tar.xz`;return l(rl)(e,"9.0.1")?AJ(e,t,r):AY(e,t,r);}(A);case"linux":return function(e){let A,t,r=e,n=sI.get(r);if(void 0!==n&&(r=n),r.includes("ubuntu")){let e=r.replace(/-ubuntu-.*/,"");if(!sh.has(e))throw Error("Unsupported Ubuntu version: "+e);A=r.replace(e,""),r=eH(sh,e)[0];}else""!==r&&r in sB?A=sB[r]:(A=sB[sd],(0,ti.warning)(`Falling back to LLVM version ${sd} ${A} for the Ubuntu.`));let o="clang+llvm-";return(t="5.0.0"===r?`-linux-x86_64${A}.tar.xz`:A.includes("-rhel86")?`-x86_64-unknown-linux-gnu${A}.tar.xz`:`-x86_64-linux-gnu${A}.tar.xz`,l(rl)(r,"9.0.1"))?AJ(r,o,t):AY(r,o,t);}(A);case"win32":return AH(A);default:return null;}}async function AV(e,A,t){let[r,n]=await eP(sh,A,e,AP);return(0,ti.info)("specific llvm version: "+r),{url:n,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,ri.addExeExt)("clang"),extractFunction:"win32"===A?eT:(e,A)=>ex(e,A,1)};}async function Aq(e,A,t){var r;let n=await sf(e,A,t);return await Az(null!==(r=n.installDir)&&void 0!==r?r:A),n;}async function AW(e,A,t){let[r,n]=await Promise.all([Aj(e,A,t),AZ()]);return await sy(t),r;}async function Aj(e,A,t,r=rT.All){let n=Number.parseInt(function(e){if(null===l(rD)(e))try{let A=l(ra)(e);if(null!==A)return(0,ti.info)(`Coerced version '${e}' to '${A}'`),A.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(eg())return await A_(n,r);}catch(e){(0,ti.info)("Failed to install llvm via system package manager "+e);}let o=await eG("llvm",e,AV,A,t);return await sp(n),o;}async function AX(e){eg()&&(e<=10?await $([{name:"libtinfo5"}]):await $([{name:"libtinfo-dev"}]));}async function A$(e){"linux"===process.platform&&(await Ap(e5("gcc",void 0,await i3()),"",e,40));}async function Az(e){var A,t;let r=null!==(A=process.env.LD_LIBRARY_PATH)&&void 0!==A?A:"",n=null!==(t=process.env.DYLD_LIBRARY_PATH)&&void 0!==t?t:"",o=[x("LLVM_PATH",e,sD),x("LD_LIBRARY_PATH",`${e}/lib${rG.delimiter}${r}`,sD),x("DYLD_LIBRARY_PATH",`${e}/lib${rG.delimiter}${n}`,sD),x("LDFLAGS",`-L"${e}/lib"`,sD),x("CPPFLAGS",`-I"${e}/include"`,sD),x("CC",(0,ri.addExeExt)(`${e}/bin/clang`),sD),x("CXX",(0,ri.addExeExt)(`${e}/bin/clang++`),sD),x("LIBRARY_PATH",`${e}/lib`,sD),Ad()];eg()&&o.push(q("cc",`${e}/bin/clang`,sD,60),q("cxx",`${e}/bin/clang++`,sD,60),q("clang",`${e}/bin/clang`,sD),q("clang++",`${e}/bin/clang++`,sD),q("lld",`${e}/bin/lld`,sD),q("ld.lld",`${e}/bin/ld.lld`,sD),q("llvm-ar",`${e}/bin/llvm-ar`,sD)),await Promise.all(o);}async function AZ(){if(to.GITHUB_ACTIONS){let e=(0,ri.join)(rM,"llvm_matcher.json");if(!(await(0,tJ.pathExists)(e)))return(0,ti.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,ti.info)("::add-matcher::"+e);}}async function AK(e,A,t){switch(process.platform){case"win32":return eI("make",e);case"darwin":return await eQ("make",e),await G("/usr/local/opt/make/libexec/gnubin",sD),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(eE())return ep("make",e);if(ec())return eB([{name:"make",version:e}]);if(eg())return $([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function A0(e,A,t,r,n,o){let i,s;if("win32"!==process.platform)return;let a=rF(e);(0,ti.info)(`Checking if MSVC ${a} is already installed`);let l=!1;try{let e=rL(a);l=!0,(0,ti.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!l)try{"14.0"===a?(i="14.0",await eI("visualcpp-build-tools","14.0.25420.1",["--ignore-dependencies"]),s="C:/Program Files (x86)/MSBuild/Microsoft.Cpp/v4.0/v140"):"15.0"===a?(i="14.16",await eI("visualstudio2017buildtools","15.9.41.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2017/BuildTools/VC/Tools/MSVC/14.16"):"16.0"===a?(i="14.29",await eI("visualstudio2019buildtools","16.11.7.0",[]),s="C:/Program Files (x86)/Microsoft Visual Studio/2019/BuildTools/VC/Tools/MSVC/14.29.30133"):"17.0"===a?(i=void 0,await eI("visualstudio2022buildtools","117.0.5.0",[]),s=void 0):(0,ti.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,ti.error)(e);}await AT(a,s,t,i,r,n,o),to.GITHUB_ACTIONS&&(await A1());}async function A1(){let e=(0,ri.join)(rx,"msvc_matcher.json");if(!(await(0,tJ.pathExists)(e)))return(0,ti.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,ti.info)("::add-matcher::"+e);}async function A2(e,A,t){if(!eg())return;if("string"==typeof n)return{binDir:n};let r=l(tN).sync("nala",{nothrow:!0});if(null!==r)return{binDir:n=(0,ri.dirname)(r)};await $([{name:"python3-apt"}]);let o=await el("volian-archive-nala.gpg","https://deb.volian.org/volian/nala.key");m("/bin/bash",["-c",`echo "deb [signed-by=${o}] http://deb.volian.org/volian/ nala main" | tee /etc/apt/sources.list.d/volian-archive-nala.list`]);try{"legacy"!==e?await $([{name:"nala"}],!0):await $([{name:"nala-legacy"}],!0);}catch(e){await $([{name:"nala-legacy"}],!0);}return{binDir:n="/usr/bin"};}async function A4(e,A,t){if("win32"===process.platform)return await eI("opencppcoverage",e),{binDir:await A9()};}async function A9(){let e="C:/Program Files/OpenCppCoverage";return await G(e,sD),e;}async function A8(e,A,t){switch(process.platform){case"win32":{await eI("powershell-core",e);let A="C:/Program Files/PowerShell/7";return await G(A,sD),{binDir:A};}case"darwin":return eQ("powershell",e,["--cask"]);case"linux":if(eE())return ep("powershell-bin",e,"yay");if(ec())return await eB([{name:"curl"}]),m("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),eB([{name:"powershell",version:e}]);if(eg()){await $([{name:"curl"}]);let A=await i3(),t=`${A[0]}.0${A[1]}`;return m("curl",["-LJO",`https://packages.microsoft.com/config/ubuntu/${t}/packages-microsoft-prod.deb`]),m("dpkg",["-i","packages-microsoft-prod.deb"]),$([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function A3(e,A,t){var r;let n="win32"===(r=A)?"windows":r,o=function(e){switch(e){case"x64":return"amd64";case"ia32":case"x86":case"i386":case"x32":return"386";default:return e;}}(t),i="win32"===A;return{binRelativeDir:"",binFileName:(0,ri.addExeExt)("task"),extractedFolderName:"",extractFunction:i?eM:ex,url:`https://github.com/go-task/task/releases/download/v${e}/task_${n}_${o}.${i?"zip":"tar.gz"}`};}async function A5(e,A,t){return sm&&null!==l(tN).sync("vcpkg",{nothrow:!0})?{binDir:(0,ri.dirname)(l(tN).sync("vcpkg"))}:("linux"===process.platform&&(eE()?await Promise.all([ep("curl"),ep("zip"),ep("unzip"),ep("tar"),ep("git"),ep("pkg-config")]):ec()?await eB([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):eg()&&(await $([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,tJ.pathExists)((0,ri.join)(A,(0,ri.addShExt)("bootstrap-vcpkg",".bat"))))?(0,ti.notice)(`Vcpkg folder already exists at ${A}. Skipping the clone`):f("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,ri.dirname)(A),stdio:"inherit"}),""!==e&&"true"!==e&&((0,ti.info)("Checking out vcpkg version "+e),f("git",["checkout",e],{cwd:A,stdio:"inherit"})),f((0,ri.addShExt)((0,ri.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:A,shell:!0,stdio:"inherit"}),await D(A),await G(A,sD),sm=!0,{binDir:A});}function A6(e){let A=(0,ts.getInput)(e.toLowerCase());if("false"!==A&&""!==A)return A;}function A7(e,A){let t=`\u{2705} ${e} was installed successfully:`;return void 0===A||("installDir"in A&&(t+="\n- The installation directory is "+A.installDir),""!==A.binDir&&(t+="\n- The binary directory is "+A.binDir)),t;}async function te(e,A,t,r,n,o,i){try{let{compiler:s,version:a}=function(e){let A=e.split("-"),t=A[0];if(1 in A){let e=A[1];return null!==l(rD)(e)||(0,ti.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:t,version:e};}return{compiler:t,version:void 0};}(e);switch((0,ts.startGroup)(`Installing ${s} ${null!=a?a:""}`),s){case"llvm":case"clang":case"clang++":{let e=await Aq(e5("llvm",a,A),(0,rG.join)(t,"llvm"),r);await x("GCOV","llvm-cov gcov",sD),n.push(A7("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===s?e5("mingw",a,A):e5("gcc",a,A),i="mingw"===s?await Ay(e,(0,rG.join)(t,"gcc"),r):await Ap(e,(0,rG.join)(t,"gcc"),r);o&&(await x("CPPFLAGS","",sD)),await function(e){let A=l(rD)(e),t=null!==A?l(rk)(A):e;return x("GCOV",""!==t?"gcov-"+t:"gcov",sD);}(e),n.push(A7("gcc",i));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await A0(e5("msvc",a,A),(0,rG.join)(t,"msvc"),r);o&&(await x("CPPFLAGS","",sD)),n.push(A7("msvc",e));break;}case"appleclang":case"applellvm":(0,ts.notice)("Assuming apple-clang is already installed"),await Promise.all([x("CC","clang",sD),x("CXX","clang++",sD)]),n.push(A7("apple-clang",void 0));break;default:i.push("Unsupported compiler "+s);}}catch(A){(0,ti.error)(A),i.push("Failed to install the "+e);}(0,ts.endGroup)();}async function tA(e){var A,t,r;let n,o,i=Promise.resolve();to.GITHUB_ACTIONS||(i=H(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,A){A=A||{};var t,r,n,o,i,s={_:[]},a=0,l=0,c=0,E=(e=e||[]).length;let g=void 0!==A.alias,u=void 0!==A.unknown,h=void 0!==A.default;if(A.alias=A.alias||{},A.string=P(A.string),A.boolean=P(A.boolean),g)for(t in A.alias)for(a=0,r=A.alias[t]=P(A.alias[t]);a0;)for(l=(r=A.alias[A.boolean[a]]||[]).length;l-->0;)A.boolean.push(r[l]);for(a=A.string.length;a-->0;)for(l=(r=A.alias[A.string[a]]||[]).length;l-->0;)A.string.push(r[l]);if(h){for(t in A.default)if(o=typeof A.default[t],r=A.alias[t]=A.alias[t]||[],void 0!==A[o])for(A[o].push(t),a=0;aa;a++){if("--"===(n=e[a])){s._=s._.concat(e.slice(++a));break;}for(l=0;l0;)s[r.shift()]=s[t];return s;}(e,{string:[...sR,"timeout"],default:Object.fromEntries(sR.map(e=>[e,A6(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,ti.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 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 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:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(A=s.architecture)&&void 0!==A?A:process.arch,c=null!==(t=process.env.SETUP_CPP_DIR)&&void 0!==t?t:F("~"),E=[],g=[],u=tW.create({autoloadLocales:!0});tW.addLocale(l(tj)),tV.addLocale(l(tq));let h=await i3();if(!function(e,A){let t=A.filter(A=>void 0!==e[A]),r=t.filter(A=>!e6(e[A])),n=r.length>=1?e[r[0]]:"true";if(r.some(A=>e[A]!==n))return!1;for(let A of t)e[A]=n;return!0;}(s,["llvm","clangtidy","clangformat"]))return(0,ti.error)("The same version must be used for llvm, clangformat and clangtidy"),1;eE()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,ti.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await ep("python-pygments"));let Q=!1,C=!1;for(let e of sb){if(to.isCI&&0!==g.length){C=!0;break;}let A=s[e];void 0!==A&&(n=Date.now(),Q=await AM(e,A,h,a,c,E,g,6e4*Number.parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),o=Date.now(),(0,ti.info)("took "+(u.format(n,o)||"0 seconds")));}if(!C){let e=s.compiler;if(void 0!==e){let A=Date.now();await te(e,h,c,a,E,Q,g);let t=Date.now();(0,ti.info)("took "+(u.format(A,t)||"0 seconds"));}}if(await M(sD),0===E.length&&0===g.length)return(0,ti.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of E)(0,ti.success)(e);for(let e of g)(0,ti.error)(e);if((0,ti.info)("setup-cpp finished"),!to.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,ti.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,ti.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await i,0===g.length?0:1;}var tt,tr,tn,to,ti,ts,ta,tl,tc,tE,tg,tu,th,tQ,tC,tI,tB,td,tf,tp,ty,tm,tw,tb,tR,tD,tS,tk,tv,tN,tF,tL,tU,tT,tM,tx,t_,tG,tO,tY,tJ,tH,tP,tV,tq,tW,tj,tX,t$,tz,tZ,tK,t0,t1,t2,t4,t9,t8,t3,t5,t6,t7,re,rA,rt,rr,rn,ro,ri,rs,ra,rl,rc,rE,rg,ru,rh,rQ,rC,rI,rB,rd,rf,rp,ry,rm,rw,rb,rR,rD,rS,rk,rv,rN,rF,rL,rU,rT,rM,rx,r_=require("os"),rG=require("path"),rO=require("fs"),rY=require("crypto"),rJ=require("http"),rH=require("https"),rP=require("net"),rV=require("tls"),rq=require("events"),rW=require("assert"),rj=require("util"),rX=require("stream"),r$=require("buffer"),rz=require("querystring"),rZ=require("stream"),rK=require("util"),r0=require("events"),r1=require("perf_hooks"),r2=require("worker_threads"),r4=require("async_hooks"),r9=require("console"),r8=require("url"),r3=require("zlib"),r5=require("string_decoder"),r6=require("fs"),r7=require("child_process"),ne=require("timers"),nA=require("buffer"),nt=require("path"),nr=require("child_process"),nn=require("process"),no=require("url"),ni=require("os"),ns=require("process"),na=globalThis,nl={},nc={},nE=na.parcelRequire810d;null==nE&&((nE=function(e){if(e in nl)return nl[e].exports;if(e in nc){var A=nc[e];delete nc[e];var t={id:e,exports:{}};return nl[e]=t,A.call(t.exports,t,t.exports),t.exports;}var r=Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r;}).register=function(e,A){nc[e]=A;},na.parcelRequire810d=nE),(tn=nE.register)("dKklS",function(e,A){var t;function r(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!n[e];}):Object.keys(e).every(function(A){return n[A]===e[A];});}t=nE("ksAXT");let n=process.env;Object.defineProperty(e.exports,"_vendors",{value:t.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,t.forEach(function(A){let t=(Array.isArray(A.env)?A.env:[A.env]).every(function(e){return r(e);});if(e.exports[A.constant]=t,t)switch(e.exports.name=A.name,typeof A.pr){case"string":e.exports.isPR=!!n[A.pr];break;case"object":"env"in A.pr?e.exports.isPR=A.pr.env in n&&n[A.pr.env]!==A.pr.ne:"any"in A.pr?e.exports.isPR=A.pr.any.some(function(e){return!!n[e];}):e.exports.isPR=r(A.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==n.CI&&(n.BUILD_ID||n.BUILD_NUMBER||n.CI||n.CI_APP_ID||n.CI_BUILD_ID||n.CI_BUILD_NUMBER||n.CI_NAME||n.CONTINUOUS_INTEGRATION||n.RUN_ID||e.exports.name));}),tn("ksAXT",function(e,A){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"}]');}),tn("pcnv8",function(e,A){var t,r;function n(e){return r.GITHUB_ACTIONS?t.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function o(e){return console.log(`\x1b[32m${e}\x1b[0m`);}function i(e){return r.GITHUB_ACTIONS?t.warning(e):console.log(`\x1b[33m${e}\x1b[0m`);}function s(e){return r.GITHUB_ACTIONS?t.notice(e):console.log(`\x1b[94m${e}\x1b[0m`);}function l(e){return r.GITHUB_ACTIONS?t.info(e):console.log(e);}a(e.exports,"error",()=>n),a(e.exports,"success",()=>o),a(e.exports,"warning",()=>i),a(e.exports,"notice",()=>s),a(e.exports,"info",()=>l),t=nE("k1l4q"),r=nE("dKklS");}),tn("k1l4q",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u;function h(e,A){let t=process.env["INPUT_"+e.replace(/ /g,"_").toUpperCase()]||"";if(A&&A.required&&!t)throw Error("Input required and not supplied: "+e);return A&&!1===A.trimWhitespace?t:t.trim();}function Q(e,A={}){i.issueCommand("error",a.toCommandProperties(A),e instanceof Error?e.toString():e);}function C(e){i.issue("group",e);}function I(){i.issue("endgroup");}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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,i=nE("ekchs"),s=nE("lyZGK"),a=nE("iYcPV");let B=n(r_),d=n(rG);l=nE("dqF37"),(u=c=e.exports.ExitCode||(e.exports.ExitCode={}))[u.Success=0]="Success",u[u.Failure=1]="Failure",e.exports.exportVariable=function(e,A){let t=a.toCommandValue(A);if(process.env[e]=t,process.env.GITHUB_ENV)return s.issueFileCommand("ENV",s.prepareKeyValueMessage(e,A));i.issueCommand("set-env",{name:e},t);},e.exports.setSecret=function(e){i.issueCommand("add-mask",{},e);},e.exports.addPath=function(e){process.env.GITHUB_PATH?s.issueFileCommand("PATH",e):i.issueCommand("add-path",{},e),process.env.PATH=`${e}${d.delimiter}${process.env.PATH}`;},e.exports.getInput=h,e.exports.getMultilineInput=function(e,A){let t=h(e,A).split("\n").filter(e=>""!==e);return A&&!1===A.trimWhitespace?t:t.map(e=>e.trim());},e.exports.getBooleanInput=function(e,A){let t=h(e,A);if(["true","True","TRUE"].includes(t))return!0;if(["false","False","FALSE"].includes(t))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,A){if(process.env.GITHUB_OUTPUT)return s.issueFileCommand("OUTPUT",s.prepareKeyValueMessage(e,A));process.stdout.write(B.EOL),i.issueCommand("set-output",{name:e},a.toCommandValue(A));},e.exports.setCommandEcho=function(e){i.issue("echo",e?"on":"off");},e.exports.setFailed=function(e){process.exitCode=c.Failure,Q(e);},e.exports.isDebug=function(){return"1"===process.env.RUNNER_DEBUG;},e.exports.debug=function(e){i.issueCommand("debug",{},e);},e.exports.error=Q,e.exports.warning=function(e,A={}){i.issueCommand("warning",a.toCommandProperties(A),e instanceof Error?e.toString():e);},e.exports.notice=function(e,A={}){i.issueCommand("notice",a.toCommandProperties(A),e instanceof Error?e.toString():e);},e.exports.info=function(e){process.stdout.write(e+B.EOL);},e.exports.startGroup=C,e.exports.endGroup=I,e.exports.group=function(e,A){return o(this,void 0,void 0,function*(){let t;C(e);try{t=yield A();}finally{I();}return t;});},e.exports.saveState=function(e,A){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(e,A));i.issueCommand("save-state",{name:e},a.toCommandValue(A));},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 l.OidcClient.getIDToken(e);});},E=nE("1mzjm"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return E.summary;}}),E=nE("1mzjm"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary;}}),g=nE("31rWp"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return g.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return g.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return g.toPlatformPath;}});}),tn("ekchs",function(e,A){var t,r,n,o;function i(e,A,t){let r=new a(e,A,t);process.stdout.write(r.toString()+s.EOL);}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let s=n(r_);o=nE("iYcPV"),e.exports.issueCommand=i,e.exports.issue=function(e,A=""){i(e,{},A);};class a{constructor(e,A,t){e||(e="missing.command"),this.command=e,this.properties=A,this.message=t;}toString(){var e;let A="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let e=!0;for(let t in this.properties)if(this.properties.hasOwnProperty(t)){let r=this.properties[t];r&&(e?e=!1:A+=",",A+=`${t}=${o.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return A+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),tn("iYcPV",function(e,A){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}:{};};}),tn("lyZGK",function(e,A){var t,r,n,o,i;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let s=n(rO),a=n(r_);o=nE("bTj1Z"),i=nE("iYcPV"),e.exports.issueFileCommand=function(e,A){let t=process.env["GITHUB_"+e];if(!t)throw Error("Unable to find environment variable for file command "+e);if(!s.existsSync(t))throw Error("Missing file at path: "+t);s.appendFileSync(t,`${i.toCommandValue(A)}${a.EOL}`,{encoding:"utf8"});},e.exports.prepareKeyValueMessage=function(e,A){let t="ghadelimiter_"+o.default(),r=i.toCommandValue(A);if(e.includes(t))throw Error(`Unexpected input: name should not contain the delimiter "${t}"`);if(r.includes(t))throw Error(`Unexpected input: value should not contain the delimiter "${t}"`);return`${e}<<${t}${a.EOL}${r}${a.EOL}${t}`;};}),tn("bTj1Z",function(e,A){var t,r,n;a(e.exports,"default",()=>n),t=nE("5x7Ba"),r=nE("FUqvx"),n=function(e,A,n){let o=(e=e||{}).random||(e.rng||(0,t.default))();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,A){n=n||0;for(let e=0;e<16;++e)A[n+e]=o[e];return A;}return(0,r.default)(o);};}),tn("5x7Ba",function(e,A){function t(){return n>r.length-16&&(l(rY).randomFillSync(r),n=0),r.slice(n,n+=16);}a(e.exports,"default",()=>t);let r=new Uint8Array(256),n=r.length;}),tn("FUqvx",function(e,A){var t,r;a(e.exports,"default",()=>r),t=nE("kYWmF");let n=[];for(let e=0;e<256;++e)n.push((e+256).toString(16).substr(1));r=function(e,A=0){let r=(n[e[A+0]]+n[e[A+1]]+n[e[A+2]]+n[e[A+3]]+"-"+n[e[A+4]]+n[e[A+5]]+"-"+n[e[A+6]]+n[e[A+7]]+"-"+n[e[A+8]]+n[e[A+9]]+"-"+n[e[A+10]]+n[e[A+11]]+n[e[A+12]]+n[e[A+13]]+n[e[A+14]]+n[e[A+15]]).toLowerCase();if(!(0,t.default)(r))throw TypeError("Stringified UUID is invalid");return r;};}),tn("kYWmF",function(e,A){var t,r;a(e.exports,"default",()=>r),t=nE("1J9r9"),r=function(e){return"string"==typeof e&&(0,t.default).test(e);};}),tn("1J9r9",function(e,A){a(e.exports,"default",()=>t);var t=/^(?:[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;}),tn("dqF37",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.OidcClient=void 0;var r=nE("5k7dP"),n=nE("1bb8A"),o=nE("k1l4q");class i{static createHttpClient(e=!0,A=10){return new r.HttpClient("actions/oidc-client",[new n.BearerCredentialHandler(i.getRequestToken())],{allowRetries:e,maxRetries:A});}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 A;return t(this,void 0,void 0,function*(){let t=i.createHttpClient(),r=null===(A=(yield t.getJson(e).catch(e=>{throw Error(`Failed to get ID Token. Error Code : ${e.statusCode} Error Message: ${e.message}`);})).result)||void 0===A?void 0:A.value;if(!r)throw Error("Response json body do not have ID Token field");return r;});}static getIDToken(e){return t(this,void 0,void 0,function*(){try{let A=i.getIDTokenUrl();if(e){let t=encodeURIComponent(e);A=`${A}&audience=${t}`;}o.debug("ID token url is "+A);let t=yield i.getCall(A);return o.setSecret(t),t;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=i;}),tn("5k7dP",function(e,A){var t,r,n,o,i,s,a,l,c,E;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(A,t);(!n||("get"in n?!A.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return A[t];}}),Object.defineProperty(e,r,n);}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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 g=n(rJ),u=n(rH),h=n(nE("1GWMz")),Q=n(nE("bbp3j"));i=nE("bhHtX"),(c=s||(e.exports.HttpCodes=s={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(E=a||(e.exports.Headers=a={})).Accept="accept",E.ContentType="content-type",(l||(e.exports.MediaTypes=l={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let A=h.getProxyUrl(new URL(e));return A?A.href:"";};let C=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],I=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],B=["OPTIONS","GET","DELETE","HEAD"];class d extends Error{constructor(e,A){super(e),this.name="HttpClientError",this.statusCode=A,Object.setPrototypeOf(this,d.prototype);}}e.exports.HttpClientError=d;class f{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 A=Buffer.alloc(0);this.message.on("data",e=>{A=Buffer.concat([A,e]);}),this.message.on("end",()=>{e(A.toString());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let A=[];this.message.on("data",e=>{A.push(e);}),this.message.on("end",()=>{e(Buffer.concat(A));});}));});}}e.exports.HttpClientResponse=f,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpClient=class{constructor(e,A,t){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=A||[],this.requestOptions=t,t&&(null!=t.ignoreSslError&&(this._ignoreSslError=t.ignoreSslError),this._socketTimeout=t.socketTimeout,null!=t.allowRedirects&&(this._allowRedirects=t.allowRedirects),null!=t.allowRedirectDowngrade&&(this._allowRedirectDowngrade=t.allowRedirectDowngrade),null!=t.maxRedirects&&(this._maxRedirects=Math.max(t.maxRedirects,0)),null!=t.keepAlive&&(this._keepAlive=t.keepAlive),null!=t.allowRetries&&(this._allowRetries=t.allowRetries),null!=t.maxRetries&&(this._maxRetries=t.maxRetries));}options(e,A){return o(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,A||{});});}get(e,A){return o(this,void 0,void 0,function*(){return this.request("GET",e,null,A||{});});}del(e,A){return o(this,void 0,void 0,function*(){return this.request("DELETE",e,null,A||{});});}post(e,A,t){return o(this,void 0,void 0,function*(){return this.request("POST",e,A,t||{});});}patch(e,A,t){return o(this,void 0,void 0,function*(){return this.request("PATCH",e,A,t||{});});}put(e,A,t){return o(this,void 0,void 0,function*(){return this.request("PUT",e,A,t||{});});}head(e,A){return o(this,void 0,void 0,function*(){return this.request("HEAD",e,null,A||{});});}sendStream(e,A,t,r){return o(this,void 0,void 0,function*(){return this.request(e,A,t,r);});}getJson(e,A={}){return o(this,void 0,void 0,function*(){A[a.Accept]=this._getExistingOrDefaultHeader(A,a.Accept,l.ApplicationJson);let t=yield this.get(e,A);return this._processResponse(t,this.requestOptions);});}postJson(e,A,t={}){return o(this,void 0,void 0,function*(){let r=JSON.stringify(A,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.post(e,r,t);return this._processResponse(n,this.requestOptions);});}putJson(e,A,t={}){return o(this,void 0,void 0,function*(){let r=JSON.stringify(A,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.put(e,r,t);return this._processResponse(n,this.requestOptions);});}patchJson(e,A,t={}){return o(this,void 0,void 0,function*(){let r=JSON.stringify(A,null,2);t[a.Accept]=this._getExistingOrDefaultHeader(t,a.Accept,l.ApplicationJson),t[a.ContentType]=this._getExistingOrDefaultHeader(t,a.ContentType,l.ApplicationJson);let n=yield this.patch(e,r,t);return this._processResponse(n,this.requestOptions);});}request(e,A,t,r){return o(this,void 0,void 0,function*(){let n;if(this._disposed)throw Error("Client has already been disposed.");let o=new URL(A),i=this._prepareRequest(e,o,r),a=this._allowRetries&&B.includes(e)?this._maxRetries+1:1,l=0;do{if((n=yield this.requestRaw(i,t))&&n.message&&n.message.statusCode===s.Unauthorized){let e;for(let A of this.handlers)if(A.canHandleAuthentication(n)){e=A;break;}if(e)return e.handleAuthentication(this,i,t);break;}let A=this._maxRedirects;for(;n.message.statusCode&&C.includes(n.message.statusCode)&&this._allowRedirects&&A>0;){let s=n.message.headers.location;if(!s)break;let a=new URL(s);if("https:"===o.protocol&&o.protocol!==a.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 n.readBody(),a.hostname!==o.hostname)for(let e in r)"authorization"===e.toLowerCase()&&delete r[e];i=this._prepareRequest(e,a,r),n=yield this.requestRaw(i,t),A--;}if(!n.message.statusCode||!I.includes(n.message.statusCode))break;(l+=1){this.requestRawWithCallback(e,A,function(e,A){e?r(e):A?t(A):r(Error("Unknown error"));});});});}requestRawWithCallback(e,A,t){let r;function n(e,A){o||(o=!0,t(e,A));}"string"==typeof A&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(A,"utf8"));let o=!1,i=e.httpModule.request(e.options,e=>{n(void 0,new f(e));});i.on("socket",e=>{r=e;}),i.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),n(Error("Request timeout: "+e.options.path));}),i.on("error",function(e){n(e);}),A&&"string"==typeof A&&i.write(A,"utf8"),A&&"string"!=typeof A?(A.on("close",function(){i.end();}),A.pipe(i)):i.end();}getAgent(e){let A=new URL(e);return this._getAgent(A);}getAgentDispatcher(e){let A=new URL(e),t=h.getProxyUrl(A);if(t&&t.hostname)return this._getProxyAgentDispatcher(A,t);}_prepareRequest(e,A,t){let r={};r.parsedUrl=A;let n="https:"===r.parsedUrl.protocol;if(r.httpModule=n?u:g,r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):n?443:80,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(t),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r;}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},p(this.requestOptions.headers),p(e||{})):p(e||{});}_getExistingOrDefaultHeader(e,A,t){let r;return this.requestOptions&&this.requestOptions.headers&&(r=p(this.requestOptions.headers)[A]),e[A]||r||t;}_getAgent(e){let A;let t=h.getProxyUrl(e),r=t&&t.hostname;if(this._keepAlive&&r&&(A=this._proxyAgent),r||(A=this._agent),A)return A;let n="https:"===e.protocol,o=100;if(this.requestOptions&&(o=this.requestOptions.maxSockets||g.globalAgent.maxSockets),t&&t.hostname){let e;let r={maxSockets:o,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(t.username||t.password)&&{proxyAuth:`${t.username}:${t.password}`}),{host:t.hostname,port:t.port})},i="https:"===t.protocol;A=(n?i?Q.httpsOverHttps:Q.httpsOverHttp:i?Q.httpOverHttps:Q.httpOverHttp)(r),this._proxyAgent=A;}if(!A){let e={keepAlive:this._keepAlive,maxSockets:o};A=n?new u.Agent(e):new g.Agent(e),this._agent=A;}return n&&this._ignoreSslError&&(A.options=Object.assign(A.options||{},{rejectUnauthorized:!1})),A;}_getProxyAgentDispatcher(e,A){let t;if(this._keepAlive&&(t=this._proxyAgentDispatcher),t)return t;let r="https:"===e.protocol;return t=new i.ProxyAgent(Object.assign({uri:A.href,pipelining:this._keepAlive?1:0},(A.username||A.password)&&{token:`${A.username}:${A.password}`})),this._proxyAgentDispatcher=t,r&&this._ignoreSslError&&(t.options=Object.assign(t.options.requestTls||{},{rejectUnauthorized:!1})),t;}_performExponentialBackoff(e){return o(this,void 0,void 0,function*(){let A=5*Math.pow(2,e=Math.min(10,e));return new Promise(e=>setTimeout(()=>e(),A));});}_processResponse(e,A){return o(this,void 0,void 0,function*(){return new Promise((t,r)=>o(this,void 0,void 0,function*(){let n,o;let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===s.NotFound&&t(a);try{(o=yield e.readBody())&&o.length>0&&(n=A&&A.deserializeDates?JSON.parse(o,function(e,A){if("string"==typeof A){let e=new Date(A);if(!isNaN(e.valueOf()))return e;}return A;}):JSON.parse(o),a.result=n),a.headers=e.message.headers;}catch(e){}if(i>299){let e;let A=new d(n&&n.message?n.message:o&&o.length>0?o:`Failed request: (${i})`,i);A.result=a.result,r(A);}else t(a);}));});}};let p=e=>Object.keys(e).reduce((A,t)=>(A[t.toLowerCase()]=e[t],A),{});}),tn("1GWMz",function(e,A){function t(e){let A;if(!e.hostname)return!1;if(function(e){let A=e.toLowerCase();return"localhost"===A||A.startsWith("127.")||A.startsWith("[::1]")||A.startsWith("[0:0:0:0:0:0:0:1]");}(e.hostname))return!0;let t=process.env.no_proxy||process.env.NO_PROXY||"";if(!t)return!1;e.port?A=+e.port:"http:"===e.protocol?A=80:"https:"===e.protocol&&(A=443);let r=[e.hostname.toUpperCase()];for(let e of("number"==typeof A&&r.push(`${r[0]}:${A}`),t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)))if("*"===e||r.some(A=>A===e||A.endsWith("."+e)||e.startsWith(".")&&A.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 A="https:"===e.protocol;if(t(e))return;let r=A?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new URL(r);}catch(e){if(!r.startsWith("http://")&&!r.startsWith("https://"))return new URL("http://"+r);}},e.exports.checkBypass=t;}),tn("bbp3j",function(e,A){e.exports=nE("fNJ5J");}),tn("fNJ5J",function(e,A){var t,r,n,o,i,s;function l(e){var A=this;A.options=e||{},A.proxyOptions=A.options.proxy||{},A.maxSockets=A.options.maxSockets||rJ.Agent.defaultMaxSockets,A.requests=[],A.sockets=[],A.on("free",function(e,t,r,n){for(var o=E(t,r,n),i=0,s=A.requests.length;s>i;++i){var a=A.requests[i];if(a.host===o.host&&a.port===o.port){A.requests.splice(i,1),a.request.onSocket(e);return;}}e.destroy(),A.removeSocket(e);});}function c(e,A){var t=this;l.prototype.createSocket.call(t,e,function(r){var n=e.request.getHeader("host"),o=g({},t.options,{socket:r,servername:n?n.replace(/:.*$/,""):e.host}),i=rV.connect(0,o);t.sockets[t.sockets.indexOf(r)]=i,A(i);});}function E(e,A,t){return"string"==typeof e?{host:e,port:A,localAddress:t}:e;}function g(e){for(var A=1,t=arguments.length;t>A;++A){var r=arguments[A];if("object"==typeof r)for(var n=Object.keys(r),o=0,i=n.length;i>o;++o){var s=n[o];void 0!==r[s]&&(e[s]=r[s]);}}return e;}a(e.exports,"httpOverHttp",()=>t,e=>t=e),a(e.exports,"httpsOverHttp",()=>r,e=>r=e),a(e.exports,"httpOverHttps",()=>n,e=>n=e),a(e.exports,"httpsOverHttps",()=>o,e=>o=e),a(e.exports,"debug",()=>i,e=>i=e),t=function(e){var A=new l(e);return A.request=rJ.request,A;},r=function(e){var A=new l(e);return A.request=rJ.request,A.createSocket=c,A.defaultPort=443,A;},n=function(e){var A=new l(e);return A.request=rH.request,A;},o=function(e){var A=new l(e);return A.request=rH.request,A.createSocket=c,A.defaultPort=443,A;},rj.inherits(l,rq.EventEmitter),l.prototype.addRequest=function(e,A,t,r){var n=this,o=g({request:e},n.options,E(A,t,r));if(n.sockets.length>=this.maxSockets){n.requests.push(o);return;}n.createSocket(o,function(A){function t(){n.emit("free",A,o);}function r(e){n.removeSocket(A),A.removeListener("free",t),A.removeListener("close",r),A.removeListener("agentRemove",r);}A.on("free",t),A.on("close",r),A.on("agentRemove",r),e.onSocket(A);});},l.prototype.createSocket=function(e,A){function t(t,r,a){if(n.removeAllListeners(),r.removeAllListeners(),200!==t.statusCode){s("tunneling socket could not be established, statusCode=%d",t.statusCode),r.destroy();var l=Error("tunneling socket could not be established, statusCode="+t.statusCode);l.code="ECONNRESET",e.request.emit("error",l),o.removeSocket(i);return;}if(a.length>0){s("got illegal response body from proxy"),r.destroy();var l=Error("got illegal response body from proxy");l.code="ECONNRESET",e.request.emit("error",l),o.removeSocket(i);return;}return s("tunneling connection has established"),o.sockets[o.sockets.indexOf(i)]=r,A(r);}var r,n,o=this,i={};o.sockets.push(i),r=g({},o.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}}),e.localAddress&&(r.localAddress=e.localAddress),r.proxyAuth&&(r.headers=r.headers||{},r.headers["Proxy-Authorization"]="Basic "+new Buffer(r.proxyAuth).toString("base64")),s("making CONNECT request"),(n=o.request(r)).useChunkedEncodingByDefault=!1,n.once("response",function(e){e.upgrade=!0;}),n.once("upgrade",function(e,A,r){process.nextTick(function(){t(e,A,r);});}),n.once("connect",t),n.once("error",function(A){n.removeAllListeners(),s("tunneling socket could not be established, cause=%s\n",A.message,A.stack);var t=Error("tunneling socket could not be established, cause="+A.message);t.code="ECONNRESET",e.request.emit("error",t),o.removeSocket(i);}),n.end();},l.prototype.removeSocket=function(e){var A=this.sockets.indexOf(e);if(-1!==A){this.sockets.splice(A,1);var t=this.requests.shift();t&&this.createSocket(t,function(e){t.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(){},i=s;}),tn("bhHtX",function(e,A){var t,r,n,o,i,s,l,c;let E;function g(e){return(A,t,r)=>{if("function"==typeof t&&(r=t,t=null),!A||"string"!=typeof A&&"object"!=typeof A&&!(A instanceof URL))throw new u("invalid url");if(null!=t&&"object"!=typeof t)throw new u("invalid opts");if(t&&null!=t.path){if("string"!=typeof t.path)throw new u("invalid opts.path");let e=t.path;t.path.startsWith("/")||(e="/"+e),A=new URL(o.parseOrigin(A).origin+e);}else t||(t="object"==typeof A?A:{}),A=o.parseURL(A);let{agent:n,dispatcher:i=c()}=t;if(n)throw new u("unsupported opts.agent. Did you mean opts.client?");return e.call(i,{...t,origin:A.origin,path:A.search?`${A.pathname}${A.search}`:A.pathname,method:t.method||(t.body?"PUT":"GET")},r);};}a(e.exports,"ProxyAgent",()=>t,e=>t=e),nE("8yUQl"),r=nE("aqU6E"),n=nE("ayJiG"),nE("kOCfr"),nE("35hUU"),nE("c0vcY"),o=nE("jksEw");let{InvalidArgumentError:u}=n;i=nE("4Ek9d"),nE("ertK5"),nE("1vOTv"),nE("jXCnf"),nE("lqUE6"),nE("7fzYU"),s=nE("5IibL"),nE("dBMXf"),c=(l=nE("d0hJ7")).getGlobalDispatcher,l.setGlobalDispatcher,nE("kP9Wh"),nE("3E5UX"),nE("9sz7P");try{$837302df2ea591df$import$be8b60ef5043e98e,E=!0;}catch{E=!1;}if(Object.assign(r.prototype,i),t=s,o.nodeMajor>16||16===o.nodeMajor&&o.nodeMinor>=8){nE("id7X2").Headers,nE("apE6s").Response,nE("7JXQn").Request,nE("dVNsr").FormData,nE("3ReSW").File,nE("3wZ1B").FileReader;let{setGlobalOrigin:e,getGlobalOrigin:A}=nE("e3MDk"),{CacheStorage:t}=nE("8wMCO"),{kConstruct:r}=nE("9lpql");new t(r);}if(o.nodeMajor>=16){let{deleteCookie:e,getCookies:A,getSetCookies:t,setCookie:r}=nE("tTPZ7"),{parseMIMEType:n,serializeAMimeType:o}=nE("9mEts");}if(o.nodeMajor>=18&&E){let{WebSocket:e}=nE("jEeVP");}g(i.request),g(i.stream),g(i.pipeline),g(i.connect),g(i.upgrade);}),tn("8yUQl",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,B,d,f,p,y,m,w,b,R,D,S,k,v,N,F,L,U,T,M,x,_,G,O,Y,J,H,P,V,q,W,j,X,$,z,Z,K,ee,eA,et,er,en,eo,ei,es,ea,el,ec,eE,eg,eu,eh,eQ,eC,eI,eB;let ed;function ef(e){rW("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),this[q][P]=e,eS(this[b],e);}function ep(e,A,t){let r=new Q(`HTTP/2: "frameError" received - type ${e}, code ${A}`);0===t&&(this[q][P]=r,eS(this[b],r));}function ey(){r.destroy(this,new h("other side closed")),r.destroy(this[q],new h("other side closed"));}function em(e){let A=this[b],t=new Q('HTTP/2: "GOAWAY" frame received with code '+e);if(A[q]=null,A[eg]=null,A.destroyed){rW(0===this[F]);let e=A[T].splice(A[H]);for(let A=0;A0){let e=A[T][A[H]];A[T][A[H]++]=null,e_(A,e,t);}A[J]=A[H],rW(0===A[N]),A.emit("disconnect",A[y],[A],t),eL(A);}async function ew(){let e;let A=process.env.JEST_WORKER_ID?nE("15CZI"):void 0;try{e=await WebAssembly.compile(Buffer.from(nE("6AZzS"),"base64"));}catch(t){e=await WebAssembly.compile(Buffer.from(A||nE("15CZI"),"base64"));}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(e,A,t)=>0,wasm_on_status(e,A,t){rW.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onStatus(new eW(e0.buffer,r,t))||0;},wasm_on_message_begin:e=>(rW.strictEqual(eK.ptr,e),eK.onMessageBegin()||0),wasm_on_header_field(e,A,t){rW.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onHeaderField(new eW(e0.buffer,r,t))||0;},wasm_on_header_value(e,A,t){rW.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onHeaderValue(new eW(e0.buffer,r,t))||0;},wasm_on_headers_complete:(e,A,t,r)=>(rW.strictEqual(eK.ptr,e),eK.onHeadersComplete(A,!!t,!!r)||0),wasm_on_body(e,A,t){rW.strictEqual(eK.ptr,e);let r=A-e2+e0.byteOffset;return eK.onBody(new eW(e0.buffer,r,t))||0;},wasm_on_message_complete:e=>(rW.strictEqual(eK.ptr,e),eK.onMessageComplete()||0)}});}function eb(e){let{socket:A,timeoutType:t,client:n}=e;t===e4?(!A[U]||A.writableNeedDrain||n[N]>1)&&(rW(!e.paused,"cannot be paused while waiting for headers"),r.destroy(A,new g())):t===e9?e.paused||r.destroy(A,new C()):t===e8&&(rW(0===n[N]&&n[W]),r.destroy(A,new Q("socket idle timeout")));}function eR(){let{[D]:e}=this;e&&e.readMore();}function eD(e){let{[b]:A,[D]:t}=this;if(rW("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),"h2"!==A[ec]&&"ECONNRESET"===e.code&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return;}this[P]=e,eS(this[b],e);}function eS(e,A){if(0===e[N]&&"UND_ERR_INFO"!==A.code&&"UND_ERR_SOCKET"!==A.code){rW(e[J]===e[H]);let t=e[T].splice(e[H]);for(let r=0;r0&&"UND_ERR_INFO"!==t.code){let A=e[T][e[H]];e[T][e[H]++]=null,e_(e,A,t);}e[J]=e[H],rW(0===e[N]),e.emit("disconnect",e[y],[e],t),eL(e);}async function eN(e){rW(!e[x]),rW(!e[q]);let{host:A,hostname:t,protocol:n,port:o}=e[y];if("["===t[0]){let e=t.indexOf("]");rW(-1!==e);let A=t.substring(1,e);rW(rP.isIP(A)),t=A;}e[x]=!0,eX.beforeConnect.hasSubscribers&&eX.beforeConnect.publish({connectParams:{host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},connector:e[ee]});try{let i=await new Promise((r,i)=>{e[ee]({host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},(e,A)=>{e?i(e):r(A);});});if(e.destroyed){r.destroy(i.on("error",()=>{}),new d());return;}if(e[x]=!1,rW(i),"h2"===i.alpnProtocol){eq||(eq=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let A=ed.connect(e[y],{createConnection:()=>i,peerMaxConcurrentStreams:e[eu].maxConcurrentStreams});e[ec]="h2",A[b]=e,A[q]=i,A.on("error",ef),A.on("frameError",ep),A.on("end",ey),A.on("goaway",em),A.on("close",ev),A.unref(),e[eg]=A,i[eg]=A;}else ez||(ez=await eZ,eZ=null),i[G]=!1,i[U]=!1,i[m]=!1,i[k]=!1,i[D]=new e3(e,i,ez);i[er]=0,i[et]=e[et],i[b]=e,i[P]=null,i.on("error",eD).on("readable",eR).on("end",ek).on("close",ev),e[q]=i,eX.connected.hasSubscribers&&eX.connected.publish({connectParams:{host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},connector:e[ee],socket:i}),e.emit("connect",e[y],[e]);}catch(r){if(e.destroyed)return;if(e[x]=!1,eX.connectError.hasSubscribers&&eX.connectError.publish({connectParams:{host:A,hostname:t,protocol:n,port:o,servername:e[w],localAddress:e[ea]},connector:e[ee],error:r}),"ERR_TLS_CERT_ALTNAME_INVALID"===r.code)for(rW(0===e[N]);e[F]>0&&e[T][e[J]].servername===e[w];){let A=e[T][e[J]++];e_(e,A,r);}else eS(e,r);e.emit("connectionError",e[y],[e],r);}eL(e);}function eF(e){e[_]=0,e.emit("drain",e[y],[e]);}function eL(e,A){2!==e[v]&&(e[v]=2,function(e,A){for(;;){if(e.destroyed){rW(0===e[F]);return;}if(e[ej]&&!e[L]){e[ej](),e[ej]=null;return;}let t=e[q];if(t&&!t.destroyed&&"h2"!==t.alpnProtocol){if(0===e[L]?!t[G]&&t.unref&&(t.unref(),t[G]=!0):t[G]&&t.ref&&(t.ref(),t[G]=!1),0===e[L])t[D].timeoutType!==e8&&t[D].setTimeout(e[W],e8);else if(e[N]>0&&t[D].statusCode<200&&t[D].timeoutType!==e4){let A=e[T][e[H]],r=null!=A.headersTimeout?A.headersTimeout:e[z];t[D].setTimeout(r,e4);}}if(e[R])e[_]=2;else if(2===e[_]){A?(e[_]=1,process.nextTick(eF,e)):eF(e);continue;}if(0===e[F]||e[N]>=(e[V]||1))return;let n=e[T][e[J]];if("https:"===e[y].protocol&&e[w]!==n.servername){if(e[N]>0)return;if(e[w]=n.servername,t&&t.servername!==n.servername){r.destroy(t,new Q("servername changed"));return;}}if(e[x])return;if(!t&&!e[eg]){eN(e);return;}if(t.destroyed||t[U]||t[m]||t[k]||e[N]>0&&!n.idempotent||e[N]>0&&(n.upgrade||"CONNECT"===n.method)||e[N]>0&&0!==r.bodyLength(n.body)&&(r.isStream(n.body)||r.isAsyncIterable(n.body)))return;!n.aborted&&function(e,A){if("h2"===e[ec]){(function(e,A,t){let n,i;function s(){l?r.isBuffer(l)?(rW(p===l.byteLength,"buffer body must have content length"),i.cork(),i.write(l),i.uncork(),i.end(),t.onBodySent(l),t.onRequestSent()):r.isBlobLike(l)?"function"==typeof l.stream?ex({client:e,request:t,contentLength:p,h2stream:i,expectsPayload:f,body:l.stream(),socket:e[q],header:""}):eM({body:l,client:e,request:t,contentLength:p,expectsPayload:f,h2stream:i,header:"",socket:e[q]}):r.isStream(l)?eT({body:l,client:e,request:t,contentLength:p,expectsPayload:f,socket:e[q],h2stream:i,header:""}):r.isIterable(l)?ex({body:l,client:e,request:t,contentLength:p,expectsPayload:f,header:"",h2stream:i,socket:e[q]}):rW(!1):t.onRequestSent();}let{body:l,method:c,path:g,host:u,upgrade:h,expectContinue:C,signal:I,headers:B}=t;if(n="string"==typeof B?o[eQ](B.trim()):B,h)return e_(e,t,Error("Upgrade not supported for H2"));try{t.onConnect(A=>{t.aborted||t.completed||e_(e,t,A||new E());});}catch(A){e_(e,t,A);}if(t.aborted)return;let d=e[eu];if(n[eG]=u||e[eE],n[eO]=c,"CONNECT"===c)return A.ref(),(i=A.request(n,{endStream:!1,signal:I})).id&&!i.pending?(t.onUpgrade(null,null,i),++d.openStreams):i.once("ready",()=>{t.onUpgrade(null,null,i),++d.openStreams;}),i.once("close",()=>{d.openStreams-=1,0===d.openStreams&&A.unref();});n[eY]=g,n[eJ]="https";let f="PUT"===c||"POST"===c||"PATCH"===c;l&&"function"==typeof l.read&&l.read(0);let p=r.bodyLength(l);if(null==p&&(p=t.contentLength),0!==p&&f||(p=null),eU(c)&&p>0&&null!=t.contentLength&&t.contentLength!==p){if(e[K])return e_(e,t,new a());process.emitWarning(new a());}null!=p&&(rW(l,"no body must not have content length"),n[eH]=""+p),A.ref();let y="GET"===c||"HEAD"===c;C?(n[eP]="100-continue",(i=A.request(n,{endStream:y,signal:I})).once("continue",s)):(i=A.request(n,{endStream:y,signal:I}),s()),++d.openStreams,i.once("response",e=>{let{[eV]:A,...r}=e;!1===t.onHeaders(+A,r,i.resume.bind(i),"")&&i.pause();}),i.once("end",()=>{t.onComplete([]);}),i.on("data",e=>{!1===t.onData(e)&&i.pause();}),i.once("close",()=>{d.openStreams-=1,0===d.openStreams&&A.unref();}),i.once("error",function(A){!e[eg]||e[eg].destroyed||this.closed||this.destroyed||(d.streams-=1,r.destroy(i,A));}),i.once("frameError",(A,n)=>{let o=new Q(`HTTP/2: "frameError" received - type ${A}, code ${n}`);e_(e,t,o),!e[eg]||e[eg].destroyed||this.closed||this.destroyed||(d.streams-=1,r.destroy(i,o));});})(e,e[eg],A);return;}let{body:t,method:n,path:i,host:s,upgrade:l,headers:c,blocking:g,reset:u}=A,h="PUT"===n||"POST"===n||"PATCH"===n;t&&"function"==typeof t.read&&t.read(0);let C=r.bodyLength(t),I=C;if(null===I&&(I=A.contentLength),0!==I||h||(I=null),eU(n)&&I>0&&null!==A.contentLength&&A.contentLength!==I){if(e[K])return e_(e,A,new a()),!1;process.emitWarning(new a());}let B=e[q];try{A.onConnect(t=>{A.aborted||A.completed||(e_(e,A,t||new E()),r.destroy(B,new Q("aborted")));});}catch(t){e_(e,A,t);}if(A.aborted)return!1;"HEAD"===n&&(B[m]=!0),(l||"CONNECT"===n)&&(B[m]=!0),null!=u&&(B[m]=u),e[et]&&B[er]++>=e[et]&&(B[m]=!0),g&&(B[k]=!0);let d=`${n} ${i} HTTP/1.1\r `;return"string"==typeof s?d+=`host: ${s}\r `:d+=e[Y],l?d+=`connection: upgrade\r upgrade: ${l}\r `:e[V]&&!B[m]?d+="connection: keep-alive\r\n":d+="connection: close\r\n",c&&(d+=c),eX.sendHeaders.hasSubscribers&&eX.sendHeaders.publish({request:A,headers:d,socket:B}),t&&0!==C?r.isBuffer(t)?(rW(I===t.byteLength,"buffer body must have content length"),B.cork(),B.write(`${d}content-length: ${I}\r \r `,"latin1"),B.write(t),B.uncork(),A.onBodySent(t),A.onRequestSent(),h||(B[m]=!0)):r.isBlobLike(t)?"function"==typeof t.stream?ex({body:t.stream(),client:e,request:A,socket:B,contentLength:I,header:d,expectsPayload:h}):eM({body:t,client:e,request:A,socket:B,contentLength:I,header:d,expectsPayload:h}):r.isStream(t)?eT({body:t,client:e,request:A,socket:B,contentLength:I,header:d,expectsPayload:h}):r.isIterable(t)?ex({body:t,client:e,request:A,socket:B,contentLength:I,header:d,expectsPayload:h}):rW(!1):(0===I?B.write(`${d}content-length: 0\r \r `,"latin1"):(rW(null===I,"no body must not have content length"),B.write(`${d}\r `,"latin1")),A.onRequestSent()),!0;}(e,n)?e[J]++:e[T].splice(e[J],1);}}(e,A),e[v]=0,e[H]>256&&(e[T].splice(0,e[H]),e[J]-=e[H],e[H]=0));}function eU(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e;}function eT({h2stream:e,body:A,client:n,request:o,socket:i,contentLength:s,header:a,expectsPayload:l}){if(rW(0!==s||0===n[N],"stream body cannot be pipelined"),"h2"===n[ec]){function c(e){o.onBodySent(e);}let n=t(A,e,t=>{t?(r.destroy(A,t),r.destroy(e,t)):o.onRequestSent();});n.on("data",c),n.once("end",()=>{n.removeListener("data",c),r.destroy(n);});return;}let g=!1,u=new e5({socket:i,request:o,contentLength:s,client:n,expectsPayload:l,header:a}),h=function(e){if(!g)try{!u.write(e)&&this.pause&&this.pause();}catch(e){r.destroy(this,e);}},Q=function(){!g&&A.resume&&A.resume();},C=function(){if(g)return;let e=new E();queueMicrotask(()=>I(e));},I=function(e){if(!g){if(g=!0,rW(i.destroyed||i[U]&&n[N]<=1),i.off("drain",Q).off("error",I),A.removeListener("data",h).removeListener("end",I).removeListener("error",I).removeListener("close",C),!e)try{u.end();}catch(A){e=A;}u.destroy(e),e&&("UND_ERR_INFO"!==e.code||"reset"!==e.message)?r.destroy(A,e):r.destroy(A);}};A.on("data",h).on("end",I).on("error",I).on("close",C),A.resume&&A.resume(),i.on("drain",Q).on("error",I);}async function eM({h2stream:e,body:A,client:t,request:n,socket:o,contentLength:i,header:s,expectsPayload:l}){rW(i===A.size,"blob body must have content length");let c="h2"===t[ec];try{if(null!=i&&i!==A.size)throw new a();let r=Buffer.from(await A.arrayBuffer());c?(e.cork(),e.write(r),e.uncork()):(o.cork(),o.write(`${s}content-length: ${i}\r \r `,"latin1"),o.write(r),o.uncork()),n.onBodySent(r),n.onRequestSent(),l||(o[m]=!0),eL(t);}catch(A){r.destroy(c?e:o,A);}}async function ex({h2stream:e,body:A,client:t,request:r,socket:n,contentLength:o,header:i,expectsPayload:s}){function a(){if(l){let e=l;l=null,e();}}rW(0!==o||0===t[N],"iterator body cannot be pipelined");let l=null,c=()=>new Promise((e,A)=>{rW(null===l),n[P]?A(n[P]):l=e;});if("h2"===t[ec]){e.on("close",a).on("drain",a);try{for await(let t of A){if(n[P])throw n[P];let A=e.write(t);r.onBodySent(t),A||(await c());}}catch(A){e.destroy(A);}finally{r.onRequestSent(),e.end(),e.off("close",a).off("drain",a);}return;}n.on("close",a).on("drain",a);let E=new e5({socket:n,request:r,contentLength:o,client:t,expectsPayload:s,header:i});try{for await(let e of A){if(n[P])throw n[P];E.write(e)||(await c());}E.end();}catch(e){E.destroy(e);}finally{n.off("close",a).off("drain",a);}}function e_(e,A,t){try{A.onError(t),rW(A.aborted);}catch(A){e.emit("error",A);}}t=rX.pipeline,r=nE("jksEw"),n=nE("bLoP1"),o=nE("9ihOp"),i=nE("8Tdy2"),a=(s=nE("ayJiG")).RequestContentLengthMismatchError,l=s.ResponseContentLengthMismatchError,c=s.InvalidArgumentError,E=s.RequestAbortedError,g=s.HeadersTimeoutError,u=s.HeadersOverflowError,h=s.SocketError,Q=s.InformationalError,C=s.BodyTimeoutError,I=s.HTTPParserError,B=s.ResponseExceededMaxSizeError,d=s.ClientDestroyedError,f=nE("ertK5"),y=(p=nE("eoU9M")).kUrl,m=p.kReset,w=p.kServerName,b=p.kClient,R=p.kBusy,D=p.kParser,S=p.kConnect,k=p.kBlocking,v=p.kResuming,N=p.kRunning,F=p.kPending,L=p.kSize,U=p.kWriting,T=p.kQueue,M=p.kConnected,x=p.kConnecting,_=p.kNeedDrain,G=p.kNoRef,O=p.kKeepAliveDefaultTimeout,Y=p.kHostHeader,J=p.kPendingIdx,H=p.kRunningIdx,P=p.kError,V=p.kPipelining,q=p.kSocket,W=p.kKeepAliveTimeoutValue,j=p.kMaxHeadersSize,X=p.kKeepAliveMaxTimeout,$=p.kKeepAliveTimeoutThreshold,z=p.kHeadersTimeout,Z=p.kBodyTimeout,K=p.kStrictContentLength,ee=p.kConnector,eA=p.kMaxRedirections,et=p.kMaxRequests,er=p.kCounter,en=p.kClose,eo=p.kDestroy,ei=p.kDispatch,es=p.kInterceptors,ea=p.kLocalAddress,el=p.kMaxResponseSize,ec=p.kHTTPConnVersion,eE=p.kHost,eg=p.kHTTP2Session,eu=p.kHTTP2SessionState,eh=p.kHTTP2BuildRequest,eQ=p.kHTTP2CopyHeaders,eC=p.kHTTP1BuildRequest;try{ed=$63bd9792098e499e$import$44c8f355160d282b;}catch{ed={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:eG,HTTP2_HEADER_METHOD:eO,HTTP2_HEADER_PATH:eY,HTTP2_HEADER_SCHEME:eJ,HTTP2_HEADER_CONTENT_LENGTH:eH,HTTP2_HEADER_EXPECT:eP,HTTP2_HEADER_STATUS:eV}}=ed,eq=!1,eW=Buffer[Symbol.species],ej=Symbol(),eX={};try{let e=nE("5tMx2");eX.sendHeaders=e.channel("undici:client:sendHeaders"),eX.beforeConnect=e.channel("undici:client:beforeConnect"),eX.connectError=e.channel("undici:client:connectError"),eX.connected=e.channel("undici:client:connected");}catch{eX.sendHeaders={hasSubscribers:!1},eX.beforeConnect={hasSubscribers:!1},eX.connectError={hasSubscribers:!1},eX.connected={hasSubscribers:!1};}eI=nE("fTLvG"),eB=nE("9sz7P");let e$=Buffer.alloc(0),ez=null,eZ=ew();eZ.catch();let eK=null,e0=null,e1=0,e2=null,e4=1,e9=2,e8=3;class e3{constructor(e,A,{exports:t}){rW(Number.isFinite(e[j])&&e[j]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(eI.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[j],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[el];}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(n.clearTimeout(this.timeout),e?(this.timeout=n.setTimeout(eb,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh();}resume(){!this.socket.destroyed&&this.paused&&(rW(null!=this.ptr),rW(null==eK),this.llhttp.llhttp_resume(this.ptr),rW(this.timeoutType===e9),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||e$),this.readMore());}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(null===e)break;this.execute(e);}}execute(e){rW(null!=this.ptr),rW(null==eK),rW(!this.paused);let{socket:A,llhttp:t}=this;e.length>e1&&(e2&&t.free(e2),e1=4096*Math.ceil(e.length/4096),e2=t.malloc(e1)),new Uint8Array(t.memory.buffer,e2,e1).set(e);try{let r;try{e0=e,eK=this,r=t.llhttp_execute(this.ptr,e2,e.length);}catch(e){throw e;}finally{eK=null,e0=null;}let n=t.llhttp_get_error_pos(this.ptr)-e2;if(r===eI.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(n));else if(r===eI.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(n));else if(r!==eI.ERROR.OK){let A=t.llhttp_get_error_reason(this.ptr),o="";if(A){let e=new Uint8Array(t.memory.buffer,A).indexOf(0);o="Response does not match the HTTP/1.1 protocol ("+Buffer.from(t.memory.buffer,A,e).toString()+")";}throw new I(o,eI.ERROR[r],e.slice(n));}}catch(e){r.destroy(A,e);}}destroy(){rW(null!=this.ptr),rW(null==eK),this.llhttp.llhttp_free(this.ptr),this.ptr=null,n.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1;}onStatus(e){this.statusText=e.toString();}onMessageBegin(){let{socket:e,client:A}=this;if(e.destroyed||!A[T][A[H]])return-1;}onHeaderField(e){let A=this.headers.length;(1&A)==0?this.headers.push(e):this.headers[A-1]=Buffer.concat([this.headers[A-1],e]),this.trackHeader(e.length);}onHeaderValue(e){let A=this.headers.length;(1&A)==1?(this.headers.push(e),A+=1):this.headers[A-1]=Buffer.concat([this.headers[A-1],e]);let t=this.headers[A-2];10===t.length&&"keep-alive"===t.toString().toLowerCase()?this.keepAlive+=e.toString():10===t.length&&"connection"===t.toString().toLowerCase()?this.connection+=e.toString():14===t.length&&"content-length"===t.toString().toLowerCase()&&(this.contentLength+=e.toString()),this.trackHeader(e.length);}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new u());}onUpgrade(e){let{upgrade:A,client:t,socket:n,headers:o,statusCode:i}=this;rW(A);let s=t[T][t[H]];rW(s),rW(!n.destroyed),rW(n===t[q]),rW(!this.paused),rW(s.upgrade||"CONNECT"===s.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,rW(this.headers.length%2==0),this.headers=[],this.headersSize=0,n.unshift(e),n[D].destroy(),n[D]=null,n[b]=null,n[P]=null,n.removeListener("error",eD).removeListener("readable",eR).removeListener("end",ek).removeListener("close",ev),t[q]=null,t[T][t[H]++]=null,t.emit("disconnect",t[y],[t],new Q("upgrade"));try{s.onUpgrade(i,o,n);}catch(e){r.destroy(n,e);}eL(t);}onHeadersComplete(e,A,t){let{client:n,socket:o,headers:i,statusText:s}=this;if(o.destroyed)return-1;let a=n[T][n[H]];if(!a)return-1;if(rW(!this.upgrade),rW(this.statusCode<200),100===e)return r.destroy(o,new h("bad response",r.getSocketInfo(o))),-1;if(A&&!a.upgrade)return r.destroy(o,new h("bad upgrade",r.getSocketInfo(o))),-1;if(rW.strictEqual(this.timeoutType,e4),this.statusCode=e,this.shouldKeepAlive=t||"HEAD"===a.method&&!o[m]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){let e=null!=a.bodyTimeout?a.bodyTimeout:n[Z];this.setTimeout(e,e9);}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===a.method||A)return rW(1===n[N]),this.upgrade=!0,2;if(rW(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&n[V]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(null!=e){let A=Math.min(e-n[$],n[X]);A<=0?o[m]=!0:n[W]=A;}else n[W]=n[O];}else o[m]=!0;let l=!1===a.onHeaders(e,i,this.resume,s);return a.aborted?-1:"HEAD"===a.method||e<200?1:(o[k]&&(o[k]=!1,eL(n)),l?eI.ERROR.PAUSED:0);}onBody(e){let{client:A,socket:t,statusCode:n,maxResponseSize:o}=this;if(t.destroyed)return-1;let i=A[T][A[H]];return(rW(i),rW.strictEqual(this.timeoutType,e9),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),rW(n>=200),o>-1&&this.bytesRead+e.length>o)?(r.destroy(t,new B()),-1):(this.bytesRead+=e.length,!1===i.onData(e))?eI.ERROR.PAUSED:void 0;}onMessageComplete(){let{client:e,socket:A,statusCode:t,upgrade:n,headers:o,contentLength:i,bytesRead:s,shouldKeepAlive:a}=this;if(A.destroyed&&(!t||a))return-1;if(n)return;let c=e[T][e[H]];if(rW(c),rW(t>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",rW(this.headers.length%2==0),this.headers=[],this.headersSize=0,!(t<200)){if("HEAD"!==c.method&&i&&s!==parseInt(i,10))return r.destroy(A,new l()),-1;if(c.onComplete(o),e[T][e[H]++]=null,A[U])return rW.strictEqual(e[N],0),r.destroy(A,new Q("reset")),eI.ERROR.PAUSED;if(!a)return r.destroy(A,new Q("reset")),eI.ERROR.PAUSED;if(A[m]&&0===e[N])return r.destroy(A,new Q("reset")),eI.ERROR.PAUSED;1===e[V]?setImmediate(eL,e):eL(e);}}}class e5{constructor({socket:e,request:A,contentLength:t,client:r,expectsPayload:n,header:o}){this.socket=e,this.request=A,this.contentLength=t,this.client=r,this.bytesWritten=0,this.expectsPayload=n,this.header=o,e[U]=!0;}write(e){let{socket:A,request:t,contentLength:r,client:n,bytesWritten:o,expectsPayload:i,header:s}=this;if(A[P])throw A[P];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(null!==r&&o+l>r){if(n[K])throw new a();process.emitWarning(new a());}A.cork(),0===o&&(i||(A[m]=!0),null===r?A.write(`${s}transfer-encoding: chunked\r `,"latin1"):A.write(`${s}content-length: ${r}\r \r `,"latin1")),null===r&&A.write(`\r ${l.toString(16)}\r `,"latin1"),this.bytesWritten+=l;let c=A.write(e);return A.uncork(),t.onBodySent(e),!c&&A[D].timeout&&A[D].timeoutType===e4&&A[D].timeout.refresh&&A[D].timeout.refresh(),c;}end(){let{socket:e,contentLength:A,client:t,bytesWritten:r,expectsPayload:n,header:o,request:i}=this;if(i.onRequestSent(),e[U]=!1,e[P])throw e[P];if(!e.destroyed){if(0===r?n?e.write(`${o}content-length: 0\r \r `,"latin1"):e.write(`${o}\r `,"latin1"):null===A&&e.write("\r\n0\r\n\r\n","latin1"),null!==A&&r!==A){if(t[K])throw new a();process.emitWarning(new a());}e[D].timeout&&e[D].timeoutType===e4&&e[D].timeout.refresh&&e[D].timeout.refresh(),eL(t);}}destroy(e){let{socket:A,client:t}=this;A[U]=!1,e&&(rW(t[N]<=1,"pipeline should only contain this request"),r.destroy(A,e));}}e.exports=class extends i{constructor(e,{interceptors:A,maxHeaderSize:t,headersTimeout:n,socketTimeout:o,requestTimeout:i,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:E,keepAliveTimeout:g,maxKeepAliveTimeout:u,keepAliveMaxTimeout:h,keepAliveTimeoutThreshold:Q,socketPath:C,pipelining:I,tls:B,strictContentLength:d,maxCachedSessions:p,maxRedirections:m,connect:b,maxRequestsPerClient:R,localAddress:D,maxResponseSize:S,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:N,allowH2:F,maxConcurrentStreams:L}={}){if(super(),void 0!==E)throw new c("unsupported keepAlive, use pipelining=0 instead");if(void 0!==o)throw new c("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==i)throw new c("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==l)throw new c("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==u)throw new c("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=t&&!Number.isFinite(t))throw new c("invalid maxHeaderSize");if(null!=C&&"string"!=typeof C)throw new c("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new c("invalid connectTimeout");if(null!=g&&(!Number.isFinite(g)||g<=0))throw new c("invalid keepAliveTimeout");if(null!=h&&(!Number.isFinite(h)||h<=0))throw new c("invalid keepAliveMaxTimeout");if(null!=Q&&!Number.isFinite(Q))throw new c("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new c("headersTimeout must be a positive integer or zero");if(null!=a&&(!Number.isInteger(a)||a<0))throw new c("bodyTimeout must be a positive integer or zero");if(null!=b&&"function"!=typeof b&&"object"!=typeof b)throw new c("connect must be a function or an object");if(null!=m&&(!Number.isInteger(m)||m<0))throw new c("maxRedirections must be a positive number");if(null!=R&&(!Number.isInteger(R)||R<0))throw new c("maxRequestsPerClient must be a positive number");if(null!=D&&("string"!=typeof D||0===rP.isIP(D)))throw new c("localAddress must be valid string IP address");if(null!=S&&(!Number.isInteger(S)||S<-1))throw new c("maxResponseSize must be a positive number");if(null!=N&&(!Number.isInteger(N)||N<-1))throw new c("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=F&&"boolean"!=typeof F)throw new c("allowH2 must be a valid boolean value");if(null!=L&&("number"!=typeof L||L<1))throw new c("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof b&&(b=f({...B,maxCachedSessions:p,allowH2:F,socketPath:C,timeout:s,...(r.nodeHasAutoSelectFamily&&k?{autoSelectFamily:k,autoSelectFamilyAttemptTimeout:N}:void 0),...b})),this[es]=A&&A.Client&&Array.isArray(A.Client)?A.Client:[eB({maxRedirections:m})],this[y]=r.parseOrigin(e),this[ee]=b,this[q]=null,this[V]=null!=I?I:1,this[j]=t||rJ.maxHeaderSize,this[O]=null==g?4e3:g,this[X]=null==h?6e5:h,this[$]=null==Q?1e3:Q,this[W]=this[O],this[w]=null,this[ea]=null!=D?D:null,this[v]=0,this[_]=0,this[Y]=`host: ${this[y].hostname}${this[y].port?":"+this[y].port:""}\r `,this[Z]=null!=a?a:3e5,this[z]=null!=n?n:3e5,this[K]=null==d||d,this[eA]=m,this[et]=R,this[ej]=null,this[el]=S>-1?S:-1,this[ec]="h1",this[eg]=null,this[eu]=F?{openStreams:0,maxConcurrentStreams:null!=L?L:100}:null,this[eE]=`${this[y].hostname}${this[y].port?":"+this[y].port:""}`,this[T]=[],this[H]=0,this[J]=0;}get pipelining(){return this[V];}set pipelining(e){this[V]=e,eL(this,!0);}get[F](){return this[T].length-this[J];}get[N](){return this[J]-this[H];}get[L](){return this[T].length-this[H];}get[M](){return!!this[q]&&!this[x]&&!this[q].destroyed;}get[R](){let e=this[q];return e&&(e[m]||e[U]||e[k])||this[L]>=(this[V]||1)||this[F]>0;}[S](e){eN(this),this.once("connect",e);}[ei](e,A){let t=e.origin||this[y].origin,n="h2"===this[ec]?o[eh](t,e,A):o[eC](t,e,A);return this[T].push(n),this[v]||(null==r.bodyLength(n.body)&&r.isIterable(n.body)?(this[v]=1,process.nextTick(eL,this)):eL(this,!0)),this[v]&&2!==this[_]&&this[R]&&(this[_]=2),this[_]<2;}async[en](){return new Promise(e=>{this[L]?this[ej]=e:e(null);});}async[eo](e){return new Promise(A=>{let t=this[T].splice(this[J]);for(let A=0;A{this[ej]&&(this[ej](),this[ej]=null),A();};null!=this[eg]&&(r.destroy(this[eg],e),this[eg]=null,this[eu]=null),this[q]?r.destroy(this[q].on("close",n),e):queueMicrotask(n),eL(this);});}};}),tn("jksEw",function(e,A){var t,r,n,o,i,s,a,l;let c;function E(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on;}function g(e){return s&&e instanceof s||e&&"object"==typeof e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]);}function u(e){if("string"==typeof e){if(e=new URL(e),!/^https?:/.test(e.origin||e.protocol))throw new i("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e;}if(!e||"object"!=typeof e)throw new i("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(e.origin||e.protocol))throw new i("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(e instanceof URL)){if(null!=e.port&&""!==e.port&&!Number.isFinite(parseInt(e.port)))throw new i("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=e.path&&"string"!=typeof e.path)throw new i("Invalid URL path: the path must be a string or null/undefined.");if(null!=e.pathname&&"string"!=typeof e.pathname)throw new i("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=e.hostname&&"string"!=typeof e.hostname)throw new i("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=e.origin&&"string"!=typeof e.origin)throw new i("Invalid URL origin: the origin must be a string or null/undefined.");let A=null!=e.port?e.port:"https:"===e.protocol?443:80,t=null!=e.origin?e.origin:`${e.protocol}//${e.hostname}:${A}`,r=null!=e.path?e.path:`${e.pathname||""}${e.search||""}`;t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&!r.startsWith("/")&&(r="/"+r),e=new URL(t+r);}return e;}function h(e){return!e||!!(e.destroyed||e[r]);}function Q(e){let A=e&&e._readableState;return h(e)&&A&&!A.endEmitted;}function C(e){return e instanceof Uint8Array||Buffer.isBuffer(e);}async function*I(e){for await(let A of e)yield Buffer.isBuffer(A)?A:Buffer.from(A);}r=(t=nE("eoU9M")).kDestroyed,n=t.kBodyUsed,o=rJ.IncomingMessage,i=nE("ayJiG").InvalidArgumentError,s=r$.Blob,a=rz.stringify,l=nE("kQDvw").headerNameLowerCasedRecord;let[B,d]=process.versions.node.split(".").map(e=>+e),f=!!String.prototype.toWellFormed,p=Object.create(null);p.enumerable=!0,e.exports={kEnumerableProperty:p,nop:function(){},isDisturbed:function(e){return!!(e&&(rX.isDisturbed?rX.isDisturbed(e)||e[n]:e[n]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||Q(e)));},isErrored:function(e){return!!(e&&(rX.isErrored?rX.isErrored(e):/state: 'errored'/.test(rj.inspect(e))));},isReadable:function(e){return!!(e&&(rX.isReadable?rX.isReadable(e):/state: 'readable'/.test(rj.inspect(e))));},toUSVString:function(e){return f?(""+e).toWellFormed():rj.toUSVString?rj.toUSVString(e):""+e;},isReadableAborted:Q,isBlobLike:g,parseOrigin:function(e){if("/"!==(e=u(e)).pathname||e.search||e.hash)throw new i("invalid url");return e;},parseURL:u,getServerName:function(e){if(!e)return null;rW.strictEqual(typeof e,"string");let A=function(e){if("["===e[0]){let A=e.indexOf("]");return rW(-1!==A),e.substring(1,A);}let A=e.indexOf(":");return-1===A?e:e.substring(0,A);}(e);return rP.isIP(A)?"":A;},isStream:E,isIterable:function(e){return!!(null!=e&&("function"==typeof e[Symbol.iterator]||"function"==typeof e[Symbol.asyncIterator]));},isAsyncIterable:function(e){return!!(null!=e&&"function"==typeof e[Symbol.asyncIterator]);},isDestroyed:h,headerNameToString:function(e){return l[e]||e.toLowerCase();},parseRawHeaders:function(e){let A=[],t=!1,r=-1;for(let n=0;ne.toString("utf8")):A[r]=e[t+1].toString("utf8");}return"content-length"in A&&"content-disposition"in A&&(A["content-disposition"]=Buffer.from(A["content-disposition"]).toString("latin1")),A;},parseKeepAliveTimeout:function(e){let A=e.toString().match(/timeout=(\d+)/);return A?1e3*parseInt(A[1],10):null;},destroy:function(e,A){null==e||!E(e)||h(e)||("function"==typeof e.destroy?(Object.getPrototypeOf(e).constructor===o&&(e.socket=null),e.destroy(A)):A&&process.nextTick((e,A)=>{e.emit("error",A);},e,A),!0===e.destroyed||(e[r]=!0));},bodyLength:function(e){if(null==e)return 0;if(E(e)){let A=e._readableState;return A&&!1===A.objectMode&&!0===A.ended&&Number.isFinite(A.length)?A.length:null;}return g(e)?null!=e.size?e.size:null:C(e)?e.byteLength:null;},deepClone:function(e){return JSON.parse(JSON.stringify(e));},ReadableStreamFrom:function(e){let A;return(c||(c=nE("kJ4DQ").ReadableStream),c.from)?c.from(I(e)):new c({async start(){A=e[Symbol.asyncIterator]();},async pull(e){let{done:t,value:r}=await A.next();if(t)queueMicrotask(()=>{e.close();});else{let A=Buffer.isBuffer(r)?r:Buffer.from(r);e.enqueue(new Uint8Array(A));}return e.desiredSize>0;},async cancel(e){await A.return();}},0);},isBuffer:C,validateHandler:function(e,A,t){if(!e||"object"!=typeof e)throw new i("handler must be an object");if("function"!=typeof e.onConnect)throw new i("invalid onConnect method");if("function"!=typeof e.onError)throw new i("invalid onError method");if("function"!=typeof e.onBodySent&&void 0!==e.onBodySent)throw new i("invalid onBodySent method");if(t||"CONNECT"===A){if("function"!=typeof e.onUpgrade)throw new i("invalid onUpgrade method");}else{if("function"!=typeof e.onHeaders)throw new i("invalid onHeaders method");if("function"!=typeof e.onData)throw new i("invalid onData method");if("function"!=typeof e.onComplete)throw new i("invalid onComplete method");}},getSocketInfo:function(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead};},isFormDataLike:function(e){return e&&"object"==typeof e&&"function"==typeof e.append&&"function"==typeof e.delete&&"function"==typeof e.get&&"function"==typeof e.getAll&&"function"==typeof e.has&&"function"==typeof e.set&&"FormData"===e[Symbol.toStringTag];},buildURL:function(e,A){if(e.includes("?")||e.includes("#"))throw Error('Query params cannot be passed when url already contains "?" or "#".');let t=a(A);return t&&(e+="?"+t),e;},throwIfAborted:function(e){if(e){if("function"==typeof e.throwIfAborted)e.throwIfAborted();else if(e.aborted){let e=Error("The operation was aborted");throw e.name="AbortError",e;}}},addAbortListener:function(e,A){return"addEventListener"in e?(e.addEventListener("abort",A,{once:!0}),()=>e.removeEventListener("abort",A)):(e.addListener("abort",A),()=>e.removeListener("abort",A));},parseRangeHeader:function(e){if(null==e||""===e)return{start:0,end:null,size:null};let A=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return A?{start:parseInt(A[1]),end:A[2]?parseInt(A[2]):null,size:A[3]?parseInt(A[3]):null}:null;},nodeMajor:B,nodeMinor:d,nodeHasAutoSelectFamily:B>18||18===B&&d>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]};}),tn("eoU9M",function(e,A){e.exports={kClose:Symbol(),kDestroy:Symbol(),kDispatch:Symbol(),kUrl:Symbol(),kWriting:Symbol(),kResuming:Symbol(),kQueue:Symbol(),kConnect:Symbol(),kConnecting:Symbol(),kHeadersList:Symbol(),kKeepAliveDefaultTimeout:Symbol(),kKeepAliveMaxTimeout:Symbol(),kKeepAliveTimeoutThreshold:Symbol(),kKeepAliveTimeoutValue:Symbol(),kKeepAlive:Symbol(),kHeadersTimeout:Symbol(),kBodyTimeout:Symbol(),kServerName:Symbol(),kLocalAddress:Symbol(),kHost:Symbol(),kNoRef:Symbol(),kBodyUsed:Symbol(),kRunning:Symbol(),kBlocking:Symbol(),kPending:Symbol(),kSize:Symbol(),kBusy:Symbol(),kQueued:Symbol(),kFree:Symbol(),kConnected:Symbol(),kClosed:Symbol(),kNeedDrain:Symbol(),kReset:Symbol(),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kMaxHeadersSize:Symbol(),kRunningIdx:Symbol(),kPendingIdx:Symbol(),kError:Symbol(),kClients:Symbol(),kClient:Symbol(),kParser:Symbol(),kOnDestroyed:Symbol(),kPipelining:Symbol(),kSocket:Symbol(),kHostHeader:Symbol(),kConnector:Symbol(),kStrictContentLength:Symbol(),kMaxRedirections:Symbol(),kMaxRequests:Symbol(),kProxy:Symbol(),kCounter:Symbol(),kInterceptors:Symbol(),kMaxResponseSize:Symbol(),kHTTP2Session:Symbol(),kHTTP2SessionState:Symbol(),kHTTP2BuildRequest:Symbol(),kHTTP1BuildRequest:Symbol(),kHTTP2CopyHeaders:Symbol(),kHTTPConnVersion:Symbol(),kRetryHandlerDefaultRetry:Symbol(),kConstruct:Symbol()};}),tn("ayJiG",function(e,A){class t extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR";}}class r extends t{constructor(e){super(e),Error.captureStackTrace(this,r),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT";}}class n extends t{constructor(e){super(e),Error.captureStackTrace(this,n),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT";}}class o extends t{constructor(e){super(e),Error.captureStackTrace(this,o),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW";}}class i extends t{constructor(e){super(e),Error.captureStackTrace(this,i),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT";}}class s extends t{constructor(e,A,t,r){super(e),Error.captureStackTrace(this,s),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=r,this.status=A,this.statusCode=A,this.headers=t;}}class a extends t{constructor(e){super(e),Error.captureStackTrace(this,a),this.name="InvalidArgumentError",this.message=e||"Invalid Argument Error",this.code="UND_ERR_INVALID_ARG";}}class l extends t{constructor(e){super(e),Error.captureStackTrace(this,l),this.name="InvalidReturnValueError",this.message=e||"Invalid Return Value Error",this.code="UND_ERR_INVALID_RETURN_VALUE";}}class c extends t{constructor(e){super(e),Error.captureStackTrace(this,c),this.name="AbortError",this.message=e||"Request aborted",this.code="UND_ERR_ABORTED";}}class E extends t{constructor(e){super(e),Error.captureStackTrace(this,E),this.name="InformationalError",this.message=e||"Request information",this.code="UND_ERR_INFO";}}class g extends t{constructor(e){super(e),Error.captureStackTrace(this,g),this.name="RequestContentLengthMismatchError",this.message=e||"Request body length does not match content-length header",this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH";}}class u extends t{constructor(e){super(e),Error.captureStackTrace(this,u),this.name="ResponseContentLengthMismatchError",this.message=e||"Response body length does not match content-length header",this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH";}}class h extends t{constructor(e){super(e),Error.captureStackTrace(this,h),this.name="ClientDestroyedError",this.message=e||"The client is destroyed",this.code="UND_ERR_DESTROYED";}}class Q extends t{constructor(e){super(e),Error.captureStackTrace(this,Q),this.name="ClientClosedError",this.message=e||"The client is closed",this.code="UND_ERR_CLOSED";}}class C extends t{constructor(e,A){super(e),Error.captureStackTrace(this,C),this.name="SocketError",this.message=e||"Socket error",this.code="UND_ERR_SOCKET",this.socket=A;}}class I extends t{constructor(e){super(e),Error.captureStackTrace(this,I),this.name="NotSupportedError",this.message=e||"Not supported error",this.code="UND_ERR_NOT_SUPPORTED";}}class B extends Error{constructor(e,A,t){super(e),Error.captureStackTrace(this,B),this.name="HTTPParserError",this.code=A?"HPE_"+A:void 0,this.data=t?t.toString():void 0;}}class d extends t{constructor(e){super(e),Error.captureStackTrace(this,d),this.name="ResponseExceededMaxSizeError",this.message=e||"Response content exceeded max size",this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE";}}class f extends t{constructor(e,A,{headers:t,data:r}){super(e),Error.captureStackTrace(this,f),this.name="RequestRetryError",this.message=e||"Request retry error",this.code="UND_ERR_REQ_RETRY",this.statusCode=A,this.data=r,this.headers=t;}}e.exports={HTTPParserError:B,UndiciError:t,HeadersTimeoutError:n,HeadersOverflowError:o,BodyTimeoutError:i,RequestContentLengthMismatchError:g,ConnectTimeoutError:r,ResponseStatusCodeError:s,InvalidArgumentError:a,InvalidReturnValueError:l,RequestAbortedError:c,ClientDestroyedError:h,ClientClosedError:Q,InformationalError:E,SocketError:C,NotSupportedError:I,ResponseContentLengthMismatchError:u,BalancedPoolMissingUpstreamError:class extends t{constructor(e){super(e),Error.captureStackTrace(this,I),this.name="MissingUpstreamError",this.message=e||"No upstream has been added to the BalancedPool",this.code="UND_ERR_BPL_MISSING_UPSTREAM";}},ResponseExceededMaxSizeError:d,RequestRetryError:f};}),tn("kQDvw",function(e,A){let t={},r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;eA(e));}function E(e,A,t){return Az.call(e,A,t);}function g(e,A,t){E(E(e,A,t),void 0,Aj);}function u(e,A){g(e,void 0,A);}function h(e){E(e,void 0,Aj);}function Q(e,A,t){if("function"!=typeof e)throw TypeError("Argument is not a function");return Function.prototype.apply.call(e,A,t);}function C(e,A,t){try{return c(Q(e,A,t));}catch(e){return AZ(e);}}function I(e,A){var t,r;e._ownerReadableStream=A,A._reader=e,"readable"===A._state?p(e):"closed"===A._state?(p(e),m(e)):(t=e,r=A._storedError,p(t),y(t,r));}function B(e,A){return AR(e._ownerReadableStream,A);}function d(e){var A,t;let r=e._ownerReadableStream;"readable"===r._state?y(e,TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):(A=e,t=TypeError("Reader was released and can no longer be used to monitor the stream's closedness"),p(A),y(A,t)),r._readableStreamController[A3](),r._reader=void 0,e._ownerReadableStream=void 0;}function f(e){return TypeError("Cannot "+e+" a stream using a released reader");}function p(e){e._closedPromise=l((A,t)=>{e._closedPromise_resolve=A,e._closedPromise_reject=t;});}function y(e,A){void 0!==e._closedPromise_reject&&(h(e._closedPromise),e._closedPromise_reject(A),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0);}function m(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0);}function w(e,A){var t;if(void 0!==e&&"object"!=typeof(t=e)&&"function"!=typeof t)throw TypeError(`${A} is not an object.`);}function b(e,A){if("function"!=typeof e)throw TypeError(`${A} is not a function.`);}function R(e,A){if(!("object"==typeof e&&null!==e||"function"==typeof e))throw TypeError(`${A} is not an object.`);}function D(e,A,t){if(void 0===e)throw TypeError(`Parameter ${A} is required in '${t}'.`);}function S(e,A,t){if(void 0===e)throw TypeError(`${A} is required in '${t}'.`);}function k(e,A){var t,r;let n=Number.MAX_SAFE_INTEGER,o=+e;if(!A5(o=0===(t=o)?0:t))throw TypeError(`${A} is not a finite number`);if((o=0===(r=A6(o))?0:r)<0||o>n)throw TypeError(`${A} is outside the accepted range of 0 to ${n}, inclusive`);return A5(o)&&0!==o?o:0;}function v(e,A){if(!Aw(e))throw TypeError(`${A} is not a ReadableStream.`);}function N(e){return new A7(e);}function F(e,A){e._reader._readRequests.push(A);}function L(e,A,t){let r=e._reader._readRequests.shift();t?r._closeSteps():r._chunkSteps(A);}function U(e){return e._reader._readRequests.length;}function T(e){let A=e._reader;return void 0!==A&&!!M(A);}function M(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof A7;}function x(e,A){let t=e._ownerReadableStream;t._disturbed=!0,"closed"===t._state?A._closeSteps():"errored"===t._state?A._errorSteps(t._storedError):t._readableStreamController[A8](A);}function _(e,A){let t=e._readRequests;e._readRequests=new A1(),t.forEach(e=>{e._errorSteps(A);});}function G(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`);}function O(e){return e.slice();}function Y(e,A,t,r,n){new Uint8Array(e).set(new Uint8Array(t,r,n),A);}function J(e,A,t){if(e.slice)return e.slice(A,t);let r=t-A,n=new ArrayBuffer(r);return Y(n,0,e,A,r),n;}function H(e,A){let t=e[A];if(null!=t){if("function"!=typeof t)throw TypeError(`${A+""} is not a function`);return t;}}function P(e){try{let A=e.done,t=e.value;return E(AK(t),e=>({done:A,value:e}));}catch(e){return AZ(e);}}function V(e){let A=Q(e.nextMethod,e.iterator,[]);if(!i(A))throw TypeError("The iterator.next() method must return an object");return A;}function q(e){if(!i(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof tr;}catch(e){return!1;}}function W(e){return TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`);}function j(e){return new Uint8Array(J(e.buffer,e.byteOffset,e.byteOffset+e.byteLength));}function X(e){let A=e._queue.shift();return e._queueTotalSize-=A.size,e._queueTotalSize<0&&(e._queueTotalSize=0),A.value;}function $(e,A,t){if("number"!=typeof t||to(t)||t<0||t===1/0)throw RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:A,size:t}),e._queueTotalSize+=t;}function z(e){e._queue=new A1(),e._queueTotalSize=0;}function Z(e){return e===DataView;}function K(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof ts;}function ee(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ti;}function eA(e){if(function(e){let A=e._controlledReadableByteStream;return"readable"===A._state&&!e._closeRequested&&!!e._started&&!!(T(A)&&U(A)>0||ek(A)&&eS(A)>0||ep(e)>0);}(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,g(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,eA(e)),null),A=>(eB(e,A),null));}}function et(e){eE(e),e._pendingPullIntos=new A1();}function er(e,A){let t=!1;"closed"===e._state&&(t=!0);let r=en(A);"default"===A.readerType?L(e,r,t):function(e,A,t){let r=e._reader._readIntoRequests.shift();t?r._closeSteps(A):r._chunkSteps(A);}(e,r,t);}function en(e){let A=e.bytesFilled,t=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,A/t);}function eo(e,A,t,r){e._queue.push({buffer:A,byteOffset:t,byteLength:r}),e._queueTotalSize+=r;}function ei(e,A,t,r){let n;try{n=J(A,t,t+r);}catch(A){throw eB(e,A),A;}eo(e,n,0,r);}function es(e,A){A.bytesFilled>0&&ei(e,A.buffer,A.byteOffset,A.bytesFilled),eh(e);}function ea(e,A){let t=Math.min(e._queueTotalSize,A.byteLength-A.bytesFilled),r=A.bytesFilled+t,n=t,o=!1,i=r-r%A.elementSize;i>=A.minimumFill&&(n=i-A.bytesFilled,o=!0);let s=e._queue;for(;n>0;){let t=s.peek(),r=Math.min(n,t.byteLength),o=A.byteOffset+A.bytesFilled;Y(A.buffer,o,t.buffer,t.byteOffset,r),t.byteLength===r?s.shift():(t.byteOffset+=r,t.byteLength-=r),e._queueTotalSize-=r,el(e,r,A),n-=r;}return o;}function el(e,A,t){t.bytesFilled+=A;}function ec(e){0===e._queueTotalSize&&e._closeRequested?(eQ(e),AD(e._controlledReadableByteStream)):eA(e);}function eE(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null);}function eg(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;let A=e._pendingPullIntos.peek();ea(e,A)&&(eh(e),er(e._controlledReadableByteStream,A));}}function eu(e,A){let t=e._pendingPullIntos.peek();eE(e),"closed"===e._controlledReadableByteStream._state?function(e,A){"none"===A.readerType&&eh(e);let t=e._controlledReadableByteStream;if(ek(t))for(;eS(t)>0;)er(t,eh(e));}(e,t):function(e,A,t){if(el(0,A,t),"none"===t.readerType)return es(e,t),void eg(e);if(t.bytesFilled0){let A=t.byteOffset+t.bytesFilled;ei(e,t.buffer,A-r,r);}t.bytesFilled-=r,er(e._controlledReadableByteStream,t),eg(e);}(e,A,t),eA(e);}function eh(e){return e._pendingPullIntos.shift();}function eQ(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0;}function eC(e){let A=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===A._state){if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){let A=e._pendingPullIntos.peek();if(A.bytesFilled%A.elementSize!=0){let A=TypeError("Insufficient bytes to fill elements in the given buffer");throw eB(e,A),A;}}eQ(e),AD(A);}}}function eI(e,A){let t=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==t._state)return;let{buffer:r,byteOffset:n,byteLength:o}=A;if(tA(r))throw TypeError("chunk's buffer is detached and so cannot be enqueued");let i=te(r);if(e._pendingPullIntos.length>0){let A=e._pendingPullIntos.peek();if(tA(A.buffer))throw TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");eE(e),A.buffer=te(A.buffer),"none"===A.readerType&&es(e,A);}T(t)?(function(e){let A=e._controlledReadableByteStream._reader;for(;A._readRequests.length>0;){if(0===e._queueTotalSize)return;ed(e,A._readRequests.shift());}}(e),0===U(t))?eo(e,i,n,o):(e._pendingPullIntos.length>0&&eh(e),L(t,new Uint8Array(i,n,o),!1)):ek(t)?(eo(e,i,n,o),eg(e)):eo(e,i,n,o),eA(e);}function eB(e,A){let t=e._controlledReadableByteStream;"readable"===t._state&&(et(e),z(e),eQ(e),AS(t,A));}function ed(e,A){let t=e._queue.shift();e._queueTotalSize-=t.byteLength,ec(e);let r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);A._chunkSteps(r);}function ef(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){let A=e._pendingPullIntos.peek(),t=new Uint8Array(A.buffer,A.byteOffset+A.bytesFilled,A.byteLength-A.bytesFilled),r=Object.create(ti.prototype);r._associatedReadableByteStreamController=e,r._view=t,e._byobRequest=r;}return e._byobRequest;}function ep(e){let A=e._controlledReadableByteStream._state;return"errored"===A?null:"closed"===A?0:e._strategyHWM-e._queueTotalSize;}function ey(e,A){let t=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==A)throw TypeError("bytesWritten must be 0 when calling respond() on a closed stream");}else{if(0===A)throw TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(t.bytesFilled+A>t.byteLength)throw RangeError("bytesWritten out of range");}t.buffer=te(t.buffer),eu(e,A);}function em(e,A){let t=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==A.byteLength)throw TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream");}else if(0===A.byteLength)throw TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(t.byteOffset+t.bytesFilled!==A.byteOffset)throw RangeError("The region specified by view does not match byobRequest");if(t.bufferByteLength!==A.buffer.byteLength)throw RangeError("The buffer of view has different capacity than byobRequest");if(t.bytesFilled+A.byteLength>t.byteLength)throw RangeError("The region specified by view is larger than byobRequest");let r=A.byteLength;t.buffer=te(A.buffer),eu(e,r);}function ew(e,A,t,r,n,o,i){A._controlledReadableByteStream=e,A._pullAgain=!1,A._pulling=!1,A._byobRequest=null,A._queue=A._queueTotalSize=void 0,z(A),A._closeRequested=!1,A._started=!1,A._strategyHWM=o,A._pullAlgorithm=r,A._cancelAlgorithm=n,A._autoAllocateChunkSize=i,A._pendingPullIntos=new A1(),e._readableStreamController=A,g(c(t()),()=>(A._started=!0,eA(A),null),e=>(eB(A,e),null));}function eb(e){return TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`);}function eR(e){return TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`);}function eD(e,A){e._reader._readIntoRequests.push(A);}function eS(e){return e._reader._readIntoRequests.length;}function ek(e){let A=e._reader;return void 0!==A&&!!ev(A);}function ev(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof ta;}function eN(e,A,t,r){let n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,A,t,r){let n;let o=e._controlledReadableByteStream,i=A.constructor,s=Z(i)?1:i.BYTES_PER_ELEMENT,{byteOffset:a,byteLength:l}=A;try{n=te(A.buffer);}catch(e){return void r._errorSteps(e);}let c={buffer:n,bufferByteLength:n.byteLength,byteOffset:a,byteLength:l,bytesFilled:0,minimumFill:t*s,elementSize:s,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(c),void eD(o,r);if("closed"!==o._state){if(e._queueTotalSize>0){if(ea(e,c)){let A=en(c);return ec(e),void r._chunkSteps(A);}if(e._closeRequested){let A=TypeError("Insufficient bytes to fill elements in the given buffer");return eB(e,A),void r._errorSteps(A);}}e._pendingPullIntos.push(c),eD(o,r),eA(e);}else{let e=new i(c.buffer,c.byteOffset,0);r._closeSteps(e);}}(n._readableStreamController,A,t,r);}function eF(e,A){let t=e._readIntoRequests;e._readIntoRequests=new A1(),t.forEach(e=>{e._errorSteps(A);});}function eL(e){return TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`);}function eU(e,A){let{highWaterMark:t}=e;if(void 0===t)return A;if(to(t)||t<0)throw RangeError("Invalid highWaterMark");return t;}function eT(e){let{size:A}=e;return A||(()=>1);}function eM(e,A){var t;w(e,A);let r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:+r,size:void 0===n?void 0:(b(t=n,`${A} has member 'size' that`),e=>+t(e))};}function ex(e,A){if(!eG(e))throw TypeError(`${A} is not a WritableStream.`);}function e_(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new A1(),e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1;}function eG(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof tc;}function eO(e){return void 0!==e._writer;}function eY(e,A){var t;if("closed"===e._state||"errored"===e._state)return c(void 0);e._writableStreamController._abortReason=A,null===(t=e._writableStreamController._abortController)||void 0===t||t.abort(A);let r=e._state;if("closed"===r||"errored"===r)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===r&&(n=!0,A=void 0);let o=l((t,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:t,_reject:r,_reason:A,_wasAlreadyErroring:n};});return e._pendingAbortRequest._promise=o,n||eP(e,A),o;}function eJ(e){var A;let t=e._state;if("closed"===t||"errored"===t)return AZ(TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));let r=l((A,t)=>{e._closeRequest={_resolve:A,_reject:t};}),n=e._writer;return void 0!==n&&e._backpressure&&"writable"===t&&As(n),$(A=e._writableStreamController,tg,0),e9(A),r;}function eH(e,A){"writable"!==e._state?eV(e):eP(e,A);}function eP(e,A){let t=e._writableStreamController;e._state="erroring",e._storedError=A;let r=e._writer;void 0!==r&&ez(r,A),!(void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest)&&t._started&&eV(e);}function eV(e){e._state="errored",e._writableStreamController[A4]();let A=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(A);}),e._writeRequests=new A1(),void 0===e._pendingAbortRequest)return void eW(e);let t=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,t._wasAlreadyErroring)return t._reject(A),void eW(e);g(e._writableStreamController[A2](t._reason),()=>(t._resolve(),eW(e),null),A=>(t._reject(A),eW(e),null));}function eq(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest;}function eW(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);let A=e._writer;void 0!==A&&At(A,e._storedError);}function ej(e,A){let t=e._writer;void 0!==t&&A!==e._backpressure&&(A?An(t):As(t)),e._backpressure=A;}function eX(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof tE;}function e$(e){return eJ(e._ownerWritableStream);}function ez(e,A){"pending"===e._readyPromiseState?Ai(e,A):Ao(e,A);}function eZ(e){var A,t,r,n;let o=e._ownerWritableStream,i=TypeError("Writer was released and can no longer be used to monitor the stream's closedness");ez(e,i),A=e,t=i,"pending"===A._closedPromiseState?At(A,t):(r=A,n=t,AA(r),At(r,n)),o._writer=void 0,e._ownerWritableStream=void 0;}function eK(e,A){let t=e._ownerWritableStream,r=t._writableStreamController,n=function(e,A){try{return e._strategySizeAlgorithm(A);}catch(A){return e8(e,A),1;}}(r,A);if(t!==e._ownerWritableStream)return AZ(Ae("write to"));let o=t._state;if("errored"===o)return AZ(t._storedError);if(eq(t)||"closed"===o)return AZ(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return AZ(t._storedError);let i=l((e,A)=>{t._writeRequests.push({_resolve:e,_reject:A});});return function(e,A,t){try{$(e,A,t);}catch(A){return void e8(e,A);}let r=e._controlledWritableStream;eq(r)||"writable"!==r._state||ej(r,0>=e4(e)),e9(e);}(r,A,n),i;}function e0(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof tu;}function e1(e,A,t,r,n,o,i,s){A._controlledWritableStream=e,e._writableStreamController=A,A._queue=void 0,A._queueTotalSize=void 0,z(A),A._abortReason=void 0,A._abortController=function(){if(tl)return new AbortController();}(),A._started=!1,A._strategySizeAlgorithm=s,A._strategyHWM=i,A._writeAlgorithm=r,A._closeAlgorithm=n,A._abortAlgorithm=o,ej(e,0>=e4(A)),g(c(t()),()=>(A._started=!0,e9(A),null),t=>(A._started=!0,eH(e,t),null));}function e2(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0;}function e4(e){return e._strategyHWM-e._queueTotalSize;}function e9(e){let A=e._controlledWritableStream;if(!e._started||void 0!==A._inFlightWriteRequest)return;if("erroring"===A._state)return void eV(A);if(0===e._queue.length)return;let t=e._queue.peek().value;t===tg?function(e){let A=e._controlledWritableStream;A._inFlightCloseRequest=A._closeRequest,A._closeRequest=void 0,X(e);let t=e._closeAlgorithm();e2(e),g(t,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";let A=e._writer;void 0!==A&&Ar(A);}(A),null),e=>(A._inFlightCloseRequest._reject(e),A._inFlightCloseRequest=void 0,void 0!==A._pendingAbortRequest&&(A._pendingAbortRequest._reject(e),A._pendingAbortRequest=void 0),eH(A,e),null));}(e):function(e,A){let t=e._controlledWritableStream;t._inFlightWriteRequest=t._writeRequests.shift(),g(e._writeAlgorithm(A),()=>{t._inFlightWriteRequest._resolve(void 0),t._inFlightWriteRequest=void 0;let A=t._state;return X(e),eq(t)||"writable"!==A||ej(t,0>=e4(e)),e9(e),null;},A=>("writable"===t._state&&e2(e),t._inFlightWriteRequest._reject(A),t._inFlightWriteRequest=void 0,eH(t,A),null));}(e,t);}function e8(e,A){"writable"===e._controlledWritableStream._state&&e3(e,A);}function e3(e,A){let t=e._controlledWritableStream;e2(e),eP(t,A);}function e5(e){return TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`);}function e6(e){return TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`);}function e7(e){return TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`);}function Ae(e){return TypeError("Cannot "+e+" a stream using a released writer");}function AA(e){e._closedPromise=l((A,t)=>{e._closedPromise_resolve=A,e._closedPromise_reject=t,e._closedPromiseState="pending";});}function At(e,A){void 0!==e._closedPromise_reject&&(h(e._closedPromise),e._closedPromise_reject(A),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected");}function Ar(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved");}function An(e){e._readyPromise=l((A,t)=>{e._readyPromise_resolve=A,e._readyPromise_reject=t;}),e._readyPromiseState="pending";}function Ao(e,A){An(e),Ai(e,A);}function Ai(e,A){void 0!==e._readyPromise_reject&&(h(e._readyPromise),e._readyPromise_reject(A),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected");}function As(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled");}function Aa(e,A,t,r,n,i){let s=N(e),a=new tE(A);e._disturbed=!0;let Q=!1,C=c(void 0);return l((I,B)=>{var f,p;let y;function m(){let e=C;return E(C,()=>e!==C?m():void 0);}function w(e,A,t){"errored"===e._state?t(e._storedError):u(A,t);}function b(e,t,r){function n(){return g(e(),()=>D(t,r),e=>D(!0,e)),null;}Q||(Q=!0,"writable"!==A._state||eq(A)?n():g(m(),n));}function R(e,t){Q||(Q=!0,"writable"!==A._state||eq(A)?D(e,t):g(m(),()=>D(e,t)));}function D(e,A){return eZ(a),d(s),void 0!==i&&i.removeEventListener("abort",y),e?B(A):I(void 0),null;}if(void 0!==i){if(y=()=>{let t=void 0!==i.reason?i.reason:new tQ("Aborted","AbortError"),o=[];r||o.push(()=>"writable"===A._state?eY(A,t):c(void 0)),n||o.push(()=>"readable"===e._state?AR(e,t):c(void 0)),b(()=>Promise.all(o.map(e=>e())),!0,t);},i.aborted)return void y();i.addEventListener("abort",y);}if(w(e,s._closedPromise,e=>(r?R(!0,e):b(()=>eY(A,e),!0,e),null)),w(A,a._closedPromise,A=>(n?R(!0,A):b(()=>AR(e,A),!0,A),null)),f=s._closedPromise,p=()=>(t?R():b(()=>function(e){let A=e._ownerWritableStream,t=A._state;return eq(A)||"closed"===t?c(void 0):"errored"===t?AZ(A._storedError):e$(e);}(a)),null),"closed"===e._state?p():g(f,p),eq(A)||"closed"===A._state){let A=TypeError("the destination writable stream closed before all data could be piped to it");n?R(!0,A):b(()=>AR(e,A),!0,A);}h(l((e,A)=>{!function t(r){r?e():E(Q?c(!0):E(a._readyPromise,()=>l((e,A)=>{x(s,{_chunkSteps(A){C=E(eK(a,A),void 0,o),e(!1);},_closeSteps:()=>e(!0),_errorSteps:A});})),t,A);}(!1);}));});}function Al(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof tC;}function Ac(e){if(AE(e)){if(e._pulling)return void(e._pullAgain=!0);e._pulling=!0,g(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Ac(e)),null),A=>(AQ(e,A),null));}}function AE(e){let A=e._controlledReadableStream;return!!AI(e)&&!!e._started&&(!!(Ab(A)&&U(A)>0)||AC(e)>0);}function Ag(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0;}function Au(e){if(!AI(e))return;let A=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(Ag(e),AD(A));}function Ah(e,A){if(!AI(e))return;let t=e._controlledReadableStream;if(Ab(t)&&U(t)>0)L(t,A,!1);else{let t;try{t=e._strategySizeAlgorithm(A);}catch(A){throw AQ(e,A),A;}try{$(e,A,t);}catch(A){throw AQ(e,A),A;}}Ac(e);}function AQ(e,A){let t=e._controlledReadableStream;"readable"===t._state&&(z(e),Ag(e),AS(t,A));}function AC(e){let A=e._controlledReadableStream._state;return"errored"===A?null:"closed"===A?0:e._strategyHWM-e._queueTotalSize;}function AI(e){let A=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===A;}function AB(e,A,t,r,n,o,i){A._controlledReadableStream=e,A._queue=void 0,A._queueTotalSize=void 0,z(A),A._started=!1,A._closeRequested=!1,A._pullAgain=!1,A._pulling=!1,A._strategySizeAlgorithm=i,A._strategyHWM=o,A._pullAlgorithm=r,A._cancelAlgorithm=n,e._readableStreamController=A,g(c(t()),()=>(A._started=!0,Ac(A),null),e=>(AQ(A,e),null));}function Ad(e){return TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`);}function Af(e,A){w(e,A);let t=null==e?void 0:e.preventAbort,r=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,A){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted;}catch(e){return!1;}}(e))throw TypeError(`${A} is not an AbortSignal.`);}(o,`${A} has member 'signal' that`),{preventAbort:!!t,preventCancel:!!r,preventClose:!!n,signal:o};}function Ap(e,A,t,r=1,n=()=>1){let o=Object.create(tI.prototype);return Am(o),AB(o,Object.create(tC.prototype),e,A,t,r,n),o;}function Ay(e,A,t){let r=Object.create(tI.prototype);return Am(r),ew(r,Object.create(ts.prototype),e,A,t,0,void 0),r;}function Am(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1;}function Aw(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof tI;}function Ab(e){return void 0!==e._reader;}function AR(e,A){if(e._disturbed=!0,"closed"===e._state)return c(void 0);if("errored"===e._state)return AZ(e._storedError);AD(e);let t=e._reader;if(void 0!==t&&ev(t)){let e=t._readIntoRequests;t._readIntoRequests=new A1(),e.forEach(e=>{e._closeSteps(void 0);});}return E(e._readableStreamController[A9](A),o,void 0);}function AD(e){e._state="closed";let A=e._reader;if(void 0!==A&&(m(A),M(A))){let e=A._readRequests;A._readRequests=new A1(),e.forEach(e=>{e._closeSteps();});}}function AS(e,A){e._state="errored",e._storedError=A;let t=e._reader;void 0!==t&&(y(t,A),M(t)?_(t,A):eF(t,A));}function Ak(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);}function Av(e,A){w(e,A);let t=null==e?void 0:e.highWaterMark;return S(t,"highWaterMark","QueuingStrategyInit"),{highWaterMark:+t};}function AN(e){return TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`);}function AF(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")&&e instanceof td;}function AL(e){return TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`);}function AU(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")&&e instanceof tp;}function AT(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof ty;}function AM(e,A){AQ(e._readable._readableStreamController,A),Ax(e,A);}function Ax(e,A){AY(e._transformStreamController),e8(e._writable._writableStreamController,A),A_(e);}function A_(e){e._backpressure&&AG(e,!1);}function AG(e,A){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=l(A=>{e._backpressureChangePromise_resolve=A;}),e._backpressure=A;}function AO(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof tm;}function AY(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0;}function AJ(e,A){let t=e._controlledTransformStream,r=t._readable._readableStreamController;if(!AI(r))throw TypeError("Readable side is not in a state that permits enqueue");try{Ah(r,A);}catch(e){throw Ax(t,e),t._readable._storedError;}!AE(r)!==t._backpressure&&AG(t,!0);}function AH(e,A){return E(e._transformAlgorithm(A),void 0,A=>{throw AM(e._controlledTransformStream,A),A;});}function AP(e){return TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`);}function AV(e){void 0!==e._finishPromise_resolve&&(e._finishPromise_resolve(),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0);}function Aq(e,A){void 0!==e._finishPromise_reject&&(h(e._finishPromise),e._finishPromise_reject(A),e._finishPromise_resolve=void 0,e._finishPromise_reject=void 0);}function AW(e){return TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`);}a(e.exports,"ReadableStream",()=>tI),a(e.exports,"TransformStream",()=>ty);let Aj=o,AX=Promise,A$=Promise.resolve.bind(AX),Az=Promise.prototype.then,AZ=Promise.reject.bind(AX),AK=A$,A0=e=>{if("function"==typeof queueMicrotask)A0=queueMicrotask;else{let e=c(void 0);A0=A=>E(e,A);}return A0(e);};class A1{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0;}get length(){return this._size;}push(e){let A=this._back,t=A;16383===A._elements.length&&(t={_elements:[],_next:void 0}),A._elements.push(e),t!==A&&(this._back=t,A._next=t),++this._size;}shift(){let e=this._front,A=e,t=this._cursor,r=t+1,n=e._elements,o=n[t];return 16384===r&&(A=e._next,r=0),--this._size,this._cursor=r,e!==A&&(this._front=A),n[t]=void 0,o;}forEach(e){let A=this._cursor,t=this._front,r=t._elements;for(;!(A===r.length&&void 0===t._next||A===r.length&&(r=(t=t._next)._elements,A=0,0===r.length));)e(r[A]),++A;}peek(){let e=this._front,A=this._cursor;return e._elements[A];}}let A2=Symbol(),A4=Symbol(),A9=Symbol(),A8=Symbol(),A3=Symbol(),A5=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e);},A6=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e);};class A7{constructor(e){if(D(e,1,"ReadableStreamDefaultReader"),v(e,"First parameter"),Ab(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");I(this,e),this._readRequests=new A1();}get closed(){return M(this)?this._closedPromise:AZ(G("closed"));}cancel(e){return M(this)?void 0===this._ownerReadableStream?AZ(f("cancel")):B(this,e):AZ(G("cancel"));}read(){let e,A;if(!M(this))return AZ(G("read"));if(void 0===this._ownerReadableStream)return AZ(f("read from"));let t=l((t,r)=>{e=t,A=r;});return x(this,{_chunkSteps:A=>e({value:A,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>A(e)}),t;}releaseLock(){if(!M(this))throw G("releaseLock");void 0!==this._ownerReadableStream&&(d(this),_(this,TypeError("Reader was released")));}}Object.defineProperties(A7.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(A7.prototype.cancel,"cancel"),s(A7.prototype.read,"read"),s(A7.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(A7.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let te=e=>(te="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e)(e),tA=e=>(tA="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength)(e),tt=null!==(n=null!==(t=Symbol.asyncIterator)&&void 0!==t?t:null===(r=Symbol.for)||void 0===r?void 0:r.call(Symbol,"Symbol.asyncIterator"))&&void 0!==n?n:"@@asyncIterator";class tr{constructor(e,A){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=A;}next(){let e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?E(this._ongoingPromise,e,e):e(),this._ongoingPromise;}return(e){let A=()=>this._returnSteps(e);return this._ongoingPromise?E(this._ongoingPromise,A,A):A();}_nextSteps(){let e,A;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});let t=this._reader,r=l((t,r)=>{e=t,A=r;});return x(t,{_chunkSteps:A=>{this._ongoingPromise=void 0,A0(()=>e({value:A,done:!1}));},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,d(t),e({value:void 0,done:!0});},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,d(t),A(e);}}),r;}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;let A=this._reader;if(!this._preventCancel){let t=B(A,e);return d(A),E(t,()=>({value:e,done:!0}),void 0);}return d(A),c({value:e,done:!0});}}let tn={next(){return q(this)?this._asyncIteratorImpl.next():AZ(W("next"));},return(e){return q(this)?this._asyncIteratorImpl.return(e):AZ(W("return"));},[tt](){return this;}};Object.defineProperty(tn,tt,{enumerable:!1});let to=Number.isNaN||function(e){return e!=e;};class ti{constructor(){throw TypeError("Illegal constructor");}get view(){if(!ee(this))throw eb("view");return this._view;}respond(e){if(!ee(this))throw eb("respond");if(D(e,1,"respond"),e=k(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");if(tA(this._view.buffer))throw TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");ey(this._associatedReadableByteStreamController,e);}respondWithNewView(e){if(!ee(this))throw eb("respondWithNewView");if(D(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw TypeError("This BYOB request has been invalidated");if(tA(e.buffer))throw TypeError("The given view's buffer has been detached and so cannot be used as a response");em(this._associatedReadableByteStreamController,e);}}Object.defineProperties(ti.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),s(ti.prototype.respond,"respond"),s(ti.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ti.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class ts{constructor(){throw TypeError("Illegal constructor");}get byobRequest(){if(!K(this))throw eR("byobRequest");return ef(this);}get desiredSize(){if(!K(this))throw eR("desiredSize");return ep(this);}close(){if(!K(this))throw eR("close");if(this._closeRequested)throw TypeError("The stream has already been closed; do not close it again!");let e=this._controlledReadableByteStream._state;if("readable"!==e)throw TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);eC(this);}enqueue(e){if(!K(this))throw eR("enqueue");if(D(e,1,"enqueue"),!ArrayBuffer.isView(e))throw TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw TypeError("stream is closed or draining");let A=this._controlledReadableByteStream._state;if("readable"!==A)throw TypeError(`The stream (in ${A} state) is not in the readable state and cannot be enqueued to`);eI(this,e);}error(e){if(!K(this))throw eR("error");eB(this,e);}[A9](e){et(this),z(this);let A=this._cancelAlgorithm(e);return eQ(this),A;}[A8](e){let A=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void ed(this,e);let t=this._autoAllocateChunkSize;if(void 0!==t){let A;try{A=new ArrayBuffer(t);}catch(A){return void e._errorSteps(A);}let r={buffer:A,bufferByteLength:t,byteOffset:0,byteLength:t,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(r);}F(A,e),eA(this);}[A3](){if(this._pendingPullIntos.length>0){let e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new A1(),this._pendingPullIntos.push(e);}}}Object.defineProperties(ts.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),s(ts.prototype.close,"close"),s(ts.prototype.enqueue,"enqueue"),s(ts.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ts.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class ta{constructor(e){if(D(e,1,"ReadableStreamBYOBReader"),v(e,"First parameter"),Ab(e))throw TypeError("This stream has already been locked for exclusive reading by another reader");if(!K(e._readableStreamController))throw TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");I(this,e),this._readIntoRequests=new A1();}get closed(){return ev(this)?this._closedPromise:AZ(eL("closed"));}cancel(e){return ev(this)?void 0===this._ownerReadableStream?AZ(f("cancel")):B(this,e):AZ(eL("cancel"));}read(e,A={}){let t,r,n;if(!ev(this))return AZ(eL("read"));if(!ArrayBuffer.isView(e))return AZ(TypeError("view must be an array buffer view"));if(0===e.byteLength)return AZ(TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return AZ(TypeError("view's buffer must have non-zero byteLength"));if(tA(e.buffer))return AZ(TypeError("view's buffer has been detached"));try{var o,i;o="options",w(A,o),t={min:k(null!==(i=null==A?void 0:A.min)&&void 0!==i?i:1,`${o} has member 'min' that`)};}catch(e){return AZ(e);}let s=t.min;if(0===s)return AZ(TypeError("options.min must be greater than 0"));if(Z(e.constructor)){if(s>e.byteLength)return AZ(RangeError("options.min must be less than or equal to view's byteLength"));}else if(s>e.length)return AZ(RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return AZ(f("read from"));let a=l((e,A)=>{r=e,n=A;});return eN(this,e,s,{_chunkSteps:e=>r({value:e,done:!1}),_closeSteps:e=>r({value:e,done:!0}),_errorSteps:e=>n(e)}),a;}releaseLock(){if(!ev(this))throw eL("releaseLock");void 0!==this._ownerReadableStream&&(d(this),eF(this,TypeError("Reader was released")));}}Object.defineProperties(ta.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),s(ta.prototype.cancel,"cancel"),s(ta.prototype.read,"read"),s(ta.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ta.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});let tl="function"==typeof AbortController;class tc{constructor(e={},A={}){void 0===e?e=null:R(e,"First parameter");let t=eM(A,"Second parameter"),r=function(e,A){w(e,A);let t=null==e?void 0:e.abort,r=null==e?void 0:e.close,n=null==e?void 0:e.start,o=null==e?void 0:e.type,i=null==e?void 0:e.write;return{abort:void 0===t?void 0:(b(t,`${A} has member 'abort' that`),A=>C(t,e,[A])),close:void 0===r?void 0:(b(r,`${A} has member 'close' that`),()=>C(r,e,[])),start:void 0===n?void 0:(b(n,`${A} has member 'start' that`),A=>Q(n,e,[A])),write:void 0===i?void 0:(b(i,`${A} has member 'write' that`),(A,t)=>C(i,e,[A,t])),type:o};}(e,"First parameter");if(e_(this),void 0!==r.type)throw RangeError("Invalid type is specified");let n=eT(t);!function(e,A,t,r){let n,o;let i=Object.create(tu.prototype);n=void 0!==A.start?()=>A.start(i):()=>{},o=void 0!==A.write?e=>A.write(e,i):()=>c(void 0),e1(e,i,n,o,void 0!==A.close?()=>A.close():()=>c(void 0),void 0!==A.abort?e=>A.abort(e):()=>c(void 0),t,r);}(this,r,eU(t,1),n);}get locked(){if(!eG(this))throw e5("locked");return eO(this);}abort(e){return eG(this)?eO(this)?AZ(TypeError("Cannot abort a stream that already has a writer")):eY(this,e):AZ(e5("abort"));}close(){return eG(this)?eO(this)?AZ(TypeError("Cannot close a stream that already has a writer")):eq(this)?AZ(TypeError("Cannot close an already-closing stream")):eJ(this):AZ(e5("close"));}getWriter(){if(!eG(this))throw e5("getWriter");return new tE(this);}}Object.defineProperties(tc.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),s(tc.prototype.abort,"abort"),s(tc.prototype.close,"close"),s(tc.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tc.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class tE{constructor(e){if(D(e,1,"WritableStreamDefaultWriter"),ex(e,"First parameter"),eO(e))throw TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;let A=e._state;if("writable"===A)!eq(e)&&e._backpressure?An(this):(An(this),As(this)),AA(this);else if("erroring"===A)Ao(this,e._storedError),AA(this);else if("closed"===A)An(this),As(this),AA(this),Ar(this);else{let A=e._storedError;Ao(this,A),AA(this),At(this,A);}}get closed(){return eX(this)?this._closedPromise:AZ(e7("closed"));}get desiredSize(){if(!eX(this))throw e7("desiredSize");if(void 0===this._ownerWritableStream)throw Ae("desiredSize");return function(e){let A=e._ownerWritableStream,t=A._state;return"errored"===t||"erroring"===t?null:"closed"===t?0:e4(A._writableStreamController);}(this);}get ready(){return eX(this)?this._readyPromise:AZ(e7("ready"));}abort(e){return eX(this)?void 0===this._ownerWritableStream?AZ(Ae("abort")):eY(this._ownerWritableStream,e):AZ(e7("abort"));}close(){if(!eX(this))return AZ(e7("close"));let e=this._ownerWritableStream;return void 0===e?AZ(Ae("close")):eq(e)?AZ(TypeError("Cannot close an already-closing stream")):e$(this);}releaseLock(){if(!eX(this))throw e7("releaseLock");void 0!==this._ownerWritableStream&&eZ(this);}write(e){return eX(this)?void 0===this._ownerWritableStream?AZ(Ae("write to")):eK(this,e):AZ(e7("write"));}}Object.defineProperties(tE.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),s(tE.prototype.abort,"abort"),s(tE.prototype.close,"close"),s(tE.prototype.releaseLock,"releaseLock"),s(tE.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tE.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});let tg={};class tu{constructor(){throw TypeError("Illegal constructor");}get abortReason(){if(!e0(this))throw e6("abortReason");return this._abortReason;}get signal(){if(!e0(this))throw e6("signal");if(void 0===this._abortController)throw TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal;}error(e){if(!e0(this))throw e6("error");"writable"===this._controlledWritableStream._state&&e3(this,e);}[A2](e){let A=this._abortAlgorithm(e);return e2(this),A;}[A4](){z(this);}}Object.defineProperties(tu.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tu.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});let th="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==na?na:void 0,tQ=function(){let e=null==th?void 0:th.DOMException;return!function(e){if("function"!=typeof e&&"object"!=typeof e||"DOMException"!==e.name)return!1;try{return new e(),!0;}catch(e){return!1;}}(e)?void 0:e;}()||function(){let e=function(e,A){this.message=e||"",this.name=A||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor);};return s(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e;}();class tC{constructor(){throw TypeError("Illegal constructor");}get desiredSize(){if(!Al(this))throw Ad("desiredSize");return AC(this);}close(){if(!Al(this))throw Ad("close");if(!AI(this))throw TypeError("The stream is not in a state that permits close");Au(this);}enqueue(e){if(!Al(this))throw Ad("enqueue");if(!AI(this))throw TypeError("The stream is not in a state that permits enqueue");return Ah(this,e);}error(e){if(!Al(this))throw Ad("error");AQ(this,e);}[A9](e){z(this);let A=this._cancelAlgorithm(e);return Ag(this),A;}[A8](e){let A=this._controlledReadableStream;if(this._queue.length>0){let t=X(this);this._closeRequested&&0===this._queue.length?(Ag(this),AD(A)):Ac(this),e._chunkSteps(t);}else F(A,e),Ac(this);}[A3](){}}Object.defineProperties(tC.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),s(tC.prototype.close,"close"),s(tC.prototype.enqueue,"enqueue"),s(tC.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tC.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class tI{constructor(e={},A={}){void 0===e?e=null:R(e,"First parameter");let t=eM(A,"Second parameter"),r=function(e,A){w(e,A);let t=null==e?void 0:e.autoAllocateChunkSize,r=null==e?void 0:e.cancel,n=null==e?void 0:e.pull,o=null==e?void 0:e.start,i=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===t?void 0:k(t,`${A} has member 'autoAllocateChunkSize' that`),cancel:void 0===r?void 0:(b(r,`${A} has member 'cancel' that`),A=>C(r,e,[A])),pull:void 0===n?void 0:(b(n,`${A} has member 'pull' that`),A=>C(n,e,[A])),start:void 0===o?void 0:(b(o,`${A} has member 'start' that`),A=>Q(o,e,[A])),type:void 0===i?void 0:function(e,A){if("bytes"!=(e=""+e))throw TypeError(`${A} '${e}' is not a valid enumeration value for ReadableStreamType`);return e;}(i,`${A} has member 'type' that`)};}(e,"First parameter");if(Am(this),"bytes"===r.type){if(void 0!==t.size)throw RangeError("The strategy for a byte stream cannot have a size function");!function(e,A,t){let r,n,o;let i=Object.create(ts.prototype);r=void 0!==A.start?()=>A.start(i):()=>{},n=void 0!==A.pull?()=>A.pull(i):()=>c(void 0),o=void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0);let s=A.autoAllocateChunkSize;if(0===s)throw TypeError("autoAllocateChunkSize must be greater than 0");ew(e,i,r,n,o,t,s);}(this,r,eU(t,0));}else{let e=eT(t);!function(e,A,t,r){let n,o;let i=Object.create(tC.prototype);n=void 0!==A.start?()=>A.start(i):()=>{},o=void 0!==A.pull?()=>A.pull(i):()=>c(void 0),AB(e,i,n,o,void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0),t,r);}(this,r,eU(t,1),e);}}get locked(){if(!Aw(this))throw Ak("locked");return Ab(this);}cancel(e){return Aw(this)?Ab(this)?AZ(TypeError("Cannot cancel a stream that already has a reader")):AR(this,e):AZ(Ak("cancel"));}getReader(e){if(!Aw(this))throw Ak("getReader");return void 0===function(e,A){w(e,A);let t=null==e?void 0:e.mode;return{mode:void 0===t?void 0:function(e,A){if("byob"!=(e=""+e))throw TypeError(`${A} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e;}(t,`${A} has member 'mode' that`)};}(e,"First parameter").mode?N(this):new ta(this);}pipeThrough(e,A={}){if(!Aw(this))throw Ak("pipeThrough");D(e,1,"pipeThrough");let t=function(e,A){w(e,A);let t=null==e?void 0:e.readable;S(t,"readable","ReadableWritablePair"),v(t,`${A} has member 'readable' that`);let r=null==e?void 0:e.writable;return S(r,"writable","ReadableWritablePair"),ex(r,`${A} has member 'writable' that`),{readable:t,writable:r};}(e,"First parameter"),r=Af(A,"Second parameter");if(Ab(this))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(eO(t.writable))throw TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return h(Aa(this,t.writable,r.preventClose,r.preventAbort,r.preventCancel,r.signal)),t.readable;}pipeTo(e,A={}){let t;if(!Aw(this))return AZ(Ak("pipeTo"));if(void 0===e)return AZ("Parameter 1 is required in 'pipeTo'.");if(!eG(e))return AZ(TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));try{t=Af(A,"Second parameter");}catch(e){return AZ(e);}return Ab(this)?AZ(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):eO(e)?AZ(TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Aa(this,e,t.preventClose,t.preventAbort,t.preventCancel,t.signal);}tee(){if(!Aw(this))throw Ak("tee");return O(K(this._readableStreamController)?function(e){function A(e){u(e._closedPromise,A=>(e!==Q||(eB(E._readableStreamController,A),eB(g._readableStreamController,A),f&&p||h(void 0)),null));}function t(){ev(Q)&&(d(Q),A(Q=N(e))),x(Q,{_chunkSteps(A){A0(()=>{I=!1,B=!1;let t=A;if(!f&&!p)try{t=j(A);}catch(A){return eB(E._readableStreamController,A),eB(g._readableStreamController,A),void h(AR(e,A));}f||eI(E._readableStreamController,A),p||eI(g._readableStreamController,t),C=!1,I?n():B&&o();});},_closeSteps(){C=!1,f||eC(E._readableStreamController),p||eC(g._readableStreamController),E._readableStreamController._pendingPullIntos.length>0&&ey(E._readableStreamController,0),g._readableStreamController._pendingPullIntos.length>0&&ey(g._readableStreamController,0),f&&p||h(void 0);},_errorSteps(){C=!1;}});}function r(t,r){M(Q)&&(d(Q),A(Q=new ta(e)));let i=r?g:E,s=r?E:g;eN(Q,t,1,{_chunkSteps(A){A0(()=>{I=!1,B=!1;let t=r?p:f;if(r?f:p)t||em(i._readableStreamController,A);else{let r;try{r=j(A);}catch(A){return eB(i._readableStreamController,A),eB(s._readableStreamController,A),void h(AR(e,A));}t||em(i._readableStreamController,A),eI(s._readableStreamController,r);}C=!1,I?n():B&&o();});},_closeSteps(e){C=!1;let A=r?p:f,t=r?f:p;A||eC(i._readableStreamController),t||eC(s._readableStreamController),void 0!==e&&(A||em(i._readableStreamController,e),!t&&s._readableStreamController._pendingPullIntos.length>0&&ey(s._readableStreamController,0)),A&&t||h(void 0);},_errorSteps(){C=!1;}});}function n(){if(C)return I=!0,c(void 0);C=!0;let e=ef(E._readableStreamController);return null===e?t():r(e._view,!1),c(void 0);}function o(){if(C)return B=!0,c(void 0);C=!0;let e=ef(g._readableStreamController);return null===e?t():r(e._view,!0),c(void 0);}function i(){}let s,a,E,g,h,Q=N(e),C=!1,I=!1,B=!1,f=!1,p=!1,y=l(e=>{h=e;});return E=Ay(i,n,function(A){if(f=!0,s=A,p){let A=AR(e,O([s,a]));h(A);}return y;}),g=Ay(i,o,function(A){if(p=!0,a=A,f){let A=AR(e,O([s,a]));h(A);}return y;}),A(Q),[E,g];}(this):function(e,A){function t(){return g?h=!0:(g=!0,x(n,{_chunkSteps(e){A0(()=>{h=!1,Q||Ah(s._readableStreamController,e),C||Ah(a._readableStreamController,e),g=!1,h&&t();});},_closeSteps(){g=!1,Q||Au(s._readableStreamController),C||Au(a._readableStreamController),Q&&C||E(void 0);},_errorSteps(){g=!1;}})),c(void 0);}function r(){}let n=N(e),o,i,s,a,E,g=!1,h=!1,Q=!1,C=!1,I=l(e=>{E=e;});return s=Ap(r,t,function(A){if(Q=!0,o=A,C){let A=AR(e,O([o,i]));E(A);}return I;}),a=Ap(r,t,function(A){if(C=!0,i=A,Q){let A=AR(e,O([o,i]));E(A);}return I;}),u(n._closedPromise,e=>(AQ(s._readableStreamController,e),AQ(a._readableStreamController,e),Q&&C||E(void 0),null)),[s,a];}(this));}values(e){if(!Aw(this))throw Ak("values");return function(e,A){let t=new tr(N(e),A),r=Object.create(tn);return r._asyncIteratorImpl=t,r;}(this,(w(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}).preventCancel);}[tt](e){return this.values(e);}static from(e){var A,t;let r;return i(A=e)&&void 0!==A.getReader?(t=A.getReader(),r=Ap(o,function(){let e;try{e=t.read();}catch(e){return AZ(e);}return E(e,e=>{if(!i(e))throw TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)Au(r._readableStreamController);else{let A=e.value;Ah(r._readableStreamController,A);}},void 0);},function(e){try{return c(t.cancel(e));}catch(e){return AZ(e);}},0)):function(e){let A;let t=function e(A,t="sync",r){if(void 0===r){if("async"===t){if(void 0===(r=H(A,tt)))return function(e){let A={next(){let A;try{A=V(e);}catch(e){return AZ(e);}return P(A);},return(A){let t;try{let r=H(e.iterator,"return");if(void 0===r)return c({done:!0,value:A});t=Q(r,e.iterator,[A]);}catch(e){return AZ(e);}return i(t)?P(t):AZ(TypeError("The iterator.return() method must return an object"));}};return{iterator:A,nextMethod:A.next,done:!1};}(e(A,"sync",H(A,Symbol.iterator)));}else r=H(A,Symbol.iterator);}if(void 0===r)throw TypeError("The object is not iterable");let n=Q(r,A,[]);if(!i(n))throw TypeError("The iterator method must return an object");return{iterator:n,nextMethod:n.next,done:!1};}(e,"async");return A=Ap(o,function(){let e;try{e=V(t);}catch(e){return AZ(e);}return E(c(e),e=>{if(!i(e))throw TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)Au(A._readableStreamController);else{let t=e.value;Ah(A._readableStreamController,t);}},void 0);},function(e){let A;let r=t.iterator;try{A=H(r,"return");}catch(e){return AZ(e);}return void 0===A?c(void 0):E(C(A,r,[e]),e=>{if(!i(e))throw TypeError("The promise returned by the iterator.return() method must fulfill with an object");},void 0);},0);}(A);}}Object.defineProperties(tI,{from:{enumerable:!0}}),Object.defineProperties(tI.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),s(tI.from,"from"),s(tI.prototype.cancel,"cancel"),s(tI.prototype.getReader,"getReader"),s(tI.prototype.pipeThrough,"pipeThrough"),s(tI.prototype.pipeTo,"pipeTo"),s(tI.prototype.tee,"tee"),s(tI.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tI.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(tI.prototype,tt,{value:tI.prototype.values,writable:!0,configurable:!0});let tB=e=>e.byteLength;s(tB,"size");class td{constructor(e){D(e,1,"ByteLengthQueuingStrategy"),e=Av(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark;}get highWaterMark(){if(!AF(this))throw AN("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark;}get size(){if(!AF(this))throw AN("size");return tB;}}Object.defineProperties(td.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(td.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let tf=()=>1;s(tf,"size");class tp{constructor(e){D(e,1,"CountQueuingStrategy"),e=Av(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark;}get highWaterMark(){if(!AU(this))throw AL("highWaterMark");return this._countQueuingStrategyHighWaterMark;}get size(){if(!AU(this))throw AL("size");return tf;}}Object.defineProperties(tp.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tp.prototype,Symbol.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class ty{constructor(e={},A={},t={}){let r;void 0===e&&(e=null);let n=eM(A,"Second parameter"),o=eM(t,"Third parameter"),i=function(e,A){w(e,A);let t=null==e?void 0:e.cancel,r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,o=null==e?void 0:e.start,i=null==e?void 0:e.transform,s=null==e?void 0:e.writableType;return{cancel:void 0===t?void 0:(b(t,`${A} has member 'cancel' that`),A=>C(t,e,[A])),flush:void 0===r?void 0:(b(r,`${A} has member 'flush' that`),A=>C(r,e,[A])),readableType:n,start:void 0===o?void 0:(b(o,`${A} has member 'start' that`),A=>Q(o,e,[A])),transform:void 0===i?void 0:(b(i,`${A} has member 'transform' that`),(A,t)=>C(i,e,[A,t])),writableType:s};}(e,"First parameter");if(void 0!==i.readableType)throw RangeError("Invalid readableType specified");if(void 0!==i.writableType)throw RangeError("Invalid writableType specified");let s=eU(o,0),a=eT(o),u=eU(n,1),h=eT(n);(function(e,A,t,r,n,o){function i(){return A;}e._writable=function(e,A,t,r,n=1,o=()=>1){let i=Object.create(tc.prototype);return e_(i),e1(i,Object.create(tu.prototype),e,A,t,r,n,o),i;}(i,function(A){return function(e,A){let t=e._transformStreamController;if(e._backpressure)return E(e._backpressureChangePromise,()=>{let r=e._writable;if("erroring"===r._state)throw r._storedError;return AH(t,A);},void 0);return AH(t,A);}(e,A);},function(){return function(e){let A=e._transformStreamController;if(void 0!==A._finishPromise)return A._finishPromise;let t=e._readable;A._finishPromise=l((e,t)=>{A._finishPromise_resolve=e,A._finishPromise_reject=t;});let r=A._flushAlgorithm();return AY(A),g(r,()=>("errored"===t._state?Aq(A,t._storedError):(Au(t._readableStreamController),AV(A)),null),e=>(AQ(t._readableStreamController,e),Aq(A,e),null)),A._finishPromise;}(e);},function(A){return function(e,A){let t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;let r=e._readable;t._finishPromise=l((e,A)=>{t._finishPromise_resolve=e,t._finishPromise_reject=A;});let n=t._cancelAlgorithm(A);return AY(t),g(n,()=>("errored"===r._state?Aq(t,r._storedError):(AQ(r._readableStreamController,A),AV(t)),null),e=>(AQ(r._readableStreamController,e),Aq(t,e),null)),t._finishPromise;}(e,A);},t,r),e._readable=Ap(i,function(){return AG(e,!1),e._backpressureChangePromise;},function(A){return function(e,A){let t=e._transformStreamController;if(void 0!==t._finishPromise)return t._finishPromise;let r=e._writable;t._finishPromise=l((e,A)=>{t._finishPromise_resolve=e,t._finishPromise_reject=A;});let n=t._cancelAlgorithm(A);return AY(t),g(n,()=>("errored"===r._state?Aq(t,r._storedError):(e8(r._writableStreamController,A),A_(e),AV(t)),null),A=>(e8(r._writableStreamController,A),A_(e),Aq(t,A),null)),t._finishPromise;}(e,A);},n,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,AG(e,!0),e._transformStreamController=void 0;})(this,l(e=>{r=e;}),u,h,s,a),function(e,A){let t,r,n;let o=Object.create(tm.prototype);t=void 0!==A.transform?e=>A.transform(e,o):e=>{try{return AJ(o,e),c(void 0);}catch(e){return AZ(e);}},r=void 0!==A.flush?()=>A.flush(o):()=>c(void 0),n=void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0),o._controlledTransformStream=e,e._transformStreamController=o,o._transformAlgorithm=t,o._flushAlgorithm=r,o._cancelAlgorithm=n,o._finishPromise=void 0,o._finishPromise_resolve=void 0,o._finishPromise_reject=void 0;}(this,i),void 0!==i.start?r(i.start(this._transformStreamController)):r(void 0);}get readable(){if(!AT(this))throw AW("readable");return this._readable;}get writable(){if(!AT(this))throw AW("writable");return this._writable;}}Object.defineProperties(ty.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(ty.prototype,Symbol.toStringTag,{value:"TransformStream",configurable:!0});class tm{constructor(){throw TypeError("Illegal constructor");}get desiredSize(){if(!AO(this))throw AP("desiredSize");return AC(this._controlledTransformStream._readable._readableStreamController);}enqueue(e){if(!AO(this))throw AP("enqueue");AJ(this,e);}error(e){if(!AO(this))throw AP("error");AM(this._controlledTransformStream,e);}terminate(){if(!AO(this))throw AP("terminate");!function(e){let A=e._controlledTransformStream;Au(A._readable._readableStreamController),Ax(A,TypeError("TransformStream terminated"));}(this);}}Object.defineProperties(tm.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),s(tm.prototype.enqueue,"enqueue"),s(tm.prototype.error,"error"),s(tm.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tm.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});}),tn("bLoP1",function(e,A){let t;function r(){o=Date.now();let e=i.length,A=0;for(;e>A;){let t=i[A];0===t.state?t.state=o+t.delay:t.state>0&&o>=t.state&&(t.state=-1,t.callback(t.opaque)),-1===t.state?(t.state=-2,A!==e-1?i[A]=i.pop():i.pop(),e-=1):A+=1;}i.length>0&&n();}function n(){t&&t.refresh?t.refresh():(clearTimeout(t),(t=setTimeout(r,1e3)).unref&&t.unref());}let o=Date.now(),i=[];class s{constructor(e,A,t){this.callback=e,this.delay=A,this.opaque=t,this.state=-2,this.refresh();}refresh(){-2!==this.state||(i.push(this),t&&1!==i.length||n()),this.state=0;}clear(){this.state=-1;}}e.exports={setTimeout:(e,A,t)=>A<1e3?setTimeout(e,A,t):new s(e,A,t),clearTimeout(e){e instanceof s?e.clear():clearTimeout(e);}};}),tn("9ihOp",function(e,A){var t,r,n,o,i,s,a,l;let c;function E(e,A,t){if(A&&"object"==typeof A||null!==h.exec(A=null!=A?""+A:""))throw new r(`invalid ${e} header`);return t?A:`${e}: ${A}\r `;}function g(e,A,t,o=!1){if(t&&"object"==typeof t&&!Array.isArray(t))throw new r(`invalid ${A} header`);if(void 0!==t){if(null===e.host&&4===A.length&&"host"===A.toLowerCase()){if(null!==h.exec(t))throw new r(`invalid ${A} header`);e.host=t;}else if(null===e.contentLength&&14===A.length&&"content-length"===A.toLowerCase()){if(e.contentLength=parseInt(t,10),!Number.isFinite(e.contentLength))throw new r("invalid content-length header");}else if(null===e.contentType&&12===A.length&&"content-type"===A.toLowerCase())e.contentType=t,o?e.headers[A]=E(A,t,o):e.headers+=E(A,t);else if(17===A.length&&"transfer-encoding"===A.toLowerCase())throw new r("invalid transfer-encoding header");else if(10===A.length&&"connection"===A.toLowerCase()){let A="string"==typeof t?t.toLowerCase():null;if("close"!==A&&"keep-alive"!==A)throw new r("invalid connection header");"close"===A&&(e.reset=!0);}else if(10===A.length&&"keep-alive"===A.toLowerCase())throw new r("invalid keep-alive header");else if(7===A.length&&"upgrade"===A.toLowerCase())throw new r("invalid upgrade header");else if(6===A.length&&"expect"===A.toLowerCase())throw new n("expect header not supported");else if(null===u.exec(A))throw new r("invalid header key");else if(Array.isArray(t))for(let r=0;r{this.abort?this.abort(e):this.error=e;},this.body.on("error",this.errorHandler);}else if(l.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else if(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n))this.body=n;else throw new r("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=E||null,this.path=i?l.buildURL(A,i):A,this.origin=e,this.idempotent=null==s?"HEAD"===t||"GET"===t:s,this.blocking=null!=a&&a,this.reset=null==B?null:B,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=f&&f,Array.isArray(o)){if(o.length%2!=0)throw new r("headers array must be even");for(let e=0;e25&&(t=`${t.slice(0,25)}...`),e+=`. Received type ${typeof A} (${t})`;}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:e,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`;},enumerable:!1,writable:!0,configurable:!0}});}}class r{subscribe(e){if("function"!=typeof e)throw new t('The "subscription" argument must be of type function',e);this._subscribers.push(e);}unsubscribe(e){let A=this._subscribers.indexOf(e);return-1!==A&&(this._subscribers.splice(A,1),this._subscribers.length||Object.setPrototypeOf(this,n.prototype),!0);}get hasSubscribers(){return!0;}publish(e){for(let A=0;A{throw e;});}}}class n{constructor(e){this._subscribers=void 0,this.name=e;}static[Symbol.hasInstance](e){let A=Object.getPrototypeOf(e);return A===n.prototype||A===r.prototype;}subscribe(e){Object.setPrototypeOf(this,r.prototype),this._subscribers=[],this.subscribe(e);}unsubscribe(){return!1;}get hasSubscribers(){return!1;}publish(){}}let o={};e.exports={channel:function(e){let A=o[e];if(A)return A;if("string"!=typeof e&&"symbol"!=typeof e)throw new t('The "channel" argument must be one of type string or symbol',e);return o[e]=new n(e);},hasSubscribers:function(e){let A=o[e];return!!A&&A.hasSubscribers;},Channel:n,deleteChannel:function(e){return!!o[e]&&(o[e]=null,!0);}};}),tn("fOogJ",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,B,d,f,p,y,m,w,b,R,D;function S(e,A=!1){U||(U=nE("kJ4DQ").ReadableStream);let t=null;t=e instanceof U?e:i(e)?e.stream():new U({async pull(e){e.enqueue("string"==typeof l?M.encode(l):l),queueMicrotask(()=>a(e));},start(){},type:void 0}),rW(s(t));let n=null,l=null,c=null,E=null;if("string"==typeof e)l=e,E="text/plain;charset=UTF-8";else if(e instanceof URLSearchParams)l=e.toString(),E="application/x-www-form-urlencoded;charset=UTF-8";else if(m(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(r.isFormDataLike(e)){let A="----formdata-undici-0"+(""+Math.floor(1e11*Math.random())).padStart(11,"0"),t=`--${A}\r Content-Disposition: form-data`,r=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),o=e=>e.replace(/\r?\n|\r/g,"\r\n"),i=[],s=new Uint8Array([13,10]);c=0;let a=!1;for(let[A,n]of e)if("string"==typeof n){let e=M.encode(t+`; name="${r(o(A))}"`+`\r \r ${o(n)}\r `);i.push(e),c+=e.byteLength;}else{let e=M.encode(`${t}; name="${r(o(A))}"`+(n.name?`; filename="${r(n.name)}"`:"")+"\r\n"+`Content-Type: ${n.type||"application/octet-stream"}\r \r `);i.push(e,n,s),"number"==typeof n.size?c+=e.byteLength+n.size+s.byteLength:a=!0;}let g=M.encode(`--${A}--`);i.push(g),c+=g.byteLength,a&&(c=null),l=e,n=async function*(){for(let e of i)e.stream?yield*e.stream():yield e;},E="multipart/form-data; boundary="+A;}else if(i(e))l=e,c=e.size,e.type&&(E=e.type);else if("function"==typeof e[Symbol.asyncIterator]){if(A)throw TypeError("keepalive");if(r.isDisturbed(e)||e.locked)throw TypeError("Response body object should not be disturbed or locked");t=e instanceof U?e:o(e);}if(("string"==typeof l||r.isBuffer(l))&&(c=Buffer.byteLength(l)),null!=n){let A;t=new U({async start(){A=n(e)[Symbol.asyncIterator]();},async pull(e){let{value:r,done:n}=await A.next();return n?queueMicrotask(()=>{e.close();}):f(t)||e.enqueue(new Uint8Array(r)),e.desiredSize>0;},async cancel(e){await A.return();},type:void 0});}return[{stream:t,source:l,length:c},E];}async function*k(e){if(e){if(y(e))yield e;else{let A=e.stream;if(r.isDisturbed(A))throw TypeError("The body has already been consumed.");if(A.locked)throw TypeError("The stream is locked.");A[d]=!0,yield*A;}}}function v(e){if(e.aborted)throw new Q("The operation was aborted.","AbortError");}async function N(e,A,t){var n;if(u.brandCheck(e,t),v(e[g]),null!=(n=e[g].body)&&(n.stream.locked||r.isDisturbed(n.stream)))throw TypeError("Body is unusable");let o=l(),i=e=>o.reject(e),s=e=>{try{o.resolve(A(e));}catch(e){i(e);}};return null==e[g].body?s(new Uint8Array()):await c(e[g].body,s,i),o.promise;}function F(e){return 0===e.length?"":(239===e[0]&&187===e[1]&&191===e[2]&&(e=e.subarray(3)),x.decode(e));}function L(e){return JSON.parse(F(e));}t=nE("bfSn9"),r=nE("jksEw"),o=(n=nE("3Ms3X")).ReadableStreamFrom,i=n.isBlobLike,s=n.isReadableStreamLike,a=n.readableStreamClose,l=n.createDeferredPromise,c=n.fullyReadBody,E=nE("dVNsr").FormData,g=nE("czloG").kState,u=nE("cvPqj").webidl,Q=(h=nE("cU8F4")).DOMException,C=h.structuredClone,I=r$.Blob,B=r$.File,d=nE("eoU9M").kBodyUsed,f=(r=nE("jksEw")).isErrored,y=(p=nE("1oEcd")).isUint8Array,m=p.isArrayBuffer,w=nE("3ReSW").File,R=(b=nE("9mEts")).parseMIMEType,D=b.serializeAMimeType;let U=globalThis.ReadableStream,T=null!=B?B:w,M=new TextEncoder(),x=new TextDecoder();e.exports={extractBody:S,safelyExtractBody:function(e,A=!1){return U||(U=nE("kJ4DQ").ReadableStream),e instanceof U&&(rW(!r.isDisturbed(e),"The body has already been consumed."),rW(!e.locked,"The stream is locked.")),S(e,A);},cloneBody:function(e){let[A,t]=e.stream.tee(),[,r]=C(t,{transfer:[t]}).tee();return e.stream=A,{stream:r,length:e.length,source:e.source};},mixinBody:function(e){Object.assign(e.prototype,{blob(){return N(this,e=>{let A=function(e){let{headersList:A}=e[g],t=A.get("content-type");return null===t?"failure":R(t);}(this);return"failure"===A?A="":A&&(A=D(A)),new I([e],{type:A});},e);},arrayBuffer(){return N(this,e=>new Uint8Array(e).buffer,e);},text(){return N(this,F,e);},json(){return N(this,L,e);},async formData(){u.brandCheck(this,e),v(this[g]);let A=this.headers.get("Content-Type");if(/multipart\/form-data/.test(A)){let e;let A={};for(let[e,t]of this.headers)A[e.toLowerCase()]=t;let r=new E();try{e=new t({headers:A,preservePath:!0});}catch(e){throw new Q(""+e,"AbortError");}e.on("field",(e,A)=>{r.append(e,A);}),e.on("file",(e,A,t,n,o)=>{let i=[];if("base64"===n||"base64"===n.toLowerCase()){let n="";A.on("data",e=>{let A=(n+=e.toString().replace(/[\r\n]/gm,"")).length-n.length%4;i.push(Buffer.from(n.slice(0,A),"base64")),n=n.slice(A);}),A.on("end",()=>{i.push(Buffer.from(n,"base64")),r.append(e,new T(i,t,{type:o}));});}else A.on("data",e=>{i.push(e);}),A.on("end",()=>{r.append(e,new T(i,t,{type:o}));});});let n=new Promise((A,t)=>{e.on("finish",A),e.on("error",e=>t(TypeError(e)));});if(null!==this.body)for await(let A of k(this[g].body))e.write(A);return e.end(),await n,r;}if(/application\/x-www-form-urlencoded/.test(A)){let e;try{let A="",t=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let e of k(this[g].body)){if(!y(e))throw TypeError("Expected Uint8Array chunk");A+=t.decode(e,{stream:!0});}A+=t.decode(),e=new URLSearchParams(A);}catch(e){throw Object.assign(TypeError(),{cause:e});}let A=new E();for(let[t,r]of e)A.append(t,r);return A;}throw await Promise.resolve(),v(this[g]),u.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."});}});}};}),tn("bfSn9",function(e,A){var t,r,n,o,i,s;function a(e){if(!(this instanceof a))return new a(e);if("object"!=typeof e)throw TypeError("Busboy expected an options-Object.");if("object"!=typeof e.headers)throw TypeError("Busboy expected an options-Object with headers-attribute.");if("string"!=typeof e.headers["content-type"])throw TypeError("Missing Content-Type-header.");let{headers:A,...r}=e;this.opts={autoDestroy:!1,...r},t.call(this,this.opts),this._done=!1,this._parser=this.getParserByHeaders(A),this._finished=!1;}t=rZ.Writable,r=rK.inherits,n=nE("4FQCA"),o=nE("0bi9m"),i=nE("a2N0f"),s=nE("ePpzH"),r(a,t),a.prototype.emit=function(e){if("finish"===e){if(this._done){if(this._finished)return;}else{var A;null===(A=this._parser)||void 0===A||A.end();return;}this._finished=!0;}t.prototype.emit.apply(this,arguments);},a.prototype.getParserByHeaders=function(e){let A=s(e["content-type"]),t={defCharset:this.opts.defCharset,fileHwm:this.opts.fileHwm,headers:e,highWaterMark:this.opts.highWaterMark,isPartAFile:this.opts.isPartAFile,limits:this.opts.limits,parsedConType:A,preservePath:this.opts.preservePath};if(o.detect.test(A[0]))return new o(this,t);if(i.detect.test(A[0]))return new i(this,t);throw Error("Unsupported Content-Type.");},a.prototype._write=function(e,A,t){this._parser.write(e,t);},e.exports=a,e.exports.default=a,e.exports.Busboy=a,e.exports.Dicer=n;}),tn("4FQCA",function(e,A){var t,r,n,o,i;function s(e){if(!(this instanceof s))return new s(e);if(t.call(this,e),!e||!e.headerFirst&&"string"!=typeof e.boundary)throw TypeError("Boundary required");"string"==typeof e.boundary?this.setBoundary(e.boundary):this._bparser=void 0,this._headerFirst=e.headerFirst,this._dashes=0,this._parts=0,this._finished=!1,this._realFinish=!1,this._isPreamble=!0,this._justMatched=!1,this._firstWrite=!0,this._inHeader=!0,this._part=void 0,this._cb=void 0,this._ignoreData=!1,this._partOpts={highWaterMark:e.partHwm},this._pause=!1;let A=this;this._hparser=new i(e),this._hparser.on("header",function(e){A._inHeader=!1,A._part.emit("header",e);});}t=rZ.Writable,r=rK.inherits,n=nE("2zsSN"),o=nE("ffzdk"),i=nE("1AoeR");let a=Buffer.from("-"),l=Buffer.from("\r\n"),c=function(){};r(s,t),s.prototype.emit=function(e){if("finish"!==e||this._realFinish)t.prototype.emit.apply(this,arguments);else if(!this._finished){let e=this;process.nextTick(function(){if(e.emit("error",Error("Unexpected end of multipart data")),e._part&&!e._ignoreData){let A=e._isPreamble?"Preamble":"Part";e._part.emit("error",Error(A+" terminated early due to unexpected end of multipart data")),e._part.push(null),process.nextTick(function(){e._realFinish=!0,e.emit("finish"),e._realFinish=!1;});return;}e._realFinish=!0,e.emit("finish"),e._realFinish=!1;});}},s.prototype._write=function(e,A,t){if(!this._hparser&&!this._bparser)return t();if(this._headerFirst&&this._isPreamble){this._part||(this._part=new o(this._partOpts),0!==this.listenerCount("preamble")?this.emit("preamble",this._part):this._ignore());let A=this._hparser.push(e);if(this._inHeader||void 0===A||!(A256)throw Error("The needle cannot have a length bigger than 256.");this.maxMatches=1/0,this.matches=0,this._occ=Array(256).fill(A),this._lookbehind_size=0,this._needle=e,this._bufpos=0,this._lookbehind=Buffer.alloc(A);for(var t=0;t=0)this.emit("info",!1,this._lookbehind,0,this._lookbehind_size),this._lookbehind_size=0;else{let A=this._lookbehind_size+i;return A>0&&this.emit("info",!1,this._lookbehind,0,A),this._lookbehind.copy(this._lookbehind,0,A,this._lookbehind_size-A),this._lookbehind_size-=A,e.copy(this._lookbehind,this._lookbehind_size),this._lookbehind_size+=t,this._bufpos=t,t;}}if(i+=(i>=0)*this._bufpos,-1!==e.indexOf(r,i))return i=e.indexOf(r,i),++this.matches,i>0?this.emit("info",!0,e,this._bufpos,i):this.emit("info",!0),this._bufpos=i+n;for(i=t-n;i0&&this.emit("info",!1,e,this._bufpos,ir;++r)if(this._sbmh_lookup_char(e,A+r)!==this._needle[r])return!1;return!0;},e.exports=r;}),tn("ffzdk",function(e,A){var t;function r(e){t.call(this,e);}(0,rK.inherits)(r,t=rZ.Readable),r.prototype._read=function(e){},e.exports=r;}),tn("1AoeR",function(e,A){var t,r,n,o;function i(e){t.call(this),e=e||{};let A=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=n(e,"maxHeaderPairs",2e3),this.maxHeaderSize=n(e,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new o(s),this.ss.on("info",function(e,t,r,n){t&&!A.maxed&&(A.nread+n-r>=A.maxHeaderSize?(n=A.maxHeaderSize-A.nread+r,A.nread=A.maxHeaderSize,A.maxed=!0):A.nread+=n-r,A.buffer+=t.toString("binary",r,n)),e&&A._finish();});}t=r0.EventEmitter,r=rK.inherits,n=nE("8tV70"),o=nE("2zsSN");let s=Buffer.from("\r\n\r\n");r(i,t),i.prototype.push=function(e){let A=this.ss.push(e);if(this.finished)return A;},i.prototype.reset=function(){this.finished=!1,this.buffer="",this.header={},this.ss.reset();},i.prototype._finish=function(){this.buffer&&this._parseHeader(),this.ss.matches=this.ss.maxMatches;let e=this.header;this.header={},this.buffer="",this.finished=!0,this.nread=this.npairs=0,this.maxed=!1,this.emit("header",e);},i.prototype._parseHeader=function(){let e,A;if(this.npairs===this.maxHeaderPairs)return;let t=this.buffer.split(/\r\n/g),r=t.length;for(var n=0;r>n;++n){if(0===t[n].length)continue;if((" "===t[n][0]||" "===t[n][0])&&A){this.header[A][this.header[A].length-1]+=t[n];continue;}let r=t[n].indexOf(":");if(-1===r||0===r)return;if(A=(e=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/.exec(t[n]))[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(e[2]||""),++this.npairs===this.maxHeaderPairs)break;}},e.exports=i;}),tn("8tV70",function(e,A){e.exports=function(e,A,t){if(!e||void 0===e[A]||null===e[A])return t;if("number"!=typeof e[A]||isNaN(e[A]))throw TypeError("Limit "+A+" is not a valid number");return e[A];};}),tn("0bi9m",function(e,A){var t,r,n,o,i,s,a;function l(e,A){let t,r,l,I,B;function d(){0===M&&x&&!e._done&&(x=!1,f.end());}let f=this,p=A.limits,y=A.isPartAFile||((e,A,t)=>"application/octet-stream"===A||void 0!==t),m=A.parsedConType||[],w=A.defCharset||"utf8",b=A.preservePath,R={highWaterMark:A.fileHwm};for(t=0,r=m.length;r>t;++t)if(Array.isArray(m[t])&&g.test(m[t][0])){l=m[t][1];break;}if("string"!=typeof l)throw Error("Multipart: Boundary not found");let D=a(p,"fieldSize",1048576),S=a(p,"fileSize",1/0),k=a(p,"files",1/0),v=a(p,"fields",1/0),N=a(p,"parts",1/0),F=a(p,"headerPairs",2e3),L=a(p,"headerSize",81920),U=0,T=0,M=0,x=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=e;let _={boundary:l,maxHeaderPairs:F,maxHeaderSize:L,partHwm:R.highWaterMark,highWaterMark:A.highWaterMark};this.parser=new n(_),this.parser.on("drain",function(){if(f._needDrain=!1,f._cb&&!f._pause){let e=f._cb;f._cb=void 0,e();}}).on("part",function A(n){if(++f._nparts>N)return f.parser.removeListener("part",A),f.parser.on("part",c),e.hitPartsLimit=!0,e.emit("partsLimit"),c(n);if(B){let e=B;e.emit("end"),e.removeAllListeners("end");}n.on("header",function(A){let a,l,g,p,m,N,F,L;let x=0;if(A["content-type"]&&(g=o(A["content-type"][0]))[0]){for(t=0,a=g[0].toLowerCase(),r=g.length;r>t;++t)if(h.test(g[t][0])){p=g[t][1].toLowerCase();break;}}if(void 0===a&&(a="text/plain"),void 0===p&&(p=w),!A["content-disposition"]||!u.test((g=o(A["content-disposition"][0]))[0]))return c(n);for(t=0,r=g.length;r>t;++t)C.test(g[t][0])?l=g[t][1]:Q.test(g[t][0])&&(N=g[t][1],b||(N=s(N)));if(m=A["content-transfer-encoding"]?A["content-transfer-encoding"][0].toLowerCase():"7bit",y(l,a,N)){if(U===k)return e.hitFilesLimit||(e.hitFilesLimit=!0,e.emit("filesLimit")),c(n);if(++U,0===e.listenerCount("file")){f.parser._ignore();return;}++M;let A=new E(R);I=A,A.on("end",function(){if(--M,f._pause=!1,d(),f._cb&&!f._needDrain){let e=f._cb;f._cb=void 0,e();}}),A._read=function(e){if(f._pause&&(f._pause=!1,f._cb&&!f._needDrain)){let e=f._cb;f._cb=void 0,e();}},e.emit("file",l,A,N,m,a),F=function(e){if((x+=e.length)>S){let t=S-x+e.length;t>0&&A.push(e.slice(0,t)),A.truncated=!0,A.bytesRead=S,n.removeAllListeners("data"),A.emit("limit");return;}A.push(e)||(f._pause=!0),A.bytesRead=x;},L=function(){I=void 0,A.push(null);};}else{if(T===v)return e.hitFieldsLimit||(e.hitFieldsLimit=!0,e.emit("fieldsLimit")),c(n);++T,++M;let A="",t=!1;B=n,F=function(e){if((x+=e.length)>D){let r=D-(x-e.length);A+=e.toString("binary",0,r),t=!0,n.removeAllListeners("data");}else A+=e.toString("binary");},L=function(){B=void 0,A.length&&(A=i(A,"binary",p)),e.emit("field",l,A,!1,t,m,a),--M,d();};}n._readableState.sync=!1,n.on("data",F),n.on("end",L);}).on("error",function(e){I&&I.emit("error",e);});}).on("error",function(A){e.emit("error",A);}).on("finish",function(){x=!0,d();});}function c(e){e.resume();}function E(e){t.call(this,e),this.bytesRead=0,this.truncated=!1;}t=rZ.Readable,r=rK.inherits,n=nE("4FQCA"),o=nE("ePpzH"),i=nE("lSDUY"),s=nE("jq2EU"),a=nE("8tV70");let g=/^boundary$/i,u=/^form-data$/i,h=/^charset$/i,Q=/^filename$/i,C=/^name$/i;l.detect=/^multipart\/form-data/i,l.prototype.write=function(e,A){let t=this.parser.write(e);t&&!this._pause?A():(this._needDrain=!t,this._cb=A);},l.prototype.end=function(){let e=this;e.parser.writable?e.parser.end():e._boy._done||process.nextTick(function(){e._boy._done=!0,e._boy.emit("finish");});},r(E,t),E.prototype._read=function(e){},e.exports=l;}),tn("ePpzH",function(e,A){var t;function r(e){return n[e];}t=nE("lSDUY");let n={"%00":"\0","%01":"\x01","%02":"\x02","%03":"\x03","%04":"\x04","%05":"\x05","%06":"\x06","%07":"\x07","%08":"\b","%09":" ","%0a":"\n","%0A":"\n","%0b":"\v","%0B":"\v","%0c":"\f","%0C":"\f","%0d":"\r","%0D":"\r","%0e":"\x0e","%0E":"\x0e","%0f":"\x0f","%0F":"\x0f","%10":"\x10","%11":"\x11","%12":"\x12","%13":"\x13","%14":"\x14","%15":"\x15","%16":"\x16","%17":"\x17","%18":"\x18","%19":"\x19","%1a":"\x1a","%1A":"\x1a","%1b":"\x1b","%1B":"\x1b","%1c":"\x1c","%1C":"\x1c","%1d":"\x1d","%1D":"\x1d","%1e":"\x1e","%1E":"\x1e","%1f":"\x1f","%1F":"\x1f","%20":" ","%21":"!","%22":'"',"%23":"#","%24":"$","%25":"%","%26":"&","%27":"'","%28":"(","%29":")","%2a":"*","%2A":"*","%2b":"+","%2B":"+","%2c":",","%2C":",","%2d":"-","%2D":"-","%2e":".","%2E":".","%2f":"/","%2F":"/","%30":"0","%31":"1","%32":"2","%33":"3","%34":"4","%35":"5","%36":"6","%37":"7","%38":"8","%39":"9","%3a":":","%3A":":","%3b":";","%3B":";","%3c":"<","%3C":"<","%3d":"=","%3D":"=","%3e":">","%3E":">","%3f":"?","%3F":"?","%40":"@","%41":"A","%42":"B","%43":"C","%44":"D","%45":"E","%46":"F","%47":"G","%48":"H","%49":"I","%4a":"J","%4A":"J","%4b":"K","%4B":"K","%4c":"L","%4C":"L","%4d":"M","%4D":"M","%4e":"N","%4E":"N","%4f":"O","%4F":"O","%50":"P","%51":"Q","%52":"R","%53":"S","%54":"T","%55":"U","%56":"V","%57":"W","%58":"X","%59":"Y","%5a":"Z","%5A":"Z","%5b":"[","%5B":"[","%5c":"\\","%5C":"\\","%5d":"]","%5D":"]","%5e":"^","%5E":"^","%5f":"_","%5F":"_","%60":"`","%61":"a","%62":"b","%63":"c","%64":"d","%65":"e","%66":"f","%67":"g","%68":"h","%69":"i","%6a":"j","%6A":"j","%6b":"k","%6B":"k","%6c":"l","%6C":"l","%6d":"m","%6D":"m","%6e":"n","%6E":"n","%6f":"o","%6F":"o","%70":"p","%71":"q","%72":"r","%73":"s","%74":"t","%75":"u","%76":"v","%77":"w","%78":"x","%79":"y","%7a":"z","%7A":"z","%7b":"{","%7B":"{","%7c":"|","%7C":"|","%7d":"}","%7D":"}","%7e":"~","%7E":"~","%7f":"","%7F":"","%80":"€","%81":"","%82":"‚","%83":"ƒ","%84":"„","%85":"…","%86":"†","%87":"‡","%88":"ˆ","%89":"‰","%8a":"Š","%8A":"Š","%8b":"‹","%8B":"‹","%8c":"Œ","%8C":"Œ","%8d":"","%8D":"","%8e":"Ž","%8E":"Ž","%8f":"","%8F":"","%90":"","%91":"‘","%92":"’","%93":"“","%94":"”","%95":"•","%96":"–","%97":"—","%98":"˜","%99":"™","%9a":"š","%9A":"š","%9b":"›","%9B":"›","%9c":"œ","%9C":"œ","%9d":"","%9D":"","%9e":"ž","%9E":"ž","%9f":"Ÿ","%9F":"Ÿ","%a0":" ","%A0":" ","%a1":"¡","%A1":"¡","%a2":"¢","%A2":"¢","%a3":"£","%A3":"£","%a4":"¤","%A4":"¤","%a5":"¥","%A5":"¥","%a6":"¦","%A6":"¦","%a7":"§","%A7":"§","%a8":"¨","%A8":"¨","%a9":"©","%A9":"©","%aa":"ª","%Aa":"ª","%aA":"ª","%AA":"ª","%ab":"«","%Ab":"«","%aB":"«","%AB":"«","%ac":"¬","%Ac":"¬","%aC":"¬","%AC":"¬","%ad":"­","%Ad":"­","%aD":"­","%AD":"­","%ae":"®","%Ae":"®","%aE":"®","%AE":"®","%af":"¯","%Af":"¯","%aF":"¯","%AF":"¯","%b0":"°","%B0":"°","%b1":"±","%B1":"±","%b2":"²","%B2":"²","%b3":"³","%B3":"³","%b4":"´","%B4":"´","%b5":"µ","%B5":"µ","%b6":"¶","%B6":"¶","%b7":"·","%B7":"·","%b8":"¸","%B8":"¸","%b9":"¹","%B9":"¹","%ba":"º","%Ba":"º","%bA":"º","%BA":"º","%bb":"»","%Bb":"»","%bB":"»","%BB":"»","%bc":"¼","%Bc":"¼","%bC":"¼","%BC":"¼","%bd":"½","%Bd":"½","%bD":"½","%BD":"½","%be":"¾","%Be":"¾","%bE":"¾","%BE":"¾","%bf":"¿","%Bf":"¿","%bF":"¿","%BF":"¿","%c0":"À","%C0":"À","%c1":"Á","%C1":"Á","%c2":"Â","%C2":"Â","%c3":"Ã","%C3":"Ã","%c4":"Ä","%C4":"Ä","%c5":"Å","%C5":"Å","%c6":"Æ","%C6":"Æ","%c7":"Ç","%C7":"Ç","%c8":"È","%C8":"È","%c9":"É","%C9":"É","%ca":"Ê","%Ca":"Ê","%cA":"Ê","%CA":"Ê","%cb":"Ë","%Cb":"Ë","%cB":"Ë","%CB":"Ë","%cc":"Ì","%Cc":"Ì","%cC":"Ì","%CC":"Ì","%cd":"Í","%Cd":"Í","%cD":"Í","%CD":"Í","%ce":"Î","%Ce":"Î","%cE":"Î","%CE":"Î","%cf":"Ï","%Cf":"Ï","%cF":"Ï","%CF":"Ï","%d0":"Ð","%D0":"Ð","%d1":"Ñ","%D1":"Ñ","%d2":"Ò","%D2":"Ò","%d3":"Ó","%D3":"Ó","%d4":"Ô","%D4":"Ô","%d5":"Õ","%D5":"Õ","%d6":"Ö","%D6":"Ö","%d7":"×","%D7":"×","%d8":"Ø","%D8":"Ø","%d9":"Ù","%D9":"Ù","%da":"Ú","%Da":"Ú","%dA":"Ú","%DA":"Ú","%db":"Û","%Db":"Û","%dB":"Û","%DB":"Û","%dc":"Ü","%Dc":"Ü","%dC":"Ü","%DC":"Ü","%dd":"Ý","%Dd":"Ý","%dD":"Ý","%DD":"Ý","%de":"Þ","%De":"Þ","%dE":"Þ","%DE":"Þ","%df":"ß","%Df":"ß","%dF":"ß","%DF":"ß","%e0":"à","%E0":"à","%e1":"á","%E1":"á","%e2":"â","%E2":"â","%e3":"ã","%E3":"ã","%e4":"ä","%E4":"ä","%e5":"å","%E5":"å","%e6":"æ","%E6":"æ","%e7":"ç","%E7":"ç","%e8":"è","%E8":"è","%e9":"é","%E9":"é","%ea":"ê","%Ea":"ê","%eA":"ê","%EA":"ê","%eb":"ë","%Eb":"ë","%eB":"ë","%EB":"ë","%ec":"ì","%Ec":"ì","%eC":"ì","%EC":"ì","%ed":"í","%Ed":"í","%eD":"í","%ED":"í","%ee":"î","%Ee":"î","%eE":"î","%EE":"î","%ef":"ï","%Ef":"ï","%eF":"ï","%EF":"ï","%f0":"ð","%F0":"ð","%f1":"ñ","%F1":"ñ","%f2":"ò","%F2":"ò","%f3":"ó","%F3":"ó","%f4":"ô","%F4":"ô","%f5":"õ","%F5":"õ","%f6":"ö","%F6":"ö","%f7":"÷","%F7":"÷","%f8":"ø","%F8":"ø","%f9":"ù","%F9":"ù","%fa":"ú","%Fa":"ú","%fA":"ú","%FA":"ú","%fb":"û","%Fb":"û","%fB":"û","%FB":"û","%fc":"ü","%Fc":"ü","%fC":"ü","%FC":"ü","%fd":"ý","%Fd":"ý","%fD":"ý","%FD":"ý","%fe":"þ","%Fe":"þ","%fE":"þ","%FE":"þ","%ff":"ÿ","%Ff":"ÿ","%fF":"ÿ","%FF":"ÿ"};e.exports=function(e){let A=[],n=0,o="",i=!1,s=!1,a=0,l="",c=e.length;for(var E=0;c>E;++E){let c=e[E];if("\\"===c&&i){if(s)s=!1;else{s=!0;continue;}}else if('"'===c){if(s)s=!1;else{i?(i=!1,n=0):i=!0;continue;}}else{if(s&&i&&(l+="\\"),s=!1,(2===n||3===n)&&"'"===c){2===n?(n=3,o=l.substring(1)):n=1,l="";continue;}if(0===n&&("*"===c||"="===c)&&A.length){n="*"===c?2:1,A[a]=[l,void 0],l="";continue;}if(i||";"!==c){if(!i&&(" "===c||" "===c))continue;}else{n=0,o?(l.length&&(l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",o)),o=""):l.length&&(l=t(l,"binary","utf8")),void 0===A[a]?A[a]=l:A[a][1]=l,l="",++a;continue;}}l+=c;}return o&&l.length?l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",o):l&&(l=t(l,"binary","utf8")),void 0===A[a]?l&&(A[a]=l):A[a][1]=l,A;};}),tn("lSDUY",function(e,A){let t=new TextDecoder("utf-8"),r=new Map([["utf-8",t],["utf8",t]]),n={utf8:(e,A)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,A)),e.utf8Slice(0,e.length)),latin1:(e,A)=>0===e.length?"":"string"==typeof e?e:e.latin1Slice(0,e.length),utf16le:(e,A)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,A)),e.ucs2Slice(0,e.length)),base64:(e,A)=>0===e.length?"":("string"==typeof e&&(e=Buffer.from(e,A)),e.base64Slice(0,e.length)),other(A,t){if(0===A.length)return"";if("string"==typeof A&&(A=Buffer.from(A,t)),r.has(e.exports.toString()))try{return r.get(e.exports).decode(A);}catch{}return"string"==typeof A?A:A.toString();}};e.exports=function(e,A,t){return e?function(e){let A;for(;;)switch(e){case"utf-8":case"utf8":return n.utf8;case"latin1":case"ascii":case"us-ascii":case"iso-8859-1":case"iso8859-1":case"iso88591":case"iso_8859-1":case"windows-1252":case"iso_8859-1:1987":case"cp1252":case"x-cp1252":return n.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return n.utf16le;case"base64":return n.base64;default:if(void 0===A){A=!0,e=e.toLowerCase();continue;}return n.other.bind(e);}}(t)(e,A):e;};}),tn("jq2EU",function(e,A){e.exports=function(e){if("string"!=typeof e)return"";for(var A=e.length-1;A>=0;--A)switch(e.charCodeAt(A)){case 47:case 92:return".."===(e=e.slice(A+1))||"."===e?"":e;}return".."===e||"."===e?"":e;};}),tn("a2N0f",function(e,A){var t,r,n;function o(e,A){let r;let o=A.limits,s=A.parsedConType;this.boy=e,this.fieldSizeLimit=n(o,"fieldSize",1048576),this.fieldNameSizeLimit=n(o,"fieldNameSize",100),this.fieldsLimit=n(o,"fields",1/0);for(var a=0,l=s.length;l>a;++a)if(Array.isArray(s[a])&&i.test(s[a][0])){r=s[a][1].toLowerCase();break;}void 0===r&&(r=A.defCharset||"utf8"),this.decoder=new t(),this.charset=r,this._fields=0,this._state="key",this._checkingBytes=!0,this._bytesKey=0,this._bytesVal=0,this._key="",this._val="",this._keyTrunc=!1,this._valTrunc=!1,this._hitLimit=!1;}t=nE("eyp0C"),r=nE("lSDUY"),n=nE("8tV70");let i=/^charset$/i;o.detect=/^application\/x-www-form-urlencoded/i,o.prototype.write=function(e,A){let t,n,o;if(this._fields===this.fieldsLimit)return this.boy.hitFieldsLimit||(this.boy.hitFieldsLimit=!0,this.boy.emit("fieldsLimit")),A();let i=0,s=e.length;for(;io;++o){if(!this._checkingBytes&&++i,61===e[o]){t=o;break;}if(38===e[o]){n=o;break;}if(this._checkingBytes&&this._bytesKey===this.fieldNameSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesKey;}if(void 0!==t)t>i&&(this._key+=this.decoder.write(e.toString("binary",i,t))),this._state="val",this._hitLimit=!1,this._checkingBytes=!0,this._val="",this._bytesVal=0,this._valTrunc=!1,this.decoder.reset(),i=t+1;else if(void 0!==n){let t;++this._fields;let o=this._keyTrunc;if(t=n>i?this._key+=this.decoder.write(e.toString("binary",i,n)):this._key,this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),t.length&&this.boy.emit("field",r(t,"binary",this.charset),"",o,!1),i=n+1,this._fields===this.fieldsLimit)return A();}else this._hitLimit?(o>i&&(this._key+=this.decoder.write(e.toString("binary",i,o))),i=o,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(io;++o){if(!this._checkingBytes&&++i,38===e[o]){n=o;break;}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesVal;}if(void 0!==n){if(++this._fields,n>i&&(this._val+=this.decoder.write(e.toString("binary",i,n))),this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this._state="key",this._hitLimit=!1,this._checkingBytes=!0,this._key="",this._bytesKey=0,this._keyTrunc=!1,this.decoder.reset(),i=n+1,this._fields===this.fieldsLimit)return A();}else this._hitLimit?(o>i&&(this._val+=this.decoder.write(e.toString("binary",i,o))),i=o,(""===this._val&&0===this.fieldSizeLimit||(this._bytesVal=this._val.length)===this.fieldSizeLimit)&&(this._checkingBytes=!1,this._valTrunc=!0)):(i0?this.boy.emit("field",r(this._key,"binary",this.charset),"",this._keyTrunc,!1):"val"===this._state&&this.boy.emit("field",r(this._key,"binary",this.charset),r(this._val,"binary",this.charset),this._keyTrunc,this._valTrunc),this.boy._done=!0,this.boy.emit("finish"));},e.exports=o;}),tn("eyp0C",function(e,A){function t(){this.buffer=void 0;}let r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];t.prototype.write=function(e){e=e.replace(/\+/g," ");let A="",t=0,n=0,o=e.length;for(;o>t;++t)void 0!==this.buffer?r[e.charCodeAt(t)]?(this.buffer+=e[t],++n,2===this.buffer.length&&(A+=String.fromCharCode(parseInt(this.buffer,16)),this.buffer=void 0)):(A+="%"+this.buffer,this.buffer=void 0,--t):"%"===e[t]&&(t>n&&(A+=e.substring(n,t),n=t),this.buffer="",++n);return n=33&&e<=126;}}(e.charCodeAt(A)))return!1;return!0;}function I(e){return!(e.startsWith(" ")||e.startsWith(" ")||e.endsWith(" ")||e.endsWith(" ")||e.includes("\0")||e.includes("\r")||e.includes("\n"));}function B(e,A){return(rW(e instanceof URL),"file:"===e.protocol||"about:"===e.protocol||"blank:"===e.protocol)?"no-referrer":(e.username="",e.password="",e.hash="",A&&(e.pathname="",e.search=""),e);}function d(e){return e instanceof URL&&("about:blank"===e.href||"about:srcdoc"===e.href||"data:"===e.protocol||"file:"===e.protocol||function(e){if(null==e||"null"===e)return!1;let A=new URL(e);return!!("https:"===A.protocol||"wss:"===A.protocol||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(A.hostname)||"localhost"===A.hostname||A.hostname.includes("localhost.")||A.hostname.endsWith(".localhost"));}(e.origin));}function f(e){let A=[],t=!0;for(let r of e.split(" ")){t=!1;let e=D.exec(r);if(null===e||void 0===e.groups||void 0===e.groups.algo)continue;let n=e.groups.algo.toLowerCase();R.includes(n)&&A.push(e.groups);}return!0===t?"no metadata":A;}function p(e,A){return e.origin===A.origin&&"null"===e.origin||e.protocol===A.protocol&&e.hostname===A.hostname&&e.port===A.port;}async function y(e,A,t){let r;try{r=e.stream.getReader();}catch(e){t(e);return;}try{let e=await m(r);A(e);}catch(e){t(e);}}async function m(e){let A=[],t=0;for(;;){let{done:r,value:n}=await e.read();if(r)return Buffer.concat(A,t);if(!g(n))throw TypeError("Received non-Uint8Array chunk");A.push(n),t+=n.length;}}function w(e){return"string"==typeof e?e.startsWith("https:"):"https:"===e.protocol;}function b(e){rW("protocol"in e);let A=e.protocol;return"http:"===A||"https:"===A;}r=(t=nE("cU8F4")).redirectStatusSet,n=t.referrerPolicySet,o=t.badPortsSet,i=nE("e3MDk").getGlobalOrigin,s=r1.performance,l=(a=nE("jksEw")).isBlobLike,c=a.toUSVString,E=a.ReadableStreamFrom,g=nE("1oEcd").isUint8Array;let R=[];try{u=$2c0b9f7d1405c65b$import$c55b6e71aa693445;let e=["sha256","sha384","sha512"];R=u.getHashes().filter(A=>e.includes(A));}catch{}let D=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i,S={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};Object.setPrototypeOf(S,null);let k=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())),v=globalThis.ReadableStream,N=Object.hasOwn||((e,A)=>Object.prototype.hasOwnProperty.call(e,A));e.exports={isAborted:function(e){return"aborted"===e.controller.state;},isCancelled:function(e){return"aborted"===e.controller.state||"terminated"===e.controller.state;},createDeferredPromise:function(){let e,A;return{promise:new Promise((t,r)=>{e=t,A=r;}),resolve:e,reject:A};},ReadableStreamFrom:E,toUSVString:c,tryUpgradeRequestToAPotentiallyTrustworthyURL:function(e){},coarsenedSharedCurrentTime:function(e){return s.now();},determineRequestsReferrer:function(e){let A=e.referrerPolicy;rW(A);let t=null;if("client"===e.referrer){let e=i();if(!e||"null"===e.origin)return"no-referrer";t=new URL(e);}else e.referrer instanceof URL&&(t=e.referrer);let r=B(t),n=B(t,!0);r.toString().length>4096&&(r=n);let o=p(e,r),s=d(r)&&!d(e.url);switch(A){case"origin":return null!=n?n:B(t,!0);case"unsafe-url":return r;case"same-origin":return o?n:"no-referrer";case"origin-when-cross-origin":return o?r:n;case"strict-origin-when-cross-origin":{let A=Q(e);if(p(r,A))return r;if(d(r)&&!d(A))return"no-referrer";return n;}default:return s?"no-referrer":n;}},makePolicyContainer:function(){return{referrerPolicy:"strict-origin-when-cross-origin"};},clonePolicyContainer:function(e){return{referrerPolicy:e.referrerPolicy};},appendFetchMetadata:function(e){let A=null;A=e.mode,e.headersList.set("sec-fetch-mode",A);},appendRequestOriginHeader:function(e){let A=e.origin;if("cors"===e.responseTainting||"websocket"===e.mode)A&&e.headersList.append("origin",A);else if("GET"!==e.method&&"HEAD"!==e.method){switch(e.referrerPolicy){case"no-referrer":A=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":e.origin&&w(e.origin)&&!w(Q(e))&&(A=null);break;case"same-origin":p(e,Q(e))||(A=null);}A&&e.headersList.append("origin",A);}},TAOCheck:function(){return"success";},corsCheck:function(){return"success";},crossOriginResourcePolicyCheck:function(){return"allowed";},createOpaqueTimingInfo:function(e){var A,t;return{startTime:null!==(A=e.startTime)&&void 0!==A?A:0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:null!==(t=e.startTime)&&void 0!==t?t:0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null};},setRequestReferrerPolicyOnRedirect:function(e,A){var t;let{headersList:r}=A,o=(null!==(t=r.get("referrer-policy"))&&void 0!==t?t:"").split(","),i="";if(o.length>0)for(let e=o.length;0!==e;e--){let A=o[e-1].trim();if(n.has(A)){i=A;break;}}""!==i&&(e.referrerPolicy=i);},isValidHTTPToken:C,requestBadPort:function(e){let A=Q(e);return b(A)&&o.has(A.port)?"blocked":"allowed";},requestCurrentURL:Q,responseURL:h,responseLocationURL:function(e,A){if(!r.has(e.status))return null;let t=e.headersList.get("location");return null!==t&&I(t)&&(t=new URL(t,h(e))),t&&!t.hash&&(t.hash=A),t;},isBlobLike:l,isURLPotentiallyTrustworthy:d,isValidReasonPhrase:function(e){for(let A=0;A=32&&t<=126||t>=128&&t<=255))return!1;}return!0;},sameOrigin:p,normalizeMethod:function(e){var A;return null!==(A=S[e.toLowerCase()])&&void 0!==A?A:e;},serializeJavascriptValueToJSONString:function(e){let A=JSON.stringify(e);if(void 0===A)throw TypeError("Value is not JSON serializable");return rW("string"==typeof A),A;},makeIterator:function(e,A,t){let r={index:0,kind:t,target:e},n={next(){if(Object.getPrototypeOf(this)!==n)throw TypeError(`'next' called on an object that does not implement interface ${A} Iterator.`);let{index:e,kind:t,target:o}=r,i=o();if(e>=i.length)return{value:void 0,done:!0};let s=i[e];return r.index=e+1,function(e,A){let t;switch(A){case"key":t=e[0];break;case"value":t=e[1];break;case"key+value":t=e;}return{value:t,done:!1};}(s,t);},[Symbol.toStringTag]:`${A} Iterator`};return Object.setPrototypeOf(n,k),Object.setPrototypeOf({},n);},isValidHeaderName:function(e){return C(e);},isValidHeaderValue:I,hasOwn:N,isErrorLike:function(e){var A,t;return e instanceof Error||(null==e?void 0:null===(A=e.constructor)||void 0===A?void 0:A.name)==="Error"||(null==e?void 0:null===(t=e.constructor)||void 0===t?void 0:t.name)==="DOMException";},fullyReadBody:y,bytesMatch:function(e,A){if(void 0===u)return!0;let t=f(A);if("no metadata"===t||0===t.length)return!0;let r=function(e){let A=e[0].algo;if("5"===A[3])return A;for(let t=1;t=e.charCodeAt(A));return e;},isomorphicDecode:function(e){return e.length<65535?String.fromCharCode(...e):e.reduce((e,A)=>e+String.fromCharCode(A),"");},urlIsLocal:function(e){rW("protocol"in e);let A=e.protocol;return"about:"===A||"blob:"===A||"data:"===A;},urlHasHttpsScheme:w,urlIsHttpHttpsScheme:b,readAllBytes:m,normalizeMethodRecord:S,parseMetadata:f};}),tn("cU8F4",function(e,A){let t;var r,n,o=r2.MessageChannel,i=r2.receiveMessageOnPort;let s=["GET","HEAD","POST"],a=new Set(s),l=[301,302,303,307,308],c=new Set(l),E=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","5060","5061","6000","6566","6665","6666","6667","6668","6669","6697","10080"],g=new Set(E),u=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],h=new Set(u),Q=["GET","HEAD","OPTIONS","TRACE"],C=new Set(Q),I=["CONNECT","TRACE","TRACK"],B=new Set(I),d=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],f=new Set(d),p=null!==(r=globalThis.DOMException)&&void 0!==r?r:(()=>{try{atob("~");}catch(e){return Object.getPrototypeOf(e).constructor;}})(),y=null!==(n=globalThis.structuredClone)&&void 0!==n?n:function(e,A){if(0==arguments.length)throw TypeError("missing argument");return t||(t=new o()),t.port1.unref(),t.port2.unref(),t.port1.postMessage(e,null==A?void 0:A.transfer),i(t.port2).message;};e.exports={DOMException:p,structuredClone:y,subresource:d,forbiddenMethods:I,requestBodyHeader:["content-encoding","content-language","content-location","content-type","content-length"],referrerPolicy:u,requestRedirect:["follow","manual","error"],requestMode:["navigate","same-origin","no-cors","cors"],requestCredentials:["omit","same-origin","include"],requestCache:["default","no-store","reload","no-cache","force-cache","only-if-cached"],redirectStatus:l,corsSafeListedMethods:s,nullBodyStatus:[101,204,205,304],safeMethods:Q,badPorts:E,requestDuplex:["half"],subresourceSet:f,badPortsSet:g,redirectStatusSet:c,corsSafeListedMethodsSet:a,safeMethodsSet:C,forbiddenMethodsSet:B,referrerPolicySet:h};}),tn("e3MDk",function(e,A){let t=Symbol.for("undici.globalOrigin.1");e.exports={getGlobalOrigin:function(){return globalThis[t];},setGlobalOrigin:function(e){if(void 0===e){Object.defineProperty(globalThis,t,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return;}let A=new URL(e);if("http:"!==A.protocol&&"https:"!==A.protocol)throw TypeError("Only http & https urls are allowed, received "+A.protocol);Object.defineProperty(globalThis,t,{value:A,writable:!0,enumerable:!1,configurable:!1});}};}),tn("1oEcd",function(e,A){var t=nE("3h8U0")();e.exports=t;}),tn("3h8U0",function(e,A){var t;t=nE("l4NWF"),e.exports=function(){return"object"==typeof rj.types?rj.types:t;};}),tn("l4NWF",function(e,A){var t,r,n,o,i,s,l,c,E,g,u,h,Q,C,I,B,d,f,p,y,m,w,b,R,D,S,k,v,N,F,L,U,T,M,x,_,G,O,Y;function J(e){return Object.prototype.toString.call(e);}a(e.exports,"isExternal",()=>t,e=>t=e),a(e.exports,"isDate",()=>r,e=>r=e),a(e.exports,"isArgumentsObject",()=>n,e=>n=e),a(e.exports,"isBooleanObject",()=>o,e=>o=e),a(e.exports,"isNumberObject",()=>i,e=>i=e),a(e.exports,"isStringObject",()=>s,e=>s=e),a(e.exports,"isSymbolObject",()=>l,e=>l=e),a(e.exports,"isNativeError",()=>c,e=>c=e),a(e.exports,"isRegExp",()=>E,e=>E=e),a(e.exports,"isAsyncFunction",()=>g,e=>g=e),a(e.exports,"isGeneratorFunction",()=>u,e=>u=e),a(e.exports,"isGeneratorObject",()=>h,e=>h=e),a(e.exports,"isPromise",()=>Q,e=>Q=e),a(e.exports,"isMap",()=>C,e=>C=e),a(e.exports,"isSet",()=>I,e=>I=e),a(e.exports,"isMapIterator",()=>B,e=>B=e),a(e.exports,"isSetIterator",()=>d,e=>d=e),a(e.exports,"isWeakMap",()=>f,e=>f=e),a(e.exports,"isWeakSet",()=>p,e=>p=e),a(e.exports,"isArrayBuffer",()=>y,e=>y=e),a(e.exports,"isDataView",()=>m,e=>m=e),a(e.exports,"isSharedArrayBuffer",()=>w,e=>w=e),a(e.exports,"isProxy",()=>b,e=>b=e),a(e.exports,"isWebAssemblyCompiledModule",()=>R,e=>R=e),a(e.exports,"isModuleNamespaceObject",()=>D,e=>D=e),a(e.exports,"isAnyArrayBuffer",()=>S,e=>S=e),a(e.exports,"isArrayBufferView",()=>k,e=>k=e),a(e.exports,"isTypedArray",()=>v,e=>v=e),a(e.exports,"isUint8Array",()=>N,e=>N=e),a(e.exports,"isUint8ClampedArray",()=>F,e=>F=e),a(e.exports,"isUint16Array",()=>L,e=>L=e),a(e.exports,"isUint32Array",()=>U,e=>U=e),a(e.exports,"isInt8Array",()=>T,e=>T=e),a(e.exports,"isInt16Array",()=>M,e=>M=e),a(e.exports,"isInt32Array",()=>x,e=>x=e),a(e.exports,"isFloat32Array",()=>_,e=>_=e),a(e.exports,"isFloat64Array",()=>G,e=>G=e),a(e.exports,"isBigInt64Array",()=>O,e=>O=e),a(e.exports,"isBigUint64Array",()=>Y,e=>Y=e),t=function(){},r=function(e){return"[object Date]"===J(e)&&e instanceof Date;},n=function(e){return"[object Arguments]"===J(e);},o=function(e){return"[object Boolean]"===J(e)&&e instanceof Boolean;},i=function(e){return"[object Number]"===J(e)&&e instanceof Number;},s=function(e){return"[object String]"===J(e)&&e instanceof String;},l=function(e){return"[object Symbol]"===J(e)&&e instanceof Symbol;},c=function(e){return"[object Error]"===J(e)&&e instanceof Error;},E=function(e){return"[object RegExp]"===J(e)&&e instanceof RegExp;},g=function(e){return"[object AsyncFunction]"===J(e);},u=function(e){return"[object GeneratorFunction]"===J(e);},h=function(e){return"[object Generator]"===J(e);},Q=function(e){return"[object Promise]"===J(e);},C=function(e){return"[object Map]"===J(e)&&e instanceof Map;},I=function(e){return"[object Set]"===J(e)&&e instanceof Set;},B=function(e){return"[object Map Iterator]"===J(e);},d=function(e){return"[object Set Iterator]"===J(e);},f=function(e){return"[object WeakMap]"===J(e);},p=function(e){return"[object WeakSet]"===J(e);},y=function(e){return"[object ArrayBuffer]"===J(e)&&e instanceof ArrayBuffer;},m=function(e){return"[object DataView]"===J(e)&&e instanceof DataView;},w=function(e){return"[object SharedArrayBuffer]"===J(e)&&e instanceof SharedArrayBuffer;},b=function(){},R=function(e){return"[object WebAssembly.Module]"===J(e);},D=function(){},S=function(){},k=function(){},v=function(e){return /^\[object (?:Float(?:32|64)Array|(?:Int|Uint)(?:8|16|32)Array|Uint8ClampedArray)\]$/.test(J(e));},N=function(e){return"[object Uint8Array]"===J(e)&&e instanceof Uint8Array;},F=function(e){return"[object Uint8ClampedArray]"===J(e)&&e instanceof Uint8ClampedArray;},L=function(e){return"[object Uint16Array]"===J(e)&&e instanceof Uint16Array;},U=function(e){return"[object Uint32Array]"===J(e)&&e instanceof Uint32Array;},T=function(e){return"[object Int8Array]"===J(e)&&e instanceof Int8Array;},M=function(e){return"[object Int16Array]"===J(e)&&e instanceof Int16Array;},x=function(e){return"[object Int32Array]"===J(e)&&e instanceof Int32Array;},_=function(e){return"[object Float32Array]"===J(e)&&e instanceof Float32Array;},G=function(e){return"[object Float64Array]"===J(e)&&e instanceof Float64Array;},O=function(e){return"[object Float64Array]"===J(e)&&e instanceof Float64Array;},Y=function(){};}),tn("dVNsr",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u;function h(e,A,t){if(e=Buffer.from(e).toString("utf8"),"string"==typeof A)A=Buffer.from(A).toString("utf8");else if(c(A)||(A=A instanceof g?new Q([A],"blob",{type:A.type}):new l(A,"blob",{type:A.type})),void 0!==t){let e={type:A.type,lastModified:A.lastModified};A=u&&A instanceof u||A instanceof a?new Q([A],t,e):new l(A,t,e);}return{name:e,value:A};}r=(t=nE("3Ms3X")).isBlobLike,n=t.toUSVString,o=t.makeIterator,i=nE("czloG").kState,a=(s=nE("3ReSW")).File,l=s.FileLike,c=s.isFileLike,E=nE("cvPqj").webidl,g=r$.Blob;let Q=null!=(u=r$.File)?u:a;class C{constructor(e){if(void 0!==e)throw E.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]});this[i]=[];}append(e,A,t){if(E.brandCheck(this,C),E.argumentLengthCheck(arguments,2,{header:"FormData.append"}),3==arguments.length&&!r(A))throw TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'");e=E.converters.USVString(e),A=r(A)?E.converters.Blob(A,{strict:!1}):E.converters.USVString(A),t=3==arguments.length?E.converters.USVString(t):void 0;let n=h(e,A,t);this[i].push(n);}delete(e){E.brandCheck(this,C),E.argumentLengthCheck(arguments,1,{header:"FormData.delete"}),e=E.converters.USVString(e),this[i]=this[i].filter(A=>A.name!==e);}get(e){E.brandCheck(this,C),E.argumentLengthCheck(arguments,1,{header:"FormData.get"}),e=E.converters.USVString(e);let A=this[i].findIndex(A=>A.name===e);return-1===A?null:this[i][A].value;}getAll(e){return E.brandCheck(this,C),E.argumentLengthCheck(arguments,1,{header:"FormData.getAll"}),e=E.converters.USVString(e),this[i].filter(A=>A.name===e).map(e=>e.value);}has(e){return E.brandCheck(this,C),E.argumentLengthCheck(arguments,1,{header:"FormData.has"}),e=E.converters.USVString(e),-1!==this[i].findIndex(A=>A.name===e);}set(e,A,t){if(E.brandCheck(this,C),E.argumentLengthCheck(arguments,2,{header:"FormData.set"}),3==arguments.length&&!r(A))throw TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'");e=E.converters.USVString(e),A=r(A)?E.converters.Blob(A,{strict:!1}):E.converters.USVString(A),t=3==arguments.length?n(t):void 0;let o=h(e,A,t),s=this[i].findIndex(A=>A.name===e);-1!==s?this[i]=[...this[i].slice(0,s),o,...this[i].slice(s+1).filter(A=>A.name!==e)]:this[i].push(o);}entries(){return E.brandCheck(this,C),o(()=>this[i].map(e=>[e.name,e.value]),"FormData","key+value");}keys(){return E.brandCheck(this,C),o(()=>this[i].map(e=>[e.name,e.value]),"FormData","key");}values(){return E.brandCheck(this,C),o(()=>this[i].map(e=>[e.name,e.value]),"FormData","value");}forEach(e,A=globalThis){if(E.brandCheck(this,C),E.argumentLengthCheck(arguments,1,{header:"FormData.forEach"}),"function"!=typeof e)throw TypeError("Failed to execute 'forEach' on 'FormData': parameter 1 is not of type 'Function'.");for(let[t,r]of this)e.apply(A,[r,t,this]);}}C.prototype[Symbol.iterator]=C.prototype.entries,Object.defineProperties(C.prototype,{[Symbol.toStringTag]:{value:"FormData",configurable:!0}}),e.exports={FormData:C};}),tn("czloG",function(e,A){e.exports={kUrl:Symbol(),kHeaders:Symbol(),kSignal:Symbol(),kState:Symbol(),kGuard:Symbol(),kRealm:Symbol()};}),tn("3ReSW",function(e,A){var t,r,n,o,i,s,a,l,c,E;t=r$.Blob,r=r$.File,n=rj.types,o=nE("czloG").kState,i=nE("3Ms3X").isBlobLike,s=nE("cvPqj").webidl,l=(a=nE("9mEts")).parseMIMEType,c=a.serializeAMimeType,E=nE("jksEw").kEnumerableProperty;let g=new TextEncoder();class u extends t{constructor(e,A,t={}){let r;s.argumentLengthCheck(arguments,2,{header:"File constructor"}),e=s.converters["sequence"](e),A=s.converters.USVString(A),t=s.converters.FilePropertyBag(t);let a=A,E=t.type;e:{if(E){if("failure"===(E=l(E))){E="";break e;}E=c(E).toLowerCase();}r=t.lastModified;}super(function(e,A){let t=[];for(let r of e)if("string"==typeof r){let e=r;"native"===A.endings&&(e=function(e){let A="\n";return"win32"===process.platform&&(A="\r\n"),e.replace(/\r?\n/g,A);}(e)),t.push(g.encode(e));}else n.isAnyArrayBuffer(r)||n.isTypedArray(r)?r.buffer?t.push(new Uint8Array(r.buffer,r.byteOffset,r.byteLength)):t.push(new Uint8Array(r)):i(r)&&t.push(r);return t;}(e,t),{type:E}),this[o]={name:a,lastModified:r,type:E};}get name(){return s.brandCheck(this,u),this[o].name;}get lastModified(){return s.brandCheck(this,u),this[o].lastModified;}get type(){return s.brandCheck(this,u),this[o].type;}}class h{constructor(e,A,t={}){var r;let n=t.type,i=null!==(r=t.lastModified)&&void 0!==r?r:Date.now();this[o]={blobLike:e,name:A,type:n,lastModified:i};}stream(...e){return s.brandCheck(this,h),this[o].blobLike.stream(...e);}arrayBuffer(...e){return s.brandCheck(this,h),this[o].blobLike.arrayBuffer(...e);}slice(...e){return s.brandCheck(this,h),this[o].blobLike.slice(...e);}text(...e){return s.brandCheck(this,h),this[o].blobLike.text(...e);}get size(){return s.brandCheck(this,h),this[o].blobLike.size;}get type(){return s.brandCheck(this,h),this[o].blobLike.type;}get name(){return s.brandCheck(this,h),this[o].name;}get lastModified(){return s.brandCheck(this,h),this[o].lastModified;}get[Symbol.toStringTag](){return"File";}}Object.defineProperties(u.prototype,{[Symbol.toStringTag]:{value:"File",configurable:!0},name:E,lastModified:E}),s.converters.Blob=s.interfaceConverter(t),s.converters.BlobPart=function(e,A){if("Object"===s.util.Type(e)){if(i(e))return s.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||n.isAnyArrayBuffer(e))return s.converters.BufferSource(e,A);}return s.converters.USVString(e,A);},s.converters["sequence"]=s.sequenceConverter(s.converters.BlobPart),s.converters.FilePropertyBag=s.dictionaryConverter([{key:"lastModified",converter:s.converters["long long"],get defaultValue(){return Date.now();}},{key:"type",converter:s.converters.DOMString,defaultValue:""},{key:"endings",converter:e=>("native"!==(e=(e=s.converters.DOMString(e)).toLowerCase())&&(e="transparent"),e),defaultValue:"transparent"}]),e.exports={File:u,FileLike:h,isFileLike:function(e){return r&&e instanceof r||e instanceof u||e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&"File"===e[Symbol.toStringTag];}};}),tn("cvPqj",function(e,A){var t=rj.types,r=nE("3Ms3X"),n=r.hasOwn,o=r.toUSVString;let i={};i.converters={},i.util={},i.errors={},i.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`);},i.errors.conversionFailed=function(e){let A=1===e.types.length?"":" one of",t=`${e.argument} could not be converted to${A}: ${e.types.join(", ")}.`;return i.errors.exception({header:e.prefix,message:t});},i.errors.invalidArgument=function(e){return i.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`});},i.brandCheck=function(e,A,t){if((null==t?void 0:t.strict)===!1||e instanceof A)return(null==e?void 0:e[Symbol.toStringTag])===A.prototype[Symbol.toStringTag];throw TypeError("Illegal invocation");},i.argumentLengthCheck=function({length:e},A,t){if(A>e)throw i.errors.exception({message:`${A} argument${1!==A?"s":""} required, but${e?" only":""} ${e} found.`,...t});},i.illegalConstructor=function(){throw i.errors.exception({header:"TypeError",message:"Illegal constructor"});},i.util.Type=function(e){switch(typeof e){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":if(null===e)return"Null";return"Object";}},i.util.ConvertToInt=function(e,A,t,r={}){let n,o;64===A?(n=9007199254740991,o="unsigned"===t?0:-9007199254740991):"unsigned"===t?(o=0,n=Math.pow(2,A)-1):(o=Math.pow(-2,A)-1,n=Math.pow(2,A-1)-1);let s=+e;if(0===s&&(s=0),!0===r.enforceRange){if(Number.isNaN(s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY)throw i.errors.exception({header:"Integer conversion",message:`Could not convert ${e} to an integer.`});if((s=i.util.IntegerPart(s))n)throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${o}-${n}, got ${s}.`});return s;}return Number.isNaN(s)||!0!==r.clamp?Number.isNaN(s)||0===s&&Object.is(0,s)||s===Number.POSITIVE_INFINITY||s===Number.NEGATIVE_INFINITY?0:(s=i.util.IntegerPart(s)%Math.pow(2,A),"signed"===t&&s>=Math.pow(2,A)-1)?s-Math.pow(2,A):s:s=Math.floor(s=Math.min(Math.max(s,o),n))%2==0?Math.floor(s):Math.ceil(s);},i.util.IntegerPart=function(e){let A=Math.floor(Math.abs(e));return e<0?-1*A:A;},i.sequenceConverter=function(e){return A=>{var t;if("Object"!==i.util.Type(A))throw i.errors.exception({header:"Sequence",message:`Value of type ${i.util.Type(A)} is not an Object.`});let r=null==A?void 0:null===(t=A[Symbol.iterator])||void 0===t?void 0:t.call(A),n=[];if(void 0===r||"function"!=typeof r.next)throw i.errors.exception({header:"Sequence",message:"Object is not an iterator."});for(;;){let{done:A,value:t}=r.next();if(A)break;n.push(e(t));}return n;};},i.recordConverter=function(e,A){return r=>{if("Object"!==i.util.Type(r))throw i.errors.exception({header:"Record",message:`Value of type ${i.util.Type(r)} is not an Object.`});let n={};if(!t.isProxy(r)){for(let t of Object.keys(r)){let o=e(t),i=A(r[t]);n[o]=i;}return n;}for(let t of Reflect.ownKeys(r)){let o=Reflect.getOwnPropertyDescriptor(r,t);if(null==o?void 0:o.enumerable){let o=e(t),i=A(r[t]);n[o]=i;}}return n;};},i.interfaceConverter=function(e){return(A,t={})=>{if(!1!==t.strict&&!(A instanceof e))throw i.errors.exception({header:e.name,message:`Expected ${A} to be an instance of ${e.name}.`});return A;};},i.dictionaryConverter=function(e){return A=>{let t=i.util.Type(A),r={};if("Null"===t||"Undefined"===t)return r;if("Object"!==t)throw i.errors.exception({header:"Dictionary",message:`Expected ${A} to be one of: Null, Undefined, Object.`});for(let t of e){let{key:e,defaultValue:o,required:s,converter:a}=t;if(!0===s&&!n(A,e))throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`});let l=A[e],c=n(t,"defaultValue");if(c&&null!==l&&(l=null!=l?l:o),s||c||void 0!==l){if(l=a(l),t.allowedValues&&!t.allowedValues.includes(l))throw i.errors.exception({header:"Dictionary",message:`${l} is not an accepted type. Expected one of ${t.allowedValues.join(", ")}.`});r[e]=l;}}return r;};},i.nullableConverter=function(e){return A=>null===A?A:e(A);},i.converters.DOMString=function(e,A={}){if(null===e&&A.legacyNullToEmptyString)return"";if("symbol"==typeof e)throw TypeError("Could not convert argument of type symbol to string.");return e+"";},i.converters.ByteString=function(e){let A=i.converters.DOMString(e);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${A.charCodeAt(e)} which is greater than 255.`);return A;},i.converters.USVString=o,i.converters.boolean=function(e){return!!e;},i.converters.any=function(e){return e;},i.converters["long long"]=function(e){return i.util.ConvertToInt(e,64,"signed");},i.converters["unsigned long long"]=function(e){return i.util.ConvertToInt(e,64,"unsigned");},i.converters["unsigned long"]=function(e){return i.util.ConvertToInt(e,32,"unsigned");},i.converters["unsigned short"]=function(e,A){return i.util.ConvertToInt(e,16,"unsigned",A);},i.converters.ArrayBuffer=function(e,A={}){if("Object"!==i.util.Type(e)||!t.isAnyArrayBuffer(e))throw i.errors.conversionFailed({prefix:""+e,argument:""+e,types:["ArrayBuffer"]});if(!1===A.allowShared&&t.isSharedArrayBuffer(e))throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e;},i.converters.TypedArray=function(e,A,r={}){if("Object"!==i.util.Type(e)||!t.isTypedArray(e)||e.constructor.name!==A.name)throw i.errors.conversionFailed({prefix:""+A.name,argument:""+e,types:[A.name]});if(!1===r.allowShared&&t.isSharedArrayBuffer(e.buffer))throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e;},i.converters.DataView=function(e,A={}){if("Object"!==i.util.Type(e)||!t.isDataView(e))throw i.errors.exception({header:"DataView",message:"Object is not a DataView."});if(!1===A.allowShared&&t.isSharedArrayBuffer(e.buffer))throw i.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."});return e;},i.converters.BufferSource=function(e,A={}){if(t.isAnyArrayBuffer(e))return i.converters.ArrayBuffer(e,A);if(t.isTypedArray(e))return i.converters.TypedArray(e,e.constructor);if(t.isDataView(e))return i.converters.DataView(e,A);throw TypeError(`Could not convert ${e} to a BufferSource.`);},i.converters["sequence"]=i.sequenceConverter(i.converters.ByteString),i.converters["sequence>"]=i.sequenceConverter(i.converters["sequence"]),i.converters["record"]=i.recordConverter(i.converters.ByteString,i.converters.ByteString),e.exports={webidl:i};}),tn("9mEts",function(e,A){function t(e,A=!1){if(!A)return e.href;let r=e.href,n=e.hash.length;return 0===n?r:r.substring(0,r.length-n);}function r(e,A,t){let r="";for(;t.positione.length)return"failure";A.position++;let o=n(";",e,A);if(0===(o=l(o,!1,!0)).length||!h.test(o))return"failure";let i=t.toLowerCase(),a=o.toLowerCase(),c={type:i,subtype:a,parameters:new Map(),essence:`${i}/${a}`};for(;A.positionQ.test(e),e,A);let t=r(e=>";"!==e&&"="!==e,e,A);if(t=t.toLowerCase(),A.positione.length)break;let o=null;if('"'===e[A.position])o=s(e,A,!0),n(";",e,A);else if(0===(o=l(o=n(";",e,A),!1,!0)).length)continue;0!==t.length&&h.test(t)&&(0===o.length||C.test(o))&&!c.parameters.has(t)&&c.parameters.set(t,o);}return c;}function s(e,A,t){let n=A.position,o="";for(rW('"'===e[A.position]),A.position++;o+=r(e=>'"'!==e&&"\\"!==e,e,A),!(A.position>=e.length);){let t=e[A.position];if(A.position++,"\\"===t){if(A.position>=e.length){o+="\\";break;}o+=e[A.position],A.position++;}else{rW('"'===t);break;}}return t?o:e.slice(n,A.position);}function a(e){return"\r"===e||"\n"===e||" "===e||" "===e;}function l(e,A=!0,t=!0){let r=0,n=e.length-1;if(A)for(;r0&&a(e[n]);n--);return e.slice(r,n+1);}function c(e){return"\r"===e||"\n"===e||" "===e||"\f"===e||" "===e;}var E=r$.atob,g=nE("3Ms3X").isomorphicDecode;let u=new TextEncoder(),h=/^[!#$%&'*+-.^_|~A-Za-z0-9]+$/,Q=/(\u000A|\u000D|\u0009|\u0020)/,C=/[\u0009|\u0020-\u007E|\u0080-\u00FF]/;e.exports={dataURLProcessor:function(e){rW("data:"===e.protocol);let A=t(e,!0);A=A.slice(5);let r={position:0},s=n(",",A,r),a=s.length;if(s=function(e,A=!0,t=!0){let r=0,n=e.length-1;if(A)for(;r0&&c(e[n]);n--);return e.slice(r,n+1);}(s,!0,!0),r.position>=A.length)return"failure";r.position++;let l=o(A.slice(a+1));if(/;(\u0020){0,}base64$/i.test(s)){if("failure"===(l=function(e){if((e=e.replace(/[\u0009\u000A\u000C\u000D\u0020]/g,"")).length%4==0&&(e=e.replace(/=?=$/,"")),e.length%4==1||/[^+/0-9A-Za-z]/.test(e))return"failure";let A=E(e),t=new Uint8Array(A.length);for(let e=0;e=0;A--)if("function"!=typeof this[E][A])throw new i("interceptor must be an function");}this[E]=e;}close(e){if(void 0===e)return new Promise((e,A)=>{this.close((t,r)=>t?A(t):e(r));});if("function"!=typeof e)throw new i("invalid callback");if(this[g]){queueMicrotask(()=>e(new n(),null));return;}if(this[u]){this[Q]?this[Q].push(e):queueMicrotask(()=>e(null,null));return;}this[u]=!0,this[Q].push(e);let A=()=>{let e=this[Q];this[Q]=null;for(let A=0;Athis.destroy()).then(()=>{queueMicrotask(A);});}destroy(e,A){if("function"==typeof e&&(A=e,e=null),void 0===A)return new Promise((A,t)=>{this.destroy(e,(e,r)=>e?t(e):A(r));});if("function"!=typeof A)throw new i("invalid callback");if(this[g]){this[h]?this[h].push(A):queueMicrotask(()=>A(null,null));return;}e||(e=new n()),this[g]=!0,this[h]=this[h]||[],this[h].push(A);let t=()=>{let e=this[h];this[h]=null;for(let A=0;A{queueMicrotask(t);});}[C](e,A){if(!this[E]||0===this[E].length)return this[C]=this[c],this[c](e,A);let t=this[c].bind(this);for(let e=this[E].length-1;e>=0;e--)t=this[E][e](t);return this[C]=t,t(e,A);}dispatch(e,A){if(!A||"object"!=typeof A)throw new i("handler must be an object");try{if(!e||"object"!=typeof e)throw new i("opts must be an object.");if(this[g]||this[h])throw new n();if(this[u])throw new o();return this[C](e,A);}catch(e){if("function"!=typeof A.onError)throw new i("invalid onError method");return A.onError(e),!1;}}};}),tn("aqU6E",function(e,A){e.exports=class extends rq{dispatch(){throw Error("not implemented");}close(){throw Error("not implemented");}destroy(){throw Error("not implemented");}};}),tn("ertK5",function(e,A){var t,r,n,o;let i,s;t=nE("jksEw"),n=(r=nE("ayJiG")).InvalidArgumentError,o=r.ConnectTimeoutError,na.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?s=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map(),this._sessionRegistry=new na.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e);}this._sessionCache.set(e,A);}}},e.exports=function({allowH2:e,maxCachedSessions:A,socketPath:r,timeout:a,...l}){if(null!=A&&(!Number.isInteger(A)||A<0))throw new n("maxCachedSessions must be a positive integer or zero");let c={path:r,...l},E=new s(null==A?100:A);return a=null==a?1e4:a,e=null!=e&&e,function({hostname:A,host:r,protocol:n,port:s,servername:l,localAddress:g,httpSocket:u},h){let Q;if("https:"===n){i||(i=rV);let n=(l=l||c.servername||t.getServerName(r)||null)||A,o=E.get(n)||null;rW(n),(Q=i.connect({highWaterMark:16384,...c,servername:l,session:o,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:u,port:s||443,host:A})).on("session",function(e){E.set(n,e);});}else rW(!u,"httpSocket can only be sent on TLS update"),Q=rP.connect({highWaterMark:65536,...c,localAddress:g,port:s||80,host:A});if(null==c.keepAlive||c.keepAlive){let e=void 0===c.keepAliveInitialDelay?6e4:c.keepAliveInitialDelay;Q.setKeepAlive(!0,e);}let C=function(e,A){if(!A)return()=>{};let t=null,r=null,n=setTimeout(()=>{t=setImmediate(()=>{"win32"===process.platform?r=setImmediate(()=>e()):e();});},A);return()=>{clearTimeout(n),clearImmediate(t),clearImmediate(r);};}(()=>{var e;return e=Q,void t.destroy(e,new o());},a);return Q.setNoDelay(!0).once("https:"===n?"secureConnect":"connect",function(){if(C(),h){let e=h;h=null,e(null,this);}}).on("error",function(e){if(C(),h){let A=h;h=null,A(e);}}),Q;};};}),tn("fTLvG",function(e,A){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.SPECIAL_HEADERS=e.exports.HEADER_STATE=e.exports.MINOR=e.exports.MAJOR=e.exports.CONNECTION_TOKEN_CHARS=e.exports.HEADER_CHARS=e.exports.TOKEN=e.exports.STRICT_TOKEN=e.exports.HEX=e.exports.URL_CHAR=e.exports.STRICT_URL_CHAR=e.exports.USERINFO_CHARS=e.exports.MARK=e.exports.ALPHANUM=e.exports.NUM=e.exports.HEX_MAP=e.exports.NUM_MAP=e.exports.ALPHA=e.exports.FINISH=e.exports.H_METHOD_MAP=e.exports.METHOD_MAP=e.exports.METHODS_RTSP=e.exports.METHODS_ICE=e.exports.METHODS_HTTP=e.exports.METHODS=e.exports.LENIENT_FLAGS=e.exports.FLAGS=e.exports.TYPE=e.exports.ERROR=void 0;var t,r,n,o,i,s,a,l,c,E=nE("2Pc9g");(t=e.exports.ERROR||(e.exports.ERROR={}))[t.OK=0]="OK",t[t.INTERNAL=1]="INTERNAL",t[t.STRICT=2]="STRICT",t[t.LF_EXPECTED=3]="LF_EXPECTED",t[t.UNEXPECTED_CONTENT_LENGTH=4]="UNEXPECTED_CONTENT_LENGTH",t[t.CLOSED_CONNECTION=5]="CLOSED_CONNECTION",t[t.INVALID_METHOD=6]="INVALID_METHOD",t[t.INVALID_URL=7]="INVALID_URL",t[t.INVALID_CONSTANT=8]="INVALID_CONSTANT",t[t.INVALID_VERSION=9]="INVALID_VERSION",t[t.INVALID_HEADER_TOKEN=10]="INVALID_HEADER_TOKEN",t[t.INVALID_CONTENT_LENGTH=11]="INVALID_CONTENT_LENGTH",t[t.INVALID_CHUNK_SIZE=12]="INVALID_CHUNK_SIZE",t[t.INVALID_STATUS=13]="INVALID_STATUS",t[t.INVALID_EOF_STATE=14]="INVALID_EOF_STATE",t[t.INVALID_TRANSFER_ENCODING=15]="INVALID_TRANSFER_ENCODING",t[t.CB_MESSAGE_BEGIN=16]="CB_MESSAGE_BEGIN",t[t.CB_HEADERS_COMPLETE=17]="CB_HEADERS_COMPLETE",t[t.CB_MESSAGE_COMPLETE=18]="CB_MESSAGE_COMPLETE",t[t.CB_CHUNK_HEADER=19]="CB_CHUNK_HEADER",t[t.CB_CHUNK_COMPLETE=20]="CB_CHUNK_COMPLETE",t[t.PAUSED=21]="PAUSED",t[t.PAUSED_UPGRADE=22]="PAUSED_UPGRADE",t[t.PAUSED_H2_UPGRADE=23]="PAUSED_H2_UPGRADE",t[t.USER=24]="USER",(r=e.exports.TYPE||(e.exports.TYPE={}))[r.BOTH=0]="BOTH",r[r.REQUEST=1]="REQUEST",r[r.RESPONSE=2]="RESPONSE",(n=e.exports.FLAGS||(e.exports.FLAGS={}))[n.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",n[n.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",n[n.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",n[n.CHUNKED=8]="CHUNKED",n[n.UPGRADE=16]="UPGRADE",n[n.CONTENT_LENGTH=32]="CONTENT_LENGTH",n[n.SKIPBODY=64]="SKIPBODY",n[n.TRAILING=128]="TRAILING",n[n.TRANSFER_ENCODING=512]="TRANSFER_ENCODING",(o=e.exports.LENIENT_FLAGS||(e.exports.LENIENT_FLAGS={}))[o.HEADERS=1]="HEADERS",o[o.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",o[o.KEEP_ALIVE=4]="KEEP_ALIVE",(i=l=e.exports.METHODS||(e.exports.METHODS={}))[i.DELETE=0]="DELETE",i[i.GET=1]="GET",i[i.HEAD=2]="HEAD",i[i.POST=3]="POST",i[i.PUT=4]="PUT",i[i.CONNECT=5]="CONNECT",i[i.OPTIONS=6]="OPTIONS",i[i.TRACE=7]="TRACE",i[i.COPY=8]="COPY",i[i.LOCK=9]="LOCK",i[i.MKCOL=10]="MKCOL",i[i.MOVE=11]="MOVE",i[i.PROPFIND=12]="PROPFIND",i[i.PROPPATCH=13]="PROPPATCH",i[i.SEARCH=14]="SEARCH",i[i.UNLOCK=15]="UNLOCK",i[i.BIND=16]="BIND",i[i.REBIND=17]="REBIND",i[i.UNBIND=18]="UNBIND",i[i.ACL=19]="ACL",i[i.REPORT=20]="REPORT",i[i.MKACTIVITY=21]="MKACTIVITY",i[i.CHECKOUT=22]="CHECKOUT",i[i.MERGE=23]="MERGE",i[i["M-SEARCH"]=24]="M-SEARCH",i[i.NOTIFY=25]="NOTIFY",i[i.SUBSCRIBE=26]="SUBSCRIBE",i[i.UNSUBSCRIBE=27]="UNSUBSCRIBE",i[i.PATCH=28]="PATCH",i[i.PURGE=29]="PURGE",i[i.MKCALENDAR=30]="MKCALENDAR",i[i.LINK=31]="LINK",i[i.UNLINK=32]="UNLINK",i[i.SOURCE=33]="SOURCE",i[i.PRI=34]="PRI",i[i.DESCRIBE=35]="DESCRIBE",i[i.ANNOUNCE=36]="ANNOUNCE",i[i.SETUP=37]="SETUP",i[i.PLAY=38]="PLAY",i[i.PAUSE=39]="PAUSE",i[i.TEARDOWN=40]="TEARDOWN",i[i.GET_PARAMETER=41]="GET_PARAMETER",i[i.SET_PARAMETER=42]="SET_PARAMETER",i[i.REDIRECT=43]="REDIRECT",i[i.RECORD=44]="RECORD",i[i.FLUSH=45]="FLUSH",e.exports.METHODS_HTTP=[l.DELETE,l.GET,l.HEAD,l.POST,l.PUT,l.CONNECT,l.OPTIONS,l.TRACE,l.COPY,l.LOCK,l.MKCOL,l.MOVE,l.PROPFIND,l.PROPPATCH,l.SEARCH,l.UNLOCK,l.BIND,l.REBIND,l.UNBIND,l.ACL,l.REPORT,l.MKACTIVITY,l.CHECKOUT,l.MERGE,l["M-SEARCH"],l.NOTIFY,l.SUBSCRIBE,l.UNSUBSCRIBE,l.PATCH,l.PURGE,l.MKCALENDAR,l.LINK,l.UNLINK,l.PRI,l.SOURCE],e.exports.METHODS_ICE=[l.SOURCE],e.exports.METHODS_RTSP=[l.OPTIONS,l.DESCRIBE,l.ANNOUNCE,l.SETUP,l.PLAY,l.PAUSE,l.TEARDOWN,l.GET_PARAMETER,l.SET_PARAMETER,l.REDIRECT,l.RECORD,l.FLUSH,l.GET,l.POST],e.exports.METHOD_MAP=E.enumToMap(l),e.exports.H_METHOD_MAP={},Object.keys(e.exports.METHOD_MAP).forEach(A=>{/^H/.test(A)&&(e.exports.H_METHOD_MAP[A]=e.exports.METHOD_MAP[A]);}),(s=e.exports.FINISH||(e.exports.FINISH={}))[s.SAFE=0]="SAFE",s[s.SAFE_WITH_CB=1]="SAFE_WITH_CB",s[s.UNSAFE=2]="UNSAFE",e.exports.ALPHA=[];for(let A=65;A<=90;A++)e.exports.ALPHA.push(String.fromCharCode(A)),e.exports.ALPHA.push(String.fromCharCode(A+32));e.exports.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.exports.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},e.exports.NUM=["0","1","2","3","4","5","6","7","8","9"],e.exports.ALPHANUM=e.exports.ALPHA.concat(e.exports.NUM),e.exports.MARK=["-","_",".","!","~","*","'","(",")"],e.exports.USERINFO_CHARS=e.exports.ALPHANUM.concat(e.exports.MARK).concat(["%",";",":","&","=","+","$",","]),e.exports.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(e.exports.ALPHANUM),e.exports.URL_CHAR=e.exports.STRICT_URL_CHAR.concat([" ","\f"]);for(let A=128;A<=255;A++)e.exports.URL_CHAR.push(A);e.exports.HEX=e.exports.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]),e.exports.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(e.exports.ALPHANUM),e.exports.TOKEN=e.exports.STRICT_TOKEN.concat([" "]),e.exports.HEADER_CHARS=[" "];for(let A=32;A<=255;A++)127!==A&&e.exports.HEADER_CHARS.push(A);e.exports.CONNECTION_TOKEN_CHARS=e.exports.HEADER_CHARS.filter(e=>44!==e),e.exports.MAJOR=e.exports.NUM_MAP,e.exports.MINOR=e.exports.MAJOR,(a=c=e.exports.HEADER_STATE||(e.exports.HEADER_STATE={}))[a.GENERAL=0]="GENERAL",a[a.CONNECTION=1]="CONNECTION",a[a.CONTENT_LENGTH=2]="CONTENT_LENGTH",a[a.TRANSFER_ENCODING=3]="TRANSFER_ENCODING",a[a.UPGRADE=4]="UPGRADE",a[a.CONNECTION_KEEP_ALIVE=5]="CONNECTION_KEEP_ALIVE",a[a.CONNECTION_CLOSE=6]="CONNECTION_CLOSE",a[a.CONNECTION_UPGRADE=7]="CONNECTION_UPGRADE",a[a.TRANSFER_ENCODING_CHUNKED=8]="TRANSFER_ENCODING_CHUNKED",e.exports.SPECIAL_HEADERS={connection:c.CONNECTION,"content-length":c.CONTENT_LENGTH,"proxy-connection":c.CONNECTION,"transfer-encoding":c.TRANSFER_ENCODING,upgrade:c.UPGRADE};}),tn("2Pc9g",function(e,A){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.enumToMap=void 0,e.exports.enumToMap=function(e){let A={};return Object.keys(e).forEach(t=>{let r=e[t];"number"==typeof r&&(A[t]=r);}),A;};}),tn("9sz7P",function(e,A){var t;t=nE("3E5UX"),e.exports=function({maxRedirections:e}){return A=>function(r,n){let{maxRedirections:o=e}=r;if(!o)return A(r,n);let i=new t(A,o,r,n);return A(r={...r,maxRedirections:0},i);};};}),tn("3E5UX",function(e,A){var t,r,n;function o(e,A,r){if(4===e.length)return"host"===t.headerNameToString(e);if(A&&t.headerNameToString(e).startsWith("content-"))return!0;if(r&&(13===e.length||6===e.length||19===e.length)){let A=t.headerNameToString(e);return"authorization"===A||"cookie"===A||"proxy-authorization"===A;}return!1;}t=nE("jksEw"),r=nE("eoU9M").kBodyUsed,n=nE("ayJiG").InvalidArgumentError;let i=[300,301,302,303,307,308],s=Symbol();class a{constructor(e){this[s]=e,this[r]=!1;}async*[Symbol.asyncIterator](){rW(!this[r],"disturbed"),this[r]=!0,yield*this[s];}}e.exports=class{constructor(e,A,o,i){if(null!=A&&(!Number.isInteger(A)||A<0))throw new n("maxRedirections must be a positive number");t.validateHandler(i,o.method,o.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...o,maxRedirections:0},this.maxRedirections=A,this.handler=i,this.history=[],t.isStream(this.opts.body)?(0===t.bodyLength(this.opts.body)&&this.opts.body.on("data",function(){rW(!1);}),"boolean"!=typeof this.opts.body.readableDidRead&&(this.opts.body[r]=!1,rq.prototype.on.call(this.opts.body,"data",function(){this[r]=!0;}))):this.opts.body&&"function"==typeof this.opts.body.pipeTo?this.opts.body=new a(this.opts.body):this.opts.body&&"string"!=typeof this.opts.body&&!ArrayBuffer.isView(this.opts.body)&&t.isIterable(this.opts.body)&&(this.opts.body=new a(this.opts.body));}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history});}onUpgrade(e,A,t){this.handler.onUpgrade(e,A,t);}onError(e){this.handler.onError(e);}onHeaders(e,A,r,n){if(this.location=this.history.length>=this.maxRedirections||t.isDisturbed(this.opts.body)?null:function(e,A){if(-1===i.indexOf(e))return null;for(let e=0;e!e[o]);return e||(!this[I]||this[n].lengthe.close())).then(e[f]);},this[y]=(A,t)=>{e.emit("connect",A,[e,...t]);},this[m]=(A,t,r)=>{e.emit("disconnect",A,[e,...t],r);},this[w]=(A,t,r)=>{e.emit("connectionError",A,[e,...t],r);},this[S]=new C(this);}get[c](){return this[B];}get[o](){return this[I].filter(e=>e[o]).length;}get[E](){return this[I].filter(e=>e[o]&&!e[B]).length;}get[a](){let e=this[l];for(let{[a]:A}of this[I])e+=A;return e;}get[s](){let e=0;for(let{[s]:A}of this[I])e+=A;return e;}get[i](){let e=this[l];for(let{[i]:A}of this[I])e+=A;return e;}get stats(){return this[S];}async[u](){return this[d].isEmpty()?Promise.all(this[I].map(e=>e.close())):new Promise(e=>{this[f]=e;});}async[h](e){for(;;){let A=this[d].shift();if(!A)break;A.handler.onError(e);}return Promise.all(this[I].map(A=>A.destroy(e)));}[Q](e,A){let t=this[b]();return t?t.dispatch(e,A)||(t[B]=!0,this[B]=!this[b]()):(this[B]=!0,this[d].push({opts:e,handler:A}),this[l]++),!this[B];}[R](e){return e.on("drain",this[p]).on("connect",this[y]).on("disconnect",this[m]).on("connectionError",this[w]),this[I].push(e),this[B]&&process.nextTick(()=>{this[B]&&this[p](e[g],[this,e]);}),this;}[D](e){e.close(()=>{let A=this[I].indexOf(e);-1!==A&&this[I].splice(A,1);}),this[B]=this[I].some(e=>!e[B]&&!0!==e.closed&&!0!==e.destroyed);}},kClients:I,kNeedDrain:B,kAddClient:R,kRemoveClient:D,kGetDispatcher:b};}),tn("iPn9b",function(e,A){class t{constructor(){this.bottom=0,this.top=0,this.list=Array(2048),this.next=null;}isEmpty(){return this.top===this.bottom;}isFull(){return(this.top+1&2047)===this.bottom;}push(e){this.list[this.top]=e,this.top=this.top+1&2047;}shift(){let e=this.list[this.bottom];return void 0===e?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e);}}e.exports=class{constructor(){this.head=this.tail=new t();}isEmpty(){return this.head.isEmpty();}push(e){this.head.isFull()&&(this.head=this.head.next=new t()),this.head.push(e);}shift(){let e=this.tail,A=e.shift();return e.isEmpty()&&null!==e.next&&(this.tail=e.next),A;}};}),tn("gJf4e",function(e,A){var t=nE("eoU9M"),r=t.kFree,n=t.kConnected,o=t.kPending,i=t.kQueued,s=t.kRunning,a=t.kSize;let l=Symbol();e.exports=class{constructor(e){this[l]=e;}get connected(){return this[l][n];}get free(){return this[l][r];}get pending(){return this[l][o];}get queued(){return this[l][i];}get running(){return this[l][s];}get size(){return this[l][a];}};}),tn("35hUU",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C;function I(e,A){return new g(e,A);}r=(t=nE("ayJiG")).BalancedPoolMissingUpstreamError,n=t.InvalidArgumentError,i=(o=nE("2A4vm")).PoolBase,s=o.kClients,a=o.kNeedDrain,l=o.kAddClient,c=o.kRemoveClient,E=o.kGetDispatcher,g=nE("kOCfr"),h=(u=nE("eoU9M")).kUrl,Q=u.kInterceptors,C=nE("jksEw").parseOrigin;let B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol(),y=Symbol(),m=Symbol(),w=Symbol(),b=Symbol();e.exports=class extends i{constructor(e=[],{factory:A=I,...t}={}){if(super(),this[d]=t,this[y]=-1,this[p]=0,this[w]=this[d].maxWeightPerServer||100,this[b]=this[d].errorPenalty||15,Array.isArray(e)||(e=[e]),"function"!=typeof A)throw new n("factory must be a function.");for(let r of(this[Q]=t.interceptors&&t.interceptors.BalancedPool&&Array.isArray(t.interceptors.BalancedPool)?t.interceptors.BalancedPool:[],this[B]=A,e))this.addUpstream(r);this._updateBalancedPoolStats();}addUpstream(e){let A=C(e).origin;if(this[s].find(e=>e[h].origin===A&&!0!==e.closed&&!0!==e.destroyed))return this;let t=this[B](A,Object.assign({},this[d]));for(let e of(this[l](t),t.on("connect",()=>{t[m]=Math.min(this[w],t[m]+this[b]);}),t.on("connectionError",()=>{t[m]=Math.max(1,t[m]-this[b]),this._updateBalancedPoolStats();}),t.on("disconnect",(...e)=>{let A=e[2];A&&"UND_ERR_SOCKET"===A.code&&(t[m]=Math.max(1,t[m]-this[b]),this._updateBalancedPoolStats());}),this[s]))e[m]=this[w];return this._updateBalancedPoolStats(),this;}_updateBalancedPoolStats(){this[f]=this[s].map(e=>e[m]).reduce(function e(A,t){return 0===t?A:e(t,A%t);},0);}removeUpstream(e){let A=C(e).origin,t=this[s].find(e=>e[h].origin===A&&!0!==e.closed&&!0!==e.destroyed);return t&&this[c](t),this;}get upstreams(){return this[s].filter(e=>!0!==e.closed&&!0!==e.destroyed).map(e=>e[h].origin);}[E](){if(0===this[s].length)throw new r();if(!this[s].find(e=>!e[a]&&!0!==e.closed&&!0!==e.destroyed)||this[s].map(e=>e[a]).reduce((e,A)=>e&&A,!0))return;let e=0,A=this[s].findIndex(e=>!e[a]);for(;e++this[s][A][m]&&!e[a]&&(A=this[y]),0===this[y]&&(this[p]=this[p]-this[f],this[p]<=0&&(this[p]=this[w])),e[m]>=this[p]&&!e[a])return e;}return this[p]=this[s][A][m],this[y]=A,this[s][A];}};}),tn("c0vcY",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h;function Q(e,A){return A&&1===A.connections?new g(e,A):new E(e,A);}t=nE("ayJiG").InvalidArgumentError,n=(r=nE("eoU9M")).kClients,o=r.kRunning,i=r.kClose,s=r.kDestroy,a=r.kDispatch,l=r.kInterceptors,c=nE("8Tdy2"),E=nE("kOCfr"),g=nE("8yUQl"),u=nE("jksEw"),h=nE("9sz7P");let{WeakRef:C,FinalizationRegistry:I}=nE("zN1di")(),B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol(),y=Symbol(),m=Symbol(),w=Symbol(),b=Symbol();e.exports=class extends c{constructor({factory:e=Q,maxRedirections:A=0,connect:r,...o}={}){if(super(),"function"!=typeof e)throw new t("factory must be a function.");if(null!=r&&"function"!=typeof r&&"object"!=typeof r)throw new t("connect must be a function or an object");if(!Number.isInteger(A)||A<0)throw new t("maxRedirections must be a positive number");r&&"function"!=typeof r&&(r={...r}),this[l]=o.interceptors&&o.interceptors.Agent&&Array.isArray(o.interceptors.Agent)?o.interceptors.Agent:[h({maxRedirections:A})],this[b]={...u.deepClone(o),connect:r},this[b].interceptors=o.interceptors?{...o.interceptors}:void 0,this[p]=A,this[m]=e,this[n]=new Map(),this[w]=new I(e=>{let A=this[n].get(e);void 0!==A&&void 0===A.deref()&&this[n].delete(e);});let i=this;this[y]=(e,A)=>{i.emit("drain",e,[i,...A]);},this[B]=(e,A)=>{i.emit("connect",e,[i,...A]);},this[d]=(e,A,t)=>{i.emit("disconnect",e,[i,...A],t);},this[f]=(e,A,t)=>{i.emit("connectionError",e,[i,...A],t);};}get[o](){let e=0;for(let A of this[n].values()){let t=A.deref();t&&(e+=t[o]);}return e;}[a](e,A){let r;if(e.origin&&("string"==typeof e.origin||e.origin instanceof URL))r=e.origin+"";else throw new t("opts.origin must be a non-empty string or URL.");let o=this[n].get(r),i=o?o.deref():null;return i||(i=this[m](e.origin,this[b]).on("drain",this[y]).on("connect",this[B]).on("disconnect",this[d]).on("connectionError",this[f]),this[n].set(r,new C(i)),this[w].register(i,r)),i.dispatch(e,A);}async[i](){let e=[];for(let A of this[n].values()){let t=A.deref();t&&e.push(t.close());}await Promise.all(e);}async[s](e){let A=[];for(let t of this[n].values()){let r=t.deref();r&&A.push(r.destroy(e));}await Promise.all(A);}};}),tn("zN1di",function(e,A){var t=nE("eoU9M"),r=t.kConnected,n=t.kSize;class o{constructor(e){this.value=e;}deref(){return 0===this.value[r]&&0===this.value[n]?void 0:this.value;}}class i{constructor(e){this.finalizer=e;}register(e,A){e.on&&e.on("disconnect",()=>{0===e[r]&&0===e[n]&&this.finalizer(A);});}}e.exports=function(){return process.env.NODE_V8_COVERAGE?{WeakRef:o,FinalizationRegistry:i}:{WeakRef:na.WeakRef||o,FinalizationRegistry:na.FinalizationRegistry||i};};}),tn("4Ek9d",function(e,A){var t,r,n,o,i;a(e.exports,"request",()=>t,e=>t=e),a(e.exports,"stream",()=>r,e=>r=e),a(e.exports,"pipeline",()=>n,e=>n=e),a(e.exports,"upgrade",()=>o,e=>o=e),a(e.exports,"connect",()=>i,e=>i=e),t=nE("lPeX8"),r=nE("eO5F2"),n=nE("9othe"),o=nE("gEplS"),i=nE("9U7te");}),tn("lPeX8",function(e,A){var t,r,n,o,i,s,a,l,c,E;t=nE("c1FNj"),n=(r=nE("ayJiG")).InvalidArgumentError,o=r.RequestAbortedError,i=nE("jksEw"),s=nE("9bl51").getResolveErrorBodyCallback,a=r4.AsyncResource,c=(l=nE("5eYhx")).addSignal,E=l.removeSignal;class g extends a{constructor(e,A){if(!e||"object"!=typeof e)throw new n("invalid opts");let{signal:t,method:r,opaque:o,body:s,onInfo:a,responseHeaders:l,throwOnError:E,highWaterMark:g}=e;try{if("function"!=typeof A)throw new n("invalid callback");if(g&&("number"!=typeof g||g<0))throw new n("invalid highWaterMark");if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");if("CONNECT"===r)throw new n("invalid method");if(a&&"function"!=typeof a)throw new n("invalid onInfo callback");super("UNDICI_REQUEST");}catch(e){throw i.isStream(s)&&i.destroy(s.on("error",i.nop),e),e;}this.responseHeaders=l||null,this.opaque=o||null,this.callback=A,this.res=null,this.abort=null,this.body=s,this.trailers={},this.context=null,this.onInfo=a||null,this.throwOnError=E,this.highWaterMark=g,i.isStream(s)&&s.on("error",e=>{this.onError(e);}),c(this,t);}onConnect(e,A){if(!this.callback)throw new o();this.abort=e,this.context=A;}onHeaders(e,A,r,n){let{callback:o,opaque:a,abort:l,context:c,responseHeaders:E,highWaterMark:g}=this,u="raw"===E?i.parseRawHeaders(A):i.parseHeaders(A);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:u});return;}let h=("raw"===E?i.parseHeaders(A):u)["content-type"],Q=new t({resume:r,abort:l,contentType:h,highWaterMark:g});this.callback=null,this.res=Q,null!==o&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:o,body:Q,contentType:h,statusCode:e,statusMessage:n,headers:u}):this.runInAsyncScope(o,null,null,{statusCode:e,headers:u,trailers:this.trailers,opaque:a,body:Q,context:c}));}onData(e){let{res:A}=this;return A.push(e);}onComplete(e){let{res:A}=this;E(this),i.parseHeaders(e,this.trailers),A.push(null);}onError(e){let{res:A,callback:t,body:r,opaque:n}=this;E(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n});})),A&&(this.res=null,queueMicrotask(()=>{i.destroy(A,e);})),r&&(this.body=null,i.destroy(r,e));}}e.exports=function e(A,t){if(void 0===t)return new Promise((t,r)=>{e.call(this,A,(e,A)=>e?r(e):t(A));});try{this.dispatch(A,new g(A,t));}catch(r){if("function"!=typeof t)throw r;let e=A&&A.opaque;queueMicrotask(()=>t(r,{opaque:e}));}},e.exports.RequestHandler=g;}),tn("c1FNj",function(e,A){var t,r,n,o,i,s,a,l;let c;async function E(e,A){var t;if(s.isDisturbed(e)||(t=e)[B]&&!0===t[B].locked||t[C])throw TypeError("unusable");return rW(!e[C]),new Promise((t,r)=>{e[C]={type:A,stream:e,resolve:t,reject:r,length:0,body:[]},e.on("error",function(e){Q(this[C],e);}).on("close",function(){null!==this[C].body&&Q(this[C],new n());}),process.nextTick(g,e[C]);});}function g(e){if(null===e.body)return;let{_readableState:A}=e.stream;for(let t of A.buffer)h(e,t);for(A.endEmitted?u(this[C]):e.stream.on("end",function(){u(this[C]);}),e.stream.resume();null!=e.stream.read(););}function u(e){let{type:A,body:t,resolve:r,stream:n,length:o}=e;try{if("text"===A)r(l(Buffer.concat(t)));else if("json"===A)r(JSON.parse(Buffer.concat(t)));else if("arrayBuffer"===A){let e=new Uint8Array(o),A=0;for(let r of t)e.set(r,A),A+=r.byteLength;r(e.buffer);}else"blob"===A&&(c||(c=$8c15ff865a5ae4e4$import$a968f85fc6710240$3b660928c86ff55c),r(new c(t,{type:n[f]})));Q(e);}catch(e){n.destroy(e);}}function h(e,A){e.length+=A.length,e.body.push(A);}function Q(e,A){null!==e.body&&(A?e.reject(A):e.resolve(),e.type=null,e.stream=null,e.resolve=null,e.reject=null,e.length=0,e.body=null);}t=rX.Readable,n=(r=nE("ayJiG")).RequestAbortedError,o=r.NotSupportedError,i=r.InvalidArgumentError,s=nE("jksEw"),a=(s=nE("jksEw")).ReadableStreamFrom,l=s.toUSVString;let C=Symbol(),I=Symbol(),B=Symbol(),d=Symbol(),f=Symbol(),p=()=>{};e.exports=class extends t{constructor({resume:e,abort:A,contentType:t="",highWaterMark:r=65536}){super({autoDestroy:!0,read:e,highWaterMark:r}),this._readableState.dataEmitted=!1,this[d]=A,this[C]=null,this[B]=null,this[f]=t,this[I]=!1;}destroy(e){return this.destroyed?this:(e||this._readableState.endEmitted||(e=new n()),e&&this[d](),super.destroy(e));}emit(e,...A){return"data"===e?this._readableState.dataEmitted=!0:"error"===e&&(this._readableState.errorEmitted=!0),super.emit(e,...A);}on(e,...A){return("data"===e||"readable"===e)&&(this[I]=!0),super.on(e,...A);}addListener(e,...A){return this.on(e,...A);}off(e,...A){let t=super.off(e,...A);return("data"===e||"readable"===e)&&(this[I]=this.listenerCount("data")>0||this.listenerCount("readable")>0),t;}removeListener(e,...A){return this.off(e,...A);}push(e){return this[C]&&null!==e&&0===this.readableLength?(h(this[C],e),!this[I]||super.push(e)):super.push(e);}async text(){return E(this,"text");}async json(){return E(this,"json");}async blob(){return E(this,"blob");}async arrayBuffer(){return E(this,"arrayBuffer");}async formData(){throw new o();}get bodyUsed(){return s.isDisturbed(this);}get body(){return!this[B]&&(this[B]=a(this),this[C]&&(this[B].getReader(),rW(this[B].locked))),this[B];}dump(e){let A=e&&Number.isFinite(e.limit)?e.limit:262144,t=e&&e.signal;if(t)try{if("object"!=typeof t||!("aborted"in t))throw new i("signal must be an AbortSignal");s.throwIfAborted(t);}catch(e){return Promise.reject(e);}return this.closed?Promise.resolve(null):new Promise((e,r)=>{let n=t?s.addAbortListener(t,()=>{this.destroy();}):p;this.on("close",function(){n(),t&&t.aborted?r(t.reason||Object.assign(Error("The operation was aborted"),{name:"AbortError"})):e(null);}).on("error",p).on("data",function(e){(A-=e.length)<=0&&this.destroy();}).resume();});}};}),tn("9bl51",function(e,A){async function t({callback:e,body:A,contentType:t,statusCode:o,statusMessage:i,headers:s}){rW(A);let a=[],l=0;for await(let e of A)if(a.push(e),(l+=e.length)>131072){a=null;break;}if(204===o||!t||!a){process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s));return;}try{if(t.startsWith("application/json")){let A=JSON.parse(n(Buffer.concat(a)));process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s,A));return;}if(t.startsWith("text/")){let A=n(Buffer.concat(a));process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s,A));return;}}catch(e){}process.nextTick(e,new r(`Response status code ${o}${i?": "+i:""}`,o,s));}var r=nE("ayJiG").ResponseStatusCodeError,n=nE("jksEw").toUSVString;e.exports={getResolveErrorBodyCallback:t};}),tn("5eYhx",function(e,A){function t(e){e.abort?e.abort():e.onError(new n());}var r=nE("jksEw").addAbortListener,n=nE("ayJiG").RequestAbortedError;let o=Symbol(),i=Symbol();e.exports={addSignal:function(e,A){if(e[i]=null,e[o]=null,A){if(A.aborted){t(e);return;}e[i]=A,e[o]=()=>{t(e);},r(e[i],e[o]);}},removeSignal:function(e){e[i]&&("removeEventListener"in e[i]?e[i].removeEventListener("abort",e[o]):e[i].removeListener("abort",e[o]),e[i]=null,e[o]=null);}};}),tn("eO5F2",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u;t=rX.finished,r=rX.PassThrough,o=(n=nE("ayJiG")).InvalidArgumentError,i=n.InvalidReturnValueError,s=n.RequestAbortedError,a=nE("jksEw"),l=nE("9bl51").getResolveErrorBodyCallback,c=r4.AsyncResource,g=(E=nE("5eYhx")).addSignal,u=E.removeSignal;class h extends c{constructor(e,A,t){if(!e||"object"!=typeof e)throw new o("invalid opts");let{signal:r,method:n,opaque:i,body:s,onInfo:l,responseHeaders:c,throwOnError:E}=e;try{if("function"!=typeof t)throw new o("invalid callback");if("function"!=typeof A)throw new o("invalid factory");if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new o("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new o("invalid method");if(l&&"function"!=typeof l)throw new o("invalid onInfo callback");super("UNDICI_STREAM");}catch(e){throw a.isStream(s)&&a.destroy(s.on("error",a.nop),e),e;}this.responseHeaders=c||null,this.opaque=i||null,this.factory=A,this.callback=t,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=s,this.onInfo=l||null,this.throwOnError=E||!1,a.isStream(s)&&s.on("error",e=>{this.onError(e);}),g(this,r);}onConnect(e,A){if(!this.callback)throw new s();this.abort=e,this.context=A;}onHeaders(e,A,n,o){let s;let{factory:c,opaque:E,context:g,callback:u,responseHeaders:h}=this,Q="raw"===h?a.parseRawHeaders(A):a.parseHeaders(A);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:Q});return;}if(this.factory=null,this.throwOnError&&e>=400){let t=("raw"===h?a.parseHeaders(A):Q)["content-type"];s=new r(),this.callback=null,this.runInAsyncScope(l,null,{callback:u,body:s,contentType:t,statusCode:e,statusMessage:o,headers:Q});}else{if(null===c)return;if(!(s=this.runInAsyncScope(c,null,{statusCode:e,headers:Q,opaque:E,context:g}))||"function"!=typeof s.write||"function"!=typeof s.end||"function"!=typeof s.on)throw new i("expected Writable");t(s,{readable:!1},e=>{let{callback:A,res:t,opaque:r,trailers:n,abort:o}=this;this.res=null,(e||!t.readable)&&a.destroy(t,e),this.callback=null,this.runInAsyncScope(A,null,e||null,{opaque:r,trailers:n}),e&&o();});}return s.on("drain",n),this.res=s,!0!==(void 0!==s.writableNeedDrain?s.writableNeedDrain:s._writableState&&s._writableState.needDrain);}onData(e){let{res:A}=this;return!A||A.write(e);}onComplete(e){let{res:A}=this;u(this),A&&(this.trailers=a.parseHeaders(e),A.end());}onError(e){let{res:A,callback:t,opaque:r,body:n}=this;u(this),this.factory=null,A?(this.res=null,a.destroy(A,e)):t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:r});})),n&&(this.body=null,a.destroy(n,e));}}e.exports=function e(A,t,r){if(void 0===r)return new Promise((r,n)=>{e.call(this,A,t,(e,A)=>e?n(e):r(A));});try{this.dispatch(A,new h(A,t,r));}catch(t){if("function"!=typeof r)throw t;let e=A&&A.opaque;queueMicrotask(()=>r(t,{opaque:e}));}};}),tn("9othe",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u;t=rX.Readable,r=rX.Duplex,n=rX.PassThrough,i=(o=nE("ayJiG")).InvalidArgumentError,s=o.InvalidReturnValueError,a=o.RequestAbortedError,l=nE("jksEw"),c=r4.AsyncResource,g=(E=nE("5eYhx")).addSignal,u=E.removeSignal;let h=Symbol();class Q extends t{constructor(){super({autoDestroy:!0}),this[h]=null;}_read(){let{[h]:e}=this;e&&(this[h]=null,e());}_destroy(e,A){this._read(),A(e);}}class C extends t{constructor(e){super({autoDestroy:!0}),this[h]=e;}_read(){this[h]();}_destroy(e,A){e||this._readableState.endEmitted||(e=new a()),A(e);}}class I extends c{constructor(e,A){if(!e||"object"!=typeof e)throw new i("invalid opts");if("function"!=typeof A)throw new i("invalid handler");let{signal:t,method:n,opaque:o,onInfo:s,responseHeaders:c}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new i("signal must be an EventEmitter or EventTarget");if("CONNECT"===n)throw new i("invalid method");if(s&&"function"!=typeof s)throw new i("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=o||null,this.responseHeaders=c||null,this.handler=A,this.abort=null,this.context=null,this.onInfo=s||null,this.req=new Q().on("error",l.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e&&e.resume&&e.resume();},write:(e,A,t)=>{let{req:r}=this;r.push(e,A)||r._readableState.destroyed?t():r[h]=t;},destroy:(e,A)=>{let{body:t,req:r,res:n,ret:o,abort:i}=this;e||o._readableState.endEmitted||(e=new a()),i&&e&&i(),l.destroy(t,e),l.destroy(r,e),l.destroy(n,e),u(this),A(e);}}).on("prefinish",()=>{let{req:e}=this;e.push(null);}),this.res=null,g(this,t);}onConnect(e,A){let{ret:t,res:r}=this;if(rW(!r,"pipeline cannot be retried"),t.destroyed)throw new a();this.abort=e,this.context=A;}onHeaders(e,A,t){let r;let{opaque:n,handler:o,context:i}=this;if(e<200){if(this.onInfo){let t="raw"===this.responseHeaders?l.parseRawHeaders(A):l.parseHeaders(A);this.onInfo({statusCode:e,headers:t});}return;}this.res=new C(t);try{this.handler=null;let t="raw"===this.responseHeaders?l.parseRawHeaders(A):l.parseHeaders(A);r=this.runInAsyncScope(o,null,{statusCode:e,headers:t,opaque:n,body:this.res,context:i});}catch(e){throw this.res.on("error",l.nop),e;}if(!r||"function"!=typeof r.on)throw new s("expected Readable");r.on("data",e=>{let{ret:A,body:t}=this;!A.push(e)&&t.pause&&t.pause();}).on("error",e=>{let{ret:A}=this;l.destroy(A,e);}).on("end",()=>{let{ret:e}=this;e.push(null);}).on("close",()=>{let{ret:e}=this;e._readableState.ended||l.destroy(e,new a());}),this.body=r;}onData(e){let{res:A}=this;return A.push(e);}onComplete(e){let{res:A}=this;A.push(null);}onError(e){let{ret:A}=this;this.handler=null,l.destroy(A,e);}}e.exports=function(e,A){try{let t=new I(e,A);return this.dispatch({...e,body:t.req},t),t.ret;}catch(e){return new n().destroy(e);}};}),tn("gEplS",function(e,A){var t,r,n,o,i,s,a,l,c;r=(t=nE("ayJiG")).InvalidArgumentError,n=t.RequestAbortedError,o=t.SocketError,i=r4.AsyncResource,s=nE("jksEw"),l=(a=nE("5eYhx")).addSignal,c=a.removeSignal;class E extends i{constructor(e,A){if(!e||"object"!=typeof e)throw new r("invalid opts");if("function"!=typeof A)throw new r("invalid callback");let{signal:t,opaque:n,responseHeaders:o}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new r("signal must be an EventEmitter or EventTarget");super("UNDICI_UPGRADE"),this.responseHeaders=o||null,this.opaque=n||null,this.callback=A,this.abort=null,this.context=null,l(this,t);}onConnect(e,A){if(!this.callback)throw new n();this.abort=e,this.context=null;}onHeaders(){throw new o("bad upgrade",null);}onUpgrade(e,A,t){let{callback:r,opaque:n,context:o}=this;rW.strictEqual(e,101),c(this),this.callback=null;let i="raw"===this.responseHeaders?s.parseRawHeaders(A):s.parseHeaders(A);this.runInAsyncScope(r,null,null,{headers:i,socket:t,opaque:n,context:o});}onError(e){let{callback:A,opaque:t}=this;c(this),A&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(A,null,e,{opaque:t});}));}}e.exports=function e(A,t){if(void 0===t)return new Promise((t,r)=>{e.call(this,A,(e,A)=>e?r(e):t(A));});try{let e=new E(A,t);this.dispatch({...A,method:A.method||"GET",upgrade:A.protocol||"Websocket"},e);}catch(r){if("function"!=typeof t)throw r;let e=A&&A.opaque;queueMicrotask(()=>t(r,{opaque:e}));}};}),tn("9U7te",function(e,A){var t,r,n,o,i,s,a,l,c;t=r4.AsyncResource,n=(r=nE("ayJiG")).InvalidArgumentError,o=r.RequestAbortedError,i=r.SocketError,s=nE("jksEw"),l=(a=nE("5eYhx")).addSignal,c=a.removeSignal;class E extends t{constructor(e,A){if(!e||"object"!=typeof e)throw new n("invalid opts");if("function"!=typeof A)throw new n("invalid callback");let{signal:t,opaque:r,responseHeaders:o}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=r||null,this.responseHeaders=o||null,this.callback=A,this.abort=null,l(this,t);}onConnect(e,A){if(!this.callback)throw new o();this.abort=e,this.context=A;}onHeaders(){throw new i("bad connect",null);}onUpgrade(e,A,t){let{callback:r,opaque:n,context:o}=this;c(this),this.callback=null;let i=A;null!=i&&(i="raw"===this.responseHeaders?s.parseRawHeaders(A):s.parseHeaders(A)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:i,socket:t,opaque:n,context:o});}onError(e){let{callback:A,opaque:t}=this;c(this),A&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(A,null,e,{opaque:t});}));}}e.exports=function e(A,t){if(void 0===t)return new Promise((t,r)=>{e.call(this,A,(e,A)=>e?r(e):t(A));});try{let e=new E(A,t);this.dispatch({...A,method:"CONNECT"},e);}catch(r){if("function"!=typeof t)throw r;let e=A&&A.opaque;queueMicrotask(()=>t(r,{opaque:e}));}};}),tn("1vOTv",function(e,A){var t=rj.promisify,r=nE("8yUQl"),n=nE("23wg0").buildMockDispatch,o=nE("5cl5M"),i=o.kDispatches,s=o.kMockAgent,a=o.kClose,l=o.kOriginalClose,c=o.kOrigin,E=o.kOriginalDispatch,g=o.kConnected,u=nE("7SSeF").MockInterceptor,h=nE("eoU9M"),Q=nE("ayJiG").InvalidArgumentError;class C extends r{constructor(e,A){if(super(e,A),!A||!A.agent||"function"!=typeof A.agent.dispatch)throw new Q("Argument opts.agent must implement Agent");this[s]=A.agent,this[c]=e,this[i]=[],this[g]=1,this[E]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[h.kConnected](){return this[g];}intercept(e){return new u(e,this[i]);}async[a](){await t(this[l])(),this[g]=0,this[s][h.kClients].delete(this[c]);}}e.exports=C;}),tn("23wg0",function(e,A){var t,r,n,o,i,s,a,l,c,E,g;function u(e,A){return"string"==typeof e?e===A:e instanceof RegExp?e.test(A):"function"==typeof e&&!0===e(A);}function h(e){return Object.fromEntries(Object.entries(e).map(([e,A])=>[e.toLocaleLowerCase(),A]));}function Q(e,A){if(Array.isArray(e)){for(let t=0;t!e).filter(({path:e})=>u(B(e),n));if(0===o.length)throw new t(`Mock dispatch not matched for path '${n}'`);if(0===(o=o.filter(({method:e})=>u(e,A.method))).length)throw new t(`Mock dispatch not matched for method '${A.method}'`);if(0===(o=o.filter(({body:e})=>void 0===e||u(e,A.body))).length)throw new t(`Mock dispatch not matched for body '${A.body}'`);if(0===(o=o.filter(e=>I(e,A.headers))).length)throw new t(`Mock dispatch not matched for headers '${"object"==typeof A.headers?JSON.stringify(A.headers):A.headers}'`);return o[0];}function p(e,A){let t=e.findIndex(e=>!!e.consumed&&function(e,{path:A,method:t,body:r,headers:n}){let o=u(e.path,A),i=u(e.method,t),s=void 0===e.body||u(e.body,r),a=I(e,n);return o&&i&&s&&a;}(e,A));-1!==t&&e.splice(t,1);}function y(e){let{path:A,method:t,body:r,headers:n,query:o}=e;return{path:A,method:t,body:r,headers:n,query:o};}function m(e){return Object.entries(e).reduce((e,[A,t])=>[...e,Buffer.from(""+A),Array.isArray(t)?t.map(e=>Buffer.from(""+e)):Buffer.from(""+t)],[]);}function w(e){return g[e]||"unknown";}async function b(e){let A=[];for await(let t of e)A.push(t);return Buffer.concat(A).toString("utf8");}function R(e,A){function t(n,i=a){let g=Array.isArray(e.headers)?C(e.headers):e.headers,u="function"==typeof i?i({...e,headers:g}):i;if(S(u)){u.then(e=>t(n,e));return;}let h=d(u),Q=m(l),I=m(c);A.abort=E,A.onHeaders(s,Q,r,w(s)),A.onData(Buffer.from(h)),A.onComplete(I),p(n,o);}function r(){}let o=y(e),i=f(this[n],o);i.timesInvoked++,i.data.callback&&(i.data={...i.data,...i.data.callback(e)});let{data:{statusCode:s,data:a,headers:l,trailers:c,error:g},delay:u,persist:h}=i,{timesInvoked:Q,times:I}=i;return(i.consumed=!h&&Q>=I,i.pending=Q0?setTimeout(()=>{t(this[n]);},u):t(this[n]),!0;}function D(e,A){let t=new URL(A);return!0===e||!!(Array.isArray(e)&&e.some(e=>u(e,t.host)));}t=nE("7fzYU").MockNotMatchedError,n=(r=nE("5cl5M")).kDispatches,o=r.kMockAgent,i=r.kOriginalDispatch,s=r.kOrigin,a=r.kGetNetConnect,c=(l=nE("jksEw")).buildURL,E=l.nop,g=rJ.STATUS_CODES;let{types:{isPromise:S}}=rj;e.exports={getResponseData:d,getMockDispatch:f,addMockDispatch:function(e,A,t){let r="function"==typeof t?{callback:t}:{...t},n={timesInvoked:0,times:1,persist:!1,consumed:!1,...A,pending:!0,data:{error:null,...r}};return e.push(n),n;},deleteMockDispatch:p,buildKey:y,generateKeyValues:m,matchValue:u,getResponse:b,getStatusText:w,mockDispatch:R,buildMockDispatch:function(){let e=this[o],A=this[s],r=this[i];return function(n,o){if(e.isMockActive)try{R.call(this,n,o);}catch(i){if(i instanceof t){let s=e[a]();if(!1===s)throw new t(`${i.message}: subsequent request to origin ${A} was not allowed (net.connect disabled)`);if(D(s,A))r.call(this,n,o);else throw new t(`${i.message}: subsequent request to origin ${A} was not allowed (net.connect is not enabled for this origin)`);}else throw i;}else r.call(this,n,o);};},checkNetConnect:D,buildMockOptions:function(e){if(e){let{agent:A,...t}=e;return t;}},getHeaderByName:Q};}),tn("7fzYU",function(e,A){var t=nE("ayJiG").UndiciError;class r extends t{constructor(e){super(e),Error.captureStackTrace(this,r),this.name="MockNotMatchedError",this.message=e||"The request does not match any registered mock dispatches",this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED";}}e.exports={MockNotMatchedError:r};}),tn("5cl5M",function(e,A){e.exports={kAgent:Symbol(),kOptions:Symbol(),kFactory:Symbol(),kDispatches:Symbol(),kDispatchKey:Symbol(),kDefaultHeaders:Symbol(),kDefaultTrailers:Symbol(),kContentLength:Symbol(),kMockAgent:Symbol(),kMockAgentSet:Symbol(),kMockAgentGet:Symbol(),kMockDispatch:Symbol(),kClose:Symbol(),kOriginalClose:Symbol(),kOrigin:Symbol(),kIsMockActive:Symbol(),kNetConnect:Symbol(),kGetNetConnect:Symbol(),kConnected:Symbol()};}),tn("7SSeF",function(e,A){a(e.exports,"MockInterceptor",()=>t,e=>t=e);var t,r=nE("23wg0"),n=r.getResponseData,o=r.buildKey,i=r.addMockDispatch,s=nE("5cl5M"),l=s.kDispatches,c=s.kDispatchKey,E=s.kDefaultHeaders,g=s.kDefaultTrailers,u=s.kContentLength,h=s.kMockDispatch,Q=nE("ayJiG").InvalidArgumentError,C=nE("jksEw").buildURL;class I{constructor(e){this[h]=e;}delay(e){if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new Q("waitInMs must be a valid integer > 0");return this[h].delay=e,this;}persist(){return this[h].persist=!0,this;}times(e){if("number"!=typeof e||!Number.isInteger(e)||e<=0)throw new Q("repeatTimes must be a valid integer > 0");return this[h].times=e,this;}}t=class{constructor(e,A){if("object"!=typeof e)throw new Q("opts must be an object");if(void 0===e.path)throw new Q("opts.path must be defined");if(void 0===e.method&&(e.method="GET"),"string"==typeof e.path){if(e.query)e.path=C(e.path,e.query);else{let A=new URL(e.path,"data://");e.path=A.pathname+A.search;}}"string"==typeof e.method&&(e.method=e.method.toUpperCase()),this[c]=o(e),this[l]=A,this[E]={},this[g]={},this[u]=!1;}createMockScopeDispatchData(e,A,t={}){let r=n(A),o=this[u]?{"content-length":r.length}:{};return{statusCode:e,data:A,headers:{...this[E],...o,...t.headers},trailers:{...this[g],...t.trailers}};}validateReplyParameters(e,A,t){if(void 0===e)throw new Q("statusCode must be defined");if(void 0===A)throw new Q("data must be defined");if("object"!=typeof t)throw new Q("responseOptions must be an object");}reply(e){if("function"==typeof e)return new I(i(this[l],this[c],A=>{let t=e(A);if("object"!=typeof t)throw new Q("reply options callback must return an object");let{statusCode:r,data:n="",responseOptions:o={}}=t;return this.validateReplyParameters(r,n,o),{...this.createMockScopeDispatchData(r,n,o)};}));let[A,t="",r={}]=[...arguments];this.validateReplyParameters(A,t,r);let n=this.createMockScopeDispatchData(A,t,r);return new I(i(this[l],this[c],n));}replyWithError(e){if(void 0===e)throw new Q("error must be defined");return new I(i(this[l],this[c],{error:e}));}defaultReplyHeaders(e){if(void 0===e)throw new Q("headers must be defined");return this[E]=e,this;}defaultReplyTrailers(e){if(void 0===e)throw new Q("trailers must be defined");return this[g]=e,this;}replyContentLength(){return this[u]=!0,this;}};}),tn("jXCnf",function(e,A){var t=nE("eoU9M").kClients,r=nE("c0vcY"),n=nE("5cl5M"),o=n.kAgent,i=n.kMockAgentSet,s=n.kMockAgentGet,a=n.kDispatches,l=n.kIsMockActive,c=n.kNetConnect,E=n.kGetNetConnect,g=n.kOptions,u=n.kFactory,h=nE("1vOTv"),Q=nE("lqUE6"),C=nE("23wg0"),I=C.matchValue,B=C.buildMockOptions,d=nE("ayJiG"),f=d.InvalidArgumentError,p=d.UndiciError,y=nE("aqU6E"),m=nE("9U5KG"),w=nE("9GRph");class b{constructor(e){this.value=e;}deref(){return this.value;}}e.exports=class extends y{constructor(e){if(super(e),this[c]=!0,this[l]=!0,e&&e.agent&&"function"!=typeof e.agent.dispatch)throw new f("Argument opts.agent must implement Agent");let A=e&&e.agent?e.agent:new r(e);this[o]=A,this[t]=A[t],this[g]=B(e);}get(e){let A=this[s](e);return A||(A=this[u](e),this[i](e,A)),A;}dispatch(e,A){return this.get(e.origin),this[o].dispatch(e,A);}async close(){await this[o].close(),this[t].clear();}deactivate(){this[l]=!1;}activate(){this[l]=!0;}enableNetConnect(e){if("string"==typeof e||"function"==typeof e||e instanceof RegExp)Array.isArray(this[c])?this[c].push(e):this[c]=[e];else if(void 0===e)this[c]=!0;else throw new f("Unsupported matcher. Must be one of String|Function|RegExp.");}disableNetConnect(){this[c]=!1;}get isMockActive(){return this[l];}[i](e,A){this[t].set(e,new b(A));}[u](e){let A=Object.assign({agent:this},this[g]);return this[g]&&1===this[g].connections?new h(e,A):new Q(e,A);}[s](e){let A=this[t].get(e);if(A)return A.deref();if("string"!=typeof e){let A=this[u]("http://localhost:9999");return this[i](e,A),A;}for(let[A,r]of Array.from(this[t])){let t=r.deref();if(t&&"string"!=typeof A&&I(A,e)){let A=this[u](e);return this[i](e,A),A[a]=t[a],A;}}}[E](){return this[c];}pendingInterceptors(){return Array.from(this[t].entries()).flatMap(([e,A])=>A.deref()[a].map(A=>({...A,origin:e}))).filter(({pending:e})=>e);}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new w()}={}){let A=this.pendingInterceptors();if(0===A.length)return;let t=new m("interceptor","interceptors").pluralize(A.length);throw new p(` ${t.count} ${t.noun} ${t.is} pending: ${e.format(A)} `.trim());}};}),tn("lqUE6",function(e,A){var t=rj.promisify,r=nE("kOCfr"),n=nE("23wg0").buildMockDispatch,o=nE("5cl5M"),i=o.kDispatches,s=o.kMockAgent,a=o.kClose,l=o.kOriginalClose,c=o.kOrigin,E=o.kOriginalDispatch,g=o.kConnected,u=nE("7SSeF").MockInterceptor,h=nE("eoU9M"),Q=nE("ayJiG").InvalidArgumentError;class C extends r{constructor(e,A){if(super(e,A),!A||!A.agent||"function"!=typeof A.agent.dispatch)throw new Q("Argument opts.agent must implement Agent");this[s]=A.agent,this[c]=e,this[i]=[],this[g]=1,this[E]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[h.kConnected](){return this[g];}intercept(e){return new u(e,this[i]);}async[a](){await t(this[l])(),this[g]=0,this[s][h.kClients].delete(this[c]);}}e.exports=C;}),tn("9U5KG",function(e,A){let t={pronoun:"it",is:"is",was:"was",this:"this"},r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class{constructor(e,A){this.singular=e,this.plural=A;}pluralize(e){let A=1===e,n=A?this.singular:this.plural;return{...(A?t:r),count:e,noun:n};}};}),tn("9GRph",function(e,A){var t=rX.Transform,r=r9.Console;e.exports=class{constructor({disableColors:e}={}){this.transform=new t({transform(e,A,t){t(null,e);}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}});}format(e){let A=e.map(({method:e,path:A,data:{statusCode:t},persist:r,times:n,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:o,Remaining:r?1/0:n-o}));return this.logger.table(A),this.transform.read().toString();}};}),tn("5IibL",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h;function Q(e,A){return new l(e,A);}r=(t=nE("eoU9M")).kProxy,n=t.kClose,o=t.kDestroy,i=t.kInterceptors,s=r8.URL,a=nE("c0vcY"),l=nE("kOCfr"),c=nE("8Tdy2"),g=(E=nE("ayJiG")).InvalidArgumentError,u=E.RequestAbortedError,h=nE("ertK5");let C=Symbol(),I=Symbol(),B=Symbol(),d=Symbol(),f=Symbol(),p=Symbol();e.exports=class extends c{constructor(e){if(super(e),this[r]=function(e){if("string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new g("Proxy opts.uri is mandatory");return{uri:e.uri,protocol:e.protocol||"https"};}(e),this[C]=new a(e),this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],"string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new g("Proxy opts.uri is mandatory");let{clientFactory:A=Q}=e;if("function"!=typeof A)throw new g("Proxy opts.clientFactory must be a function.");this[d]=e.requestTls,this[f]=e.proxyTls,this[B]=e.headers||{};let t=new s(e.uri),{origin:n,port:o,host:l,username:c,password:E}=t;if(e.auth&&e.token)throw new g("opts.auth cannot be used in combination with opts.token");e.auth?this[B]["proxy-authorization"]="Basic "+e.auth:e.token?this[B]["proxy-authorization"]=e.token:c&&E&&(this[B]["proxy-authorization"]="Basic "+Buffer.from(`${decodeURIComponent(c)}:${decodeURIComponent(E)}`).toString("base64"));let y=h({...e.proxyTls});this[p]=h({...e.requestTls}),this[I]=A(t,{connect:y}),this[C]=new a({...e,connect:async(e,A)=>{let t=e.host;!e.port&&(t+=":"+("https:"===e.protocol?443:80));try{let r;let{socket:i,statusCode:s}=await this[I].connect({origin:n,port:o,path:t,signal:e.signal,headers:{...this[B],host:l}});if(200!==s&&(i.on("error",()=>{}).destroy(),A(new u(`Proxy response (${s}) !== 200 when HTTP Tunneling`))),"https:"!==e.protocol){A(null,i);return;}r=this[d]?this[d].servername:e.servername,this[p]({...e,servername:r,httpSocket:i},A);}catch(e){A(e);}}});}dispatch(e,A){let{host:t}=new s(e.origin),r=function(e){if(Array.isArray(e)){let A={};for(let t=0;t"proxy-authorization"===e.toLowerCase()))throw new g("Proxy-Authorization should be sent in ProxyAgent constructor");}(r),this[C].dispatch({...e,headers:{...r,host:t}},A);}async[n](){await this[C].close(),await this[I].close();}async[o](){await this[C].destroy(),await this[I].destroy();}};}),tn("dBMXf",function(e,A){var t=nE("eoU9M").kRetryHandlerDefaultRetry,r=nE("ayJiG").RequestRetryError,n=nE("jksEw"),o=n.isDisturbed,i=n.parseHeaders,s=n.parseRangeHeader;class a{constructor(e,A){let{retryOptions:r,...n}=e,{retry:o,maxRetries:i,maxTimeout:s,minTimeout:l,timeoutFactor:c,methods:E,errorCodes:g,retryAfter:u,statusCodes:h}=null!=r?r:{};this.dispatch=A.dispatch,this.handler=A.handler,this.opts=n,this.abort=null,this.aborted=!1,this.retryOpts={retry:null!=o?o:a[t],retryAfter:null==u||u,maxTimeout:null!=s?s:3e4,timeout:null!=l?l:500,timeoutFactor:null!=c?c:2,maxRetries:null!=i?i:5,methods:null!=E?E:["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:null!=h?h:[500,502,503,504,429],errorCodes:null!=g?g:["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE"]},this.retryCount=0,this.start=0,this.end=null,this.etag=null,this.resume=null,this.handler.onConnect(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e;});}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent();}onUpgrade(e,A,t){this.handler.onUpgrade&&this.handler.onUpgrade(e,A,t);}onConnect(e){this.aborted?e(this.reason):this.abort=e;}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e);}static[t](e,{state:A,opts:t},r){let{statusCode:n,code:o,headers:i}=e,{method:s,retryOptions:a}=t,{maxRetries:l,timeout:c,maxTimeout:E,timeoutFactor:g,statusCodes:u,errorCodes:h,methods:Q}=a,{counter:C,currentTimeout:I}=A;if(I=null!=I&&I>0?I:c,o&&"UND_ERR_REQ_RETRY"!==o&&"UND_ERR_SOCKET"!==o&&!h.includes(o)||Array.isArray(Q)&&!Q.includes(s)||null!=n&&Array.isArray(u)&&!u.includes(n)||C>l){r(e);return;}let B=null!=i&&i["retry-after"];B&&(B=isNaN(B=+B)?function(e){let A=Date.now();return new Date(e).getTime()-A;}(B):1e3*B);let d=B>0?Math.min(B,E):Math.min(I*g**C,E);A.currentTimeout=d,setTimeout(()=>r(null),d);}onHeaders(e,A,t,n){let o=i(A);if(this.retryCount+=1,e>=300)return this.abort(new r("Request failed",e,{headers:o,count:this.retryCount})),!1;if(null!=this.resume){if(this.resume=null,206!==e)return!0;let A=s(o["content-range"]);if(!A)return this.abort(new r("Content-Range mismatch",e,{headers:o,count:this.retryCount})),!1;if(null!=this.etag&&this.etag!==o.etag)return this.abort(new r("ETag mismatch",e,{headers:o,count:this.retryCount})),!1;let{start:n,size:i,end:a=i}=A;return rW(this.start===n,"content-range mismatch"),rW(null==this.end||this.end===a,"content-range mismatch"),this.resume=t,!0;}if(null==this.end){if(206===e){let r=s(o["content-range"]);if(null==r)return this.handler.onHeaders(e,A,t,n);let{start:i,size:a,end:l=a}=r;rW(null!=i&&Number.isFinite(i)&&this.start!==i,"content-range mismatch"),rW(Number.isFinite(i)),rW(null!=l&&Number.isFinite(l)&&this.end!==l,"invalid content-length"),this.start=i,this.end=l;}if(null==this.end){let e=o["content-length"];this.end=null!=e?+e:null;}return rW(Number.isFinite(this.start)),rW(null==this.end||Number.isFinite(this.end),"invalid content-length"),this.resume=t,this.etag=null!=o.etag?o.etag:null,this.handler.onHeaders(e,A,t,n);}let a=new r("Request failed",e,{headers:o,count:this.retryCount});return this.abort(a),!1;}onData(e){return this.start+=e.length,this.handler.onData(e);}onComplete(e){return this.retryCount=0,this.handler.onComplete(e);}onError(e){if(this.aborted||o(this.opts.body))return this.handler.onError(e);this.retryOpts.retry(e,{state:{counter:this.retryCount++,currentTimeout:this.retryAfter},opts:{retryOptions:this.retryOpts,...this.opts}},function(e){var A;if(null!=e||this.aborted||o(this.opts.body))return this.handler.onError(e);0!==this.start&&(this.opts={...this.opts,headers:{...this.opts.headers,range:`bytes=${this.start}-${null!==(A=this.end)&&void 0!==A?A:""}`}});try{this.dispatch(this.opts,this);}catch(e){this.handler.onError(e);}}.bind(this));}}e.exports=a;}),tn("d0hJ7",function(e,A){var t,r;function n(e){if(!e||"function"!=typeof e.dispatch)throw new t("Argument agent must implement Agent");Object.defineProperty(globalThis,i,{value:e,writable:!0,enumerable:!1,configurable:!1});}function o(){return globalThis[i];}let i=Symbol.for("undici.globalDispatcher.1");t=nE("ayJiG").InvalidArgumentError,r=nE("c0vcY"),void 0===o()&&n(new r()),e.exports={setGlobalDispatcher:n,getGlobalDispatcher:o};}),tn("kP9Wh",function(e,A){e.exports=class{constructor(e){this.handler=e;}onConnect(...e){return this.handler.onConnect(...e);}onError(...e){return this.handler.onError(...e);}onUpgrade(...e){return this.handler.onUpgrade(...e);}onHeaders(...e){return this.handler.onHeaders(...e);}onData(...e){return this.handler.onData(...e);}onComplete(...e){return this.handler.onComplete(...e);}onBodySent(...e){return this.handler.onBodySent(...e);}};}),tn("1iqfu",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,B,d,f,p,y,m,w,b,R,D,S,k,v,N,F,L,U,T,M,x,_,G,O,Y,J,H,P,V,q,W,j,X,$,z,Z,K,ee,eA,et,er,en,eo,ei,es,ea,el,ec,eE,eg,eu,eh,eQ;let eC;function eI(e,A="other"){var t,r,n,o,i,s;if("error"===e.type&&e.aborted||!(null===(t=e.urlList)||void 0===t?void 0:t.length))return;let a=e.urlList[0],l=e.timingInfo,c=e.cacheState;if(G(a)){null!==l&&(e.timingAllowPassed||(l=m({startTime:l.startTime}),c=""),l.endTime=S(),e.timingInfo=l,r=l,n=a,o=A,i=globalThis,s=c,(es>18||18===es&&ea>=2)&&performance.markResourceTiming(r,n.href,o,i,s));}}function eB(e,A,t,r){var n,o;if(r||(r=new K("The operation was aborted.","AbortError")),e.reject(r),null!=A.body&&ei(null===(n=A.body)||void 0===n?void 0:n.stream)&&A.body.stream.cancel(r).catch(e=>{if("ERR_INVALID_STATE"!==e.code)throw e;}),null==t)return;let i=t[J];null!=i.body&&ei(null===(o=i.body)||void 0===o?void 0:o.stream)&&i.body.stream.cancel(r).catch(e=>{if("ERR_INVALID_STATE"!==e.code)throw e;});}function ed({request:e,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:n,processResponseConsumeBody:o,useParallelQueue:i=!1,dispatcher:s}){var a,l,c,E;let g=null,u=!1;null!=e.client&&(g=e.client.globalObject,u=e.client.crossOriginIsolatedCapability);let C=S(u),I=m({startTime:C}),B={controller:new eS(s),request:e,timingInfo:I,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:o,processResponseEndOfBody:n,taskDestination:g,crossOriginIsolatedCapability:u};return rW(!e.body||e.body.stream),"client"===e.window&&(e.window=(null===(c=e.client)||void 0===c?void 0:null===(l=c.globalObject)||void 0===l?void 0:null===(a=l.constructor)||void 0===a?void 0:a.name)==="Window"?e.client:"no-window"),"client"===e.origin&&(e.origin=null===(E=e.client)||void 0===E?void 0:E.origin),"client"===e.policyContainer&&(null!=e.client?e.policyContainer=Q(e.client.policyContainer):e.policyContainer=h()),e.headersList.contains("accept")||e.headersList.append("accept","*/*"),e.headersList.contains("accept-language")||e.headersList.append("accept-language","*"),e.priority,Z.has(e.destination),ef(B).catch(e=>{B.controller.terminate(e);}),B.controller;}async function ef(e,A=!1){let t=e.request,r=null;if(t.localURLsOnly&&!_(f(t))&&(r=n("local URLs only")),y(t),"blocked"===C(t)&&(r=n("bad port")),""===t.referrerPolicy&&(t.referrerPolicy=t.policyContainer.referrerPolicy),"no-referrer"!==t.referrer&&(t.referrer=D(t)),null===r&&(r=await(async()=>{let A=f(t);return N(A,t.url)&&"basic"===t.responseTainting||"data:"===A.protocol||"navigate"===t.mode||"websocket"===t.mode?(t.responseTainting="basic",await ep(e)):"same-origin"===t.mode?n('request mode cannot be "same-origin"'):"no-cors"===t.mode?"follow"!==t.redirect?n('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await ep(e)):G(f(t))?(t.responseTainting="cors",await em(e)):n("URL scheme must be a HTTP(S) scheme");})()),A)return r;0===r.status||r.internalResponse||(t.responseTainting,"basic"===t.responseTainting?r=i(r,"basic"):"cors"===t.responseTainting?r=i(r,"cors"):"opaque"===t.responseTainting?r=i(r,"opaque"):rW(!1));let o=0===r.status?r:r.internalResponse;if(0===o.urlList.length&&o.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),"opaque"===r.type&&206===o.status&&o.rangeRequested&&!t.headers.contains("range")&&(r=o=n()),0!==r.status&&("HEAD"===t.method||"CONNECT"===t.method||X.includes(o.status))&&(o.body=null,e.controller.dump=!0),t.integrity){let A=A=>ey(e,n(A));if("opaque"===t.responseTainting||null==r.body){A(r.error);return;}await T(r.body,n=>{if(!u(n,t.integrity)){A("integrity mismatch");return;}r.body=q(n)[0],ey(e,r);},A);}else ey(e,r);}function ep(e){if(F(e)&&0===e.request.redirectCount)return Promise.resolve(o(e));let{request:A}=e,{protocol:t}=f(A);switch(t){case"about:":return Promise.resolve(n("about scheme is not supported"));case"blob:":{var r;eC||(eC=r$.resolveObjectURL);let e=f(A);if(0!==e.search.length)return Promise.resolve(n("NetworkError when attempting to fetch resource."));let t=eC(e.toString());if("GET"!==A.method||!v(t))return Promise.resolve(n("invalid method"));let o=q(t),i=o[0],a=x(""+i.length),l=null!==(r=o[1])&&void 0!==r?r:"",c=s({statusText:"OK",headersList:[["content-length",{name:"Content-Length",value:a}],["content-type",{name:"Content-Type",value:l}]]});return c.body=i,Promise.resolve(c);}case"data:":{let e=f(A),t=ec(e);if("failure"===t)return Promise.resolve(n("failed to fetch the data URL"));let r=eE(t.mimeType);return Promise.resolve(s({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:r}]],body:q(t.body)[0]}));}case"file:":return Promise.resolve(n("not implemented... yet..."));case"http:":case"https:":return em(e).catch(e=>n(e));default:return Promise.resolve(n("unknown scheme"));}}function ey(e,A){"error"===A.type&&(A.urlList=[e.request.urlList[0]],A.timingInfo=m({startTime:e.timingInfo.startTime}));let t=()=>{e.request.done=!0,null!=e.processResponseEndOfBody&&queueMicrotask(()=>e.processResponseEndOfBody(A));};if(null!=e.processResponse&&queueMicrotask(()=>e.processResponse(A)),null==A.body)t();else{let e=new eg({start(){},transform(e,A){A.enqueue(e);},flush:t},{size:()=>1},{size:()=>1});A.body={stream:A.body.stream.pipeThrough(e)};}if(null!=e.processResponseConsumeBody){let t=t=>e.processResponseConsumeBody(A,t);return null!=A.body?T(A.body,t,t=>e.processResponseConsumeBody(A,t)):(queueMicrotask(()=>t(null)),Promise.resolve());}}async function em(e){let A=e.request,t=null,r=null,o=e.timingInfo;if(A.serviceWorkers,null===t){if("follow"===A.redirect&&(A.serviceWorkers="none"),r=t=await ew(e),"cors"===A.responseTainting&&"failure"===b(A,t))return n("cors failure");"failure"===I(A,t)&&(A.timingAllowFailed=!0);}return("opaque"===A.responseTainting||"opaque"===t.type)&&"blocked"===R(A.origin,A.client,A.destination,r)?n("blocked"):(j.has(r.status)&&("manual"!==A.redirect&&e.controller.connection.destroy(),"error"===A.redirect?t=n("unexpected redirect"):"manual"===A.redirect?t=r:"follow"===A.redirect?t=await function(e,A){let t;let r=e.request,o=A.internalResponse?A.internalResponse:A;try{if(t=d(o,f(r).hash),null==t)return A;}catch(e){return Promise.resolve(n(e));}if(!G(t))return Promise.resolve(n("URL scheme must be a HTTP(S) scheme"));if(20===r.redirectCount)return Promise.resolve(n("redirect count exceeded"));if(r.redirectCount+=1,"cors"===r.mode&&(t.username||t.password)&&!N(r,t))return Promise.resolve(n('cross origin not allowed for request mode "cors"'));if("cors"===r.responseTainting&&(t.username||t.password))return Promise.resolve(n('URL cannot contain credentials for request mode "cors"'));if(303!==o.status&&null!=r.body&&null==r.body.source)return Promise.resolve(n());if([301,302].includes(o.status)&&"POST"===r.method||303===o.status&&!eR.includes(r.method))for(let e of(r.method="GET",r.body=null,z))r.headersList.delete(e);N(f(r),t)||(r.headersList.delete("authorization"),r.headersList.delete("proxy-authorization",!0),r.headersList.delete("cookie"),r.headersList.delete("host")),null!=r.body&&(rW(null!=r.body.source),r.body=q(r.body.source)[0]);let i=e.timingInfo;return i.redirectEndTime=i.postRedirectStartTime=S(e.crossOriginIsolatedCapability),0===i.redirectStartTime&&(i.redirectStartTime=i.startTime),r.urlList.push(t),p(r,o),ef(e,!0);}(e,t):rW(!1)),t.timingInfo=o,t);}async function ew(e,A=!1,t=!1){let r=e.request,i=null,s=null,a=null;"no-window"===r.window&&"error"===r.redirect?(i=e,s=r):(s=E(r),(i={...e}).request=s);let l="include"===r.credentials||"same-origin"===r.credentials&&"basic"===r.responseTainting,c=s.body?s.body.length:null,g=null;if(null==s.body&&["POST","PUT"].includes(s.method)&&(g="0"),null!=c&&(g=x(""+c)),null!=g&&s.headersList.append("content-length",g),null!=c&&s.keepalive,s.referrer instanceof URL&&s.headersList.append("referer",x(s.referrer.href)),B(s),w(s),s.headersList.contains("user-agent")||s.headersList.append("user-agent","undefined"==typeof esbuildDetection?"undici":"node"),"default"===s.cache&&(s.headersList.contains("if-modified-since")||s.headersList.contains("if-none-match")||s.headersList.contains("if-unmodified-since")||s.headersList.contains("if-match")||s.headersList.contains("if-range"))&&(s.cache="no-store"),"no-cache"!==s.cache||s.preventNoCacheCacheControlHeaderModification||s.headersList.contains("cache-control")||s.headersList.append("cache-control","max-age=0"),"no-store"!==s.cache&&"reload"!==s.cache||(s.headersList.contains("pragma")||s.headersList.append("pragma","no-cache"),s.headersList.contains("cache-control")||s.headersList.append("cache-control","no-cache")),s.headersList.contains("range")&&s.headersList.append("accept-encoding","identity"),s.headersList.contains("accept-encoding")||(O(f(s))?s.headersList.append("accept-encoding","br, gzip, deflate"):s.headersList.append("accept-encoding","gzip, deflate")),s.headersList.delete("host"),s.cache="no-store","no-store"!==s.mode&&s.mode,null==a){if("only-if-cached"===s.mode)return n("only if cached");let e=await eb(i,l,t);!$.has(s.method)&&e.status>=200&&e.status,null==a&&(a=e);}if(a.urlList=[...s.urlList],s.headersList.contains("range")&&(a.rangeRequested=!0),a.requestIncludesCredentials=l,407===a.status)return"no-window"===r.window?n():F(e)?o(e):n("proxy authentication required");if(421===a.status&&!t&&(null==r.body||null!=r.body.source)){if(F(e))return o(e);e.controller.connection.destroy(),a=await ew(e,A,!0);}return a;}async function eb(e,A=!1,t=!1){async function r({body:A}){let t=f(i),r=e.controller.dispatcher;return new Promise((n,o)=>r.dispatch({path:t.pathname+t.search,origin:t.origin,method:i.method,body:e.controller.dispatcher.isMockActive?i.body&&(i.body.source||i.body.stream):A,headers:i.headersList.entries,maxRedirections:0,upgrade:"websocket"===i.mode?"websocket":void 0},{body:null,abort:null,onConnect(A){let{connection:t}=e.controller;t.destroyed?A(new K("The operation was aborted.","AbortError")):(e.controller.on("terminated",A),this.abort=t.abort=A);},onHeaders(e,A,t,r){if(e<200)return;let o=[],s="",l=new a();if(Array.isArray(A))for(let e=0;ee.trim()):"location"===t.toLowerCase()&&(s=r),l[ee].append(t,r);}else for(let e of Object.keys(A)){let t=A[e];"content-encoding"===e.toLowerCase()?o=t.toLowerCase().split(",").map(e=>e.trim()).reverse():"location"===e.toLowerCase()&&(s=t),l[ee].append(e,t);}this.body=new eA({read:t});let c=[],E="follow"===i.redirect&&s&&j.has(e);if("HEAD"!==i.method&&"CONNECT"!==i.method&&!X.includes(e)&&!E)for(let e of o)if("x-gzip"===e||"gzip"===e)c.push(r3.createGunzip({flush:r3.constants.Z_SYNC_FLUSH,finishFlush:r3.constants.Z_SYNC_FLUSH}));else if("deflate"===e)c.push(r3.createInflate());else if("br"===e)c.push(r3.createBrotliDecompress());else{c.length=0;break;}return n({status:e,statusText:r,headersList:l[ee],body:c.length?et(this.body,...c,()=>{}):this.body.on("error",()=>{})}),!0;},onData(A){if(!e.controller.dump)return c.encodedBodySize+=A.byteLength,this.body.push(A);},onComplete(){this.abort&&e.controller.off("terminated",this.abort),e.controller.ended=!0,this.body.push(null);},onError(A){var t;this.abort&&e.controller.off("terminated",this.abort),null===(t=this.body)||void 0===t||t.destroy(A),e.controller.terminate(A),o(A);},onUpgrade(e,A,t){if(101!==e)return;let r=new a();for(let e=0;ee.processRequestEndOfBody());else if(null!=i.body){let A=async function*(A){var t;F(e)||(yield A,null===(t=e.processRequestBodyChunkLength)||void 0===t||t.call(e,A.byteLength));},t=()=>{!F(e)&&e.processRequestEndOfBody&&e.processRequestEndOfBody();},r=A=>{F(e)||("AbortError"===A.name?e.controller.abort():e.controller.terminate(A));};E=async function*(){try{for await(let e of i.body.stream)yield*A(e);t();}catch(e){r(e);}}();}try{let{body:A,status:t,statusText:n,headersList:o,socket:i}=await r({body:E});if(i)l=s({status:t,statusText:n,headersList:o,socket:i});else{let r=A[Symbol.asyncIterator]();e.controller.next=()=>r.next(),l=s({status:t,statusText:n,headersList:o});}}catch(A){if("AbortError"===A.name)return e.controller.connection.destroy(),o(e,A);return n(A);}let g=()=>{e.controller.resume();},u=A=>{e.controller.abort(A);};eD||(eD=nE("kJ4DQ").ReadableStream);let h=new eD({async start(A){e.controller.controller=A;},async pull(e){await g(e);},async cancel(e){await u(e);}},{highWaterMark:0,size:()=>1});return l.body={stream:h},e.controller.on("terminated",function(A){L(e)?(l.aborted=!0,ei(h)&&e.controller.controller.error(e.controller.serializedAbortReason)):ei(h)&&e.controller.controller.error(TypeError("terminated",{cause:U(A)?A:void 0})),e.controller.connection.destroy();}),e.controller.resume=async()=>{for(;;){var A;let t,r;try{let{done:A,value:r}=await e.controller.next();if(L(e))break;t=A?void 0:r;}catch(A){e.controller.ended&&!c.encodedBodySize?t=void 0:(t=A,r=!0);}if(void 0===t){M(e.controller.controller),function(e,A){e.request.done=!0,null!=e.processResponseDone&&queueMicrotask(()=>e.processResponseDone(A));}(e,l);return;}if(c.decodedBodySize+=null!==(A=null==t?void 0:t.byteLength)&&void 0!==A?A:0,r){e.controller.terminate(t);return;}if(e.controller.controller.enqueue(new Uint8Array(t)),eo(h)){e.controller.terminate();return;}if(!e.controller.controller.desiredSize)return;}},l;}r=(t=nE("apE6s")).Response,n=t.makeNetworkError,o=t.makeAppropriateNetworkError,i=t.filterResponse,s=t.makeResponse,a=nE("id7X2").Headers,c=(l=nE("7JXQn")).Request,E=l.makeRequest,u=(g=nE("3Ms3X")).bytesMatch,h=g.makePolicyContainer,Q=g.clonePolicyContainer,C=g.requestBadPort,I=g.TAOCheck,B=g.appendRequestOriginHeader,d=g.responseLocationURL,f=g.requestCurrentURL,p=g.setRequestReferrerPolicyOnRedirect,y=g.tryUpgradeRequestToAPotentiallyTrustworthyURL,m=g.createOpaqueTimingInfo,w=g.appendFetchMetadata,b=g.corsCheck,R=g.crossOriginResourcePolicyCheck,D=g.determineRequestsReferrer,S=g.coarsenedSharedCurrentTime,k=g.createDeferredPromise,v=g.isBlobLike,N=g.sameOrigin,F=g.isCancelled,L=g.isAborted,U=g.isErrorLike,T=g.fullyReadBody,M=g.readableStreamClose,x=g.isomorphicEncode,_=g.urlIsLocal,G=g.urlIsHttpHttpsScheme,O=g.urlHasHttpsScheme,J=(Y=nE("czloG")).kState,H=Y.kHeaders,P=Y.kGuard,V=Y.kRealm,q=nE("fOogJ").safelyExtractBody,j=(W=nE("cU8F4")).redirectStatusSet,X=W.nullBodyStatus,$=W.safeMethodsSet,z=W.requestBodyHeader,Z=W.subresourceSet,K=W.DOMException,ee=nE("eoU9M").kHeadersList,eA=rX.Readable,et=rX.pipeline,en=(er=nE("jksEw")).addAbortListener,eo=er.isErrored,ei=er.isReadable,es=er.nodeMajor,ea=er.nodeMinor,ec=(el=nE("9mEts")).dataURLProcessor,eE=el.serializeAMimeType,eg=nE("kJ4DQ").TransformStream,eu=nE("d0hJ7").getGlobalDispatcher,eh=nE("cvPqj").webidl,eQ=rJ.STATUS_CODES;let eR=["GET","HEAD"],eD=globalThis.ReadableStream;class eS extends rq{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state="ongoing",this.setMaxListeners(21);}terminate(e){var A;"ongoing"===this.state&&(this.state="terminated",null===(A=this.connection)||void 0===A||A.destroy(e),this.emit("terminated",e));}abort(e){var A;"ongoing"===this.state&&(this.state="aborted",e||(e=new K("The operation was aborted.","AbortError")),this.serializedAbortReason=e,null===(A=this.connection)||void 0===A||A.destroy(e),this.emit("terminated",e));}}e.exports={fetch:function(e,A={}){var t,n;let o;eh.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});let i=k();try{o=new c(e,A);}catch(e){return i.reject(e),i.promise;}let s=o[J];if(o.signal.aborted)return eB(i,s,null,o.signal.reason),i.promise;let a=s.client.globalObject;(null==a?void 0:null===(t=a.constructor)||void 0===t?void 0:t.name)==="ServiceWorkerGlobalScope"&&(s.serviceWorkers="none");let l=null,E=!1,g=null;return en(o.signal,()=>{E=!0,rW(null!=g),g.abort(o.signal.reason),eB(i,s,l,o.signal.reason);}),g=ed({request:s,processResponseEndOfBody:e=>eI(e,"fetch"),processResponse:e=>E?Promise.resolve():e.aborted?(eB(i,s,l,g.serializedAbortReason),Promise.resolve()):"error"===e.type?(i.reject(Object.assign(TypeError("fetch failed"),{cause:e.error})),Promise.resolve()):void((l=new r())[J]=e,l[V]=null,l[H][ee]=e.headersList,l[H][P]="immutable",l[H][V]=null,i.resolve(l)),dispatcher:null!==(n=A.dispatcher)&&void 0!==n?n:eu()}),i.promise;},Fetch:eS,fetching:ed,finalizeAndReportTiming:eI};}),tn("apE6s",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,B,d,f,p,y,m,w,b,R,D,S,k,v,N,F,L,U,T;function M(e){if(e.internalResponse)return O(M(e.internalResponse),e.type);let A=x({...e,body:null});return null!=e.body&&(A.body=a(e.body)),A;}function x(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e.headersList?new n(e.headersList):new n(),urlList:e.urlList?[...e.urlList]:[]};}function _(e){return x({type:"error",status:0,error:I(e)?e:Error(e?e+"":e),aborted:e&&"AbortError"===e.name});}function G(e,A){return A={internalResponse:e,...A},new Proxy(e,{get:(e,t)=>t in A?A[t]:e[t],set:(e,t,r)=>(rW(!(t in A)),e[t]=r,!0)});}function O(e,A){return"basic"===A?G(e,{type:"basic",headersList:e.headersList}):"cors"===A?G(e,{type:"cors",headersList:e.headersList}):"opaque"===A?G(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===A?G(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void rW(!1);}function Y(e,A,t){if(null!==A.status&&(A.status<200||A.status>599))throw RangeError('init["status"] must be in the range of 200 to 599, inclusive.');if("statusText"in A&&null!=A.statusText&&!g(A.statusText+""))throw TypeError("Invalid statusText");if("status"in A&&null!=A.status&&(e[w].status=A.status),"statusText"in A&&null!=A.statusText&&(e[w].statusText=A.statusText),"headers"in A&&null!=A.headers&&o(e[b],A.headers),t){if(p.includes(e.status))throw S.errors.exception({header:"Response constructor",message:"Invalid response status code "+e.status});e[w].body=t.body,null==t.type||e[w].headersList.contains("Content-Type")||e[w].headersList.append("content-type",t.type);}}r=(t=nE("id7X2")).Headers,n=t.HeadersList,o=t.fill,s=(i=nE("fOogJ")).extractBody,a=i.cloneBody,l=i.mixinBody;let{kEnumerableProperty:J}=c=nE("jksEw");g=(E=nE("3Ms3X")).isValidReasonPhrase,u=E.isCancelled,h=E.isAborted,Q=E.isBlobLike,C=E.serializeJavascriptValueToJSONString,I=E.isErrorLike,B=E.isomorphicEncode,f=(d=nE("cU8F4")).redirectStatusSet,p=d.nullBodyStatus,y=d.DOMException,w=(m=nE("czloG")).kState,b=m.kHeaders,R=m.kGuard,D=m.kRealm,S=nE("cvPqj").webidl,k=nE("dVNsr").FormData,v=nE("e3MDk").getGlobalOrigin,N=nE("9mEts").URLSerializer,L=(F=nE("eoU9M")).kHeadersList,U=F.kConstruct,T=rj.types;let H=globalThis.ReadableStream||nE("kJ4DQ").ReadableStream,P=new TextEncoder("utf-8");class V{static error(){let e={settingsObject:{}},A=new V();return A[w]=_(),A[D]=e,A[b][L]=A[w].headersList,A[b][R]="immutable",A[b][D]=e,A;}static json(e,A={}){S.argumentLengthCheck(arguments,1,{header:"Response.json"}),null!==A&&(A=S.converters.ResponseInit(A));let t=s(P.encode(C(e))),r={settingsObject:{}},n=new V();return n[D]=r,n[b][R]="response",n[b][D]=r,Y(n,A,{body:t[0],type:"application/json"}),n;}static redirect(e,A=302){let t;let r={settingsObject:{}};S.argumentLengthCheck(arguments,1,{header:"Response.redirect"}),e=S.converters.USVString(e),A=S.converters["unsigned short"](A);try{t=new URL(e,v());}catch(A){throw Object.assign(TypeError("Failed to parse URL from "+e),{cause:A});}if(!f.has(A))throw RangeError("Invalid status code "+A);let n=new V();n[D]=r,n[b][R]="immutable",n[b][D]=r,n[w].status=A;let o=B(N(t));return n[w].headersList.append("location",o),n;}constructor(e=null,A={}){null!==e&&(e=S.converters.BodyInit(e)),A=S.converters.ResponseInit(A),this[D]={settingsObject:{}},this[w]=x({}),this[b]=new r(U),this[b][R]="response",this[b][L]=this[w].headersList,this[b][D]=this[D];let t=null;if(null!=e){let[A,r]=s(e);t={body:A,type:r};}Y(this,A,t);}get type(){return S.brandCheck(this,V),this[w].type;}get url(){var e;S.brandCheck(this,V);let A=this[w].urlList,t=null!==(e=A[A.length-1])&&void 0!==e?e:null;return null===t?"":N(t,!0);}get redirected(){return S.brandCheck(this,V),this[w].urlList.length>1;}get status(){return S.brandCheck(this,V),this[w].status;}get ok(){return S.brandCheck(this,V),this[w].status>=200&&this[w].status<=299;}get statusText(){return S.brandCheck(this,V),this[w].statusText;}get headers(){return S.brandCheck(this,V),this[b];}get body(){return S.brandCheck(this,V),this[w].body?this[w].body.stream:null;}get bodyUsed(){return S.brandCheck(this,V),!!this[w].body&&c.isDisturbed(this[w].body.stream);}clone(){if(S.brandCheck(this,V),this.bodyUsed||this.body&&this.body.locked)throw S.errors.exception({header:"Response.clone",message:"Body has already been consumed."});let e=M(this[w]),A=new V();return A[w]=e,A[D]=this[D],A[b][L]=e.headersList,A[b][R]=this[b][R],A[b][D]=this[b][D],A;}}l(V),Object.defineProperties(V.prototype,{type:J,url:J,status:J,ok:J,redirected:J,statusText:J,headers:J,clone:J,body:J,bodyUsed:J,[Symbol.toStringTag]:{value:"Response",configurable:!0}}),Object.defineProperties(V,{json:J,redirect:J,error:J}),S.converters.ReadableStream=S.interfaceConverter(H),S.converters.FormData=S.interfaceConverter(k),S.converters.URLSearchParams=S.interfaceConverter(URLSearchParams),S.converters.XMLHttpRequestBodyInit=function(e){return"string"==typeof e?S.converters.USVString(e):Q(e)?S.converters.Blob(e,{strict:!1}):T.isArrayBuffer(e)||T.isTypedArray(e)||T.isDataView(e)?S.converters.BufferSource(e):c.isFormDataLike(e)?S.converters.FormData(e,{strict:!1}):e instanceof URLSearchParams?S.converters.URLSearchParams(e):S.converters.DOMString(e);},S.converters.BodyInit=function(e){return e instanceof H?S.converters.ReadableStream(e):(null==e?void 0:e[Symbol.asyncIterator])?e:S.converters.XMLHttpRequestBodyInit(e);},S.converters.ResponseInit=S.dictionaryConverter([{key:"status",converter:S.converters["unsigned short"],defaultValue:200},{key:"statusText",converter:S.converters.ByteString,defaultValue:""},{key:"headers",converter:S.converters.HeadersInit}]),e.exports={makeNetworkError:_,makeResponse:x,makeAppropriateNetworkError:function(e,A=null){return rW(u(e)),h(e)?_(Object.assign(new y("The operation was aborted.","AbortError"),{cause:A})):_(Object.assign(new y("Request was cancelled."),{cause:A}));},filterResponse:O,Response:V,cloneResponse:M};}),tn("id7X2",function(e,A){var t,r,n,o,i,s,a,l,c,E;function g(e){return 10===e||13===e||9===e||32===e;}function u(e){let A=0,t=e.length;for(;t>A&&g(e.charCodeAt(t-1));)--t;for(;t>A&&g(e.charCodeAt(A));)++A;return 0===A&&t===e.length?e:e.substring(A,t);}function h(e,A){if(Array.isArray(A))for(let t=0;t>","record"]});}function Q(e,A,t){if(t=u(t),l(A)){if(!c(t))throw E.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header value"});}else throw E.errors.invalidArgument({prefix:"Headers.append",value:A,type:"header name"});if("immutable"===e[o])throw TypeError("immutable");return e[o],e[r].append(A,t);}r=(t=nE("eoU9M")).kHeadersList,n=t.kConstruct,o=nE("czloG").kGuard,i=nE("jksEw").kEnumerableProperty,a=(s=nE("3Ms3X")).makeIterator,l=s.isValidHeaderName,c=s.isValidHeaderValue,E=nE("cvPqj").webidl;let C=Symbol(),I=Symbol();class B{cookies=null;constructor(e){e instanceof B?(this[C]=new Map(e[C]),this[I]=e[I],this.cookies=null===e.cookies?null:[...e.cookies]):(this[C]=new Map(e),this[I]=null);}contains(e){return e=e.toLowerCase(),this[C].has(e);}clear(){this[C].clear(),this[I]=null,this.cookies=null;}append(e,A){this[I]=null;let t=e.toLowerCase(),r=this[C].get(t);if(r){let e="cookie"===t?"; ":", ";this[C].set(t,{name:r.name,value:`${r.value}${e}${A}`});}else this[C].set(t,{name:e,value:A});if("set-cookie"===t){var n;null!==(n=this.cookies)&&void 0!==n||(this.cookies=[]),this.cookies.push(A);}}set(e,A){this[I]=null;let t=e.toLowerCase();"set-cookie"===t&&(this.cookies=[A]),this[C].set(t,{name:e,value:A});}delete(e){this[I]=null,"set-cookie"===(e=e.toLowerCase())&&(this.cookies=null),this[C].delete(e);}get(e){let A=this[C].get(e.toLowerCase());return void 0===A?null:A.value;}*[Symbol.iterator](){for(let[e,{value:A}]of this[C])yield[e,A];}get entries(){let e={};if(this[C].size)for(let{name:A,value:t}of this[C].values())e[A]=t;return e;}}class d{constructor(e){if(e===n)return;this[r]=new B(),this[o]="none",void 0!==e&&h(this,e=E.converters.HeadersInit(e));}append(e,A){return E.brandCheck(this,d),E.argumentLengthCheck(arguments,2,{header:"Headers.append"}),e=E.converters.ByteString(e),A=E.converters.ByteString(A),Q(this,e,A);}delete(e){if(E.brandCheck(this,d),E.argumentLengthCheck(arguments,1,{header:"Headers.delete"}),e=E.converters.ByteString(e),!l(e))throw E.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"});if("immutable"===this[o])throw TypeError("immutable");this[o],this[r].contains(e)&&this[r].delete(e);}get(e){if(E.brandCheck(this,d),E.argumentLengthCheck(arguments,1,{header:"Headers.get"}),e=E.converters.ByteString(e),!l(e))throw E.errors.invalidArgument({prefix:"Headers.get",value:e,type:"header name"});return this[r].get(e);}has(e){if(E.brandCheck(this,d),E.argumentLengthCheck(arguments,1,{header:"Headers.has"}),e=E.converters.ByteString(e),!l(e))throw E.errors.invalidArgument({prefix:"Headers.has",value:e,type:"header name"});return this[r].contains(e);}set(e,A){if(E.brandCheck(this,d),E.argumentLengthCheck(arguments,2,{header:"Headers.set"}),e=E.converters.ByteString(e),A=u(A=E.converters.ByteString(A)),l(e)){if(!c(A))throw E.errors.invalidArgument({prefix:"Headers.set",value:A,type:"header value"});}else throw E.errors.invalidArgument({prefix:"Headers.set",value:e,type:"header name"});if("immutable"===this[o])throw TypeError("immutable");this[o],this[r].set(e,A);}getSetCookie(){E.brandCheck(this,d);let e=this[r].cookies;return e?[...e]:[];}get[I](){if(this[r][I])return this[r][I];let e=[],A=[...this[r]].sort((e,A)=>e[0]e,"Headers","key");}return a(()=>[...this[I].values()],"Headers","key");}values(){if(E.brandCheck(this,d),"immutable"===this[o]){let e=this[I];return a(()=>e,"Headers","value");}return a(()=>[...this[I].values()],"Headers","value");}entries(){if(E.brandCheck(this,d),"immutable"===this[o]){let e=this[I];return a(()=>e,"Headers","key+value");}return a(()=>[...this[I].values()],"Headers","key+value");}forEach(e,A=globalThis){if(E.brandCheck(this,d),E.argumentLengthCheck(arguments,1,{header:"Headers.forEach"}),"function"!=typeof e)throw TypeError("Failed to execute 'forEach' on 'Headers': parameter 1 is not of type 'Function'.");for(let[t,r]of this)e.apply(A,[r,t,this]);}[Symbol.for("nodejs.util.inspect.custom")](){return E.brandCheck(this,d),this[r];}}d.prototype[Symbol.iterator]=d.prototype.entries,Object.defineProperties(d.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,keys:i,values:i,entries:i,forEach:i,[Symbol.iterator]:{enumerable:!1},[Symbol.toStringTag]:{value:"Headers",configurable:!0}}),E.converters.HeadersInit=function(e){if("Object"===E.util.Type(e))return e[Symbol.iterator]?E.converters["sequence>"](e):E.converters["record"](e);throw E.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]});},e.exports={fill:h,Headers:d,HeadersList:B};}),tn("7JXQn",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,B,d,f,p,y,m,w,b,R,D,S,k,v,N,F,L,U,T,M,x,_,G,O,Y;function J(e){let A={method:"GET",localURLsOnly:!1,unsafeRequest:!1,body:null,client:null,reservedClient:null,replacesClientId:"",window:"client",keepalive:!1,serviceWorkers:"all",initiator:"",destination:"",priority:null,origin:"client",policyContainer:"client",referrer:"client",referrerPolicy:"",mode:"no-cors",useCORSPreflightFlag:!1,credentials:"same-origin",useCredentials:!1,cache:"default",redirect:"follow",integrity:"",cryptoGraphicsNonceMetadata:"",parserMetadata:"",reloadNavigation:!1,historyNavigation:!1,userActivation:!1,taintedOrigin:!1,redirectCount:0,responseTainting:"basic",preventNoCacheCacheControlHeaderModification:!1,done:!1,timingAllowFailed:!1,...e,headersList:e.headersList?new l(e.headersList):new l()};return A.url=A.urlList[0],A;}r=(t=nE("fOogJ")).extractBody,n=t.mixinBody,o=t.cloneBody,s=(i=nE("id7X2")).Headers,a=i.fill,l=i.HeadersList;let{FinalizationRegistry:H}=nE("zN1di")();c=nE("jksEw"),g=(E=nE("3Ms3X")).isValidHTTPToken,u=E.sameOrigin,h=E.normalizeMethod,Q=E.makePolicyContainer,C=E.normalizeMethodRecord,B=(I=nE("cU8F4")).forbiddenMethodsSet,d=I.corsSafeListedMethodsSet,f=I.referrerPolicy,p=I.requestRedirect,y=I.requestMode,m=I.requestCredentials,w=I.requestCache,b=I.requestDuplex;let{kEnumerableProperty:P}=c;D=(R=nE("czloG")).kHeaders,S=R.kSignal,k=R.kState,v=R.kGuard,N=R.kRealm,F=nE("cvPqj").webidl,L=nE("e3MDk").getGlobalOrigin,U=nE("9mEts").URLSerializer,M=(T=nE("eoU9M")).kHeadersList,x=T.kConstruct,_=rq.getMaxListeners,G=rq.setMaxListeners,O=rq.getEventListeners,Y=rq.defaultMaxListeners;let V=globalThis.TransformStream,q=Symbol(),W=new H(({signal:e,abort:A})=>{e.removeEventListener("abort",A);});class j{constructor(e,A={}){var t,n,o;let i;if(e===x)return;F.argumentLengthCheck(arguments,1,{header:"Request constructor"}),e=F.converters.RequestInfo(e),A=F.converters.RequestInit(A),this[N]={settingsObject:{baseUrl:L(),get origin(){var E;return null===(E=this.baseUrl)||void 0===E?void 0:E.origin;},policyContainer:Q()}};let I=null,f=null,p=this[N].settingsObject.baseUrl,y=null;if("string"==typeof e){let A;try{A=new URL(e,p);}catch(A){throw TypeError("Failed to parse URL from "+e,{cause:A});}if(A.username||A.password)throw TypeError("Request cannot be constructed from a URL that includes credentials: "+e);I=J({urlList:[A]}),f="cors";}else rW(e instanceof j),I=e[k],y=e[S];let m=this[N].settingsObject.origin,w="client";if((null===(n=I.window)||void 0===n?void 0:null===(t=n.constructor)||void 0===t?void 0:t.name)==="EnvironmentSettingsObject"&&u(I.window,m)&&(w=I.window),null!=A.window)throw TypeError(`'window' option '${w}' must be null`);"window"in A&&(w="no-window"),I=J({method:I.method,headersList:I.headersList,unsafeRequest:I.unsafeRequest,client:this[N].settingsObject,window:w,priority:I.priority,origin:I.origin,referrer:I.referrer,referrerPolicy:I.referrerPolicy,mode:I.mode,credentials:I.credentials,cache:I.cache,redirect:I.redirect,integrity:I.integrity,keepalive:I.keepalive,reloadNavigation:I.reloadNavigation,historyNavigation:I.historyNavigation,urlList:[...I.urlList]});let b=0!==Object.keys(A).length;if(b&&("navigate"===I.mode&&(I.mode="same-origin"),I.reloadNavigation=!1,I.historyNavigation=!1,I.origin="client",I.referrer="client",I.referrerPolicy="",I.url=I.urlList[I.urlList.length-1],I.urlList=[I.url]),void 0!==A.referrer){let e=A.referrer;if(""===e)I.referrer="no-referrer";else{let A;try{A=new URL(e,p);}catch(A){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:A});}"about:"===A.protocol&&"client"===A.hostname||m&&!u(A,this[N].settingsObject.baseUrl)?I.referrer="client":I.referrer=A;}}if(void 0!==A.referrerPolicy&&(I.referrerPolicy=A.referrerPolicy),"navigate"===(i=void 0!==A.mode?A.mode:f))throw F.errors.exception({header:"Request constructor",message:"invalid request mode navigate."});if(null!=i&&(I.mode=i),void 0!==A.credentials&&(I.credentials=A.credentials),void 0!==A.cache&&(I.cache=A.cache),"only-if-cached"===I.cache&&"same-origin"!==I.mode)throw TypeError("'only-if-cached' can be set only with 'same-origin' mode");if(void 0!==A.redirect&&(I.redirect=A.redirect),null!=A.integrity&&(I.integrity=A.integrity+""),void 0!==A.keepalive&&(I.keepalive=!!A.keepalive),void 0!==A.method){let e=A.method;if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);if(B.has(e.toUpperCase()))throw TypeError(`'${e}' HTTP method is unsupported.`);e=null!==(o=C[e])&&void 0!==o?o:h(e),I.method=e;}void 0!==A.signal&&(y=A.signal),this[k]=I;let R=new AbortController();if(this[S]=R.signal,this[S][N]=this[N],null!=y){if(!y||"boolean"!=typeof y.aborted||"function"!=typeof y.addEventListener)throw TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.");if(y.aborted)R.abort(y.reason);else{this[q]=R;let e=new WeakRef(R),A=function(){let A=e.deref();void 0!==A&&A.abort(this.reason);};try{"function"==typeof _&&_(y)===Y?G(100,y):O(y,"abort").length>=Y&&G(100,y);}catch{}c.addAbortListener(y,A),W.register(R,{signal:y,abort:A});}}if(this[D]=new s(x),this[D][M]=I.headersList,this[D][v]="request",this[D][N]=this[N],"no-cors"===i){if(!d.has(I.method))throw TypeError(`'${I.method} is unsupported in no-cors mode.`);this[D][v]="request-no-cors";}if(b){let e=this[D][M],t=void 0!==A.headers?A.headers:new l(e);if(e.clear(),t instanceof l){for(let[A,r]of t)e.append(A,r);e.cookies=t.cookies;}else a(this[D],t);}let U=e instanceof j?e[k].body:null;if((null!=A.body||null!=U)&&("GET"===I.method||"HEAD"===I.method))throw TypeError("Request with GET/HEAD method cannot have body.");let T=null;if(null!=A.body){let[e,t]=r(A.body,I.keepalive);T=e,t&&!this[D][M].contains("content-type")&&this[D].append("content-type",t);}let H=null!=T?T:U;if(null!=H&&null==H.source){if(null!=T&&null==A.duplex)throw TypeError("RequestInit: duplex option is required when sending a body.");if("same-origin"!==I.mode&&"cors"!==I.mode)throw TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"');I.useCORSPreflightFlag=!0;}let P=H;if(null==T&&null!=U){if(c.isDisturbed(U.stream)||U.stream.locked)throw TypeError("Cannot construct a Request with a Request object that has already been used.");V||(V=nE("kJ4DQ").TransformStream);let e=new V();U.stream.pipeThrough(e),P={source:U.source,length:U.length,stream:e.readable};}this[k].body=P;}get method(){return F.brandCheck(this,j),this[k].method;}get url(){return F.brandCheck(this,j),U(this[k].url);}get headers(){return F.brandCheck(this,j),this[D];}get destination(){return F.brandCheck(this,j),this[k].destination;}get referrer(){return(F.brandCheck(this,j),"no-referrer"===this[k].referrer)?"":"client"===this[k].referrer?"about:client":this[k].referrer.toString();}get referrerPolicy(){return F.brandCheck(this,j),this[k].referrerPolicy;}get mode(){return F.brandCheck(this,j),this[k].mode;}get credentials(){return this[k].credentials;}get cache(){return F.brandCheck(this,j),this[k].cache;}get redirect(){return F.brandCheck(this,j),this[k].redirect;}get integrity(){return F.brandCheck(this,j),this[k].integrity;}get keepalive(){return F.brandCheck(this,j),this[k].keepalive;}get isReloadNavigation(){return F.brandCheck(this,j),this[k].reloadNavigation;}get isHistoryNavigation(){return F.brandCheck(this,j),this[k].historyNavigation;}get signal(){return F.brandCheck(this,j),this[S];}get body(){return F.brandCheck(this,j),this[k].body?this[k].body.stream:null;}get bodyUsed(){return F.brandCheck(this,j),!!this[k].body&&c.isDisturbed(this[k].body.stream);}get duplex(){return F.brandCheck(this,j),"half";}clone(){var e;if(F.brandCheck(this,j),this.bodyUsed||(null===(e=this.body)||void 0===e?void 0:e.locked))throw TypeError("unusable");let A=function(e){let A=J({...e,body:null});return null!=e.body&&(A.body=o(e.body)),A;}(this[k]),t=new j(x);t[k]=A,t[N]=this[N],t[D]=new s(x),t[D][M]=A.headersList,t[D][v]=this[D][v],t[D][N]=this[D][N];let r=new AbortController();return this.signal.aborted?r.abort(this.signal.reason):c.addAbortListener(this.signal,()=>{r.abort(this.signal.reason);}),t[S]=r.signal,t;}}n(j),Object.defineProperties(j.prototype,{method:P,url:P,headers:P,redirect:P,clone:P,signal:P,duplex:P,destination:P,body:P,bodyUsed:P,isHistoryNavigation:P,isReloadNavigation:P,keepalive:P,integrity:P,cache:P,credentials:P,attribute:P,referrerPolicy:P,referrer:P,mode:P,[Symbol.toStringTag]:{value:"Request",configurable:!0}}),F.converters.Request=F.interfaceConverter(j),F.converters.RequestInfo=function(e){return"string"==typeof e?F.converters.USVString(e):e instanceof j?F.converters.Request(e):F.converters.USVString(e);},F.converters.AbortSignal=F.interfaceConverter(AbortSignal),F.converters.RequestInit=F.dictionaryConverter([{key:"method",converter:F.converters.ByteString},{key:"headers",converter:F.converters.HeadersInit},{key:"body",converter:F.nullableConverter(F.converters.BodyInit)},{key:"referrer",converter:F.converters.USVString},{key:"referrerPolicy",converter:F.converters.DOMString,allowedValues:f},{key:"mode",converter:F.converters.DOMString,allowedValues:y},{key:"credentials",converter:F.converters.DOMString,allowedValues:m},{key:"cache",converter:F.converters.DOMString,allowedValues:w},{key:"redirect",converter:F.converters.DOMString,allowedValues:p},{key:"integrity",converter:F.converters.DOMString},{key:"keepalive",converter:F.converters.boolean},{key:"signal",converter:F.nullableConverter(e=>F.converters.AbortSignal(e,{strict:!1}))},{key:"window",converter:F.converters.any},{key:"duplex",converter:F.converters.DOMString,allowedValues:b}]),e.exports={Request:j,makeRequest:J};}),tn("3wZ1B",function(e,A){var t=nE("bOzhO"),r=t.staticPropertyDescriptors,n=t.readOperation,o=t.fireAProgressEvent,i=nE("4fBcK"),s=i.kState,a=i.kError,l=i.kResult,c=i.kEvents,E=i.kAborted,g=nE("cvPqj").webidl,u=nE("jksEw").kEnumerableProperty;class h extends EventTarget{constructor(){super(),this[s]="empty",this[l]=null,this[a]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null};}readAsArrayBuffer(e){g.brandCheck(this,h),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsArrayBuffer"}),n(this,e=g.converters.Blob(e,{strict:!1}),"ArrayBuffer");}readAsBinaryString(e){g.brandCheck(this,h),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),n(this,e=g.converters.Blob(e,{strict:!1}),"BinaryString");}readAsText(e,A){g.brandCheck(this,h),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsText"}),e=g.converters.Blob(e,{strict:!1}),void 0!==A&&(A=g.converters.DOMString(A)),n(this,e,"Text",A);}readAsDataURL(e){g.brandCheck(this,h),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),n(this,e=g.converters.Blob(e,{strict:!1}),"DataURL");}abort(){if("empty"===this[s]||"done"===this[s]){this[l]=null;return;}"loading"===this[s]&&(this[s]="done",this[l]=null),this[E]=!0,o("abort",this),"loading"!==this[s]&&o("loadend",this);}get readyState(){switch(g.brandCheck(this,h),this[s]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE;}}get result(){return g.brandCheck(this,h),this[l];}get error(){return g.brandCheck(this,h),this[a];}get onloadend(){return g.brandCheck(this,h),this[c].loadend;}set onloadend(e){g.brandCheck(this,h),this[c].loadend&&this.removeEventListener("loadend",this[c].loadend),"function"==typeof e?(this[c].loadend=e,this.addEventListener("loadend",e)):this[c].loadend=null;}get onerror(){return g.brandCheck(this,h),this[c].error;}set onerror(e){g.brandCheck(this,h),this[c].error&&this.removeEventListener("error",this[c].error),"function"==typeof e?(this[c].error=e,this.addEventListener("error",e)):this[c].error=null;}get onloadstart(){return g.brandCheck(this,h),this[c].loadstart;}set onloadstart(e){g.brandCheck(this,h),this[c].loadstart&&this.removeEventListener("loadstart",this[c].loadstart),"function"==typeof e?(this[c].loadstart=e,this.addEventListener("loadstart",e)):this[c].loadstart=null;}get onprogress(){return g.brandCheck(this,h),this[c].progress;}set onprogress(e){g.brandCheck(this,h),this[c].progress&&this.removeEventListener("progress",this[c].progress),"function"==typeof e?(this[c].progress=e,this.addEventListener("progress",e)):this[c].progress=null;}get onload(){return g.brandCheck(this,h),this[c].load;}set onload(e){g.brandCheck(this,h),this[c].load&&this.removeEventListener("load",this[c].load),"function"==typeof e?(this[c].load=e,this.addEventListener("load",e)):this[c].load=null;}get onabort(){return g.brandCheck(this,h),this[c].abort;}set onabort(e){g.brandCheck(this,h),this[c].abort&&this.removeEventListener("abort",this[c].abort),"function"==typeof e?(this[c].abort=e,this.addEventListener("abort",e)):this[c].abort=null;}}h.EMPTY=h.prototype.EMPTY=0,h.LOADING=h.prototype.LOADING=1,h.DONE=h.prototype.DONE=2,Object.defineProperties(h.prototype,{EMPTY:r,LOADING:r,DONE:r,readAsArrayBuffer:u,readAsBinaryString:u,readAsText:u,readAsDataURL:u,abort:u,readyState:u,result:u,error:u,onloadstart:u,onprogress:u,onload:u,onabort:u,onerror:u,onloadend:u,[Symbol.toStringTag]:{value:"FileReader",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(h,{EMPTY:r,LOADING:r,DONE:r}),e.exports={FileReader:h};}),tn("bOzhO",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C;function I(e,A){let t=new a(e,{bubbles:!1,cancelable:!1});A.dispatchEvent(t);}function B(e){let A=e.reduce((e,A)=>e+A.byteLength,0),t=0;return e.reduce((e,A)=>(e.set(A,t),t+=A.byteLength,e),new Uint8Array(A));}r=(t=nE("4fBcK")).kState,n=t.kError,o=t.kResult,i=t.kAborted,s=t.kLastProgressEventFired,a=nE("5MWXI").ProgressEvent,l=nE("3ThCT").getEncoding,c=nE("cU8F4").DOMException,g=(E=nE("9mEts")).serializeAMimeType,u=E.parseMIMEType,h=rj.types,Q=r5.StringDecoder,C=r$.btoa,e.exports={staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},readOperation:function(e,A,t,a){if("loading"===e[r])throw new c("Invalid state","InvalidStateError");e[r]="loading",e[o]=null,e[n]=null;let E=A.stream().getReader(),d=[],f=E.read(),p=!0;(async()=>{for(;!e[i];)try{let{done:c,value:y}=await f;if(p&&!e[i]&&queueMicrotask(()=>{I("loadstart",e);}),p=!1,!c&&h.isUint8Array(y))d.push(y),(void 0===e[s]||Date.now()-e[s]>=50)&&!e[i]&&(e[s]=Date.now(),queueMicrotask(()=>{I("progress",e);})),f=E.read();else if(c){queueMicrotask(()=>{e[r]="done";try{let r=function(e,A,t,r){switch(A){case"DataURL":{let A="data:",r=u(t||"application/octet-stream");"failure"!==r&&(A+=g(r)),A+=";base64,";let n=new Q("latin1");for(let t of e)A+=C(n.write(t));return A+=C(n.end());}case"Text":{let A="failure";if(r&&(A=l(r)),"failure"===A&&t){let e=u(t);"failure"!==e&&(A=l(e.parameters.get("charset")));}return"failure"===A&&(A="UTF-8"),function(e,A){let t=B(e),r=function(e){let[A,t,r]=e;return 239===A&&187===t&&191===r?"UTF-8":254===A&&255===t?"UTF-16BE":255===A&&254===t?"UTF-16LE":null;}(t),n=0;null!==r&&(A=r,n="UTF-8"===r?3:2);let o=t.slice(n);return new TextDecoder(A).decode(o);}(e,A);}case"ArrayBuffer":return B(e).buffer;case"BinaryString":{let A="",t=new Q("latin1");for(let r of e)A+=t.write(r);return A+=t.end();}}}(d,t,A.type,a);if(e[i])return;e[o]=r,I("load",e);}catch(A){e[n]=A,I("error",e);}"loading"!==e[r]&&I("loadend",e);});break;}}catch(A){if(e[i])return;queueMicrotask(()=>{e[r]="done",e[n]=A,I("error",e),"loading"!==e[r]&&I("loadend",e);});break;}})();},fireAProgressEvent:I};}),tn("4fBcK",function(e,A){e.exports={kState:Symbol(),kResult:Symbol(),kError:Symbol(),kLastProgressEventFired:Symbol(),kEvents:Symbol(),kAborted:Symbol()};}),tn("5MWXI",function(e,A){var t=nE("cvPqj").webidl;let r=Symbol();class n extends Event{constructor(e,A={}){super(e=t.converters.DOMString(e),A=t.converters.ProgressEventInit(null!=A?A:{})),this[r]={lengthComputable:A.lengthComputable,loaded:A.loaded,total:A.total};}get lengthComputable(){return t.brandCheck(this,n),this[r].lengthComputable;}get loaded(){return t.brandCheck(this,n),this[r].loaded;}get total(){return t.brandCheck(this,n),this[r].total;}}t.converters.ProgressEventInit=t.dictionaryConverter([{key:"lengthComputable",converter:t.converters.boolean,defaultValue:!1},{key:"loaded",converter:t.converters["unsigned long long"],defaultValue:0},{key:"total",converter:t.converters["unsigned long long"],defaultValue:0},{key:"bubbles",converter:t.converters.boolean,defaultValue:!1},{key:"cancelable",converter:t.converters.boolean,defaultValue:!1},{key:"composed",converter:t.converters.boolean,defaultValue:!1}]),e.exports={ProgressEvent:n};}),tn("3ThCT",function(e,A){e.exports={getEncoding:function(e){if(!e)return"failure";switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure";}}};}),tn("8wMCO",function(e,A){var t=nE("9lpql").kConstruct,r=nE("4t0Dy").Cache,n=nE("cvPqj").webidl,o=nE("jksEw").kEnumerableProperty;class i{#e=new Map();constructor(){arguments[0]!==t&&n.illegalConstructor();}async match(e,A={}){if(n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),e=n.converters.RequestInfo(e),null!=(A=n.converters.MultiCacheQueryOptions(A)).cacheName){if(this.#e.has(A.cacheName)){let n=new r(t,this.#e.get(A.cacheName));return await n.match(e,A);}}else for(let n of this.#e.values()){let o=new r(t,n),i=await o.match(e,A);if(void 0!==i)return i;}}async has(e){return n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),e=n.converters.DOMString(e),this.#e.has(e);}async open(e){if(n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),e=n.converters.DOMString(e),this.#e.has(e))return new r(t,this.#e.get(e));let A=[];return this.#e.set(e,A),new r(t,A);}async delete(e){return n.brandCheck(this,i),n.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),e=n.converters.DOMString(e),this.#e.delete(e);}async keys(){return n.brandCheck(this,i),[...this.#e.keys()];}}Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:o,has:o,open:o,delete:o,keys:o}),e.exports={CacheStorage:i};}),tn("9lpql",function(e,A){e.exports={kConstruct:nE("eoU9M").kConstruct};}),tn("4t0Dy",function(e,A){var t=nE("9lpql").kConstruct,r=nE("4rb91"),n=r.urlEquals,o=r.fieldValues,i=nE("jksEw"),s=i.kEnumerableProperty,a=i.isDisturbed,l=nE("eoU9M").kHeadersList,c=nE("cvPqj").webidl,E=nE("apE6s"),g=E.Response,u=E.cloneResponse,h=nE("7JXQn").Request,Q=nE("czloG"),C=Q.kState,I=Q.kHeaders,B=Q.kGuard,d=Q.kRealm,f=nE("1iqfu").fetching,p=nE("3Ms3X"),y=p.urlIsHttpHttpsScheme,m=p.createDeferredPromise,w=p.readAllBytes,b=nE("d0hJ7").getGlobalDispatcher;var _A=/*#__PURE__*/new WeakMap();var _R_brand=/*#__PURE__*/new WeakSet();class R{constructor(){_classPrivateMethodInitSpec(this,_R_brand);_classPrivateFieldInitSpec(this,_A,void 0);arguments[0]!==t&&c.illegalConstructor(),_classPrivateFieldSet(_A,this,arguments[1]);}async match(e,A={}){c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.match"}),e=c.converters.RequestInfo(e),A=c.converters.CacheQueryOptions(A);let t=await this.matchAll(e,A);if(0!==t.length)return t[0];}async matchAll(e,A={}){c.brandCheck(this,R),void 0!==e&&(e=c.converters.RequestInfo(e)),A=c.converters.CacheQueryOptions(A);let t=null;if(void 0!==e){if(e instanceof h){if("GET"!==(t=e[C]).method&&!A.ignoreMethod)return[];}else"string"==typeof e&&(t=new h(e)[C]);}let r=[];if(void 0===e)for(let e of _classPrivateFieldGet(_A,this))r.push(e[1]);else for(let e of _assertClassBrand(_R_brand,this,_t).call(this,t,A))r.push(e[1]);let n=[];for(let e of r){var o,i;let A=new g(null!==(i=null===(o=e.body)||void 0===o?void 0:o.source)&&void 0!==i?i:null),t=A[C].body;A[C]=e,A[C].body=t,A[I][l]=e.headersList,A[I][B]="immutable",n.push(A);}return Object.freeze(n);}async add(e){c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.add"});let A=[e=c.converters.RequestInfo(e)],t=this.addAll(A);return await t;}async addAll(e){c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.addAll"});let A=[],t=[];for(let A of e=c.converters["sequence"](e)){if("string"==typeof A)continue;let e=A[C];if(!y(e.url)||"GET"!==e.method)throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme when method is not GET."});}let r=[];for(let n of e){let e=new h(n)[C];if(!y(e.url))throw c.errors.exception({header:"Cache.addAll",message:"Expected http/s scheme."});e.initiator="fetch",e.destination="subresource",t.push(e);let i=m();r.push(f({request:e,dispatcher:b(),processResponse(e){if("error"===e.type||206===e.status||e.status<200||e.status>299)i.reject(c.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}));else if(e.headersList.contains("vary")){for(let A of o(e.headersList.get("vary")))if("*"===A){for(let e of(i.reject(c.errors.exception({header:"Cache.addAll",message:"invalid vary field value"})),r))e.abort();return;}}},processResponseEndOfBody(e){if(e.aborted){i.reject(new DOMException("aborted","AbortError"));return;}i.resolve(e);}})),A.push(i.promise);}let n=Promise.all(A),i=await n,s=[],a=0;for(let e of i){let A={type:"put",request:t[a],response:e};s.push(A),a++;}let l=m(),E=null;try{_assertClassBrand(_R_brand,this,_r).call(this,s);}catch(e){E=e;}return queueMicrotask(()=>{null===E?l.resolve(void 0):l.reject(E);}),l.promise;}async put(e,A){c.brandCheck(this,R),c.argumentLengthCheck(arguments,2,{header:"Cache.put"}),e=c.converters.RequestInfo(e),A=c.converters.Response(A);let t=null;if(!y((t=e instanceof h?e[C]:new h(e)[C]).url)||"GET"!==t.method)throw c.errors.exception({header:"Cache.put",message:"Expected an http/s scheme when method is not GET"});let r=A[C];if(206===r.status)throw c.errors.exception({header:"Cache.put",message:"Got 206 status"});if(r.headersList.contains("vary")){for(let e of o(r.headersList.get("vary")))if("*"===e)throw c.errors.exception({header:"Cache.put",message:"Got * vary field value"});}if(r.body&&(a(r.body.stream)||r.body.stream.locked))throw c.errors.exception({header:"Cache.put",message:"Response body is locked or disturbed"});let n=u(r),i=m();null!=r.body?w(r.body.stream.getReader()).then(i.resolve,i.reject):i.resolve(void 0);let s=[],l={type:"put",request:t,response:n};s.push(l);let E=await i.promise;null!=n.body&&(n.body.source=E);let g=m(),Q=null;try{_assertClassBrand(_R_brand,this,_r).call(this,s);}catch(e){Q=e;}return queueMicrotask(()=>{null===Q?g.resolve():g.reject(Q);}),g.promise;}async delete(e,A={}){let t;c.brandCheck(this,R),c.argumentLengthCheck(arguments,1,{header:"Cache.delete"}),e=c.converters.RequestInfo(e),A=c.converters.CacheQueryOptions(A);let r=null;if(e instanceof h){if("GET"!==(r=e[C]).method&&!A.ignoreMethod)return!1;}else rW("string"==typeof e),r=new h(e)[C];let n=[],o={type:"delete",request:r,options:A};n.push(o);let i=m(),s=null;try{t=_assertClassBrand(_R_brand,this,_r).call(this,n);}catch(e){s=e;}return queueMicrotask(()=>{null===s?i.resolve(!!(null==t?void 0:t.length)):i.reject(s);}),i.promise;}async keys(e,A={}){c.brandCheck(this,R),void 0!==e&&(e=c.converters.RequestInfo(e)),A=c.converters.CacheQueryOptions(A);let t=null;if(void 0!==e){if(e instanceof h){if("GET"!==(t=e[C]).method&&!A.ignoreMethod)return[];}else"string"==typeof e&&(t=new h(e)[C]);}let r=m(),n=[];if(void 0===e)for(let e of _classPrivateFieldGet(_A,this))n.push(e[0]);else for(let e of _assertClassBrand(_R_brand,this,_t).call(this,t,A))n.push(e[0]);return queueMicrotask(()=>{let e=[];for(let A of n){let t=new h("https://a");t[C]=A,t[I][l]=A.headersList,t[I][B]="immutable",t[d]=A.client,e.push(t);}r.resolve(Object.freeze(e));}),r.promise;}}function _r(e){let A=_classPrivateFieldGet(_A,this),t=[...A],r=[],n=[];try{for(let t of e){let e;if("delete"!==t.type&&"put"!==t.type)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'});if("delete"===t.type&&null!=t.response)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"});if(_assertClassBrand(_R_brand,this,_t).call(this,t.request,t.options,r).length)throw new DOMException("???","InvalidStateError");if("delete"===t.type){if(e=_assertClassBrand(_R_brand,this,_t).call(this,t.request,t.options),0===e.length)return[];for(let t of e){let e=A.indexOf(t);rW(-1!==e),A.splice(e,1);}}else if("put"===t.type){if(null==t.response)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"});let n=t.request;if(!y(n.url))throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==n.method)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"});if(null!=t.options)throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"});for(let r of e=_assertClassBrand(_R_brand,this,_t).call(this,t.request)){let e=A.indexOf(r);rW(-1!==e),A.splice(e,1);}A.push([t.request,t.response]),r.push([t.request,t.response]);}n.push([t.request,t.response]);}return n;}catch(e){throw _classPrivateFieldGet(_A,this).length=0,_classPrivateFieldSet(_A,this,t),e;}}function _t(e,A,t){let r=[];for(let n of null!=t?t:_classPrivateFieldGet(_A,this)){let[t,o]=n;_assertClassBrand(_R_brand,this,_n).call(this,e,t,o,A)&&r.push(n);}return r;}function _n(e,A,t=null,r){let i=new URL(e.url),s=new URL(A.url);if((null==r?void 0:r.ignoreSearch)&&(s.search="",i.search=""),!n(i,s,!0))return!1;if(null==t||(null==r?void 0:r.ignoreVary)||!t.headersList.contains("vary"))return!0;for(let r of o(t.headersList.get("vary")))if("*"===r||A.headersList.get(r)!==e.headersList.get(r))return!1;return!0;}Object.defineProperties(R.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:!0},match:s,matchAll:s,add:s,addAll:s,put:s,delete:s,keys:s});let D=[{key:"ignoreSearch",converter:c.converters.boolean,defaultValue:!1},{key:"ignoreMethod",converter:c.converters.boolean,defaultValue:!1},{key:"ignoreVary",converter:c.converters.boolean,defaultValue:!1}];c.converters.CacheQueryOptions=c.dictionaryConverter(D),c.converters.MultiCacheQueryOptions=c.dictionaryConverter([...D,{key:"cacheName",converter:c.converters.DOMString}]),c.converters.Response=c.interfaceConverter(g),c.converters["sequence"]=c.sequenceConverter(c.converters.RequestInfo),e.exports={Cache:R};}),tn("4rb91",function(e,A){var t,r;t=nE("9mEts").URLSerializer,r=nE("3Ms3X").isValidHeaderName,e.exports={urlEquals:function(e,A,r=!1){return t(e,r)===t(A,r);},fieldValues:function(e){rW(null!==e);let A=[];for(let t of e.split(",")){if((t=t.trim()).length)r(t)&&A.push(t);}return A;}};}),tn("tTPZ7",function(e,A){var t,r,n,o,i,s;function a(e,A){i.argumentLengthCheck(arguments,2,{header:"setCookie"}),i.brandCheck(e,s,{strict:!1}),A=i.converters.Cookie(A),n(A)&&e.append("Set-Cookie",n(A));}t=nE("fVb4Y").parseSetCookie,n=(r=nE("iW1JM")).stringify,o=r.getHeadersList,i=nE("cvPqj").webidl,s=nE("id7X2").Headers,i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:"name"},{converter:i.converters.DOMString,key:"value"},{converter:i.nullableConverter(e=>"number"==typeof e?i.converters["unsigned long long"](e):new Date(e)),key:"expires",defaultValue:null},{converter:i.nullableConverter(i.converters["long long"]),key:"maxAge",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"domain",defaultValue:null},{converter:i.nullableConverter(i.converters.DOMString),key:"path",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"secure",defaultValue:null},{converter:i.nullableConverter(i.converters.boolean),key:"httpOnly",defaultValue:null},{converter:i.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:i.sequenceConverter(i.converters.DOMString),key:"unparsed",defaultValue:[]}]),e.exports={getCookies:function(e){i.argumentLengthCheck(arguments,1,{header:"getCookies"}),i.brandCheck(e,s,{strict:!1});let A=e.get("cookie"),t={};if(!A)return t;for(let e of A.split(";")){let[A,...r]=e.split("=");t[A.trim()]=r.join("=");}return t;},deleteCookie:function(e,A,t){i.argumentLengthCheck(arguments,2,{header:"deleteCookie"}),i.brandCheck(e,s,{strict:!1}),A=i.converters.DOMString(A),t=i.converters.DeleteCookieAttributes(t),a(e,{name:A,value:"",expires:new Date(0),...t});},getSetCookies:function(e){i.argumentLengthCheck(arguments,1,{header:"getSetCookies"}),i.brandCheck(e,s,{strict:!1});let A=o(e).cookies;return A?A.map(e=>t(Array.isArray(e)?e[1]:e)):[];},setCookie:a};}),tn("fVb4Y",function(e,A){var t,r,n,o,i;function s(e,A={}){if(0===e.length)return A;rW(";"===e[0]);let t="";(e=e.slice(1)).includes(";")?(t=i(";",e,{position:0}),e=e.slice(t.length)):(t=e,e="");let r="",o="";if(t.includes("=")){let e={position:0};r=i("=",t,e),o=t.slice(e.position+1);}else r=t;if(r=r.trim(),(o=o.trim()).length>n)return s(e,A);let a=r.toLowerCase();if("expires"===a){let e=new Date(o);A.expires=e;}else if("max-age"===a){let t=o.charCodeAt(0);if((t<48||t>57)&&"-"!==o[0]||!/^\d+$/.test(o))return s(e,A);let r=+o;A.maxAge=r;}else if("domain"===a){let e=o;"."===e[0]&&(e=e.slice(1)),e=e.toLowerCase(),A.domain=e;}else if("path"===a){let e="";e=0===o.length||"/"!==o[0]?"/":o,A.path=e;}else if("secure"===a)A.secure=!0;else if("httponly"===a)A.httpOnly=!0;else if("samesite"===a){let e="Default",t=o.toLowerCase();t.includes("none")&&(e="None"),t.includes("strict")&&(e="Strict"),t.includes("lax")&&(e="Lax"),A.sameSite=e;}else{var l;null!==(l=A.unparsed)&&void 0!==l||(A.unparsed=[]),A.unparsed.push(`${r}=${o}`);}return s(e,A);}r=(t=nE("epPfw")).maxNameValuePairSize,n=t.maxAttributeValueSize,o=nE("iW1JM").isCTLExcludingHtab,i=nE("9mEts").collectASequenceOfCodePointsFast,e.exports={parseSetCookie:function(e){if(o(e))return null;let A="",t="",n="",a="";if(e.includes(";")){let r={position:0};A=i(";",e,r),t=e.slice(r.position);}else A=e;if(A.includes("=")){let e={position:0};n=i("=",A,e),a=A.slice(e.position+1);}else a=A;return(n=n.trim(),a=a.trim(),n.length+a.length>r)?null:{name:n,value:a,...s(t)};},parseUnparsedAttributes:s};}),tn("epPfw",function(e,A){e.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096};}),tn("iW1JM",function(e,A){var t;let r;t=nE("eoU9M").kHeadersList,e.exports={isCTLExcludingHtab:function(e){if(0===e.length)return!1;for(let A of e){let e=A.charCodeAt(0);if(e>=0||e<=8||e>=10||e<=31||127===e)return!1;}},stringify:function(e){if(0===e.name.length)return null;(function(e){for(let A of e){let e=A.charCodeAt(0);if(e<=32||e>127||"("===A||")"===A||">"===A||"<"===A||"@"===A||","===A||";"===A||":"===A||"\\"===A||'"'===A||"/"===A||"["===A||"]"===A||"?"===A||"="===A||"{"===A||"}"===A)throw Error("Invalid cookie name");}})(e.name),function(e){for(let A of e){let e=A.charCodeAt(0);if(e<33||34===e||44===e||59===e||92===e||e>126)throw Error("Invalid header value");}}(e.value);let A=[`${e.name}=${e.value}`];for(let t of(e.name.startsWith("__Secure-")&&(e.secure=!0),e.name.startsWith("__Host-")&&(e.secure=!0,e.domain=null,e.path="/"),e.secure&&A.push("Secure"),e.httpOnly&&A.push("HttpOnly"),"number"==typeof e.maxAge&&(function(e){if(e<0)throw Error("Invalid cookie max-age");}(e.maxAge),A.push("Max-Age="+e.maxAge)),e.domain&&(function(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-"))throw Error("Invalid cookie domain");}(e.domain),A.push("Domain="+e.domain)),e.path&&(function(e){for(let A of e)if(33>A.charCodeAt(0)||";"===A)throw Error("Invalid cookie path");}(e.path),A.push("Path="+e.path)),e.expires&&"Invalid Date"!==e.expires.toString()&&A.push("Expires="+function(e){"number"==typeof e&&(e=new Date(e));let A=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][e.getUTCDay()],t=e.getUTCDate().toString().padStart(2,"0"),r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][e.getUTCMonth()],n=e.getUTCFullYear(),o=e.getUTCHours().toString().padStart(2,"0"),i=e.getUTCMinutes().toString().padStart(2,"0"),s=e.getUTCSeconds().toString().padStart(2,"0");return`${A}, ${t} ${r} ${n} ${o}:${i}:${s} GMT`;}(e.expires)),e.sameSite&&A.push("SameSite="+e.sameSite),e.unparsed)){if(!t.includes("="))throw Error("Invalid unparsed");let[e,...r]=t.split("=");A.push(`${e.trim()}=${r.join("=")}`);}return A.join("; ");},getHeadersList:function(e){if(e[t])return e[t];r||rW(r=Object.getOwnPropertySymbols(e).find(e=>"headers list"===e.description),"Headers cannot be parsed");let A=e[r];return rW(A),A;}};}),tn("jEeVP",function(e,A){var t=nE("cvPqj").webidl,r=nE("cU8F4").DOMException,n=nE("9mEts").URLSerializer,o=nE("e3MDk").getGlobalOrigin,i=nE("fqIZ2"),s=i.staticPropertyDescriptors,a=i.states,l=i.opcodes,c=i.emptyBuffer,E=nE("8Wsgy"),g=E.kWebSocketURL,u=E.kReadyState,h=E.kController,Q=E.kBinaryType,C=E.kResponse,I=E.kSentClose,B=E.kByteParser,d=nE("f5KJZ"),f=d.isEstablished,p=d.isClosing,y=d.isValidSubprotocol,m=d.failWebsocketConnection,w=d.fireEvent,b=nE("9cqtz").establishWebSocketConnection,R=nE("31htQ").WebsocketFrameSend,D=nE("bwxUX").ByteParser,S=nE("jksEw"),k=S.kEnumerableProperty,v=S.isBlobLike,N=nE("d0hJ7").getGlobalDispatcher,F=rj.types;let L=!1;var _o=/*#__PURE__*/new WeakMap();var _i=/*#__PURE__*/new WeakMap();var _s=/*#__PURE__*/new WeakMap();var _a=/*#__PURE__*/new WeakMap();var _U_brand=/*#__PURE__*/new WeakSet();class U extends EventTarget{constructor(_e,_A2=[]){let n;(super(),_classPrivateMethodInitSpec(this,_U_brand),_classPrivateFieldInitSpec(this,_o,{open:null,error:null,close:null,message:null}),_classPrivateFieldInitSpec(this,_i,0),_classPrivateFieldInitSpec(this,_s,""),_classPrivateFieldInitSpec(this,_a,""),this),t.argumentLengthCheck(arguments,1,{header:"WebSocket constructor"}),L||(L=!0,process.emitWarning("WebSockets are experimental, expect them to change at any time.",{code:"UNDICI-WS"}));let i=t.converters["DOMString or sequence or WebSocketInit"](_A2);_e=t.converters.USVString(_e),_A2=i.protocols;let s=o();try{n=new URL(_e,s);}catch(e){throw new r(e,"SyntaxError");}if("http:"===n.protocol?n.protocol="ws:":"https:"===n.protocol&&(n.protocol="wss:"),"ws:"!==n.protocol&&"wss:"!==n.protocol)throw new r("Expected a ws: or wss: protocol, got "+n.protocol,"SyntaxError");if(n.hash||n.href.endsWith("#"))throw new r("Got fragment","SyntaxError");if("string"==typeof _A2&&(_A2=[_A2]),_A2.length!==new Set(_A2.map(e=>e.toLowerCase())).size||_A2.length>0&&!_A2.every(e=>y(e)))throw new r("Invalid Sec-WebSocket-Protocol value","SyntaxError");this[g]=new URL(n.href),this[h]=b(n,_A2,this,e=>_assertClassBrand(_U_brand,this,_l).call(this,e),i),this[u]=U.CONNECTING,this[Q]="blob";}close(e,A){if(t.brandCheck(this,U),void 0!==e&&(e=t.converters["unsigned short"](e,{clamp:!0})),void 0!==A&&(A=t.converters.USVString(A)),void 0!==e&&1e3!==e&&(e<3e3||e>4999))throw new r("invalid code","InvalidAccessError");let n=0;if(void 0!==A&&(n=Buffer.byteLength(A))>123)throw new r("Reason must be less than 123 bytes; received "+n,"SyntaxError");if(this[u]===U.CLOSING||this[u]===U.CLOSED);else if(f(this)){if(p(this))this[u]=U.CLOSING;else{let t=new R();void 0!==e&&void 0===A?(t.frameData=Buffer.allocUnsafe(2),t.frameData.writeUInt16BE(e,0)):void 0!==e&&void 0!==A?(t.frameData=Buffer.allocUnsafe(2+n),t.frameData.writeUInt16BE(e,0),t.frameData.write(A,2,"utf-8")):t.frameData=c,this[C].socket.write(t.createFrame(l.CLOSE),e=>{e||(this[I]=!0);}),this[u]=a.CLOSING;}}else m(this,"Connection was closed before it was established."),this[u]=U.CLOSING;}send(e){if(t.brandCheck(this,U),t.argumentLengthCheck(arguments,1,{header:"WebSocket.send"}),e=t.converters.WebSocketSendData(e),this[u]===U.CONNECTING)throw new r("Sent before connected.","InvalidStateError");if(!f(this)||p(this))return;let A=this[C].socket;if("string"==typeof e){let t=Buffer.from(e),r=new R(t).createFrame(l.TEXT);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+t.byteLength),A.write(r,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-t.byteLength);});}else if(F.isArrayBuffer(e)){let t=Buffer.from(e),r=new R(t).createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+t.byteLength),A.write(r,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-t.byteLength);});}else if(ArrayBuffer.isView(e)){let t=Buffer.from(e,e.byteOffset,e.byteLength),r=new R(t).createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+t.byteLength),A.write(r,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-t.byteLength);});}else if(v(e)){let t=new R();e.arrayBuffer().then(e=>{let r=Buffer.from(e);t.frameData=r;let n=t.createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+r.byteLength),A.write(n,()=>{_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)-r.byteLength);});});}}get readyState(){return t.brandCheck(this,U),this[u];}get bufferedAmount(){return t.brandCheck(this,U),_classPrivateFieldGet(_i,this);}get url(){return t.brandCheck(this,U),n(this[g]);}get extensions(){return t.brandCheck(this,U),_classPrivateFieldGet(_a,this);}get protocol(){return t.brandCheck(this,U),_classPrivateFieldGet(_s,this);}get onopen(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).open;}set onopen(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).open&&this.removeEventListener("open",_classPrivateFieldGet(_o,this).open),"function"==typeof e?(_classPrivateFieldGet(_o,this).open=e,this.addEventListener("open",e)):_classPrivateFieldGet(_o,this).open=null;}get onerror(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).error;}set onerror(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).error&&this.removeEventListener("error",_classPrivateFieldGet(_o,this).error),"function"==typeof e?(_classPrivateFieldGet(_o,this).error=e,this.addEventListener("error",e)):_classPrivateFieldGet(_o,this).error=null;}get onclose(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).close;}set onclose(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).close&&this.removeEventListener("close",_classPrivateFieldGet(_o,this).close),"function"==typeof e?(_classPrivateFieldGet(_o,this).close=e,this.addEventListener("close",e)):_classPrivateFieldGet(_o,this).close=null;}get onmessage(){return t.brandCheck(this,U),_classPrivateFieldGet(_o,this).message;}set onmessage(e){t.brandCheck(this,U),_classPrivateFieldGet(_o,this).message&&this.removeEventListener("message",_classPrivateFieldGet(_o,this).message),"function"==typeof e?(_classPrivateFieldGet(_o,this).message=e,this.addEventListener("message",e)):_classPrivateFieldGet(_o,this).message=null;}get binaryType(){return t.brandCheck(this,U),this[Q];}set binaryType(e){t.brandCheck(this,U),"blob"!==e&&"arraybuffer"!==e?this[Q]="blob":this[Q]=e;}}function _l(e){this[C]=e;let A=new D(this);A.on("drain",function(){this.ws[C].socket.resume();}),e.socket.ws=this,this[B]=A,this[u]=a.OPEN;let t=e.headersList.get("sec-websocket-extensions");null!==t&&_classPrivateFieldSet(_a,this,t);let r=e.headersList.get("sec-websocket-protocol");null!==r&&_classPrivateFieldSet(_s,this,r),w("open",this);}U.CONNECTING=U.prototype.CONNECTING=a.CONNECTING,U.OPEN=U.prototype.OPEN=a.OPEN,U.CLOSING=U.prototype.CLOSING=a.CLOSING,U.CLOSED=U.prototype.CLOSED=a.CLOSED,Object.defineProperties(U.prototype,{CONNECTING:s,OPEN:s,CLOSING:s,CLOSED:s,url:k,readyState:k,bufferedAmount:k,onopen:k,onerror:k,onclose:k,close:k,onmessage:k,binaryType:k,send:k,extensions:k,protocol:k,[Symbol.toStringTag]:{value:"WebSocket",writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(U,{CONNECTING:s,OPEN:s,CLOSING:s,CLOSED:s}),t.converters["sequence"]=t.sequenceConverter(t.converters.DOMString),t.converters["DOMString or sequence"]=function(e){return"Object"===t.util.Type(e)&&Symbol.iterator in e?t.converters["sequence"](e):t.converters.DOMString(e);},t.converters.WebSocketInit=t.dictionaryConverter([{key:"protocols",converter:t.converters["DOMString or sequence"],get defaultValue(){return[];}},{key:"dispatcher",converter:e=>e,get defaultValue(){return N();}},{key:"headers",converter:t.nullableConverter(t.converters.HeadersInit)}]),t.converters["DOMString or sequence or WebSocketInit"]=function(e){return"Object"!==t.util.Type(e)||Symbol.iterator in e?{protocols:t.converters["DOMString or sequence"](e)}:t.converters.WebSocketInit(e);},t.converters.WebSocketSendData=function(e){if("Object"===t.util.Type(e)){if(v(e))return t.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||F.isAnyArrayBuffer(e))return t.converters.BufferSource(e);}return t.converters.USVString(e);},e.exports={WebSocket:U};}),tn("fqIZ2",function(e,A){let t=Buffer.allocUnsafe(0);e.exports={uid:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:65535,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:t};}),tn("8Wsgy",function(e,A){e.exports={kWebSocketURL:Symbol(),kReadyState:Symbol(),kController:Symbol(),kResponse:Symbol(),kBinaryType:Symbol(),kSentClose:Symbol(),kReceivedClose:Symbol(),kByteParser:Symbol()};}),tn("f5KJZ",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u;function h(e,A,t=Event,r){let n=new t(e,r);A.dispatchEvent(n);}function Q(e,A){let{[n]:t,[o]:r}=e;t.abort(),(null==r?void 0:r.socket)&&!r.socket.destroyed&&r.socket.destroy(),A&&h("error",e,u,{error:Error(A)});}r=(t=nE("8Wsgy")).kReadyState,n=t.kController,o=t.kResponse,i=t.kBinaryType,s=t.kWebSocketURL,l=(a=nE("fqIZ2")).states,c=a.opcodes,g=(E=nE("krU0V")).MessageEvent,u=E.ErrorEvent,e.exports={isEstablished:function(e){return e[r]===l.OPEN;},isClosing:function(e){return e[r]===l.CLOSING;},isClosed:function(e){return e[r]===l.CLOSED;},fireEvent:h,isValidSubprotocol:function(e){if(0===e.length)return!1;for(let A of e){let e=A.charCodeAt(0);if(e<33||e>126||"("===A||")"===A||"<"===A||">"===A||"@"===A||","===A||";"===A||":"===A||"\\"===A||'"'===A||"/"===A||"["===A||"]"===A||"?"===A||"="===A||"{"===A||"}"===A||32===e||9===e)return!1;}return!0;},isValidStatusCode:function(e){return e>=1e3&&e<1015?1004!==e&&1005!==e&&1006!==e:e>=3e3&&e<=4999;},failWebsocketConnection:Q,websocketMessageReceived:function(e,A,t){let n;if(e[r]===l.OPEN){if(A===c.TEXT)try{n=new TextDecoder("utf-8",{fatal:!0}).decode(t);}catch{Q(e,"Received invalid UTF-8 in text frame.");return;}else A===c.BINARY&&(n="blob"===e[i]?new Blob([t]):new Uint8Array(t).buffer);h("message",e,g,{origin:e[s].origin,data:n});}}};}),tn("krU0V",function(e,A){var t=nE("cvPqj").webidl,r=nE("jksEw").kEnumerableProperty,n=r2.MessagePort;class o extends Event{#c;constructor(e,A={}){t.argumentLengthCheck(arguments,1,{header:"MessageEvent constructor"}),super(e=t.converters.DOMString(e),A=t.converters.MessageEventInit(A)),this.#c=A;}get data(){return t.brandCheck(this,o),this.#c.data;}get origin(){return t.brandCheck(this,o),this.#c.origin;}get lastEventId(){return t.brandCheck(this,o),this.#c.lastEventId;}get source(){return t.brandCheck(this,o),this.#c.source;}get ports(){return t.brandCheck(this,o),Object.isFrozen(this.#c.ports)||Object.freeze(this.#c.ports),this.#c.ports;}initMessageEvent(e,A=!1,r=!1,n=null,i="",s="",a=null,l=[]){return t.brandCheck(this,o),t.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new o(e,{bubbles:A,cancelable:r,data:n,origin:i,lastEventId:s,source:a,ports:l});}}class i extends Event{#c;constructor(e,A={}){t.argumentLengthCheck(arguments,1,{header:"CloseEvent constructor"}),super(e=t.converters.DOMString(e),A=t.converters.CloseEventInit(A)),this.#c=A;}get wasClean(){return t.brandCheck(this,i),this.#c.wasClean;}get code(){return t.brandCheck(this,i),this.#c.code;}get reason(){return t.brandCheck(this,i),this.#c.reason;}}class s extends Event{#c;constructor(e,A){t.argumentLengthCheck(arguments,1,{header:"ErrorEvent constructor"}),super(e,A),e=t.converters.DOMString(e),A=t.converters.ErrorEventInit(null!=A?A:{}),this.#c=A;}get message(){return t.brandCheck(this,s),this.#c.message;}get filename(){return t.brandCheck(this,s),this.#c.filename;}get lineno(){return t.brandCheck(this,s),this.#c.lineno;}get colno(){return t.brandCheck(this,s),this.#c.colno;}get error(){return t.brandCheck(this,s),this.#c.error;}}Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),t.converters.MessagePort=t.interfaceConverter(n),t.converters["sequence"]=t.sequenceConverter(t.converters.MessagePort);let a=[{key:"bubbles",converter:t.converters.boolean,defaultValue:!1},{key:"cancelable",converter:t.converters.boolean,defaultValue:!1},{key:"composed",converter:t.converters.boolean,defaultValue:!1}];t.converters.MessageEventInit=t.dictionaryConverter([...a,{key:"data",converter:t.converters.any,defaultValue:null},{key:"origin",converter:t.converters.USVString,defaultValue:""},{key:"lastEventId",converter:t.converters.DOMString,defaultValue:""},{key:"source",converter:t.nullableConverter(t.converters.MessagePort),defaultValue:null},{key:"ports",converter:t.converters["sequence"],get defaultValue(){return[];}}]),t.converters.CloseEventInit=t.dictionaryConverter([...a,{key:"wasClean",converter:t.converters.boolean,defaultValue:!1},{key:"code",converter:t.converters["unsigned short"],defaultValue:0},{key:"reason",converter:t.converters.USVString,defaultValue:""}]),t.converters.ErrorEventInit=t.dictionaryConverter([...a,{key:"message",converter:t.converters.DOMString,defaultValue:""},{key:"filename",converter:t.converters.USVString,defaultValue:""},{key:"lineno",converter:t.converters["unsigned long"],defaultValue:0},{key:"colno",converter:t.converters["unsigned long"],defaultValue:0},{key:"error",converter:t.converters.any}]),e.exports={MessageEvent:o,CloseEvent:i,ErrorEvent:s};}),tn("9cqtz",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,B,d;let f;function p(e){this.ws[l].write(e)||this.pause();}function y(){let{ws:e}=this,A=e[a]&&e[c],t=1005,r="",n=e[l].closingInfo;if(n){var i;t=null!==(i=n.code)&&void 0!==i?i:1005,r=n.reason;}else e[a]||(t=1006);e[s]=o.CLOSED,g("close",e,h,{wasClean:A,code:t,reason:r}),w.close.hasSubscribers&&w.close.publish({websocket:e,code:t,reason:r});}function m(e){let{ws:A}=this;A[s]=o.CLOSING,w.socketError.hasSubscribers&&w.socketError.publish(e),this.destroy();}t=nE("5tMx2"),n=(r=nE("fqIZ2")).uid,o=r.states,s=(i=nE("8Wsgy")).kReadyState,a=i.kSentClose,l=i.kByteParser,c=i.kReceivedClose,g=(E=nE("f5KJZ")).fireEvent,u=E.failWebsocketConnection,h=nE("krU0V").CloseEvent,Q=nE("7JXQn").makeRequest,C=nE("1iqfu").fetching,I=nE("id7X2").Headers,B=nE("d0hJ7").getGlobalDispatcher,d=nE("eoU9M").kHeadersList;let w={};w.open=t.channel("undici:websocket:open"),w.close=t.channel("undici:websocket:close"),w.socketError=t.channel("undici:websocket:socket_error");try{f=$6b29c59b5edf3cb2$import$fce4dc861a7753d1;}catch{}e.exports={establishWebSocketConnection:function(e,A,t,r,o){var i;e.protocol="ws:"===e.protocol?"http:":"https:";let s=Q({urlList:[e],serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(o.headers){let e=new I(o.headers)[d];s.headersList=e;}let a=f.randomBytes(16).toString("base64");for(let e of(s.headersList.append("sec-websocket-key",a),s.headersList.append("sec-websocket-version","13"),A))s.headersList.append("sec-websocket-protocol",e);return C({request:s,useParallelQueue:!0,dispatcher:null!==(i=o.dispatcher)&&void 0!==i?i:B(),processResponse(e){var o,i;if("error"===e.type||101!==e.status){u(t,"Received network error or non-101 status code.");return;}if(0!==A.length&&!e.headersList.get("Sec-WebSocket-Protocol")){u(t,"Server did not respond with sent protocols.");return;}if((null===(o=e.headersList.get("Upgrade"))||void 0===o?void 0:o.toLowerCase())!=="websocket"){u(t,'Server did not set Upgrade header to "websocket".');return;}if((null===(i=e.headersList.get("Connection"))||void 0===i?void 0:i.toLowerCase())!=="upgrade"){u(t,'Server did not set Connection header to "upgrade".');return;}if(e.headersList.get("Sec-WebSocket-Accept")!==f.createHash("sha1").update(a+n).digest("base64")){u(t,"Incorrect hash received in Sec-WebSocket-Accept header.");return;}let l=e.headersList.get("Sec-WebSocket-Extensions");if(null!==l&&""!==l){u(t,"Received different permessage-deflate than the one set.");return;}let c=e.headersList.get("Sec-WebSocket-Protocol");if(null!==c&&c!==s.headersList.get("Sec-WebSocket-Protocol")){u(t,"Protocol was not set in the opening handshake.");return;}e.socket.on("data",p),e.socket.on("close",y),e.socket.on("error",m),w.open.hasSubscribers&&w.open.publish({address:e.socket.address(),protocol:c,extensions:l}),r(e);}});}};}),tn("31htQ",function(e,A){let t;var r=nE("fqIZ2").maxUnsigned16Bit;try{t=$232f065a220c7ad6$import$ccf5a216a092202d;}catch{}e.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e,this.maskKey=t.randomBytes(4);}createFrame(e){var A,t;let n=null!==(t=null===(A=this.frameData)||void 0===A?void 0:A.byteLength)&&void 0!==t?t:0,o=n,i=6;n>r?(i+=8,o=127):n>125&&(i+=2,o=126);let s=Buffer.allocUnsafe(n+i);s[0]=s[1]=0,s[0]|=128,s[0]=(240&s[0])+e,s[i-4]=this.maskKey[0],s[i-3]=this.maskKey[1],s[i-2]=this.maskKey[2],s[i-1]=this.maskKey[3],s[1]=o,126===o?s.writeUInt16BE(n,2):127===o&&(s[2]=s[3]=0,s.writeUIntBE(n,4,6)),s[1]|=128;for(let e=0;e125){C(this.ws,"Fragmented frame exceeded 125 bytes.");return;}if((this.#h.opcode===i.PING||this.#h.opcode===i.PONG||this.#h.opcode===i.CLOSE)&&n>125){C(this.ws,"Payload length for control frame exceeded 125 bytes.");return;}if(this.#h.opcode===i.CLOSE){if(1===n){C(this.ws,"Received close frame with a 1-byte body.");return;}let e=this.consume(n);if(this.#h.closeInfo=this.parseCloseBody(!1,e),!this.ws[E]){let e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#h.closeInfo.code,0);let A=new B(e);this.ws[g].socket.write(A.createFrame(i.CLOSE),e=>{e||(this.ws[E]=!0);});}this.ws[c]=s.CLOSING,this.ws[u]=!0,this.end();return;}else if(this.#h.opcode===i.PING){let A=this.consume(n);if(!this.ws[u]){let e=new B(A);this.ws[g].socket.write(e.createFrame(i.PONG)),d.ping.hasSubscribers&&d.ping.publish({payload:A});}if(this.#u=o.INFO,this.#g>0)continue;e();return;}else if(this.#h.opcode===i.PONG){let A=this.consume(n);if(d.pong.hasSubscribers&&d.pong.publish({payload:A}),this.#g>0)continue;e();return;}}else if(this.#u===o.PAYLOADLENGTH_16){if(this.#g<2)return e();let A=this.consume(2);this.#h.payloadLength=A.readUInt16BE(0),this.#u=o.READ_DATA;}else if(this.#u===o.PAYLOADLENGTH_64){if(this.#g<8)return e();let A=this.consume(8),t=A.readUInt32BE(0);if(t>2147483648-1){C(this.ws,"Received payload length > 2^31 bytes.");return;}let r=A.readUInt32BE(4);this.#h.payloadLength=(t<<8)+r,this.#u=o.READ_DATA;}else if(this.#u===o.READ_DATA){if(this.#g=this.#h.payloadLength){let e=this.consume(this.#h.payloadLength);if(this.#Q.push(e),!this.#h.fragmented||this.#h.fin&&this.#h.opcode===i.CONTINUATION){let e=Buffer.concat(this.#Q);I(this.ws,this.#h.originalOpcode,e),this.#h={},this.#Q.length=0;}this.#u=o.INFO;}}if(!(this.#g>0)){e();break;}}}consume(e){if(e>this.#g)return null;if(0===e)return a;if(this.#E[0].length===e)return this.#g-=this.#E[0].length,this.#E.shift();let A=Buffer.allocUnsafe(e),t=0;for(;t!==e;){let r=this.#E[0],{length:n}=r;if(n+t===e){A.set(this.#E.shift(),t);break;}if(n+t>e){A.set(r.subarray(0,e-t),t),this.#E[0]=r.subarray(e-t);break;}A.set(this.#E.shift(),t),t+=r.length;}return this.#g-=e,A;}parseCloseBody(e,A){let t;if(A.length>=2&&(t=A.readUInt16BE(0)),e)return Q(t)?{code:t}:null;let r=A.subarray(2);if(239===r[0]&&187===r[1]&&191===r[2]&&(r=r.subarray(3)),void 0!==t&&!Q(t))return null;try{r=new TextDecoder("utf-8",{fatal:!0}).decode(r);}catch{return null;}return{code:t,reason:r};}get closingInfo(){return this.#h.closeInfo;}}e.exports={ByteParser:f};}),tn("1bb8A",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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,A){this.username=e,this.password=A;}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 t(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 t(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 t(this,void 0,void 0,function*(){throw Error("not implemented");});}};}),tn("1mzjm",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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:r,appendFile:n,writeFile:o}=rO.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 i=new class{constructor(){this._buffer="";}filePath(){return t(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let A=process.env[e.exports.SUMMARY_ENV_VAR];if(!A)throw Error(`Unable to find environment variable for $${e.exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`);try{yield r(A,rO.constants.R_OK|rO.constants.W_OK);}catch(e){throw Error(`Unable to access summary file: '${A}'. Check if the file has correct read/write permissions.`);}return this._filePath=A,this._filePath;});}wrap(e,A,t={}){let r=Object.entries(t).map(([e,A])=>` ${e}="${A}"`).join("");return A?`<${e}${r}>${A}`:`<${e}${r}>`;}write(e){return t(this,void 0,void 0,function*(){let A=!!(null==e?void 0:e.overwrite),t=yield this.filePath();return yield(A?o:n)(t,this._buffer,{encoding:"utf8"}),this.emptyBuffer();});}clear(){return t(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,A=!1){return this._buffer+=e,A?this.addEOL():this;}addEOL(){return this.addRaw(r_.EOL);}addCodeBlock(e,A){let t=Object.assign({},A&&{lang:A}),r=this.wrap("pre",this.wrap("code",e),t);return this.addRaw(r).addEOL();}addList(e,A=!1){let t=e.map(e=>this.wrap("li",e)).join(""),r=this.wrap(A?"ol":"ul",t);return this.addRaw(r).addEOL();}addTable(e){let A=e.map(e=>{let A=e.map(e=>{if("string"==typeof e)return this.wrap("td",e);let{header:A,data:t,colspan:r,rowspan:n}=e,o=Object.assign(Object.assign({},r&&{colspan:r}),n&&{rowspan:n});return this.wrap(A?"th":"td",t,o);}).join("");return this.wrap("tr",A);}).join(""),t=this.wrap("table",A);return this.addRaw(t).addEOL();}addDetails(e,A){let t=this.wrap("details",this.wrap("summary",e)+A);return this.addRaw(t).addEOL();}addImage(e,A,t){let{width:r,height:n}=t||{},o=Object.assign(Object.assign({},r&&{width:r}),n&&{height:n}),i=this.wrap("img",null,Object.assign({src:e,alt:A},o));return this.addRaw(i).addEOL();}addHeading(e,A){let t="h"+A,r=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1",n=this.wrap(r,e);return this.addRaw(n).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,A){let t=Object.assign({},A&&{cite:A}),r=this.wrap("blockquote",e,t);return this.addRaw(r).addEOL();}addLink(e,A){let t=this.wrap("a",e,{href:A});return this.addRaw(t).addEOL();}}();e.exports.markdownSummary=i,e.exports.summary=i;}),tn("31rWp",function(e,A){var t,r,n;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let o=n(rG);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);};}),tn("ftrAD",function(e,A){function t(e,A,t){return!!(e.isSymbolicLink()||e.isFile())&&function(e,A){var t=void 0!==A.pathExt?A.pathExt:process.env.PATHEXT;if(!t||-1!==(t=t.split(";")).indexOf(""))return!0;for(var r=0;rn),a(e.exports,"lstat",()=>E),a(e.exports,"mkdir",()=>g),a(e.exports,"open",()=>h),a(e.exports,"readdir",()=>Q),a(e.exports,"readFile",()=>C),a(e.exports,"readlink",()=>I),a(e.exports,"stat",()=>p),a(e.exports,"symlink",()=>y),a(e.exports,"utimes",()=>b),a(e.exports,"writeFile",()=>R),a(e.exports,"rm",()=>D),rO.promises;let{access:t,appendFile:r,chmod:n,chown:o,copyFile:i,lchmod:s,lchown:l,link:c,lstat:E,mkdir:g,mkdtemp:u,open:h,readdir:Q,readFile:C,readlink:I,realpath:B,rename:d,rmdir:f,stat:p,symlink:y,truncate:m,unlink:w,utimes:b,writeFile:R}=rO.promises,D="rm"in rO.promises?rO.promises.rm:(0,rj.promisify)(rO.unlink);}),tn("ibhuk",function(e,A){async function t(e){try{return await(0,r6.promises).access(e),!0;}catch{return!1;}}a(e.exports,"pathExists",()=>t);}),tn("sOzdu",function(e,A){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),tn("j5MHF",function(e,A){var t=rG.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){var A,r;function n(e,t,r){if(o(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var n=A[e](t);return void 0!==r[n]?r[n]:null;}function o(e){!(void 0!==A[e])&&function(e){try{require(t+"/../locales/"+e+".js");}catch(A){throw Error("Failed to load the following locale: "+e);}}(e);}A={},r={create:function(e){return o(e),{pluralize:function(A,t){return n(e,A,t);}};},addLocale:function(e,t){A[e]=t;},pluralize:n},void 0!==e.exports?e.exports=r:this.numerous=r;}).call(e.exports);}),tn("2KdLC",function(e,A){function t(e){for(let A of(Array.isArray(e)||(e=[e]),e)){let{id:e,data:t}=A;s[e]=t;}}var r=nE("5FRs7"),n=nE("3Zbea");let o=[["years",290304e5],["months",24192e5],["weeks",6048e5],["days",864e5],["hours",36e5],["minutes",6e4],["seconds",1e3]],i={locale:"en",span:2,delimiter:", ",unitType:"long",unitTypeLookupOrder:["long","short","narrow"],autoloadLocales:!0},s={};e.exports={create:function(e){return e=Object.assign({},i,e||{}),{format:function(A,i,a){return function(e,A,i){if(function(e,A){let{autoload:r}=A;if(!s[e]){if(n&&r)(function(e){try{t(require(`../locales/${e}.js`));}catch(A){throw Error(`Failed to load locale: ${e} from ../locales/${e}.js. If using a bundled time-delta, set 'autoloadLocales: false' in the config: ${A}`);}})(e);else throw Error(`Missing locale: ${e}, you must load it manually before using it`);}}(i.locale,{autoload:i.autoloadLocales}),!e)throw Error("Missing first date argument");if(!A)throw Error("Missing second date argument");let a=function(e,A){let t=A-e,r=[];return o.some(function(e){let A=e[0],n=e[1],o=Math.floor(t/n);if(t-=o*n,r.push([A,o]),t<=0)return!0;}),r;}(e,A),l=[];for(let e of a){let[A,t]=e;if(t>0&&l.push(function(e,A,t){let n=function(e){let A=s[e.locale],t=e.unitTypeLookupOrder.slice();t.unshift(e.unitType);let r=null;if((t=Array.from(new Set(t))).some(function(e){if(void 0!==A[e])return r=A[e],!0;}),null===r)throw Error("Can not find any unit type data for locale: "+e.locale);return r;}(t);return r.pluralize(t.locale,A,n[e]).replace("{0}",A);}(A,t,i)),l.length>=i.span)break;}return l.join(i.delimiter);}(A,i,a=Object.assign({},e,a||{}));}};},addLocale:t,defaultConfig:i};}),tn("5FRs7",function(e,A){e.exports=nE("j5MHF");}),tn("3Zbea",function(e,A){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),tn("51NgG",function(e,A){var t=nE("a4A3m"),r=nE("gzZHc"),n=nE("8wL3J"),o=nE("9kOAd"),i=nE("dJ3EL"),s=nE("2owFL"),a=nE("kBdlj"),l=nE("bFSJ9"),c=nE("bdHiQ"),E=nE("gWZ4x"),g=nE("dLri9"),u=nE("2tsX7"),h=nE("3lzLT"),Q=nE("fYuCK"),C=nE("6LnSq"),I=nE("dZkNJ"),B=nE("2Qi5H"),d=nE("fJeYC"),f=nE("j1k1X"),p=nE("ccAMb"),y=nE("4qy3a"),m=nE("3ovyF"),w=nE("laDmN"),b=nE("3cxkY"),R=nE("aTQrN"),D=nE("5kn9j"),S=nE("8YrRN"),k=nE("fNiVh"),v=nE("gTfXP"),N=nE("kPBDZ"),F=nE("cVl8o"),L=nE("j0UMd"),U=nE("kgJyO"),T=nE("k8woQ"),M=nE("cQA7W"),x=nE("j3dZX"),_=nE("bENPT"),G=nE("iehU8"),O=nE("5NOPx"),Y=nE("fdN0I"),J=nE("lxNIV");e.exports={parse:i,valid:s,clean:a,inc:l,diff:c,major:E,minor:g,patch:u,prerelease:h,compare:Q,rcompare:C,compareLoose:I,compareBuild:B,sort:d,rsort:f,gt:p,lt:y,eq:m,neq:w,gte:b,lte:R,cmp:D,coerce:S,Comparator:k,Range:v,satisfies:N,toComparators:F,maxSatisfying:L,minSatisfying:U,minVersion:T,validRange:M,outside:x,gtr:_,ltr:G,intersects:O,simplifyRange:Y,subset:J,SemVer:n,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers};}),tn("a4A3m",function(e,A){var t=nE("gzZHc"),r=t.MAX_SAFE_COMPONENT_LENGTH,n=t.MAX_SAFE_BUILD_LENGTH,o=t.MAX_LENGTH,i=nE("cg13c");let s=(A=e.exports={}).re=[],a=A.safeRe=[],l=A.src=[],c=A.t={},E=0,g="[a-zA-Z0-9-]",u=[["\\s",1],["\\d",o],[g,n]],h=e=>{for(let[A,t]of u)e=e.split(`${A}*`).join(`${A}{0,${t}}`).split(`${A}+`).join(`${A}{1,${t}}`);return e;},Q=(e,A,t)=>{let r=h(A),n=E++;i(e,n,A),c[e]=n,l[n]=A,s[n]=new RegExp(A,t?"g":void 0),a[n]=new RegExp(r,t?"g":void 0);};Q("NUMERICIDENTIFIER","0|[1-9]\\d*"),Q("NUMERICIDENTIFIERLOOSE","\\d+"),Q("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${g}*`),Q("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),Q("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),Q("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),Q("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),Q("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),Q("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),Q("BUILDIDENTIFIER",`${g}+`),Q("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),Q("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),Q("FULL",`^${l[c.FULLPLAIN]}$`),Q("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),Q("LOOSE",`^${l[c.LOOSEPLAIN]}$`),Q("GTLT","((?:<|>)?=?)"),Q("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),Q("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),Q("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),Q("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),Q("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),Q("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),Q("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),Q("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),Q("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?`+`(?:${l[c.BUILD]})?`+"(?:$|[^\\d])"),Q("COERCERTL",l[c.COERCE],!0),Q("COERCERTLFULL",l[c.COERCEFULL],!0),Q("LONETILDE","(?:~>?)"),Q("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),A.tildeTrimReplace="$1~",Q("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),Q("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),Q("LONECARET","(?:\\^)"),Q("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),A.caretTrimReplace="$1^",Q("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),Q("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),Q("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),Q("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),Q("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),A.comparatorTrimReplace="$1$2$3",Q("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),Q("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),Q("STAR","(<|>)?=?\\s*\\*"),Q("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),Q("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$");}),tn("gzZHc",function(e,A){let t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2};}),tn("cg13c",function(e,A){let t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t;}),tn("8wL3J",function(e,A){var t=nE("cg13c"),r=nE("gzZHc"),n=r.MAX_LENGTH,o=r.MAX_SAFE_INTEGER,i=nE("a4A3m"),s=i.safeRe,a=i.t,l=nE("5bRb1"),c=nE("9kOAd").compareIdentifiers;class E{constructor(e,A){if(A=l(A),e instanceof E){if(!!A.loose===e.loose&&!!A.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>n)throw TypeError(`version is longer than ${n} characters`);t("SemVer",e,A),this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease;let r=e.trim().match(A.loose?s[a.LOOSE]:s[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>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");r[4]?this.prerelease=r[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){let A=+e;if(A>=0&&A=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(A===this.prerelease.join(".")&&!1===t)throw Error("invalid increment argument: identifier already exists");this.prerelease.push(e);}}if(A){let r=[A,e];!1===t&&(r=[A]),0===c(this.prerelease[0],A)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r;}break;}default:throw Error("invalid increment argument: "+e);}return this.raw=this.format(),this.build.length&&(this.raw+="+"+this.build.join(".")),this;}}e.exports=E;}),tn("5bRb1",function(e,A){let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r;}),tn("9kOAd",function(e,A){let t=(e,A)=>{let t=/^[0-9]+$/.test(e),r=/^[0-9]+$/.test(A);return t&&r&&(e=+e,A=+A),e===A?0:t&&!r?-1:r&&!t?1:A>e?-1:1;};e.exports={compareIdentifiers:t,rcompareIdentifiers:(e,A)=>t(A,e)};}),tn("dJ3EL",function(e,A){var t=nE("8wL3J");e.exports=(e,A,r=!1)=>{if(e instanceof t)return e;try{return new t(e,A);}catch(e){if(!r)return null;throw e;}};}),tn("2owFL",function(e,A){var t=nE("dJ3EL");e.exports=(e,A)=>{let r=t(e,A);return r?r.version:null;};}),tn("kBdlj",function(e,A){var t=nE("dJ3EL");e.exports=(e,A)=>{let r=t(e.trim().replace(/^[=v]+/,""),A);return r?r.version:null;};}),tn("bFSJ9",function(e,A){var t=nE("8wL3J");e.exports=(e,A,r,n,o)=>{"string"==typeof r&&(o=n,n=r,r=void 0);try{return new t(e instanceof t?e.version:e,r).inc(A,n,o).version;}catch(e){return null;}};}),tn("bdHiQ",function(e,A){var t=nE("dJ3EL");e.exports=(e,A)=>{let r=t(e,null,!0),n=t(A,null,!0),o=r.compare(n);if(0===o)return null;let i=o>0,s=i?r:n,a=i?n:r,l=!!s.prerelease.length;if(a.prerelease.length&&!l)return a.patch||a.minor?s.patch?"patch":s.minor?"minor":"major":"major";let c=l?"pre":"";return r.major!==n.major?c+"major":r.minor!==n.minor?c+"minor":r.patch!==n.patch?c+"patch":"prerelease";};}),tn("gWZ4x",function(e,A){var t=nE("8wL3J");e.exports=(e,A)=>new t(e,A).major;}),tn("dLri9",function(e,A){var t=nE("8wL3J");e.exports=(e,A)=>new t(e,A).minor;}),tn("2tsX7",function(e,A){var t=nE("8wL3J");e.exports=(e,A)=>new t(e,A).patch;}),tn("3lzLT",function(e,A){var t=nE("dJ3EL");e.exports=(e,A)=>{let r=t(e,A);return r&&r.prerelease.length?r.prerelease:null;};}),tn("fYuCK",function(e,A){var t=nE("8wL3J");e.exports=(e,A,r)=>new t(e,r).compare(new t(A,r));}),tn("6LnSq",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>t(A,e,r);}),tn("dZkNJ",function(e,A){var t=nE("fYuCK");e.exports=(e,A)=>t(e,A,!0);}),tn("2Qi5H",function(e,A){var t=nE("8wL3J");e.exports=(e,A,r)=>{let n=new t(e,r),o=new t(A,r);return n.compare(o)||n.compareBuild(o);};}),tn("fJeYC",function(e,A){var t=nE("2Qi5H");e.exports=(e,A)=>e.sort((e,r)=>t(e,r,A));}),tn("j1k1X",function(e,A){var t=nE("2Qi5H");e.exports=(e,A)=>e.sort((e,r)=>t(r,e,A));}),tn("ccAMb",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>t(e,A,r)>0;}),tn("4qy3a",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>0>t(e,A,r);}),tn("3ovyF",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>0===t(e,A,r);}),tn("laDmN",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>0!==t(e,A,r);}),tn("3cxkY",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>t(e,A,r)>=0;}),tn("aTQrN",function(e,A){var t=nE("fYuCK");e.exports=(e,A,r)=>0>=t(e,A,r);}),tn("5kn9j",function(e,A){var t=nE("3ovyF"),r=nE("laDmN"),n=nE("ccAMb"),o=nE("3cxkY"),i=nE("4qy3a"),s=nE("aTQrN");e.exports=(e,A,a,l)=>{switch(A){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e===a;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof a&&(a=a.version),e!==a;case"":case"=":case"==":return t(e,a,l);case"!=":return r(e,a,l);case">":return n(e,a,l);case">=":return o(e,a,l);case"<":return i(e,a,l);case"<=":return s(e,a,l);default:throw TypeError("Invalid operator: "+A);}};}),tn("8YrRN",function(e,A){var t=nE("8wL3J"),r=nE("dJ3EL"),n=nE("a4A3m"),o=n.safeRe,i=n.t;e.exports=(e,A)=>{if(e instanceof t)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let n=null;if((A=A||{}).rtl){let t;let r=A.includePrerelease?o[i.COERCERTLFULL]:o[i.COERCERTL];for(;(t=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),r.lastIndex=t.index+t[1].length+t[2].length;r.lastIndex=-1;}else n=e.match(A.includePrerelease?o[i.COERCEFULL]:o[i.COERCE]);if(null===n)return null;let s=n[2],a=n[3]||"0",l=n[4]||"0",c=A.includePrerelease&&n[5]?"-"+n[5]:"",E=A.includePrerelease&&n[6]?"+"+n[6]:"";return r(`${s}.${a}.${l}${c}${E}`,A);};}),tn("fNiVh",function(e,A){let t=Symbol();class r{static get ANY(){return t;}constructor(e,A){if(A=n(A),e instanceof r){if(!!A.loose===e.loose)return e;e=e.value;}l("comparator",e=e.trim().split(/\s+/).join(" "),A),this.options=A,this.loose=!!A.loose,this.parse(e),this.semver===t?this.value="":this.value=this.operator+this.semver.version,l("comp",this);}parse(e){let A=this.options.loose?i[s.COMPARATORLOOSE]:i[s.COMPARATOR],r=e.match(A);if(!r)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=t;}toString(){return this.value;}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===t||e===t)return!0;if("string"==typeof e)try{e=new c(e,this.options);}catch(e){return!1;}return a(e,this.operator,this.semver,this.options);}intersects(e,A){if(!(e instanceof r))throw TypeError("a Comparator is required");return""===this.operator?""===this.value||new E(e.value,A).test(this.value):""===e.operator?""===e.value||new E(this.value,A).test(e.semver):!((A=n(A)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!A.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("=")||a(this.semver,"<",e.semver,A)&&this.operator.startsWith(">")&&e.operator.startsWith("<")||a(this.semver,">",e.semver,A)&&this.operator.startsWith("<")&&e.operator.startsWith(">"));}}e.exports=r;var n=nE("5bRb1"),o=nE("a4A3m"),i=o.safeRe,s=o.t,a=nE("5kn9j"),l=nE("cg13c"),c=nE("8wL3J"),E=nE("gTfXP");}),tn("gTfXP",function(e,A){class t{constructor(e,A){if(A=n(A),e instanceof t){if(!!A.loose===e.loose&&!!A.includePrerelease===e.includePrerelease)return e;return new t(e.raw,A);}if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.formatted=void 0,this;if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.includePrerelease,this.raw=e.trim().replace(/\s+/g," "),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=>!I(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&&B(e[0])){this.set=[e];break;}}}this.formatted=void 0;}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e0&&(this.formatted+="||");let A=this.set[e];for(let e=0;e0&&(this.formatted+=" "),this.formatted+=A[e].toString().trim();}}return this.formatted;}format(){return this.range;}toString(){return this.range;}parseRange(e){let A=((this.options.includePrerelease&&Q)|(this.options.loose&&C))+":"+e,t=r.get(A);if(t)return t;let n=this.options.loose,s=n?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];i("hyphen replace",e=e.replace(s,v(this.options.includePrerelease))),i("comparator trim",e=e.replace(l[c.COMPARATORTRIM],E)),i("tilde trim",e=e.replace(l[c.TILDETRIM],g)),i("caret trim",e=e.replace(l[c.CARETTRIM],u));let a=e.split(" ").map(e=>f(e,this.options)).join(" ").split(/\s+/).map(e=>k(e,this.options));n&&(a=a.filter(e=>(i("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE])))),i("range list",a);let h=new Map();for(let e of a.map(e=>new o(e,this.options))){if(I(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let B=[...h.values()];return r.set(A,B),B;}intersects(e,A){if(!(e instanceof t))throw TypeError("a Range is required");return this.set.some(t=>d(t,A)&&e.set.some(e=>d(e,A)&&t.every(t=>e.every(e=>t.intersects(e,A)))));}test(e){if(!e)return!1;if("string"==typeof e)try{e=new s(e,this.options);}catch(e){return!1;}for(let A=0;A"<0.0.0-0"===e.value,B=e=>""===e.value,d=(e,A)=>{let t=!0,r=e.slice(),n=r.pop();for(;t&&r.length;)t=r.every(e=>n.intersects(e,A)),n=r.pop();return t;},f=(e,A)=>(i("comp",e,A),i("caret",e=w(e,A)),i("tildes",e=y(e,A)),i("xrange",e=R(e,A)),i("stars",e=S(e,A)),e),p=e=>!e||"x"===e.toLowerCase()||"*"===e,y=(e,A)=>e.trim().split(/\s+/).map(e=>m(e,A)).join(" "),m=(e,A)=>{let t=A.loose?l[c.TILDELOOSE]:l[c.TILDE];return e.replace(t,(A,t,r,n,o)=>{let s;return i("tilde",e,A,t,r,n,o),p(t)?s="":p(r)?s=`>=${t}.0.0 <${+t+1}.0.0-0`:p(n)?s=`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:o?(i("replaceTilde pr",o),s=`>=${t}.${r}.${n}-${o} <${t}.${+r+1}.0-0`):s=`>=${t}.${r}.${n} <${t}.${+r+1}.0-0`,i("tilde return",s),s;});},w=(e,A)=>e.trim().split(/\s+/).map(e=>b(e,A)).join(" "),b=(e,A)=>{i("caret",e,A);let t=A.loose?l[c.CARETLOOSE]:l[c.CARET],r=A.includePrerelease?"-0":"";return e.replace(t,(A,t,n,o,s)=>{let a;return i("caret",e,A,t,n,o,s),p(t)?a="":p(n)?a=`>=${t}.0.0${r} <${+t+1}.0.0-0`:p(o)?a="0"===t?`>=${t}.${n}.0${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.0${r} <${+t+1}.0.0-0`:s?(i("replaceCaret pr",s),a="0"===t?"0"===n?`>=${t}.${n}.${o}-${s} <${t}.${n}.${+o+1}-0`:`>=${t}.${n}.${o}-${s} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${o}-${s} <${+t+1}.0.0-0`):(i("no pr"),a="0"===t?"0"===n?`>=${t}.${n}.${o}${r} <${t}.${n}.${+o+1}-0`:`>=${t}.${n}.${o}${r} <${t}.${+n+1}.0-0`:`>=${t}.${n}.${o} <${+t+1}.0.0-0`),i("caret return",a),a;});},R=(e,A)=>(i("replaceXRanges",e,A),e.split(/\s+/).map(e=>D(e,A)).join(" ")),D=(e,A)=>{e=e.trim();let t=A.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(t,(t,r,n,o,s,a)=>{i("xRange",e,t,r,n,o,s,a);let l=p(n),c=l||p(o),E=c||p(s);return"="===r&&E&&(r=""),a=A.includePrerelease?"-0":"",l?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&E?(c&&(o=0),s=0,">"===r?(r=">=",c?(n=+n+1,o=0):o=+o+1,s=0):"<="===r&&(r="<",c?n=+n+1:o=+o+1),"<"===r&&(a="-0"),t=`${r+n}.${o}.${s}${a}`):c?t=`>=${n}.0.0${a} <${+n+1}.0.0-0`:E&&(t=`>=${n}.${o}.0${a} <${n}.${+o+1}.0-0`),i("xRange return",t),t;});},S=(e,A)=>(i("replaceStars",e,A),e.trim().replace(l[c.STAR],"")),k=(e,A)=>(i("replaceGTE0",e,A),e.trim().replace(l[A.includePrerelease?c.GTE0PRE:c.GTE0],"")),v=e=>(A,t,r,n,o,i,s,a,l,c,E,g)=>(t=p(r)?"":p(n)?`>=${r}.0.0${e?"-0":""}`:p(o)?`>=${r}.${n}.0${e?"-0":""}`:i?">="+t:`>=${t}${e?"-0":""}`,a=p(l)?"":p(c)?`<${+l+1}.0.0-0`:p(E)?`<${l}.${+c+1}.0-0`:g?`<=${l}.${c}.${E}-${g}`:e?`<${l}.${c}.${+E+1}-0`:"<="+a,`${t} ${a}`.trim()),N=(e,A,t)=>{for(let t=0;t0){let r=e[t].semver;if(r.major===A.major&&r.minor===A.minor&&r.patch===A.patch)return!0;}return!1;}return!0;};}),tn("3rMGs",function(e,A){e.exports=class{constructor(){this.max=1e3,this.map=new Map();}get(e){let A=this.map.get(e);if(void 0!==A)return this.map.delete(e),this.map.set(e,A),A;}delete(e){return this.map.delete(e);}set(e,A){if(!this.delete(e)&&void 0!==A){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e);}this.map.set(e,A);}return this;}};}),tn("kPBDZ",function(e,A){var t=nE("gTfXP");e.exports=(e,A,r)=>{try{A=new t(A,r);}catch(e){return!1;}return A.test(e);};}),tn("cVl8o",function(e,A){var t=nE("gTfXP");e.exports=(e,A)=>new t(e,A).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),tn("j0UMd",function(e,A){var t=nE("8wL3J"),r=nE("gTfXP");e.exports=(e,A,n)=>{let o=null,i=null,s=null;try{s=new r(A,n);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||-1===i.compare(e))&&(i=new t(o=e,n));}),o;};}),tn("kgJyO",function(e,A){var t=nE("8wL3J"),r=nE("gTfXP");e.exports=(e,A,n)=>{let o=null,i=null,s=null;try{s=new r(A,n);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!o||1===i.compare(e))&&(i=new t(o=e,n));}),o;};}),tn("k8woQ",function(e,A){var t=nE("8wL3J"),r=nE("gTfXP"),n=nE("ccAMb");e.exports=(e,A)=>{e=new r(e,A);let o=new t("0.0.0");if(e.test(o)||(o=new t("0.0.0-0"),e.test(o)))return o;o=null;for(let A=0;A{let A=new t(e.semver.version);switch(e.operator){case">":0===A.prerelease.length?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!i||n(A,i))&&(i=A);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),i&&(!o||n(o,i))&&(o=i);}return o&&e.test(o)?o:null;};}),tn("cQA7W",function(e,A){var t=nE("gTfXP");e.exports=(e,A)=>{try{return new t(e,A).range||"*";}catch(e){return null;}};}),tn("j3dZX",function(e,A){var t=nE("8wL3J"),r=nE("fNiVh");let{ANY:n}=r;var o=nE("gTfXP"),i=nE("kPBDZ"),s=nE("ccAMb"),a=nE("4qy3a"),l=nE("aTQrN"),c=nE("3cxkY");e.exports=(e,A,E,g)=>{let u,h,Q,C,I;switch(e=new t(e,g),A=new o(A,g),E){case">":u=s,h=l,Q=a,C=">",I=">=";break;case"<":u=a,h=c,Q=s,C="<",I="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(i(e,A,g))return!1;for(let t=0;t{e.semver===n&&(e=new r(">=0.0.0")),i=i||e,s=s||e,u(e.semver,i.semver,g)?i=e:Q(e.semver,s.semver,g)&&(s=e);}),i.operator===C||i.operator===I||(!s.operator||s.operator===C)&&h(e,s.semver)||s.operator===I&&Q(e,s.semver))return!1;}return!0;};}),tn("bENPT",function(e,A){var t=nE("j3dZX");e.exports=(e,A,r)=>t(e,A,">",r);}),tn("iehU8",function(e,A){var t=nE("j3dZX");e.exports=(e,A,r)=>t(e,A,"<",r);}),tn("5NOPx",function(e,A){var t=nE("gTfXP");e.exports=(e,A,r)=>(e=new t(e,r),A=new t(A,r),e.intersects(A,r));}),tn("fdN0I",function(e,A){var t=nE("kPBDZ"),r=nE("fYuCK");e.exports=(e,A,n)=>{let o=[],i=null,s=null,a=e.sort((e,A)=>r(e,A,n));for(let e of a)t(e,A,n)?(s=e,i||(i=e)):(s&&o.push([i,s]),s=null,i=null);i&&o.push([i,null]);let l=[];for(let[e,A]of o)e===A?l.push(e):A||e!==a[0]?A?e===a[0]?l.push("<="+A):l.push(`${e} - ${A}`):l.push(">="+e):l.push("*");let c=l.join(" || "),E="string"==typeof A.raw?A.raw:A+"";return c.length=0.0.0-0")],a=[new r(">=0.0.0")],l=(e,A,t)=>{let r,l,g,u,h,Q,C;if(e===A)return!0;if(1===e.length&&e[0].semver===n){if(1===A.length&&A[0].semver===n)return!0;e=t.includePrerelease?s:a;}if(1===A.length&&A[0].semver===n){if(t.includePrerelease)return!0;A=a;}let I=new Set();for(let A of e)">"===A.operator||">="===A.operator?r=c(r,A,t):"<"===A.operator||"<="===A.operator?l=E(l,A,t):I.add(A.semver);if(I.size>1||r&&l&&((g=i(r.semver,l.semver,t))>0||0===g&&(">="!==r.operator||"<="!==l.operator)))return null;for(let e of I){if(r&&!o(e,r+"",t)||l&&!o(e,l+"",t))return null;for(let r of A)if(!o(e,r+"",t))return!1;return!0;}let B=!!l&&!t.includePrerelease&&!!l.semver.prerelease.length&&l.semver,d=!!r&&!t.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(B&&1===B.prerelease.length&&"<"===l.operator&&0===B.prerelease[0]&&(B=!1),A)){if(C=C||">"===e.operator||">="===e.operator,Q=Q||"<"===e.operator||"<="===e.operator,r){if(d&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===d.major&&e.semver.minor===d.minor&&e.semver.patch===d.patch&&(d=!1),">"===e.operator||">="===e.operator){if((u=c(r,e,t))===e&&u!==r)return!1;}else if(">="===r.operator&&!o(r.semver,e+"",t))return!1;}if(l){if(B&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===B.major&&e.semver.minor===B.minor&&e.semver.patch===B.patch&&(B=!1),"<"===e.operator||"<="===e.operator){if((h=E(l,e,t))===e&&h!==l)return!1;}else if("<="===l.operator&&!o(l.semver,e+"",t))return!1;}if(!e.operator&&(l||r)&&0!==g)return!1;}return(!r||!Q||!!l||0===g)&&(!l||!C||!!r||0===g)&&!d&&!B;},c=(e,A,t)=>{if(!e)return A;let r=i(e.semver,A.semver,t);return r>0?e:r<0?A:">"===A.operator&&">="===e.operator?A:e;},E=(e,A,t)=>{if(!e)return A;let r=i(e.semver,A.semver,t);return r<0?e:r>0?A:"<"===A.operator&&"<="===e.operator?A:e;};e.exports=(e,A,r={})=>{if(e===A)return!0;e=new t(e,r),A=new t(A,r);let n=!1;A:for(let t of e.set){for(let e of A.set){let A=l(t,e,r);if(n=n||null!==A,A)continue A;}if(n)return!1;}return!0;};}),tn("drEX5",function(e,A){var t,r,n,o,i,s,c,E,g,u,h,Q,C;function I(e,A){return Object.keys(A).forEach(t=>{"default"===t||"__esModule"===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:()=>A[t]});}),e;}function B(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}function d(e,A=!0){return A?(0,rG.basename)(e):(0,rG.basename)(e,(0,rG.extname)(e));}function f(e){return(0,rG.normalize)(e).replace(RegExp((0,t.default)(rG.sep)+"$"),"");}function p(e,A=".exe",t=""){return"win32"===process.platform?`${e}${A}`:`${e}${t}`;}function y(e,A){let t=(0,rG.extname)(e),r=`${A}${(0,rG.basename)(e,t)}${t}`;return(0,rG.join)((0,rG.dirname)(e),r);}function m(e,A){let t=(0,rG.extname)(e),r=`${(0,rG.basename)(e,t)}${A}${t}`;return(0,rG.join)((0,rG.dirname)(e),r);}function w(e,A=".cmd",t=".sh"){return"win32"===process.platform?`${e}${A}`:`${e}${t}`;}function b(e){return"win32"===process.platform?e:"./"+e;}function R(e){let A=(0,rG.extname)(e).length;return e.slice(0,-A);}function D(e,A){return l(r)(e,A);}function S(e,A){let t=(0,rG.relative)(A,e);return!(!t||".."===t||t.startsWith(".."+rG.sep)||t===(0,rG.resolve)(e));}a(e.exports,"addExeExt",()=>p),a(e.exports,"addShExt",()=>w),a(e.exports,"addShRelativePrefix",()=>b),a(e.exports,"dirname",()=>rG.dirname),a(e.exports,"join",()=>rG.join),t=nE("1ondq"),r=nE("7BfUa"),n={},B(o={},"name",()=>d),B(i={},"normalizeTrim",()=>f),B(s={},"addExeExt",()=>p),B(c={},"addNamePrefix",()=>y),B(E={},"addNameSuffix",()=>m),B(g={},"addShExt",()=>w),B(u={},"addShRelativePrefix",()=>b),B(h={},"removeExt",()=>R),B(Q={},"replaceExt",()=>D),B(C={},"isPathInside",()=>S),I(n,o),I(n,i),I(n,s),I(n,c),I(n,E),I(n,g),I(n,u),I(n,h),I(n,Q),I(n,C);}),tn("1ondq",function(e,A){function t(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d");}a(e.exports,"default",()=>t);}),tn("7BfUa",function(e,A){e.exports=function(e,A){if("string"!=typeof e||0===e.length)return e;var t,r=rG.basename(e,rG.extname(e))+A,n=rG.join(rG.dirname(e),r);return(t=e.slice(0,2))==="."+rG.sep||"./"===t?"."+rG.sep+n:n;};}),tn("g9WSN",function(e,A){var t,r,n,o;function i(e){return o(this,void 0,void 0,function*(){if(E.IS_WINDOWS&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield E.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*(){rW.ok(e,"a path argument must be provided"),yield E.mkdir(e,{recursive:!0});});}function a(e){return o(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'tool' is required");let A=[];if(E.IS_WINDOWS&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(c.delimiter))e&&A.push(e);if(E.isRooted(e)){let t=yield E.tryGetExecutablePath(e,A);return t?[t]:[];}if(e.includes(c.sep))return[];let t=[];if(process.env.PATH)for(let e of process.env.PATH.split(c.delimiter))e&&t.push(e);let r=[];for(let n of t){let t=yield E.tryGetExecutablePath(c.join(n,e),A);t&&r.push(t);}return r;});}function l(e,A,t){return o(this,void 0,void 0,function*(){if((yield E.lstat(e)).isSymbolicLink()){try{yield E.lstat(A),yield E.unlink(A);}catch(e){"EPERM"===e.code&&(yield E.chmod(A,"0666"),yield E.unlink(A));}let t=yield E.readlink(e);yield E.symlink(t,A,E.IS_WINDOWS?"junction":null);}else(!(yield E.exists(A))||t)&&(yield E.copyFile(e,A));});}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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=n(rG),E=n(nE("2qpn6"));e.exports.cp=function(e,A,t={}){return o(this,void 0,void 0,function*(){let{force:r,recursive:n,copySourceDirectory:i}=function(e){let A=null==e.force||e.force;return{force:A,recursive:!!e.recursive,copySourceDirectory:null==e.copySourceDirectory||!!e.copySourceDirectory};}(t),a=(yield E.exists(A))?yield E.stat(A):null;if(a&&a.isFile()&&!r)return;let g=a&&a.isDirectory()&&i?c.join(A,c.basename(e)):A;if(!(yield E.exists(e)))throw Error("no such file or directory: "+e);if((yield E.stat(e)).isDirectory()){if(n)yield function e(A,t,r,n){return o(this,void 0,void 0,function*(){if(!(r>=255)){for(let o of(r++,yield s(t),yield E.readdir(A))){let i=`${A}/${o}`,s=`${t}/${o}`;(yield E.lstat(i)).isDirectory()?yield e(i,s,r,n):yield l(i,s,n);}yield E.chmod(t,(yield E.stat(A)).mode);}});}(e,g,0,r);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);}else{if(""===c.relative(e,g))throw Error(`'${g}' and '${e}' are the same file`);yield l(e,g,r);}});},e.exports.mv=function(e,A,t={}){return o(this,void 0,void 0,function*(){if(yield E.exists(A)){let r=!0;if((yield E.isDirectory(A))&&(A=c.join(A,c.basename(e)),r=yield E.exists(A)),r){if(null==t.force||t.force)yield i(A);else throw Error("Destination already exists");}}yield s(c.dirname(A)),yield E.rename(e,A);});},e.exports.rmRF=i,e.exports.mkdirP=s,e.exports.which=function e(A,t){return o(this,void 0,void 0,function*(){if(!A)throw Error("parameter 'tool' is required");if(t){let t=yield e(A,!1);if(!t){if(E.IS_WINDOWS)throw Error(`Unable to locate executable file: ${A}. 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: ${A}. 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 t;}let r=yield a(A);return r&&r.length>0?r[0]:"";});},e.exports.findInPath=a;}),tn("2qpn6",function(e,A){var t,r,n,o,i;function s(e){return(1&e.mode)>0||(8&e.mode)>0&&e.gid===process.getgid()||(64&e.mode)>0&&e.uid===process.getuid();}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).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 a=n(rO),l=n(rG);i=a.promises,e.exports.chmod=i.chmod,e.exports.copyFile=i.copyFile,e.exports.lstat=i.lstat,e.exports.mkdir=i.mkdir,e.exports.open=i.open,e.exports.readdir=i.readdir,e.exports.readlink=i.readlink,e.exports.rename=i.rename,e.exports.rm=i.rm,e.exports.rmdir=i.rmdir,e.exports.stat=i.stat,e.exports.symlink=i.symlink,e.exports.unlink=i.unlink,e.exports.IS_WINDOWS="win32"===process.platform,e.exports.UV_FS_O_EXLOCK=268435456,e.exports.READONLY=a.constants.O_RDONLY,e.exports.exists=function(A){return o(this,void 0,void 0,function*(){try{yield e.exports.stat(A);}catch(e){if("ENOENT"===e.code)return!1;throw e;}return!0;});},e.exports.isDirectory=function(A,t=!1){return o(this,void 0,void 0,function*(){return(t?yield e.exports.stat(A):yield e.exports.lstat(A)).isDirectory();});},e.exports.isRooted=function(A){var t;if(t=(t=A)||"",!(A=e.exports.IS_WINDOWS?(t=t.replace(/\//g,"\\")).replace(/\\\\+/g,"\\"):t.replace(/\/\/+/g,"/")))throw Error('isRooted() parameter "p" cannot be empty');return e.exports.IS_WINDOWS?A.startsWith("\\")||/^[A-Z]:/i.test(A):A.startsWith("/");},e.exports.tryGetExecutablePath=function(A,t){return o(this,void 0,void 0,function*(){let r;try{r=yield e.exports.stat(A);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${A}': ${e}`);}if(r&&r.isFile()){if(e.exports.IS_WINDOWS){let e=l.extname(A).toUpperCase();if(t.some(A=>A.toUpperCase()===e))return A;}else if(s(r))return A;}let n=A;for(let o of t){A=n+o,r=void 0;try{r=yield e.exports.stat(A);}catch(e){"ENOENT"!==e.code&&console.log(`Unexpected error attempting to determine if executable file exists '${A}': ${e}`);}if(r&&r.isFile()){if(e.exports.IS_WINDOWS){try{let t=l.dirname(A),r=l.basename(A).toUpperCase();for(let n of yield e.exports.readdir(t))if(r===n.toUpperCase()){A=l.join(t,n);break;}}catch(e){console.log(`Unexpected error attempting to determine the actual case of the file '${A}': ${e}`);}return A;}if(s(r))return A;}}return"";});},e.exports.getCmdPath=function(){var e;return null!==(e=process.env.COMSPEC)&&void 0!==e?e:"cmd.exe";};}),tn("6kHxT",function(e,A){var t,r,n,o,i;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports._readLinuxVersionFile=e.exports._getOsVersion=e.exports._findMatch=void 0;let s=n(nE("a5mzA"));i=nE("k1l4q"),e.exports._findMatch=function(A,t,r,n){return o(this,void 0,void 0,function*(){let o,a,l;let c=r_.platform();for(let o of r){let r=o.version;if(i.debug(`check ${r} satisfies ${A}`),s.satisfies(r,A)&&(!t||o.stable===t)&&(l=o.files.find(A=>{i.debug(`${A.arch}===${n} && ${A.platform}===${c}`);let t=A.arch===n&&A.platform===c;if(t&&A.platform_version){let r=e.exports._getOsVersion();t=r===A.platform_version||s.satisfies(r,A.platform_version);}return t;}))){i.debug("matched "+o.version),a=o;break;}}return a&&l&&((o=Object.assign({},a)).files=[l]),o;});},e.exports._getOsVersion=function(){let A=r_.platform(),t="";if("darwin"===A)t=r7.execSync("sw_vers -productVersion").toString();else if("linux"===A){let A=e.exports._readLinuxVersionFile();if(A)for(let e of A.split("\n")){let A=e.split("=");if(2===A.length&&("VERSION_ID"===A[0].trim()||"DISTRIB_RELEASE"===A[0].trim())){t=A[1].trim().replace(/^"/,"").replace(/"$/,"");break;}}}return t;},e.exports._readLinuxVersionFile=function(){let e="/etc/lsb-release",A="/etc/os-release",t="";return rO.existsSync(e)?t=rO.readFileSync(e).toString():rO.existsSync(A)&&(t=rO.readFileSync(A).toString()),t;};}),tn("a5mzA",function(e,A){function t(e){k[e]=v++;}function r(e){for(var A=0;Am||!(A.loose?D[k.LOOSE]:D[k.FULL]).test(e))return null;try{return new o(e,A);}catch(e){return null;}}function o(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof o){if(e.loose===A.loose)return e;e=e.version;}else if("string"!=typeof e)throw TypeError("Invalid Version: "+e);if(e.length>m)throw TypeError("version is longer than "+m+" characters");if(!(this instanceof o))return new o(e,A);y("SemVer",e,A),this.options=A,this.loose=!!A.loose;var t=e.trim().match(A.loose?D[k.LOOSE]:D[k.FULL]);if(!t)throw TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+t[1],this.minor=+t[2],this.patch=+t[3],this.major>w||this.major<0)throw TypeError("Invalid major version");if(this.minor>w||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>w||this.patch<0)throw TypeError("Invalid patch version");t[4]?this.prerelease=t[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var A=+e;if(A>=0&&Ae?-1:1;}function s(e,A,t){return new o(e,t).compare(new o(A,t));}function a(e,A,t){return s(e,A,t)>0;}function l(e,A,t){return 0>s(e,A,t);}function c(e,A,t){return 0===s(e,A,t);}function E(e,A,t){return 0!==s(e,A,t);}function g(e,A,t){return s(e,A,t)>=0;}function u(e,A,t){return 0>=s(e,A,t);}function h(e,A,t,r){switch(A){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof t&&(t=t.version),e===t;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof t&&(t=t.version),e!==t;case"":case"=":case"==":return c(e,t,r);case"!=":return E(e,t,r);case">":return a(e,t,r);case">=":return g(e,t,r);case"<":return l(e,t,r);case"<=":return u(e,t,r);default:throw TypeError("Invalid operator: "+A);}}function Q(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof Q){if(!!A.loose===e.loose)return e;e=e.value;}if(!(this instanceof Q))return new Q(e,A);e=e.trim().split(/\s+/).join(" "),y("comparator",e,A),this.options=A,this.loose=!!A.loose,this.parse(e),this.semver===T?this.value="":this.value=this.operator+this.semver.version,y("comp",this);}function C(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof C)return!!A.loose===e.loose&&!!A.includePrerelease===e.includePrerelease?e:new C(e.raw,A);if(e instanceof Q)return new C(e.value,A);if(!(this instanceof C))return new C(e,A);if(this.options=A,this.loose=!!A.loose,this.includePrerelease=!!A.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 I(e,A){for(var t=!0,r=e.slice(),n=r.pop();t&&r.length;)t=r.every(function(e){return n.intersects(e,A);}),n=r.pop();return t;}function B(e){return!e||"x"===e.toLowerCase()||"*"===e;}function d(e,A,t,r,n,o,i,s,a,l,c,E,g){return((A=B(t)?"":B(r)?">="+t+".0.0":B(n)?">="+t+"."+r+".0":">="+A)+" "+(s=B(a)?"":B(l)?"<"+(+a+1)+".0.0":B(c)?"<"+a+"."+(+l+1)+".0":E?"<="+a+"."+l+"."+c+"-"+E:"<="+s)).trim();}function f(e,A,t){try{A=new C(A,t);}catch(e){return!1;}return A.test(e);}function p(e,A,t,r){switch(e=new o(e,r),A=new C(A,r),t){case">":n=a,i=u,s=l,c=">",E=">=";break;case"<":n=l,i=g,s=a,c="<",E="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"');}if(f(e,A,r))return!1;for(var n,i,s,c,E,h=0;h=0.0.0")),B=B||e,d=d||e,n(e.semver,B.semver,r)?B=e:s(e.semver,d.semver,r)&&(d=e);}),B.operator===c||B.operator===E||(!d.operator||d.operator===c)&&i(e,d.semver)||d.operator===E&&s(e,d.semver))return!1;}return!0;}A=e.exports=o,"object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?y=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e);}:y=function(){},A.SEMVER_SPEC_VERSION="2.0.0",m=256,w=Number.MAX_SAFE_INTEGER||9007199254740991,b=m-6,R=A.re=[],D=A.safeRe=[],S=A.src=[],k=A.tokens={},v=0,F=[["\\s",1],["\\d",m],[N="[a-zA-Z0-9-]",b]],t("NUMERICIDENTIFIER"),S[k.NUMERICIDENTIFIER]="0|[1-9]\\d*",t("NUMERICIDENTIFIERLOOSE"),S[k.NUMERICIDENTIFIERLOOSE]="\\d+",t("NONNUMERICIDENTIFIER"),S[k.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+N+"*",t("MAINVERSION"),S[k.MAINVERSION]="("+S[k.NUMERICIDENTIFIER]+")\\.("+S[k.NUMERICIDENTIFIER]+")\\.("+S[k.NUMERICIDENTIFIER]+")",t("MAINVERSIONLOOSE"),S[k.MAINVERSIONLOOSE]="("+S[k.NUMERICIDENTIFIERLOOSE]+")\\.("+S[k.NUMERICIDENTIFIERLOOSE]+")\\.("+S[k.NUMERICIDENTIFIERLOOSE]+")",t("PRERELEASEIDENTIFIER"),S[k.PRERELEASEIDENTIFIER]="(?:"+S[k.NUMERICIDENTIFIER]+"|"+S[k.NONNUMERICIDENTIFIER]+")",t("PRERELEASEIDENTIFIERLOOSE"),S[k.PRERELEASEIDENTIFIERLOOSE]="(?:"+S[k.NUMERICIDENTIFIERLOOSE]+"|"+S[k.NONNUMERICIDENTIFIER]+")",t("PRERELEASE"),S[k.PRERELEASE]="(?:-("+S[k.PRERELEASEIDENTIFIER]+"(?:\\."+S[k.PRERELEASEIDENTIFIER]+")*))",t("PRERELEASELOOSE"),S[k.PRERELEASELOOSE]="(?:-?("+S[k.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+S[k.PRERELEASEIDENTIFIERLOOSE]+")*))",t("BUILDIDENTIFIER"),S[k.BUILDIDENTIFIER]=N+"+",t("BUILD"),S[k.BUILD]="(?:\\+("+S[k.BUILDIDENTIFIER]+"(?:\\."+S[k.BUILDIDENTIFIER]+")*))",t("FULL"),t("FULLPLAIN"),S[k.FULLPLAIN]="v?"+S[k.MAINVERSION]+S[k.PRERELEASE]+"?"+S[k.BUILD]+"?",S[k.FULL]="^"+S[k.FULLPLAIN]+"$",t("LOOSEPLAIN"),S[k.LOOSEPLAIN]="[v=\\s]*"+S[k.MAINVERSIONLOOSE]+S[k.PRERELEASELOOSE]+"?"+S[k.BUILD]+"?",t("LOOSE"),S[k.LOOSE]="^"+S[k.LOOSEPLAIN]+"$",t("GTLT"),S[k.GTLT]="((?:<|>)?=?)",t("XRANGEIDENTIFIERLOOSE"),S[k.XRANGEIDENTIFIERLOOSE]=S[k.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",t("XRANGEIDENTIFIER"),S[k.XRANGEIDENTIFIER]=S[k.NUMERICIDENTIFIER]+"|x|X|\\*",t("XRANGEPLAIN"),S[k.XRANGEPLAIN]="[v=\\s]*("+S[k.XRANGEIDENTIFIER]+")(?:\\.("+S[k.XRANGEIDENTIFIER]+")(?:\\.("+S[k.XRANGEIDENTIFIER]+")(?:"+S[k.PRERELEASE]+")?"+S[k.BUILD]+"?)?)?",t("XRANGEPLAINLOOSE"),S[k.XRANGEPLAINLOOSE]="[v=\\s]*("+S[k.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[k.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[k.XRANGEIDENTIFIERLOOSE]+")(?:"+S[k.PRERELEASELOOSE]+")?"+S[k.BUILD]+"?)?)?",t("XRANGE"),S[k.XRANGE]="^"+S[k.GTLT]+"\\s*"+S[k.XRANGEPLAIN]+"$",t("XRANGELOOSE"),S[k.XRANGELOOSE]="^"+S[k.GTLT]+"\\s*"+S[k.XRANGEPLAINLOOSE]+"$",t("COERCE"),S[k.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",t("COERCERTL"),R[k.COERCERTL]=RegExp(S[k.COERCE],"g"),D[k.COERCERTL]=RegExp(r(S[k.COERCE]),"g"),t("LONETILDE"),S[k.LONETILDE]="(?:~>?)",t("TILDETRIM"),S[k.TILDETRIM]="(\\s*)"+S[k.LONETILDE]+"\\s+",R[k.TILDETRIM]=RegExp(S[k.TILDETRIM],"g"),D[k.TILDETRIM]=RegExp(r(S[k.TILDETRIM]),"g"),t("TILDE"),S[k.TILDE]="^"+S[k.LONETILDE]+S[k.XRANGEPLAIN]+"$",t("TILDELOOSE"),S[k.TILDELOOSE]="^"+S[k.LONETILDE]+S[k.XRANGEPLAINLOOSE]+"$",t("LONECARET"),S[k.LONECARET]="(?:\\^)",t("CARETTRIM"),S[k.CARETTRIM]="(\\s*)"+S[k.LONECARET]+"\\s+",R[k.CARETTRIM]=RegExp(S[k.CARETTRIM],"g"),D[k.CARETTRIM]=RegExp(r(S[k.CARETTRIM]),"g"),t("CARET"),S[k.CARET]="^"+S[k.LONECARET]+S[k.XRANGEPLAIN]+"$",t("CARETLOOSE"),S[k.CARETLOOSE]="^"+S[k.LONECARET]+S[k.XRANGEPLAINLOOSE]+"$",t("COMPARATORLOOSE"),S[k.COMPARATORLOOSE]="^"+S[k.GTLT]+"\\s*("+S[k.LOOSEPLAIN]+")$|^$",t("COMPARATOR"),S[k.COMPARATOR]="^"+S[k.GTLT]+"\\s*("+S[k.FULLPLAIN]+")$|^$",t("COMPARATORTRIM"),S[k.COMPARATORTRIM]="(\\s*)"+S[k.GTLT]+"\\s*("+S[k.LOOSEPLAIN]+"|"+S[k.XRANGEPLAIN]+")",R[k.COMPARATORTRIM]=RegExp(S[k.COMPARATORTRIM],"g"),D[k.COMPARATORTRIM]=RegExp(r(S[k.COMPARATORTRIM]),"g"),L="$1$2$3",t("HYPHENRANGE"),S[k.HYPHENRANGE]="^\\s*("+S[k.XRANGEPLAIN]+")\\s+-\\s+("+S[k.XRANGEPLAIN]+")\\s*$",t("HYPHENRANGELOOSE"),S[k.HYPHENRANGELOOSE]="^\\s*("+S[k.XRANGEPLAINLOOSE]+")\\s+-\\s+("+S[k.XRANGEPLAINLOOSE]+")\\s*$",t("STAR"),S[k.STAR]="(<|>)?=?\\s*\\*";for(var y,m,w,b,R,D,S,k,v,N,F,L,U,T,M=0;M=0;)"number"==typeof this.prerelease[t]&&(this.prerelease[t]++,t=-2);-1===t&&this.prerelease.push(0);}A&&(this.prerelease[0]===A?isNaN(this.prerelease[1])&&(this.prerelease=[A,0]):this.prerelease=[A,0]);break;default:throw Error("invalid increment argument: "+e);}return this.format(),this.raw=this.version,this;},A.inc=function(e,A,t,r){"string"==typeof t&&(r=t,t=void 0);try{return new o(e,t).inc(A,r).version;}catch(e){return null;}},A.diff=function(e,A){if(c(e,A))return null;var t=n(e),r=n(A),o="";if(t.prerelease.length||r.prerelease.length){o="pre";var i="prerelease";}for(var s in t)if(("major"===s||"minor"===s||"patch"===s)&&t[s]!==r[s])return o+s;return i;},A.compareIdentifiers=i,U=/^[0-9]+$/,A.rcompareIdentifiers=function(e,A){return i(A,e);},A.major=function(e,A){return new o(e,A).major;},A.minor=function(e,A){return new o(e,A).minor;},A.patch=function(e,A){return new o(e,A).patch;},A.compare=s,A.compareLoose=function(e,A){return s(e,A,!0);},A.compareBuild=function(e,A,t){var r=new o(e,t),n=new o(A,t);return r.compare(n)||r.compareBuild(n);},A.rcompare=function(e,A,t){return s(A,e,t);},A.sort=function(e,t){return e.sort(function(e,r){return A.compareBuild(e,r,t);});},A.rsort=function(e,t){return e.sort(function(e,r){return A.compareBuild(r,e,t);});},A.gt=a,A.lt=l,A.eq=c,A.neq=E,A.gte=g,A.lte=u,A.cmp=h,A.Comparator=Q,T={},Q.prototype.parse=function(e){var A=this.options.loose?D[k.COMPARATORLOOSE]:D[k.COMPARATOR],t=e.match(A);if(!t)throw TypeError("Invalid comparator: "+e);this.operator=void 0!==t[1]?t[1]:"","="===this.operator&&(this.operator=""),t[2]?this.semver=new o(t[2],this.options.loose):this.semver=T;},Q.prototype.toString=function(){return this.value;},Q.prototype.test=function(e){if(y("Comparator.test",e,this.options.loose),this.semver===T||e===T)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);},Q.prototype.intersects=function(e,A){if(!(e instanceof Q))throw TypeError("a Comparator is required");if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),""===this.operator)return""===this.value||(t=new C(e.value,A),f(this.value,t,A));if(""===e.operator)return""===e.value||(t=new C(this.value,A),f(e.semver,t,A));var t,r=(">="===this.operator||">"===this.operator)&&(">="===e.operator||">"===e.operator),n=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),o=this.semver.version===e.semver.version,i=(">="===this.operator||"<="===this.operator)&&(">="===e.operator||"<="===e.operator),s=h(this.semver,"<",e.semver,A)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),a=h(this.semver,">",e.semver,A)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||n||o&&i||s||a;},A.Range=C,C.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim();}).join("||").trim(),this.range;},C.prototype.toString=function(){return this.range;},C.prototype.parseRange=function(e){var A=this.options.loose,t=A?D[k.HYPHENRANGELOOSE]:D[k.HYPHENRANGE];e=e.replace(t,d),y("hyphen replace",e),e=e.replace(D[k.COMPARATORTRIM],L),y("comparator trim",e,D[k.COMPARATORTRIM]),e=(e=(e=e.replace(D[k.TILDETRIM],"$1~")).replace(D[k.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=A?D[k.COMPARATORLOOSE]:D[k.COMPARATOR],n=e.split(" ").map(function(e){var A,t,r,n,o,i,s,a,l;return A=e,t=this.options,y("comp",A,t),r=A,n=t,A=r.trim().split(/\s+/).map(function(e){var A,t,r;return y("caret",A=e,t=n),r=t.loose?D[k.CARETLOOSE]:D[k.CARET],A.replace(r,function(e,t,r,n,o){var i;return y("caret",A,e,t,r,n,o),B(t)?i="":B(r)?i=">="+t+".0.0 <"+(+t+1)+".0.0":B(n)?i="0"===t?">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":">="+t+"."+r+".0 <"+(+t+1)+".0.0":o?(y("replaceCaret pr",o),i="0"===t?"0"===r?">="+t+"."+r+"."+n+"-"+o+" <"+t+"."+r+"."+(+n+1):">="+t+"."+r+"."+n+"-"+o+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+n+"-"+o+" <"+(+t+1)+".0.0"):(y("no pr"),i="0"===t?"0"===r?">="+t+"."+r+"."+n+" <"+t+"."+r+"."+(+n+1):">="+t+"."+r+"."+n+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+n+" <"+(+t+1)+".0.0"),y("caret return",i),i;});}).join(" "),y("caret",A),o=A,i=t,A=o.trim().split(/\s+/).map(function(e){var A,t;return A=e,t=i.loose?D[k.TILDELOOSE]:D[k.TILDE],A.replace(t,function(e,t,r,n,o){var i;return y("tilde",A,e,t,r,n,o),B(t)?i="":B(r)?i=">="+t+".0.0 <"+(+t+1)+".0.0":B(n)?i=">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":o?(y("replaceTilde pr",o),i=">="+t+"."+r+"."+n+"-"+o+" <"+t+"."+(+r+1)+".0"):i=">="+t+"."+r+"."+n+" <"+t+"."+(+r+1)+".0",y("tilde return",i),i;});}).join(" "),y("tildes",A),y("replaceXRanges",s=A,a=t),A=s.split(/\s+/).map(function(e){var A,t,r;return A=e,t=a,A=A.trim(),r=t.loose?D[k.XRANGELOOSE]:D[k.XRANGE],A.replace(r,function(e,r,n,o,i,s){y("xRange",A,e,r,n,o,i,s);var a=B(n),l=a||B(o),c=l||B(i);return"="===r&&c&&(r=""),s=t.includePrerelease?"-0":"",a?e=">"===r||"<"===r?"<0.0.0-0":"*":r&&c?(l&&(o=0),i=0,">"===r?(r=">=",l?(n=+n+1,o=0):o=+o+1,i=0):"<="===r&&(r="<",l?n=+n+1:o=+o+1),e=r+n+"."+o+"."+i+s):l?e=">="+n+".0.0"+s+" <"+(+n+1)+".0.0"+s:c&&(e=">="+n+"."+o+".0"+s+" <"+n+"."+(+o+1)+".0"+s),y("xRange return",e),e;});}).join(" "),y("xrange",A),y("replaceStars",l=A,t),A=l.trim().replace(D[k.STAR],""),y("stars",A),A;},this).join(" ").split(/\s+/);return this.options.loose&&(n=n.filter(function(e){return!!e.match(r);})),n=n.map(function(e){return new Q(e,this.options);},this);},C.prototype.intersects=function(e,A){if(!(e instanceof C))throw TypeError("a Range is required");return this.set.some(function(t){return I(t,A)&&e.set.some(function(e){return I(e,A)&&t.every(function(t){return e.every(function(e){return t.intersects(e,A);});});});});},A.toComparators=function(e,A){return new C(e,A).set.map(function(e){return e.map(function(e){return e.value;}).join(" ").trim().split(" ");});},C.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 A=0;A0){var n=e[r].semver;if(n.major===A.major&&n.minor===A.minor&&n.patch===A.patch)return!0;}return!1;}return!0;}(this.set[A],e,this.options))return!0;return!1;},A.satisfies=f,A.maxSatisfying=function(e,A,t){var r=null,n=null;try{var i=new C(A,t);}catch(e){return null;}return e.forEach(function(e){i.test(e)&&(!r||-1===n.compare(e))&&(n=new o(r=e,t));}),r;},A.minSatisfying=function(e,A,t){var r=null,n=null;try{var i=new C(A,t);}catch(e){return null;}return e.forEach(function(e){i.test(e)&&(!r||1===n.compare(e))&&(n=new o(r=e,t));}),r;},A.minVersion=function(e,A){e=new C(e,A);var t=new o("0.0.0");if(e.test(t)||(t=new o("0.0.0-0"),e.test(t)))return t;t=null;for(var r=0;r":0===A.prerelease.length?A.patch++:A.prerelease.push(0),A.raw=A.format();case"":case">=":(!t||a(t,A))&&(t=A);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}});return t&&e.test(t)?t:null;},A.validRange=function(e,A){try{return new C(e,A).range||"*";}catch(e){return null;}},A.ltr=function(e,A,t){return p(e,A,"<",t);},A.gtr=function(e,A,t){return p(e,A,">",t);},A.outside=p,A.prerelease=function(e,A){var t=n(e,A);return t&&t.prerelease.length?t.prerelease:null;},A.intersects=function(e,A,t){return e=new C(e,t),A=new C(A,t),e.intersects(A);},A.coerce=function(e,A){if(e instanceof o)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var t,r=null;if((A=A||{}).rtl){for(;(t=D[k.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),D[k.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;D[k.COERCERTL].lastIndex=-1;}else r=e.match(D[k.COERCE]);return null===r?null:n(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),A);};}),tn("iFKS7",function(e,A){var t=nE("joDHm"),r=nE("inTPA");e.exports=function(e,A,n){var o=A&&n||0;"string"==typeof e&&(A="binary"===e?Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||t)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,A)for(var s=0;s<16;++s)A[o+s]=i[s];return A||r(i);};}),tn("joDHm",function(e,A){e.exports=function(){return rY.randomBytes(16);};}),tn("inTPA",function(e,A){for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,A){var r=A||0;return[t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],"-",t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]],t[e[r++]]].join("");};}),tn("ca0ts",function(e,A){var t,r,n,o;function i(e,A,t){return o(this,void 0,void 0,function*(){let r=s.argStringToArray(e);if(0===r.length)throw Error("Parameter 'commandLine' cannot be null or empty.");let n=r[0];return A=r.slice(1).concat(A||[]),new s.ToolRunner(n,A,t).exec();});}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getExecOutput=e.exports.exec=void 0;let s=n(nE("e0fPv"));e.exports.exec=i,e.exports.getExecOutput=function(e,A,t){var r,n;return o(this,void 0,void 0,function*(){let o="",s="",a=new r5.StringDecoder("utf8"),l=new r5.StringDecoder("utf8"),c=null===(r=null==t?void 0:t.listeners)||void 0===r?void 0:r.stdout,E=null===(n=null==t?void 0:t.listeners)||void 0===n?void 0:n.stderr,g=Object.assign(Object.assign({},null==t?void 0:t.listeners),{stdout(e){o+=a.write(e),c&&c(e);},stderr(e){s+=l.write(e),E&&E(e);}}),u=yield i(e,A,Object.assign(Object.assign({},t),{listeners:g}));return o+=a.end(),s+=l.end(),{exitCode:u,stdout:o,stderr:s};});};}),tn("e0fPv",function(e,A){var t,r,n,o;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.argStringToArray=e.exports.ToolRunner=void 0;let i=n(r_),s=n(rq),a=n(r7),l=n(rG),c=n(nE("g9WSN")),E=n(nE("2qpn6")),g="win32"===process.platform;class u extends s.EventEmitter{constructor(e,A,t){if(super(),!e)throw Error("Parameter 'toolPath' cannot be null or empty.");this.toolPath=e,this.args=A||[],this.options=t||{};}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e);}_getCommandString(e,A){let t=this._getSpawnFileName(),r=this._getSpawnArgs(e),n=A?"":"[command]";if(g){if(this._isCmdFile())for(let e of(n+=t,r))n+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(n+=`"${t}"`,r))n+=" "+e;else for(let e of(n+=this._windowsQuoteCmdArg(t),r))n+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(n+=t,r))n+=" "+e;return n;}_processLineBuffer(e,A,t){try{let r=A+e.toString(),n=r.indexOf(i.EOL);for(;n>-1;){let e=r.substring(0,n);t(e),n=(r=r.substring(n+i.EOL.length)).indexOf(i.EOL);}return r;}catch(e){return this._debug("error processing line. Failed with error "+e),"";}}_getSpawnFileName(){return g&&this._isCmdFile()?process.env.COMSPEC||"cmd.exe":this.toolPath;}_getSpawnArgs(e){if(g&&this._isCmdFile()){let A='/D /S /C "'+this._windowsQuoteCmdArg(this.toolPath);for(let t of this.args)A+=" "+(e.windowsVerbatimArguments?t:this._windowsQuoteCmdArg(t));return[A+='"'];}return this.args;}_endsWith(e,A){return e.endsWith(A);}_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 A=[" "," ","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'],t=!1;for(let r of e)if(A.some(e=>e===r)){t=!0;break;}if(!t)return e;let r='"',n=!0;for(let A=e.length;A>0;A--)r+=e[A-1],n&&"\\"===e[A-1]?r+="\\":'"'===e[A-1]?(n=!0,r+='"'):n=!1;return(r+='"').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 A='"',t=!0;for(let r=e.length;r>0;r--)A+=e[r-1],t&&"\\"===e[r-1]?A+="\\":'"'===e[r-1]?(t=!0,A+="\\"):t=!1;return(A+='"').split("").reverse().join("");}_cloneExecOptions(e){let A={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 A.outStream=e.outStream||process.stdout,A.errStream=e.errStream||process.stderr,A;}_getSpawnOptions(e,A){e=e||{};let t={};return t.cwd=e.cwd,t.env=e.env,t.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(t.argv0=`"${A}"`),t;}exec(){return o(this,void 0,void 0,function*(){return!E.isRooted(this.toolPath)&&(this.toolPath.includes("/")||g&&this.toolPath.includes("\\"))&&(this.toolPath=l.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield c.which(this.toolPath,!0),new Promise((e,A)=>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 t=this._cloneExecOptions(this.options);!t.silent&&t.outStream&&t.outStream.write(this._getCommandString(t)+i.EOL);let r=new h(t,this.toolPath);if(r.on("debug",e=>{this._debug(e);}),this.options.cwd&&!(yield E.exists(this.options.cwd)))return A(Error(`The cwd: ${this.options.cwd} does not exist!`));let n=this._getSpawnFileName(),o=a.spawn(n,this._getSpawnArgs(t),this._getSpawnOptions(this.options,n)),s="";o.stdout&&o.stdout.on("data",e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!t.silent&&t.outStream&&t.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e);});});let l="";if(o.stderr&&o.stderr.on("data",e=>{r.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!t.silent&&t.errStream&&t.outStream&&(t.failOnStdErr?t.errStream:t.outStream).write(e),l=this._processLineBuffer(e,l,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e);});}),o.on("error",e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete();}),o.on("exit",e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete();}),o.on("close",e=>{r.processExitCode=e,r.processExited=!0,r.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),r.CheckComplete();}),r.on("done",(t,r)=>{s.length>0&&this.emit("stdline",s),l.length>0&&this.emit("errline",l),o.removeAllListeners(),t?A(t):e(r);}),this.options.input){if(!o.stdin)throw Error("child process missing stdin");o.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=u,e.exports.argStringToArray=function(e){function A(e){n&&'"'!==e&&(o+="\\"),o+=e,n=!1;}let t=[],r=!1,n=!1,o="";for(let i=0;i0&&(t.push(o),o="");continue;}A(s);}return o.length>0&&t.push(o.trim()),t;};class h extends s.EventEmitter{constructor(e,A){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,!A)throw Error("toolPath must not be empty");this.options=e,this.toolPath=A,e.delay&&(this.delay=e.delay);}CheckComplete(){!this.done&&(this.processClosed?this._setResult():this.processExited&&(this.timeout=ne.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 A=`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(A);}e._setResult();}}}}),tn("99cnM",function(e,A){e.exports=Promise.resolve(require("./actions_python.895b8a50.js")).then(()=>nE("apy8x"));}),tn("iH0rS",function(e,A){e.exports=Promise.resolve(require("./hdi.619de66c.js")).then(()=>nE("9IkUc"));}),to=nE("dKklS"),ti=nE("pcnv8"),ts=nE("k1l4q"),to=nE("dKklS"),ti=nE("pcnv8"),ta={},tl={},tc={},tE={};const ng="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,nu=ng?";":":";tg={},"win32"===process.platform||na.TESTING_WINDOWS?tu=nE("ftrAD"):tu=nE("9yF3I"),tg=c,c.sync=function(e,A){try{return tu.sync(e,A||{});}catch(e){if(A&&A.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const nh=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),nQ=(e,A)=>{let t=A.colon||nu,r=e.match(/\//)||ng&&e.match(/\\/)?[""]:[...(ng?[process.cwd()]:[]),...(A.path||process.env.PATH||"").split(t)],n=ng?A.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=ng?n.split(t):[""];return ng&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:r,pathExt:o,pathExtExe:n};},nC=(e,A,t)=>{"function"==typeof A&&(t=A,A={}),A||(A={});let{pathEnv:r,pathExt:n,pathExtExe:o}=nQ(e,A),i=[],s=t=>new Promise((n,o)=>{if(t===r.length)return A.all&&i.length?n(i):o(nh(e));let s=r[t],l=/^".*"$/.test(s)?s.slice(1,-1):s,c=rG.join(l,e);n(a(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c,t,0));}),a=(e,t,r)=>new Promise((l,c)=>{if(r===n.length)return l(s(t+1));let E=n[r];tg(e+E,{pathExt:o},(n,o)=>{if(!n&&o){if(!A.all)return l(e+E);i.push(e+E);}return l(a(e,t,r+1));});});return t?s(0).then(e=>t(null,e),t):s(0);};tE=nC,nC.sync=(e,A)=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=nQ(e,A=A||{}),o=[];for(let i=0;i{let A=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(A).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";};(th=nI).default=nI,tc=function(e){return E(e)||E(e,!0);};tQ=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},tC=function(e,A){return e=(e=(e=""+e).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1"),e=(e=`"${e}"`).replace(/([()\][%!^"`<>&|;, *?])/g,"^$1"),A&&(e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1")),e;},tI={},tB={},td={},td=/^#!(.*)/,tB=(e="")=>{let A=e.match(td);if(!A)return null;let[t,r]=A[0].replace(/#! ?/,"").split(" "),n=t.split("/").pop();return"env"===n?r:r?`${n} ${r}`:n;},tI=function(e){let A;let t=Buffer.alloc(150);try{A=rO.openSync(e,"r"),rO.readSync(A,t,0,150,0),rO.closeSync(A);}catch(e){}return tB(t.toString());};const nB="win32"===process.platform;tl=function(e,A,t){A&&!Array.isArray(A)&&(t=A,A=null);let r={command:e,args:A=A?A.slice(0):[],options:t=Object.assign({},t),file:void 0,original:{command:e,args:A}};return t.shell?r:function(e){if(!nB)return e;let A=function(e){e.file=tc(e);let A=e.file&&tI(e.file);return A?(e.args.unshift(e.file),e.command=A,tc(e)):e.file;}(e),t=!/\.(?:com|exe)$/i.test(A);if(e.options.forceShell||t){let t=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i.test(A);e.command=rG.normalize(e.command),e.command=tQ(e.command),e.args=e.args.map(e=>tC(e,t));let r=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${r}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0;}return e;}(r);},tf={};const nd="win32"===process.platform;tf={hookChildProcess:function(e,A){if(!nd)return;let t=e.emit;e.emit=function(r,n){if("exit"===r){let r=u(n,A,"spawn");if(r)return t.call(e,"error",r);}return t.apply(e,arguments);};},verifyENOENT:u,verifyENOENTSync:function(e,A){return nd&&1===e&&!A.file?g(A.original,"spawnSync"):null;},notFoundError:g},(ta=h).spawn=h,ta.sync=function(e,A,t){let r=tl(e,A,t),n=r7.spawnSync(r.command,r.args,r.options);return n.error=n.error||tf.verifyENOENTSync(n.status,r),n;},ta._parse=tl,ta._enoent=tf;const nf=({cwd:e=l(nn).cwd(),path:A=l(nn).env[Q()],preferLocal:t=!0,execPath:r=l(nn).execPath,addExecPath:n=!0}={})=>{let o=e instanceof URL?(0,no.fileURLToPath)(e):e,i=l(nt).resolve(o),s=[];return t&&np(s,i),n&&ny(s,r,i),[...s,A].join(l(nt).delimiter);},np=(e,A)=>{let t;for(;t!==A;)e.push(l(nt).join(A,"node_modules/.bin")),t=A,A=l(nt).resolve(A,"..");},ny=(e,A,t)=>{let r=A instanceof URL?(0,no.fileURLToPath)(A):A;e.push(l(nt).resolve(t,r,".."));},nm=({env:e=l(nn).env,...A}={})=>{let t=Q({env:e={...e}});return A.path=e[t],e[t]=nf(A),e;},nw=(e,A,t,r)=>{if("length"===t||"prototype"===t||"arguments"===t||"caller"===t)return;let n=Object.getOwnPropertyDescriptor(e,t),o=Object.getOwnPropertyDescriptor(A,t);(nb(n,o)||!r)&&Object.defineProperty(e,t,o);},nb=function(e,A){return void 0===e||e.configurable||e.writable===A.writable&&e.enumerable===A.enumerable&&e.configurable===A.configurable&&(e.writable||e.value===A.value);},nR=(e,A)=>{let t=Object.getPrototypeOf(A);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t);},nD=(e,A)=>`/* Wrapped ${e}*/ ${A}`,nS=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),nk=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nv=(e,A,t)=>{let r=""===t?"":`with ${t.trim()}() `,n=nD.bind(null,r,A.toString());Object.defineProperty(n,"name",nk),Object.defineProperty(e,"toString",{...nS,value:n});},nN=new WeakMap(),nF=(e,A={})=>{let t;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,n=e.displayName||e.name||"",o=function(...i){if(nN.set(o,++r),1===r)t=e.apply(this,i),e=null;else if(!0===A.throw)throw Error(`Function \`${n}\` can only be called once`);return t;};return!function(e,A,{ignoreNonConfigurable:t=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(A))nw(e,A,r,t);nR(e,A),nv(e,A,r);}(o,e),nN.set(o,r),o;};nF.callCount=e=>{if(!nN.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return nN.get(e);},tp=nF;const nL=()=>Array.from({length:nM-nT+1},nU),nU=(e,A)=>({name:"SIGRT"+(A+1),number:nT+A,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nT=34,nM=64,nx=[{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"}],n_=()=>[...nx,...nL()].map(nG),nG=({name:e,number:A,description:t,action:r,forced:n=!1,standard:o})=>{let{signals:{[e]:i}}=ni.constants,s=void 0!==i;return{name:e,number:s?i:A,description:t,supported:s,action:r,forced:n,standard:o};},nO=Object.fromEntries(n_().map(({name:e,number:A,description:t,supported:r,action:n,forced:o,standard:i})=>[e,{name:e,number:A,description:t,supported:r,action:n,forced:o,standard:i}])),nY=(e,A)=>{let t=nJ(e,A);if(void 0===t)return{};let{name:r,description:n,supported:o,action:i,forced:s,standard:a}=t;return{[e]:{name:r,number:e,description:n,supported:o,action:i,forced:s,standard:a}};},nJ=(e,A)=>{let t=A.find(({name:A})=>ni.constants.signals[A]===e);return void 0!==t?t:A.find(A=>A.number===e);};(()=>{let e=n_();return Object.assign({},...Array.from({length:nM+1},(A,t)=>nY(t,e)));})();const nH=({timedOut:e,timeout:A,errorCode:t,signal:r,signalDescription:n,exitCode:o,isCanceled:i})=>e?`timed out after ${A} milliseconds`:i?"was canceled":void 0!==t?"failed with "+t:void 0!==r?`was killed with ${r} (${n})`:void 0!==o?"failed with exit code "+o:"failed",nP=({stdout:e,stderr:A,all:t,error:r,signal:n,exitCode:o,command:i,escapedCommand:s,timedOut:a,isCanceled:c,killed:E,parsed:{options:{timeout:g,cwd:u=l(nn).cwd()}}})=>{o=null===o?void 0:o;let h=void 0===(n=null===n?void 0:n)?void 0:nO[n].description,Q=nH({timedOut:a,timeout:g,errorCode:r&&r.code,signal:n,signalDescription:h,exitCode:o,isCanceled:c}),C=`Command ${Q}: ${i}`,I="[object Error]"===Object.prototype.toString.call(r),B=I?`${C} ${r.message}`:C,d=[B,A,e].filter(Boolean).join("\n");return I?(r.originalMessage=r.message,r.message=d):r=Error(d),r.shortMessage=B,r.command=i,r.escapedCommand=s,r.exitCode=o,r.signal=n,r.signalDescription=h,r.stdout=e,r.stderr=A,r.cwd=u,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=c,r.killed=E&&!a,r;},nV=["stdin","stdout","stderr"],nq=e=>nV.some(A=>void 0!==e[A]),nW=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return nV.map(A=>e[A]);if(nq(e))throw Error("It's not possible to provide `stdio` in combination with one of "+nV.map(e=>`\`${e}\``).join(", "));if("string"==typeof A)return A;if(!Array.isArray(A))throw TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof A}\``);return Array.from({length:Math.max(A.length,nV.length)},(e,t)=>A[t]);};ty={};const nj=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(nj(tm=na.process)){var nX,n$=nE("bJALw"),nz=/^win/i.test(tm.platform),nZ=rq;"function"!=typeof nZ&&(nZ=nZ.EventEmitter),tm.__signal_exit_emitter__?nX=tm.__signal_exit_emitter__:((nX=tm.__signal_exit_emitter__=new nZ()).count=0,nX.emitted={}),nX.infinite||(nX.setMaxListeners(1/0),nX.infinite=!0);var nK=function(){n2&&nj(na.process)&&(n2=!1,n$.forEach(function(e){try{tm.removeListener(e,n1[e]);}catch(e){}}),tm.emit=n3,tm.reallyExit=n9,nX.count-=1);};(ty=function(e,A){if(!nj(na.process))return function(){};rW.equal(typeof e,"function","a callback must be provided for exit handler"),!1===n2&&n4();var t="exit";return A&&A.alwaysLast&&(t="afterexit"),nX.on(t,e),function(){nX.removeListener(t,e),0===nX.listeners("exit").length&&0===nX.listeners("afterexit").length&&nK();};}).unload=nK;var n0=function(e,A,t){nX.emitted[e]||(nX.emitted[e]=!0,nX.emit(e,A,t));},n1={};n$.forEach(function(e){n1[e]=function(){nj(na.process)&&tm.listeners(e).length===nX.count&&(nK(),n0("exit",null,e),n0("afterexit",null,e),nz&&"SIGHUP"===e&&(e="SIGINT"),tm.kill(tm.pid,e));};}),ty.signals=function(){return n$;};var n2=!1,n4=function(){!n2&&nj(na.process)&&(n2=!0,nX.count+=1,n$=n$.filter(function(e){try{return tm.on(e,n1[e]),!0;}catch(e){return!1;}}),tm.emit=n5,tm.reallyExit=n8);};ty.load=n4;var n9=tm.reallyExit,n8=function(e){nj(na.process)&&(tm.exitCode=e||0,n0("exit",tm.exitCode,null),n0("afterexit",tm.exitCode,null),n9.call(tm,tm.exitCode));},n3=tm.emit,n5=function(e,A){if(!("exit"===e&&nj(na.process)))return n3.apply(this,arguments);void 0!==A&&(tm.exitCode=A);var t=n3.apply(this,arguments);return n0("exit",tm.exitCode,null),n0("afterexit",tm.exitCode,null),t;};}else ty=function(){return function(){};};const n6=(e,A="SIGTERM",t={})=>{let r=e(A);return n7(e,A,t,r),r;},n7=(e,A,t,r)=>{if(!oe(A,t,r))return;let n=setTimeout(()=>{e("SIGKILL");},ot(t));n.unref&&n.unref();},oe=(e,{forceKillAfterTimeout:A},t)=>oA(e)&&!1!==A&&t,oA=e=>e===l(ni).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ot=({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;},or=(e,A)=>{e.kill()&&(A.isCanceled=!0);},on=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},oo=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{let n;return 0===A||void 0===A?r:Promise.race([new Promise((r,o)=>{n=setTimeout(()=>{on(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},oi=({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})`);},os=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)return r;let n=l(ty)(()=>{e.kill();});return r.finally(()=>{n();});},oa=e=>e instanceof nr.ChildProcess&&"function"==typeof e.then,ol=(e,A,t)=>{if("string"==typeof t)return e[A].pipe((0,r6.createWriteStream)(t)),e;if(I(t))return e[A].pipe(t),e;if(!oa(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!I(t.stdin))throw TypeError("The target child process's stdin must be available.");return e[A].pipe(t.stdin),t;},oc=e=>{null!==e.stdout&&(e.pipeStdout=ol.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=ol.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=ol.bind(void 0,e,"all"));};tw={},tb=r$.constants,tR=rj.promisify,tD={},tS=rX.PassThrough,tD=e=>{let{array:A}=e={...e},{encoding:t}=e,r="buffer"===t,n=!1;A?n=!(t||r):t=t||"utf8",r&&(t=null);let o=new tS({objectMode:n});t&&o.setEncoding(t);let i=0,s=[];return o.on("data",e=>{s.push(e),n?i=s.length:i+=e.length;}),o.getBufferedValue=()=>A?s:r?Buffer.concat(s,i):s.join(""),o.getBufferedLength=()=>i,o;};const oE=tR(rX.pipeline);class og extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(tw=B).buffer=(e,A)=>B(e,{...A,encoding:"buffer"}),tw.array=(e,A)=>B(e,{...A,array:!0}),tw.MaxBufferError=og,tk={},tv=rX.PassThrough,tk=function(){function e(n){return Array.isArray(n)?n.forEach(e):(t.push(n),n.once("end",A.bind(null,n)),n.once("error",r.emit.bind(r,"error")),n.pipe(r,{end:!1})),this;}function A(e){!(t=t.filter(function(A){return A!==e;})).length&&r.readable&&r.end();}var t=[],r=new tv({objectMode:!0});return r.setMaxListeners(0),r.add=e,r.isEmpty=function(){return 0==t.length;},r.on("unpipe",A),Array.prototype.slice.call(arguments).forEach(e),r;};const ou=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},oh=({input:e,inputFile:A})=>"string"!=typeof A?e:(ou(e),(0,r6.readFileSync)(A)),oQ=e=>{let A=oh(e);if(C(A))throw TypeError("The `input` option cannot be a stream in sync mode");return A;},oC=({input:e,inputFile:A})=>"string"!=typeof A?e:(ou(e),(0,r6.createReadStream)(A)),oI=(e,A)=>{let t=oC(A);void 0!==t&&(C(t)?t.pipe(e.stdin):e.stdin.end(t));},oB=(e,{all:A})=>{if(!A||!e.stdout&&!e.stderr)return;let t=l(tk)();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t;},od=async(e,A)=>{if(e&&void 0!==A){e.destroy();try{return await A;}catch(e){return e.bufferedData;}}},of=(e,{encoding:A,buffer:t,maxBuffer:r})=>{if(e&&t)return A?l(tw)(e,{encoding:A,maxBuffer:r}):l(tw).buffer(e,{maxBuffer:r});},op=async({stdout:e,stderr:A,all:t},{encoding:r,buffer:n,maxBuffer:o},i)=>{let s=of(e,{encoding:r,buffer:n,maxBuffer:o}),a=of(A,{encoding:r,buffer:n,maxBuffer:o}),l=of(t,{encoding:r,buffer:n,maxBuffer:2*o});try{return await Promise.all([i,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},od(e,s),od(A,a),od(t,l)]);}},oy=(async()=>{})().constructor.prototype,om=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(oy,e)]),ow=(e,A)=>{for(let[t,r]of om){let n="function"==typeof A?(...e)=>Reflect.apply(r.value,A(),e):r.value.bind(A);Reflect.defineProperty(e,t,{...r,value:n});}},ob=e=>new Promise((A,t)=>{e.on("exit",(e,t)=>{A({exitCode:e,signal:t});}),e.on("error",e=>{t(e);}),e.stdin&&e.stdin.on("error",e=>{t(e);});}),oR=(e,A=[])=>Array.isArray(A)?[e,...A]:[e],oD=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,oS=(e,A)=>oR(e,A).join(" "),ok=(e,A)=>oR(e,A).map(e=>oD(e)).join(" "),ov=e=>{let A=[];for(let t of e.trim().split(/ +/g)){let e=A[A.length-1];e&&e.endsWith("\\")?A[A.length-1]=`${e.slice(0,-1)} ${t}`:A.push(t);}return A;},oN=e=>{let A=typeof e;if("string"===A)return e;if("number"===A)return e+"";if("object"===A&&null!==e&&!(e instanceof nr.ChildProcess)&&"stdout"in e){let A=typeof e.stdout;if("string"===A)return e.stdout;if((0,nA.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${A}" stdout in template expression`);}throw TypeError(`Unexpected "${A}" in template expression`);},oF=(e,A,t)=>t||0===e.length||0===A.length?[...e,...A]:[...e.slice(0,-1),`${e[e.length-1]}${A[0]}`,...A.slice(1)],oL=({templates:e,expressions:A,tokens:t,index:r,template:n})=>{let o=null!=n?n:e.raw[r],i=oF(t,o.split(/ +/g).filter(Boolean),o.startsWith(" "));if(r===A.length)return i;let s=A[r];return oF(i,Array.isArray(s)?s.map(e=>oN(e)):[oN(s)],o.endsWith(" "));},oU=(e,A)=>{let t=[];for(let[r,n]of e.entries())t=oL({templates:e,expressions:A,tokens:t,index:r,template:n});return t;},oT=(0,rK.debuglog)("execa").enabled,oM=(e,A)=>(e+"").padStart(A,"0"),ox=()=>{let e=new Date();return`${oM(e.getHours(),2)}:${oM(e.getMinutes(),2)}:${oM(e.getSeconds(),2)}.${oM(e.getMilliseconds(),3)}`;},o_=(e,{verbose:A})=>{A&&l(nn).stderr.write(`[${ox()}] ${e} `);},oG=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(nn).env,...e}:e;return t?nm({env:o,cwd:r,execPath:n}):o;},oO=(e,A,t={})=>{let r=l(ta)._parse(e,A,t);return e=r.command,A=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(nn).cwd(),execPath:l(nn).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oT,...t}).env=oG(t),t.stdio=nW(t),"win32"===l(nn).platform&&"cmd"===l(nt).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},oY=(e,A,t)=>"string"==typeof A||(0,nA.Buffer).isBuffer(A)?e.stripFinalNewline?function(e){let A="string"==typeof e?"\n":"\n".charCodeAt(),t="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===A&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e;}(A):A:void 0===t?void 0:"",oJ=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},oH=(e={})=>({preferLocal:!0,...oJ(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=oU(r,n);return d(o,i,oH(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=oU(e,t);return f(r,n,oH(A));},t;}(),tN={},a(tF={},"isexe",()=>oP),a(tF,"sync",()=>oV),tL=nE("6vN83");const oP=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return oq(await(0,tL.stat)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},oV=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return oq((0,rO.statSync)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},oq=(e,A)=>e.isFile()&&oW(e,A),oW=(e,A)=>{var t,r,n,o,i,s,a,l,c,E,g;let u=null!==(a=A.uid)&&void 0!==a?a:null===(t=(r=process).getuid)||void 0===t?void 0:t.call(r),h=null!==(c=null!==(l=A.groups)&&void 0!==l?l:null===(n=(o=process).getgroups)||void 0===n?void 0:n.call(o))&&void 0!==c?c:[],Q=null!==(g=null!==(E=A.gid)&&void 0!==E?E:null===(i=(s=process).getgid)||void 0===i?void 0:i.call(s))&&void 0!==g?g:h[0];if(void 0===u||void 0===Q)throw Error("cannot get uid or gid");let C=new Set([Q,...h]),I=e.mode,B=e.uid,d=e.gid,f=parseInt("100",8),p=parseInt("010",8);return!!(I&parseInt("001",8)||I&p&&C.has(d)||I&f&&B===u||I&(f|p)&&0===u);};a(tU={},"isexe",()=>oj),a(tU,"sync",()=>oX),tL=nE("6vN83");const oj=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return oz(await(0,tL.stat)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},oX=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return oz((0,rO.statSync)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},o$=(e,A)=>{let{pathExt:t=process.env.PATHEXT||""}=A,r=t.split(";");if(-1!==r.indexOf(""))return!0;for(let A=0;Ae.isFile()&&o$(A,t),oZ="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?tU:tF,oK=oZ.isexe,o0=oZ.sync;tT=rG.join,tM=rG.delimiter,tx=rG.sep,t_=rG.posix;const o1="win32"===process.platform,o2=new RegExp(`[${t_.sep}${tx===t_.sep?"":tx}]`.replace(/(\\)/g,"\\$1")),o4=RegExp("^\\."+o2.source),o9=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),o8=(e,{path:A=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=tM})=>{let n=e.match(o2)?[""]:[...(o1?[process.cwd()]:[]),...(A||"").split(r)];if(o1){let A=t||[".EXE",".CMD",".BAT",".COM"].join(r),o=A.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:n,pathExt:o,pathExtExe:A};}return{pathEnv:n,pathExt:[""]};},o3=(e,A)=>{let t=/^".*"$/.test(e)?e.slice(1,-1):e;return(!t&&o4.test(A)?A.slice(0,2):"")+tT(t,A);},o5=async(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=o8(e,A),o=[];for(let i of t){let t=o3(i,e);for(let e of r){let r=t+e;if(await oK(r,{pathExt:n,ignoreErrors:!0})){if(!A.all)return r;o.push(r);}}}if(A.all&&o.length)return o;if(A.nothrow)return null;throw o9(e);};tN=o5,o5.sync=(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:n}=o8(e,A),o=[];for(let i of t){let t=o3(i,e);for(let e of r){let r=t+e;if(o0(r,{pathExt:n,ignoreErrors:!0})){if(!A.all)return r;o.push(r);}}}if(A.all&&o.length)return o;if(A.nothrow)return null;throw o9(e);};const o6={stdio:"inherit",shell:!0};ti=nE("pcnv8"),tG={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},tO=Array.prototype.slice,tY=function(){function e(e){this.keys=[],this.values=[],this.options=e;var A="function"==typeof e.isMatchingKey;A?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||A,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:S(this.keys),size:this.size,values:S(this.values)};},enumerable:!1,configurable:!0}),e.prototype._getKeyIndexFromMatchingKey=function(e){var A=this.options,t=A.isMatchingKey,r=A.maxSize,n=this.keys,o=n.length;if(!o)return-1;if(t(n[0],e))return 0;if(r>1){for(var i=1;o>i;i++)if(t(n[i],e))return i;}return-1;},e.prototype._getKeyIndexForMany=function(e){var A,t,r=this.options.isEqual,n=this.keys,o=n.length;if(!o)return-1;if(1===o)return this._getKeyIndexForSingle(e);var i=e.length;if(i>1){for(var s=0;o>s;s++)if((A=n[s]).length===i){for(t=0;i>t&&r(A[t],e[t]);t++);if(t===i)return s;}}else for(var s=0;o>s;s++)if((A=n[s]).length===i&&r(A[0],e[0]))return s;return-1;},e.prototype._getKeyIndexForSingle=function(e){var A=this.keys;if(!A.length)return-1;var t=A[0],r=t.length;if(e.length!==r)return-1;var n=this.options.isEqual;if(r>1){for(var o=0;r>o;o++)if(!n(t[o],e[o]))return-1;return 0;}return n(t[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,A,t){for(var r=this.keys,n=this.values,o=r.length,i=t;i--;)r[i+1]=r[i],n[i+1]=n[i];r[0]=e,n[0]=A;var s=this.options.maxSize;o===s&&t===o?(r.pop(),n.pop()):t>=s&&(r.length=n.length=s);},e.prototype.updateAsyncCache=function(e){var A=this,t=this.options,r=t.onCacheChange,n=t.onCacheHit,o=this.keys[0],i=this.values[0];this.values[0]=i.then(function(t){return A.shouldUpdateOnHit&&n(A,A.options,e),A.shouldUpdateOnChange&&r(A,A.options,e),t;},function(e){var t=A.getKeyIndex(o);throw-1!==t&&(A.keys.splice(t,1),A.values.splice(t,1)),e;});},e;}(),tJ=nE("ibhuk");const o7=/^~(?=$|\/|\\)/,{appendFile:ie,readFile:iA,writeFile:it}=rO.promises,ir=F("~/.bashrc"),io=N(L,{isPromise:!0});tH={};const ii="win32"!==r_.platform(),is=r_.release(),ia=(e="",A="")=>/1\d+\.\d+/.test(e)&&+A>=17134.1184;tH=function(e){return ii?e.replace(/(\s+)/g,"\\$1"):ia(.../(\d+\.\d+)\.(\d+)/.exec(is).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,A;e=nE("sOzdu"),A=function(e){return e.split("").reverse().join("");},tP=function(t,r,n){var o;return(null==r&&(r="'"),null==n&&(n="\\"),"string"!=typeof t)?t:(o=RegExp("(["+e(r)+"])(?!"+e(n)+")","g"),A(A(t).replace(o,"$1"+n)));};}.call(tP={});const{appendFile:il}=rO.promises;ts=nE("k1l4q"),to=nE("dKklS"),ti=nE("pcnv8");const{appendFile:ic}=rO.promises,iE=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];tV=nE("5FRs7"),function(){nE("j5MHF").addLocale("en",function(e){var A=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return("string"==typeof e&&(e=parseInt(e,10)),1===A&&0===t)?"one":"other";});}.call(tq={}),tW={},tW=nE("2KdLC"),tj={},tj={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"}}}},ti=nE("pcnv8"),tX={},t$=nE("51NgG"),tz=ns.env.npm_package_json,tK=!!((tZ=ns.env.npm_config_user_agent)&&tZ.startsWith("npm")),t0=!!(tz&&tz.endsWith("package.json")),t1=tK||t0,t2=!!(tZ&&tZ.startsWith("yarn")),t4=t1||t2,t9=r_.homedir(),t8=process.env.XDG_CONFIG_HOME||rG.join(t9,".config","simple-update-notifier"),t3=function(e){return rG.join(t8,"".concat(e.replace("@","").replace("/","__"),".json"));},t5=function(){rO.existsSync(t8)||rO.mkdirSync(t8,{recursive:!0});},t6=function(e){var A=t3(e);try{if(!rO.existsSync(A))return;return JSON.parse(rO.readFileSync(A,"utf8")).lastUpdateCheck;}catch(e){return;}},t7=function(e){var A=t3(e);rO.writeFileSync(A,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},re=function(e,A){return Y(void 0,void 0,void 0,function(){var t;return J(this,function(r){return t="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,r){rH.get(t,function(t){var n="";t.on("data",function(e){return n+=e;}),t.on("end",function(){try{var t=JSON.parse(n)[A];t||r(Error("Error getting version")),e(t);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});});},rA=function(e){var A=e.pkg,t=e.updateCheckInterval,r=void 0===t?864e5:t,n=e.distTag,o=void 0===n?"latest":n,i=e.alwaysRun,s=e.debug;return Y(void 0,void 0,void 0,function(){var e,t;return J(this,function(n){switch(n.label){case 0:if(t5(),e=t6(A.name),!(i||!e||ethis.maxSeconds)throw Error("min seconds should be less than or equal to max seconds");}execute(e,A){return ry(this,void 0,void 0,function*(){let t=1;for(;tsetTimeout(A,1e3*e));});}};class iT extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}rc.HTTPError=iT;const iM="win32"===process.platform,ix="darwin"===process.platform;rc.downloadTool=function(e,A,t,r){return rQ(this,void 0,void 0,function*(){A=A||iS.join(eN(),iL.default()),yield iw.mkdirP(iS.dirname(A)),im.debug("Downloading "+e),im.debug("Destination "+A);let n=eF("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=eF("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new rB.RetryHelper(3,n,o);return yield i.execute(()=>rQ(this,void 0,void 0,function*(){return yield function(e,A,t,r){return rQ(this,void 0,void 0,function*(){if(ib.existsSync(A))throw Error(`Destination file path ${A} already exists`);let n=new ik.HttpClient("actions/tool-cache",[],{allowRetries:!1});t&&(im.debug("set auth"),void 0===r&&(r={}),r.authorization=t);let o=yield n.get(e,r);if(200!==o.message.statusCode){let A=new iT(o.message.statusCode);throw im.debug(`Failed to download from "${e}". Code(${o.message.statusCode}) Message(${o.message.statusMessage})`),A;}let i=iF.promisify(iN.pipeline),s=eF("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>o.message)(),a=!1;try{return yield i(s,ib.createWriteStream(A)),im.debug("download complete"),a=!0,A;}finally{if(!a){im.debug("download failed");try{yield iw.rmRF(A);}catch(e){im.debug(`Failed to delete '${A}'. ${e.message}`);}}}});}(e,A||"",t,r);}),e=>!(e instanceof iT)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},rc.extract7z=function(e,A,t){return rQ(this,void 0,void 0,function*(){rW.ok(iM,"extract7z() not supported on current OS"),rW.ok(e,'parameter "file" is required'),A=yield eb(A);let r=process.cwd();if(process.chdir(A),t)try{let A=im.isDebug()?"-bb1":"-bb0",r=["x",A,"-bd","-sccUTF-8",e];yield rI.exec(`"${t}"`,r,{silent:!0});}finally{process.chdir(r);}else{let t=iS.join(rE,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=`& '${t}' -Source '${n}' -Target '${o}'`;try{let e=yield iw.which("powershell",!0);yield rI.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i],{silent:!0});}finally{process.chdir(r);}}return A;});},rc.extractTar=function(e,A,t="xz"){return rQ(this,void 0,void 0,function*(){let r;if(!e)throw Error("parameter 'file' is required");A=yield eb(A),im.debug("Checking tar --version");let n="";yield rI.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}}),im.debug(n.trim());let o=n.toUpperCase().includes("GNU TAR");r=t instanceof Array?t:[t],im.isDebug()&&!t.includes("v")&&r.push("-v");let i=A,s=e;return iM&&o&&(r.push("--force-local"),i=A.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),o&&(r.push("--warning=no-unknown-keyword"),r.push("--overwrite")),r.push("-C",i,"-f",s),yield rI.exec("tar",r),A;});},rc.extractXar=function(e,A,t=[]){return rQ(this,void 0,void 0,function*(){let r;rW.ok(ix,"extractXar() not supported on current OS"),rW.ok(e,'parameter "file" is required'),A=yield eb(A),(r=t instanceof Array?t:[t]).push("-x","-C",A,"-f",e),im.isDebug()&&r.push("-v");let n=yield iw.which("xar",!0);return yield rI.exec(`"${n}"`,Array.from(new Set(r))),A;});},rc.extractZip=function(e,A){return rQ(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return A=yield eb(A),iM?yield function(e,A){return rQ(this,void 0,void 0,function*(){let t=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=yield iw.which("pwsh",!1);if(n){let e=`$ErrorActionPreference = 'Stop' ; try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ; try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) } catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${t}' -DestinationPath '${r}' -Force } else { throw $_ } } ;`;im.debug("Using pwsh at path: "+n),yield rI.exec(`"${n}"`,["-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 '${t}' -DestinationPath '${r}' -Force } else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${t}', '${r}', $true) }`,A=yield iw.which("powershell",!0);im.debug("Using powershell at path: "+A),yield rI.exec(`"${A}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,A):yield function(e,A){return rQ(this,void 0,void 0,function*(){let t=yield iw.which("unzip",!0),r=[e];im.isDebug()||r.unshift("-q"),r.unshift("-o"),yield rI.exec(`"${t}"`,r,{cwd:A});});}(e,A),A;});},rc.cacheDir=function(e,A,t,r){return rQ(this,void 0,void 0,function*(){if(t=iv.clean(t)||t,r=r||iD.arch(),im.debug(`Caching tool ${A} ${t} ${r}`),im.debug("source dir: "+e),!ib.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let n=yield eR(A,t,r);for(let A of ib.readdirSync(e)){let t=iS.join(e,A);yield iw.cp(t,n,{recursive:!0});}return eD(A,t,r),n;});},rc.cacheFile=function(e,A,t,r,n){return rQ(this,void 0,void 0,function*(){if(r=iv.clean(r)||r,n=n||iD.arch(),im.debug(`Caching tool ${t} ${r} ${n}`),im.debug("source file: "+e),!ib.statSync(e).isFile())throw Error("sourceFile is not a file");let o=yield eR(t,r,n),i=iS.join(o,A);return im.debug("destination file "+i),yield iw.cp(e,i),eD(t,r,n),o;});},rc.find=function(e,A,t){if(!e)throw Error("toolName parameter is required");if(!A)throw Error("versionSpec parameter is required");t=t||iD.arch(),eS(A)||(A=ek(ew(e,t),A));let r="";if(A){A=iv.clean(A)||"";let n=iS.join(ev(),e,A,t);im.debug("checking cache: "+n),ib.existsSync(n)&&ib.existsSync(`${n}.complete`)?(im.debug(`Found tool in cache ${e} ${A} ${t}`),r=n):im.debug("not found");}return r;},rc.findAllVersions=ew,rc.getManifestFromRepo=function(e,A,t,r="master"){return rQ(this,void 0,void 0,function*(){let n=[],o=`https://api.github.com/repos/${e}/${A}/git/trees/${r}`,i=new ik.HttpClient("tool-cache"),s={};t&&(im.debug("set auth"),s.authorization=t);let a=yield i.getJson(o,s);if(!a.result)return n;let l="";for(let e of a.result.tree)if("versions-manifest.json"===e.path){l=e.url;break;}s.accept="application/vnd.github.VERSION.raw";let c=yield(yield i.get(l,s)).readBody();if(c){c=c.replace(/^\uFEFF/,"");try{n=JSON.parse(c);}catch(e){im.debug("Invalid json");}}return n;});},rc.findFromManifest=function(e,A,t,r=iD.arch()){return rQ(this,void 0,void 0,function*(){return yield iR._findMatch(e,A,t,r);});},rc.isExplicitVersion=eS,rc.evaluateVersions=ek,ti=nE("pcnv8"),ri=nE("drEX5"),to=nE("dKklS"),tJ=nE("ibhuk"),Object.defineProperty(rm={},"__esModule",{value:!0}),rm.retryAsPromised=rm.TimeoutError=void 0;class i_ extends Error{constructor(e,A){super(e),this.name="TimeoutError",this.previous=A;}}rm.TimeoutError=i_,rm.retryAsPromised=e_,rm.default=e_;let iG=!1;ts=nE("k1l4q");const iO=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 A=e,t=e.fs||{};return e.mkdir=e.mkdir||t.mkdir||rO.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,t)=>new Promise((r,n)=>A.mkdir(e,t,(e,A)=>e?n(e):r(A))),e.stat=e.stat||t.stat||rO.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((t,r)=>A.stat(e,(e,A)=>e?r(e):t(A))),e.statSync=e.statSync||t.statSync||rO.statSync,e.mkdirSync=e.mkdirSync||t.mkdirSync||rO.mkdirSync,A;},iY=(e,A,t)=>{let r=(0,rG.dirname)(e),n={...iO(A),recursive:!1};if(r===e)try{return n.mkdirSync(e,n);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return n.mkdirSync(e,n),t||e;}catch(A){if(A&&"ENOENT"===A.code)return iY(e,n,iY(r,n,t));if(A&&"EEXIST"!==A.code&&A&&"EROFS"!==A.code)throw A;try{if(!n.statSync(e).isDirectory())throw A;}catch(e){throw A;}}},iJ=Object.assign(async(e,A,t)=>{let r=iO(A);r.recursive=!1;let n=(0,rG.dirname)(e);return n===e?r.mkdirAsync(e,r).catch(e=>{if(e&&"EISDIR"!==e.code)throw e;}):r.mkdirAsync(e,r).then(()=>t||e,async A=>{if(A&&"ENOENT"===A.code)return iJ(n,r).then(A=>iJ(e,r,A));if(A&&"EEXIST"!==A.code&&"EROFS"!==A.code)throw A;return r.statAsync(e).then(e=>{if(e.isDirectory())return t;throw A;},()=>{throw A;});});},{sync:iY}),iH=async(e,A,t)=>{if(t!==A)return e.statAsync(A).then(e=>e.isDirectory()?t:void 0,t=>t&&"ENOENT"===t.code?iH(e,(0,rG.dirname)(A),A):void 0);},iP=(e,A,t)=>{if(t!==A)try{return e.statSync(A).isDirectory()?t:void 0;}catch(t){return t&&"ENOENT"===t.code?iP(e,(0,rG.dirname)(A),A):void 0;}},iV=(e,A)=>{let t=iO(A);if(t.recursive=!0,(0,rG.dirname)(e)===e)return t.mkdirSync(e,t);let r=iP(t,e);try{return t.mkdirSync(e,t),r;}catch(A){if(A&&"ENOENT"===A.code)return iY(e,t);throw A;}},iq=Object.assign(async(e,A)=>{let t={...iO(A),recursive:!0};return(0,rG.dirname)(e)===e?await t.mkdirAsync(e,t):iH(t,e).then(A=>t.mkdirAsync(e,t).then(e=>A||e).catch(A=>{if(A&&"ENOENT"===A.code)return iJ(e,t);throw A;}));},{sync:iV}),iW=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,ij=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,rG.resolve)(e),"win32"===iW){let{root:A}=(0,rG.parse)(e);if(/[*|"<>?:]/.test(e.substring(A.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},iX=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),i$=+iX[0]>10||10==+iX[0]&&+iX[1]>=12,iz=i$?e=>iO(e).mkdirSync===rO.mkdirSync:()=>!1,iZ=Object.assign(i$?e=>iO(e).mkdir===rO.mkdir:()=>!1,{sync:iz}),iK=(e,A)=>{e=ij(e);let t=iO(A);return iz(t)?iV(e,t):iY(e,t);},i0=Object.assign(async(e,A)=>{e=ij(e);let t=iO(A);return iZ(t)?iq(e,t):iJ(e,t);},{mkdirpSync:iK,mkdirpNative:iq,mkdirpNativeSync:iV,mkdirpManual:iJ,mkdirpManualSync:iY,sync:iK,native:iq,nativeSync:iV,manual:iJ,manualSync:iY,useNative:iZ,useNativeSync:iz});tJ=nE("ibhuk"),ri=nE("drEX5"),rI=nE("ca0ts"),to=nE("dKklS"),ti=nE("pcnv8"),tL=nE("6vN83"),tJ=nE("ibhuk"),ri=nE("drEX5"),rI=nE("ca0ts"),ti=nE("pcnv8"),rw=e=>{if("string"!=typeof e)return!1;let A=e.trim();if(A.includes(" "))return!1;try{return new r8.URL(A),!0;}catch{return!1;}},rb=async e=>{if(!rw(e))return!1;let A=await eJ(e,"HEAD");return!!A||!!(A=await eJ(e,"GET"));},ra=nE("8YrRN"),rR=nE("fYuCK"),rD=nE("2owFL");const i1=/v?(\d\S*)/,i2={llvm:eW(),clangtidy:eW(),clangformat:eW(),ninja:"1.12.1",cmake:"3.30.2",gcovr:"5.2",conan:"1.64.1",meson:"1.5.1",kcov:"42",task:"3.38.0",doxygen:eE()?"1.11.0-4":"1.11.0",gcc:eE()?"13.2.1-3":"13"},i4={pip:"22.2.0",python:"3.7.9"},i9={gcc:{24:"13",22:"13",20:"11",18:"11",16:"11",14:"11"},mingw:{24:"8.0.0-1",22:"8.0.0-1",20:"7.0.0-2"},llvm:{24:"17.0.6-ubuntu-22.04",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:{24:"17.0.6-ubuntu-22.04",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"},clangformat:{24:"17.0.6-ubuntu-22.04",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"},gcovr:{24:"6.0",22:"6.0",20:"6.0",18:"5.0"},meson:{24:"1.0.0",22:"1.0.0",20:"1.0.0",18:"0.61.4"},nala:{24:"",22:"",21:"legacy",20:"legacy",18:"legacy",16:"legacy",14:"legacy"},kcov:{24:"42-binary",22:"42-binary",20:"40-binary",18:"40",16:"40",14:"40"},doxygen:{24:"1.11.0",22:"1.11.0",20:"1.10.0",18:"1.10.0"}},i8=N(e3,{isPromise:!0});ti=nE("pcnv8"),Object.defineProperty(rS={},"__esModule",{value:!0}),rS.getUbuntuVersion=void 0,rS.getUbuntuVersion=e7;const i3=N(Ae,{isPromise:!0}),i5=N(Ao,{isPromise:!0}),i6=N(Ai,{isPromise:!0}),i7=N(As,{isPromise:!0});ti=nE("pcnv8"),ri=nE("drEX5"),tJ=nE("ibhuk");const se=new Map([[24,["Sequoia","15"]],[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"]]]),sA=N(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||l(ni).release()).split(".")[0];let[A,t]=se.get(e)||["Unknown",""];return{name:A,version:t};}();return e.split(".").map(e=>Number.parseInt(e,10));});to=nE("dKklS"),ti=nE("pcnv8"),tJ=nE("ibhuk"),ri=nE("drEX5"),ra=nE("8YrRN"),rk=nE("gWZ4x"),rI=nE("ca0ts"),ti=nE("pcnv8"),rv=rG.resolve(__dirname,"../../src/gcc");const st={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"}};rk=nE("gWZ4x"),rD=nE("2owFL"),ti=nE("pcnv8"),ri=nE("drEX5"),ri=nE("drEX5"),rN=rG.resolve(__dirname,"../../src/kcov"),to=nE("dKklS"),ti=nE("pcnv8"),tJ=nE("ibhuk"),ri=nE("drEX5"),tL=nE("6vN83"),ts=nE("k1l4q"),ti=nE("pcnv8");class sr extends Error{constructor(e){super(e),this.name="TimeoutError";}}class sn extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const so=e=>void 0===globalThis.DOMException?new sn(e):new DOMException(e),si=e=>{let A=void 0===e.reason?so("This operation was aborted."):e.reason;return A instanceof Error?A:so(A);};ri=nE("drEX5"),ti=nE("pcnv8"),ts=nE("k1l4q");const ss=ns.env["ProgramFiles(x86)"],sa=[ns.env["ProgramFiles(x86)"],ns.env.ProgramFiles],sl=["Enterprise","Professional","Community","BuildTools"],sc=["2022","2019","2017"],sE={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};rF=AL;const sg=`${ss}\\Microsoft Visual Studio\\Installer`;rL=AU,rU=function(e,A,t,r,n,o){if("win32"!=ns.platform){ts.info("This is not a Windows virtual environment, bye!");return;}ns.env.PATH+=rG.delimiter+sg;let i={win32:"x86",win64:"x64",x86_64:"x64","x86-64":"x64"};e.toLowerCase()in i&&(e=i[e.toLowerCase()]);var s=[e];r&&!0===JSON.parse(r)&&s.push("uwp"),A&&s.push(A),t&&s.push("-vcvars_ver="+t),n&&!0===JSON.parse(n)&&s.push("-vcvars_spectre_libs=spectre");let a=`"${AU(o)}" ${s.join(" ")}`;ts.debug("vcvars command-line: "+a);let l=r7.execSync(`set && cls && ${a} && cls && set`,{shell:"cmd"}).toString().split("\f"),c=l[0].split("\r\n"),E=l[1].split("\r\n"),g=l[2].split("\r\n"),u=E.filter(e=>!!e.match(/^\[ERROR.*\]/)&&!e.match(/Error in script usage. The correct usage is:$/));if(u.length>0)throw Error("invalid parameters\r\n"+u.join("\r\n"));let h={};for(let e of c){let[A,t]=e.split("=");h[A]=t;}for(let e of(ts.startGroup("Environment variables"),g)){if(!e.includes("="))continue;let[A,t]=e.split("=");t!==h[A]&&(ts.info("Setting "+A),-1!=["PATH","INCLUDE","LIB","LIBPATH"].indexOf(A.toUpperCase())&&(t=t.split(";").filter(function(e,A,t){return t.indexOf(e)===A;}).join(";")),ts.exportVariable(A,t));}ts.endGroup(),ts.info("Configured Developer Command Prompt");},tJ=nE("ibhuk");const su=12e5;(tr=rT||(rT={}))[tr.All=0]="All",tr[tr.ClangFormat=1]="ClangFormat",tr[tr.Core=2]="Core",ti=nE("pcnv8"),ri=nE("drEX5"),rl=nE("aTQrN");const sh=function(e){let A=new Set(e);for(let t of e)A.add(/^\d+/.exec(t)[0]),A.add(/^\d+\.\d+/.exec(t)[0]);return A;}(["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","18.1.0","18.1.1","18.1.2","18.1.3","18.1.4","18.1.5","18.1.6","18.1.7","18.1.8"]),sQ=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),sC=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","18.1.0","18.1.1","18.1.2","18.1.3","18.1.4","18.1.5","18.1.6","18.1.7","18.1.8"]),sI=new Map(),sB={"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","18.1.4":"-ubuntu-18.04","18.1.7":"-ubuntu-18.04","18.1.8":"-ubuntu-18.04"},sd="18.1.8";rM=rG.resolve(__dirname,"../../src/llvm");const sf=N(AW,{isPromise:!0}),sp=N(AX,{isPromise:!0}),sy=N(A$,{isPromise:!0});to=nE("dKklS"),ri=nE("drEX5"),ti=nE("pcnv8"),tJ=nE("ibhuk"),rx=rG.resolve(__dirname,"../../src/msvc"),ri=nE("drEX5"),ri=nE("drEX5"),ti=nE("pcnv8"),tJ=nE("ibhuk"),ri=nE("drEX5");let sm=!1;const sw={nala:A2,cmake:eY,ninja:AD,python:ej,vcpkg:A5,bazel:ef,conan:function(e,A,t){return At("conan",e);},meson:function(e,A,t){return At("meson",e);},gcovr:function(e,A,t){return At("gcovr",e);},opencppcoverage:A4,llvm:Aq,gcc:Ap,choco:eC,brew:eu,powershell:A8,ccache:function(e,A,t){switch(process.platform){case"win32":return eI("ccache",e);case"darwin":return eQ("ccache",e);case"linux":if(eE())return ep("ccache",e);if(ec())return eB([{name:"ccache",version:e}]);if(eg())return $([{name:"ccache",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}},sccache:function(e,A,t){switch(process.platform){case"win32":return eI("sccache",e);case"linux":case"darwin":return eQ("sccache",e);default:throw Error("Unsupported platform");}},doxygen:AI,graphviz:Au,cppcheck:AE,clangtidy:function(e,A,t){return Aj(e,A,t);},clangformat:function(e,A,t){return Aj(e,A,t,rT.ClangFormat);},msvc:A0,vcvarsall:AT,kcov:AF,make:AK,task:function(e,A,t){return eG("task",e,A3,A,t);},sevenzip:em},sb=Object.keys(sw),sR=["compiler","architecture","timeout",...sb],sD={rcPath:F("~/.cpprc"),guard:"cpp"};ts=nE("k1l4q"),ti=nE("pcnv8"),rD=nE("2owFL"),tA(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,ti.error)("main() panicked!"),(0,ti.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map