#!/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,o,n,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);});});}tb(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,o=process.cwd(),n=null!=e.options.cwd,i=n&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}try{t=tm.sync(e.command,{path:r[tR({env:r})],pathExt:A?r3.delimiter:void 0});}catch(e){}finally{i&&process.chdir(o);}return t&&(t=r3.resolve(n?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 oG&&1===e&&!A.file?g(A.original,"spawn"):null;}function h(e,A,t){let r=tp(e,A,t),o=of.spawn(r.command,r.args,r.options);return tF.hookChildProcess(o,r),o;}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 d(e,A){if(!e)throw Error("Expected a stream");let{maxBuffer:t}=A={maxBuffer:1/0,...A},r=tO(A);return await new Promise((A,o)=>{let n=e=>{e&&r.getBufferedLength()<=tx.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),o(e);};(async()=>{try{await nF(e,r),A();}catch(e){n(e);}})(),r.on("data",()=>{r.getBufferedLength()>t&&n(new nL());});}),r.getBufferedValue();}function B(e,A,t){let r;let o=n5(e,A,t),n=nX(e,A),i=n$(e,A);n8(i,o.options),nD(o.options);try{r=l(ow).spawn(o.file,o.args,o.options);}catch(A){let e=new(l(ow).ChildProcess)();return nV(e,Promise.reject(nA({error:A,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=nq(r),a=nR(r,o.options,s),c=nS(r,o.options,a),E={isCanceled:!1};r.kill=nB.bind(null,r.kill.bind(r)),r.cancel=nw.bind(null,r,E);let g=tL(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,g]=await nJ(r,o.options,c),u=n6(o.options,a),h=n6(o.options,l),Q=n6(o.options,g);if(e||0!==A||null!==t){let a=nA({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:n,escapedCommand:i,parsed:o,timedOut:s,isCanceled:E.isCanceled||!!o.options.signal&&o.options.signal.aborted,killed:r.killed});if(!o.options.reject)return a;throw a;}return{command:n,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return nM(r,o.options),r.all=nO(r,o.options),nN(r),nV(r,g),r;}function f(e,A,t){let r;let o=n5(e,A,t),n=nX(e,A),i=n$(e,A);n8(i,o.options);let s=nT(o.options);try{r=l(ow).spawnSync(o.file,o.args,{...o.options,input:s});}catch(e){throw nA({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:o,timedOut:!1,isCanceled:!1,killed:!1});}let a=n6(o.options,r.stdout,r.error),c=n6(o.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let e=nA({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:n,escapedCommand:i,parsed:o,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!o.options.reject)return e;throw e;}return{command:n,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 B(function(){if(void 0===e){let A=l(tP).sync("pwsh",{nothrow:!0});null!==A&&(e=A);let t=l(tP).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(tP).sync("sudo",{nothrow:!0});}function m(e,A=[],t=ip){return y()?function(e,A){let[t,...r]=nz(e);return f(t,r,A);}(b(e,A),t):f(e,R(A),t);}function w(e,A=[],t=ip){return y()?function(e,A){let[t,...r]=nz(e);return B(t,r,A);}(b(e,A),t):B(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(r5).statSync(e).isDirectory();await w("chown",[...(A?["-R"]:[]),process.env.SUDO_USER,e],ip);}}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]]:tZ.call(e,0):[];}function v(e,A){return e===A||e!=e&&A!=A;}function k(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,k(e.options,A));if("function"!=typeof e)throw TypeError("You must pass a function to `memoize`.");var t=A.isEqual,r=A.isMatchingKey,o=A.isPromise,n=void 0!==o&&o,i=A.maxSize,s=A.onCacheAdd,a=A.onCacheChange,l=A.onCacheHit,c=A.transformKey,E=k({isEqual:void 0===t?v:t,isMatchingKey:r,isPromise:n,maxSize:void 0===i?1:i,onCacheAdd:s,onCacheChange:a,onCacheHit:l,transformKey:c},function(e){var A={};for(var t in e)tz[t]||(A[t]=e[t]);return A;}(A)),g=new tK(E),u=g.keys,h=g.values,Q=g.canTransformKey,C=g.shouldCloneArguments,I=g.shouldUpdateOnAdd,d=g.shouldUpdateOnChange,B=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)B&&l(g,E,f),t&&(g.orderByLru(u[t],h[t],t),d&&a(g,E,f));else{var r=e.apply(this,arguments),o=C?A:S(arguments);g.orderByLru(o,r,u.length),n&&g.updateAsyncCache(f),I&&s(g,E,f),d&&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,r3.join)("/Users/",process.env.SUDO_USER):(0,r3.join)("/home/",process.env.SUDO_USER);{let e=(0,r8.homedir)();if(""===e)return;return e;}}();return void 0===A?e:e.replace(iy,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),_(A,F("~/.bashrc")),_(A,F("~/.profile"))]);}catch(e){(0,td.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,t0.pathExists)(e.rcPath))&&!(await iw(e.rcPath,"utf8")).includes(A)&&(await im(e.rcPath,` ${A} `),(0,td.info)(`Added ${A} to ${e.rcPath}`));}async function _(e,A){(await(0,t0.pathExists)(A))&&!(await iw(A,"utf-8")).includes(e)&&(await im(A,e),(0,td.info)(`${e} was added to ${A}`));}async function T(e){if(await(0,t0.pathExists)(e.rcPath)){let A=[...new Set((await iw(e.rcPath,"utf-8")).split("\n").reverse())].reverse();await ib(e.rcPath,A.join("\n")),await D(e.rcPath);}}async function x(e,A,t={}){let r={escapeSpace:!1,overwrite:!0,rcPath:iR,...t},o=function(e,A=!1){let t=A?l(t1)(e):e;return l(t2)(t,'"',"\\");}(null!=A?A:"",r.escapeSpace);try{if(tI.GITHUB_ACTIONS)try{if(!r.overwrite&&void 0!==process.env[e]){(0,td.info)(`Environment variable ${e} is already defined. Skipping.`);return;}(0,tB.exportVariable)(e,o);}catch(A){(0,td.error)(A),await M(e,o,r);}else await M(e,o,r);}catch(A){(0,td.error)(`${A} Failed to export environment variable ${e}=${o}. You should add it manually.`);}}async function M(e,A,t){let r=null!=A?A:"";switch(process.platform){case"win32":if(!t.overwrite&&void 0!==process.env[e]){(0,td.info)(`Environment variable ${e} is already defined. Skipping.`);return;}await p(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),(0,td.info)(`${e}='${r}' was set in the environment.`);return;case"linux":case"darwin":await iD(t),t.overwrite?(await iN(t.rcPath,` export ${e}="${r}" `),(0,td.info)(`${e}="${r}" was added to "${t.rcPath}`)):(await iN(t.rcPath,` if [ -z "\${${e}}" ]; then export ${e}="${r}"; fi `),(0,td.info)(`if not defined ${e} then ${e}="${r}" was added to "${t.rcPath}`));return;}process.env[e]=r;}async function O(e,A={}){let t={rcPath:iR,...A};if(!function(e){if(iL.some(A=>A.test(e))){var A,t;return(null!==(t=null===(A=process.env.PATH)||void 0===A?void 0:A.split(r3.delimiter))&&void 0!==t?t:[]).includes(e);}return!1;}(e)){process.env.PATH=`${e}${r3.delimiter}${process.env.PATH}`;try{if(tI.GITHUB_ACTIONS)try{(0,tB.addPath)(e);}catch(A){(0,td.error)(A),await G(e,t);}else await G(e,t);}catch(A){(0,td.error)(`${A} Failed to add ${e} to the percistent PATH. You should add it manually.`);}}}async function G(e,A){switch(process.platform){case"win32":await p(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,td.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await iD(A),await iF(A.rcPath,` export PATH="${e}:$PATH" `),(0,td.info)(`"${e}" was added to "${A.rcPath}"`);return;default:return;}}function Y(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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,o&&(n=2&t[0]?o.return:t[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,t[1])).done)return n;switch(o=0,n&&(t=[2&t[0],n.value]),t[0]){case 0:case 1:n=t;break;case 4:return s.label++,{value:t[1],done:!1};case 5:s.label++,o=t[1],t=[0];continue;case 7:t=s.ops.pop(),s.trys.pop();continue;default:if(!(n=(n=s.trys).length>0&&n[n.length-1])&&(6===t[0]||2===t[0])){s=0;continue;}if(3===t[0]&&(!n||t[1]>n[0]&&t[1]e.startsWith("Status: install ok installed"));}catch{return!1;}}async function K(e){try{let{stdout:A}=await B("dpkg",["-l",e],{env:X("apt-get"),stdio:"pipe"});if("string"!=typeof A)return!1;return A.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}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 er(e,A.name,A.version);return(await Z(t))?void 0:t;}async function et(e,A,t){if(void 0!==t&&""!==t){let{stdout:r}=await B("apt-cache",["search","--names-only",`^${(0,rw.default)(A)}-${(0,rw.default)(t)}$`],{env:X(e),stdio:"pipe"});if(""!==r.trim())return 0;try{let{stdout:r}=await B("apt-cache",["show",`${A}=${t}`],{env:X(e)});if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await B("apt-cache",["show",A],{env:X(e),stdio:"pipe"});if(""!==t.trim())return 2;}catch{}return iT.cache.keys.includes([e])?3:(iT(e),et(e,A,t));}async function er(e,A,t){switch(await et(e,A,t)){case 0:return`${A}-${t}`;case 1:return`${A}=${t}`;case 2:return void 0!==t&&""!==t&&(0,td.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){iT(e);let A=await ee(e,[{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}]);0!==A.length&&m(e,["install","-y","--fix-broken","-o",i_,...A],{...ip,env:X(e)});}async function en(e,A=z()){await ix(A),await ei(A),m("add-apt-repository",["-y","--no-update",e],{...ip,env:X(A)}),iT.cache.keys=[],iT.cache.values=[],iT(A);}async function ei(e){(await Z("software-properties-common"))||m(e,["install","-y","--fix-broken","-o",i_,"software-properties-common"],{...ip,env:X(e)});}async function es(e,A=!1){let t=z();for(let{name:A,version:r}of e)(0,td.info)(`Installing ${A} ${null!=r?r:""} via ${t}`);A&&iT(t),await ea(t,e);let r=await ee(t,e);if(0===r.length)return(0,td.info)("All packages are already installed"),{binDir:"/usr/bin/"};await ix(t);try{await el(e),m(t,["install","--fix-broken","-y",...r],{...ip,env:X(t)});}catch(e){if("string"==typeof e.stderr)iM.some(A=>e.stderr.includes(A))&&((0,td.warning)(`Failed to install packages ${r}. Retrying...`),m(t,["install","--fix-broken","-y","-o",i_,...r],{...ip,env:X(t)}));else throw e;}return{binDir:"/usr/bin/"};}async function ea(e,A){let t=[...new Set(A.flatMap(e=>{var A;return null!==(A=e.repository)&&void 0!==A?A:[];}))];await Promise.all(t.map(A=>en(A,e)));}async function el(e){await Promise.all(e.map(async e=>{var A;void 0!==e.key&&(await("keyUrl"in(A=e.key)?eE(A):ec(A)));}));}async function ec({key:e,keyServer:A=iG,fileName:t,keyStorePath:r=iG}){try{eu(t);let o=(0,r3.join)(r,t);return(await(0,t0.pathExists)(o))||(eg(),await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+o,"--keyserver",A,"--recv-keys",e]),await w("chmod",["644",o])),o;}catch(e){(0,td.warning)(`Failed to add apt key via server ${A}: ${e}`);return;}}async function eE({keyUrl:e,fileName:A,keyStorePath:t=iO}){try{eu(A);let r=(0,r3.join)(t,A);if(!(await(0,t0.pathExists)(r))){eg(),await es([{name:"ca-certificates"}]);let t=(0,r3.join)((0,r8.tmpdir)(),A),o=new rC.DownloaderHelper(e,(0,r8.tmpdir)(),{fileName:A});o.on("error",A=>{throw Error(`Failed to download ${e}: ${A}`);}),await o.start(),m("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--import",t]),m("chmod",["644",r]);}return r;}catch(A){(0,td.warning)(`Failed to add apt key via download ${e}: ${A}`);return;}}function eg(){m("gpg",["-k"]);}function eu(e){if(!e.endsWith(".gpg"))throw Error("Key file name must end with .gpg: "+e);}async function eh(e={}){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof A)return{binDir:A};let t=await l(tP)("brew",{nothrow:!0});if(null!==t)return{binDir:A=(0,r3.dirname)(t)};await es([{name:"ca-certificates"}]);let r=new rC.DownloaderHelper("https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh",(0,r8.tmpdir)(),{fileName:"install-brew.sh"});return r.on("error",e=>{throw Error("Failed to download the brew installer script: "+e);}),await r.start(),f("/bin/bash",[r.getDownloadPath()],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),A=eQ(),await O(A,e.rcOptions),{binDir:A};}function eQ(){if("darwin"===process.platform)return"arm64"===process.arch?"/opt/homebrew/bin/":"/usr/local/bin/";if("linux"===process.platform)return"/home/linuxbrew/.linuxbrew/bin/";throw Error("Unsupported platform for brew");}async function eC(e,A,t={}){let r={overwrite:!0,cask:!1,args:[],...t};(0,td.info)(`Installing ${e} ${null!=A?A:""} via brew`),iY&&null!==l(tP).sync("brew",{nothrow:!0})||(await eh(),iY=!0);let o=eQ(),n=(0,r3.join)(o,"brew"),i=["install",void 0!==A&&""!==A?`${e}@${A}`:e];return r.overwrite&&i.push("--overwrite"),r.cask&&i.push("--cask"),f(n,i,{stdio:"inherit"}),{binDir:o};}function eI(){return"linux"===process.platform&&(void 0===n&&(n=null!==l(tP).sync("dnf",{nothrow:!0})),n);}function ed(){return"linux"===process.platform&&(void 0===i&&(i=null!==l(tP).sync("pacman",{nothrow:!0})),i);}function eB(){return"linux"===process.platform&&(void 0===s&&(s=null!==l(tP).sync("apt-get",{nothrow:!0})),s);}async function ef(e,A,r){var o;if("win32"!==process.platform)return;if("string"==typeof t)return{binDir:t};let n=l(tP).sync("choco",{nothrow:!0});if(null!==n)return{binDir:t=(0,rR.dirname)(n)};let i="powershell.exe",s=l(tP).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 O(a,sX);let c=l(tP).sync("choco",{nothrow:!0});if(t=null!==c?(0,rR.dirname)(c):`${null!==(o=process.env.ChocolateyInstall)&&void 0!==o?o:"C:/ProgramData/chocolatey"}/bin`,await(0,t0.pathExists)(t))return{binDir:t};}async function ep(e,A,t=[]){var r;(0,td.info)(`Installing ${e} ${null!=A?A:""} via chocolatey`),iJ&&null!==l(tP).sync("choco",{nothrow:!0})||(await ef("","",process.arch),iJ=!0);let o=process.env.PATH,n={...process.env};if(n.TMP=void 0,n.TEMP=void 0,n.Path=void 0,n.PATH=o,void 0!==A&&""!==A)f("choco",["install","-y",e,"--version="+A,...t],{env:n,extendEnv:!1,stdio:"inherit"});else try{f("choco",["install","-y",e,...t],{env:n,extendEnv:!1,stdio:"inherit"});}catch(A){if(A.message.includes("exit code 3010"))(0,td.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 O(i,sX),{binDir:i};}async function ey(e){for(let{name:A,version:t}of e)(0,td.info)(`Installing ${A} ${null!=t?t:""} via dnf`);return m("dnf",["-y","install",...(await Promise.all(e.map(e=>em(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function em(e,A){if(void 0!==A&&""!==A){let{stdout:t}=await B("dnf",["search","-q",`${e}-${A}`]);if(""!==t.trim())return`${e}-${A}`;{let{stdout:t}=await B("dnf",["search","-q",`${e}${A}`]);if(""!==t.trim())return`${e}${A}`;(0,td.warning)(`Failed to install ${e} ${A} via dnf, trying without version`);}}return e;}async function ew(e,A,t){switch(process.platform){case"win32":return ep("bazelisk",e);case"darwin":return eC("bazelisk",e);case"linux":if(ed())throw Error("installing bazel on Arch linux is not supported yet");if(eI())return await ey([{name:"dnf-plugins-core"}]),m("dnf",["copr","enable","vbatts/bazel"]),ey([{name:"bazel4"}]);if(eB()){let A=await eE({fileName:"bazel-archive-keyring.gpg",keyUrl:"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`]),es([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eb(e,A,t){(0,td.info)(`Installing ${e} ${null!=A?A:""} via pacman`);let r="pacman";if("yay"===t&&null===l(tP).sync("yay",{nothrow:!0}))throw Error(`yay is needed for ${e}, but it is not installed, please install it manually first`);iP||"yay"===t||(m(r,["-Sy","--noconfirm"]),iP=!0),iH||"yay"===t||(m(r,["-S","--noconfirm","base-devel"]),iH=!0);let o=e=>"yay"===t?f(t,["-S","--noconfirm",e]):m(null!=t?t:r,["-S","--noconfirm",e]);if(void 0!==A&&""!==A){if((await eR(r,e)).includes(A))try{o(`${e}=${A}`);}catch{o(`${e}${A}`);}else(0,td.info)(`Failed to install ${e} ${A} via pacman, trying without version`),o(e);}else o(e);return{binDir:"/usr/bin/"};}async function eR(e,A){let t=[];try{let{stdout:r}=await B(e,["-Si",A]);for(let e of r.matchAll(iV))t.push(e[1]);}catch(e){(0,td.warning)(`Failed to get available versions for ${A}: ${e}`);}return t;}function eD(e,A){let t=[];A=A||i$.arch();let r=iz.join(eL(),e);if(ij.existsSync(r)){for(let e of ij.readdirSync(r))if(eN(e)){let o=iz.join(r,e,A||"");ij.existsSync(o)&&ij.existsSync(`${o}.complete`)&&t.push(e);}}return t;}function eS(e){return rU(this,void 0,void 0,function*(){return e||(e=iz.join(eU(),i2.default())),yield iW.mkdirP(e),e;});}function ev(e,A,t){return rU(this,void 0,void 0,function*(){let r=iz.join(eL(),e,iK.clean(A)||A,t||"");iq.debug("destination "+r);let o=`${r}.complete`;return yield iW.rmRF(r),yield iW.rmRF(o),yield iW.mkdirP(r),r;});}function ek(e,A,t){let r=iz.join(eL(),e,iK.clean(A)||A,t||""),o=`${r}.complete`;ij.writeFileSync(o,""),iq.debug("finished caching tool");}function eN(e){let A=iK.clean(e)||"";iq.debug("isExplicit: "+A);let t=null!=iK.valid(A);return iq.debug("explicit? "+t),t;}function eF(e,A){let t="";iq.debug(`evaluating ${e.length} versions`),e=e.sort((e,A)=>iK.gt(e,A)?1:-1);for(let r=e.length-1;r>=0;r--){let o=e[r];if(iK.satisfies(o,A)){t=o;break;}}return t?iq.debug("matched: "+t):iq.debug("match not found"),t;}function eL(){let e=process.env.RUNNER_TOOL_CACHE||"";return oo.ok(e,"Expected RUNNER_TOOL_CACHE to be defined"),e;}function eU(){let e=process.env.RUNNER_TEMP||"";return oo.ok(e,"Expected RUNNER_TEMP to be defined"),e;}function e_(e,A){let t=ov[e];return void 0!==t?t:A;}function eT(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 o,n,i;t.timeout&&(o=setTimeout(function(){n&&clearTimeout(n),r(new i5(t.name+" timed out",i));},t.timeout)),Promise.resolve(e({current:t.$current})).then(A).then(function(){o&&clearTimeout(o),n&&clearTimeout(n);}).catch(function(s){o&&clearTimeout(o),n&&clearTimeout(n),i=s,t.report&&t.report(s&&s.toString()||s,t,s);var a=t.$current{var e;let A=(0,rR.join)(null!==(e=process.env.RUNNER_TEMP)&&void 0!==e?e:(0,r8.tmpdir)(),`${Date.now()}-${(0,r3.basename)(t)}`);return(0,rv.downloadTool)(t,A);},{name:t,max:4,backoffBase:2e3,report:e=>(0,td.info)(e)});}async function ej(e,A,t){tI.GITHUB_ACTIONS&&"string"==typeof process.env.RUNNER_TOOL_CACHE&&("true"===tl("cache-tools")||"true"===process.env.CACHE_TOOLS)&&(await(0,rv.cacheDir)(e,A,t));}function eX(e,A,t){var r;let o=null!==(r=l(rD)(e))&&void 0!==r?r:e;switch(A){case"win32":{let A;let r=l(rS)(o,"v3.19.6");A=["ia32","x86","i386","x32"].includes(t)?r?"win32-x86":"windows-i386":r?"win64-x64":"windows-x86_64";let n=`cmake-${e}-${A}`;return{binRelativeDir:"bin/",binFileName:(0,rR.addExeExt)("cmake"),extractedFolderName:n,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${n}.zip`};}case"darwin":{let A=l(rS)(o,"v3.19.1"),t=`cmake-${e}-${A?"Darwin-x86_64":"macos-universal"}`;return{binRelativeDir:"CMake.app/Contents/bin/",binFileName:(0,rR.addExeExt)("cmake"),extractedFolderName:t,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${t}.tar.gz`};}case"linux":{let A;let r=l(rS)(o,"v3.19.8");A=["aarch64"].includes(t)?r?"Linux-aarch64":"linux-aarch64":r?"Linux-x86_64":"linux-x86_64";let n=`cmake-${e}-${A}`;return{binRelativeDir:"bin/",binFileName:(0,rR.addExeExt)("cmake"),extractedFolderName:n,url:`https://github.com/Kitware/CMake/releases/download/v${e}/${n}.tar.gz`};}default:throw Error(`Unsupported platform '${A}'`);}}function e$(e,A,t){return eV("cmake",e,eX,A,t);}function ez(e,A){return new Promise(t=>{try{let r=(0,oe.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 eZ(e,A){return Array.from(e).filter(e=>/^\d+\.\d+\.\d+$/.test(e)&&e.startsWith(A)).sort((e,A)=>{try{return l(rW)(e,A);}catch(t){return e.localeCompare(A);}}).reverse();}async function eK(e,A,t,r){if("linux"===A&&t.includes("ubuntu")){let e=await r(A,t);if(null!==e&&(await rq(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 o=[];for(let n of eZ(e,t)){let e=await r(A,n);if(null!==e){if(await rq(e))return[n,e];o.push(e);}}throw Error(`Unsupported target! (platform='${A}', version='${t}'). Try one of the following: ${JSON.stringify(e)}`);}async function e0(e,A=su){try{var t,r;let o=await(0,rT.getExecOutput)(e,["--version"]),n=o.stdout||o.stderr||"",i=null===(t=n.trim().match(A))||void 0===t?void 0:t[1];return null!==(r=l(rD)(i))&&void 0!==r?r:void 0;}catch(e){console.error(e);return;}}async function e1(e,A,t=su){let r=await e0(e,t);return void 0!==r&&""!==A&&-1!==l(rW)(r,A);}function e2(){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 e4(e,A,t){let r=await e3(e,A,t);l(oo)(void 0!==r.bin);let o=r.bin;if(void 0===(await Ae(o)))throw Error("pip was not installed correctly");return await e9(o),await e8(o),r;}async function e9(e){try{if(!(await Au(e)))try{await Ag(e,"pipx",void 0,{upgrade:!0,usePipx:!1});}catch(e){if(null===AB("pipx",!1))throw Error("pipx was not installed correctly "+e);}await B(e,["-m","pipx","ensurepath"],{stdio:"inherit"}),await Ag(e,"venv",void 0,{upgrade:!1,usePipx:!1});}catch(e){(0,td.warning)(`Failed to install pipx: ${e.toString()}. Ignoring...`);}}async function e8(e){try{await Ag(e,"setuptools",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1}),await Ag(e,"wheel",void 0,{upgrade:!0,isLibrary:!0,usePipx:!1});}catch(e){(0,td.warning)(`Failed to install setuptools or wheel: ${e.toString()}. Ignoring...`);}}async function e3(e,A,t){let r;let o=await e6(A);if(void 0!==o){let e=(0,rR.dirname)(o);r={bin:o,installDir:e,binDir:e};}else{if(tI.GITHUB_ACTIONS)try{(0,td.info)("Installing python in GitHub Actions");let{setupActionsPython:n}=await oF("huNX2");if(await n(e,A,t),o=await e6(A),void 0===o)throw Error("Python binary could not be found");let i=(0,rR.dirname)(o);r={bin:o,installDir:i,binDir:i};}catch(e){(0,td.warning)(e.toString());}void 0===r&&(r=await e5(A,e));}if(void 0===o||(null==r?void 0:r.bin)===void 0){if(void 0===(o=await e6(A)))throw Error("Python binary could not be found");r={bin:o,installDir:(0,rR.dirname)(o),binDir:(0,rR.dirname)(o)};}return r;}async function e5(e,A){let t;switch(process.platform){case"win32":{e?await ep("python3",A,["--params=/InstallDir:"+e]):await ep("python3",A);let r=await e6(e);if(void 0===r)throw Error("Python binary could not be found");let o=(0,rR.dirname)(r);await O(o,sX),t={installDir:o,binDir:o,bin:r};break;}case"darwin":{t=await eC("python3",A);let e=await B("brew",["--prefix","python"],{stdio:"pipe"}),r=(0,rR.join)(e.stdout,"libexec","bin");await O(r,sX);break;}case"linux":if(ed())t=await eb("python",A);else if(eI())t=await ey([{name:"python3",version:A}]);else if(eB())t=await es([{name:"python3",version:A},{name:"python-is-python3"}]);else throw Error("Unsupported linux distributions");break;default:throw Error("Unsupported platform");}return t;}async function e6(e){for(let A of["python3","python"]){let t=await e7(A,e);if(void 0!==t)return t;}if("win32"===process.platform){let e=(0,r3.parse)((0,r8.homedir)()).root;for(let A of(await(0,tV.readdir)(e)).filter(e=>e.startsWith("Python")))for(let t of["python3","python"]){let r=await e7(t,(0,rR.join)(e,A));if(void 0!==r)return r;}}}async function e7(e,A){try{var t;if(void 0!==A){let t=(0,rR.join)(A,(0,rR.addExeExt)(e));if((await(0,t0.pathExists)(t))&&(await e1(t,sQ.python)))return t;}for(let A of null!==(t=await l(tP)(e,{nothrow:!0,all:!0}))&&void 0!==t?t:[])if(await e1(A,sQ.python))return A;}catch{}}async function Ae(e){let A=await AA();return void 0===A?((0,td.info)("pip was not found. Installing pip"),await Ar(e),AA()):A;}async function AA(){for(let e of["pip3","pip"]){let A=await At(e);if(void 0!==A)return A;}}async function At(e){try{var A;for(let t of null!==(A=await l(tP)(e,{nothrow:!0,all:!0}))&&void 0!==A?A:[])if(await e1(t,sQ.pip))return t;}catch{}}async function Ar(e){(await Ao(e))||(await AB("pip"),await Ao(e));}async function Ao(e){try{return await B(e,["-m","ensurepip","-U","--upgrade"],{stdio:"inherit"}),!0;}catch(A){(0,td.info)(A.toString());try{return await B(e,["-m","pip","install","--upgrade","pip"],{stdio:"inherit"}),!0;}catch(e){(0,td.info)(e.toString());}}return!1;}async function An(e){let A=[];"linux"===process.platform?A.push("/home/runner/.local/bin/"):"darwin"===process.platform&&A.push("/usr/local/bin/");let t=(await(0,rT.getExecOutput)(`${e} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim();return A.push((0,rR.join)(t,"Scripts"),(0,rR.join)(t,"Scripts","bin"),(0,rR.join)(t,"bin")),[...new Set(A)];}function Ai(e,A,t=null){return As(A)&&"linux"===process.platform&&null!==t&&e in sC?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,sC[e]):As(A)&&e in sh?sh[e]:"true"===A?"":null!=A?A:"";}function As(e){return"true"===e||void 0===e;}async function Aa(){var e,A;if("linux"!==process.platform)return[];let t=await(e="lsb_release",A=["-a"],new Promise((t,r)=>{of.execFile(e,A,{encoding:"utf8",shell:!1},(o,n,i)=>{if(o){if("errno"in o&&"ENOENT"===o.code){t(null);return;}r(Error(`Could not execute \`${e} ${A.join(" ")}\`: ${o} (stderr=${i})`));return;}t(n);});}));if(null===t)return[];let r=null,o=null,n=!1;for(let e of t.split("\n")){let A=e.match(/^Distributor ID:\s*(.+)$/);if(null!==A){if("Ubuntu"!==A[1])return[];n=!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&&(o=i),n&&r&&o)break;}if(!n)return[];for(let e of[r,o])if(e){let A=[e[1],e[2]];return e[3]&&A.push(e[3]),A.map(e=>parseInt(e,10));}return[];}async function Al(){try{if(!eB())return null;{try{null===l(tP).sync("lsb_release",{nothrow:!0})&&(await es([{name:"lsb-release"}]));}catch{return Ac();}let e=await(0,rX.getUbuntuVersion)();if(0===e.length)return Ac();return e;}}catch(e){return(0,td.warning)(e.toString()),null;}}function Ac(){if(!("version"in l(r8)&&"function"==typeof l(r8).version))return null;let e=l(r8).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 AE(e,A,t={}){return Ag(await sp(),e,A,t);}async function Ag(e,A,t,r={}){let{usePipx:o=!0,user:n=!0,upgrade:i=!1,isLibrary:s=!1}=r,a=o&&!s&&(await Au(e)),l=a?"pipx":"pip";if(await AI(e,A))try{(0,tB.info)(`Installing ${A} ${null!=t?t:""} via ${l}`);let r=void 0!==t&&""!==t?`${A}==${t}`:A,o=process.env;a&&n&&(o.PIPX_HOME=await sB(),o.PIPX_BIN_DIR=await sf()),f(e,["-m",l,...(i?a?["upgrade"]:["install","--upgrade"]:["install"]),...(!a&&n?["--user"]:[]),r],{stdio:"inherit",env:o});}catch(e){if((0,tB.info)(`Failed to install ${A} via ${l}: ${e}.`),(await AB(A))===null)throw Error(`Failed to install ${A} via ${l}: ${e}.`);}else if((await AB(A))===null)throw Error(`Failed to install ${A} as it was not found via ${l} or the system package manager`);let c=await sI(e),E=await Ad(c,A);return await O(E,sX),{binDir:E};}async function Au(e){return 0===(await B(e,["-m","pipx","--help"],{stdio:"ignore",reject:!1})).exitCode;}async function Ah(){let e=process.env.PIPX_HOME;if(void 0!==e)return e;let A=F("~/.local/pipx");if(await(0,t0.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 sg(e),await sg((0,rR.join)(e,"trash")),await sg((0,rR.join)(e,"shared")),await sg((0,rR.join)(e,"venv")),e;}async function AQ(){if(void 0!==process.env.PIPX_BIN_DIR)return process.env.PIPX_BIN_DIR;let e=F("~/.local/bin");return await O(e,sX),await sg(e),e;}async function AC(){let e=(await e4(Ai("python",void 0,await sd()),"",process.arch)).bin;if(void 0===e)throw Error("Python binary was not found");return e;}async function AI(e,A){return 0===(await B(e,["-m","pip","-qq","index","versions",A],{stdio:"ignore",reject:!1})).exitCode;}async function Ad(e,A){let t=(await Promise.all(e.map(e=>(0,t0.pathExists)((0,rR.join)(e,(0,rR.addExeExt)(A)))))).findIndex(e=>e);if(-1!==t)return e[t];let r=l(tP).sync((0,rR.addExeExt)(A),{nothrow:!0});return null!==r?(0,rR.dirname)(r):e[e.length-1];}function AB(e,A=!0){if("linux"===process.platform){if((0,tB.info)(`Installing ${e} via the system package manager`),ed())return eb(A?"python-"+e:e);if(eI())return ey([{name:A?"python3-"+e:e}]);if(eB())return es([{name:A?"python3-"+e:e}]);}return null;}async function Af(e,A,t){switch(process.platform){case"win32":return await ep("cppcheck",e),{binDir:await Ap()};case"darwin":return eC("cppcheck",e);case"linux":if(ed())return eb("cppcheck",e);if(eI())return ey([{name:"ccache",version:e}]);if(eB())return es([{name:"cppcheck",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Ap(){let e="C:/Program Files/Cppcheck";return await O(e,sX),e;}async function Ay(e,A,t){switch(process.platform){case"win32":return await ep("graphviz",e),Am();case"darwin":return eC("graphviz",e);case"linux":if(ed())return eb("graphviz",e);if(eI())return ey([{name:"graphviz",version:e}]);if(eB())return es([{name:"graphviz",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function Am(){if("win32"===process.platform){let e="C:/Program Files/Graphviz/bin";return await O(e,sX),{binDir:e};}throw Error("Unsupported platform");}async function Aw(e,A){let{ArchiveHdi:t}=await oF("5NE8y"),r=new t(e);await r.read(async e=>{await e.extract((0,r3.join)(A,e.path));});}function Ab(e,A,t){switch(A){case"linux":{let A="doxygen-"+e;return{binRelativeDir:"bin/",binFileName:(0,rR.addExeExt)("doxygen"),extractedFolderName:A,url:`https://www.doxygen.nl/files/${A}.linux.bin.tar.gz`};}case"win32":{let A="doxygen-"+e;return{binRelativeDir:"",binFileName:(0,rR.addExeExt)("doxygen"),extractedFolderName:A,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,rR.addExeExt)("doxygen"),extractedFolderName:A,extractFunction:Aw,url:`https://doxygen.nl/files/${A}.dmg`};}default:throw Error(`Unsupported platform '${A}'`);}}async function AR(e,A,t){switch(process.platform){case"win32":{await l(rJ)(()=>ep("doxygen.install",e),{name:"doxygen.install",max:4,backoffBase:2e3,report:e=>(0,td.info)(e)});let A=await AD();return await Ay(Ai("graphviz",void 0),"",t),{binDir:A};}case"darwin":{let e=await eC("doxygen",void 0);return sm()[0]>11&&(await Ay(Ai("graphviz",void 0),"",t)),e;}case"linux":{let r;if(""===e||ed()||eI()){if(ed())r=await eb("doxygen",e);else if(eI())return ey([{name:"doxygen",version:e}]);else if(eB())r=await es([{name:"doxygen",version:e}]);else throw Error("Unsupported linux distributions");}else if(eB())try{r=await eV("doxygen",e,Ab,A,t);try{await es([{name:"libclang-cpp9"}]);}catch(e){(0,td.info)("Failed to download libclang-cpp9 that might be needed for running doxygen. "+e);}}catch(e){(0,td.notice)(`Failed to download doxygen binary. ${e}. Falling back to apt-get.`),r=await es([{name:"doxygen"}]);}else throw Error("Unsupported linux distributions");return await Ay(Ai("graphviz",void 0,await sd()),"",t),r;}default:throw Error("Unsupported platform");}}async function AD(){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,t0.pathExists)((0,rR.join)(e,"doxygen.exe")))return await O(e,sX),e;throw Error("Failed to find doxygen binary");}throw Error("Unsupported platform");}async function AS(){if("darwin"===process.platform)try{let e=await(0,rT.getExecOutput)("xcrun --sdk macosx --show-sdk-path"),A=e.stdout||e.stderr;A?await x("SDKROOT",A.trim(),sX):(0,td.error)("SDKROOT not set");}catch(e){(0,td.error)(e);}}function Av(e,A,t){if("win32"===A){let A=sw[e];if(void 0===A)throw Error(`mingw version ${e} is not supported`);return{binRelativeDir:"bin/",binFileName:(0,rR.addExeExt)("g++"),extractedFolderName:"mingw64",extractFunction:eO,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 Ak(e,A,t,r=40){let o;switch(process.platform){case"win32":("arm"===t||"arm64"===t)&&(await ep("gcc-arm-embedded",e));try{o=await eV("g++",e,Av,A,t);}catch(A){(0,td.info)(`Failed to download g++ binary. ${A}. Falling back to chocolatey.`),o=await AF(e,t);}break;case"darwin":o=await eC("gcc",e);break;case"linux":"x64"===t?ed()?o=await eb("gcc",e):eI()?o=await ey([{name:"gcc",version:e},{name:"gcc-c++",version:e},{name:"libstdc++-devel"}]):eB()&&(o=await es([{name:"gcc",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}},{name:"g++",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])):((0,td.info)(`Install g++-multilib because gcc for ${t} was requested`),ed()?await eb("gcc-multilib",e):eB()&&(await es([{name:"gcc-multilib",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}])));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==o)return await AL(e,o.binDir,r),o;}async function AN(e,A,t){let r;switch(process.platform){case"win32":case"darwin":return Ak(e,A,t);case"linux":ed()?r=await eb("mingw-w64-gcc",e):eI()?r=await ey([{name:"mingw64-gcc",version:e}]):eB()&&(r=await es([{name:"mingw-w64",version:e,repository:"ppa:ubuntu-toolchain-r/test",key:{key:"1E9377A2BA9EF27F",fileName:"ubuntu-toolchain-r-test.gpg"}}]));break;default:throw Error("Unsupported platform for "+t);}if(void 0!==r)return r;}async function AF(e,A){var t,r;let o;if(await ep("mingw",e),"x64"===A&&(await(0,t0.pathExists)("C:/tools/mingw64/bin"))?(o="C:/tools/mingw64/bin",await O(o,sX)):"ia32"===A&&(await(0,t0.pathExists)("C:/tools/mingw32/bin"))?(o="C:/tools/mingw32/bin",await O(o,sX)):(await(0,t0.pathExists)(`${null!==(t=process.env.ChocolateyInstall)&&void 0!==t?t:"C:/ProgramData/chocolatey"}/bin/g++.exe`))&&(o=`${null!==(r=process.env.ChocolateyInstall)&&void 0!==r?r:"C:/ProgramData/chocolatey"}/bin`),void 0!==o)return{binDir:o};}async function AL(e,A,t=40){let r=[];if("win32"===process.platform)r.push(x("CC",(0,rR.addExeExt)(`${A}/gcc`),sX),x("CXX",(0,rR.addExeExt)(`${A}/g++`),sX));else{var o;let n=l(r$)(null!==(o=l(rD)(e))&&void 0!==o?o:e);n>=5?(r.push(x("CC",`${A}/gcc-${n}`,sX),x("CXX",`${A}/g++-${n}`,sX)),eB()&&r.push(j("cc",`${A}/gcc-${n}`,sX,t),j("cxx",`${A}/g++-${n}`,sX,t),j("gcc",`${A}/gcc-${n}`,sX,t),j("g++",`${A}/g++-${n}`,sX,t))):(r.push(x("CC",`${A}/gcc-${e}`,sX),x("CXX",`${A}/g++-${e}`,sX)),eB()&&r.push(j("cc",`${A}/gcc-${e}`,sX,t),j("cxx",`${A}/g++-${e}`,sX,t),j("gcc",`${A}/gcc-${e}`,sX,t),j("g++",`${A}/g++-${e}`,sX,t)));}r.push(AS()),tI.GITHUB_ACTIONS&&(await AU()),await Promise.all(r);}async function AU(){let e=(0,rR.join)(rz,"gcc_matcher.json");if(!(await(0,t0.pathExists)(e)))return(0,td.warning)("the gcc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,td.info)("::add-matcher::"+e);}function A_(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,rR.addExeExt)("ninja"),extractedFolderName:"",url:`https://github.com/ninja-build/ninja/releases/download/v${e}/ninja-${r}.zip`};}function AT(e,A,t){return eV("ninja",e,A_,A,t);}function Ax(e){return{url:`https://github.com/SimonKagstrom/kcov/releases/download/${e}/kcov-amd64.tar.gz`,extractedFolderName:"",binRelativeDir:"usr/local/bin",binFileName:(0,rR.addExeExt)("kcov")};}function AM(e){return{url:`https://github.com/SimonKagstrom/kcov/archive/refs/tags/${e}.tar.gz`,extractedFolderName:"",binRelativeDir:"build/src",binFileName:(0,rR.addExeExt)("kcov"),extractFunction:AO};}async function AO(e,A){let t=await eP(e,A,1),r=await AG();"linux"===process.platform&&(ed()?await Promise.all([eb("libdwarf"),eb("libcurl-openssl")]):eI()?await ey([{name:"libdwarf-devel"},{name:"libcurl-devel"}]):eB()&&(await es([{name:"libdw-dev"},{name:"libcurl4-openssl-dev"}])));try{if(null!==l(tP).sync("patch",{nothrow:!0})){let e=(0,rR.join)(rZ,"gcc13.patch");await B("patch",["-N","-p1","-i",e],{cwd:t,stdio:"inherit"});}else(0,td.info)("`patch` not found, skipping gcc13.patch, kcov may not build on gcc 13");}catch{}let o=(0,rR.join)(t,"build");return await B(r,["-S",t,"-B",o,"-DCMAKE_BUILD_TYPE=Release","-G","Ninja"],{cwd:t,stdio:"inherit"}),await B(r,["--build",o,"--config","Release"],{cwd:t,stdio:"inherit"}),t;}async function AG(){let e=l(tP).sync("cmake",{nothrow:!0});if(null===e){let{binDir:A}=await e$(Ai("cmake",void 0,await sd()),(0,rR.join)(F("~"),"cmake"),"");e=(0,rR.join)(A,"cmake");}return null===l(tP).sync("ninja",{nothrow:!0})&&(await AT(Ai("ninja",void 0,await sd()),(0,rR.join)(F("~"),"ninja"),"")),e;}async function AY(e,A,t){var r;let o;if("linux"!==process.platform){(0,td.info)("Kcov is not supported on non-linux");return;}let n=e.split("-"),i=(r=n[0]).match(/^v/)?r:"v"+r,s=n[1],a=Number.parseInt(i.replace(/^v/,""),10);return 38===a&&(i="v38"),"binary"===s&&a>=39?(o=await eV("kcov",i,Ax,A,t),ed()?await eb("binutils"):eI()?await ey([{name:"binutils"}]):eB()&&(await es([{name:"libbinutils"}]))):o=await eV("kcov",i,AM,A,t),o;}function AJ(e){if(Object.values(sL).includes(e));else if(e in sL)return sL[e];return e;}function AP(e){let A;let t=AJ(e);if(t){let e=t.split(".")[0]+".9";A=`-version "${t},${e}"`;}else A="-latest";let r=function(e,A){try{return of.execSync(`vswhere -products * ${A} -prerelease -property installationPath`).toString().trim()+"\\"+e;}catch(e){tB.warning("vswhere failed: "+e);}return null;}("VC\\Auxiliary\\Build\\vcvarsall.bat",A);if(r&&r5.existsSync(r))return tB.info("Found with vswhere: "+r),r;tB.info("Not found with vswhere");let o=e?[function(e){if(Object.keys(sL).includes(e));else for(let[A,t]of Object.entries(sL))if(t===e)return A;return e;}(e)]:sF;for(let e of sk)for(let A of o)for(let t of sN)if(r=`${e}\\Microsoft Visual Studio\\${A}\\${t}\\VC\\Auxiliary\\Build\\vcvarsall.bat`,tB.info("Trying standard location: "+r),r5.existsSync(r))return tB.info("Found standard location: "+r),r;if(tB.info("Not found in standard locations"),r=`${sv}\\Microsoft Visual C++ Build Tools\\vcbuildtools.bat`,r5.existsSync(r))return tB.info("Found VS 2015: "+r),r;throw tB.info("Not found in VS 2015 location: "+r),Error("Microsoft Visual Studio not found");}async function AH(e,A,t,r,o,n,i){void 0!==A&&(await(0,t0.pathExists)(A))&&((0,td.info)(`Adding ${A} to PATH`),await x("VCTargetsPath",A,sX)),await r1(function(e){switch(e){case"x32":case"32":case"ia32":return"x86";case"64":return"x64";default:return e;}}(t),o,r,n,i,e);}async function AV(e,A,t,r,o,n,i,s=s_){(0,tB.startGroup)(`Installing ${e} ${A}`);let a=!1;try{a=await function(e,A){let t;let{milliseconds:r,fallback:o,message:n,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(sS(e)),e.addEventListener("abort",()=>{a(sS(e));});}if(r===Number.POSITIVE_INFINITY){e.then(s,a);return;}let l=new sb();t=i.setTimeout.call(void 0,()=>{if(o){try{s(o());}catch(e){a(e);}return;}"function"==typeof e.cancel&&e.cancel(),!1===n?s():n instanceof Error?a(n):(l.message=null!=n?n:`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;}(Aq(e,A,t,r,o,n),{milliseconds:s,message:`Timeout while installing ${e} ${A}. You can increase the timeout from options`});}catch(A){(0,td.error)(A),A instanceof Error&&void 0!==A.stack&&(0,td.error)(A.stack),i.push(`${e} failed to install`);}return(0,tB.endGroup)(),a;}async function Aq(e,A,t,r,o,n){let i;let s=["llvm","clangformat","clangtidy"].includes(e);if("vcvarsall"===e)await AH(Ai(e,A,t),void 0,r,void 0,void 0,!1,!1);else if("brew"===e)i=await eh({rcOptions:sX});else{let n=(0,rR.join)(o,s?"llvm":e),a=Ai(e,A,t),l=sq[e];i=await l(a,n,r);}return n.push(tc(e,i)),s;}async function AW(e,A=0){let t="/usr/lib/llvm-"+e;await es([{name:"ca-certificates"}]);let r=new rC.DownloaderHelper("https://apt.llvm.org/llvm.sh",(0,r8.tmpdir)(),{fileName:"llvm.sh"});r.on("error",e=>{throw Error("Failed to download the LLVM installer script: "+e);}),await r.start();let o=await(0,tV.readFile)(r.getDownloadPath(),"utf-8"),n=(0,r3.join)((0,r8.tmpdir)(),"llvm-setup-cpp.sh"),i=await Aj(o,n,e,A);return await es(i),await(0,tV.chmod)(n,"755"),await w("bash",[n,""+e,...(0===A?["all"]:[])],{stdio:"inherit",shell:!0,timeout:s_}),await O(`${t}/bin`,sX),{installDir:""+t,binDir:`${t}/bin`,bin:`${t}/bin/clang++`};}async function Aj(e,A,t,r){var o,n,i,s,a;let l=(o=e,"1"!==process.env.NODE_DEBUG&&"true"!==process.env.NODE_DEBUG?o.replace(/set -eux/g,"set -eu"):o);return n=r,i=l=l.replace(/add-apt-repository "\${REPO_NAME}"/g,`add-apt-repository -y -n "\${REPO_NAME}" apt-get update -o ${i_} -y`),s=t,l=1===n?i.replace(/ -y \$PKG/g," -y clang-format-"+s):i,a=l=await AX(l),l=$()?a.replace(/apt-get/g,"nala"):a,await(0,tV.writeFile)(A,l),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function AX(e){let A=e.replace(/apt-get install -y/g,`apt-get install -o Dpkg::Options::="--force-overwrite" -o ${i_} -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 K(t))&&((0,oQ.info)("Removing conflicting package "+t),A=A.replace(e,""));})),A;}function A$(e,A,t){let r=`${A}${e}${t}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${r}`;}function Az(e,A,t){let r=`${A}${e}${t}`;return`https://releases.llvm.org/${e}/${r}`;}async function AZ(e){let A;if(sx.has(e))return null;let t="LLVM-",r=l(rS)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=l(rS)(e,"9.0.1"),n=!1;return o&&(A=Az(e,t,r),(await rq(A))||(n=!0)),(n||!o)&&(A=A$(e,t,r)),A;}function AK(e,A){switch(e){case"darwin":return function(e){if(sM.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(rS)(e,"9.0.1")?Az(e,t,r):A$(e,t,r);}(A);case"linux":return function(e){let A,t,r=e,o=sO.get(r);if(void 0!==o&&(r=o),r.includes("ubuntu")){let e=r.replace(/-ubuntu-.*/,"");if(!sT.has(e))throw Error("Unsupported Ubuntu version: "+e);A=r.replace(e,""),r=eZ(sT,e)[0];}else""!==r&&r in sG?A=sG[r]:(A=sG[sY],(0,td.warning)(`Falling back to LLVM version ${sY} ${A} for the Ubuntu.`));let n="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(rS)(r,"9.0.1"))?Az(r,n,t):A$(r,n,t);}(A);case"win32":return AZ(A);default:return null;}}async function A0(e,A,t){let[r,o]=await eK(sT,A,e,AK);return(0,td.info)("specific llvm version: "+r),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,rR.addExeExt)("clang"),extractFunction:"win32"===A?eY:(e,A)=>eP(e,A,1)};}async function A1(e,A,t){var r;let o=await sJ(e,A,t);return await A3(null!==(r=o.installDir)&&void 0!==r?r:A),o;}async function A2(e,A,t){let[r,o]=await Promise.all([A4(e,A,t),A5()]);return await sH(t),r;}async function A4(e,A,t,r=r2.All){let o=Number.parseInt(function(e){if(null===l(rj)(e))try{let A=l(rD)(e);if(null!==A)return(0,td.info)(`Coerced version '${e}' to '${A}'`),A.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(eB())return await AW(o,r);}catch(e){(0,td.info)("Failed to install llvm via system package manager "+e);}let n=await eV("llvm",e,A0,A,t);return await sP(o),n;}async function A9(e){eB()&&(e<=10?await es([{name:"libtinfo5"}]):await es([{name:"libtinfo-dev"}]));}async function A8(e){"linux"===process.platform&&(await Ak(Ai("gcc",void 0,await sd()),"",e,40));}async function A3(e){var A,t;let r=null!==(A=process.env.LD_LIBRARY_PATH)&&void 0!==A?A:"",o=null!==(t=process.env.DYLD_LIBRARY_PATH)&&void 0!==t?t:"",n=[x("LLVM_PATH",e,sX),x("LD_LIBRARY_PATH",`${e}/lib${r3.delimiter}${r}`,sX),x("DYLD_LIBRARY_PATH",`${e}/lib${r3.delimiter}${o}`,sX),x("LDFLAGS",`-L"${e}/lib"`,sX),x("CPPFLAGS",`-I"${e}/include"`,sX),x("CC",(0,rR.addExeExt)(`${e}/bin/clang`),sX),x("CXX",(0,rR.addExeExt)(`${e}/bin/clang++`),sX),x("LIBRARY_PATH",`${e}/lib`,sX),AS()];eB()&&n.push(j("cc",`${e}/bin/clang`,sX,60),j("cxx",`${e}/bin/clang++`,sX,60),j("clang",`${e}/bin/clang`,sX),j("clang++",`${e}/bin/clang++`,sX),j("lld",`${e}/bin/lld`,sX),j("ld.lld",`${e}/bin/ld.lld`,sX),j("llvm-ar",`${e}/bin/llvm-ar`,sX)),await Promise.all(n);}async function A5(){if(tI.GITHUB_ACTIONS){let e=(0,rR.join)(r4,"llvm_matcher.json");if(!(await(0,t0.pathExists)(e)))return(0,td.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,td.info)("::add-matcher::"+e);}}async function A6(e,A,t){switch(process.platform){case"win32":return ep("make",e);case"darwin":return await eC("make",e),await O("/usr/local/opt/make/libexec/gnubin",sX),{binDir:"/usr/local/opt/make/libexec/gnubin"};case"linux":if(ed())return eb("make",e);if(eI())return ey([{name:"make",version:e}]);if(eB())return es([{name:"make",version:e}]);throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function A7(e,A,t,r,o,n){let i,s;if("win32"!==process.platform)return;let a=rK(e);(0,td.info)(`Checking if MSVC ${a} is already installed`);let l=!1;try{let e=r0(a);l=!0,(0,td.info)("Found the pre-installed version of MSVC at "+e);}catch{}if(!l)try{"14.0"===a?(i="14.0",await ep("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 ep("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 ep("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 ep("visualstudio2022buildtools","117.0.5.0",[]),s=void 0):(0,td.error)(`The given MSVC versions ${e} is not supported yet.`);}catch(e){(0,td.error)(e);}await AH(a,s,t,i,r,o,n),tI.GITHUB_ACTIONS&&(await te());}async function te(){let e=(0,rR.join)(r9,"msvc_matcher.json");if(!(await(0,t0.pathExists)(e)))return(0,td.warning)("the msvc_matcher.json file does not exist in the same folder as setup-cpp.js");(0,td.info)("::add-matcher::"+e);}async function tA(e,A,t){if(!eB())return;if("string"==typeof o)return{binDir:o};let r=l(tP).sync("nala",{nothrow:!0});if(null!==r)return{binDir:o=(0,rR.dirname)(r)};await es([{name:"python3-apt"}]);let n=await eE({fileName:"volian-archive-nala.gpg",keyUrl:"https://deb.volian.org/volian/nala.key"});m("/bin/bash",["-c",`echo "deb [signed-by=${n}] http://deb.volian.org/volian/ nala main" | tee /etc/apt/sources.list.d/volian-archive-nala.list`]);try{"legacy"!==e?await es([{name:"nala"}],!0):await es([{name:"nala-legacy"}],!0);}catch(e){await es([{name:"nala-legacy"}],!0);}return{binDir:o="/usr/bin"};}async function tt(e,A,t){if("win32"===process.platform)return await ep("opencppcoverage",e),{binDir:await tr()};}async function tr(){let e="C:/Program Files/OpenCppCoverage";return await O(e,sX),e;}function to(e,A,t){return{url:function(e,A,t){switch(e){case"win32":{let e=["ia32","x86","i386","x32"].includes(A)?"win-x86":"win-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${t}/PowerShell-${t}-${e}.zip`;}case"darwin":{let e=["arm","arm64"].includes(A)?"osx-arm64":"osx-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${t}/powershell-${t}-${e}.tar.gz`;}case"linux":{var r;let e=null!==(r={arm64:"linux-arm64",arm:"linux-arm64",arm32:"linux-arm32",aarch64:"linux-arm64",x64:"linux-x64"}[A])&&void 0!==r?r:"linux-x64";return`https://github.com/PowerShell/PowerShell/releases/download/v${t}/powershell-${t}-${e}.tar.gz`;}default:throw Error(`Unsupported platform '${e}'`);}}(A,t,e),binRelativeDir:"",binFileName:(0,rR.addExeExt)("pwsh"),extractedFolderName:""};}async function tn(e,A,t){try{return await eV("pwsh",e,to,A,t);}catch(r){return(0,td.error)(`Failed to setup pwsh via download: ${r}. Trying package managers...`),ti(e,A,t);}}async function ti(e,A,t){switch(process.platform){case"win32":{await ep("powershell-core",e);let A="C:/Program Files/PowerShell/7";return await O(A,sX),{binDir:A};}case"darwin":return eC("powershell",e,{cask:!0,overwrite:!1});case"linux":if(ed())return eb("powershell-bin",e,"yay");if(eI())return await ey([{name:"curl"}]),m("/bin/bash",["-c","curl https://packages.microsoft.com/config/rhel/8/prod.repo | sudo tee /etc/yum.repos.d/microsoft.repo"]),ey([{name:"powershell",version:e}]);if(eB()){await es([{name:"curl"}]);let A=await sd(),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"]),es([{name:"powershell",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}function ts(e,A,t){var r;let o="win32"===(r=A)?"windows":r,n=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?"zip":"tar.gz";return{binRelativeDir:"",binFileName:(0,rR.addExeExt)("task"),extractedFolderName:"",url:`https://github.com/go-task/task/releases/download/v${e}/task_${o}_${n}.${i}`};}async function ta(e,A,t){return sV&&null!==l(tP).sync("vcpkg",{nothrow:!0})?{binDir:(0,rR.dirname)(l(tP).sync("vcpkg"))}:("linux"===process.platform&&(ed()?await Promise.all([eb("curl"),eb("zip"),eb("unzip"),eb("tar"),eb("git"),eb("pkg-config")]):eI()?await ey([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]):eB()&&(await es([{name:"curl"},{name:"zip"},{name:"unzip"},{name:"tar"},{name:"git"},{name:"pkg-config"}]))),(await(0,t0.pathExists)((0,rR.join)(A,(0,rR.addShExt)("bootstrap-vcpkg",".bat"))))?(0,td.notice)(`Vcpkg folder already exists at ${A}. Skipping the clone`):f("git",["clone","https://github.com/microsoft/vcpkg"],{cwd:(0,rR.dirname)(A),stdio:"inherit"}),""!==e&&"true"!==e&&((0,td.info)("Checking out vcpkg version "+e),f("git",["checkout",e],{cwd:A,stdio:"inherit"})),f((0,rR.addShExt)((0,rR.addShRelativePrefix)("bootstrap-vcpkg"),".bat"),{cwd:A,shell:!0,stdio:"inherit"}),await D(A),await O(A,sX),sV=!0,{binDir:A});}function tl(e){let A=(0,tB.getInput)(e.toLowerCase());if("false"!==A&&""!==A)return A;}function tc(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,o,n,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(rj)(e)||(0,td.info)(`Invalid semver version ${e} used for the compiler.`),{compiler:t,version:e};}return{compiler:t,version:void 0};}(e);switch((0,tB.startGroup)(`Installing ${s} ${null!=a?a:""}`),s){case"llvm":case"clang":case"clang++":{let e=await A1(Ai("llvm",a,A),(0,r3.join)(t,"llvm"),r);await x("GCOV","llvm-cov gcov",sX),o.push(tc("llvm",e));break;}case"gcc":case"mingw":case"cygwin":case"msys":{let e="mingw"===s?Ai("mingw",a,A):Ai("gcc",a,A),i="mingw"===s?await AN(e,(0,r3.join)(t,"gcc"),r):await Ak(e,(0,r3.join)(t,"gcc"),r);n&&(await x("CPPFLAGS","",sX)),await function(e){let A=l(rj)(e),t=null!==A?l(r$)(A):e;return x("GCOV",""!==t?"gcov-"+t:"gcov",sX);}(e),o.push(tc("gcc",i));break;}case"cl":case"msvc":case"msbuild":case"vs":case"visualstudio":case"visualcpp":case"visualc++":{let e=await A7(Ai("msvc",a,A),(0,r3.join)(t,"msvc"),r);n&&(await x("CPPFLAGS","",sX)),o.push(tc("msvc",e));break;}case"appleclang":case"applellvm":(0,tB.notice)("Assuming apple-clang is already installed"),await Promise.all([x("CC","clang",sX),x("CXX","clang++",sX)]),o.push(tc("apple-clang",void 0));break;default:i.push("Unsupported compiler "+s);}}catch(A){(0,td.error)(A),i.push("Failed to install the "+e);}(0,tB.endGroup)();}async function tg(e){var A,t,r;let o,n,i=Promise.resolve();tI.GITHUB_ACTIONS||(i=P(),process.env.ACTIONS_ALLOW_UNSECURE_COMMANDS="true");let s=function(e,A){A=A||{};var t,r,o,n,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=H(A.string),A.boolean=H(A.boolean),g)for(t in A.alias)for(a=0,r=A.alias[t]=H(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(n=typeof A.default[t],r=A.alias[t]=A.alias[t]||[],void 0!==A[n])for(A[n].push(t),a=0;aa;a++){if("--"===(o=e[a])){s._=s._.concat(e.slice(++a));break;}for(l=0;l0;)s[r.shift()]=s[t];return s;}(e,{string:[...sj,"timeout"],default:Object.fromEntries(sj.map(e=>[e,tl(e)])),alias:{h:"help"},boolean:"help"});s.help&&((0,td.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=t8.create({autoloadLocales:!0});t8.addLocale(l(t3)),t4.addLocale(l(t9));let h=await sd();if(!function(e,A){let t=A.filter(A=>void 0!==e[A]),r=t.filter(A=>!As(e[A])),o=r.length>=1?e[r[0]]:"true";if(r.some(A=>e[A]!==o))return!1;for(let A of t)e[A]=o;return!0;}(s,["llvm","clangtidy","clangformat"]))return(0,td.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ed()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,td.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eb("python-pygments"));let Q=!1,C=!1;for(let e of sW){if(tI.isCI&&0!==g.length){C=!0;break;}let A=s[e];void 0!==A&&(o=Date.now(),Q=await AV(e,A,h,a,c,E,g,6e4*Number.parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),n=Date.now(),(0,td.info)("took "+(u.format(o,n)||"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,td.info)("took "+(u.format(A,t)||"0 seconds"));}}if(await T(sX),0===E.length&&0===g.length)return(0,td.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of E)(0,td.success)(e);for(let e of g)(0,td.error)(e);if((0,td.info)("setup-cpp finished"),!tI.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,td.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,td.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await i,0===g.length?0:1;}var tu,th,tQ,tC,tI,td,tB,tf,tp,ty,tm,tw,tb,tR,tD,tS,tv,tk,tN,tF,tL,tU,t_,tT,tx,tM,tO,tG,tY,tJ,tP,tH,tV,tq,tW,tj,tX,t$,tz,tZ,tK,t0,t1,t2,t4,t9,t8,t3,t5,t6,t7,re,rA,rt,rr,ro,rn,ri,rs,ra,rl,rc,rE,rg,ru,rh,rQ,rC,rI,rd,rB,rf,rp,ry,rm,rw,rb,rR,rD,rS,rv,rk,rN,rF,rL,rU,r_,rT,rx,rM,rO,rG,rY,rJ,rP,rH,rV,rq,rW,rj,rX,r$,rz,rZ,rK,r0,r1,r2,r4,r9,r8=require("os"),r3=require("path"),r5=require("fs"),r6=require("crypto"),r7=require("http"),oe=require("https"),oA=require("net"),ot=require("tls"),or=require("events"),oo=require("assert"),on=require("util"),oi=require("stream"),os=require("buffer"),oa=require("querystring"),ol=require("stream"),oc=require("util"),oE=require("events"),og=require("perf_hooks"),ou=require("worker_threads"),oh=require("async_hooks"),oQ=require("console"),oC=require("url"),oI=require("zlib"),od=require("string_decoder"),oB=require("fs"),of=require("child_process"),op=require("timers"),oy=require("buffer"),om=require("path"),ow=require("child_process"),ob=require("process"),oR=require("url"),oD=require("os"),oS=require("process"),ov=globalThis,ok={},oN={},oF=ov.parcelRequire94c2;null==oF&&((oF=function(e){if(e in ok)return ok[e].exports;if(e in oN){var A=oN[e];delete oN[e];var t={id:e,exports:{}};return ok[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){oN[e]=A;},ov.parcelRequire94c2=oF),(tC=oF.register)("dKklS",function(e,A){var t;function r(e){return"string"==typeof e?!!o[e]:"env"in e?o[e.env]&&o[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!o[e];}):Object.keys(e).every(function(A){return o[A]===e[A];});}t=oF("ksAXT");let o=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=!!o[A.pr];break;case"object":"env"in A.pr?e.exports.isPR=A.pr.env in o&&o[A.pr.env]!==A.pr.ne:"any"in A.pr?e.exports.isPR=A.pr.any.some(function(e){return!!o[e];}):e.exports.isPR=r(A.pr);break;default:e.exports.isPR=null;}}),e.exports.isCI=!!("false"!==o.CI&&(o.BUILD_ID||o.BUILD_NUMBER||o.CI||o.CI_APP_ID||o.CI_BUILD_ID||o.CI_BUILD_NUMBER||o.CI_NAME||o.CONTINUOUS_INTEGRATION||o.RUN_ID||e.exports.name));}),tC("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"}]');}),tC("pcnv8",function(e,A){var t,r;function o(e){return r.GITHUB_ACTIONS?t.error(e):console.log(`\x1b[31m${e}\x1b[0m`);}function n(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",()=>o),a(e.exports,"success",()=>n),a(e.exports,"warning",()=>i),a(e.exports,"notice",()=>s),a(e.exports,"info",()=>l),t=oF("k1l4q"),r=oF("dKklS");}),tC("k1l4q",function(e,A){var t,r,o,n,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=oF("ekchs"),s=oF("lyZGK"),a=oF("iYcPV");let d=o(r8),B=o(r3);l=oF("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}${B.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(d.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+d.EOL);},e.exports.startGroup=C,e.exports.endGroup=I,e.exports.group=function(e,A){return n(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 n(this,void 0,void 0,function*(){return yield l.OidcClient.getIDToken(e);});},E=oF("1mzjm"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return E.summary;}}),E=oF("1mzjm"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return E.markdownSummary;}}),g=oF("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;}});}),tC("ekchs",function(e,A){var t,r,o,n;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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let s=o(r8);n=oF("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}=${n.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return A+("::"+(e=this.message,n.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),tC("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}:{};};}),tC("lyZGK",function(e,A){var t,r,o,n,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.prepareKeyValueMessage=e.exports.issueFileCommand=void 0;let s=o(r5),a=o(r8);n=oF("bTj1Z"),i=oF("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_"+n.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}`;};}),tC("bTj1Z",function(e,A){var t,r,o;a(e.exports,"default",()=>o),t=oF("5x7Ba"),r=oF("FUqvx"),o=function(e,A,o){let n=(e=e||{}).random||(e.rng||(0,t.default))();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,A){o=o||0;for(let e=0;e<16;++e)A[o+e]=n[e];return A;}return(0,r.default)(n);};}),tC("5x7Ba",function(e,A){function t(){return o>r.length-16&&(l(r6).randomFillSync(r),o=0),r.slice(o,o+=16);}a(e.exports,"default",()=>t);let r=new Uint8Array(256),o=r.length;}),tC("FUqvx",function(e,A){var t,r;a(e.exports,"default",()=>r),t=oF("kYWmF");let o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).substr(1));r=function(e,A=0){let r=(o[e[A+0]]+o[e[A+1]]+o[e[A+2]]+o[e[A+3]]+"-"+o[e[A+4]]+o[e[A+5]]+"-"+o[e[A+6]]+o[e[A+7]]+"-"+o[e[A+8]]+o[e[A+9]]+"-"+o[e[A+10]]+o[e[A+11]]+o[e[A+12]]+o[e[A+13]]+o[e[A+14]]+o[e[A+15]]).toLowerCase();if(!(0,t.default)(r))throw TypeError("Stringified UUID is invalid");return r;};}),tC("kYWmF",function(e,A){var t,r;a(e.exports,"default",()=>r),t=oF("1J9r9"),r=function(e){return"string"==typeof e&&(0,t.default).test(e);};}),tC("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;}),tC("dqF37",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=oF("5k7dP"),o=oF("1bb8A"),n=oF("k1l4q");class i{static createHttpClient(e=!0,A=10){return new r.HttpClient("actions/oidc-client",[new o.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}`;}n.debug("ID token url is "+A);let t=yield i.getCall(A);return n.setSecret(t),t;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=i;}),tC("5k7dP",function(e,A){var t,r,o,n,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 o=Object.getOwnPropertyDescriptor(A,t);(!o||("get"in o?!A.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return A[t];}}),Object.defineProperty(e,r,o);}: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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.prototype.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=o(r7),u=o(oe),h=o(oF("1GWMz")),Q=o(oF("bbp3j"));i=oF("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],d=["OPTIONS","GET","DELETE","HEAD"];class B extends Error{constructor(e,A){super(e),this.name="HttpClientError",this.statusCode=A,Object.setPrototypeOf(this,B.prototype);}}e.exports.HttpClientError=B;class f{constructor(e){this.message=e;}readBody(){return n(this,void 0,void 0,function*(){return new Promise(e=>n(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 n(this,void 0,void 0,function*(){return new Promise(e=>n(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 n(this,void 0,void 0,function*(){return this.request("OPTIONS",e,null,A||{});});}get(e,A){return n(this,void 0,void 0,function*(){return this.request("GET",e,null,A||{});});}del(e,A){return n(this,void 0,void 0,function*(){return this.request("DELETE",e,null,A||{});});}post(e,A,t){return n(this,void 0,void 0,function*(){return this.request("POST",e,A,t||{});});}patch(e,A,t){return n(this,void 0,void 0,function*(){return this.request("PATCH",e,A,t||{});});}put(e,A,t){return n(this,void 0,void 0,function*(){return this.request("PUT",e,A,t||{});});}head(e,A){return n(this,void 0,void 0,function*(){return this.request("HEAD",e,null,A||{});});}sendStream(e,A,t,r){return n(this,void 0,void 0,function*(){return this.request(e,A,t,r);});}getJson(e,A={}){return n(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 n(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 o=yield this.post(e,r,t);return this._processResponse(o,this.requestOptions);});}putJson(e,A,t={}){return n(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 o=yield this.put(e,r,t);return this._processResponse(o,this.requestOptions);});}patchJson(e,A,t={}){return n(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 o=yield this.patch(e,r,t);return this._processResponse(o,this.requestOptions);});}request(e,A,t,r){return n(this,void 0,void 0,function*(){let o;if(this._disposed)throw Error("Client has already been disposed.");let n=new URL(A),i=this._prepareRequest(e,n,r),a=this._allowRetries&&d.includes(e)?this._maxRetries+1:1,l=0;do{if((o=yield this.requestRaw(i,t))&&o.message&&o.message.statusCode===s.Unauthorized){let e;for(let A of this.handlers)if(A.canHandleAuthentication(o)){e=A;break;}if(e)return e.handleAuthentication(this,i,t);break;}let A=this._maxRedirects;for(;o.message.statusCode&&C.includes(o.message.statusCode)&&this._allowRedirects&&A>0;){let s=o.message.headers.location;if(!s)break;let a=new URL(s);if("https:"===n.protocol&&n.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 o.readBody(),a.hostname!==n.hostname)for(let e in r)"authorization"===e.toLowerCase()&&delete r[e];i=this._prepareRequest(e,a,r),o=yield this.requestRaw(i,t),A--;}if(!o.message.statusCode||!I.includes(o.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 o(e,A){n||(n=!0,t(e,A));}"string"==typeof A&&(e.options.headers||(e.options.headers={}),e.options.headers["Content-Length"]=Buffer.byteLength(A,"utf8"));let n=!1,i=e.httpModule.request(e.options,e=>{o(void 0,new f(e));});i.on("socket",e=>{r=e;}),i.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(Error("Request timeout: "+e.options.path));}),i.on("error",function(e){o(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 o="https:"===r.parsedUrl.protocol;if(r.httpModule=o?u:g,r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):o?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 o="https:"===e.protocol,n=100;if(this.requestOptions&&(n=this.requestOptions.maxSockets||g.globalAgent.maxSockets),t&&t.hostname){let e;let r={maxSockets:n,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=(o?i?Q.httpsOverHttps:Q.httpsOverHttp:i?Q.httpOverHttps:Q.httpOverHttp)(r),this._proxyAgent=A;}if(!A){let e={keepAlive:this._keepAlive,maxSockets:n};A=o?new u.Agent(e):new g.Agent(e),this._agent=A;}return o&&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 n(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 n(this,void 0,void 0,function*(){return new Promise((t,r)=>n(this,void 0,void 0,function*(){let o,n;let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===s.NotFound&&t(a);try{(n=yield e.readBody())&&n.length>0&&(o=A&&A.deserializeDates?JSON.parse(n,function(e,A){if("string"==typeof A){let e=new Date(A);if(!isNaN(e.valueOf()))return e;}return A;}):JSON.parse(n),a.result=o),a.headers=e.message.headers;}catch(e){}if(i>299){let e;let A=new B(o&&o.message?o.message:n&&n.length>0?n:`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),{});}),tC("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;}),tC("bbp3j",function(e,A){e.exports=oF("fNJ5J");}),tC("fNJ5J",function(e,A){var t,r,o,n,i,s;function l(e){var A=this;A.options=e||{},A.proxyOptions=A.options.proxy||{},A.maxSockets=A.options.maxSockets||r7.Agent.defaultMaxSockets,A.requests=[],A.sockets=[],A.on("free",function(e,t,r,o){for(var n=E(t,r,o),i=0,s=A.requests.length;s>i;++i){var a=A.requests[i];if(a.host===n.host&&a.port===n.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 o=e.request.getHeader("host"),n=g({},t.options,{socket:r,servername:o?o.replace(/:.*$/,""):e.host}),i=ot.connect(0,n);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 o=Object.keys(r),n=0,i=o.length;i>n;++n){var s=o[n];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",()=>o,e=>o=e),a(e.exports,"httpsOverHttps",()=>n,e=>n=e),a(e.exports,"debug",()=>i,e=>i=e),t=function(e){var A=new l(e);return A.request=r7.request,A;},r=function(e){var A=new l(e);return A.request=r7.request,A.createSocket=c,A.defaultPort=443,A;},o=function(e){var A=new l(e);return A.request=oe.request,A;},n=function(e){var A=new l(e);return A.request=oe.request,A.createSocket=c,A.defaultPort=443,A;},on.inherits(l,or.EventEmitter),l.prototype.addRequest=function(e,A,t,r){var o=this,n=g({request:e},o.options,E(A,t,r));if(o.sockets.length>=this.maxSockets){o.requests.push(n);return;}o.createSocket(n,function(A){function t(){o.emit("free",A,n);}function r(e){o.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(o.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),n.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),n.removeSocket(i);return;}return s("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=r,A(r);}var r,o,n=this,i={};n.sockets.push(i),r=g({},n.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"),(o=n.request(r)).useChunkedEncodingByDefault=!1,o.once("response",function(e){e.upgrade=!0;}),o.once("upgrade",function(e,A,r){process.nextTick(function(){t(e,A,r);});}),o.once("connect",t),o.once("error",function(A){o.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),n.removeSocket(i);}),o.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;}),tC("bhHtX",function(e,A){var t,r,o,n,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(n.parseOrigin(A).origin+e);}else t||(t="object"==typeof A?A:{}),A=n.parseURL(A);let{agent:o,dispatcher:i=c()}=t;if(o)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),oF("8yUQl"),r=oF("aqU6E"),o=oF("ayJiG"),oF("kOCfr"),oF("35hUU"),oF("c0vcY"),n=oF("jksEw");let{InvalidArgumentError:u}=o;i=oF("4Ek9d"),oF("ertK5"),oF("1vOTv"),oF("jXCnf"),oF("lqUE6"),oF("7fzYU"),s=oF("5IibL"),oF("dBMXf"),c=(l=oF("d0hJ7")).getGlobalDispatcher,l.setGlobalDispatcher,oF("kP9Wh"),oF("3E5UX"),oF("9sz7P");try{$837302df2ea591df$import$be8b60ef5043e98e,E=!0;}catch{E=!1;}if(Object.assign(r.prototype,i),t=s,n.nodeMajor>16||16===n.nodeMajor&&n.nodeMinor>=8){oF("id7X2").Headers,oF("apE6s").Response,oF("7JXQn").Request,oF("dVNsr").FormData,oF("3ReSW").File,oF("3wZ1B").FileReader;let{setGlobalOrigin:e,getGlobalOrigin:A}=oF("e3MDk"),{CacheStorage:t}=oF("8wMCO"),{kConstruct:r}=oF("9lpql");new t(r);}if(n.nodeMajor>=16){let{deleteCookie:e,getCookies:A,getSetCookies:t,setCookie:r}=oF("tTPZ7"),{parseMIMEType:o,serializeAMimeType:n}=oF("9mEts");}if(n.nodeMajor>=18&&E){let{WebSocket:e}=oF("jEeVP");}g(i.request),g(i.stream),g(i.pipeline),g(i.connect),g(i.upgrade);}),tC("8yUQl",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,_,T,x,M,O,G,Y,J,P,H,V,q,W,j,X,$,z,Z,K,ee,eA,et,er,eo,en,ei,es,ea,el,ec,eE,eg,eu,eh,eQ,eC,eI,ed;let eB;function ef(e){oo("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),this[q][H]=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][H]=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){oo(0===this[F]);let e=A[_].splice(A[P]);for(let A=0;A0){let e=A[_][A[P]];A[_][A[P]++]=null,eM(A,e,t);}A[J]=A[P],oo(0===A[N]),A.emit("disconnect",A[y],[A],t),eL(A);}async function ew(){let e;let A=process.env.JEST_WORKER_ID?oF("15CZI"):void 0;try{e=await WebAssembly.compile(Buffer.from(oF("6AZzS"),"base64"));}catch(t){e=await WebAssembly.compile(Buffer.from(A||oF("15CZI"),"base64"));}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(e,A,t)=>0,wasm_on_status(e,A,t){oo.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=>(oo.strictEqual(eK.ptr,e),eK.onMessageBegin()||0),wasm_on_header_field(e,A,t){oo.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){oo.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)=>(oo.strictEqual(eK.ptr,e),eK.onHeadersComplete(A,!!t,!!r)||0),wasm_on_body(e,A,t){oo.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=>(oo.strictEqual(eK.ptr,e),eK.onMessageComplete()||0)}});}function eb(e){let{socket:A,timeoutType:t,client:o}=e;t===e4?(!A[U]||A.writableNeedDrain||o[N]>1)&&(oo(!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&&(oo(0===o[N]&&o[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(oo("ERR_TLS_CERT_ALTNAME_INVALID"!==e.code),"h2"!==A[ec]&&"ECONNRESET"===e.code&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return;}this[H]=e,eS(this[b],e);}function eS(e,A){if(0===e[N]&&"UND_ERR_INFO"!==A.code&&"UND_ERR_SOCKET"!==A.code){oo(e[J]===e[P]);let t=e[_].splice(e[P]);for(let r=0;r0&&"UND_ERR_INFO"!==t.code){let A=e[_][e[P]];e[_][e[P]++]=null,eM(e,A,t);}e[J]=e[P],oo(0===e[N]),e.emit("disconnect",e[y],[e],t),eL(e);}async function eN(e){oo(!e[x]),oo(!e[q]);let{host:A,hostname:t,protocol:o,port:n}=e[y];if("["===t[0]){let e=t.indexOf("]");oo(-1!==e);let A=t.substring(1,e);oo(oA.isIP(A)),t=A;}e[x]=!0,eX.beforeConnect.hasSubscribers&&eX.beforeConnect.publish({connectParams:{host:A,hostname:t,protocol:o,port:n,servername:e[w],localAddress:e[ea]},connector:e[ee]});try{let i=await new Promise((r,i)=>{e[ee]({host:A,hostname:t,protocol:o,port:n,servername:e[w],localAddress:e[ea]},(e,A)=>{e?i(e):r(A);});});if(e.destroyed){r.destroy(i.on("error",()=>{}),new B());return;}if(e[x]=!1,oo(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=eB.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",ek),A.unref(),e[eg]=A,i[eg]=A;}else ez||(ez=await eZ,eZ=null),i[O]=!1,i[U]=!1,i[m]=!1,i[v]=!1,i[D]=new e3(e,i,ez);i[er]=0,i[et]=e[et],i[b]=e,i[H]=null,i.on("error",eD).on("readable",eR).on("end",ev).on("close",ek),e[q]=i,eX.connected.hasSubscribers&&eX.connected.publish({connectParams:{host:A,hostname:t,protocol:o,port:n,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:o,port:n,servername:e[w],localAddress:e[ea]},connector:e[ee],error:r}),"ERR_TLS_CERT_ALTNAME_INVALID"===r.code)for(oo(0===e[N]);e[F]>0&&e[_][e[J]].servername===e[w];){let A=e[_][e[J]++];eM(e,A,r);}else eS(e,r);e.emit("connectionError",e[y],[e],r);}eL(e);}function eF(e){e[M]=0,e.emit("drain",e[y],[e]);}function eL(e,A){2!==e[k]&&(e[k]=2,function(e,A){for(;;){if(e.destroyed){oo(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[O]&&t.unref&&(t.unref(),t[O]=!0):t[O]&&t.ref&&(t.ref(),t[O]=!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[_][e[P]],r=null!=A.headersTimeout?A.headersTimeout:e[z];t[D].setTimeout(r,e4);}}if(e[R])e[M]=2;else if(2===e[M]){A?(e[M]=1,process.nextTick(eF,e)):eF(e);continue;}if(0===e[F]||e[N]>=(e[V]||1))return;let o=e[_][e[J]];if("https:"===e[y].protocol&&e[w]!==o.servername){if(e[N]>0)return;if(e[w]=o.servername,t&&t.servername!==o.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[v]||e[N]>0&&!o.idempotent||e[N]>0&&(o.upgrade||"CONNECT"===o.method)||e[N]>0&&0!==r.bodyLength(o.body)&&(r.isStream(o.body)||r.isAsyncIterable(o.body)))return;!o.aborted&&function(e,A){if("h2"===e[ec]){(function(e,A,t){let o,i;function s(){l?r.isBuffer(l)?(oo(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:""}):eT({body:l,client:e,request:t,contentLength:p,expectsPayload:f,h2stream:i,header:"",socket:e[q]}):r.isStream(l)?e_({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]}):oo(!1):t.onRequestSent();}let{body:l,method:c,path:g,host:u,upgrade:h,expectContinue:C,signal:I,headers:d}=t;if(o="string"==typeof d?n[eQ](d.trim()):d,h)return eM(e,t,Error("Upgrade not supported for H2"));try{t.onConnect(A=>{t.aborted||t.completed||eM(e,t,A||new E());});}catch(A){eM(e,t,A);}if(t.aborted)return;let B=e[eu];if(o[eO]=u||e[eE],o[eG]=c,"CONNECT"===c)return A.ref(),(i=A.request(o,{endStream:!1,signal:I})).id&&!i.pending?(t.onUpgrade(null,null,i),++B.openStreams):i.once("ready",()=>{t.onUpgrade(null,null,i),++B.openStreams;}),i.once("close",()=>{B.openStreams-=1,0===B.openStreams&&A.unref();});o[eY]=g,o[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 eM(e,t,new a());process.emitWarning(new a());}null!=p&&(oo(l,"no body must not have content length"),o[eP]=""+p),A.ref();let y="GET"===c||"HEAD"===c;C?(o[eH]="100-continue",(i=A.request(o,{endStream:y,signal:I})).once("continue",s)):(i=A.request(o,{endStream:y,signal:I}),s()),++B.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",()=>{B.openStreams-=1,0===B.openStreams&&A.unref();}),i.once("error",function(A){!e[eg]||e[eg].destroyed||this.closed||this.destroyed||(B.streams-=1,r.destroy(i,A));}),i.once("frameError",(A,o)=>{let n=new Q(`HTTP/2: "frameError" received - type ${A}, code ${o}`);eM(e,t,n),!e[eg]||e[eg].destroyed||this.closed||this.destroyed||(B.streams-=1,r.destroy(i,n));});})(e,e[eg],A);return;}let{body:t,method:o,path:i,host:s,upgrade:l,headers:c,blocking:g,reset:u}=A,h="PUT"===o||"POST"===o||"PATCH"===o;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(o)&&I>0&&null!==A.contentLength&&A.contentLength!==I){if(e[K])return eM(e,A,new a()),!1;process.emitWarning(new a());}let d=e[q];try{A.onConnect(t=>{A.aborted||A.completed||(eM(e,A,t||new E()),r.destroy(d,new Q("aborted")));});}catch(t){eM(e,A,t);}if(A.aborted)return!1;"HEAD"===o&&(d[m]=!0),(l||"CONNECT"===o)&&(d[m]=!0),null!=u&&(d[m]=u),e[et]&&d[er]++>=e[et]&&(d[m]=!0),g&&(d[v]=!0);let B=`${o} ${i} HTTP/1.1\r `;return"string"==typeof s?B+=`host: ${s}\r `:B+=e[Y],l?B+=`connection: upgrade\r upgrade: ${l}\r `:e[V]&&!d[m]?B+="connection: keep-alive\r\n":B+="connection: close\r\n",c&&(B+=c),eX.sendHeaders.hasSubscribers&&eX.sendHeaders.publish({request:A,headers:B,socket:d}),t&&0!==C?r.isBuffer(t)?(oo(I===t.byteLength,"buffer body must have content length"),d.cork(),d.write(`${B}content-length: ${I}\r \r `,"latin1"),d.write(t),d.uncork(),A.onBodySent(t),A.onRequestSent(),h||(d[m]=!0)):r.isBlobLike(t)?"function"==typeof t.stream?ex({body:t.stream(),client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):eT({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):r.isStream(t)?e_({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):r.isIterable(t)?ex({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):oo(!1):(0===I?d.write(`${B}content-length: 0\r \r `,"latin1"):(oo(null===I,"no body must not have content length"),d.write(`${B}\r `,"latin1")),A.onRequestSent()),!0;}(e,o)?e[J]++:e[_].splice(e[J],1);}}(e,A),e[k]=0,e[P]>256&&(e[_].splice(0,e[P]),e[J]-=e[P],e[P]=0));}function eU(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e;}function e_({h2stream:e,body:A,client:o,request:n,socket:i,contentLength:s,header:a,expectsPayload:l}){if(oo(0!==s||0===o[N],"stream body cannot be pipelined"),"h2"===o[ec]){function c(e){n.onBodySent(e);}let o=t(A,e,t=>{t?(r.destroy(A,t),r.destroy(e,t)):n.onRequestSent();});o.on("data",c),o.once("end",()=>{o.removeListener("data",c),r.destroy(o);});return;}let g=!1,u=new e5({socket:i,request:n,contentLength:s,client:o,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,oo(i.destroyed||i[U]&&o[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 eT({h2stream:e,body:A,client:t,request:o,socket:n,contentLength:i,header:s,expectsPayload:l}){oo(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()):(n.cork(),n.write(`${s}content-length: ${i}\r \r `,"latin1"),n.write(r),n.uncork()),o.onBodySent(r),o.onRequestSent(),l||(n[m]=!0),eL(t);}catch(A){r.destroy(c?e:n,A);}}async function ex({h2stream:e,body:A,client:t,request:r,socket:o,contentLength:n,header:i,expectsPayload:s}){function a(){if(l){let e=l;l=null,e();}}oo(0!==n||0===t[N],"iterator body cannot be pipelined");let l=null,c=()=>new Promise((e,A)=>{oo(null===l),o[H]?A(o[H]):l=e;});if("h2"===t[ec]){e.on("close",a).on("drain",a);try{for await(let t of A){if(o[H])throw o[H];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;}o.on("close",a).on("drain",a);let E=new e5({socket:o,request:r,contentLength:n,client:t,expectsPayload:s,header:i});try{for await(let e of A){if(o[H])throw o[H];E.write(e)||(await c());}E.end();}catch(e){E.destroy(e);}finally{o.off("close",a).off("drain",a);}}function eM(e,A,t){try{A.onError(t),oo(A.aborted);}catch(A){e.emit("error",A);}}t=oi.pipeline,r=oF("jksEw"),o=oF("bLoP1"),n=oF("9ihOp"),i=oF("8Tdy2"),a=(s=oF("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,d=s.ResponseExceededMaxSizeError,B=s.ClientDestroyedError,f=oF("ertK5"),y=(p=oF("eoU9M")).kUrl,m=p.kReset,w=p.kServerName,b=p.kClient,R=p.kBusy,D=p.kParser,S=p.kConnect,v=p.kBlocking,k=p.kResuming,N=p.kRunning,F=p.kPending,L=p.kSize,U=p.kWriting,_=p.kQueue,T=p.kConnected,x=p.kConnecting,M=p.kNeedDrain,O=p.kNoRef,G=p.kKeepAliveDefaultTimeout,Y=p.kHostHeader,J=p.kPendingIdx,P=p.kRunningIdx,H=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,eo=p.kClose,en=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{eB=$63bd9792098e499e$import$44c8f355160d282b;}catch{eB={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:eO,HTTP2_HEADER_METHOD:eG,HTTP2_HEADER_PATH:eY,HTTP2_HEADER_SCHEME:eJ,HTTP2_HEADER_CONTENT_LENGTH:eP,HTTP2_HEADER_EXPECT:eH,HTTP2_HEADER_STATUS:eV}}=eB,eq=!1,eW=Buffer[Symbol.species],ej=Symbol(),eX={};try{let e=oF("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=oF("fTLvG"),ed=oF("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}){oo(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?(o.clearTimeout(this.timeout),e?(this.timeout=o.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&&(oo(null!=this.ptr),oo(null==eK),this.llhttp.llhttp_resume(this.ptr),oo(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){oo(null!=this.ptr),oo(null==eK),oo(!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 o=t.llhttp_get_error_pos(this.ptr)-e2;if(r===eI.ERROR.PAUSED_UPGRADE)this.onUpgrade(e.slice(o));else if(r===eI.ERROR.PAUSED)this.paused=!0,A.unshift(e.slice(o));else if(r!==eI.ERROR.OK){let A=t.llhttp_get_error_reason(this.ptr),n="";if(A){let e=new Uint8Array(t.memory.buffer,A).indexOf(0);n="Response does not match the HTTP/1.1 protocol ("+Buffer.from(t.memory.buffer,A,e).toString()+")";}throw new I(n,eI.ERROR[r],e.slice(o));}}catch(e){r.destroy(A,e);}}destroy(){oo(null!=this.ptr),oo(null==eK),this.llhttp.llhttp_free(this.ptr),this.ptr=null,o.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[_][A[P]])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:o,headers:n,statusCode:i}=this;oo(A);let s=t[_][t[P]];oo(s),oo(!o.destroyed),oo(o===t[q]),oo(!this.paused),oo(s.upgrade||"CONNECT"===s.method),this.statusCode=null,this.statusText="",this.shouldKeepAlive=null,oo(this.headers.length%2==0),this.headers=[],this.headersSize=0,o.unshift(e),o[D].destroy(),o[D]=null,o[b]=null,o[H]=null,o.removeListener("error",eD).removeListener("readable",eR).removeListener("end",ev).removeListener("close",ek),t[q]=null,t[_][t[P]++]=null,t.emit("disconnect",t[y],[t],new Q("upgrade"));try{s.onUpgrade(i,n,o);}catch(e){r.destroy(o,e);}eL(t);}onHeadersComplete(e,A,t){let{client:o,socket:n,headers:i,statusText:s}=this;if(n.destroyed)return-1;let a=o[_][o[P]];if(!a)return-1;if(oo(!this.upgrade),oo(this.statusCode<200),100===e)return r.destroy(n,new h("bad response",r.getSocketInfo(n))),-1;if(A&&!a.upgrade)return r.destroy(n,new h("bad upgrade",r.getSocketInfo(n))),-1;if(oo.strictEqual(this.timeoutType,e4),this.statusCode=e,this.shouldKeepAlive=t||"HEAD"===a.method&&!n[m]&&"keep-alive"===this.connection.toLowerCase(),this.statusCode>=200){let e=null!=a.bodyTimeout?a.bodyTimeout:o[Z];this.setTimeout(e,e9);}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if("CONNECT"===a.method||A)return oo(1===o[N]),this.upgrade=!0,2;if(oo(this.headers.length%2==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&o[V]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(null!=e){let A=Math.min(e-o[$],o[X]);A<=0?n[m]=!0:o[W]=A;}else o[W]=o[G];}else n[m]=!0;let l=!1===a.onHeaders(e,i,this.resume,s);return a.aborted?-1:"HEAD"===a.method||e<200?1:(n[v]&&(n[v]=!1,eL(o)),l?eI.ERROR.PAUSED:0);}onBody(e){let{client:A,socket:t,statusCode:o,maxResponseSize:n}=this;if(t.destroyed)return-1;let i=A[_][A[P]];return(oo(i),oo.strictEqual(this.timeoutType,e9),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),oo(o>=200),n>-1&&this.bytesRead+e.length>n)?(r.destroy(t,new d()),-1):(this.bytesRead+=e.length,!1===i.onData(e))?eI.ERROR.PAUSED:void 0;}onMessageComplete(){let{client:e,socket:A,statusCode:t,upgrade:o,headers:n,contentLength:i,bytesRead:s,shouldKeepAlive:a}=this;if(A.destroyed&&(!t||a))return-1;if(o)return;let c=e[_][e[P]];if(oo(c),oo(t>=100),this.statusCode=null,this.statusText="",this.bytesRead=0,this.contentLength="",this.keepAlive="",this.connection="",oo(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(n),e[_][e[P]++]=null,A[U])return oo.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:o,header:n}){this.socket=e,this.request=A,this.contentLength=t,this.client=r,this.bytesWritten=0,this.expectsPayload=o,this.header=n,e[U]=!0;}write(e){let{socket:A,request:t,contentLength:r,client:o,bytesWritten:n,expectsPayload:i,header:s}=this;if(A[H])throw A[H];if(A.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(null!==r&&n+l>r){if(o[K])throw new a();process.emitWarning(new a());}A.cork(),0===n&&(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:o,header:n,request:i}=this;if(i.onRequestSent(),e[U]=!1,e[H])throw e[H];if(!e.destroyed){if(0===r?o?e.write(`${n}content-length: 0\r \r `,"latin1"):e.write(`${n}\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&&(oo(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:o,socketTimeout:n,requestTimeout:i,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:E,keepAliveTimeout:g,maxKeepAliveTimeout:u,keepAliveMaxTimeout:h,keepAliveTimeoutThreshold:Q,socketPath:C,pipelining:I,tls:d,strictContentLength:B,maxCachedSessions:p,maxRedirections:m,connect:b,maxRequestsPerClient:R,localAddress:D,maxResponseSize:S,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:N,allowH2:F,maxConcurrentStreams:L}={}){if(super(),void 0!==E)throw new c("unsupported keepAlive, use pipelining=0 instead");if(void 0!==n)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!=o&&(!Number.isInteger(o)||o<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===oA.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({...d,maxCachedSessions:p,allowH2:F,socketPath:C,timeout:s,...(r.nodeHasAutoSelectFamily&&v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:N}:void 0),...b})),this[es]=A&&A.Client&&Array.isArray(A.Client)?A.Client:[ed({maxRedirections:m})],this[y]=r.parseOrigin(e),this[ee]=b,this[q]=null,this[V]=null!=I?I:1,this[j]=t||r7.maxHeaderSize,this[G]=null==g?4e3:g,this[X]=null==h?6e5:h,this[$]=null==Q?1e3:Q,this[W]=this[G],this[w]=null,this[ea]=null!=D?D:null,this[k]=0,this[M]=0,this[Y]=`host: ${this[y].hostname}${this[y].port?":"+this[y].port:""}\r `,this[Z]=null!=a?a:3e5,this[z]=null!=o?o:3e5,this[K]=null==B||B,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[_]=[],this[P]=0,this[J]=0;}get pipelining(){return this[V];}set pipelining(e){this[V]=e,eL(this,!0);}get[F](){return this[_].length-this[J];}get[N](){return this[J]-this[P];}get[L](){return this[_].length-this[P];}get[T](){return!!this[q]&&!this[x]&&!this[q].destroyed;}get[R](){let e=this[q];return e&&(e[m]||e[U]||e[v])||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,o="h2"===this[ec]?n[eh](t,e,A):n[eC](t,e,A);return this[_].push(o),this[k]||(null==r.bodyLength(o.body)&&r.isIterable(o.body)?(this[k]=1,process.nextTick(eL,this)):eL(this,!0)),this[k]&&2!==this[M]&&this[R]&&(this[M]=2),this[M]<2;}async[eo](){return new Promise(e=>{this[L]?this[ej]=e:e(null);});}async[en](e){return new Promise(A=>{let t=this[_].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",o),e):queueMicrotask(o),eL(this);});}};}),tC("jksEw",function(e,A){var t,r,o,n,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=oF("eoU9M")).kDestroyed,o=t.kBodyUsed,n=r7.IncomingMessage,i=oF("ayJiG").InvalidArgumentError,s=os.Blob,a=oa.stringify,l=oF("kQDvw").headerNameLowerCasedRecord;let[d,B]=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&&(oi.isDisturbed?oi.isDisturbed(e)||e[o]:e[o]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||Q(e)));},isErrored:function(e){return!!(e&&(oi.isErrored?oi.isErrored(e):/state: 'errored'/.test(on.inspect(e))));},isReadable:function(e){return!!(e&&(oi.isReadable?oi.isReadable(e):/state: 'readable'/.test(on.inspect(e))));},toUSVString:function(e){return f?(""+e).toWellFormed():on.toUSVString?on.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;oo.strictEqual(typeof e,"string");let A=function(e){if("["===e[0]){let A=e.indexOf("]");return oo(-1!==A),e.substring(1,A);}let A=e.indexOf(":");return-1===A?e:e.substring(0,A);}(e);return oA.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 o=0;oe.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===n&&(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=oF("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:d,nodeMinor:B,nodeHasAutoSelectFamily:d>18||18===d&&B>=13,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"]};}),tC("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()};}),tC("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 o extends t{constructor(e){super(e),Error.captureStackTrace(this,o),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT";}}class n extends t{constructor(e){super(e),Error.captureStackTrace(this,n),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 d extends Error{constructor(e,A,t){super(e),Error.captureStackTrace(this,d),this.name="HTTPParserError",this.code=A?"HPE_"+A:void 0,this.data=t?t.toString():void 0;}}class B extends t{constructor(e){super(e),Error.captureStackTrace(this,B),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:d,UndiciError:t,HeadersTimeoutError:o,HeadersOverflowError:n,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:B,RequestRetryError:f};}),tC("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 d(e,A){return AR(e._ownerReadableStream,A);}function B(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 v(e,A){var t,r;let o=Number.MAX_SAFE_INTEGER,n=+e;if(!A5(n=0===(t=n)?0:t))throw TypeError(`${A} is not a finite number`);if((n=0===(r=A6(n))?0:r)<0||n>o)throw TypeError(`${A} is outside the accepted range of 0 to ${o}, inclusive`);return A5(n)&&0!==n?n:0;}function k(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 _(e){let A=e._reader;return void 0!==A&&!!T(A);}function T(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 M(e,A){let t=e._readRequests;e._readRequests=new A1(),t.forEach(e=>{e._errorSteps(A);});}function O(e){return TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`);}function G(e){return e.slice();}function Y(e,A,t,r,o){new Uint8Array(e).set(new Uint8Array(t,r,o),A);}function J(e,A,t){if(e.slice)return e.slice(A,t);let r=t-A,o=new ArrayBuffer(r);return Y(o,0,e,A,r),o;}function P(e,A){let t=e[A];if(null!=t){if("function"!=typeof t)throw TypeError(`${A+""} is not a function`);return t;}}function H(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||tn(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&&!!(_(A)&&U(A)>0||ev(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=>(ed(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=eo(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 eo(e){let A=e.bytesFilled,t=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,A/t);}function en(e,A,t,r){e._queue.push({buffer:A,byteOffset:t,byteLength:r}),e._queueTotalSize+=r;}function ei(e,A,t,r){let o;try{o=J(A,t,t+r);}catch(A){throw ed(e,A),A;}en(e,o,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,o=t,n=!1,i=r-r%A.elementSize;i>=A.minimumFill&&(o=i-A.bytesFilled,n=!0);let s=e._queue;for(;o>0;){let t=s.peek(),r=Math.min(o,t.byteLength),n=A.byteOffset+A.bytesFilled;Y(A.buffer,n,t.buffer,t.byteOffset,r),t.byteLength===r?s.shift():(t.byteOffset+=r,t.byteLength-=r),e._queueTotalSize-=r,el(e,r,A),o-=r;}return n;}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(ev(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 ed(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:o,byteLength:n}=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)?(function(e){let A=e._controlledReadableByteStream._reader;for(;A._readRequests.length>0;){if(0===e._queueTotalSize)return;eB(e,A._readRequests.shift());}}(e),0===U(t))?en(e,i,o,n):(e._pendingPullIntos.length>0&&eh(e),L(t,new Uint8Array(i,o,n),!1)):ev(t)?(en(e,i,o,n),eg(e)):en(e,i,o,n),eA(e);}function ed(e,A){let t=e._controlledReadableByteStream;"readable"===t._state&&(et(e),z(e),eQ(e),AS(t,A));}function eB(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,o,n,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=n,A._pullAlgorithm=r,A._cancelAlgorithm=o,A._autoAllocateChunkSize=i,A._pendingPullIntos=new A1(),e._readableStreamController=A,g(c(t()),()=>(A._started=!0,eA(A),null),e=>(ed(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 ev(e){let A=e._reader;return void 0!==A&&!!ek(A);}function ek(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof ta;}function eN(e,A,t,r){let o=e._ownerReadableStream;o._disturbed=!0,"errored"===o._state?r._errorSteps(o._storedError):function(e,A,t,r){let o;let n=e._controlledReadableByteStream,i=A.constructor,s=Z(i)?1:i.BYTES_PER_ELEMENT,{byteOffset:a,byteLength:l}=A;try{o=te(A.buffer);}catch(e){return void r._errorSteps(e);}let c={buffer:o,bufferByteLength:o.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(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(ea(e,c)){let A=eo(c);return ec(e),void r._chunkSteps(A);}if(e._closeRequested){let A=TypeError("Insufficient bytes to fill elements in the given buffer");return ed(e,A),void r._errorSteps(A);}}e._pendingPullIntos.push(c),eD(n,r),eA(e);}else{let e=new i(c.buffer,c.byteOffset,0);r._closeSteps(e);}}(o._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(tn(t)||t<0)throw RangeError("Invalid highWaterMark");return t;}function e_(e){let{size:A}=e;return A||(()=>1);}function eT(e,A){var t;w(e,A);let r=null==e?void 0:e.highWaterMark,o=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:+r,size:void 0===o?void 0:(b(t=o,`${A} has member 'size' that`),e=>+t(e))};}function ex(e,A){if(!eO(e))throw TypeError(`${A} is not a WritableStream.`);}function eM(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 eO(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof tc;}function eG(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 o=!1;"erroring"===r&&(o=!0,A=void 0);let n=l((t,r)=>{e._pendingAbortRequest={_promise:void 0,_resolve:t,_reject:r,_reason:A,_wasAlreadyErroring:o};});return e._pendingAbortRequest._promise=n,o||eH(e,A),n;}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};}),o=e._writer;return void 0!==o&&e._backpressure&&"writable"===t&&As(o),$(A=e._writableStreamController,tg,0),e9(A),r;}function eP(e,A){"writable"!==e._state?eV(e):eH(e,A);}function eH(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?Ao(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):An(e,A);}function eZ(e){var A,t,r,o;let n=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,o=t,AA(r),At(r,o)),n._writer=void 0,e._ownerWritableStream=void 0;}function eK(e,A){let t=e._ownerWritableStream,r=t._writableStreamController,o=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 n=t._state;if("errored"===n)return AZ(t._storedError);if(eq(t)||"closed"===n)return AZ(TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===n)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,o),i;}function e0(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof tu;}function e1(e,A,t,r,o,n,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=o,A._abortAlgorithm=n,ej(e,0>=e4(A)),g(c(t()),()=>(A._started=!0,e9(A),null),t=>(A._started=!0,eP(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),eP(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,eP(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),eH(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 Ao(e){e._readyPromise=l((A,t)=>{e._readyPromise_resolve=A,e._readyPromise_reject=t;}),e._readyPromiseState="pending";}function An(e,A){Ao(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,o,i){let s=N(e),a=new tE(A);e._disturbed=!0;let Q=!1,C=c(void 0);return l((I,d)=>{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 o(){return g(e(),()=>D(t,r),e=>D(!0,e)),null;}Q||(Q=!0,"writable"!==A._state||eq(A)?o():g(m(),o));}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),B(s),void 0!==i&&i.removeEventListener("abort",y),e?d(A):I(void 0),null;}if(void 0!==i){if(y=()=>{let t=void 0!==i.reason?i.reason:new tQ("Aborted","AbortError"),n=[];r||n.push(()=>"writable"===A._state?eY(A,t):c(void 0)),o||n.push(()=>"readable"===e._state?AR(e,t):c(void 0)),b(()=>Promise.all(n.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=>(o?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");o?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,n),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 Ad(e,A,t,r,o,n,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=n,A._pullAlgorithm=r,A._cancelAlgorithm=o,e._readableStreamController=A,g(c(t()),()=>(A._started=!0,Ac(A),null),e=>(AQ(A,e),null));}function AB(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,o=null==e?void 0:e.preventClose,n=null==e?void 0:e.signal;return void 0!==n&&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.`);}(n,`${A} has member 'signal' that`),{preventAbort:!!t,preventCancel:!!r,preventClose:!!o,signal:n};}function Ap(e,A,t,r=1,o=()=>1){let n=Object.create(tI.prototype);return Am(n),Ad(n,Object.create(tC.prototype),e,A,t,r,o),n;}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&&ek(t)){let e=t._readIntoRequests;t._readIntoRequests=new A1(),e.forEach(e=>{e._closeSteps(void 0);});}return E(e._readableStreamController[A9](A),n,void 0);}function AD(e){e._state="closed";let A=e._reader;if(void 0!==A&&(m(A),T(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),T(t)?M(t,A):eF(t,A));}function Av(e){return TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`);}function Ak(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 tB;}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 A_(e){return!!i(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")&&e instanceof ty;}function AT(e,A){AQ(e._readable._readableStreamController,A),Ax(e,A);}function Ax(e,A){AY(e._transformStreamController),e8(e._writable._writableStreamController,A),AM(e);}function AM(e){e._backpressure&&AO(e,!1);}function AO(e,A){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=l(A=>{e._backpressureChangePromise_resolve=A;}),e._backpressure=A;}function AG(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&&AO(t,!0);}function AP(e,A){return E(e._transformAlgorithm(A),void 0,A=>{throw AT(e._controlledTransformStream,A),A;});}function AH(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=n,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,o=e._elements,n=o[t];return 16384===r&&(A=e._next,r=0),--this._size,this._cursor=r,e!==A&&(this._front=A),o[t]=void 0,n;}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"),k(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 T(this)?this._closedPromise:AZ(O("closed"));}cancel(e){return T(this)?void 0===this._ownerReadableStream?AZ(f("cancel")):d(this,e):AZ(O("cancel"));}read(){let e,A;if(!T(this))return AZ(O("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(!T(this))throw O("releaseLock");void 0!==this._ownerReadableStream&&(B(this),M(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!==(o=null!==(t=Symbol.asyncIterator)&&void 0!==t?t:null===(r=Symbol.for)||void 0===r?void 0:r.call(Symbol,"Symbol.asyncIterator"))&&void 0!==o?o:"@@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,B(t),e({value:void 0,done:!0});},_errorSteps:e=>{this._ongoingPromise=void 0,this._isFinished=!0,B(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=d(A,e);return B(A),E(t,()=>({value:e,done:!0}),void 0);}return B(A),c({value:e,done:!0});}}let to={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(to,tt,{enumerable:!1});let tn=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=v(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");ed(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 eB(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"),k(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 ek(this)?this._closedPromise:AZ(eL("closed"));}cancel(e){return ek(this)?void 0===this._ownerReadableStream?AZ(f("cancel")):d(this,e):AZ(eL("cancel"));}read(e,A={}){let t,r,o;if(!ek(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 n,i;n="options",w(A,n),t={min:v(null!==(i=null==A?void 0:A.min)&&void 0!==i?i:1,`${n} 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,o=A;});return eN(this,e,s,{_chunkSteps:e=>r({value:e,done:!1}),_closeSteps:e=>r({value:e,done:!0}),_errorSteps:e=>o(e)}),a;}releaseLock(){if(!ek(this))throw eL("releaseLock");void 0!==this._ownerReadableStream&&(B(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=eT(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,o=null==e?void 0:e.start,n=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===o?void 0:(b(o,`${A} has member 'start' that`),A=>Q(o,e,[A])),write:void 0===i?void 0:(b(i,`${A} has member 'write' that`),(A,t)=>C(i,e,[A,t])),type:n};}(e,"First parameter");if(eM(this),void 0!==r.type)throw RangeError("Invalid type is specified");let o=e_(t);!function(e,A,t,r){let o,n;let i=Object.create(tu.prototype);o=void 0!==A.start?()=>A.start(i):()=>{},n=void 0!==A.write?e=>A.write(e,i):()=>c(void 0),e1(e,i,o,n,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),o);}get locked(){if(!eO(this))throw e5("locked");return eG(this);}abort(e){return eO(this)?eG(this)?AZ(TypeError("Cannot abort a stream that already has a writer")):eY(this,e):AZ(e5("abort"));}close(){return eO(this)?eG(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(!eO(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"),eG(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?Ao(this):(Ao(this),As(this)),AA(this);else if("erroring"===A)An(this,e._storedError),AA(this);else if("closed"===A)Ao(this),As(this),AA(this),Ar(this);else{let A=e._storedError;An(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!==ov?ov: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 AB("desiredSize");return AC(this);}close(){if(!Al(this))throw AB("close");if(!AI(this))throw TypeError("The stream is not in a state that permits close");Au(this);}enqueue(e){if(!Al(this))throw AB("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 AB("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=eT(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,o=null==e?void 0:e.pull,n=null==e?void 0:e.start,i=null==e?void 0:e.type;return{autoAllocateChunkSize:void 0===t?void 0:v(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===o?void 0:(b(o,`${A} has member 'pull' that`),A=>C(o,e,[A])),start:void 0===n?void 0:(b(n,`${A} has member 'start' that`),A=>Q(n,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,o,n;let i=Object.create(ts.prototype);r=void 0!==A.start?()=>A.start(i):()=>{},o=void 0!==A.pull?()=>A.pull(i):()=>c(void 0),n=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,o,n,t,s);}(this,r,eU(t,0));}else{let e=e_(t);!function(e,A,t,r){let o,n;let i=Object.create(tC.prototype);o=void 0!==A.start?()=>A.start(i):()=>{},n=void 0!==A.pull?()=>A.pull(i):()=>c(void 0),Ad(e,i,o,n,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 Av("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(Av("cancel"));}getReader(e){if(!Aw(this))throw Av("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 Av("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"),k(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(eG(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(Av("pipeTo"));if(void 0===e)return AZ("Parameter 1 is required in 'pipeTo'.");if(!eO(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")):eG(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 Av("tee");return G(K(this._readableStreamController)?function(e){function A(e){u(e._closedPromise,A=>(e!==Q||(ed(E._readableStreamController,A),ed(g._readableStreamController,A),f&&p||h(void 0)),null));}function t(){ek(Q)&&(B(Q),A(Q=N(e))),x(Q,{_chunkSteps(A){A0(()=>{I=!1,d=!1;let t=A;if(!f&&!p)try{t=j(A);}catch(A){return ed(E._readableStreamController,A),ed(g._readableStreamController,A),void h(AR(e,A));}f||eI(E._readableStreamController,A),p||eI(g._readableStreamController,t),C=!1,I?o():d&&n();});},_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){T(Q)&&(B(Q),A(Q=new ta(e)));let i=r?g:E,s=r?E:g;eN(Q,t,1,{_chunkSteps(A){A0(()=>{I=!1,d=!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 ed(i._readableStreamController,A),ed(s._readableStreamController,A),void h(AR(e,A));}t||em(i._readableStreamController,A),eI(s._readableStreamController,r);}C=!1,I?o():d&&n();});},_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 o(){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 n(){if(C)return d=!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,d=!1,f=!1,p=!1,y=l(e=>{h=e;});return E=Ay(i,o,function(A){if(f=!0,s=A,p){let A=AR(e,G([s,a]));h(A);}return y;}),g=Ay(i,n,function(A){if(p=!0,a=A,f){let A=AR(e,G([s,a]));h(A);}return y;}),A(Q),[E,g];}(this):function(e,A){function t(){return g?h=!0:(g=!0,x(o,{_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 o=N(e),n,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,n=A,C){let A=AR(e,G([n,i]));E(A);}return I;}),a=Ap(r,t,function(A){if(C=!0,i=A,Q){let A=AR(e,G([n,i]));E(A);}return I;}),u(o._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 Av("values");return function(e,A){let t=new tr(N(e),A),r=Object.create(to);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(n,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=P(A,tt)))return function(e){let A={next(){let A;try{A=V(e);}catch(e){return AZ(e);}return H(A);},return(A){let t;try{let r=P(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)?H(t):AZ(TypeError("The iterator.return() method must return an object"));}};return{iterator:A,nextMethod:A.next,done:!1};}(e(A,"sync",P(A,Symbol.iterator)));}else r=P(A,Symbol.iterator);}if(void 0===r)throw TypeError("The object is not iterable");let o=Q(r,A,[]);if(!i(o))throw TypeError("The iterator method must return an object");return{iterator:o,nextMethod:o.next,done:!1};}(e,"async");return A=Ap(n,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=P(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 td=e=>e.byteLength;s(td,"size");class tB{constructor(e){D(e,1,"ByteLengthQueuingStrategy"),e=Ak(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 td;}}Object.defineProperties(tB.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(tB.prototype,Symbol.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});let tf=()=>1;s(tf,"size");class tp{constructor(e){D(e,1,"CountQueuingStrategy"),e=Ak(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 o=eT(A,"Second parameter"),n=eT(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,o=null==e?void 0:e.readableType,n=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:o,start:void 0===n?void 0:(b(n,`${A} has member 'start' that`),A=>Q(n,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(n,0),a=e_(n),u=eU(o,1),h=e_(o);(function(e,A,t,r,o,n){function i(){return A;}e._writable=function(e,A,t,r,o=1,n=()=>1){let i=Object.create(tc.prototype);return eM(i),e1(i,Object.create(tu.prototype),e,A,t,r,o,n),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 AP(t,A);},void 0);return AP(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 o=t._cancelAlgorithm(A);return AY(t),g(o,()=>("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 AO(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 o=t._cancelAlgorithm(A);return AY(t),g(o,()=>("errored"===r._state?Aq(t,r._storedError):(e8(r._writableStreamController,A),AM(e),AV(t)),null),A=>(e8(r._writableStreamController,A),AM(e),Aq(t,A),null)),t._finishPromise;}(e,A);},o,n),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,AO(e,!0),e._transformStreamController=void 0;})(this,l(e=>{r=e;}),u,h,s,a),function(e,A){let t,r,o;let n=Object.create(tm.prototype);t=void 0!==A.transform?e=>A.transform(e,n):e=>{try{return AJ(n,e),c(void 0);}catch(e){return AZ(e);}},r=void 0!==A.flush?()=>A.flush(n):()=>c(void 0),o=void 0!==A.cancel?e=>A.cancel(e):()=>c(void 0),n._controlledTransformStream=e,e._transformStreamController=n,n._transformAlgorithm=t,n._flushAlgorithm=r,n._cancelAlgorithm=o,n._finishPromise=void 0,n._finishPromise_resolve=void 0,n._finishPromise_reject=void 0;}(this,i),void 0!==i.start?r(i.start(this._transformStreamController)):r(void 0);}get readable(){if(!A_(this))throw AW("readable");return this._readable;}get writable(){if(!A_(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(!AG(this))throw AH("desiredSize");return AC(this._controlledTransformStream._readable._readableStreamController);}enqueue(e){if(!AG(this))throw AH("enqueue");AJ(this,e);}error(e){if(!AG(this))throw AH("error");AT(this._controlledTransformStream,e);}terminate(){if(!AG(this))throw AH("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});}),tC("bLoP1",function(e,A){let t;function r(){n=Date.now();let e=i.length,A=0;for(;e>A;){let t=i[A];0===t.state?t.state=n+t.delay:t.state>0&&n>=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&&o();}function o(){t&&t.refresh?t.refresh():(clearTimeout(t),(t=setTimeout(r,1e3)).unref&&t.unref());}let n=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||o()),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);}};}),tC("9ihOp",function(e,A){var t,r,o,n,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,n=!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,n?e.headers[A]=E(A,t,n):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 o("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(o))this.body=o.byteLength?o:null;else if(ArrayBuffer.isView(o))this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null;else if(o instanceof ArrayBuffer)this.body=o.byteLength?Buffer.from(o):null;else if("string"==typeof o)this.body=o.length?Buffer.from(o):null;else if(l.isFormDataLike(o)||l.isIterable(o)||l.isBlobLike(o))this.body=o;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==d?null:d,this.host=null,this.contentLength=null,this.contentType=null,this.headers="",this.expectContinue=null!=f&&f,Array.isArray(n)){if(n.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,o.prototype),!0);}get hasSubscribers(){return!0;}publish(e){for(let A=0;A{throw e;});}}}class o{constructor(e){this._subscribers=void 0,this.name=e;}static[Symbol.hasInstance](e){let A=Object.getPrototypeOf(e);return A===o.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 n={};e.exports={channel:function(e){let A=n[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 n[e]=new o(e);},hasSubscribers:function(e){let A=n[e];return!!A&&A.hasSubscribers;},Channel:o,deleteChannel:function(e){return!!n[e]&&(n[e]=null,!0);}};}),tC("fOogJ",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D;function S(e,A=!1){U||(U=oF("kJ4DQ").ReadableStream);let t=null;t=e instanceof U?e:i(e)?e.stream():new U({async pull(e){e.enqueue("string"==typeof l?T.encode(l):l),queueMicrotask(()=>a(e));},start(){},type:void 0}),oo(s(t));let o=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"),n=e=>e.replace(/\r?\n|\r/g,"\r\n"),i=[],s=new Uint8Array([13,10]);c=0;let a=!1;for(let[A,o]of e)if("string"==typeof o){let e=T.encode(t+`; name="${r(n(A))}"`+`\r \r ${n(o)}\r `);i.push(e),c+=e.byteLength;}else{let e=T.encode(`${t}; name="${r(n(A))}"`+(o.name?`; filename="${r(o.name)}"`:"")+"\r\n"+`Content-Type: ${o.type||"application/octet-stream"}\r \r `);i.push(e,o,s),"number"==typeof o.size?c+=e.byteLength+o.size+s.byteLength:a=!0;}let g=T.encode(`--${A}--`);i.push(g),c+=g.byteLength,a&&(c=null),l=e,o=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:n(e);}if(("string"==typeof l||r.isBuffer(l))&&(c=Buffer.byteLength(l)),null!=o){let A;t=new U({async start(){A=o(e)[Symbol.asyncIterator]();},async pull(e){let{value:r,done:o}=await A.next();return o?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*v(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[B]=!0,yield*A;}}}function k(e){if(e.aborted)throw new Q("The operation was aborted.","AbortError");}async function N(e,A,t){var o;if(u.brandCheck(e,t),k(e[g]),null!=(o=e[g].body)&&(o.stream.locked||r.isDisturbed(o.stream)))throw TypeError("Body is unusable");let n=l(),i=e=>n.reject(e),s=e=>{try{n.resolve(A(e));}catch(e){i(e);}};return null==e[g].body?s(new Uint8Array()):await c(e[g].body,s,i),n.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=oF("bfSn9"),r=oF("jksEw"),n=(o=oF("3Ms3X")).ReadableStreamFrom,i=o.isBlobLike,s=o.isReadableStreamLike,a=o.readableStreamClose,l=o.createDeferredPromise,c=o.fullyReadBody,E=oF("dVNsr").FormData,g=oF("czloG").kState,u=oF("cvPqj").webidl,Q=(h=oF("cU8F4")).DOMException,C=h.structuredClone,I=os.Blob,d=os.File,B=oF("eoU9M").kBodyUsed,f=(r=oF("jksEw")).isErrored,y=(p=oF("1oEcd")).isUint8Array,m=p.isArrayBuffer,w=oF("3ReSW").File,R=(b=oF("9mEts")).parseMIMEType,D=b.serializeAMimeType;let U=globalThis.ReadableStream,_=null!=d?d:w,T=new TextEncoder(),x=new TextDecoder();e.exports={extractBody:S,safelyExtractBody:function(e,A=!1){return U||(U=oF("kJ4DQ").ReadableStream),e instanceof U&&(oo(!r.isDisturbed(e),"The body has already been consumed."),oo(!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),k(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,o,n)=>{let i=[];if("base64"===o||"base64"===o.toLowerCase()){let o="";A.on("data",e=>{let A=(o+=e.toString().replace(/[\r\n]/gm,"")).length-o.length%4;i.push(Buffer.from(o.slice(0,A),"base64")),o=o.slice(A);}),A.on("end",()=>{i.push(Buffer.from(o,"base64")),r.append(e,new _(i,t,{type:n}));});}else A.on("data",e=>{i.push(e);}),A.on("end",()=>{r.append(e,new _(i,t,{type:n}));});});let o=new Promise((A,t)=>{e.on("finish",A),e.on("error",e=>t(TypeError(e)));});if(null!==this.body)for await(let A of v(this[g].body))e.write(A);return e.end(),await o,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 v(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(),k(this[g]),u.errors.exception({header:`${e.name}.formData`,message:"Could not parse content as FormData."});}});}};}),tC("bfSn9",function(e,A){var t,r,o,n,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=ol.Writable,r=oc.inherits,o=oF("4FQCA"),n=oF("0bi9m"),i=oF("a2N0f"),s=oF("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(n.detect.test(A[0]))return new n(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=o;}),tC("4FQCA",function(e,A){var t,r,o,n,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=ol.Writable,r=oc.inherits,o=oF("2zsSN"),n=oF("ffzdk"),i=oF("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 n(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+o;for(i=t-o;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;}),tC("ffzdk",function(e,A){var t;function r(e){t.call(this,e);}(0,oc.inherits)(r,t=ol.Readable),r.prototype._read=function(e){},e.exports=r;}),tC("1AoeR",function(e,A){var t,r,o,n;function i(e){t.call(this),e=e||{};let A=this;this.nread=0,this.maxed=!1,this.npairs=0,this.maxHeaderPairs=o(e,"maxHeaderPairs",2e3),this.maxHeaderSize=o(e,"maxHeaderSize",81920),this.buffer="",this.header={},this.finished=!1,this.ss=new n(s),this.ss.on("info",function(e,t,r,o){t&&!A.maxed&&(A.nread+o-r>=A.maxHeaderSize?(o=A.maxHeaderSize-A.nread+r,A.nread=A.maxHeaderSize,A.maxed=!0):A.nread+=o-r,A.buffer+=t.toString("binary",r,o)),e&&A._finish();});}t=oE.EventEmitter,r=oc.inherits,o=oF("8tV70"),n=oF("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 o=0;r>o;++o){if(0===t[o].length)continue;if((" "===t[o][0]||" "===t[o][0])&&A){this.header[A][this.header[A].length-1]+=t[o];continue;}let r=t[o].indexOf(":");if(-1===r||0===r)return;if(A=(e=/^([^:]+):[ \t]?([\x00-\xFF]+)?$/.exec(t[o]))[1].toLowerCase(),this.header[A]=this.header[A]||[],this.header[A].push(e[2]||""),++this.npairs===this.maxHeaderPairs)break;}},e.exports=i;}),tC("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];};}),tC("0bi9m",function(e,A){var t,r,o,n,i,s,a;function l(e,A){let t,r,l,I,d;function B(){0===T&&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),v=a(p,"files",1/0),k=a(p,"fields",1/0),N=a(p,"parts",1/0),F=a(p,"headerPairs",2e3),L=a(p,"headerSize",81920),U=0,_=0,T=0,x=!1;this._needDrain=!1,this._pause=!1,this._cb=void 0,this._nparts=0,this._boy=e;let M={boundary:l,maxHeaderPairs:F,maxHeaderSize:L,partHwm:R.highWaterMark,highWaterMark:A.highWaterMark};this.parser=new o(M),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(o){if(++f._nparts>N)return f.parser.removeListener("part",A),f.parser.on("part",c),e.hitPartsLimit=!0,e.emit("partsLimit"),c(o);if(d){let e=d;e.emit("end"),e.removeAllListeners("end");}o.on("header",function(A){let a,l,g,p,m,N,F,L;let x=0;if(A["content-type"]&&(g=n(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=n(A["content-disposition"][0]))[0]))return c(o);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===v)return e.hitFilesLimit||(e.hitFilesLimit=!0,e.emit("filesLimit")),c(o);if(++U,0===e.listenerCount("file")){f.parser._ignore();return;}++T;let A=new E(R);I=A,A.on("end",function(){if(--T,f._pause=!1,B(),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,o.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(_===k)return e.hitFieldsLimit||(e.hitFieldsLimit=!0,e.emit("fieldsLimit")),c(o);++_,++T;let A="",t=!1;d=o,F=function(e){if((x+=e.length)>D){let r=D-(x-e.length);A+=e.toString("binary",0,r),t=!0,o.removeAllListeners("data");}else A+=e.toString("binary");},L=function(){d=void 0,A.length&&(A=i(A,"binary",p)),e.emit("field",l,A,!1,t,m,a),--T,B();};}o._readableState.sync=!1,o.on("data",F),o.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,B();});}function c(e){e.resume();}function E(e){t.call(this,e),this.bytesRead=0,this.truncated=!1;}t=ol.Readable,r=oc.inherits,o=oF("4FQCA"),n=oF("ePpzH"),i=oF("lSDUY"),s=oF("jq2EU"),a=oF("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;}),tC("ePpzH",function(e,A){var t;function r(e){return o[e];}t=oF("lSDUY");let o={"%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=[],o=0,n="",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,o=0):i=!0;continue;}}else{if(s&&i&&(l+="\\"),s=!1,(2===o||3===o)&&"'"===c){2===o?(o=3,n=l.substring(1)):o=1,l="";continue;}if(0===o&&("*"===c||"="===c)&&A.length){o="*"===c?2:1,A[a]=[l,void 0],l="";continue;}if(i||";"!==c){if(!i&&(" "===c||" "===c))continue;}else{o=0,n?(l.length&&(l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",n)),n=""):l.length&&(l=t(l,"binary","utf8")),void 0===A[a]?A[a]=l:A[a][1]=l,l="",++a;continue;}}l+=c;}return n&&l.length?l=t(l.replace(/%[a-fA-F0-9][a-fA-F0-9]/g,r),"binary",n):l&&(l=t(l,"binary","utf8")),void 0===A[a]?l&&(A[a]=l):A[a][1]=l,A;};}),tC("lSDUY",function(e,A){let t=new TextDecoder("utf-8"),r=new Map([["utf-8",t],["utf8",t]]),o={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 o.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 o.latin1;case"utf16le":case"utf-16le":case"ucs2":case"ucs-2":return o.utf16le;case"base64":return o.base64;default:if(void 0===A){A=!0,e=e.toLowerCase();continue;}return o.other.bind(e);}}(t)(e,A):e;};}),tC("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;};}),tC("a2N0f",function(e,A){var t,r,o;function n(e,A){let r;let n=A.limits,s=A.parsedConType;this.boy=e,this.fieldSizeLimit=o(n,"fieldSize",1048576),this.fieldNameSizeLimit=o(n,"fieldNameSize",100),this.fieldsLimit=o(n,"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=oF("eyp0C"),r=oF("lSDUY"),o=oF("8tV70");let i=/^charset$/i;n.detect=/^application\/x-www-form-urlencoded/i,n.prototype.write=function(e,A){let t,o,n;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(;in;++n){if(!this._checkingBytes&&++i,61===e[n]){t=n;break;}if(38===e[n]){o=n;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!==o){let t;++this._fields;let n=this._keyTrunc;if(t=o>i?this._key+=this.decoder.write(e.toString("binary",i,o)):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),"",n,!1),i=o+1,this._fields===this.fieldsLimit)return A();}else this._hitLimit?(n>i&&(this._key+=this.decoder.write(e.toString("binary",i,n))),i=n,(this._bytesKey=this._key.length)===this.fieldNameSizeLimit&&(this._checkingBytes=!1,this._keyTrunc=!0)):(in;++n){if(!this._checkingBytes&&++i,38===e[n]){o=n;break;}if(this._checkingBytes&&this._bytesVal===this.fieldSizeLimit){this._hitLimit=!0;break;}this._checkingBytes&&++this._bytesVal;}if(void 0!==o){if(++this._fields,o>i&&(this._val+=this.decoder.write(e.toString("binary",i,o))),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=o+1,this._fields===this.fieldsLimit)return A();}else this._hitLimit?(n>i&&(this._val+=this.decoder.write(e.toString("binary",i,n))),i=n,(""===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=n;}),tC("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,o=0,n=e.length;for(;n>t;++t)void 0!==this.buffer?r[e.charCodeAt(t)]?(this.buffer+=e[t],++o,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>o&&(A+=e.substring(o,t),o=t),this.buffer="",++o);return o=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 d(e,A){return(oo(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 B(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 o=e.groups.algo.toLowerCase();R.includes(o)&&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:o}=await e.read();if(r)return Buffer.concat(A,t);if(!g(o))throw TypeError("Received non-Uint8Array chunk");A.push(o),t+=o.length;}}function w(e){return"string"==typeof e?e.startsWith("https:"):"https:"===e.protocol;}function b(e){oo("protocol"in e);let A=e.protocol;return"http:"===A||"https:"===A;}r=(t=oF("cU8F4")).redirectStatusSet,o=t.referrerPolicySet,n=t.badPortsSet,i=oF("e3MDk").getGlobalOrigin,s=og.performance,l=(a=oF("jksEw")).isBlobLike,c=a.toUSVString,E=a.ReadableStreamFrom,g=oF("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 v=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())),k=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;oo(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=d(t),o=d(t,!0);r.toString().length>4096&&(r=o);let n=p(e,r),s=B(r)&&!B(e.url);switch(A){case"origin":return null!=o?o:d(t,!0);case"unsafe-url":return r;case"same-origin":return n?o:"no-referrer";case"origin-when-cross-origin":return n?r:o;case"strict-origin-when-cross-origin":{let A=Q(e);if(p(r,A))return r;if(B(r)&&!B(A))return"no-referrer";return o;}default:return s?"no-referrer":o;}},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,n=(null!==(t=r.get("referrer-policy"))&&void 0!==t?t:"").split(","),i="";if(n.length>0)for(let e=n.length;0!==e;e--){let A=n[e-1].trim();if(o.has(A)){i=A;break;}}""!==i&&(e.referrerPolicy=i);},isValidHTTPToken:C,requestBadPort:function(e){let A=Q(e);return b(A)&&n.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:B,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 oo("string"==typeof A),A;},makeIterator:function(e,A,t){let r={index:0,kind:t,target:e},o={next(){if(Object.getPrototypeOf(this)!==o)throw TypeError(`'next' called on an object that does not implement interface ${A} Iterator.`);let{index:e,kind:t,target:n}=r,i=n();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(o,v),Object.setPrototypeOf({},o);},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){oo("protocol"in e);let A=e.protocol;return"about:"===A||"blob:"===A||"data:"===A;},urlHasHttpsScheme:w,urlIsHttpHttpsScheme:b,readAllBytes:m,normalizeMethodRecord:S,parseMetadata:f};}),tC("cU8F4",function(e,A){let t;var r,o,n=ou.MessageChannel,i=ou.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"],d=new Set(I),B=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""],f=new Set(B),p=null!==(r=globalThis.DOMException)&&void 0!==r?r:(()=>{try{atob("~");}catch(e){return Object.getPrototypeOf(e).constructor;}})(),y=null!==(o=globalThis.structuredClone)&&void 0!==o?o:function(e,A){if(0==arguments.length)throw TypeError("missing argument");return t||(t=new n()),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:B,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:d,referrerPolicySet:h};}),tC("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});}};}),tC("1oEcd",function(e,A){var t=oF("3h8U0")();e.exports=t;}),tC("3h8U0",function(e,A){var t;t=oF("l4NWF"),e.exports=function(){return"object"==typeof on.types?on.types:t;};}),tC("l4NWF",function(e,A){var t,r,o,n,i,s,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,_,T,x,M,O,G,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",()=>o,e=>o=e),a(e.exports,"isBooleanObject",()=>n,e=>n=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",()=>d,e=>d=e),a(e.exports,"isSetIterator",()=>B,e=>B=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",()=>v,e=>v=e),a(e.exports,"isTypedArray",()=>k,e=>k=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",()=>_,e=>_=e),a(e.exports,"isInt16Array",()=>T,e=>T=e),a(e.exports,"isInt32Array",()=>x,e=>x=e),a(e.exports,"isFloat32Array",()=>M,e=>M=e),a(e.exports,"isFloat64Array",()=>O,e=>O=e),a(e.exports,"isBigInt64Array",()=>G,e=>G=e),a(e.exports,"isBigUint64Array",()=>Y,e=>Y=e),t=function(){},r=function(e){return"[object Date]"===J(e)&&e instanceof Date;},o=function(e){return"[object Arguments]"===J(e);},n=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;},d=function(e){return"[object Map Iterator]"===J(e);},B=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(){},v=function(){},k=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;},_=function(e){return"[object Int8Array]"===J(e)&&e instanceof Int8Array;},T=function(e){return"[object Int16Array]"===J(e)&&e instanceof Int16Array;},x=function(e){return"[object Int32Array]"===J(e)&&e instanceof Int32Array;},M=function(e){return"[object Float32Array]"===J(e)&&e instanceof Float32Array;},O=function(e){return"[object Float64Array]"===J(e)&&e instanceof Float64Array;},G=function(e){return"[object Float64Array]"===J(e)&&e instanceof Float64Array;},Y=function(){};}),tC("dVNsr",function(e,A){var t,r,o,n,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=oF("3Ms3X")).isBlobLike,o=t.toUSVString,n=t.makeIterator,i=oF("czloG").kState,a=(s=oF("3ReSW")).File,l=s.FileLike,c=s.isFileLike,E=oF("cvPqj").webidl,g=os.Blob;let Q=null!=(u=os.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 o=h(e,A,t);this[i].push(o);}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?o(t):void 0;let n=h(e,A,t),s=this[i].findIndex(A=>A.name===e);-1!==s?this[i]=[...this[i].slice(0,s),n,...this[i].slice(s+1).filter(A=>A.name!==e)]:this[i].push(n);}entries(){return E.brandCheck(this,C),n(()=>this[i].map(e=>[e.name,e.value]),"FormData","key+value");}keys(){return E.brandCheck(this,C),n(()=>this[i].map(e=>[e.name,e.value]),"FormData","key");}values(){return E.brandCheck(this,C),n(()=>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};}),tC("czloG",function(e,A){e.exports={kUrl:Symbol(),kHeaders:Symbol(),kSignal:Symbol(),kState:Symbol(),kGuard:Symbol(),kRealm:Symbol()};}),tC("3ReSW",function(e,A){var t,r,o,n,i,s,a,l,c,E;t=os.Blob,r=os.File,o=on.types,n=oF("czloG").kState,i=oF("3Ms3X").isBlobLike,s=oF("cvPqj").webidl,l=(a=oF("9mEts")).parseMIMEType,c=a.serializeAMimeType,E=oF("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 o.isAnyArrayBuffer(r)||o.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[n]={name:a,lastModified:r,type:E};}get name(){return s.brandCheck(this,u),this[n].name;}get lastModified(){return s.brandCheck(this,u),this[n].lastModified;}get type(){return s.brandCheck(this,u),this[n].type;}}class h{constructor(e,A,t={}){var r;let o=t.type,i=null!==(r=t.lastModified)&&void 0!==r?r:Date.now();this[n]={blobLike:e,name:A,type:o,lastModified:i};}stream(...e){return s.brandCheck(this,h),this[n].blobLike.stream(...e);}arrayBuffer(...e){return s.brandCheck(this,h),this[n].blobLike.arrayBuffer(...e);}slice(...e){return s.brandCheck(this,h),this[n].blobLike.slice(...e);}text(...e){return s.brandCheck(this,h),this[n].blobLike.text(...e);}get size(){return s.brandCheck(this,h),this[n].blobLike.size;}get type(){return s.brandCheck(this,h),this[n].blobLike.type;}get name(){return s.brandCheck(this,h),this[n].name;}get lastModified(){return s.brandCheck(this,h),this[n].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)||o.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];}};}),tC("cvPqj",function(e,A){var t=on.types,r=oF("3Ms3X"),o=r.hasOwn,n=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 o,n;64===A?(o=9007199254740991,n="unsigned"===t?0:-9007199254740991):"unsigned"===t?(n=0,o=Math.pow(2,A)-1):(n=Math.pow(-2,A)-1,o=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))o)throw i.errors.exception({header:"Integer conversion",message:`Value must be between ${n}-${o}, 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,n),o))%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),o=[];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;o.push(e(t));}return o;};},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 o={};if(!t.isProxy(r)){for(let t of Object.keys(r)){let n=e(t),i=A(r[t]);o[n]=i;}return o;}for(let t of Reflect.ownKeys(r)){let n=Reflect.getOwnPropertyDescriptor(r,t);if(null==n?void 0:n.enumerable){let n=e(t),i=A(r[t]);o[n]=i;}}return o;};},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:n,required:s,converter:a}=t;if(!0===s&&!o(A,e))throw i.errors.exception({header:"Dictionary",message:`Missing required key "${e}".`});let l=A[e],c=o(t,"defaultValue");if(c&&null!==l&&(l=null!=l?l:n),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=n,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};}),tC("9mEts",function(e,A){function t(e,A=!1){if(!A)return e.href;let r=e.href,o=e.hash.length;return 0===o?r:r.substring(0,r.length-o);}function r(e,A,t){let r="";for(;t.positione.length)return"failure";A.position++;let n=o(";",e,A);if(0===(n=l(n,!1,!0)).length||!h.test(n))return"failure";let i=t.toLowerCase(),a=n.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 n=null;if('"'===e[A.position])n=s(e,A,!0),o(";",e,A);else if(0===(n=l(n=o(";",e,A),!1,!0)).length)continue;0!==t.length&&h.test(t)&&(0===n.length||C.test(n))&&!c.parameters.has(t)&&c.parameters.set(t,n);}return c;}function s(e,A,t){let o=A.position,n="";for(oo('"'===e[A.position]),A.position++;n+=r(e=>'"'!==e&&"\\"!==e,e,A),!(A.position>=e.length);){let t=e[A.position];if(A.position++,"\\"===t){if(A.position>=e.length){n+="\\";break;}n+=e[A.position],A.position++;}else{oo('"'===t);break;}}return t?n:e.slice(o,A.position);}function a(e){return"\r"===e||"\n"===e||" "===e||" "===e;}function l(e,A=!0,t=!0){let r=0,o=e.length-1;if(A)for(;r0&&a(e[o]);o--);return e.slice(r,o+1);}function c(e){return"\r"===e||"\n"===e||" "===e||"\f"===e||" "===e;}var E=os.atob,g=oF("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){oo("data:"===e.protocol);let A=t(e,!0);A=A.slice(5);let r={position:0},s=o(",",A,r),a=s.length;if(s=function(e,A=!0,t=!0){let r=0,o=e.length-1;if(A)for(;r0&&c(e[o]);o--);return e.slice(r,o+1);}(s,!0,!0),r.position>=A.length)return"failure";r.position++;let l=n(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 o(),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 o()),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 o();if(this[u])throw new n();return this[C](e,A);}catch(e){if("function"!=typeof A.onError)throw new i("invalid onError method");return A.onError(e),!1;}}};}),tC("aqU6E",function(e,A){e.exports=class extends or{dispatch(){throw Error("not implemented");}close(){throw Error("not implemented");}destroy(){throw Error("not implemented");}};}),tC("ertK5",function(e,A){var t,r,o,n;let i,s;t=oF("jksEw"),o=(r=oF("ayJiG")).InvalidArgumentError,n=r.ConnectTimeoutError,ov.FinalizationRegistry&&!process.env.NODE_V8_COVERAGE?s=class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map(),this._sessionRegistry=new ov.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 o("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:o,port:s,servername:l,localAddress:g,httpSocket:u},h){let Q;if("https:"===o){i||(i=ot);let o=(l=l||c.servername||t.getServerName(r)||null)||A,n=E.get(o)||null;oo(o),(Q=i.connect({highWaterMark:16384,...c,servername:l,session:n,localAddress:g,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:u,port:s||443,host:A})).on("session",function(e){E.set(o,e);});}else oo(!u,"httpSocket can only be sent on TLS update"),Q=oA.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,o=setTimeout(()=>{t=setImmediate(()=>{"win32"===process.platform?r=setImmediate(()=>e()):e();});},A);return()=>{clearTimeout(o),clearImmediate(t),clearImmediate(r);};}(()=>{var e;return e=Q,void t.destroy(e,new n());},a);return Q.setNoDelay(!0).once("https:"===o?"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;};};}),tC("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,o,n,i,s,a,l,c,E=oF("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",(o=e.exports.FLAGS||(e.exports.FLAGS={}))[o.CONNECTION_KEEP_ALIVE=1]="CONNECTION_KEEP_ALIVE",o[o.CONNECTION_CLOSE=2]="CONNECTION_CLOSE",o[o.CONNECTION_UPGRADE=4]="CONNECTION_UPGRADE",o[o.CHUNKED=8]="CHUNKED",o[o.UPGRADE=16]="UPGRADE",o[o.CONTENT_LENGTH=32]="CONTENT_LENGTH",o[o.SKIPBODY=64]="SKIPBODY",o[o.TRAILING=128]="TRAILING",o[o.TRANSFER_ENCODING=512]="TRANSFER_ENCODING",(n=e.exports.LENIENT_FLAGS||(e.exports.LENIENT_FLAGS={}))[n.HEADERS=1]="HEADERS",n[n.CHUNKED_LENGTH=2]="CHUNKED_LENGTH",n[n.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};}),tC("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;};}),tC("9sz7P",function(e,A){var t;t=oF("3E5UX"),e.exports=function({maxRedirections:e}){return A=>function(r,o){let{maxRedirections:n=e}=r;if(!n)return A(r,o);let i=new t(A,n,r,o);return A(r={...r,maxRedirections:0},i);};};}),tC("3E5UX",function(e,A){var t,r,o;function n(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=oF("jksEw"),r=oF("eoU9M").kBodyUsed,o=oF("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](){oo(!this[r],"disturbed"),this[r]=!0,yield*this[s];}}e.exports=class{constructor(e,A,n,i){if(null!=A&&(!Number.isInteger(A)||A<0))throw new o("maxRedirections must be a positive number");t.validateHandler(i,n.method,n.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...n,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(){oo(!1);}),"boolean"!=typeof this.opts.body.readableDidRead&&(this.opts.body[r]=!1,or.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,o){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[n]);return e||(!this[I]||this[o].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[d];}get[n](){return this[I].filter(e=>e[n]).length;}get[E](){return this[I].filter(e=>e[n]&&!e[d]).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[B].isEmpty()?Promise.all(this[I].map(e=>e.close())):new Promise(e=>{this[f]=e;});}async[h](e){for(;;){let A=this[B].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[d]=!0,this[d]=!this[b]()):(this[d]=!0,this[B].push({opts:e,handler:A}),this[l]++),!this[d];}[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[d]&&process.nextTick(()=>{this[d]&&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[d]=this[I].some(e=>!e[d]&&!0!==e.closed&&!0!==e.destroyed);}},kClients:I,kNeedDrain:d,kAddClient:R,kRemoveClient:D,kGetDispatcher:b};}),tC("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;}};}),tC("gJf4e",function(e,A){var t=oF("eoU9M"),r=t.kFree,o=t.kConnected,n=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][o];}get free(){return this[l][r];}get pending(){return this[l][n];}get queued(){return this[l][i];}get running(){return this[l][s];}get size(){return this[l][a];}};}),tC("35hUU",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C;function I(e,A){return new g(e,A);}r=(t=oF("ayJiG")).BalancedPoolMissingUpstreamError,o=t.InvalidArgumentError,i=(n=oF("2A4vm")).PoolBase,s=n.kClients,a=n.kNeedDrain,l=n.kAddClient,c=n.kRemoveClient,E=n.kGetDispatcher,g=oF("kOCfr"),h=(u=oF("eoU9M")).kUrl,Q=u.kInterceptors,C=oF("jksEw").parseOrigin;let d=Symbol(),B=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[B]=t,this[y]=-1,this[p]=0,this[w]=this[B].maxWeightPerServer||100,this[b]=this[B].errorPenalty||15,Array.isArray(e)||(e=[e]),"function"!=typeof A)throw new o("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[d]=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[d](A,Object.assign({},this[B]));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];}};}),tC("c0vcY",function(e,A){var t,r,o,n,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=oF("ayJiG").InvalidArgumentError,o=(r=oF("eoU9M")).kClients,n=r.kRunning,i=r.kClose,s=r.kDestroy,a=r.kDispatch,l=r.kInterceptors,c=oF("8Tdy2"),E=oF("kOCfr"),g=oF("8yUQl"),u=oF("jksEw"),h=oF("9sz7P");let{WeakRef:C,FinalizationRegistry:I}=oF("zN1di")(),d=Symbol(),B=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,...n}={}){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]=n.interceptors&&n.interceptors.Agent&&Array.isArray(n.interceptors.Agent)?n.interceptors.Agent:[h({maxRedirections:A})],this[b]={...u.deepClone(n),connect:r},this[b].interceptors=n.interceptors?{...n.interceptors}:void 0,this[p]=A,this[m]=e,this[o]=new Map(),this[w]=new I(e=>{let A=this[o].get(e);void 0!==A&&void 0===A.deref()&&this[o].delete(e);});let i=this;this[y]=(e,A)=>{i.emit("drain",e,[i,...A]);},this[d]=(e,A)=>{i.emit("connect",e,[i,...A]);},this[B]=(e,A,t)=>{i.emit("disconnect",e,[i,...A],t);},this[f]=(e,A,t)=>{i.emit("connectionError",e,[i,...A],t);};}get[n](){let e=0;for(let A of this[o].values()){let t=A.deref();t&&(e+=t[n]);}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 n=this[o].get(r),i=n?n.deref():null;return i||(i=this[m](e.origin,this[b]).on("drain",this[y]).on("connect",this[d]).on("disconnect",this[B]).on("connectionError",this[f]),this[o].set(r,new C(i)),this[w].register(i,r)),i.dispatch(e,A);}async[i](){let e=[];for(let A of this[o].values()){let t=A.deref();t&&e.push(t.close());}await Promise.all(e);}async[s](e){let A=[];for(let t of this[o].values()){let r=t.deref();r&&A.push(r.destroy(e));}await Promise.all(A);}};}),tC("zN1di",function(e,A){var t=oF("eoU9M"),r=t.kConnected,o=t.kSize;class n{constructor(e){this.value=e;}deref(){return 0===this.value[r]&&0===this.value[o]?void 0:this.value;}}class i{constructor(e){this.finalizer=e;}register(e,A){e.on&&e.on("disconnect",()=>{0===e[r]&&0===e[o]&&this.finalizer(A);});}}e.exports=function(){return process.env.NODE_V8_COVERAGE?{WeakRef:n,FinalizationRegistry:i}:{WeakRef:ov.WeakRef||n,FinalizationRegistry:ov.FinalizationRegistry||i};};}),tC("4Ek9d",function(e,A){var t,r,o,n,i;a(e.exports,"request",()=>t,e=>t=e),a(e.exports,"stream",()=>r,e=>r=e),a(e.exports,"pipeline",()=>o,e=>o=e),a(e.exports,"upgrade",()=>n,e=>n=e),a(e.exports,"connect",()=>i,e=>i=e),t=oF("lPeX8"),r=oF("eO5F2"),o=oF("9othe"),n=oF("gEplS"),i=oF("9U7te");}),tC("lPeX8",function(e,A){var t,r,o,n,i,s,a,l,c,E;t=oF("c1FNj"),o=(r=oF("ayJiG")).InvalidArgumentError,n=r.RequestAbortedError,i=oF("jksEw"),s=oF("9bl51").getResolveErrorBodyCallback,a=oh.AsyncResource,c=(l=oF("5eYhx")).addSignal,E=l.removeSignal;class g extends a{constructor(e,A){if(!e||"object"!=typeof e)throw new o("invalid opts");let{signal:t,method:r,opaque:n,body:s,onInfo:a,responseHeaders:l,throwOnError:E,highWaterMark:g}=e;try{if("function"!=typeof A)throw new o("invalid callback");if(g&&("number"!=typeof g||g<0))throw new o("invalid highWaterMark");if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new o("signal must be an EventEmitter or EventTarget");if("CONNECT"===r)throw new o("invalid method");if(a&&"function"!=typeof a)throw new o("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=n||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 n();this.abort=e,this.context=A;}onHeaders(e,A,r,o){let{callback:n,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!==n&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:n,body:Q,contentType:h,statusCode:e,statusMessage:o,headers:u}):this.runInAsyncScope(n,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:o}=this;E(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:o});})),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;}),tC("c1FNj",function(e,A){var t,r,o,n,i,s,a,l;let c;async function E(e,A){var t;if(s.isDisturbed(e)||(t=e)[d]&&!0===t[d].locked||t[C])throw TypeError("unusable");return oo(!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 o());}),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:o,length:n}=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(n),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:o[f]})));Q(e);}catch(e){o.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=oi.Readable,o=(r=oF("ayJiG")).RequestAbortedError,n=r.NotSupportedError,i=r.InvalidArgumentError,s=oF("jksEw"),a=(s=oF("jksEw")).ReadableStreamFrom,l=s.toUSVString;let C=Symbol(),I=Symbol(),d=Symbol(),B=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[B]=A,this[C]=null,this[d]=null,this[f]=t,this[I]=!1;}destroy(e){return this.destroyed?this:(e||this._readableState.endEmitted||(e=new o()),e&&this[B](),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 n();}get bodyUsed(){return s.isDisturbed(this);}get body(){return!this[d]&&(this[d]=a(this),this[C]&&(this[d].getReader(),oo(this[d].locked))),this[d];}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 o=t?s.addAbortListener(t,()=>{this.destroy();}):p;this.on("close",function(){o(),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();});}};}),tC("9bl51",function(e,A){async function t({callback:e,body:A,contentType:t,statusCode:n,statusMessage:i,headers:s}){oo(A);let a=[],l=0;for await(let e of A)if(a.push(e),(l+=e.length)>131072){a=null;break;}if(204===n||!t||!a){process.nextTick(e,new r(`Response status code ${n}${i?": "+i:""}`,n,s));return;}try{if(t.startsWith("application/json")){let A=JSON.parse(o(Buffer.concat(a)));process.nextTick(e,new r(`Response status code ${n}${i?": "+i:""}`,n,s,A));return;}if(t.startsWith("text/")){let A=o(Buffer.concat(a));process.nextTick(e,new r(`Response status code ${n}${i?": "+i:""}`,n,s,A));return;}}catch(e){}process.nextTick(e,new r(`Response status code ${n}${i?": "+i:""}`,n,s));}var r=oF("ayJiG").ResponseStatusCodeError,o=oF("jksEw").toUSVString;e.exports={getResolveErrorBodyCallback:t};}),tC("5eYhx",function(e,A){function t(e){e.abort?e.abort():e.onError(new o());}var r=oF("jksEw").addAbortListener,o=oF("ayJiG").RequestAbortedError;let n=Symbol(),i=Symbol();e.exports={addSignal:function(e,A){if(e[i]=null,e[n]=null,A){if(A.aborted){t(e);return;}e[i]=A,e[n]=()=>{t(e);},r(e[i],e[n]);}},removeSignal:function(e){e[i]&&("removeEventListener"in e[i]?e[i].removeEventListener("abort",e[n]):e[i].removeListener("abort",e[n]),e[i]=null,e[n]=null);}};}),tC("eO5F2",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u;t=oi.finished,r=oi.PassThrough,n=(o=oF("ayJiG")).InvalidArgumentError,i=o.InvalidReturnValueError,s=o.RequestAbortedError,a=oF("jksEw"),l=oF("9bl51").getResolveErrorBodyCallback,c=oh.AsyncResource,g=(E=oF("5eYhx")).addSignal,u=E.removeSignal;class h extends c{constructor(e,A,t){if(!e||"object"!=typeof e)throw new n("invalid opts");let{signal:r,method:o,opaque:i,body:s,onInfo:l,responseHeaders:c,throwOnError:E}=e;try{if("function"!=typeof t)throw new n("invalid callback");if("function"!=typeof A)throw new n("invalid factory");if(r&&"function"!=typeof r.on&&"function"!=typeof r.addEventListener)throw new n("signal must be an EventEmitter or EventTarget");if("CONNECT"===o)throw new n("invalid method");if(l&&"function"!=typeof l)throw new n("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,o,n){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:n,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:o,abort:n}=this;this.res=null,(e||!t.readable)&&a.destroy(t,e),this.callback=null,this.runInAsyncScope(A,null,e||null,{opaque:r,trailers:o}),e&&n();});}return s.on("drain",o),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:o}=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});})),o&&(this.body=null,a.destroy(o,e));}}e.exports=function e(A,t,r){if(void 0===r)return new Promise((r,o)=>{e.call(this,A,t,(e,A)=>e?o(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}));}};}),tC("9othe",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u;t=oi.Readable,r=oi.Duplex,o=oi.PassThrough,i=(n=oF("ayJiG")).InvalidArgumentError,s=n.InvalidReturnValueError,a=n.RequestAbortedError,l=oF("jksEw"),c=oh.AsyncResource,g=(E=oF("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:o,opaque:n,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"===o)throw new i("invalid method");if(s&&"function"!=typeof s)throw new i("invalid onInfo callback");super("UNDICI_PIPELINE"),this.opaque=n||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:o,ret:n,abort:i}=this;e||n._readableState.endEmitted||(e=new a()),i&&e&&i(),l.destroy(t,e),l.destroy(r,e),l.destroy(o,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(oo(!r,"pipeline cannot be retried"),t.destroyed)throw new a();this.abort=e,this.context=A;}onHeaders(e,A,t){let r;let{opaque:o,handler:n,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(n,null,{statusCode:e,headers:t,opaque:o,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 o().destroy(e);}};}),tC("gEplS",function(e,A){var t,r,o,n,i,s,a,l,c;r=(t=oF("ayJiG")).InvalidArgumentError,o=t.RequestAbortedError,n=t.SocketError,i=oh.AsyncResource,s=oF("jksEw"),l=(a=oF("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:o,responseHeaders:n}=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=n||null,this.opaque=o||null,this.callback=A,this.abort=null,this.context=null,l(this,t);}onConnect(e,A){if(!this.callback)throw new o();this.abort=e,this.context=null;}onHeaders(){throw new n("bad upgrade",null);}onUpgrade(e,A,t){let{callback:r,opaque:o,context:n}=this;oo.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:o,context:n});}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}));}};}),tC("9U7te",function(e,A){var t,r,o,n,i,s,a,l,c;t=oh.AsyncResource,o=(r=oF("ayJiG")).InvalidArgumentError,n=r.RequestAbortedError,i=r.SocketError,s=oF("jksEw"),l=(a=oF("5eYhx")).addSignal,c=a.removeSignal;class E extends t{constructor(e,A){if(!e||"object"!=typeof e)throw new o("invalid opts");if("function"!=typeof A)throw new o("invalid callback");let{signal:t,opaque:r,responseHeaders:n}=e;if(t&&"function"!=typeof t.on&&"function"!=typeof t.addEventListener)throw new o("signal must be an EventEmitter or EventTarget");super("UNDICI_CONNECT"),this.opaque=r||null,this.responseHeaders=n||null,this.callback=A,this.abort=null,l(this,t);}onConnect(e,A){if(!this.callback)throw new n();this.abort=e,this.context=A;}onHeaders(){throw new i("bad connect",null);}onUpgrade(e,A,t){let{callback:r,opaque:o,context:n}=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:o,context:n});}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}));}};}),tC("1vOTv",function(e,A){var t=on.promisify,r=oF("8yUQl"),o=oF("23wg0").buildMockDispatch,n=oF("5cl5M"),i=n.kDispatches,s=n.kMockAgent,a=n.kClose,l=n.kOriginalClose,c=n.kOrigin,E=n.kOriginalDispatch,g=n.kConnected,u=oF("7SSeF").MockInterceptor,h=oF("eoU9M"),Q=oF("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=o.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;}),tC("23wg0",function(e,A){var t,r,o,n,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(d(e),o));if(0===n.length)throw new t(`Mock dispatch not matched for path '${o}'`);if(0===(n=n.filter(({method:e})=>u(e,A.method))).length)throw new t(`Mock dispatch not matched for method '${A.method}'`);if(0===(n=n.filter(({body:e})=>void 0===e||u(e,A.body))).length)throw new t(`Mock dispatch not matched for body '${A.body}'`);if(0===(n=n.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 n[0];}function p(e,A){let t=e.findIndex(e=>!!e.consumed&&function(e,{path:A,method:t,body:r,headers:o}){let n=u(e.path,A),i=u(e.method,t),s=void 0===e.body||u(e.body,r),a=I(e,o);return n&&i&&s&&a;}(e,A));-1!==t&&e.splice(t,1);}function y(e){let{path:A,method:t,body:r,headers:o,query:n}=e;return{path:A,method:t,body:r,headers:o,query:n};}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(o,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(o,e));return;}let h=B(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(o,n);}function r(){}let n=y(e),i=f(this[o],n);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[o]);},u):t(this[o]),!0;}function D(e,A){let t=new URL(A);return!0===e||!!(Array.isArray(e)&&e.some(e=>u(e,t.host)));}t=oF("7fzYU").MockNotMatchedError,o=(r=oF("5cl5M")).kDispatches,n=r.kMockAgent,i=r.kOriginalDispatch,s=r.kOrigin,a=r.kGetNetConnect,c=(l=oF("jksEw")).buildURL,E=l.nop,g=r7.STATUS_CODES;let{types:{isPromise:S}}=on;e.exports={getResponseData:B,getMockDispatch:f,addMockDispatch:function(e,A,t){let r="function"==typeof t?{callback:t}:{...t},o={timesInvoked:0,times:1,persist:!1,consumed:!1,...A,pending:!0,data:{error:null,...r}};return e.push(o),o;},deleteMockDispatch:p,buildKey:y,generateKeyValues:m,matchValue:u,getResponse:b,getStatusText:w,mockDispatch:R,buildMockDispatch:function(){let e=this[n],A=this[s],r=this[i];return function(o,n){if(e.isMockActive)try{R.call(this,o,n);}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,o,n);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,o,n);};},checkNetConnect:D,buildMockOptions:function(e){if(e){let{agent:A,...t}=e;return t;}},getHeaderByName:Q};}),tC("7fzYU",function(e,A){var t=oF("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};}),tC("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()};}),tC("7SSeF",function(e,A){a(e.exports,"MockInterceptor",()=>t,e=>t=e);var t,r=oF("23wg0"),o=r.getResponseData,n=r.buildKey,i=r.addMockDispatch,s=oF("5cl5M"),l=s.kDispatches,c=s.kDispatchKey,E=s.kDefaultHeaders,g=s.kDefaultTrailers,u=s.kContentLength,h=s.kMockDispatch,Q=oF("ayJiG").InvalidArgumentError,C=oF("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]=n(e),this[l]=A,this[E]={},this[g]={},this[u]=!1;}createMockScopeDispatchData(e,A,t={}){let r=o(A),n=this[u]?{"content-length":r.length}:{};return{statusCode:e,data:A,headers:{...this[E],...n,...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:o="",responseOptions:n={}}=t;return this.validateReplyParameters(r,o,n),{...this.createMockScopeDispatchData(r,o,n)};}));let[A,t="",r={}]=[...arguments];this.validateReplyParameters(A,t,r);let o=this.createMockScopeDispatchData(A,t,r);return new I(i(this[l],this[c],o));}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;}};}),tC("jXCnf",function(e,A){var t=oF("eoU9M").kClients,r=oF("c0vcY"),o=oF("5cl5M"),n=o.kAgent,i=o.kMockAgentSet,s=o.kMockAgentGet,a=o.kDispatches,l=o.kIsMockActive,c=o.kNetConnect,E=o.kGetNetConnect,g=o.kOptions,u=o.kFactory,h=oF("1vOTv"),Q=oF("lqUE6"),C=oF("23wg0"),I=C.matchValue,d=C.buildMockOptions,B=oF("ayJiG"),f=B.InvalidArgumentError,p=B.UndiciError,y=oF("aqU6E"),m=oF("9U5KG"),w=oF("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[n]=A,this[t]=A[t],this[g]=d(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[n].dispatch(e,A);}async close(){await this[n].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());}};}),tC("lqUE6",function(e,A){var t=on.promisify,r=oF("kOCfr"),o=oF("23wg0").buildMockDispatch,n=oF("5cl5M"),i=n.kDispatches,s=n.kMockAgent,a=n.kClose,l=n.kOriginalClose,c=n.kOrigin,E=n.kOriginalDispatch,g=n.kConnected,u=oF("7SSeF").MockInterceptor,h=oF("eoU9M"),Q=oF("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=o.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;}),tC("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,o=A?this.singular:this.plural;return{...(A?t:r),count:e,noun:o};}};}),tC("9GRph",function(e,A){var t=oi.Transform,r=oQ.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:o,timesInvoked:n,origin:i})=>({Method:e,Origin:i,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:n,Remaining:r?1/0:o-n}));return this.logger.table(A),this.transform.read().toString();}};}),tC("5IibL",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h;function Q(e,A){return new l(e,A);}r=(t=oF("eoU9M")).kProxy,o=t.kClose,n=t.kDestroy,i=t.kInterceptors,s=oC.URL,a=oF("c0vcY"),l=oF("kOCfr"),c=oF("8Tdy2"),g=(E=oF("ayJiG")).InvalidArgumentError,u=E.RequestAbortedError,h=oF("ertK5");let C=Symbol(),I=Symbol(),d=Symbol(),B=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[B]=e.requestTls,this[f]=e.proxyTls,this[d]=e.headers||{};let t=new s(e.uri),{origin:o,port:n,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[d]["proxy-authorization"]="Basic "+e.auth:e.token?this[d]["proxy-authorization"]=e.token:c&&E&&(this[d]["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:o,port:n,path:t,signal:e.signal,headers:{...this[d],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[B]?this[B].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[o](){await this[C].close(),await this[I].close();}async[n](){await this[C].destroy(),await this[I].destroy();}};}),tC("dBMXf",function(e,A){var t=oF("eoU9M").kRetryHandlerDefaultRetry,r=oF("ayJiG").RequestRetryError,o=oF("jksEw"),n=o.isDisturbed,i=o.parseHeaders,s=o.parseRangeHeader;class a{constructor(e,A){let{retryOptions:r,...o}=e,{retry:n,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=o,this.abort=null,this.aborted=!1,this.retryOpts={retry:null!=n?n: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:o,code:n,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,n&&"UND_ERR_REQ_RETRY"!==n&&"UND_ERR_SOCKET"!==n&&!h.includes(n)||Array.isArray(Q)&&!Q.includes(s)||null!=o&&Array.isArray(u)&&!u.includes(o)||C>l){r(e);return;}let d=null!=i&&i["retry-after"];d&&(d=isNaN(d=+d)?function(e){let A=Date.now();return new Date(e).getTime()-A;}(d):1e3*d);let B=d>0?Math.min(d,E):Math.min(I*g**C,E);A.currentTimeout=B,setTimeout(()=>r(null),B);}onHeaders(e,A,t,o){let n=i(A);if(this.retryCount+=1,e>=300)return this.abort(new r("Request failed",e,{headers:n,count:this.retryCount})),!1;if(null!=this.resume){if(this.resume=null,206!==e)return!0;let A=s(n["content-range"]);if(!A)return this.abort(new r("Content-Range mismatch",e,{headers:n,count:this.retryCount})),!1;if(null!=this.etag&&this.etag!==n.etag)return this.abort(new r("ETag mismatch",e,{headers:n,count:this.retryCount})),!1;let{start:o,size:i,end:a=i}=A;return oo(this.start===o,"content-range mismatch"),oo(null==this.end||this.end===a,"content-range mismatch"),this.resume=t,!0;}if(null==this.end){if(206===e){let r=s(n["content-range"]);if(null==r)return this.handler.onHeaders(e,A,t,o);let{start:i,size:a,end:l=a}=r;oo(null!=i&&Number.isFinite(i)&&this.start!==i,"content-range mismatch"),oo(Number.isFinite(i)),oo(null!=l&&Number.isFinite(l)&&this.end!==l,"invalid content-length"),this.start=i,this.end=l;}if(null==this.end){let e=n["content-length"];this.end=null!=e?+e:null;}return oo(Number.isFinite(this.start)),oo(null==this.end||Number.isFinite(this.end),"invalid content-length"),this.resume=t,this.etag=null!=n.etag?n.etag:null,this.handler.onHeaders(e,A,t,o);}let a=new r("Request failed",e,{headers:n,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||n(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||n(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;}),tC("d0hJ7",function(e,A){var t,r;function o(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 n(){return globalThis[i];}let i=Symbol.for("undici.globalDispatcher.1");t=oF("ayJiG").InvalidArgumentError,r=oF("c0vcY"),void 0===n()&&o(new r()),e.exports={setGlobalDispatcher:o,getGlobalDispatcher:n};}),tC("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);}};}),tC("1iqfu",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,_,T,x,M,O,G,Y,J,P,H,V,q,W,j,X,$,z,Z,K,ee,eA,et,er,eo,en,ei,es,ea,el,ec,eE,eg,eu,eh,eQ;let eC;function eI(e,A="other"){var t,r,o,n,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(O(a)){null!==l&&(e.timingAllowPassed||(l=m({startTime:l.startTime}),c=""),l.endTime=S(),e.timingInfo=l,r=l,o=a,n=A,i=globalThis,s=c,(es>18||18===es&&ea>=2)&&performance.markResourceTiming(r,o.href,n,i,s));}}function ed(e,A,t,r){var o,n;if(r||(r=new K("The operation was aborted.","AbortError")),e.reject(r),null!=A.body&&ei(null===(o=A.body)||void 0===o?void 0:o.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===(n=i.body)||void 0===n?void 0:n.stream)&&i.body.stream.cancel(r).catch(e=>{if("ERR_INVALID_STATE"!==e.code)throw e;});}function eB({request:e,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseEndOfBody:o,processResponseConsumeBody:n,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}),d={controller:new eS(s),request:e,timingInfo:I,processRequestBodyChunkLength:A,processRequestEndOfBody:t,processResponse:r,processResponseConsumeBody:n,processResponseEndOfBody:o,taskDestination:g,crossOriginIsolatedCapability:u};return oo(!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(d).catch(e=>{d.controller.terminate(e);}),d.controller;}async function ef(e,A=!1){let t=e.request,r=null;if(t.localURLsOnly&&!M(f(t))&&(r=o("local URLs only")),y(t),"blocked"===C(t)&&(r=o("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?o('request mode cannot be "same-origin"'):"no-cors"===t.mode?"follow"!==t.redirect?o('redirect mode cannot be "follow" for "no-cors" request'):(t.responseTainting="opaque",await ep(e)):O(f(t))?(t.responseTainting="cors",await em(e)):o("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"):oo(!1));let n=0===r.status?r:r.internalResponse;if(0===n.urlList.length&&n.urlList.push(...t.urlList),t.timingAllowFailed||(r.timingAllowPassed=!0),"opaque"===r.type&&206===n.status&&n.rangeRequested&&!t.headers.contains("range")&&(r=n=o()),0!==r.status&&("HEAD"===t.method||"CONNECT"===t.method||X.includes(n.status))&&(n.body=null,e.controller.dump=!0),t.integrity){let A=A=>ey(e,o(A));if("opaque"===t.responseTainting||null==r.body){A(r.error);return;}await _(r.body,o=>{if(!u(o,t.integrity)){A("integrity mismatch");return;}r.body=q(o)[0],ey(e,r);},A);}else ey(e,r);}function ep(e){if(F(e)&&0===e.request.redirectCount)return Promise.resolve(n(e));let{request:A}=e,{protocol:t}=f(A);switch(t){case"about:":return Promise.resolve(o("about scheme is not supported"));case"blob:":{var r;eC||(eC=os.resolveObjectURL);let e=f(A);if(0!==e.search.length)return Promise.resolve(o("NetworkError when attempting to fetch resource."));let t=eC(e.toString());if("GET"!==A.method||!k(t))return Promise.resolve(o("invalid method"));let n=q(t),i=n[0],a=x(""+i.length),l=null!==(r=n[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(o("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(o("not implemented... yet..."));case"http:":case"https:":return em(e).catch(e=>o(e));default:return Promise.resolve(o("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?_(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,n=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 o("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)?o("blocked"):(j.has(r.status)&&("manual"!==A.redirect&&e.controller.connection.destroy(),"error"===A.redirect?t=o("unexpected redirect"):"manual"===A.redirect?t=r:"follow"===A.redirect?t=await function(e,A){let t;let r=e.request,n=A.internalResponse?A.internalResponse:A;try{if(t=B(n,f(r).hash),null==t)return A;}catch(e){return Promise.resolve(o(e));}if(!O(t))return Promise.resolve(o("URL scheme must be a HTTP(S) scheme"));if(20===r.redirectCount)return Promise.resolve(o("redirect count exceeded"));if(r.redirectCount+=1,"cors"===r.mode&&(t.username||t.password)&&!N(r,t))return Promise.resolve(o('cross origin not allowed for request mode "cors"'));if("cors"===r.responseTainting&&(t.username||t.password))return Promise.resolve(o('URL cannot contain credentials for request mode "cors"'));if(303!==n.status&&null!=r.body&&null==r.body.source)return Promise.resolve(o());if([301,302].includes(n.status)&&"POST"===r.method||303===n.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&&(oo(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,n),ef(e,!0);}(e,t):oo(!1)),t.timingInfo=n,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)),d(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")||(G(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 o("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?o():F(e)?n(e):o("proxy authentication required");if(421===a.status&&!t&&(null==r.body||null!=r.body.source)){if(F(e))return n(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((o,n)=>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 n=[],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()?n=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 n)if("x-gzip"===e||"gzip"===e)c.push(oI.createGunzip({flush:oI.constants.Z_SYNC_FLUSH,finishFlush:oI.constants.Z_SYNC_FLUSH}));else if("deflate"===e)c.push(oI.createInflate());else if("br"===e)c.push(oI.createBrotliDecompress());else{c.length=0;break;}return o({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),n(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:o,headersList:n,socket:i}=await r({body:E});if(i)l=s({status:t,statusText:o,headersList:n,socket:i});else{let r=A[Symbol.asyncIterator]();e.controller.next=()=>r.next(),l=s({status:t,statusText:o,headersList:n});}}catch(A){if("AbortError"===A.name)return e.controller.connection.destroy(),n(e,A);return o(A);}let g=()=>{e.controller.resume();},u=A=>{e.controller.abort(A);};eD||(eD=oF("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){T(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)),en(h)){e.controller.terminate();return;}if(!e.controller.controller.desiredSize)return;}},l;}r=(t=oF("apE6s")).Response,o=t.makeNetworkError,n=t.makeAppropriateNetworkError,i=t.filterResponse,s=t.makeResponse,a=oF("id7X2").Headers,c=(l=oF("7JXQn")).Request,E=l.makeRequest,u=(g=oF("3Ms3X")).bytesMatch,h=g.makePolicyContainer,Q=g.clonePolicyContainer,C=g.requestBadPort,I=g.TAOCheck,d=g.appendRequestOriginHeader,B=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,v=g.createDeferredPromise,k=g.isBlobLike,N=g.sameOrigin,F=g.isCancelled,L=g.isAborted,U=g.isErrorLike,_=g.fullyReadBody,T=g.readableStreamClose,x=g.isomorphicEncode,M=g.urlIsLocal,O=g.urlIsHttpHttpsScheme,G=g.urlHasHttpsScheme,J=(Y=oF("czloG")).kState,P=Y.kHeaders,H=Y.kGuard,V=Y.kRealm,q=oF("fOogJ").safelyExtractBody,j=(W=oF("cU8F4")).redirectStatusSet,X=W.nullBodyStatus,$=W.safeMethodsSet,z=W.requestBodyHeader,Z=W.subresourceSet,K=W.DOMException,ee=oF("eoU9M").kHeadersList,eA=oi.Readable,et=oi.pipeline,eo=(er=oF("jksEw")).addAbortListener,en=er.isErrored,ei=er.isReadable,es=er.nodeMajor,ea=er.nodeMinor,ec=(el=oF("9mEts")).dataURLProcessor,eE=el.serializeAMimeType,eg=oF("kJ4DQ").TransformStream,eu=oF("d0hJ7").getGlobalDispatcher,eh=oF("cvPqj").webidl,eQ=r7.STATUS_CODES;let eR=["GET","HEAD"],eD=globalThis.ReadableStream;class eS extends or{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,o;let n;eh.argumentLengthCheck(arguments,1,{header:"globalThis.fetch"});let i=v();try{n=new c(e,A);}catch(e){return i.reject(e),i.promise;}let s=n[J];if(n.signal.aborted)return ed(i,s,null,n.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 eo(n.signal,()=>{E=!0,oo(null!=g),g.abort(n.signal.reason),ed(i,s,l,n.signal.reason);}),g=eB({request:s,processResponseEndOfBody:e=>eI(e,"fetch"),processResponse:e=>E?Promise.resolve():e.aborted?(ed(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[P][ee]=e.headersList,l[P][H]="immutable",l[P][V]=null,i.resolve(l)),dispatcher:null!==(o=A.dispatcher)&&void 0!==o?o:eu()}),i.promise;},Fetch:eS,fetching:eB,finalizeAndReportTiming:eI};}),tC("apE6s",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,_;function T(e){if(e.internalResponse)return G(T(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 o(e.headersList):new o(),urlList:e.urlList?[...e.urlList]:[]};}function M(e){return x({type:"error",status:0,error:I(e)?e:Error(e?e+"":e),aborted:e&&"AbortError"===e.name});}function O(e,A){return A={internalResponse:e,...A},new Proxy(e,{get:(e,t)=>t in A?A[t]:e[t],set:(e,t,r)=>(oo(!(t in A)),e[t]=r,!0)});}function G(e,A){return"basic"===A?O(e,{type:"basic",headersList:e.headersList}):"cors"===A?O(e,{type:"cors",headersList:e.headersList}):"opaque"===A?O(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null}):"opaqueredirect"===A?O(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null}):void oo(!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&&n(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=oF("id7X2")).Headers,o=t.HeadersList,n=t.fill,s=(i=oF("fOogJ")).extractBody,a=i.cloneBody,l=i.mixinBody;let{kEnumerableProperty:J}=c=oF("jksEw");g=(E=oF("3Ms3X")).isValidReasonPhrase,u=E.isCancelled,h=E.isAborted,Q=E.isBlobLike,C=E.serializeJavascriptValueToJSONString,I=E.isErrorLike,d=E.isomorphicEncode,f=(B=oF("cU8F4")).redirectStatusSet,p=B.nullBodyStatus,y=B.DOMException,w=(m=oF("czloG")).kState,b=m.kHeaders,R=m.kGuard,D=m.kRealm,S=oF("cvPqj").webidl,v=oF("dVNsr").FormData,k=oF("e3MDk").getGlobalOrigin,N=oF("9mEts").URLSerializer,L=(F=oF("eoU9M")).kHeadersList,U=F.kConstruct,_=on.types;let P=globalThis.ReadableStream||oF("kJ4DQ").ReadableStream,H=new TextEncoder("utf-8");class V{static error(){let e={settingsObject:{}},A=new V();return A[w]=M(),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(H.encode(C(e))),r={settingsObject:{}},o=new V();return o[D]=r,o[b][R]="response",o[b][D]=r,Y(o,A,{body:t[0],type:"application/json"}),o;}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,k());}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 o=new V();o[D]=r,o[b][R]="immutable",o[b][D]=r,o[w].status=A;let n=d(N(t));return o[w].headersList.append("location",n),o;}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=T(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(P),S.converters.FormData=S.interfaceConverter(v),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}):_.isArrayBuffer(e)||_.isTypedArray(e)||_.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 P?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:M,makeResponse:x,makeAppropriateNetworkError:function(e,A=null){return oo(u(e)),h(e)?M(Object.assign(new y("The operation was aborted.","AbortError"),{cause:A})):M(Object.assign(new y("Request was cancelled."),{cause:A}));},filterResponse:G,Response:V,cloneResponse:T};}),tC("id7X2",function(e,A){var t,r,o,n,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[n])throw TypeError("immutable");return e[n],e[r].append(A,t);}r=(t=oF("eoU9M")).kHeadersList,o=t.kConstruct,n=oF("czloG").kGuard,i=oF("jksEw").kEnumerableProperty,a=(s=oF("3Ms3X")).makeIterator,l=s.isValidHeaderName,c=s.isValidHeaderValue,E=oF("cvPqj").webidl;let C=Symbol(),I=Symbol();class d{cookies=null;constructor(e){e instanceof d?(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 o;null!==(o=this.cookies)&&void 0!==o||(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 B{constructor(e){if(e===o)return;this[r]=new d(),this[n]="none",void 0!==e&&h(this,e=E.converters.HeadersInit(e));}append(e,A){return E.brandCheck(this,B),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,B),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[n])throw TypeError("immutable");this[n],this[r].contains(e)&&this[r].delete(e);}get(e){if(E.brandCheck(this,B),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,B),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,B),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[n])throw TypeError("immutable");this[n],this[r].set(e,A);}getSetCookie(){E.brandCheck(this,B);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,B),"immutable"===this[n]){let e=this[I];return a(()=>e,"Headers","value");}return a(()=>[...this[I].values()],"Headers","value");}entries(){if(E.brandCheck(this,B),"immutable"===this[n]){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,B),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,B),this[r];}}B.prototype[Symbol.iterator]=B.prototype.entries,Object.defineProperties(B.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:B,HeadersList:d};}),tC("7JXQn",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D,S,v,k,N,F,L,U,_,T,x,M,O,G,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=oF("fOogJ")).extractBody,o=t.mixinBody,n=t.cloneBody,s=(i=oF("id7X2")).Headers,a=i.fill,l=i.HeadersList;let{FinalizationRegistry:P}=oF("zN1di")();c=oF("jksEw"),g=(E=oF("3Ms3X")).isValidHTTPToken,u=E.sameOrigin,h=E.normalizeMethod,Q=E.makePolicyContainer,C=E.normalizeMethodRecord,d=(I=oF("cU8F4")).forbiddenMethodsSet,B=I.corsSafeListedMethodsSet,f=I.referrerPolicy,p=I.requestRedirect,y=I.requestMode,m=I.requestCredentials,w=I.requestCache,b=I.requestDuplex;let{kEnumerableProperty:H}=c;D=(R=oF("czloG")).kHeaders,S=R.kSignal,v=R.kState,k=R.kGuard,N=R.kRealm,F=oF("cvPqj").webidl,L=oF("e3MDk").getGlobalOrigin,U=oF("9mEts").URLSerializer,T=(_=oF("eoU9M")).kHeadersList,x=_.kConstruct,M=or.getMaxListeners,O=or.setMaxListeners,G=or.getEventListeners,Y=or.defaultMaxListeners;let V=globalThis.TransformStream,q=Symbol(),W=new P(({signal:e,abort:A})=>{e.removeEventListener("abort",A);});class j{constructor(e,A={}){var t,o,n;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 oo(e instanceof j),I=e[v],y=e[S];let m=this[N].settingsObject.origin,w="client";if((null===(o=I.window)||void 0===o?void 0:null===(t=o.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(d.has(e.toUpperCase()))throw TypeError(`'${e}' HTTP method is unsupported.`);e=null!==(n=C[e])&&void 0!==n?n:h(e),I.method=e;}void 0!==A.signal&&(y=A.signal),this[v]=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 M&&M(y)===Y?O(100,y):G(y,"abort").length>=Y&&O(100,y);}catch{}c.addAbortListener(y,A),W.register(R,{signal:y,abort:A});}}if(this[D]=new s(x),this[D][T]=I.headersList,this[D][k]="request",this[D][N]=this[N],"no-cors"===i){if(!B.has(I.method))throw TypeError(`'${I.method} is unsupported in no-cors mode.`);this[D][k]="request-no-cors";}if(b){let e=this[D][T],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[v].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 _=null;if(null!=A.body){let[e,t]=r(A.body,I.keepalive);_=e,t&&!this[D][T].contains("content-type")&&this[D].append("content-type",t);}let P=null!=_?_:U;if(null!=P&&null==P.source){if(null!=_&&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 H=P;if(null==_&&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=oF("kJ4DQ").TransformStream);let e=new V();U.stream.pipeThrough(e),H={source:U.source,length:U.length,stream:e.readable};}this[v].body=H;}get method(){return F.brandCheck(this,j),this[v].method;}get url(){return F.brandCheck(this,j),U(this[v].url);}get headers(){return F.brandCheck(this,j),this[D];}get destination(){return F.brandCheck(this,j),this[v].destination;}get referrer(){return(F.brandCheck(this,j),"no-referrer"===this[v].referrer)?"":"client"===this[v].referrer?"about:client":this[v].referrer.toString();}get referrerPolicy(){return F.brandCheck(this,j),this[v].referrerPolicy;}get mode(){return F.brandCheck(this,j),this[v].mode;}get credentials(){return this[v].credentials;}get cache(){return F.brandCheck(this,j),this[v].cache;}get redirect(){return F.brandCheck(this,j),this[v].redirect;}get integrity(){return F.brandCheck(this,j),this[v].integrity;}get keepalive(){return F.brandCheck(this,j),this[v].keepalive;}get isReloadNavigation(){return F.brandCheck(this,j),this[v].reloadNavigation;}get isHistoryNavigation(){return F.brandCheck(this,j),this[v].historyNavigation;}get signal(){return F.brandCheck(this,j),this[S];}get body(){return F.brandCheck(this,j),this[v].body?this[v].body.stream:null;}get bodyUsed(){return F.brandCheck(this,j),!!this[v].body&&c.isDisturbed(this[v].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=n(e.body)),A;}(this[v]),t=new j(x);t[v]=A,t[N]=this[N],t[D]=new s(x),t[D][T]=A.headersList,t[D][k]=this[D][k],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;}}o(j),Object.defineProperties(j.prototype,{method:H,url:H,headers:H,redirect:H,clone:H,signal:H,duplex:H,destination:H,body:H,bodyUsed:H,isHistoryNavigation:H,isReloadNavigation:H,keepalive:H,integrity:H,cache:H,credentials:H,attribute:H,referrerPolicy:H,referrer:H,mode:H,[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};}),tC("3wZ1B",function(e,A){var t=oF("bOzhO"),r=t.staticPropertyDescriptors,o=t.readOperation,n=t.fireAProgressEvent,i=oF("4fBcK"),s=i.kState,a=i.kError,l=i.kResult,c=i.kEvents,E=i.kAborted,g=oF("cvPqj").webidl,u=oF("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"}),o(this,e=g.converters.Blob(e,{strict:!1}),"ArrayBuffer");}readAsBinaryString(e){g.brandCheck(this,h),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsBinaryString"}),o(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)),o(this,e,"Text",A);}readAsDataURL(e){g.brandCheck(this,h),g.argumentLengthCheck(arguments,1,{header:"FileReader.readAsDataURL"}),o(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,n("abort",this),"loading"!==this[s]&&n("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};}),tC("bOzhO",function(e,A){var t,r,o,n,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 d(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=oF("4fBcK")).kState,o=t.kError,n=t.kResult,i=t.kAborted,s=t.kLastProgressEventFired,a=oF("5MWXI").ProgressEvent,l=oF("3ThCT").getEncoding,c=oF("cU8F4").DOMException,g=(E=oF("9mEts")).serializeAMimeType,u=E.parseMIMEType,h=on.types,Q=od.StringDecoder,C=os.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[n]=null,e[o]=null;let E=A.stream().getReader(),B=[],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))B.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 o=new Q("latin1");for(let t of e)A+=C(o.write(t));return A+=C(o.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=d(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),o=0;null!==r&&(A=r,o="UTF-8"===r?3:2);let n=t.slice(o);return new TextDecoder(A).decode(n);}(e,A);}case"ArrayBuffer":return d(e).buffer;case"BinaryString":{let A="",t=new Q("latin1");for(let r of e)A+=t.write(r);return A+=t.end();}}}(B,t,A.type,a);if(e[i])return;e[n]=r,I("load",e);}catch(A){e[o]=A,I("error",e);}"loading"!==e[r]&&I("loadend",e);});break;}}catch(A){if(e[i])return;queueMicrotask(()=>{e[r]="done",e[o]=A,I("error",e),"loading"!==e[r]&&I("loadend",e);});break;}})();},fireAProgressEvent:I};}),tC("4fBcK",function(e,A){e.exports={kState:Symbol(),kResult:Symbol(),kError:Symbol(),kLastProgressEventFired:Symbol(),kEvents:Symbol(),kAborted:Symbol()};}),tC("5MWXI",function(e,A){var t=oF("cvPqj").webidl;let r=Symbol();class o 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,o),this[r].lengthComputable;}get loaded(){return t.brandCheck(this,o),this[r].loaded;}get total(){return t.brandCheck(this,o),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:o};}),tC("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";}}};}),tC("8wMCO",function(e,A){var t=oF("9lpql").kConstruct,r=oF("4t0Dy").Cache,o=oF("cvPqj").webidl,n=oF("jksEw").kEnumerableProperty;class i{#e=new Map();constructor(){arguments[0]!==t&&o.illegalConstructor();}async match(e,A={}){if(o.brandCheck(this,i),o.argumentLengthCheck(arguments,1,{header:"CacheStorage.match"}),e=o.converters.RequestInfo(e),null!=(A=o.converters.MultiCacheQueryOptions(A)).cacheName){if(this.#e.has(A.cacheName)){let o=new r(t,this.#e.get(A.cacheName));return await o.match(e,A);}}else for(let o of this.#e.values()){let n=new r(t,o),i=await n.match(e,A);if(void 0!==i)return i;}}async has(e){return o.brandCheck(this,i),o.argumentLengthCheck(arguments,1,{header:"CacheStorage.has"}),e=o.converters.DOMString(e),this.#e.has(e);}async open(e){if(o.brandCheck(this,i),o.argumentLengthCheck(arguments,1,{header:"CacheStorage.open"}),e=o.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 o.brandCheck(this,i),o.argumentLengthCheck(arguments,1,{header:"CacheStorage.delete"}),e=o.converters.DOMString(e),this.#e.delete(e);}async keys(){return o.brandCheck(this,i),[...this.#e.keys()];}}Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:!0},match:n,has:n,open:n,delete:n,keys:n}),e.exports={CacheStorage:i};}),tC("9lpql",function(e,A){e.exports={kConstruct:oF("eoU9M").kConstruct};}),tC("4t0Dy",function(e,A){var t=oF("9lpql").kConstruct,r=oF("4rb91"),o=r.urlEquals,n=r.fieldValues,i=oF("jksEw"),s=i.kEnumerableProperty,a=i.isDisturbed,l=oF("eoU9M").kHeadersList,c=oF("cvPqj").webidl,E=oF("apE6s"),g=E.Response,u=E.cloneResponse,h=oF("7JXQn").Request,Q=oF("czloG"),C=Q.kState,I=Q.kHeaders,d=Q.kGuard,B=Q.kRealm,f=oF("1iqfu").fetching,p=oF("3Ms3X"),y=p.urlIsHttpHttpsScheme,m=p.createDeferredPromise,w=p.readAllBytes,b=oF("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 o=[];for(let e of r){var n,i;let A=new g(null!==(i=null===(n=e.body)||void 0===n?void 0:n.source)&&void 0!==i?i:null),t=A[C].body;A[C]=e,A[C].body=t,A[I][l]=e.headersList,A[I][d]="immutable",o.push(A);}return Object.freeze(o);}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 o of e){let e=new h(o)[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 n(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 o=Promise.all(A),i=await o,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 n(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 o=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:o};s.push(l);let E=await i.promise;null!=o.body&&(o.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 oo("string"==typeof e),r=new h(e)[C];let o=[],n={type:"delete",request:r,options:A};o.push(n);let i=m(),s=null;try{t=_assertClassBrand(_R_brand,this,_r).call(this,o);}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(),o=[];if(void 0===e)for(let e of _classPrivateFieldGet(_A,this))o.push(e[0]);else for(let e of _assertClassBrand(_R_brand,this,_t).call(this,t,A))o.push(e[0]);return queueMicrotask(()=>{let e=[];for(let A of o){let t=new h("https://a");t[C]=A,t[I][l]=A.headersList,t[I][d]="immutable",t[B]=A.client,e.push(t);}r.resolve(Object.freeze(e));}),r.promise;}}function _r(e){let A=_classPrivateFieldGet(_A,this),t=[...A],r=[],o=[];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);oo(-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 o=t.request;if(!y(o.url))throw c.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"});if("GET"!==o.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);oo(-1!==e),A.splice(e,1);}A.push([t.request,t.response]),r.push([t.request,t.response]);}o.push([t.request,t.response]);}return o;}catch(e){throw _classPrivateFieldGet(_A,this).length=0,_classPrivateFieldSet(_A,this,t),e;}}function _t(e,A,t){let r=[];for(let o of null!=t?t:_classPrivateFieldGet(_A,this)){let[t,n]=o;_assertClassBrand(_R_brand,this,_o).call(this,e,t,n,A)&&r.push(o);}return r;}function _o(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=""),!o(i,s,!0))return!1;if(null==t||(null==r?void 0:r.ignoreVary)||!t.headersList.contains("vary"))return!0;for(let r of n(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};}),tC("4rb91",function(e,A){var t,r;t=oF("9mEts").URLSerializer,r=oF("3Ms3X").isValidHeaderName,e.exports={urlEquals:function(e,A,r=!1){return t(e,r)===t(A,r);},fieldValues:function(e){oo(null!==e);let A=[];for(let t of e.split(",")){if((t=t.trim()).length)r(t)&&A.push(t);}return A;}};}),tC("tTPZ7",function(e,A){var t,r,o,n,i,s;function a(e,A){i.argumentLengthCheck(arguments,2,{header:"setCookie"}),i.brandCheck(e,s,{strict:!1}),A=i.converters.Cookie(A),o(A)&&e.append("Set-Cookie",o(A));}t=oF("fVb4Y").parseSetCookie,o=(r=oF("iW1JM")).stringify,n=r.getHeadersList,i=oF("cvPqj").webidl,s=oF("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=n(e).cookies;return A?A.map(e=>t(Array.isArray(e)?e[1]:e)):[];},setCookie:a};}),tC("fVb4Y",function(e,A){var t,r,o,n,i;function s(e,A={}){if(0===e.length)return A;oo(";"===e[0]);let t="";(e=e.slice(1)).includes(";")?(t=i(";",e,{position:0}),e=e.slice(t.length)):(t=e,e="");let r="",n="";if(t.includes("=")){let e={position:0};r=i("=",t,e),n=t.slice(e.position+1);}else r=t;if(r=r.trim(),(n=n.trim()).length>o)return s(e,A);let a=r.toLowerCase();if("expires"===a){let e=new Date(n);A.expires=e;}else if("max-age"===a){let t=n.charCodeAt(0);if((t<48||t>57)&&"-"!==n[0]||!/^\d+$/.test(n))return s(e,A);let r=+n;A.maxAge=r;}else if("domain"===a){let e=n;"."===e[0]&&(e=e.slice(1)),e=e.toLowerCase(),A.domain=e;}else if("path"===a){let e="";e=0===n.length||"/"!==n[0]?"/":n,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=n.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}=${n}`);}return s(e,A);}r=(t=oF("epPfw")).maxNameValuePairSize,o=t.maxAttributeValueSize,n=oF("iW1JM").isCTLExcludingHtab,i=oF("9mEts").collectASequenceOfCodePointsFast,e.exports={parseSetCookie:function(e){if(n(e))return null;let A="",t="",o="",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};o=i("=",A,e),a=A.slice(e.position+1);}else a=A;return(o=o.trim(),a=a.trim(),o.length+a.length>r)?null:{name:o,value:a,...s(t)};},parseUnparsedAttributes:s};}),tC("epPfw",function(e,A){e.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096};}),tC("iW1JM",function(e,A){var t;let r;t=oF("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()],o=e.getUTCFullYear(),n=e.getUTCHours().toString().padStart(2,"0"),i=e.getUTCMinutes().toString().padStart(2,"0"),s=e.getUTCSeconds().toString().padStart(2,"0");return`${A}, ${t} ${r} ${o} ${n}:${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||oo(r=Object.getOwnPropertySymbols(e).find(e=>"headers list"===e.description),"Headers cannot be parsed");let A=e[r];return oo(A),A;}};}),tC("jEeVP",function(e,A){var t=oF("cvPqj").webidl,r=oF("cU8F4").DOMException,o=oF("9mEts").URLSerializer,n=oF("e3MDk").getGlobalOrigin,i=oF("fqIZ2"),s=i.staticPropertyDescriptors,a=i.states,l=i.opcodes,c=i.emptyBuffer,E=oF("8Wsgy"),g=E.kWebSocketURL,u=E.kReadyState,h=E.kController,Q=E.kBinaryType,C=E.kResponse,I=E.kSentClose,d=E.kByteParser,B=oF("f5KJZ"),f=B.isEstablished,p=B.isClosing,y=B.isValidSubprotocol,m=B.failWebsocketConnection,w=B.fireEvent,b=oF("9cqtz").establishWebSocketConnection,R=oF("31htQ").WebsocketFrameSend,D=oF("bwxUX").ByteParser,S=oF("jksEw"),v=S.kEnumerableProperty,k=S.isBlobLike,N=oF("d0hJ7").getGlobalDispatcher,F=on.types;let L=!1;var _n=/*#__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 o;(super(),_classPrivateMethodInitSpec(this,_U_brand),_classPrivateFieldInitSpec(this,_n,{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=n();try{o=new URL(_e,s);}catch(e){throw new r(e,"SyntaxError");}if("http:"===o.protocol?o.protocol="ws:":"https:"===o.protocol&&(o.protocol="wss:"),"ws:"!==o.protocol&&"wss:"!==o.protocol)throw new r("Expected a ws: or wss: protocol, got "+o.protocol,"SyntaxError");if(o.hash||o.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(o.href),this[h]=b(o,_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 o=0;if(void 0!==A&&(o=Buffer.byteLength(A))>123)throw new r("Reason must be less than 123 bytes; received "+o,"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+o),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(k(e)){let t=new R();e.arrayBuffer().then(e=>{let r=Buffer.from(e);t.frameData=r;let o=t.createFrame(l.BINARY);_classPrivateFieldSet(_i,this,_classPrivateFieldGet(_i,this)+r.byteLength),A.write(o,()=>{_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),o(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(_n,this).open;}set onopen(e){t.brandCheck(this,U),_classPrivateFieldGet(_n,this).open&&this.removeEventListener("open",_classPrivateFieldGet(_n,this).open),"function"==typeof e?(_classPrivateFieldGet(_n,this).open=e,this.addEventListener("open",e)):_classPrivateFieldGet(_n,this).open=null;}get onerror(){return t.brandCheck(this,U),_classPrivateFieldGet(_n,this).error;}set onerror(e){t.brandCheck(this,U),_classPrivateFieldGet(_n,this).error&&this.removeEventListener("error",_classPrivateFieldGet(_n,this).error),"function"==typeof e?(_classPrivateFieldGet(_n,this).error=e,this.addEventListener("error",e)):_classPrivateFieldGet(_n,this).error=null;}get onclose(){return t.brandCheck(this,U),_classPrivateFieldGet(_n,this).close;}set onclose(e){t.brandCheck(this,U),_classPrivateFieldGet(_n,this).close&&this.removeEventListener("close",_classPrivateFieldGet(_n,this).close),"function"==typeof e?(_classPrivateFieldGet(_n,this).close=e,this.addEventListener("close",e)):_classPrivateFieldGet(_n,this).close=null;}get onmessage(){return t.brandCheck(this,U),_classPrivateFieldGet(_n,this).message;}set onmessage(e){t.brandCheck(this,U),_classPrivateFieldGet(_n,this).message&&this.removeEventListener("message",_classPrivateFieldGet(_n,this).message),"function"==typeof e?(_classPrivateFieldGet(_n,this).message=e,this.addEventListener("message",e)):_classPrivateFieldGet(_n,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[d]=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:v,readyState:v,bufferedAmount:v,onopen:v,onerror:v,onclose:v,close:v,onmessage:v,binaryType:v,send:v,extensions:v,protocol:v,[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(k(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};}),tC("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};}),tC("8Wsgy",function(e,A){e.exports={kWebSocketURL:Symbol(),kReadyState:Symbol(),kController:Symbol(),kResponse:Symbol(),kBinaryType:Symbol(),kSentClose:Symbol(),kReceivedClose:Symbol(),kByteParser:Symbol()};}),tC("f5KJZ",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u;function h(e,A,t=Event,r){let o=new t(e,r);A.dispatchEvent(o);}function Q(e,A){let{[o]:t,[n]: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=oF("8Wsgy")).kReadyState,o=t.kController,n=t.kResponse,i=t.kBinaryType,s=t.kWebSocketURL,l=(a=oF("fqIZ2")).states,c=a.opcodes,g=(E=oF("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 o;if(e[r]===l.OPEN){if(A===c.TEXT)try{o=new TextDecoder("utf-8",{fatal:!0}).decode(t);}catch{Q(e,"Received invalid UTF-8 in text frame.");return;}else A===c.BINARY&&(o="blob"===e[i]?new Blob([t]):new Uint8Array(t).buffer);h("message",e,g,{origin:e[s].origin,data:o});}}};}),tC("krU0V",function(e,A){var t=oF("cvPqj").webidl,r=oF("jksEw").kEnumerableProperty,o=ou.MessagePort;class n 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,n),this.#c.data;}get origin(){return t.brandCheck(this,n),this.#c.origin;}get lastEventId(){return t.brandCheck(this,n),this.#c.lastEventId;}get source(){return t.brandCheck(this,n),this.#c.source;}get ports(){return t.brandCheck(this,n),Object.isFrozen(this.#c.ports)||Object.freeze(this.#c.ports),this.#c.ports;}initMessageEvent(e,A=!1,r=!1,o=null,i="",s="",a=null,l=[]){return t.brandCheck(this,n),t.argumentLengthCheck(arguments,1,{header:"MessageEvent.initMessageEvent"}),new n(e,{bubbles:A,cancelable:r,data:o,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(n.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(o),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:n,CloseEvent:i,ErrorEvent:s};}),tC("9cqtz",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h,Q,C,I,d,B;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="",o=e[l].closingInfo;if(o){var i;t=null!==(i=o.code)&&void 0!==i?i:1005,r=o.reason;}else e[a]||(t=1006);e[s]=n.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]=n.CLOSING,w.socketError.hasSubscribers&&w.socketError.publish(e),this.destroy();}t=oF("5tMx2"),o=(r=oF("fqIZ2")).uid,n=r.states,s=(i=oF("8Wsgy")).kReadyState,a=i.kSentClose,l=i.kByteParser,c=i.kReceivedClose,g=(E=oF("f5KJZ")).fireEvent,u=E.failWebsocketConnection,h=oF("krU0V").CloseEvent,Q=oF("7JXQn").makeRequest,C=oF("1iqfu").fetching,I=oF("id7X2").Headers,d=oF("d0hJ7").getGlobalDispatcher,B=oF("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,n){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(n.headers){let e=new I(n.headers)[B];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=n.dispatcher)&&void 0!==i?i:d(),processResponse(e){var n,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===(n=e.headersList.get("Upgrade"))||void 0===n?void 0:n.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+o).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);}});}};}),tC("31htQ",function(e,A){let t;var r=oF("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 o=null!==(t=null===(A=this.frameData)||void 0===A?void 0:A.byteLength)&&void 0!==t?t:0,n=o,i=6;o>r?(i+=8,n=127):o>125&&(i+=2,n=126);let s=Buffer.allocUnsafe(o+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]=n,126===n?s.writeUInt16BE(o,2):127===n&&(s[2]=s[3]=0,s.writeUIntBE(o,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)&&o>125){C(this.ws,"Payload length for control frame exceeded 125 bytes.");return;}if(this.#h.opcode===i.CLOSE){if(1===o){C(this.ws,"Received close frame with a 1-byte body.");return;}let e=this.consume(o);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 d(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(o);if(!this.ws[u]){let e=new d(A);this.ws[g].socket.write(e.createFrame(i.PONG)),B.ping.hasSubscribers&&B.ping.publish({payload:A});}if(this.#u=n.INFO,this.#g>0)continue;e();return;}else if(this.#h.opcode===i.PONG){let A=this.consume(o);if(B.pong.hasSubscribers&&B.pong.publish({payload:A}),this.#g>0)continue;e();return;}}else if(this.#u===n.PAYLOADLENGTH_16){if(this.#g<2)return e();let A=this.consume(2);this.#h.payloadLength=A.readUInt16BE(0),this.#u=n.READ_DATA;}else if(this.#u===n.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=n.READ_DATA;}else if(this.#u===n.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=n.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:o}=r;if(o+t===e){A.set(this.#E.shift(),t);break;}if(o+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};}),tC("1bb8A",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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");});}};}),tC("1mzjm",function(e,A){var t=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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:o,writeFile:n}=r5.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,r5.constants.R_OK|r5.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?n:o)(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(r8.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:o}=e,n=Object.assign(Object.assign({},r&&{colspan:r}),o&&{rowspan:o});return this.wrap(A?"th":"td",t,n);}).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:o}=t||{},n=Object.assign(Object.assign({},r&&{width:r}),o&&{height:o}),i=this.wrap("img",null,Object.assign({src:e,alt:A},n));return this.addRaw(i).addEOL();}addHeading(e,A){let t="h"+A,r=["h1","h2","h3","h4","h5","h6"].includes(t)?t:"h1",o=this.wrap(r,e);return this.addRaw(o).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;}),tC("31rWp",function(e,A){var t,r,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.toPlatformPath=e.exports.toWin32Path=e.exports.toPosixPath=void 0;let n=o(r3);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,n.sep);};}),tC("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;ro),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),r5.promises;let{access:t,appendFile:r,chmod:o,chown:n,copyFile:i,lchmod:s,lchown:l,link:c,lstat:E,mkdir:g,mkdtemp:u,open:h,readdir:Q,readFile:C,readlink:I,realpath:d,rename:B,rmdir:f,stat:p,symlink:y,truncate:m,unlink:w,utimes:b,writeFile:R}=r5.promises,D="rm"in r5.promises?r5.promises.rm:(0,on.promisify)(r5.unlink);}),tC("ibhuk",function(e,A){async function t(e){try{return await(0,oB.promises).access(e),!0;}catch{return!1;}}a(e.exports,"pathExists",()=>t);}),tC("sOzdu",function(e,A){e.exports=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&");};}),tC("j5MHF",function(e,A){var t=r3.resolve(__dirname,"../../node_modules/.pnpm/numerous@1.0.3/node_modules/numerous/lib");(function(){var A,r;function o(e,t,r){if(n(e),"object"!=typeof r)throw Error("List of variants should be specified as an object");var o=A[e](t);return void 0!==r[o]?r[o]:null;}function n(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 n(e),{pluralize:function(A,t){return o(e,A,t);}};},addLocale:function(e,t){A[e]=t;},pluralize:o},void 0!==e.exports?e.exports=r:this.numerous=r;}).call(e.exports);}),tC("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=oF("5FRs7"),o=oF("3Zbea");let n=[["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(o&&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 n.some(function(e){let A=e[0],o=e[1],n=Math.floor(t/o);if(t-=n*o,r.push([A,n]),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 o=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,o[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};}),tC("5FRs7",function(e,A){e.exports=oF("j5MHF");}),tC("3Zbea",function(e,A){e.exports=!!("undefined"!=typeof process&&process.versions&&process.versions.node);}),tC("51NgG",function(e,A){var t=oF("a4A3m"),r=oF("gzZHc"),o=oF("8wL3J"),n=oF("9kOAd"),i=oF("dJ3EL"),s=oF("2owFL"),a=oF("kBdlj"),l=oF("bFSJ9"),c=oF("bdHiQ"),E=oF("gWZ4x"),g=oF("dLri9"),u=oF("2tsX7"),h=oF("3lzLT"),Q=oF("fYuCK"),C=oF("6LnSq"),I=oF("dZkNJ"),d=oF("2Qi5H"),B=oF("fJeYC"),f=oF("j1k1X"),p=oF("ccAMb"),y=oF("4qy3a"),m=oF("3ovyF"),w=oF("laDmN"),b=oF("3cxkY"),R=oF("aTQrN"),D=oF("5kn9j"),S=oF("8YrRN"),v=oF("fNiVh"),k=oF("gTfXP"),N=oF("kPBDZ"),F=oF("cVl8o"),L=oF("j0UMd"),U=oF("kgJyO"),_=oF("k8woQ"),T=oF("cQA7W"),x=oF("j3dZX"),M=oF("bENPT"),O=oF("iehU8"),G=oF("5NOPx"),Y=oF("fdN0I"),J=oF("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:d,sort:B,rsort:f,gt:p,lt:y,eq:m,neq:w,gte:b,lte:R,cmp:D,coerce:S,Comparator:v,Range:k,satisfies:N,toComparators:F,maxSatisfying:L,minSatisfying:U,minVersion:_,validRange:T,outside:x,gtr:M,ltr:O,intersects:G,simplifyRange:Y,subset:J,SemVer:o,re:t.re,src:t.src,tokens:t.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:n.compareIdentifiers,rcompareIdentifiers:n.rcompareIdentifiers};}),tC("a4A3m",function(e,A){var t=oF("gzZHc"),r=t.MAX_SAFE_COMPONENT_LENGTH,o=t.MAX_SAFE_BUILD_LENGTH,n=t.MAX_LENGTH,i=oF("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",n],[g,o]],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),o=E++;i(e,o,A),c[e]=o,l[o]=A,s[o]=new RegExp(A,t?"g":void 0),a[o]=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*$");}),tC("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};}),tC("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;}),tC("8wL3J",function(e,A){var t=oF("cg13c"),r=oF("gzZHc"),o=r.MAX_LENGTH,n=r.MAX_SAFE_INTEGER,i=oF("a4A3m"),s=i.safeRe,a=i.t,l=oF("5bRb1"),c=oF("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>o)throw TypeError(`version is longer than ${o} 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>n||this.major<0)throw TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw TypeError("Invalid minor version");if(this.patch>n||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;}),tC("5bRb1",function(e,A){let t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r;}),tC("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)};}),tC("dJ3EL",function(e,A){var t=oF("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;}};}),tC("2owFL",function(e,A){var t=oF("dJ3EL");e.exports=(e,A)=>{let r=t(e,A);return r?r.version:null;};}),tC("kBdlj",function(e,A){var t=oF("dJ3EL");e.exports=(e,A)=>{let r=t(e.trim().replace(/^[=v]+/,""),A);return r?r.version:null;};}),tC("bFSJ9",function(e,A){var t=oF("8wL3J");e.exports=(e,A,r,o,n)=>{"string"==typeof r&&(n=o,o=r,r=void 0);try{return new t(e instanceof t?e.version:e,r).inc(A,o,n).version;}catch(e){return null;}};}),tC("bdHiQ",function(e,A){var t=oF("dJ3EL");e.exports=(e,A)=>{let r=t(e,null,!0),o=t(A,null,!0),n=r.compare(o);if(0===n)return null;let i=n>0,s=i?r:o,a=i?o: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!==o.major?c+"major":r.minor!==o.minor?c+"minor":r.patch!==o.patch?c+"patch":"prerelease";};}),tC("gWZ4x",function(e,A){var t=oF("8wL3J");e.exports=(e,A)=>new t(e,A).major;}),tC("dLri9",function(e,A){var t=oF("8wL3J");e.exports=(e,A)=>new t(e,A).minor;}),tC("2tsX7",function(e,A){var t=oF("8wL3J");e.exports=(e,A)=>new t(e,A).patch;}),tC("3lzLT",function(e,A){var t=oF("dJ3EL");e.exports=(e,A)=>{let r=t(e,A);return r&&r.prerelease.length?r.prerelease:null;};}),tC("fYuCK",function(e,A){var t=oF("8wL3J");e.exports=(e,A,r)=>new t(e,r).compare(new t(A,r));}),tC("6LnSq",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>t(A,e,r);}),tC("dZkNJ",function(e,A){var t=oF("fYuCK");e.exports=(e,A)=>t(e,A,!0);}),tC("2Qi5H",function(e,A){var t=oF("8wL3J");e.exports=(e,A,r)=>{let o=new t(e,r),n=new t(A,r);return o.compare(n)||o.compareBuild(n);};}),tC("fJeYC",function(e,A){var t=oF("2Qi5H");e.exports=(e,A)=>e.sort((e,r)=>t(e,r,A));}),tC("j1k1X",function(e,A){var t=oF("2Qi5H");e.exports=(e,A)=>e.sort((e,r)=>t(r,e,A));}),tC("ccAMb",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>t(e,A,r)>0;}),tC("4qy3a",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>0>t(e,A,r);}),tC("3ovyF",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>0===t(e,A,r);}),tC("laDmN",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>0!==t(e,A,r);}),tC("3cxkY",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>t(e,A,r)>=0;}),tC("aTQrN",function(e,A){var t=oF("fYuCK");e.exports=(e,A,r)=>0>=t(e,A,r);}),tC("5kn9j",function(e,A){var t=oF("3ovyF"),r=oF("laDmN"),o=oF("ccAMb"),n=oF("3cxkY"),i=oF("4qy3a"),s=oF("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 o(e,a,l);case">=":return n(e,a,l);case"<":return i(e,a,l);case"<=":return s(e,a,l);default:throw TypeError("Invalid operator: "+A);}};}),tC("8YrRN",function(e,A){var t=oF("8wL3J"),r=oF("dJ3EL"),o=oF("a4A3m"),n=o.safeRe,i=o.t;e.exports=(e,A)=>{if(e instanceof t)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;let o=null;if((A=A||{}).rtl){let t;let r=A.includePrerelease?n[i.COERCERTLFULL]:n[i.COERCERTL];for(;(t=r.exec(e))&&(!o||o.index+o[0].length!==e.length);)o&&t.index+t[0].length===o.index+o[0].length||(o=t),r.lastIndex=t.index+t[1].length+t[2].length;r.lastIndex=-1;}else o=e.match(A.includePrerelease?n[i.COERCEFULL]:n[i.COERCE]);if(null===o)return null;let s=o[2],a=o[3]||"0",l=o[4]||"0",c=A.includePrerelease&&o[5]?"-"+o[5]:"",E=A.includePrerelease&&o[6]?"+"+o[6]:"";return r(`${s}.${a}.${l}${c}${E}`,A);};}),tC("fNiVh",function(e,A){let t=Symbol();class r{static get ANY(){return t;}constructor(e,A){if(A=o(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=o(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 o=oF("5bRb1"),n=oF("a4A3m"),i=n.safeRe,s=n.t,a=oF("5kn9j"),l=oF("cg13c"),c=oF("8wL3J"),E=oF("gTfXP");}),tC("gTfXP",function(e,A){class t{constructor(e,A){if(A=o(A),e instanceof t){if(!!A.loose===e.loose&&!!A.includePrerelease===e.includePrerelease)return e;return new t(e.raw,A);}if(e instanceof n)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&&d(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 o=this.options.loose,s=o?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];i("hyphen replace",e=e.replace(s,k(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=>v(e,this.options));o&&(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 n(e,this.options))){if(I(e))return[e];h.set(e.value,e);}h.size>1&&h.has("")&&h.delete("");let d=[...h.values()];return r.set(A,d),d;}intersects(e,A){if(!(e instanceof t))throw TypeError("a Range is required");return this.set.some(t=>B(t,A)&&e.set.some(e=>B(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,d=e=>""===e.value,B=(e,A)=>{let t=!0,r=e.slice(),o=r.pop();for(;t&&r.length;)t=r.every(e=>o.intersects(e,A)),o=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,o,n)=>{let s;return i("tilde",e,A,t,r,o,n),p(t)?s="":p(r)?s=`>=${t}.0.0 <${+t+1}.0.0-0`:p(o)?s=`>=${t}.${r}.0 <${t}.${+r+1}.0-0`:n?(i("replaceTilde pr",n),s=`>=${t}.${r}.${o}-${n} <${t}.${+r+1}.0-0`):s=`>=${t}.${r}.${o} <${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,o,n,s)=>{let a;return i("caret",e,A,t,o,n,s),p(t)?a="":p(o)?a=`>=${t}.0.0${r} <${+t+1}.0.0-0`:p(n)?a="0"===t?`>=${t}.${o}.0${r} <${t}.${+o+1}.0-0`:`>=${t}.${o}.0${r} <${+t+1}.0.0-0`:s?(i("replaceCaret pr",s),a="0"===t?"0"===o?`>=${t}.${o}.${n}-${s} <${t}.${o}.${+n+1}-0`:`>=${t}.${o}.${n}-${s} <${t}.${+o+1}.0-0`:`>=${t}.${o}.${n}-${s} <${+t+1}.0.0-0`):(i("no pr"),a="0"===t?"0"===o?`>=${t}.${o}.${n}${r} <${t}.${o}.${+n+1}-0`:`>=${t}.${o}.${n}${r} <${t}.${+o+1}.0-0`:`>=${t}.${o}.${n} <${+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,o,n,s,a)=>{i("xRange",e,t,r,o,n,s,a);let l=p(o),c=l||p(n),E=c||p(s);return"="===r&&E&&(r=""),a=A.includePrerelease?"-0":"",l?t=">"===r||"<"===r?"<0.0.0-0":"*":r&&E?(c&&(n=0),s=0,">"===r?(r=">=",c?(o=+o+1,n=0):n=+n+1,s=0):"<="===r&&(r="<",c?o=+o+1:n=+n+1),"<"===r&&(a="-0"),t=`${r+o}.${n}.${s}${a}`):c?t=`>=${o}.0.0${a} <${+o+1}.0.0-0`:E&&(t=`>=${o}.${n}.0${a} <${o}.${+n+1}.0-0`),i("xRange return",t),t;});},S=(e,A)=>(i("replaceStars",e,A),e.trim().replace(l[c.STAR],"")),v=(e,A)=>(i("replaceGTE0",e,A),e.trim().replace(l[A.includePrerelease?c.GTE0PRE:c.GTE0],"")),k=e=>(A,t,r,o,n,i,s,a,l,c,E,g)=>(t=p(r)?"":p(o)?`>=${r}.0.0${e?"-0":""}`:p(n)?`>=${r}.${o}.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;};}),tC("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;}};}),tC("kPBDZ",function(e,A){var t=oF("gTfXP");e.exports=(e,A,r)=>{try{A=new t(A,r);}catch(e){return!1;}return A.test(e);};}),tC("cVl8o",function(e,A){var t=oF("gTfXP");e.exports=(e,A)=>new t(e,A).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "));}),tC("j0UMd",function(e,A){var t=oF("8wL3J"),r=oF("gTfXP");e.exports=(e,A,o)=>{let n=null,i=null,s=null;try{s=new r(A,o);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!n||-1===i.compare(e))&&(i=new t(n=e,o));}),n;};}),tC("kgJyO",function(e,A){var t=oF("8wL3J"),r=oF("gTfXP");e.exports=(e,A,o)=>{let n=null,i=null,s=null;try{s=new r(A,o);}catch(e){return null;}return e.forEach(e=>{s.test(e)&&(!n||1===i.compare(e))&&(i=new t(n=e,o));}),n;};}),tC("k8woQ",function(e,A){var t=oF("8wL3J"),r=oF("gTfXP"),o=oF("ccAMb");e.exports=(e,A)=>{e=new r(e,A);let n=new t("0.0.0");if(e.test(n)||(n=new t("0.0.0-0"),e.test(n)))return n;n=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||o(A,i))&&(i=A);break;case"<":case"<=":break;default:throw Error("Unexpected operation: "+e.operator);}}),i&&(!n||o(n,i))&&(n=i);}return n&&e.test(n)?n:null;};}),tC("cQA7W",function(e,A){var t=oF("gTfXP");e.exports=(e,A)=>{try{return new t(e,A).range||"*";}catch(e){return null;}};}),tC("j3dZX",function(e,A){var t=oF("8wL3J"),r=oF("fNiVh");let{ANY:o}=r;var n=oF("gTfXP"),i=oF("kPBDZ"),s=oF("ccAMb"),a=oF("4qy3a"),l=oF("aTQrN"),c=oF("3cxkY");e.exports=(e,A,E,g)=>{let u,h,Q,C,I;switch(e=new t(e,g),A=new n(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===o&&(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;};}),tC("bENPT",function(e,A){var t=oF("j3dZX");e.exports=(e,A,r)=>t(e,A,">",r);}),tC("iehU8",function(e,A){var t=oF("j3dZX");e.exports=(e,A,r)=>t(e,A,"<",r);}),tC("5NOPx",function(e,A){var t=oF("gTfXP");e.exports=(e,A,r)=>(e=new t(e,r),A=new t(A,r),e.intersects(A,r));}),tC("fdN0I",function(e,A){var t=oF("kPBDZ"),r=oF("fYuCK");e.exports=(e,A,o)=>{let n=[],i=null,s=null,a=e.sort((e,A)=>r(e,A,o));for(let e of a)t(e,A,o)?(s=e,i||(i=e)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let l=[];for(let[e,A]of n)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===o){if(1===A.length&&A[0].semver===o)return!0;e=t.includePrerelease?s:a;}if(1===A.length&&A[0].semver===o){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&&!n(e,r+"",t)||l&&!n(e,l+"",t))return null;for(let r of A)if(!n(e,r+"",t))return!1;return!0;}let d=!!l&&!t.includePrerelease&&!!l.semver.prerelease.length&&l.semver,B=!!r&&!t.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(d&&1===d.prerelease.length&&"<"===l.operator&&0===d.prerelease[0]&&(d=!1),A)){if(C=C||">"===e.operator||">="===e.operator,Q=Q||"<"===e.operator||"<="===e.operator,r){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((u=c(r,e,t))===e&&u!==r)return!1;}else if(">="===r.operator&&!n(r.semver,e+"",t))return!1;}if(l){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((h=E(l,e,t))===e&&h!==l)return!1;}else if("<="===l.operator&&!n(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)&&!B&&!d;},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 o=!1;A:for(let t of e.set){for(let e of A.set){let A=l(t,e,r);if(o=o||null!==A,A)continue A;}if(o)return!1;}return!0;};}),tC("drEX5",function(e,A){var t,r,o,n,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 d(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}function B(e,A=!0){return A?(0,r3.basename)(e):(0,r3.basename)(e,(0,r3.extname)(e));}function f(e){return(0,r3.normalize)(e).replace(RegExp((0,t.default)(r3.sep)+"$"),"");}function p(e,A=".exe",t=""){return"win32"===process.platform?`${e}${A}`:`${e}${t}`;}function y(e,A){let t=(0,r3.extname)(e),r=`${A}${(0,r3.basename)(e,t)}${t}`;return(0,r3.join)((0,r3.dirname)(e),r);}function m(e,A){let t=(0,r3.extname)(e),r=`${(0,r3.basename)(e,t)}${A}${t}`;return(0,r3.join)((0,r3.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,r3.extname)(e).length;return e.slice(0,-A);}function D(e,A){return l(r)(e,A);}function S(e,A){let t=(0,r3.relative)(A,e);return!(!t||".."===t||t.startsWith(".."+r3.sep)||t===(0,r3.resolve)(e));}a(e.exports,"addExeExt",()=>p),a(e.exports,"addShExt",()=>w),a(e.exports,"addShRelativePrefix",()=>b),a(e.exports,"dirname",()=>r3.dirname),a(e.exports,"join",()=>r3.join),t=oF("1ondq"),r=oF("7BfUa"),o={},d(n={},"name",()=>B),d(i={},"normalizeTrim",()=>f),d(s={},"addExeExt",()=>p),d(c={},"addNamePrefix",()=>y),d(E={},"addNameSuffix",()=>m),d(g={},"addShExt",()=>w),d(u={},"addShRelativePrefix",()=>b),d(h={},"removeExt",()=>R),d(Q={},"replaceExt",()=>D),d(C={},"isPathInside",()=>S),I(o,n),I(o,i),I(o,s),I(o,c),I(o,E),I(o,g),I(o,u),I(o,h),I(o,Q),I(o,C);}),tC("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);}),tC("7BfUa",function(e,A){e.exports=function(e,A){if("string"!=typeof e||0===e.length)return e;var t,r=r3.basename(e,r3.extname(e))+A,o=r3.join(r3.dirname(e),r);return(t=e.slice(0,2))==="."+r3.sep||"./"===t?"."+r3.sep+o:o;};}),tC("g9WSN",function(e,A){var t,r,o,n;function i(e){return n(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 n(this,void 0,void 0,function*(){oo.ok(e,"a path argument must be provided"),yield E.mkdir(e,{recursive:!0});});}function a(e){return n(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 o of t){let t=yield E.tryGetExecutablePath(c.join(o,e),A);t&&r.push(t);}return r;});}function l(e,A,t){return n(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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=o(r3),E=o(oF("2qpn6"));e.exports.cp=function(e,A,t={}){return n(this,void 0,void 0,function*(){let{force:r,recursive:o,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(o)yield function e(A,t,r,o){return n(this,void 0,void 0,function*(){if(!(r>=255)){for(let n of(r++,yield s(t),yield E.readdir(A))){let i=`${A}/${n}`,s=`${t}/${n}`;(yield E.lstat(i)).isDirectory()?yield e(i,s,r,o):yield l(i,s,o);}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 n(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 n(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;}),tC("2qpn6",function(e,A){var t,r,o,n,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=o(r5),l=o(r3);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 n(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 n(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 n(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 o=A;for(let n of t){A=o+n,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 o of yield e.exports.readdir(t))if(r===o.toUpperCase()){A=l.join(t,o);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";};}),tC("6kHxT",function(e,A){var t,r,o,n,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=o(oF("a5mzA"));i=oF("k1l4q"),e.exports._findMatch=function(A,t,r,o){return n(this,void 0,void 0,function*(){let n,a,l;let c=r8.platform();for(let n of r){let r=n.version;if(i.debug(`check ${r} satisfies ${A}`),s.satisfies(r,A)&&(!t||n.stable===t)&&(l=n.files.find(A=>{i.debug(`${A.arch}===${o} && ${A.platform}===${c}`);let t=A.arch===o&&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 "+n.version),a=n;break;}}return a&&l&&((n=Object.assign({},a)).files=[l]),n;});},e.exports._getOsVersion=function(){let A=r8.platform(),t="";if("darwin"===A)t=of.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 r5.existsSync(e)?t=r5.readFileSync(e).toString():r5.existsSync(A)&&(t=r5.readFileSync(A).toString()),t;};}),tC("a5mzA",function(e,A){function t(e){v[e]=k++;}function r(e){for(var A=0;Am||!(A.loose?D[v.LOOSE]:D[v.FULL]).test(e))return null;try{return new n(e,A);}catch(e){return null;}}function n(e,A){if(A&&"object"==typeof A||(A={loose:!!A,includePrerelease:!1}),e instanceof n){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 n))return new n(e,A);y("SemVer",e,A),this.options=A,this.loose=!!A.loose;var t=e.trim().match(A.loose?D[v.LOOSE]:D[v.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 n(e,t).compare(new n(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===_?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(),o=r.pop();t&&r.length;)t=r.every(function(e){return o.intersects(e,A);}),o=r.pop();return t;}function d(e){return!e||"x"===e.toLowerCase()||"*"===e;}function B(e,A,t,r,o,n,i,s,a,l,c,E,g){return((A=d(t)?"":d(r)?">="+t+".0.0":d(o)?">="+t+"."+r+".0":">="+A)+" "+(s=d(a)?"":d(l)?"<"+(+a+1)+".0.0":d(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 n(e,r),A=new C(A,r),t){case">":o=a,i=u,s=l,c=">",E=">=";break;case"<":o=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 o,i,s,c,E,h=0;h=0.0.0")),d=d||e,B=B||e,o(e.semver,d.semver,r)?d=e:s(e.semver,B.semver,r)&&(B=e);}),d.operator===c||d.operator===E||(!B.operator||B.operator===c)&&i(e,B.semver)||B.operator===E&&s(e,B.semver))return!1;}return!0;}A=e.exports=n,"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=[],v=A.tokens={},k=0,F=[["\\s",1],["\\d",m],[N="[a-zA-Z0-9-]",b]],t("NUMERICIDENTIFIER"),S[v.NUMERICIDENTIFIER]="0|[1-9]\\d*",t("NUMERICIDENTIFIERLOOSE"),S[v.NUMERICIDENTIFIERLOOSE]="\\d+",t("NONNUMERICIDENTIFIER"),S[v.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+N+"*",t("MAINVERSION"),S[v.MAINVERSION]="("+S[v.NUMERICIDENTIFIER]+")\\.("+S[v.NUMERICIDENTIFIER]+")\\.("+S[v.NUMERICIDENTIFIER]+")",t("MAINVERSIONLOOSE"),S[v.MAINVERSIONLOOSE]="("+S[v.NUMERICIDENTIFIERLOOSE]+")\\.("+S[v.NUMERICIDENTIFIERLOOSE]+")\\.("+S[v.NUMERICIDENTIFIERLOOSE]+")",t("PRERELEASEIDENTIFIER"),S[v.PRERELEASEIDENTIFIER]="(?:"+S[v.NUMERICIDENTIFIER]+"|"+S[v.NONNUMERICIDENTIFIER]+")",t("PRERELEASEIDENTIFIERLOOSE"),S[v.PRERELEASEIDENTIFIERLOOSE]="(?:"+S[v.NUMERICIDENTIFIERLOOSE]+"|"+S[v.NONNUMERICIDENTIFIER]+")",t("PRERELEASE"),S[v.PRERELEASE]="(?:-("+S[v.PRERELEASEIDENTIFIER]+"(?:\\."+S[v.PRERELEASEIDENTIFIER]+")*))",t("PRERELEASELOOSE"),S[v.PRERELEASELOOSE]="(?:-?("+S[v.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+S[v.PRERELEASEIDENTIFIERLOOSE]+")*))",t("BUILDIDENTIFIER"),S[v.BUILDIDENTIFIER]=N+"+",t("BUILD"),S[v.BUILD]="(?:\\+("+S[v.BUILDIDENTIFIER]+"(?:\\."+S[v.BUILDIDENTIFIER]+")*))",t("FULL"),t("FULLPLAIN"),S[v.FULLPLAIN]="v?"+S[v.MAINVERSION]+S[v.PRERELEASE]+"?"+S[v.BUILD]+"?",S[v.FULL]="^"+S[v.FULLPLAIN]+"$",t("LOOSEPLAIN"),S[v.LOOSEPLAIN]="[v=\\s]*"+S[v.MAINVERSIONLOOSE]+S[v.PRERELEASELOOSE]+"?"+S[v.BUILD]+"?",t("LOOSE"),S[v.LOOSE]="^"+S[v.LOOSEPLAIN]+"$",t("GTLT"),S[v.GTLT]="((?:<|>)?=?)",t("XRANGEIDENTIFIERLOOSE"),S[v.XRANGEIDENTIFIERLOOSE]=S[v.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",t("XRANGEIDENTIFIER"),S[v.XRANGEIDENTIFIER]=S[v.NUMERICIDENTIFIER]+"|x|X|\\*",t("XRANGEPLAIN"),S[v.XRANGEPLAIN]="[v=\\s]*("+S[v.XRANGEIDENTIFIER]+")(?:\\.("+S[v.XRANGEIDENTIFIER]+")(?:\\.("+S[v.XRANGEIDENTIFIER]+")(?:"+S[v.PRERELEASE]+")?"+S[v.BUILD]+"?)?)?",t("XRANGEPLAINLOOSE"),S[v.XRANGEPLAINLOOSE]="[v=\\s]*("+S[v.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[v.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+S[v.XRANGEIDENTIFIERLOOSE]+")(?:"+S[v.PRERELEASELOOSE]+")?"+S[v.BUILD]+"?)?)?",t("XRANGE"),S[v.XRANGE]="^"+S[v.GTLT]+"\\s*"+S[v.XRANGEPLAIN]+"$",t("XRANGELOOSE"),S[v.XRANGELOOSE]="^"+S[v.GTLT]+"\\s*"+S[v.XRANGEPLAINLOOSE]+"$",t("COERCE"),S[v.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",t("COERCERTL"),R[v.COERCERTL]=RegExp(S[v.COERCE],"g"),D[v.COERCERTL]=RegExp(r(S[v.COERCE]),"g"),t("LONETILDE"),S[v.LONETILDE]="(?:~>?)",t("TILDETRIM"),S[v.TILDETRIM]="(\\s*)"+S[v.LONETILDE]+"\\s+",R[v.TILDETRIM]=RegExp(S[v.TILDETRIM],"g"),D[v.TILDETRIM]=RegExp(r(S[v.TILDETRIM]),"g"),t("TILDE"),S[v.TILDE]="^"+S[v.LONETILDE]+S[v.XRANGEPLAIN]+"$",t("TILDELOOSE"),S[v.TILDELOOSE]="^"+S[v.LONETILDE]+S[v.XRANGEPLAINLOOSE]+"$",t("LONECARET"),S[v.LONECARET]="(?:\\^)",t("CARETTRIM"),S[v.CARETTRIM]="(\\s*)"+S[v.LONECARET]+"\\s+",R[v.CARETTRIM]=RegExp(S[v.CARETTRIM],"g"),D[v.CARETTRIM]=RegExp(r(S[v.CARETTRIM]),"g"),t("CARET"),S[v.CARET]="^"+S[v.LONECARET]+S[v.XRANGEPLAIN]+"$",t("CARETLOOSE"),S[v.CARETLOOSE]="^"+S[v.LONECARET]+S[v.XRANGEPLAINLOOSE]+"$",t("COMPARATORLOOSE"),S[v.COMPARATORLOOSE]="^"+S[v.GTLT]+"\\s*("+S[v.LOOSEPLAIN]+")$|^$",t("COMPARATOR"),S[v.COMPARATOR]="^"+S[v.GTLT]+"\\s*("+S[v.FULLPLAIN]+")$|^$",t("COMPARATORTRIM"),S[v.COMPARATORTRIM]="(\\s*)"+S[v.GTLT]+"\\s*("+S[v.LOOSEPLAIN]+"|"+S[v.XRANGEPLAIN]+")",R[v.COMPARATORTRIM]=RegExp(S[v.COMPARATORTRIM],"g"),D[v.COMPARATORTRIM]=RegExp(r(S[v.COMPARATORTRIM]),"g"),L="$1$2$3",t("HYPHENRANGE"),S[v.HYPHENRANGE]="^\\s*("+S[v.XRANGEPLAIN]+")\\s+-\\s+("+S[v.XRANGEPLAIN]+")\\s*$",t("HYPHENRANGELOOSE"),S[v.HYPHENRANGELOOSE]="^\\s*("+S[v.XRANGEPLAINLOOSE]+")\\s+-\\s+("+S[v.XRANGEPLAINLOOSE]+")\\s*$",t("STAR"),S[v.STAR]="(<|>)?=?\\s*\\*";for(var y,m,w,b,R,D,S,v,k,N,F,L,U,_,T=0;T=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 n(e,t).inc(A,r).version;}catch(e){return null;}},A.diff=function(e,A){if(c(e,A))return null;var t=o(e),r=o(A),n="";if(t.prerelease.length||r.prerelease.length){n="pre";var i="prerelease";}for(var s in t)if(("major"===s||"minor"===s||"patch"===s)&&t[s]!==r[s])return n+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 n(e,A).major;},A.minor=function(e,A){return new n(e,A).minor;},A.patch=function(e,A){return new n(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 n(e,t),o=new n(A,t);return r.compare(o)||r.compareBuild(o);},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,_={},Q.prototype.parse=function(e){var A=this.options.loose?D[v.COMPARATORLOOSE]:D[v.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 n(t[2],this.options.loose):this.semver=_;},Q.prototype.toString=function(){return this.value;},Q.prototype.test=function(e){if(y("Comparator.test",e,this.options.loose),this.semver===_||e===_)return!0;if("string"==typeof e)try{e=new n(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),o=("<="===this.operator||"<"===this.operator)&&("<="===e.operator||"<"===e.operator),n=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||o||n&&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[v.HYPHENRANGELOOSE]:D[v.HYPHENRANGE];e=e.replace(t,B),y("hyphen replace",e),e=e.replace(D[v.COMPARATORTRIM],L),y("comparator trim",e,D[v.COMPARATORTRIM]),e=(e=(e=e.replace(D[v.TILDETRIM],"$1~")).replace(D[v.CARETTRIM],"$1^")).split(/\s+/).join(" ");var r=A?D[v.COMPARATORLOOSE]:D[v.COMPARATOR],o=e.split(" ").map(function(e){var A,t,r,o,n,i,s,a,l;return A=e,t=this.options,y("comp",A,t),r=A,o=t,A=r.trim().split(/\s+/).map(function(e){var A,t,r;return y("caret",A=e,t=o),r=t.loose?D[v.CARETLOOSE]:D[v.CARET],A.replace(r,function(e,t,r,o,n){var i;return y("caret",A,e,t,r,o,n),d(t)?i="":d(r)?i=">="+t+".0.0 <"+(+t+1)+".0.0":d(o)?i="0"===t?">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":">="+t+"."+r+".0 <"+(+t+1)+".0.0":n?(y("replaceCaret pr",n),i="0"===t?"0"===r?">="+t+"."+r+"."+o+"-"+n+" <"+t+"."+r+"."+(+o+1):">="+t+"."+r+"."+o+"-"+n+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+o+"-"+n+" <"+(+t+1)+".0.0"):(y("no pr"),i="0"===t?"0"===r?">="+t+"."+r+"."+o+" <"+t+"."+r+"."+(+o+1):">="+t+"."+r+"."+o+" <"+t+"."+(+r+1)+".0":">="+t+"."+r+"."+o+" <"+(+t+1)+".0.0"),y("caret return",i),i;});}).join(" "),y("caret",A),n=A,i=t,A=n.trim().split(/\s+/).map(function(e){var A,t;return A=e,t=i.loose?D[v.TILDELOOSE]:D[v.TILDE],A.replace(t,function(e,t,r,o,n){var i;return y("tilde",A,e,t,r,o,n),d(t)?i="":d(r)?i=">="+t+".0.0 <"+(+t+1)+".0.0":d(o)?i=">="+t+"."+r+".0 <"+t+"."+(+r+1)+".0":n?(y("replaceTilde pr",n),i=">="+t+"."+r+"."+o+"-"+n+" <"+t+"."+(+r+1)+".0"):i=">="+t+"."+r+"."+o+" <"+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[v.XRANGELOOSE]:D[v.XRANGE],A.replace(r,function(e,r,o,n,i,s){y("xRange",A,e,r,o,n,i,s);var a=d(o),l=a||d(n),c=l||d(i);return"="===r&&c&&(r=""),s=t.includePrerelease?"-0":"",a?e=">"===r||"<"===r?"<0.0.0-0":"*":r&&c?(l&&(n=0),i=0,">"===r?(r=">=",l?(o=+o+1,n=0):n=+n+1,i=0):"<="===r&&(r="<",l?o=+o+1:n=+n+1),e=r+o+"."+n+"."+i+s):l?e=">="+o+".0.0"+s+" <"+(+o+1)+".0.0"+s:c&&(e=">="+o+"."+n+".0"+s+" <"+o+"."+(+n+1)+".0"+s),y("xRange return",e),e;});}).join(" "),y("xrange",A),y("replaceStars",l=A,t),A=l.trim().replace(D[v.STAR],""),y("stars",A),A;},this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter(function(e){return!!e.match(r);})),o=o.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 n(e,this.options);}catch(e){return!1;}for(var A=0;A0){var o=e[r].semver;if(o.major===A.major&&o.minor===A.minor&&o.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,o=null;try{var i=new C(A,t);}catch(e){return null;}return e.forEach(function(e){i.test(e)&&(!r||-1===o.compare(e))&&(o=new n(r=e,t));}),r;},A.minSatisfying=function(e,A,t){var r=null,o=null;try{var i=new C(A,t);}catch(e){return null;}return e.forEach(function(e){i.test(e)&&(!r||1===o.compare(e))&&(o=new n(r=e,t));}),r;},A.minVersion=function(e,A){e=new C(e,A);var t=new n("0.0.0");if(e.test(t)||(t=new n("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=o(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 n)return e;if("number"==typeof e&&(e+=""),"string"!=typeof e)return null;var t,r=null;if((A=A||{}).rtl){for(;(t=D[v.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[v.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;D[v.COERCERTL].lastIndex=-1;}else r=e.match(D[v.COERCE]);return null===r?null:o(r[2]+"."+(r[3]||"0")+"."+(r[4]||"0"),A);};}),tC("iFKS7",function(e,A){var t=oF("joDHm"),r=oF("inTPA");e.exports=function(e,A,o){var n=A&&o||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[n+s]=i[s];return A||r(i);};}),tC("joDHm",function(e,A){e.exports=function(){return r6.randomBytes(16);};}),tC("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("");};}),tC("ca0ts",function(e,A){var t,r,o,n;function i(e,A,t){return n(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 o=r[0];return A=r.slice(1).concat(A||[]),new s.ToolRunner(o,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=o(oF("e0fPv"));e.exports.exec=i,e.exports.getExecOutput=function(e,A,t){var r,o;return n(this,void 0,void 0,function*(){let n="",s="",a=new od.StringDecoder("utf8"),l=new od.StringDecoder("utf8"),c=null===(r=null==t?void 0:t.listeners)||void 0===r?void 0:r.stdout,E=null===(o=null==t?void 0:t.listeners)||void 0===o?void 0:o.stderr,g=Object.assign(Object.assign({},null==t?void 0:t.listeners),{stdout(e){n+=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 n+=a.end(),s+=l.end(),{exitCode:u,stdout:n,stderr:s};});};}),tC("e0fPv",function(e,A){var t,r,o,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;}),o=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var o in e)"default"!==o&&Object.hasOwnProperty.call(e,o)&&t(A,e,o);return r(A,e),A;},n=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(o,n){function i(e){try{a(r.next(e));}catch(e){n(e);}}function s(e){try{a(r.throw(e));}catch(e){n(e);}}function a(e){var A;e.done?o(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=o(r8),s=o(or),a=o(of),l=o(r3),c=o(oF("g9WSN")),E=o(oF("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),o=A?"":"[command]";if(g){if(this._isCmdFile())for(let e of(o+=t,r))o+=" "+e;else if(e.windowsVerbatimArguments)for(let e of(o+=`"${t}"`,r))o+=" "+e;else for(let e of(o+=this._windowsQuoteCmdArg(t),r))o+=" "+this._windowsQuoteCmdArg(e);}else for(let e of(o+=t,r))o+=" "+e;return o;}_processLineBuffer(e,A,t){try{let r=A+e.toString(),o=r.indexOf(i.EOL);for(;o>-1;){let e=r.substring(0,o);t(e),o=(r=r.substring(o+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='"',o=!0;for(let A=e.length;A>0;A--)r+=e[A-1],o&&"\\"===e[A-1]?r+="\\":'"'===e[A-1]?(o=!0,r+='"'):o=!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 n(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)=>n(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 o=this._getSpawnFileName(),n=a.spawn(o,this._getSpawnArgs(t),this._getSpawnOptions(this.options,o)),s="";n.stdout&&n.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(n.stderr&&n.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);});}),n.on("error",e=>{r.processError=e.message,r.processExited=!0,r.processClosed=!0,r.CheckComplete();}),n.on("exit",e=>{r.processExitCode=e,r.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),r.CheckComplete();}),n.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),n.removeAllListeners(),t?A(t):e(r);}),this.options.input){if(!n.stdin)throw Error("child process missing stdin");n.stdin.end(this.options.input);}}));});}}e.exports.ToolRunner=u,e.exports.argStringToArray=function(e){function A(e){o&&'"'!==e&&(n+="\\"),n+=e,o=!1;}let t=[],r=!1,o=!1,n="";for(let i=0;i0&&(t.push(n),n="");continue;}A(s);}return n.length>0&&t.push(n.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=op.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();}}}}),tC("huNX2",function(e,A){e.exports=Promise.resolve(require("./actions_python.11da06c9.js")).then(()=>oF("apy8x"));}),tC("5NE8y",function(e,A){e.exports=Promise.resolve(require("./hdi.dcf7929b.js")).then(()=>oF("9IkUc"));}),tI=oF("dKklS"),td=oF("pcnv8"),tB=oF("k1l4q"),tI=oF("dKklS"),td=oF("pcnv8"),tf={},tp={},ty={},tm={};const oL="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,oU=oL?";":":";tw={},"win32"===process.platform||ov.TESTING_WINDOWS?tb=oF("ftrAD"):tb=oF("9yF3I"),tw=c,c.sync=function(e,A){try{return tb.sync(e,A||{});}catch(e){if(A&&A.ignoreErrors||"EACCES"===e.code)return!1;throw e;}};const o_=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),oT=(e,A)=>{let t=A.colon||oU,r=e.match(/\//)||oL&&e.match(/\\/)?[""]:[...(oL?[process.cwd()]:[]),...(A.path||process.env.PATH||"").split(t)],o=oL?A.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",n=oL?o.split(t):[""];return oL&&-1!==e.indexOf(".")&&""!==n[0]&&n.unshift(""),{pathEnv:r,pathExt:n,pathExtExe:o};},ox=(e,A,t)=>{"function"==typeof A&&(t=A,A={}),A||(A={});let{pathEnv:r,pathExt:o,pathExtExe:n}=oT(e,A),i=[],s=t=>new Promise((o,n)=>{if(t===r.length)return A.all&&i.length?o(i):n(o_(e));let s=r[t],l=/^".*"$/.test(s)?s.slice(1,-1):s,c=r3.join(l,e);o(a(!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c,t,0));}),a=(e,t,r)=>new Promise((l,c)=>{if(r===o.length)return l(s(t+1));let E=o[r];tw(e+E,{pathExt:n},(o,n)=>{if(!o&&n){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);};tm=ox,ox.sync=(e,A)=>{let{pathEnv:t,pathExt:r,pathExtExe:o}=oT(e,A=A||{}),n=[];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";};(tR=oM).default=oM,ty=function(e){return E(e)||E(e,!0);};tD=function(e){return e=e.replace(/([()\][%!^"`<>&|;, *?])/g,"^$1");},tS=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;},tv={},tk={},tN={},tN=/^#!(.*)/,tk=(e="")=>{let A=e.match(tN);if(!A)return null;let[t,r]=A[0].replace(/#! ?/,"").split(" "),o=t.split("/").pop();return"env"===o?r:r?`${o} ${r}`:o;},tv=function(e){let A;let t=Buffer.alloc(150);try{A=r5.openSync(e,"r"),r5.readSync(A,t,0,150,0),r5.closeSync(A);}catch(e){}return tk(t.toString());};const oO="win32"===process.platform;tp=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(!oO)return e;let A=function(e){e.file=ty(e);let A=e.file&&tv(e.file);return A?(e.args.unshift(e.file),e.command=A,ty(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=r3.normalize(e.command),e.command=tD(e.command),e.args=e.args.map(e=>tS(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 oG="win32"===process.platform;tF={hookChildProcess:function(e,A){if(!oG)return;let t=e.emit;e.emit=function(r,o){if("exit"===r){let r=u(o,A,"spawn");if(r)return t.call(e,"error",r);}return t.apply(e,arguments);};},verifyENOENT:u,verifyENOENTSync:function(e,A){return oG&&1===e&&!A.file?g(A.original,"spawnSync"):null;},notFoundError:g},(tf=h).spawn=h,tf.sync=function(e,A,t){let r=tp(e,A,t),o=of.spawnSync(r.command,r.args,r.options);return o.error=o.error||tF.verifyENOENTSync(o.status,r),o;},tf._parse=tp,tf._enoent=tF;const oY=({cwd:e=l(ob).cwd(),path:A=l(ob).env[Q()],preferLocal:t=!0,execPath:r=l(ob).execPath,addExecPath:o=!0}={})=>{let n=e instanceof URL?(0,oR.fileURLToPath)(e):e,i=l(om).resolve(n),s=[];return t&&oJ(s,i),o&&oP(s,r,i),[...s,A].join(l(om).delimiter);},oJ=(e,A)=>{let t;for(;t!==A;)e.push(l(om).join(A,"node_modules/.bin")),t=A,A=l(om).resolve(A,"..");},oP=(e,A,t)=>{let r=A instanceof URL?(0,oR.fileURLToPath)(A):A;e.push(l(om).resolve(t,r,".."));},oH=({env:e=l(ob).env,...A}={})=>{let t=Q({env:e={...e}});return A.path=e[t],e[t]=oY(A),e;},oV=(e,A,t,r)=>{if("length"===t||"prototype"===t||"arguments"===t||"caller"===t)return;let o=Object.getOwnPropertyDescriptor(e,t),n=Object.getOwnPropertyDescriptor(A,t);(oq(o,n)||!r)&&Object.defineProperty(e,t,n);},oq=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);},oW=(e,A)=>{let t=Object.getPrototypeOf(A);t!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,t);},oj=(e,A)=>`/* Wrapped ${e}*/ ${A}`,oX=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),o$=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oz=(e,A,t)=>{let r=""===t?"":`with ${t.trim()}() `,o=oj.bind(null,r,A.toString());Object.defineProperty(o,"name",o$),Object.defineProperty(e,"toString",{...oX,value:o});},oZ=new WeakMap(),oK=(e,A={})=>{let t;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,o=e.displayName||e.name||"",n=function(...i){if(oZ.set(n,++r),1===r)t=e.apply(this,i),e=null;else if(!0===A.throw)throw Error(`Function \`${o}\` 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))oV(e,A,r,t);oW(e,A),oz(e,A,r);}(n,e),oZ.set(n,r),n;};oK.callCount=e=>{if(!oZ.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return oZ.get(e);},tL=oK;const o0=()=>Array.from({length:o4-o2+1},o1),o1=(e,A)=>({name:"SIGRT"+(A+1),number:o2+A,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),o2=34,o4=64,o9=[{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"}],o8=()=>[...o9,...o0()].map(o3),o3=({name:e,number:A,description:t,action:r,forced:o=!1,standard:n})=>{let{signals:{[e]:i}}=oD.constants,s=void 0!==i;return{name:e,number:s?i:A,description:t,supported:s,action:r,forced:o,standard:n};},o5=Object.fromEntries(o8().map(({name:e,number:A,description:t,supported:r,action:o,forced:n,standard:i})=>[e,{name:e,number:A,description:t,supported:r,action:o,forced:n,standard:i}])),o6=(e,A)=>{let t=o7(e,A);if(void 0===t)return{};let{name:r,description:o,supported:n,action:i,forced:s,standard:a}=t;return{[e]:{name:r,number:e,description:o,supported:n,action:i,forced:s,standard:a}};},o7=(e,A)=>{let t=A.find(({name:A})=>oD.constants.signals[A]===e);return void 0!==t?t:A.find(A=>A.number===e);};(()=>{let e=o8();return Object.assign({},...Array.from({length:o4+1},(A,t)=>o6(t,e)));})();const ne=({timedOut:e,timeout:A,errorCode:t,signal:r,signalDescription:o,exitCode:n,isCanceled:i})=>e?`timed out after ${A} milliseconds`:i?"was canceled":void 0!==t?"failed with "+t:void 0!==r?`was killed with ${r} (${o})`:void 0!==n?"failed with exit code "+n:"failed",nA=({stdout:e,stderr:A,all:t,error:r,signal:o,exitCode:n,command:i,escapedCommand:s,timedOut:a,isCanceled:c,killed:E,parsed:{options:{timeout:g,cwd:u=l(ob).cwd()}}})=>{n=null===n?void 0:n;let h=void 0===(o=null===o?void 0:o)?void 0:o5[o].description,Q=ne({timedOut:a,timeout:g,errorCode:r&&r.code,signal:o,signalDescription:h,exitCode:n,isCanceled:c}),C=`Command ${Q}: ${i}`,I="[object Error]"===Object.prototype.toString.call(r),d=I?`${C} ${r.message}`:C,B=[d,A,e].filter(Boolean).join("\n");return I?(r.originalMessage=r.message,r.message=B):r=Error(B),r.shortMessage=d,r.command=i,r.escapedCommand=s,r.exitCode=n,r.signal=o,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;},nt=["stdin","stdout","stderr"],nr=e=>nt.some(A=>void 0!==e[A]),no=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return nt.map(A=>e[A]);if(nr(e))throw Error("It's not possible to provide `stdio` in combination with one of "+nt.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,nt.length)},(e,t)=>A[t]);};tU={};const nn=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(nn(t_=ov.process)){var ni,ns=oF("bJALw"),na=/^win/i.test(t_.platform),nl=or;"function"!=typeof nl&&(nl=nl.EventEmitter),t_.__signal_exit_emitter__?ni=t_.__signal_exit_emitter__:((ni=t_.__signal_exit_emitter__=new nl()).count=0,ni.emitted={}),ni.infinite||(ni.setMaxListeners(1/0),ni.infinite=!0);var nc=function(){nu&&nn(ov.process)&&(nu=!1,ns.forEach(function(e){try{t_.removeListener(e,ng[e]);}catch(e){}}),t_.emit=nI,t_.reallyExit=nQ,ni.count-=1);};(tU=function(e,A){if(!nn(ov.process))return function(){};oo.equal(typeof e,"function","a callback must be provided for exit handler"),!1===nu&&nh();var t="exit";return A&&A.alwaysLast&&(t="afterexit"),ni.on(t,e),function(){ni.removeListener(t,e),0===ni.listeners("exit").length&&0===ni.listeners("afterexit").length&&nc();};}).unload=nc;var nE=function(e,A,t){ni.emitted[e]||(ni.emitted[e]=!0,ni.emit(e,A,t));},ng={};ns.forEach(function(e){ng[e]=function(){nn(ov.process)&&t_.listeners(e).length===ni.count&&(nc(),nE("exit",null,e),nE("afterexit",null,e),na&&"SIGHUP"===e&&(e="SIGINT"),t_.kill(t_.pid,e));};}),tU.signals=function(){return ns;};var nu=!1,nh=function(){!nu&&nn(ov.process)&&(nu=!0,ni.count+=1,ns=ns.filter(function(e){try{return t_.on(e,ng[e]),!0;}catch(e){return!1;}}),t_.emit=nd,t_.reallyExit=nC);};tU.load=nh;var nQ=t_.reallyExit,nC=function(e){nn(ov.process)&&(t_.exitCode=e||0,nE("exit",t_.exitCode,null),nE("afterexit",t_.exitCode,null),nQ.call(t_,t_.exitCode));},nI=t_.emit,nd=function(e,A){if(!("exit"===e&&nn(ov.process)))return nI.apply(this,arguments);void 0!==A&&(t_.exitCode=A);var t=nI.apply(this,arguments);return nE("exit",t_.exitCode,null),nE("afterexit",t_.exitCode,null),t;};}else tU=function(){return function(){};};const nB=(e,A="SIGTERM",t={})=>{let r=e(A);return nf(e,A,t,r),r;},nf=(e,A,t,r)=>{if(!np(A,t,r))return;let o=setTimeout(()=>{e("SIGKILL");},nm(t));o.unref&&o.unref();},np=(e,{forceKillAfterTimeout:A},t)=>ny(e)&&!1!==A&&t,ny=e=>e===l(oD).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),nm=({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;},nw=(e,A)=>{e.kill()&&(A.isCanceled=!0);},nb=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},nR=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{let o;return 0===A||void 0===A?r:Promise.race([new Promise((r,n)=>{o=setTimeout(()=>{nb(e,t,n);},A);}),r.finally(()=>{clearTimeout(o);})]);},nD=({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})`);},nS=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)return r;let o=l(tU)(()=>{e.kill();});return r.finally(()=>{o();});},nv=e=>e instanceof ow.ChildProcess&&"function"==typeof e.then,nk=(e,A,t)=>{if("string"==typeof t)return e[A].pipe((0,oB.createWriteStream)(t)),e;if(I(t))return e[A].pipe(t),e;if(!nv(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;},nN=e=>{null!==e.stdout&&(e.pipeStdout=nk.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=nk.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=nk.bind(void 0,e,"all"));};tT={},tx=os.constants,tM=on.promisify,tO={},tG=oi.PassThrough,tO=e=>{let{array:A}=e={...e},{encoding:t}=e,r="buffer"===t,o=!1;A?o=!(t||r):t=t||"utf8",r&&(t=null);let n=new tG({objectMode:o});t&&n.setEncoding(t);let i=0,s=[];return n.on("data",e=>{s.push(e),o?i=s.length:i+=e.length;}),n.getBufferedValue=()=>A?s:r?Buffer.concat(s,i):s.join(""),n.getBufferedLength=()=>i,n;};const nF=tM(oi.pipeline);class nL extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError";}}(tT=d).buffer=(e,A)=>d(e,{...A,encoding:"buffer"}),tT.array=(e,A)=>d(e,{...A,array:!0}),tT.MaxBufferError=nL,tY={},tJ=oi.PassThrough,tY=function(){function e(o){return Array.isArray(o)?o.forEach(e):(t.push(o),o.once("end",A.bind(null,o)),o.once("error",r.emit.bind(r,"error")),o.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 tJ({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 nU=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},n_=({input:e,inputFile:A})=>"string"!=typeof A?e:(nU(e),(0,oB.readFileSync)(A)),nT=e=>{let A=n_(e);if(C(A))throw TypeError("The `input` option cannot be a stream in sync mode");return A;},nx=({input:e,inputFile:A})=>"string"!=typeof A?e:(nU(e),(0,oB.createReadStream)(A)),nM=(e,A)=>{let t=nx(A);void 0!==t&&(C(t)?t.pipe(e.stdin):e.stdin.end(t));},nO=(e,{all:A})=>{if(!A||!e.stdout&&!e.stderr)return;let t=l(tY)();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t;},nG=async(e,A)=>{if(e&&void 0!==A){e.destroy();try{return await A;}catch(e){return e.bufferedData;}}},nY=(e,{encoding:A,buffer:t,maxBuffer:r})=>{if(e&&t)return A?l(tT)(e,{encoding:A,maxBuffer:r}):l(tT).buffer(e,{maxBuffer:r});},nJ=async({stdout:e,stderr:A,all:t},{encoding:r,buffer:o,maxBuffer:n},i)=>{let s=nY(e,{encoding:r,buffer:o,maxBuffer:n}),a=nY(A,{encoding:r,buffer:o,maxBuffer:n}),l=nY(t,{encoding:r,buffer:o,maxBuffer:2*n});try{return await Promise.all([i,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},nG(e,s),nG(A,a),nG(t,l)]);}},nP=(async()=>{})().constructor.prototype,nH=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(nP,e)]),nV=(e,A)=>{for(let[t,r]of nH){let o="function"==typeof A?(...e)=>Reflect.apply(r.value,A(),e):r.value.bind(A);Reflect.defineProperty(e,t,{...r,value:o});}},nq=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);});}),nW=(e,A=[])=>Array.isArray(A)?[e,...A]:[e],nj=e=>"string"!=typeof e||/^[\w.-]+$/.test(e)?e:`"${e.replace(/"/g,'\\"')}"`,nX=(e,A)=>nW(e,A).join(" "),n$=(e,A)=>nW(e,A).map(e=>nj(e)).join(" "),nz=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;},nZ=e=>{let A=typeof e;if("string"===A)return e;if("number"===A)return e+"";if("object"===A&&null!==e&&!(e instanceof ow.ChildProcess)&&"stdout"in e){let A=typeof e.stdout;if("string"===A)return e.stdout;if((0,oy.Buffer).isBuffer(e.stdout))return e.stdout.toString();throw TypeError(`Unexpected "${A}" stdout in template expression`);}throw TypeError(`Unexpected "${A}" in template expression`);},nK=(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)],n0=({templates:e,expressions:A,tokens:t,index:r,template:o})=>{let n=null!=o?o:e.raw[r],i=nK(t,n.split(/ +/g).filter(Boolean),n.startsWith(" "));if(r===A.length)return i;let s=A[r];return nK(i,Array.isArray(s)?s.map(e=>nZ(e)):[nZ(s)],n.endsWith(" "));},n1=(e,A)=>{let t=[];for(let[r,o]of e.entries())t=n0({templates:e,expressions:A,tokens:t,index:r,template:o});return t;},n2=(0,oc.debuglog)("execa").enabled,n4=(e,A)=>(e+"").padStart(A,"0"),n9=()=>{let e=new Date();return`${n4(e.getHours(),2)}:${n4(e.getMinutes(),2)}:${n4(e.getSeconds(),2)}.${n4(e.getMilliseconds(),3)}`;},n8=(e,{verbose:A})=>{A&&l(ob).stderr.write(`[${n9()}] ${e} `);},n3=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:o})=>{let n=A?{...l(ob).env,...e}:e;return t?oH({env:n,cwd:r,execPath:o}):n;},n5=(e,A,t={})=>{let r=l(tf)._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(ob).cwd(),execPath:l(ob).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:n2,...t}).env=n3(t),t.stdio=no(t),"win32"===l(ob).platform&&"cmd"===l(om).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},n6=(e,A,t)=>"string"==typeof A||(0,oy.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:"",n7=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},ie=(e={})=>({preferLocal:!0,...n7(e),...e});!function e(A){function t(r,...o){if(!Array.isArray(r))return e({...A,...r});let[n,...i]=n1(r,o);return B(n,i,ie(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...o]=n1(e,t);return f(r,o,ie(A));},t;}(),tP={},a(tH={},"isexe",()=>iA),a(tH,"sync",()=>it),tV=oF("6vN83");const iA=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return ir(await(0,tV.stat)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},it=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return ir((0,r5.statSync)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},ir=(e,A)=>e.isFile()&&io(e,A),io=(e,A)=>{var t,r,o,n,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===(o=(n=process).getgroups)||void 0===o?void 0:o.call(n))&&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,d=e.uid,B=e.gid,f=parseInt("100",8),p=parseInt("010",8);return!!(I&parseInt("001",8)||I&p&&C.has(B)||I&f&&d===u||I&(f|p)&&0===u);};a(tq={},"isexe",()=>ii),a(tq,"sync",()=>is),tV=oF("6vN83");const ii=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return il(await(0,tV.stat)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},is=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return il((0,r5.statSync)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},ia=(e,A)=>{let{pathExt:t=process.env.PATHEXT||""}=A,r=t.split(";");if(-1!==r.indexOf(""))return!0;for(let A=0;Ae.isFile()&&ia(A,t),ic="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?tq:tH,iE=ic.isexe,ig=ic.sync;tW=r3.join,tj=r3.delimiter,tX=r3.sep,t$=r3.posix;const iu="win32"===process.platform,ih=new RegExp(`[${t$.sep}${tX===t$.sep?"":tX}]`.replace(/(\\)/g,"\\$1")),iQ=RegExp("^\\."+ih.source),iC=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),iI=(e,{path:A=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=tj})=>{let o=e.match(ih)?[""]:[...(iu?[process.cwd()]:[]),...(A||"").split(r)];if(iu){let A=t||[".EXE",".CMD",".BAT",".COM"].join(r),n=A.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==n[0]&&n.unshift(""),{pathEnv:o,pathExt:n,pathExtExe:A};}return{pathEnv:o,pathExt:[""]};},id=(e,A)=>{let t=/^".*"$/.test(e)?e.slice(1,-1):e;return(!t&&iQ.test(A)?A.slice(0,2):"")+tW(t,A);},iB=async(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:o}=iI(e,A),n=[];for(let i of t){let t=id(i,e);for(let e of r){let r=t+e;if(await iE(r,{pathExt:o,ignoreErrors:!0})){if(!A.all)return r;n.push(r);}}}if(A.all&&n.length)return n;if(A.nothrow)return null;throw iC(e);};tP=iB,iB.sync=(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:o}=iI(e,A),n=[];for(let i of t){let t=id(i,e);for(let e of r){let r=t+e;if(ig(r,{pathExt:o,ignoreErrors:!0})){if(!A.all)return r;n.push(r);}}}if(A.all&&n.length)return n;if(A.nothrow)return null;throw iC(e);};const ip={stdio:"inherit",shell:!0};td=oF("pcnv8"),tz={isEqual:!0,isMatchingKey:!0,isPromise:!0,maxSize:!0,onCacheAdd:!0,onCacheChange:!0,onCacheHit:!0,transformKey:!0},tZ=Array.prototype.slice,tK=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,o=this.keys,n=o.length;if(!n)return-1;if(t(o[0],e))return 0;if(r>1){for(var i=1;n>i;i++)if(t(o[i],e))return i;}return-1;},e.prototype._getKeyIndexForMany=function(e){var A,t,r=this.options.isEqual,o=this.keys,n=o.length;if(!n)return-1;if(1===n)return this._getKeyIndexForSingle(e);var i=e.length;if(i>1){for(var s=0;n>s;s++)if((A=o[s]).length===i){for(t=0;i>t&&r(A[t],e[t]);t++);if(t===i)return s;}}else for(var s=0;n>s;s++)if((A=o[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 o=this.options.isEqual;if(r>1){for(var n=0;r>n;n++)if(!o(t[n],e[n]))return-1;return 0;}return o(t[0],e[0])?0:-1;},e.prototype.orderByLru=function(e,A,t){for(var r=this.keys,o=this.values,n=r.length,i=t;i--;)r[i+1]=r[i],o[i+1]=o[i];r[0]=e,o[0]=A;var s=this.options.maxSize;n===s&&t===n?(r.pop(),o.pop()):t>=s&&(r.length=o.length=s);},e.prototype.updateAsyncCache=function(e){var A=this,t=this.options,r=t.onCacheChange,o=t.onCacheHit,n=this.keys[0],i=this.values[0];this.values[0]=i.then(function(t){return A.shouldUpdateOnHit&&o(A,A.options,e),A.shouldUpdateOnChange&&r(A,A.options,e),t;},function(e){var t=A.getKeyIndex(n);throw-1!==t&&(A.keys.splice(t,1),A.values.splice(t,1)),e;});},e;}(),t0=oF("ibhuk");const iy=/^~(?=$|\/|\\)/,{appendFile:im,readFile:iw,writeFile:ib}=r5.promises,iR=F("~/.bashrc"),iD=N(L,{isPromise:!0});t1={};const iS="win32"!==r8.platform(),iv=r8.release(),ik=(e="",A="")=>/1\d+\.\d+/.test(e)&&+A>=17134.1184;t1=function(e){return iS?e.replace(/(\s+)/g,"\\$1"):ik(.../(\d+\.\d+)\.(\d+)/.exec(iv).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,A;e=oF("sOzdu"),A=function(e){return e.split("").reverse().join("");},t2=function(t,r,o){var n;return(null==r&&(r="'"),null==o&&(o="\\"),"string"!=typeof t)?t:(n=RegExp("(["+e(r)+"])(?!"+e(o)+")","g"),A(A(t).replace(n,"$1"+o)));};}.call(t2={});const{appendFile:iN}=r5.promises;tB=oF("k1l4q"),tI=oF("dKklS"),td=oF("pcnv8");const{appendFile:iF}=r5.promises,iL=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/];t4=oF("5FRs7"),function(){oF("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(t9={}),t8={},t8=oF("2KdLC"),t3={},t3={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"}}}},td=oF("pcnv8"),t5={},t6=oF("51NgG"),t7=oS.env.npm_package_json,rA=!!((re=oS.env.npm_config_user_agent)&&re.startsWith("npm")),rt=!!(t7&&t7.endsWith("package.json")),rr=rA||rt,ro=!!(re&&re.startsWith("yarn")),rn=rr||ro,ri=r8.homedir(),rs=process.env.XDG_CONFIG_HOME||r3.join(ri,".config","simple-update-notifier"),ra=function(e){return r3.join(rs,"".concat(e.replace("@","").replace("/","__"),".json"));},rl=function(){r5.existsSync(rs)||r5.mkdirSync(rs,{recursive:!0});},rc=function(e){var A=ra(e);try{if(!r5.existsSync(A))return;return JSON.parse(r5.readFileSync(A,"utf8")).lastUpdateCheck;}catch(e){return;}},rE=function(e){var A=ra(e);r5.writeFileSync(A,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},rg=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){oe.get(t,function(t){var o="";t.on("data",function(e){return o+=e;}),t.on("end",function(){try{var t=JSON.parse(o)[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);});})];});});},ru=function(e){var A=e.pkg,t=e.updateCheckInterval,r=void 0===t?864e5:t,o=e.distTag,n=void 0===o?"latest":o,i=e.alwaysRun,s=e.debug;return Y(void 0,void 0,void 0,function(){var e,t;return J(this,function(o){switch(o.label){case 0:if(rl(),e=rc(A.name),!(i||!e||ethis.__opts.progressThrottle)&&(this.__opts.progressThrottle=this.__defaultOpts.progressThrottle),this.url=A||this.url,this.__reqOptions=this.__getReqOptions(this.__opts.method,this.url,this.__opts.headers),this.__initProtocol(this.url);}},{key:"getOptions",value:function(){return this.__opts;}},{key:"getMetadata",value:function(){return this.__opts.metadata;}},{key:"getStats",value:function(){return{total:this.__total,name:this.__fileName,downloaded:this.__downloaded,progress:this.__progress,speed:this.__statsEstimate.bytes};}},{key:"getTotalSize",value:function(){var e=this;return new Promise(function(A,t){var r=function(A){e.__initProtocol(A);var t=Object.assign({},e.__headers);t.hasOwnProperty("range")&&delete t.range;var r=e.__getReqOptions("HEAD",A,t);return Object.assign({},e.__reqOptions,r);},o=function(n,i){var s=e.__protocol.request(i,function(i){if(e.__isRequireRedirect(i)){var s=/^https?:\/\//.test(i.headers.location)?i.headers.location:new oC.URL(i.headers.location,n).href;return e.emit("redirected",s,n),o(s,r(s));}return 200===i.statusCode?void A({name:e.__getFileNameFromHeaders(i.headers,i),total:parseInt(i.headers["content-length"])||null}):t(Error("Response status was "+i.statusCode));});s.on("error",function(e){return t(e);}),s.on("timeout",function(){return t(Error("timeout"));}),s.on("uncaughtException",function(e){return t(e);}),s.end();};o(e.url,r(e.url));});}},{key:"getResumeState",value:function(){return{downloaded:this.__downloaded,filePath:this.__filePath,fileName:this.__fileName,total:this.__total};}},{key:"resumeFromFile",value:function(e){var A=this,t=1=s))return this.emit("skip",{totalSize:this.__total,fileName:this.__fileName,filePath:this.__filePath,downloadedSize:i}),this.__setState(this.__states.SKIPPED),A(!0);}this.__fileStream=rB.createWriteStream(this.__filePath,{});}this.emit("download",{fileName:this.__fileName,filePath:this.__filePath,totalSize:this.__total,isResumed:this.__isResumed,downloadedSize:this.__downloaded}),this.__retryCount=0,this.__isResumed=!1,this.__isRedirected=!1,this.__setState(this.__states.DOWNLOADING),this.__statsEstimate.time=new Date(),this.__statsEstimate.throttleTime=new Date(),o.on("data",function(e){return r.__calculateStats(e.length);}),this.__pipes.forEach(function(e){o.pipe(e.stream,e.options),o=e.stream;}),o.pipe(this.__fileStream),o.on("error",this.__onError(A,t)),this.__fileStream.on("finish",this.__onFinished(A,t)),this.__fileStream.on("error",this.__onError(A,t));}},{key:"__hasFinished",value:function(){return!this.__isAborted&&-1===[this.__states.PAUSED,this.__states.STOPPED,this.__states.RETRY,this.__states.FAILED,this.__states.RESUMED].indexOf(this.state);}},{key:"__isRequireRedirect",value:function(e){return 300e.statusCode&&e.headers.hasOwnProperty("location")&&e.headers.location;}},{key:"__onFinished",value:function(e,A){var t=this;return function(){t.__fileStream.close(function(r){if(r)return A(r);if(t.__hasFinished()){var o=!!t.__total&&t.__downloaded!==t.__total;if(o&&t.__isResumable&&t.__opts.resumeOnIncomplete&&t.__resumeRetryCount<=t.__opts.resumeOnIncompleteMaxRetry)return t.__resumeRetryCount++,t.emit("warning",Error("uncomplete download, retrying")),t.resume();t.__setState(t.__states.FINISHED),t.__pipes=[],t.emit("end",{fileName:t.__fileName,filePath:t.__filePath,totalSize:t.__total,incomplete:o,onDiskSize:t.__getFilesizeInBytes(t.__filePath),downloadedSize:t.__downloaded});}return e(t.__downloaded===t.__total);});};}},{key:"__closeFileStream",value:function(){var e=this;return this.__fileStream?new Promise(function(A,t){e.__fileStream.close(function(e){return e?t(e):A(!0);});}):Promise.resolve(!0);}},{key:"__onError",value:function(e,A){var t=this,r=!!(2=(void 0===n?999:n)?Promise.reject(A||Error("reached the maximum retries")):(this.__retryCount++,this.__setState(this.__states.RETRY),this.emit("retry",this.__retryCount,this.__opts.retry,A),this.__response&&(this.__response.unpipe(),this.__pipes.forEach(function(e){return e.stream.unpipe();})),this.__fileStream&&this.__fileStream.removeAllListeners(),this.__requestAbort(),this.__closeFileStream().then(function(){return new Promise(function(A){return e.__retryTimeout=setTimeout(function(){return A(0this.__opts.progressThrottle)&&(this.__statsEstimate.throttleTime=A,this.emit("progress.throttled",this.getStats())),this.emit("progress",this.getStats()));}},{key:"__setState",value:function(e){this.state=e,this.emit("stateChanged",this.state);}},{key:"__getReqOptions",value:function(e,A){var t=2this.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 i9 extends Error{constructor(e){super("Unexpected HTTP response: "+e),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype);}}rv.HTTPError=i9;const i8="win32"===process.platform,i3="darwin"===process.platform;rv.downloadTool=function(e,A,t,r){return rU(this,void 0,void 0,function*(){A=A||iz.join(eU(),i2.default()),yield iW.mkdirP(iz.dirname(A)),iq.debug("Downloading "+e),iq.debug("Destination "+A);let o=e_("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),n=e_("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20),i=new rx.RetryHelper(3,o,n);return yield i.execute(()=>rU(this,void 0,void 0,function*(){return yield function(e,A,t,r){return rU(this,void 0,void 0,function*(){if(ij.existsSync(A))throw Error(`Destination file path ${A} already exists`);let o=new iZ.HttpClient("actions/tool-cache",[],{allowRetries:!1});t&&(iq.debug("set auth"),void 0===r&&(r={}),r.authorization=t);let n=yield o.get(e,r);if(200!==n.message.statusCode){let A=new i9(n.message.statusCode);throw iq.debug(`Failed to download from "${e}". Code(${n.message.statusCode}) Message(${n.message.statusMessage})`),A;}let i=i1.promisify(i0.pipeline),s=e_("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>n.message)(),a=!1;try{return yield i(s,ij.createWriteStream(A)),iq.debug("download complete"),a=!0,A;}finally{if(!a){iq.debug("download failed");try{yield iW.rmRF(A);}catch(e){iq.debug(`Failed to delete '${A}'. ${e.message}`);}}}});}(e,A||"",t,r);}),e=>!(e instanceof i9)||!e.httpStatusCode||!(e.httpStatusCode<500)||408===e.httpStatusCode||429===e.httpStatusCode);});},rv.extract7z=function(e,A,t){return rU(this,void 0,void 0,function*(){oo.ok(i8,"extract7z() not supported on current OS"),oo.ok(e,'parameter "file" is required'),A=yield eS(A);let r=process.cwd();if(process.chdir(A),t)try{let A=iq.isDebug()?"-bb1":"-bb0",r=["x",A,"-bd","-sccUTF-8",e];yield rT.exec(`"${t}"`,r,{silent:!0});}finally{process.chdir(r);}else{let t=iz.join(rk,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,""),o=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),n=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=`& '${t}' -Source '${o}' -Target '${n}'`;try{let e=yield iW.which("powershell",!0);yield rT.exec(`"${e}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",i],{silent:!0});}finally{process.chdir(r);}}return A;});},rv.extractTar=function(e,A,t="xz"){return rU(this,void 0,void 0,function*(){let r;if(!e)throw Error("parameter 'file' is required");A=yield eS(A),iq.debug("Checking tar --version");let o="";yield rT.exec("tar --version",[],{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>o+=e.toString(),stderr:e=>o+=e.toString()}}),iq.debug(o.trim());let n=o.toUpperCase().includes("GNU TAR");r=t instanceof Array?t:[t],iq.isDebug()&&!t.includes("v")&&r.push("-v");let i=A,s=e;return i8&&n&&(r.push("--force-local"),i=A.replace(/\\/g,"/"),s=e.replace(/\\/g,"/")),n&&(r.push("--warning=no-unknown-keyword"),r.push("--overwrite")),r.push("-C",i,"-f",s),yield rT.exec("tar",r),A;});},rv.extractXar=function(e,A,t=[]){return rU(this,void 0,void 0,function*(){let r;oo.ok(i3,"extractXar() not supported on current OS"),oo.ok(e,'parameter "file" is required'),A=yield eS(A),(r=t instanceof Array?t:[t]).push("-x","-C",A,"-f",e),iq.isDebug()&&r.push("-v");let o=yield iW.which("xar",!0);return yield rT.exec(`"${o}"`,Array.from(new Set(r))),A;});},rv.extractZip=function(e,A){return rU(this,void 0,void 0,function*(){if(!e)throw Error("parameter 'file' is required");return A=yield eS(A),i8?yield function(e,A){return rU(this,void 0,void 0,function*(){let t=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),r=A.replace(/'/g,"''").replace(/"|\n|\r/g,""),o=yield iW.which("pwsh",!1);if(o){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 $_ } } ;`;iq.debug("Using pwsh at path: "+o),yield rT.exec(`"${o}"`,["-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);iq.debug("Using powershell at path: "+A),yield rT.exec(`"${A}"`,["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e]);}});}(e,A):yield function(e,A){return rU(this,void 0,void 0,function*(){let t=yield iW.which("unzip",!0),r=[e];iq.isDebug()||r.unshift("-q"),r.unshift("-o"),yield rT.exec(`"${t}"`,r,{cwd:A});});}(e,A),A;});},rv.cacheDir=function(e,A,t,r){return rU(this,void 0,void 0,function*(){if(t=iK.clean(t)||t,r=r||i$.arch(),iq.debug(`Caching tool ${A} ${t} ${r}`),iq.debug("source dir: "+e),!ij.statSync(e).isDirectory())throw Error("sourceDir is not a directory");let o=yield ev(A,t,r);for(let A of ij.readdirSync(e)){let t=iz.join(e,A);yield iW.cp(t,o,{recursive:!0});}return ek(A,t,r),o;});},rv.cacheFile=function(e,A,t,r,o){return rU(this,void 0,void 0,function*(){if(r=iK.clean(r)||r,o=o||i$.arch(),iq.debug(`Caching tool ${t} ${r} ${o}`),iq.debug("source file: "+e),!ij.statSync(e).isFile())throw Error("sourceFile is not a file");let n=yield ev(t,r,o),i=iz.join(n,A);return iq.debug("destination file "+i),yield iW.cp(e,i),ek(t,r,o),n;});},rv.find=function(e,A,t){if(!e)throw Error("toolName parameter is required");if(!A)throw Error("versionSpec parameter is required");t=t||i$.arch(),eN(A)||(A=eF(eD(e,t),A));let r="";if(A){A=iK.clean(A)||"";let o=iz.join(eL(),e,A,t);iq.debug("checking cache: "+o),ij.existsSync(o)&&ij.existsSync(`${o}.complete`)?(iq.debug(`Found tool in cache ${e} ${A} ${t}`),r=o):iq.debug("not found");}return r;},rv.findAllVersions=eD,rv.getManifestFromRepo=function(e,A,t,r="master"){return rU(this,void 0,void 0,function*(){let o=[],n=`https://api.github.com/repos/${e}/${A}/git/trees/${r}`,i=new iZ.HttpClient("tool-cache"),s={};t&&(iq.debug("set auth"),s.authorization=t);let a=yield i.getJson(n,s);if(!a.result)return o;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{o=JSON.parse(c);}catch(e){iq.debug("Invalid json");}}return o;});},rv.findFromManifest=function(e,A,t,r=i$.arch()){return rU(this,void 0,void 0,function*(){return yield iX._findMatch(e,A,t,r);});},rv.isExplicitVersion=eN,rv.evaluateVersions=eF,tI=oF("dKklS"),td=oF("pcnv8"),tV=oF("6vN83"),t0=oF("ibhuk"),rR=oF("drEX5"),Object.defineProperty(rJ={},"__esModule",{value:!0}),rJ.retryAsPromised=rJ.TimeoutError=void 0;class i5 extends Error{constructor(e,A){super(e),this.name="TimeoutError",this.previous=A;}}rJ.TimeoutError=i5,rJ.retryAsPromised=eT,rJ.default=eT,rP=oF("g9WSN"),td=oF("pcnv8"),(th=rH||(rH={}))[th.Tar=0]="Tar",th[th.TarGz=1]="TarGz",th[th.TarXz=2]="TarXz",th[th.Zip=3]="Zip",th[th.SevenZip=4]="SevenZip",tB=oF("k1l4q");const i6=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||r5.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,t)=>new Promise((r,o)=>A.mkdir(e,t,(e,A)=>e?o(e):r(A))),e.stat=e.stat||t.stat||r5.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||r5.statSync,e.mkdirSync=e.mkdirSync||t.mkdirSync||r5.mkdirSync,A;},i7=(e,A,t)=>{let r=(0,r3.dirname)(e),o={...i6(A),recursive:!1};if(r===e)try{return o.mkdirSync(e,o);}catch(e){if(e&&"EISDIR"!==e.code)throw e;return;}try{return o.mkdirSync(e,o),t||e;}catch(A){if(A&&"ENOENT"===A.code)return i7(e,o,i7(r,o,t));if(A&&"EEXIST"!==A.code&&A&&"EROFS"!==A.code)throw A;try{if(!o.statSync(e).isDirectory())throw A;}catch(e){throw A;}}},se=Object.assign(async(e,A,t)=>{let r=i6(A);r.recursive=!1;let o=(0,r3.dirname)(e);return o===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 se(o,r).then(A=>se(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:i7}),sA=async(e,A,t)=>{if(t!==A)return e.statAsync(A).then(e=>e.isDirectory()?t:void 0,t=>t&&"ENOENT"===t.code?sA(e,(0,r3.dirname)(A),A):void 0);},st=(e,A,t)=>{if(t!==A)try{return e.statSync(A).isDirectory()?t:void 0;}catch(t){return t&&"ENOENT"===t.code?st(e,(0,r3.dirname)(A),A):void 0;}},sr=(e,A)=>{let t=i6(A);if(t.recursive=!0,(0,r3.dirname)(e)===e)return t.mkdirSync(e,t);let r=st(t,e);try{return t.mkdirSync(e,t),r;}catch(A){if(A&&"ENOENT"===A.code)return i7(e,t);throw A;}},so=Object.assign(async(e,A)=>{let t={...i6(A),recursive:!0};return(0,r3.dirname)(e)===e?await t.mkdirAsync(e,t):sA(t,e).then(A=>t.mkdirAsync(e,t).then(e=>A||e).catch(A=>{if(A&&"ENOENT"===A.code)return se(e,t);throw A;}));},{sync:sr}),sn=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,si=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,r3.resolve)(e),"win32"===sn){let{root:A}=(0,r3.parse)(e);if(/[*|"<>?:]/.test(e.substring(A.length)))throw Object.assign(Error("Illegal characters in path."),{path:e,code:"EINVAL"});}return e;},ss=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,"").split("."),sa=+ss[0]>10||10==+ss[0]&&+ss[1]>=12,sl=sa?e=>i6(e).mkdirSync===r5.mkdirSync:()=>!1,sc=Object.assign(sa?e=>i6(e).mkdir===r5.mkdir:()=>!1,{sync:sl}),sE=(e,A)=>{e=si(e);let t=i6(A);return sl(t)?sr(e,t):i7(e,t);},sg=Object.assign(async(e,A)=>{e=si(e);let t=i6(A);return sc(t)?so(e,t):se(e,t);},{mkdirpSync:sE,mkdirpNative:so,mkdirpNativeSync:sr,mkdirpManual:se,mkdirpManualSync:i7,sync:sE,native:so,nativeSync:sr,manual:se,manualSync:i7,useNative:sc,useNativeSync:sl});t0=oF("ibhuk"),rR=oF("drEX5"),rT=oF("ca0ts"),tI=oF("dKklS"),td=oF("pcnv8"),tV=oF("6vN83"),t0=oF("ibhuk"),rR=oF("drEX5"),rT=oF("ca0ts"),td=oF("pcnv8"),rV=e=>{if("string"!=typeof e)return!1;let A=e.trim();if(A.includes(" "))return!1;try{return new oC.URL(A),!0;}catch{return!1;}},rq=async e=>{if(!rV(e))return!1;let A=await ez(e,"HEAD");return!!A||!!(A=await ez(e,"GET"));},rD=oF("8YrRN"),rW=oF("fYuCK"),rj=oF("2owFL");const su=/v?(\d\S*)/,sh={llvm:e2(),clangtidy:e2(),clangformat:e2(),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:ed()?"1.11.0-4":"1.11.0",gcc:ed()?"13.2.1-3":"13",powershell:"7.4.5"},sQ={pip:"22.2.0",python:"3.7.9"},sC={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"}},sI=N(An,{isPromise:!0});td=oF("pcnv8"),Object.defineProperty(rX={},"__esModule",{value:!0}),rX.getUbuntuVersion=void 0,rX.getUbuntuVersion=Aa;const sd=N(Al,{isPromise:!0}),sB=N(Ah,{isPromise:!0}),sf=N(AQ,{isPromise:!0}),sp=N(AC,{isPromise:!0});td=oF("pcnv8"),rR=oF("drEX5"),t0=oF("ibhuk");const sy=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"]]]),sm=N(function(){if("darwin"!==process.platform)return[];let{version:e}=function(e){e=+(e||l(oD).release()).split(".")[0];let[A,t]=sy.get(e)||["Unknown",""];return{name:A,version:t};}();return e.split(".").map(e=>Number.parseInt(e,10));});tI=oF("dKklS"),td=oF("pcnv8"),t0=oF("ibhuk"),rR=oF("drEX5"),rD=oF("8YrRN"),r$=oF("gWZ4x"),rT=oF("ca0ts"),td=oF("pcnv8"),rz=r3.resolve(__dirname,"../../src/gcc");const sw={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"}};r$=oF("gWZ4x"),rj=oF("2owFL"),td=oF("pcnv8"),rR=oF("drEX5"),rR=oF("drEX5"),rZ=r3.resolve(__dirname,"../../src/kcov"),tI=oF("dKklS"),td=oF("pcnv8"),t0=oF("ibhuk"),rR=oF("drEX5"),tV=oF("6vN83"),tB=oF("k1l4q"),td=oF("pcnv8");class sb extends Error{constructor(e){super(e),this.name="TimeoutError";}}class sR extends Error{constructor(e){super(),this.name="AbortError",this.message=e;}}const sD=e=>void 0===globalThis.DOMException?new sR(e):new DOMException(e),sS=e=>{let A=void 0===e.reason?sD("This operation was aborted."):e.reason;return A instanceof Error?A:sD(A);};rR=oF("drEX5"),td=oF("pcnv8"),tB=oF("k1l4q");const sv=oS.env["ProgramFiles(x86)"],sk=[oS.env["ProgramFiles(x86)"],oS.env.ProgramFiles],sN=["Enterprise","Professional","Community","BuildTools"],sF=["2022","2019","2017"],sL={2022:"17.0",2019:"16.0",2017:"15.0",2015:"14.0",2013:"12.0"};rK=AJ;const sU=`${sv}\\Microsoft Visual Studio\\Installer`;r0=AP,r1=function(e,A,t,r,o,n){if("win32"!=oS.platform){tB.info("This is not a Windows virtual environment, bye!");return;}oS.env.PATH+=r3.delimiter+sU;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),o&&!0===JSON.parse(o)&&s.push("-vcvars_spectre_libs=spectre");let a=`"${AP(n)}" ${s.join(" ")}`;tB.debug("vcvars command-line: "+a);let l=of.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(tB.startGroup("Environment variables"),g)){if(!e.includes("="))continue;let[A,t]=e.split("=");t!==h[A]&&(tB.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(";")),tB.exportVariable(A,t));}tB.endGroup(),tB.info("Configured Developer Command Prompt");},t0=oF("ibhuk");const s_=12e5;(tQ=r2||(r2={}))[tQ.All=0]="All",tQ[tQ.ClangFormat=1]="ClangFormat",tQ[tQ.Core=2]="Core",td=oF("pcnv8"),rR=oF("drEX5"),rS=oF("aTQrN");const sT=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"]),sx=new Set(["10.0.1","15.0.5","15.0.6","17.0.5"]),sM=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"]),sO=new Map(),sG={"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"},sY="18.1.8";r4=r3.resolve(__dirname,"../../src/llvm");const sJ=N(A2,{isPromise:!0}),sP=N(A9,{isPromise:!0}),sH=N(A8,{isPromise:!0});tI=oF("dKklS"),rR=oF("drEX5"),td=oF("pcnv8"),t0=oF("ibhuk"),r9=r3.resolve(__dirname,"../../src/msvc"),rR=oF("drEX5"),td=oF("pcnv8"),rR=oF("drEX5"),rR=oF("drEX5"),td=oF("pcnv8"),t0=oF("ibhuk"),rR=oF("drEX5");let sV=!1;const sq={nala:tA,cmake:e$,ninja:AT,python:e4,vcpkg:ta,bazel:ew,conan:function(e,A,t){return AE("conan",e);},meson:function(e,A,t){return AE("meson",e);},gcovr:function(e,A,t){return AE("gcovr",e);},opencppcoverage:tt,llvm:A1,gcc:Ak,choco:ef,brew:eh,powershell:tn,ccache:function(e,A,t){switch(process.platform){case"win32":return ep("ccache",e);case"darwin":return eC("ccache",e);case"linux":if(ed())return eb("ccache",e);if(eI())return ey([{name:"ccache",version:e}]);if(eB())return es([{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 ep("sccache",e);case"linux":case"darwin":return eC("sccache",e);default:throw Error("Unsupported platform");}},doxygen:AR,graphviz:Ay,cppcheck:Af,clangtidy:function(e,A,t){return A4(e,A,t);},clangformat:function(e,A,t){return A4(e,A,t,r2.ClangFormat);},msvc:A7,vcvarsall:AH,kcov:AY,make:A6,task:function(e,A,t){return eV("task",e,ts,A,t);},sevenzip:ex},sW=Object.keys(sq),sj=["compiler","architecture","timeout",...sW],sX={rcPath:F("~/.cpprc"),guard:"cpp"};tB=oF("k1l4q"),td=oF("pcnv8"),rj=oF("2owFL"),tg(process.argv).then(e=>{process.exitCode=e;}).catch(e=>{(0,td.error)("main() panicked!"),(0,td.error)(e),process.exitCode=1;}); //# sourceMappingURL=setup-cpp.js.map