Template
1
0
mirror of https://github.com/aminya/setup-cpp synced 2024-11-30 21:22:30 +08:00
setup-cpp/dist/legacy/setup-cpp.js

72 lines
690 KiB
JavaScript
Raw Normal View History

2023-07-16 06:41:58 +08:00
#!/usr/bin/env node
function _classPrivateMethodInitSpec(e,a){_checkPrivateRedeclaration(e,a),a.add(e);}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");}function _classPrivateFieldGet(s,a){return s.get(_assertClassBrand(s,a));}function _classPrivateFieldSet(s,a,r){return s.set(_assertClassBrand(s,a),r),r;}function _assertClassBrand(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object");}let e,A,t,r,n,o,i,s;function a(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}function l(e){return e&&e.__esModule?e.default:e;}function c(e,A,t){if("function"==typeof A&&(t=A,A={}),!t){if("function"!=typeof Promise)throw TypeError("callback not provided");return new Promise(function(t,r){c(e,A||{},function(e,A){e?r(e):t(A);});});}tB(e,A||{},function(e,r){e&&("EACCES"===e.code||A&&A.ignoreErrors)&&(e=null,r=!1),t(e,r);});}function g(e,A){let t;let r=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void 0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}try{t=tI.sync(e.command,{path:r[tf({env:r})],pathExt:A?rU.delimiter:void 0});}catch(e){}finally{i&&process.chdir(n);}return t&&(t=rU.resolve(o?e.options.cwd:"",t)),t;}function E(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 nF&&1===e&&!A.file?E(A.original,"spawn"):null;}function h(e,A,t){let r=tQ(e,A,t),n=r8.spawn(r.command,r.args,r.options);return tR.hookChildProcess(n,r),n;}function Q(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;}function C(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 I(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe;}function d(e){return I(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState;}async function B(e,A){if(!e)throw Error("Expected a stream");let{maxBuffer:t}=A={maxBuffer:1/0,...A},r=tL(A);return await new Promise((A,n)=>{let o=e=>{e&&r.getBufferedLength()<=tN.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),n(e);};(async()=>{try{await ow(e,r),A();}catch(e){o(e);}})(),r.on("data",()=>{r.getBufferedLength()>t&&o(new ob());});}),r.getBufferedValue();}function f(e,A,t){let r;let n=oK(e,A,t),o=oG(e,A),i=oJ(e,A);oz(i,n.options),oB(n.options);try{r=l(r6).spawn(n.file,n.args,n.options);}catch(A){let e=new(l(r6).ChildProcess)();return oM(e,Promise.reject(n4({error:A,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),e;}let s=o_(r),a=od(r,n.options,s),c=of(r,n.options,a),g={isCanceled:!1};r.kill=og.bind(null,r.kill.bind(r)),r.cancel=oC.bind(null,r,g);let E=tD(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,E]=await oU(r,n.options,c),u=o0(n.options,a),h=o0(n.options,l),Q=o0(n.options,E);if(e||0!==A||null!==t){let a=n4({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:o,escapedCommand:i,parsed:n,timedOut:s,isCanceled:g.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)return a;throw a;}return{command:o,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});return ok(r,n.options),r.all=oN(r,n.options),om(r),oM(r,E),r;}function p(e,A,t){let r;let n=oK(e,A,t),o=oG(e,A),i=oJ(e,A);oz(i,n.options);let s=oS(n.options);try{r=l(r6).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){throw n4({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=o0(n.options,r.stdout,r.error),c=o0(n.options,
if [ -z "\${${e}}" ]; then export ${e}="${r}"; fi
`),(0,t2.info)(`if not defined ${e} then ${e}="${r}" was added to "${iX}`)):(await(0,ta.appendFile)(iX,`
export ${e}="${r}"
`),(0,t2.info)(`${e}="${r}" was added to "${iX}`));return;}process.env[e]=r;}async function J(e){switch(process.platform){case"win32":await _(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,t2.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":await H(),await(0,ta.appendFile)(iX,`
export PATH="${e}:$PATH"
`),(0,t2.info)(`"${e}" was added to "${iX}"`);return;default:return;}}async function H(){if(iz)return;let e=`
2023-07-16 06:41:58 +08:00
# source .cpprc if SOURCE_CPPRC is not set to 0
if [[ "$SOURCE_CPPRC" != 0 && -f "${iX}" ]]; then source "${iX}"; fi
`;try{await Promise.all([P(),q(e),V(e)]);}catch(A){(0,tA.warning)(`Failed to add ${e} to .profile or .bashrc. You should add it manually: ${A}`);}iz=!0;}async function P(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,t8.pathExists)(iX))&&!(await(0,ta.readFile)(iX,"utf8")).includes(e)&&(await(0,ta.appendFile)(iX,`
${e}
`),(0,t2.info)(`Added ${e} to ${iX}`));}async function V(e){let A=S("~/.bashrc");(await(0,t8.pathExists)(A))&&!(await(0,ta.readFile)(A,"utf-8")).includes(e)&&(await(0,ta.appendFile)(A,e),(0,t2.info)(`${e} was added to ${A}`));}async function q(e){let A=S("~/.profile");(await(0,t8.pathExists)(A))&&!(await(0,ta.readFile)(A,"utf-8")).includes(e)&&(await(0,ta.appendFile)(A,e),(0,t2.info)(`${e} was added to ${A}`));}async function W(){if(await(0,t8.pathExists)(iX)){let e=[...new Set((await(0,ta.readFile)(iX,"utf-8")).split("\n").reverse())].reverse();await(0,ta.writeFile)(iX,e.join("\n")),await D(iX);}}async function j(e,A=!1){let t;let r=z()?"nala":"apt-get";for(let{name:A,version:t}of e)(0,tA.info)(`Installing ${A} ${null!=t?t:""} via ${r}`);process.env.DEBIAN_FRONTEND="noninteractive",(!iZ||A)&&(Z(r),iZ=!0),iK||(await K(r),iK=!0);let n=[...new Set(e.flatMap(e=>{var A;return null!==(A=e.repositories)&&void 0!==A?A:[];}))];if(0!==n.length){for(let e of n)m("add-apt-repository",["-y",e]);Z(r);}let o=await Promise.all(e.map(e=>X(e.name,e.version)));try{m(r,["install","--fix-broken","-y",...o]);}catch(e){if("stderr"in e){let A=e.stderr;i0.some(e=>A.includes(e))&&((0,tA.warning)(`Failed to install packages ${o}. Retrying...`),m(r,["install","--fix-broken","-y",...o]));}else throw e;}return{binDir:"/usr/bin/"};}async function $(e,A){if(void 0!==A&&""!==A){let{stdout:t}=await f("apt-cache",["search","--names-only",`^${(0,t4.default)(e)}-${(0,t4.default)(A)}$`]);if(""!==t.trim())return 0;try{let{stdout:t}=await f("apt-cache",["show",`${e}=${A}`]);if(""===t.trim())return 1;}catch{}}try{let{stdout:A}=await f("apt-cache",["show",e]);if(""!==A.trim())return 2;}catch{}return 3;}async function X(e,A){switch(await $(e,A)){case 0:return`${e}-${A}`;case 1:return`${e}=${A}`;case 2:return e;default:throw Error(`Could not find package ${e} ${null!=A?A:""}`);}}function z(){return null!==l(ti).sync("nala",{nothrow:!0});}function Z(e){m(e,"nala"!==e?["update","-y"]:["update"]);}async function K(e){m(e,["install","--fix-broken","-y","software-properties-common","apt-utils","ca-certificates","gnupg"]);let A=[eA(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),eA(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")];"nala"===e&&A.push(O("LANG","C.UTF-8",{shouldAddOnlyIfNotDefined:!0}),O("LC_ALL","C.UTF-8",{shouldAddOnlyIfNotDefined:!0})),await Promise.all(A);}function ee(){m("gpg",["-k"]);}async function eA(e,A,t="keyserver.ubuntu.com"){try{let r="/etc/apt/trusted.gpg.d/"+A;return(await(0,t8.pathExists)(r))||(ee(),await Promise.all(e.map(async e=>{await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--keyserver",t,"--recv-keys",e]),await w("chmod",["644",r]);}))),r;}catch(e){(0,tA.warning)(`Failed to add apt key via server ${t}: ${e}`);return;}}async function et(e,A){let t="/etc/apt/trusted.gpg.d/"+e;return(await(0,t8.pathExists)(t))||(ee(),await j([{name:"curl"},{name:"ca-certificates"}],void 0),await f("curl",["-s",A,"-o","/tmp/"+e]),m("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+t,"--import","/tmp/"+e]),m("chmod",["644",t])),t;}async function er(e,A,t=40){te.GITHUB_ACTIONS?await w("update-alternatives",["--install","/usr/bin/"+e,e,A,t.toString()]):(await H(),await(0,ta.appendFile)(iX,`
if [ $UID -eq 0 ]; then update-alternatives --install /usr/bin/${e} ${e} ${A} ${t}; fi
2024-08-08 04:16:16 +08:00
`));}async function en(e){try{let{stdout:A}=await f("dpkg",["-l",e]);if("string"!=typeof A)return!1;return A.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}async function eo(e,t,r){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeof A)return{binDir:A};let n=l(ti).sync("brew",{nothrow:!0});if(null!==n)return{binDir:A=(0,t6.dirname)(n)};let o=l(rU).join((0,rL.tmpdir)(),"setup-cpp","brew");await(0,t7.mkdirP)(o),p("curl",["-LJO","https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh"],{cwd:o});let i=(0,rU.join)(o,"install.sh");return"linux"===process.platform&&(await(0,ta.readFile)(i,"utf-8")).replace("#!/bin/bash",""),p("/bin/bash",[i],{stdio:"inherit",env:{NONINTERACTIVE:"1"}}),A=ei(),await Y(A),{binDir:A};}function ei(){return"linux"===process.platform?"/home/linuxbrew/.linuxbrew/bin/":"/usr/local/bin/";}async function es(e,A,t=[]){(0,t2.info)(`Installing ${e} ${null!=A?A:""} via brew`),i1&&null!==l(ti).sync("brew",{nothrow:!0})||(await eo("","",process.arch),i1=!0);let r=ei();return p((0,t6.join)(r,"brew"),["install",void 0!==A&&""!==A?`${e}@${A}`:e,...t],{stdio:"inherit"}),{binDir:r};}async function ea(e,A,r){var n;if("win32"!==process.platform)return;if("string"==typeof t)return{binDir:t};let o=l(ti).sync("choco",{nothrow:!0});if(null!==o)return{binDir:t=(0,t6.dirname)(o)};let i="powershell.exe",s=l(ti).sync(`${process.env.SystemRoot}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`,{nothrow:!0});null!==s&&(i=s),p(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 Y(a);let c=l(ti).sync("choco",{nothrow:!0});if(t=null!==c?(0,t6.dirname)(c):`${null!==(n=process.env.ChocolateyInstall)&&void 0!==n?n:"C:/ProgramData/chocolatey"}/bin`,await(0,t8.pathExists)(t))return{binDir:t};}async function el(e,A,t=[]){var r;(0,tA.info)(`Installing ${e} ${null!=A?A:""} via chocolatey`),i2&&null!==l(ti).sync("choco",{nothrow:!0})||(await ea("","",process.arch),i2=!0);let n=process.env.PATH,o={...process.env};if(o.TMP=void 0,o.TEMP=void 0,o.Path=void 0,o.PATH=n,void 0!==A&&""!==A)p("choco",["install","-y",e,"--version="+A,...t],{env:o,extendEnv:!1,stdio:"inherit"});else try{p("choco",["install","-y",e,...t],{env:o,extendEnv:!1,stdio:"inherit"});}catch(A){if(A.message.includes("exit code 3010"))(0,tA.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 Y(i),{binDir:i};}async function ec(e){for(let{name:A,version:t}of e)(0,tA.info)(`Installing ${A} ${null!=t?t:""} via dnf`);return m("dnf",["-y","install",...(await Promise.all(e.map(e=>eg(e.name,e.version))))]),{binDir:"/usr/bin/"};}async function eg(e,A){if(void 0!==A&&""!==A){let{stdout:t}=await f("dnf",["search","-q",`${e}-${A}`]);if(""!==t.trim())return`${e}-${A}`;{let{stdout:t}=await f("dnf",["search","-q",`${e}${A}`]);if(""!==t.trim())return`${e}${A}`;(0,tA.warning)(`Failed to install ${e} ${A} via dnf, trying without version`);}}return e;}async function eE(e,A,t){switch(process.platform){case"win32":return el("bazelisk",e);case"darwin":return es("bazelisk",e);case"linux":if(U())throw Error("installing bazel on Arch linux is not supported yet");if(L())return await ec([{name:"dnf-plugins-core"}]),m("dnf",["copr","enable","vbatts/bazel"]),ec([{name:"bazel4"}]);if(T()){let A=await et("bazel-archive-keyring.gpg","https://bazel.build/bazel-release.pub.gpg");return m("bash",["-c",`echo "deb [arch=amd64 signed-by=${A}] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list`]),j([{name:"bazel",version:e}],!0);}throw Error("Unsupported linux distribution");default:throw Error("Unsupported platform");}}async function eu(e,A,t){(0,tA.info)(`Installing ${e} ${null!=A?A:""} via pacman`);let r="
2023-07-16 06:41:58 +08:00
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.
2023-07-16 06:41:58 +08:00
--compiler the <compiler> to install.
You can specify the version instead of specifying just the name e.g: --compiler 'llvm-13.0.0'
--$tool_name pass "true" or pass the <version> you would like to install for this tool. e.g. --conan true or --conan "1.42.1"
All the available tools:
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(A=s.architecture)&&void 0!==A?A:process.arch,c=null!==(t=process.env.SETUP_CPP_DIR)&&void 0!==t?t:S("~"),g=[],E=[],u=tn.create({autoloadLocales:!0});tn.addLocale(l(to)),tt.addLocale(l(tr));let h=await sL();if(!function(e,A){let t=A.filter(A=>void 0!==e[A]),r=t.filter(A=>!e8(e[A])),n=r.length>=1?e[r[0]]:"true";if(r.some(A=>e[A]!==n))return!1;for(let A of t)e[A]=n;return!0;}(s,["llvm","clangtidy","clangformat"]))return(0,tA.error)("The same version must be used for llvm, clangformat and clangtidy"),1;U()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,tA.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eu("python-pygments"));let Q=!1,C=!1;for(let e of s6){if(te.isCI&&0!==E.length){C=!0;break;}let A=s[e];void 0!==A&&(n=Date.now(),Q=await AF(e,A,h,a,c,g,E,6e4*Number.parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),o=Date.now(),(0,tA.info)("took "+(u.format(n,o)||"0 seconds")));}if(!C){let e=s.compiler;if(void 0!==e){let A=Date.now();await A9(e,h,c,a,g,Q,E);let t=Date.now();(0,tA.info)("took "+(u.format(A,t)||"0 seconds"));}}if(await W(),0===g.length&&0===E.length)return(0,tA.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of g)(0,tA.success)(e);for(let e of E)(0,tA.error)(e);if((0,tA.info)("setup-cpp finished"),!te.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,tA.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,tA.warning)("Run `source ~/.cpprc` or restart your shell to update the environment.");}return await i,0===E.length?0:1;}var A5,A6,A7,te,tA,tt,tr,tn,to,ti,ts,ta,tl,tc,tg,tE,tu,th,tQ,tC,tI,td,tB,tf,tp,ty,tm,tw,tb,tR,tD,tS,tv,tk,tN,tF,tL,tU,tT,tx,tM,t_,tO,tY,tG,tJ,tH,tP,tV,tq,tW,tj,t$,tX,tz,tZ,tK,t0,t1,t2,t4,t8,t9,t3,t5,t6,t7,re,rA,rt,rr,rn,ro,ri,rs,ra,rl,rc,rg,rE,ru,rh,rQ,rC,rI,rd,rB,rf,rp,ry,rm,rw,rb,rR,rD,rS,rv,rk,rN,rF,rL=require("os"),rU=require("path"),rT=require("fs"),rx=require("crypto"),rM=require("http"),r_=require("https"),rO=require("net"),rY=require("tls"),rG=require("events"),rJ=require("assert"),rH=require("util"),rP=require("stream"),rV=require("buffer"),rq=require("querystring"),rW=require("stream"),rj=require("util"),r$=require("events"),rX=require("perf_hooks"),rz=require("worker_threads"),rZ=require("async_hooks"),rK=require("console"),r0=require("url"),r1=require("zlib"),r2=require("string_decoder"),r4=require("fs"),r8=require("child_process"),r9=require("timers"),r3=require("buffer"),r5=require("path"),r6=require("child_process"),r7=require("process"),ne=require("url"),nA=require("os"),nt=require("process"),nr=globalThis,nn={},no={},ni=nr.parcelRequire810d;null==ni&&((ni=function(e){if(e in nn)return nn[e].exports;if(e in no){var A=no[e];delete no[e];var t={id:e,exports:{}};return nn[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){no[e]=A;},nr.parcelRequire810d=ni),(A7=ni.register)("jj6Ot",function(e,A){var t;function r(e){return"string"==typeof e?!!n[e]:"env"in e?n[e.env]&&n[e.env].includes(e.includes):"any"in e?e.any.some(function(e){return!!n[e];}):Object.keys(e).every(function(A){return n[A]===e[A];});}t=ni("7S3Ee");let n=process.env;Object.defineProperty(e.exports,"_vendors",{value:t.map(function(e){return e.constant;})}),e.exports.name=null,e.exports.isPR=null,t.forEach(function(A){let t=(Array.isArray(A.env)?A.env:[A.env]).every(function(e){return r(e);});if(e.exports[A.constant]=t,t)switch(e.exports.name=A.name,typeof A.pr){case"string":e.
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 o(this,void 0,void 0,function*(){let t;C(e);try{t=yield A();}finally{I();}return t;});},e.exports.saveState=function(e,A){if(process.env.GITHUB_STATE)return s.issueFileCommand("STATE",s.prepareKeyValueMessage(e,A));i.issueCommand("save-state",{name:e},a.toCommandValue(A));},e.exports.getState=function(e){return process.env["STATE_"+e]||"";},e.exports.getIDToken=function(e){return o(this,void 0,void 0,function*(){return yield l.OidcClient.getIDToken(e);});},g=ni("ehDLE"),Object.defineProperty(e.exports,"summary",{enumerable:!0,get:function(){return g.summary;}}),g=ni("ehDLE"),Object.defineProperty(e.exports,"markdownSummary",{enumerable:!0,get:function(){return g.markdownSummary;}}),E=ni("a0kJ6"),Object.defineProperty(e.exports,"toPosixPath",{enumerable:!0,get:function(){return E.toPosixPath;}}),Object.defineProperty(e.exports,"toWin32Path",{enumerable:!0,get:function(){return E.toWin32Path;}}),Object.defineProperty(e.exports,"toPlatformPath",{enumerable:!0,get:function(){return E.toPlatformPath;}});}),A7("h5ivc",function(e,A){var t,r,n,o;function i(e,A,t){let r=new a(e,A,t);process.stdout.write(r.toString()+s.EOL);}t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.issue=e.exports.issueCommand=void 0;let s=n(rL);o=ni("fLT2x"),e.exports.issueCommand=i,e.exports.issue=function(e,A=""){i(e,{},A);};class a{constructor(e,A,t){e||(e="missing.command"),this.command=e,this.properties=A,this.message=t;}toString(){var e;let A="::"+this.command;if(this.properties&&Object.keys(this.properties).length>0){A+=" ";let e=!0;for(let t in this.properties)if(this.properties.hasOwnProperty(t)){let r=this.properties[t];r&&(e?e=!1:A+=",",A+=`${t}=${o.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}`);}}return A+("::"+(e=this.message,o.toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")));}}}),A7("fLT2x",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}:{};};}),A7("4pB6l",function(e,A){var t,r,n,o,i;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,
Error Code : ${e.statusCode}
Error Message: ${e.message}`);})).result)||void 0===A?void 0:A.value;if(!r)throw Error("Response json body do not have ID Token field");return r;});}static getIDToken(e){return t(this,void 0,void 0,function*(){try{let A=i.getIDTokenUrl();if(e){let t=encodeURIComponent(e);A=`${A}&audience=${t}`;}o.debug("ID token url is "+A);let t=yield i.getCall(A);return o.setSecret(t),t;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=i;}),A7("jdbFC",function(e,A){var t,r,n,o,i,s,a,l,c,g;t=e.exports&&e.exports.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t);var n=Object.getOwnPropertyDescriptor(A,t);(!n||("get"in n?!A.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return A[t];}}),Object.defineProperty(e,r,n);}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),r=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),n=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&t(A,e,n);return r(A,e),A;},o=e.exports&&e.exports.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let E=n(rM),u=n(r_),h=n(ni("hFsVR")),Q=n(ni("7r7u9"));i=ni("gYyeU"),(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",(g=a||(e.exports.Headers=a={})).Accept="accept",g.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 o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let A=Buffer.alloc(0);this.message.on("data",e=>{A=Buffer.concat([A,e]);}),this.message.on("end",()=>{e(A.toString());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let A=[];this.message.on("data",e=>{A.push(e);}),this.message.on("end",()=>{e(Buffer.concat(A));});}));});}}e.exports.HttpClientResponse=f,e.exports.isHttps=function(e){return"https:"===new URL(e).protocol;},e.exports.HttpCl
`;return"string"==typeof s?B+=`host: ${s}\r
`:B+=e[G],l?B+=`connection: upgrade\r
2024-08-07 14:51:00 +08:00
upgrade: ${l}\r
`:e[V]&&!d[m]?B+="connection: keep-alive\r\n":B+="connection: close\r\n",c&&(B+=c),e$.sendHeaders.hasSubscribers&&e$.sendHeaders.publish({request:A,headers:B,socket:d}),t&&0!==C?r.isBuffer(t)?(rJ(I===t.byteLength,"buffer body must have content length"),d.cork(),d.write(`${B}content-length: ${I}\r
2024-08-07 14:51:00 +08:00
\r
`,"latin1"),d.write(t),d.uncork(),A.onBodySent(t),A.onRequestSent(),h||(d[m]=!0)):r.isBlobLike(t)?"function"==typeof t.stream?eM({body:t.stream(),client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):ex({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):r.isStream(t)?eT({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):r.isIterable(t)?eM({body:t,client:e,request:A,socket:d,contentLength:I,header:B,expectsPayload:h}):rJ(!1):(0===I?d.write(`${B}content-length: 0\r
2024-08-07 14:51:00 +08:00
\r
`,"latin1"):(rJ(null===I,"no body must not have content length"),d.write(`${B}\r
`,"latin1")),A.onRequestSent()),!0;}(e,n)?e[J]++:e[T].splice(e[J],1);}}(e,A),e[k]=0,e[H]>256&&(e[T].splice(0,e[H]),e[J]-=e[H],e[H]=0));}function eU(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e;}function eT({h2stream:e,body:A,client:n,request:o,socket:i,contentLength:s,header:a,expectsPayload:l}){if(rJ(0!==s||0===n[N],"stream body cannot be pipelined"),"h2"===n[ec]){function c(e){o.onBodySent(e);}let n=t(A,e,t=>{t?(r.destroy(A,t),r.destroy(e,t)):o.onRequestSent();});n.on("data",c),n.once("end",()=>{n.removeListener("data",c),r.destroy(n);});return;}let E=!1,u=new e5({socket:i,request:o,contentLength:s,client:n,expectsPayload:l,header:a}),h=function(e){if(!E)try{!u.write(e)&&this.pause&&this.pause();}catch(e){r.destroy(this,e);}},Q=function(){!E&&A.resume&&A.resume();},C=function(){if(E)return;let e=new g();queueMicrotask(()=>I(e));},I=function(e){if(!E){if(E=!0,rJ(i.destroyed||i[U]&&n[N]<=1),i.off("drain",Q).off("error",I),A.removeListener("data",h).removeListener("end",I).removeListener("error",I).removeListener("close",C),!e)try{u.end();}catch(A){e=A;}u.destroy(e),e&&("UND_ERR_INFO"!==e.code||"reset"!==e.message)?r.destroy(A,e):r.destroy(A);}};A.on("data",h).on("end",I).on("error",I).on("close",C),A.resume&&A.resume(),i.on("drain",Q).on("error",I);}async function ex({h2stream:e,body:A,client:t,request:n,socket:o,contentLength:i,header:s,expectsPayload:l}){rJ(i===A.size,"blob body must have content length");let c="h2"===t[ec];try{if(null!=i&&i!==A.size)throw new a();let r=Buffer.from(await A.arrayBuffer());c?(e.cork(),e.write(r),e.uncork()):(o.cork(),o.write(`${s}content-length: ${i}\r
2024-08-07 14:51:00 +08:00
\r
`,"latin1"),o.write(r),o.uncork()),n.onBodySent(r),n.onRequestSent(),l||(o[m]=!0),eL(t);}catch(A){r.destroy(c?e:o,A);}}async function eM({h2stream:e,body:A,client:t,request:r,socket:n,contentLength:o,header:i,expectsPayload:s}){function a(){if(l){let e=l;l=null,e();}}rJ(0!==o||0===t[N],"iterator body cannot be pipelined");let l=null,c=()=>new Promise((e,A)=>{rJ(null===l),n[P]?A(n[P]):l=e;});if("h2"===t[ec]){e.on("close",a).on("drain",a);try{for await(let t of A){if(n[P])throw n[P];let A=e.write(t);r.onBodySent(t),A||(await c());}}catch(A){e.destroy(A);}finally{r.onRequestSent(),e.end(),e.off("close",a).off("drain",a);}return;}n.on("close",a).on("drain",a);let g=new e5({socket:n,request:r,contentLength:o,client:t,expectsPayload:s,header:i});try{for await(let e of A){if(n[P])throw n[P];g.write(e)||(await c());}g.end();}catch(e){g.destroy(e);}finally{n.off("close",a).off("drain",a);}}function e_(e,A,t){try{A.onError(t),rJ(A.aborted);}catch(A){e.emit("error",A);}}t=rP.pipeline,r=ni("c7jgd"),n=ni("fsDW2"),o=ni("cEHE4"),i=ni("k3HYk"),a=(s=ni("03MxY")).RequestContentLengthMismatchError,l=s.ResponseContentLengthMismatchError,c=s.InvalidArgumentError,g=s.RequestAbortedError,E=s.HeadersTimeoutError,u=s.HeadersOverflowError,h=s.SocketError,Q=s.InformationalError,C=s.BodyTimeoutError,I=s.HTTPParserError,d=s.ResponseExceededMaxSizeError,B=s.ClientDestroyedError,f=ni("d4IVt"),y=(p=ni("J3IVZ")).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,T=p.kQueue,x=p.kConnected,M=p.kConnecting,_=p.kNeedDrain,O=p.kNoRef,Y=p.kKeepAliveDefaultTimeout,G=p.kHostHeader,J=p.kPendingIdx,H=p.kRunningIdx,P=p.kError,V=p.kPipelining,q=p.kSocket,W=p.kKeepAliveTimeoutValue,j=p.kMaxHeadersSize,$=p.kKeepAliveMaxTimeout,X=p.kKeepAliveTimeoutThreshold,z=p.kHeadersTimeout,Z=p.kBodyTimeout,K=p.kStrictContentLength,ee=p.kConnector,eA=p.kMaxRedirections,et=p.kMaxRequests,er=p.kCounter,en=p.kClose,eo=p.kDestroy,ei=p.kDispatch,es=p.kInterceptors,ea=p.kLocalAddress,el=p.kMaxResponseSize,ec=p.kHTTPConnVersion,eg=p.kHost,eE=p.kHTTP2Session,eu=p.kHTTP2SessionState,eh=p.kHTTP2BuildRequest,eQ=p.kHTTP2CopyHeaders,eC=p.kHTTP1BuildRequest;try{eB=$1a9a6c83d93b5ec4$import$dc5c58500bc5a0ce;}catch{eB={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:eO,HTTP2_HEADER_METHOD:eY,HTTP2_HEADER_PATH:eG,HTTP2_HEADER_SCHEME:eJ,HTTP2_HEADER_CONTENT_LENGTH:eH,HTTP2_HEADER_EXPECT:eP,HTTP2_HEADER_STATUS:eV}}=eB,eq=!1,eW=Buffer[Symbol.species],ej=Symbol(),e$={};try{let e=ni("aNCRb");e$.sendHeaders=e.channel("undici:client:sendHeaders"),e$.beforeConnect=e.channel("undici:client:beforeConnect"),e$.connectError=e.channel("undici:client:connectError"),e$.connected=e.channel("undici:client:connected");}catch{e$.sendHeaders={hasSubscribers:!1},e$.beforeConnect={hasSubscribers:!1},e$.connectError={hasSubscribers:!1},e$.connected={hasSubscribers:!1};}eI=ni("azzFq"),ed=ni("bHAsD");let eX=Buffer.alloc(0),ez=null,eZ=ew();eZ.catch();let eK=null,e0=null,e1=0,e2=null,e4=1,e8=2,e9=3;class e3{constructor(e,A,{exports:t}){rJ(Number.isFinite(e[j])&&e[j]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(eI.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[j],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[el];}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(n.clearTimeout(this.timeout),e?(this.timeout=n.setTimeout(eb,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh();}resume(){!this.socket.destroyed&&this.paused&&(rJ(null!=this.ptr),rJ(null==eK),this.llhttp.llhttp_resume(this.ptr),rJ(this.timeoutType===e8),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()
`,"latin1"):A.write(`${s}content-length: ${r}\r
2024-08-07 14:51:00 +08:00
\r
`,"latin1")),null===r&&A.write(`\r
2024-08-07 14:51:00 +08:00
${l.toString(16)}\r
`,"latin1"),this.bytesWritten+=l;let c=A.write(e);return A.uncork(),t.onBodySent(e),!c&&A[D].timeout&&A[D].timeoutType===e4&&A[D].timeout.refresh&&A[D].timeout.refresh(),c;}end(){let{socket:e,contentLength:A,client:t,bytesWritten:r,expectsPayload:n,header:o,request:i}=this;if(i.onRequestSent(),e[U]=!1,e[P])throw e[P];if(!e.destroyed){if(0===r?n?e.write(`${o}content-length: 0\r
2024-08-07 14:51:00 +08:00
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):null===A&&e.write("\r\n0\r\n\r\n","latin1"),null!==A&&r!==A){if(t[K])throw new a();process.emitWarning(new a());}e[D].timeout&&e[D].timeoutType===e4&&e[D].timeout.refresh&&e[D].timeout.refresh(),eL(t);}}destroy(e){let{socket:A,client:t}=this;A[U]=!1,e&&(rJ(t[N]<=1,"pipeline should only contain this request"),r.destroy(A,e));}}e.exports=class extends i{constructor(e,{interceptors:A,maxHeaderSize:t,headersTimeout:n,socketTimeout:o,requestTimeout:i,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:g,keepAliveTimeout:E,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!==g)throw new c("unsupported keepAlive, use pipelining=0 instead");if(void 0!==o)throw new c("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==i)throw new c("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==l)throw new c("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==u)throw new c("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=t&&!Number.isFinite(t))throw new c("invalid maxHeaderSize");if(null!=C&&"string"!=typeof C)throw new c("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new c("invalid connectTimeout");if(null!=E&&(!Number.isFinite(E)||E<=0))throw new c("invalid keepAliveTimeout");if(null!=h&&(!Number.isFinite(h)||h<=0))throw new c("invalid keepAliveMaxTimeout");if(null!=Q&&!Number.isFinite(Q))throw new c("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new c("headersTimeout must be a positive integer or zero");if(null!=a&&(!Number.isInteger(a)||a<0))throw new c("bodyTimeout must be a positive integer or zero");if(null!=b&&"function"!=typeof b&&"object"!=typeof b)throw new c("connect must be a function or an object");if(null!=m&&(!Number.isInteger(m)||m<0))throw new c("maxRedirections must be a positive number");if(null!=R&&(!Number.isInteger(R)||R<0))throw new c("maxRequestsPerClient must be a positive number");if(null!=D&&("string"!=typeof D||0===rO.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||rM.maxHeaderSize,this[Y]=null==E?4e3:E,this[$]=null==h?6e5:h,this[X]=null==Q?1e3:Q,this[W]=this[Y],this[w]=null,this[ea]=null!=D?D:null,this[k]=0,this[_]=0,this[G]=`host: ${this[y].hostname}${this[y].port?":"+this[y].port:""}\r
`,this[Z]=null!=a?a:3e5,this[z]=null!=n?n:3e5,this[K]=null==B||B,this[eA]=m,this[et]=R,this[ej]=null,this[el]=S>-1?S:-1,this[ec]="h1",this[eE]=null,this[eu]=F?{openStreams:0,maxConcurrentStreams:null!=L?L:100}:null,this[eg]=`${this[y].hostname}${this[y].port?":"+this[y].port:""}`,this[T]=[],this[H]=0,this[J]=0;}get pipelining(){return this[V];}set pipelining(e){this[V]=e,eL(this,!0);}get[F](){return this[T].length-this[J];}get[N](){return this[J]-this[H];}get[L](){return this[T].length-this[H];}get[x](){return!!this[q]&&!this[M]&&!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,n="h2"===this[ec]?o[eh](t,e,A):o[eC](t,e,A);return this[T].push(n),this[k]||(null==r.bodyLength(n.body)&&r.isIterable(n.body)?(this[k]=1,process.nextTick(eL,this)):eL(this,!0)),this[k]&&2!==this[_]&&this[R]&&(this[_]=2),this[_]<2;}async[en](){return new Promise(e=>{this[L]?this[ej]=e:e(null);});}async[eo](e){return new Promise(A=>{let t=this[T].splice(this[J]);for(let A=0;A<t.length;A++)e_(this,t[A],e);let n=()=>{this[ej]&&(this[ej](),this[ej]=null),A();};null!=this[eE]&&(r.destroy(this[eE],e),this[eE]=null,this[eu]=null),this[q]?r.destroy(this[q].on("close",n),e):queueMicrotask(n),eL(this);});}};}),A7("c7jgd",function(e,A){var t,r,n,o,i,s,a,l;let c;function g(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on;}function E(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=ni("J3IVZ")).kDestroyed,n=t.kBodyUsed,o=rM.IncomingMessage,i=ni("03MxY").InvalidArgumentError,s=rV.Blob,a=rq.stringify,l=ni("iM175").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&&(rP.isDisturbed?rP.isDisturbed(e)||e[n]:e[n]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||Q(e)));},isErrored:function(e){return!!(e&&(rP.isErrored?rP.isErrored(e):/state: 'errored'/.test(rH.inspect(e))));},isReadable:function(e){return!!(e&&(rP.isReadable?rP.isReadable(e):/state: 'readable'/.test(rH.inspect(e))));},toUSVString:function(e){return f?(""+e).toWellFormed():rH.toUSVString?
`;}function E(e,A,t,o=!1){if(t&&"object"==typeof t&&!Array.isArray(t))throw new r(`invalid ${A} header`);if(void 0!==t){if(null===e.host&&4===A.length&&"host"===A.toLowerCase()){if(null!==h.exec(t))throw new r(`invalid ${A} header`);e.host=t;}else if(null===e.contentLength&&14===A.length&&"content-length"===A.toLowerCase()){if(e.contentLength=parseInt(t,10),!Number.isFinite(e.contentLength))throw new r("invalid content-length header");}else if(null===e.contentType&&12===A.length&&"content-type"===A.toLowerCase())e.contentType=t,o?e.headers[A]=g(A,t,o):e.headers+=g(A,t);else if(17===A.length&&"transfer-encoding"===A.toLowerCase())throw new r("invalid transfer-encoding header");else if(10===A.length&&"connection"===A.toLowerCase()){let A="string"==typeof t?t.toLowerCase():null;if("close"!==A&&"keep-alive"!==A)throw new r("invalid connection header");"close"===A&&(e.reset=!0);}else if(10===A.length&&"keep-alive"===A.toLowerCase())throw new r("invalid keep-alive header");else if(7===A.length&&"upgrade"===A.toLowerCase())throw new r("invalid upgrade header");else if(6===A.length&&"expect"===A.toLowerCase())throw new n("expect header not supported");else if(null===u.exec(A))throw new r("invalid header key");else if(Array.isArray(t))for(let r=0;r<t.length;r++)o?e.headers[A]?e.headers[A]+=","+g(A,t[r],o):e.headers[A]=g(A,t[r],o):e.headers+=g(A,t[r]);else o?e.headers[A]=g(A,t,o):e.headers+=g(A,t);}}r=(t=ni("03MxY")).InvalidArgumentError,n=t.NotSupportedError,i=(o=ni("J3IVZ")).kHTTP2BuildRequest,s=o.kHTTP2CopyHeaders,a=o.kHTTP1BuildRequest,l=ni("c7jgd");let u=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,h=/[^\t\x20-\x7e\x80-\xff]/,Q=Symbol(),C={};try{let e=ni("aNCRb");C.create=e.channel("undici:request:create"),C.bodySent=e.channel("undici:request:bodySent"),C.headers=e.channel("undici:request:headers"),C.trailers=e.channel("undici:request:trailers"),C.error=e.channel("undici:request:error");}catch{C.create={hasSubscribers:!1},C.bodySent={hasSubscribers:!1},C.headers={hasSubscribers:!1},C.trailers={hasSubscribers:!1},C.error={hasSubscribers:!1};}class I{constructor(e,{path:A,method:t,body:n,headers:o,query:i,idempotent:s,blocking:a,upgrade:g,headersTimeout:h,bodyTimeout:I,reset:d,throwOnError:B,expectContinue:f},p){if("string"!=typeof A)throw new r("path must be a string");if("/"===A[0]||A.startsWith("http://")||A.startsWith("https://")||"CONNECT"===t){if(null!==/[^\u0021-\u00ff]/.exec(A))throw new r("invalid request path");}else throw new r("path must be an absolute URL or start with a slash");if("string"!=typeof t)throw new r("method must be a string");if(null===u.exec(t))throw new r("invalid request method");if(g&&"string"!=typeof g)throw new r("upgrade must be a string");if(null!=h&&(!Number.isFinite(h)||h<0))throw new r("invalid headersTimeout");if(null!=I&&(!Number.isFinite(I)||I<0))throw new r("invalid bodyTimeout");if(null!=d&&"boolean"!=typeof d)throw new r("invalid reset");if(null!=f&&"boolean"!=typeof f)throw new r("invalid expectContinue");if(this.headersTimeout=h,this.bodyTimeout=I,this.throwOnError=!0===B,this.method=t,this.abort=null,null==n)this.body=null;else if(l.isStream(n)){this.body=n;let e=this.body._readableState;e&&e.autoDestroy||(this.endHandler=function(){l.destroy(this);},this.body.on("end",this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e;},this.body.on("error",this.errorHandler);}else if(l.isBuffer(n))this.body=n.byteLength?n:null;else if(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;else if(n instanceof ArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;else if("string"==typeof n)this.body=n.length?Buffer.from(n):null;else if(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n))this.body=n;else throw new r("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=g||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.contentLen
`),this.body=e.stream,this.contentLength=e.length;}else l.isBlobLike(n)&&null==this.contentType&&n.type&&(this.contentType=n.type,this.headers+=`content-type: ${n.type}\r
`);l.validateHandler(p,t,g),this.servername=l.getServerName(this.host),this[Q]=p,C.create.hasSubscribers&&C.create.publish({request:this});}onBodySent(e){if(this[Q].onBodySent)try{return this[Q].onBodySent(e);}catch(e){this.abort(e);}}onRequestSent(){if(C.bodySent.hasSubscribers&&C.bodySent.publish({request:this}),this[Q].onRequestSent)try{return this[Q].onRequestSent();}catch(e){this.abort(e);}}onConnect(e){if(rJ(!this.aborted),rJ(!this.completed),!this.error)return this.abort=e,this[Q].onConnect(e);e(this.error);}onHeaders(e,A,t,r){rJ(!this.aborted),rJ(!this.completed),C.headers.hasSubscribers&&C.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:r}});try{return this[Q].onHeaders(e,A,t,r);}catch(e){this.abort(e);}}onData(e){rJ(!this.aborted),rJ(!this.completed);try{return this[Q].onData(e);}catch(e){return this.abort(e),!1;}}onUpgrade(e,A,t){return rJ(!this.aborted),rJ(!this.completed),this[Q].onUpgrade(e,A,t);}onComplete(e){this.onFinally(),rJ(!this.aborted),this.completed=!0,C.trailers.hasSubscribers&&C.trailers.publish({request:this,trailers:e});try{return this[Q].onComplete(e);}catch(e){this.onError(e);}}onError(e){if(this.onFinally(),C.error.hasSubscribers&&C.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Q].onError(e);}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null);}addHeader(e,A){return E(this,e,A),this;}static[a](e,A,t){return new I(e,A,t);}static[i](e,A,t){let n=A.headers,o=new I(e,A={...A,headers:null},t);if(o.headers={},Array.isArray(n)){if(n.length%2!=0)throw new r("headers array must be even");for(let e=0;e<n.length;e+=2)E(o,n[e],n[e+1],!0);}else if(n&&"object"==typeof n){let e=Object.keys(n);for(let A=0;A<e.length;A++){let t=e[A];E(o,t,n[t],!0);}}else if(null!=n)throw new r("headers must be an object or an array");return o;}static[s](e){let A=e.split("\r\n"),t={};for(let e of A){let[A,r]=e.split(": ");null!=r&&0!==r.length&&(t[A]?t[A]+=","+r:t[A]=r);}return t;}}e.exports=I;}),A7("aNCRb",function(e,A){class t extends TypeError{constructor(e,A){if(super(),null==A)e+=". Received "+A;else if("function"==typeof A&&A.name)e+=". Received function "+A.name;else if("object"==typeof A)A.constructor&&A.constructor.name?e+=". Received an instance of "+A.constructor.name:e+=". Received "+rH.inspect(A,{depth:-1});else{let t=rH.inspect(A,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),e+=`. Received type ${typeof A} (${t})`;}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:e,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`;},enumerable:!1,writable:!0,configurable:!0}});}}class r{subscribe(e){if("function"!=typeof e)throw new t('The "subscription" argument must be of type function',e);this._subscribers.push(e);}unsubscribe(e){let A=this._subscribers.indexOf(e);return-1!==A&&(this._subscribers.splice(A,1),this._subscribers.length||Object.setPrototypeOf(this,n.prototype),!0);}get hasSubscribers(){return!0;}publish(e){for(let A=0;A<this._subscribers.length;A++)try{(0,this._subscribers[A])(e,this.name);}catch(e){process.nextTick(()=>{throw e;});}}}class n{constructor(e){this._subscribers=void 0,this.name=e;}static[Symbol.hasInstance](e){let A=Object.getPrototypeOf(e);return A===n.prototype||A===r.prototype;}subscribe(e){Object.setPrototypeOf(this,r.prototype),this._subscribers=[],this.subscribe(e);}unsubscribe(){return!1;}get hasSubscribers(){return!1;}publish(){}}let o={};e.exports={channel:function(e){let A=o[e];if(A)return A;if("string"!=typeof e&&"symbol"!=typeof e)throw new t('The "channel" argument must be one of type string or symbol',e);return o[e]=new n(e);},hasSubscribers:function(e){let A=o[e];return!!A&&A.hasSubscribers;},Channel:n,deleteChannel:function(e){return!!o[e]&&(o[e]=null,!0);}};}),A7("9pkjh",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D;function S(e,A=!1){U||(U=ni("9UQbL").ReadableStream);let t=null;t=e
Content-Disposition: form-data`,r=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),o=e=>e.replace(/\r?\n|\r/g,"\r\n"),i=[],s=new Uint8Array([13,10]);c=0;let a=!1;for(let[A,n]of e)if("string"==typeof n){let e=x.encode(t+`; name="${r(o(A))}"`+`\r
2024-08-07 14:51:00 +08:00
\r
${o(n)}\r
`);i.push(e),c+=e.byteLength;}else{let e=x.encode(`${t}; name="${r(o(A))}"`+(n.name?`; filename="${r(n.name)}"`:"")+"\r\n"+`Content-Type: ${n.type||"application/octet-stream"}\r
2024-08-07 14:51:00 +08:00
\r
`);i.push(e,n,s),"number"==typeof n.size?c+=e.byteLength+n.size+s.byteLength:a=!0;}let E=x.encode(`--${A}--`);i.push(E),c+=E.byteLength,a&&(c=null),l=e,n=async function*(){for(let e of i)e.stream?yield*e.stream():yield e;},g="multipart/form-data; boundary="+A;}else if(i(e))l=e,c=e.size,e.type&&(g=e.type);else if("function"==typeof e[Symbol.asyncIterator]){if(A)throw TypeError("keepalive");if(r.isDisturbed(e)||e.locked)throw TypeError("Response body object should not be disturbed or locked");t=e instanceof U?e:o(e);}if(("string"==typeof l||r.isBuffer(l))&&(c=Buffer.byteLength(l)),null!=n){let A;t=new U({async start(){A=n(e)[Symbol.asyncIterator]();},async pull(e){let{value:r,done:n}=await A.next();return n?queueMicrotask(()=>{e.close();}):f(t)||e.enqueue(new Uint8Array(r)),e.desiredSize>0;},async cancel(e){await A.return();},type:void 0});}return[{stream:t,source:l,length:c},g];}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 n;if(u.brandCheck(e,t),k(e[E]),null!=(n=e[E].body)&&(n.stream.locked||r.isDisturbed(n.stream)))throw TypeError("Body is unusable");let o=l(),i=e=>o.reject(e),s=e=>{try{o.resolve(A(e));}catch(e){i(e);}};return null==e[E].body?s(new Uint8Array()):await c(e[E].body,s,i),o.promise;}function F(e){return 0===e.length?"":(239===e[0]&&187===e[1]&&191===e[2]&&(e=e.subarray(3)),M.decode(e));}function L(e){return JSON.parse(F(e));}t=ni("2Ekxx"),r=ni("c7jgd"),o=(n=ni("guORk")).ReadableStreamFrom,i=n.isBlobLike,s=n.isReadableStreamLike,a=n.readableStreamClose,l=n.createDeferredPromise,c=n.fullyReadBody,g=ni("ltfpn").FormData,E=ni("4r42s").kState,u=ni("1xsyj").webidl,Q=(h=ni("3j972")).DOMException,C=h.structuredClone,I=rV.Blob,d=rV.File,B=ni("J3IVZ").kBodyUsed,f=(r=ni("c7jgd")).isErrored,y=(p=ni("ceYX4")).isUint8Array,m=p.isArrayBuffer,w=ni("5JU9i").File,R=(b=ni("ldxmf")).parseMIMEType,D=b.serializeAMimeType;let U=globalThis.ReadableStream,T=null!=d?d:w,x=new TextEncoder(),M=new TextDecoder();e.exports={extractBody:S,safelyExtractBody:function(e,A=!1){return U||(U=ni("9UQbL").ReadableStream),e instanceof U&&(rJ(!r.isDisturbed(e),"The body has already been consumed."),rJ(!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[E],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[E]);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 g();try{e=new t({headers:A,preservePath:!0});}catch(e){throw new Q(""+e,"AbortError");}e.on("field",(e,A)=>{r.append(e,A);}),e.on("file",(e,A,t,n,o)=>{let i=[];if("base64"===n||"base64"===n.toLowerCase()){let n="";A.on("data",e=>{let A=(n+=e.toString().replace(/[\r\n]/gm,"")).length-n.length%4;i.push(Buffer.from(n.slice(0,A),"base64")),n=n.slice(A);}),A.on("end",()=>{i.push(Buffer.from(n,"base64")),r.append(e,new T(i,t,{type:o}));});}else A.on("data",e=>{i.push(e);}),A.on("end",()=>{r.append(e,new T(i,t,{type:o}));});});let n=new Promise((A,t)=>{e.on("finish",A),e.on("error",e=>t(TypeError(e)));});if(null!==this.body)for await(let A of v(this[E].body))e.write(A);return e.end(),await n,r;}if(/application\/x-www-form-urlencoded/.test(A)){let e;try{let A="",t=new TextDecoder("utf-8",{ignoreBOM:!0});for await(let e of v(this[E].body)){if(!y(e))throw TypeError("Expected Uint8Array chunk");A+=t.decode(e,{stream:!0});}A+=t.decode(),e=new URLSearchParams(A);}ca
2024-08-07 14:51:00 +08:00
${t.count} ${t.noun} ${t.is} pending:
${e.format(A)}
`.trim());}};}),A7("9zXtN",function(e,A){var t=rH.promisify,r=ni("3xMRG"),n=ni("aXWzJ").buildMockDispatch,o=ni("63Ves"),i=o.kDispatches,s=o.kMockAgent,a=o.kClose,l=o.kOriginalClose,c=o.kOrigin,g=o.kOriginalDispatch,E=o.kConnected,u=ni("bbiYo").MockInterceptor,h=ni("J3IVZ"),Q=ni("03MxY").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[E]=1,this[g]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[h.kConnected](){return this[E];}intercept(e){return new u(e,this[i]);}async[a](){await t(this[l])(),this[E]=0,this[s][h.kClients].delete(this[c]);}}e.exports=C;}),A7("fNmEN",function(e,A){let t={pronoun:"it",is:"is",was:"was",this:"this"},r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class{constructor(e,A){this.singular=e,this.plural=A;}pluralize(e){let A=1===e,n=A?this.singular:this.plural;return{...(A?t:r),count:e,noun:n};}};}),A7("aArTY",function(e,A){var t=rP.Transform,r=rK.Console;e.exports=class{constructor({disableColors:e}={}){this.transform=new t({transform(e,A,t){t(null,e);}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}});}format(e){let A=e.map(({method:e,path:A,data:{statusCode:t},persist:r,times:n,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:o,Remaining:r?1/0:n-o}));return this.logger.table(A),this.transform.read().toString();}};}),A7("l978m",function(e,A){var t,r,n,o,i,s,a,l,c,g,E,u,h;function Q(e,A){return new l(e,A);}r=(t=ni("J3IVZ")).kProxy,n=t.kClose,o=t.kDestroy,i=t.kInterceptors,s=r0.URL,a=ni("4UFSJ"),l=ni("3xMRG"),c=ni("k3HYk"),E=(g=ni("03MxY")).InvalidArgumentError,u=g.RequestAbortedError,h=ni("d4IVt");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 E("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 E("Proxy opts.uri is mandatory");let{clientFactory:A=Q}=e;if("function"!=typeof A)throw new E("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:n,port:o,host:l,username:c,password:g}=t;if(e.auth&&e.token)throw new E("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&&g&&(this[d]["proxy-authorization"]="Basic "+Buffer.from(`${decodeURIComponent(c)}:${decodeURIComponent(g)}`).toString("base64"));let y=h({...e.proxyTls});this[p]=h({...e.requestTls}),this[I]=A(t,{connect:y}),this[C]=new a({...e,connect:async(e,A)=>{let t=e.host;!e.port&&(t+=":"+("https:"===e.protocol?443:80));try{let r;let{socket:i,statusCode:s}=await this[I].connect({origin:n,port:o,path:t,signal:e.signal,headers:{...this[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<e.length;t+=2)A[e[t]]=e[t+1];return A;}return e;}(e.headers);return function(e){if(e&&Object.keys(e).find(e=>"proxy-authorization"===e.toLowerCase()))throw new E("Proxy-Authorization should be sent in ProxyAgent constructor");}(r),this[C].dispatch({...e,headers:{...r,host:t}},A);}async[n](){await this[C].close(),await this[I].close();}async[o](){await this[C].destroy(),await this[I].destroy();}};}),A7("kovwN",function(e,A){var t=ni("J3IVZ").kRetryHandlerDefaultRetry,r=ni("03MxY").
${A}`,nG=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),nJ=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nH=(e,A,t)=>{let r=""===t?"":`with ${t.trim()}() `,n=nY.bind(null,r,A.toString());Object.defineProperty(n,"name",nJ),Object.defineProperty(e,"toString",{...nG,value:n});},nP=new WeakMap(),nV=(e,A={})=>{let t;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,n=e.displayName||e.name||"<anonymous>",o=function(...i){if(nP.set(o,++r),1===r)t=e.apply(this,i),e=null;else if(!0===A.throw)throw Error(`Function \`${n}\` can only be called once`);return t;};return!function(e,A,{ignoreNonConfigurable:t=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(A))nM(e,A,r,t);nO(e,A),nH(e,A,r);}(o,e),nP.set(o,r),o;};nV.callCount=e=>{if(!nP.has(e))throw Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return nP.get(e);},tD=nV;const nq=()=>Array.from({length:n$-nj+1},nW),nW=(e,A)=>({name:"SIGRT"+(A+1),number:nj+A,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nj=34,n$=64,nX=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"t
${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=o,r.signal=n,r.signalDescription=h,r.stdout=e,r.stderr=A,r.cwd=u,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=c,r.killed=g&&!a,r;},n8=["stdin","stdout","stderr"],n9=e=>n8.some(A=>void 0!==e[A]),n3=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return n8.map(A=>e[A]);if(n9(e))throw Error("It's not possible to provide `stdio` in combination with one of "+n8.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,n8.length)},(e,t)=>A[t]);};tS={};const n5=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(n5(tv=nr.process)){var n6,n7=ni("2PjMq"),oe=/^win/i.test(tv.platform),oA=rG;"function"!=typeof oA&&(oA=oA.EventEmitter),tv.__signal_exit_emitter__?n6=tv.__signal_exit_emitter__:((n6=tv.__signal_exit_emitter__=new oA()).count=0,n6.emitted={}),n6.infinite||(n6.setMaxListeners(1/0),n6.infinite=!0);var ot=function(){oo&&n5(nr.process)&&(oo=!1,n7.forEach(function(e){try{tv.removeListener(e,on[e]);}catch(e){}}),tv.emit=ol,tv.reallyExit=os,n6.count-=1);};(tS=function(e,A){if(!n5(nr.process))return function(){};rJ.equal(typeof e,"function","a callback must be provided for exit handler"),!1===oo&&oi();var t="exit";return A&&A.alwaysLast&&(t="afterexit"),n6.on(t,e),function(){n6.removeListener(t,e),0===n6.listeners("exit").length&&0===n6.listeners("afterexit").length&&ot();};}).unload=ot;var or=function(e,A,t){n6.emitted[e]||(n6.emitted[e]=!0,n6.emit(e,A,t));},on={};n7.forEach(function(e){on[e]=function(){n5(nr.process)&&tv.listeners(e).length===n6.count&&(ot(),or("exit",null,e),or("afterexit",null,e),oe&&"SIGHUP"===e&&(e="SIGINT"),tv.kill(tv.pid,e));};}),tS.signals=function(){return n7;};var oo=!1,oi=function(){!oo&&n5(nr.process)&&(oo=!0,n6.count+=1,n7=n7.filter(function(e){try{return tv.on(e,on[e]),!0;}catch(e){return!1;}}),tv.emit=oc,tv.reallyExit=oa);};tS.load=oi;var os=tv.reallyExit,oa=function(e){n5(nr.process)&&(tv.exitCode=e||0,or("exit",tv.exitCode,null),or("afterexit",tv.exitCode,null),os.call(tv,tv.exitCode));},ol=tv.emit,oc=function(e,A){if(!("exit"===e&&n5(nr.process)))return ol.apply(this,arguments);void 0!==A&&(tv.exitCode=A);var t=ol.apply(this,arguments);return or("exit",tv.exitCode,null),or("afterexit",tv.exitCode,null),t;};}else tS=function(){return function(){};};const og=(e,A="SIGTERM",t={})=>{let r=e(A);return oE(e,A,t,r),r;},oE=(e,A,t,r)=>{if(!ou(A,t,r))return;let n=setTimeout(()=>{e("SIGKILL");},oQ(t));n.unref&&n.unref();},ou=(e,{forceKillAfterTimeout:A},t)=>oh(e)&&!1!==A&&t,oh=e=>e===l(nA).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),oQ=({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;},oC=(e,A)=>{e.kill()&&(A.isCanceled=!0);},oI=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},od=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{let n;return 0===A||void 0===A?r:Promise.race([new Promise((r,o)=>{n=setTimeout(()=>{oI(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},oB=({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})`);},of=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)return r;let n=l(tS)(()=>{e.kill();});return r.finally(()=>{n();});},op=e=>e instanceof r6.ChildProcess&&"function"==typeof e.then,oy=(e,A,t)=>{if("string"==typeof t)return e[A].pipe((0,r4.createWriteStream)(t)),e;if(d(t))re
`);},oZ=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(r7).env,...e}:e;return t?nx({env:o,cwd:r,execPath:n}):o;},oK=(e,A,t={})=>{let r=l(th)._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(r7).cwd(),execPath:l(r7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oj,...t}).env=oZ(t),t.stdio=n3(t),"win32"===l(r7).platform&&"cmd"===l(r5).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},o0=(e,A,t)=>"string"==typeof A||(0,r3.Buffer).isBuffer(A)?e.stripFinalNewline?Q(A):A:void 0===t?void 0:"",o1=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},o2=(e={})=>({preferLocal:!0,...o1(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=oW(r,n);return f(o,i,o2(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=oW(e,t);return p(r,n,o2(A));},t;}();const o4={stdio:"inherit",shell:!0},o8=/^~(?=$|\/|\\)/;tA=ni("pcnv8"),tM={},t_=ni("9zgMG"),tO=nt.env.npm_package_json,tG=!!((tY=nt.env.npm_config_user_agent)&&tY.startsWith("npm")),tJ=!!(tO&&tO.endsWith("package.json")),tH=tG||tJ,tP=!!(tY&&tY.startsWith("yarn")),tV=tH||tP,tq=rL.homedir(),tW=process.env.XDG_CONFIG_HOME||rU.join(tq,".config","simple-update-notifier"),tj=function(e){return rU.join(tW,"".concat(e.replace("@","").replace("/","__"),".json"));},t$=function(){rT.existsSync(tW)||rT.mkdirSync(tW,{recursive:!0});},tX=function(e){var A=tj(e);try{if(!rT.existsSync(A))return;return JSON.parse(rT.readFileSync(A,"utf8")).lastUpdateCheck;}catch(e){return;}},tz=function(e){var A=tj(e);rT.writeFileSync(A,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},tZ=function(e,A){return v(void 0,void 0,void 0,function(){var t;return k(this,function(r){return t="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,r){r_.get(t,function(t){var n="";t.on("data",function(e){return n+=e;}),t.on("end",function(){try{var t=JSON.parse(n)[A];t||r(Error("Error getting version")),e(t);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});});},tK=function(e){var A=e.pkg,t=e.updateCheckInterval,r=void 0===t?864e5:t,n=e.distTag,o=void 0===n?"latest":n,i=e.alwaysRun,s=e.debug;return v(void 0,void 0,void 0,function(){var e,t;return k(this,function(n){switch(n.label){case 0:if(t$(),e=tX(A.name),!(i||!e||e<new Date().getTime()-r))return[3,2];return[4,tZ(A.name,o)];case 1:if(t=n.sent(),tz(A.name),t_.gt(t,A.version))return[2,t];return s&&console.error("Latest version (".concat(t,") not newer than current version (").concat(A.version,")")),[3,3];case 2:s&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(r,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),n.label=3;case 3:return[2,!1];}});});},t0=function(e){for(var A=e.split("\n"),t=Math.max.apply(Math,A.map(function(e){return e.length;})),r=["┌".concat("─".repeat(t+2),"┐")],n=0;n<A.length;n++){var o=A[n];r.push("│ ".concat(o.padEnd(t)," │"));}return r.push("└".concat("─".repeat(t+2),"┘")),r.join("\n");},tM=function(e){return v(void 0,void 0,void 0,function(){var A,t;return k(this,function(r){switch(r.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||tV&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,tK(e)];case 2:return(A=r.sent())&&console.error(t0("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(A))),[3,4];case 3:return t=r.sent(),e.debug&&t instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",t),[3,4];case 4:return[2];}});});},t1={},t1=JSON.parse('{"name":"setup-cpp","version":"0.37.0"}'),t2=ni("d1q4F"),tA=ni("pcnv8"),t
${r.message}`:h,I=[C,A,e].filter(Boolean).join("\n");return Q?(r.originalMessage=r.message,r.message=I):r=Error(I),r.shortMessage=C,r.command=i,r.escapedCommand=s,r.exitCode=o,r.signal=n,r.signalDescription=E,r.stdout=e,r.stderr=A,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=l,r.killed=c&&!a,r;},ie=["stdin","stdout","stderr"],iA=e=>ie.some(A=>void 0!==e[A]),it=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return ie.map(A=>e[A]);if(iA(e))throw Error("It's not possible to provide `stdio` in combination with one of "+ie.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,ie.length)},(e,t)=>A[t]);},ir=(e,A="SIGTERM",t={})=>{let r=e(A);return io(e,A,t,r),r;},io=(e,A,t,r)=>{if(!ii(A,t,r))return;let n=setTimeout(()=>{e("SIGKILL");},ia(t));n.unref&&n.unref();},ii=(e,{forceKillAfterTimeout:A},t)=>is(e)&&!1!==A&&t,is=e=>e===l(nA).constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),ia=({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;},il=(e,A)=>{e.kill()&&(A.isCanceled=!0);},ic=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},ig=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{let n;return 0===A||void 0===A?r:Promise.race([new Promise((r,o)=>{n=setTimeout(()=>{ic(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},iE=({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})`);},iu=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)return r;let n=l(tS)(()=>{e.kill();});return r.finally(()=>{n();});},ih=e=>e instanceof r6.ChildProcess&&"function"==typeof e.then,iQ=(e,A,t)=>{if("string"==typeof t)return e[A].pipe((0,r4.createWriteStream)(t)),e;if(d(t))return e[A].pipe(t),e;if(!ih(t))throw TypeError("The second argument must be a string, a stream or an Execa child process.");if(!d(t.stdin))throw TypeError("The target child process's stdin must be available.");return e[A].pipe(t.stdin),t;},iC=e=>{null!==e.stdout&&(e.pipeStdout=iQ.bind(void 0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=iQ.bind(void 0,e,"stderr")),void 0!==e.all&&(e.pipeAll=iQ.bind(void 0,e,"all"));},iI=e=>{if(void 0!==e)throw TypeError("The `input` and `inputFile` options cannot be both set.");},id=({input:e,inputFile:A})=>"string"!=typeof A?e:(iI(e),(0,r4.readFileSync)(A)),iB=e=>{let A=id(e);if(I(A))throw TypeError("The `input` option cannot be a stream in sync mode");return A;},ip=({input:e,inputFile:A})=>"string"!=typeof A?e:(iI(e),(0,r4.createReadStream)(A)),iy=(e,A)=>{let t=ip(A);void 0!==t&&(I(t)?t.pipe(e.stdin):e.stdin.end(t));},im=(e,{all:A})=>{if(!A||!e.stdout&&!e.stderr)return;let t=l(tT)();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t;},iw=async(e,A)=>{if(e&&void 0!==A){e.destroy();try{return await A;}catch(e){return e.bufferedData;}}},ib=(e,{encoding:A,buffer:t,maxBuffer:r})=>{if(e&&t)return A?l(tk)(e,{encoding:A,maxBuffer:r}):l(tk).buffer(e,{maxBuffer:r});},iR=async({stdout:e,stderr:A,all:t},{encoding:r,buffer:n,maxBuffer:o},i)=>{let s=ib(e,{encoding:r,buffer:n,maxBuffer:o}),a=ib(A,{encoding:r,buffer:n,maxBuffer:o}),l=ib(t,{encoding:r,buffer:n,maxBuffer:2*o});try{return await Promise.all([i,s,a,l]);}catch(r){return Promise.all([{error:r,signal:r.signal,timedOut:r.timedOut},iw(e,s),iw(A,a),iw(t,l)]);}},iD=(async()=>{})().constructor.prototype,iS=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(iD,e)]),iv=(e,A)=>{for(let[t,r]of iS){let n="function"==typeof A?(...e)=>Reflect.apply(r.value,A(),e):r.value.bind(A);Reflect.defineProperty(e,t,{...r,value:n});}},ik=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)
`);},iH=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(r7).env,...e}:e;return t?function({env:e=l(r7).env,...A}={}){let t=x({env:e={...e}});return A.path=e[t],e[t]=function(e={}){let A;let{cwd:t=l(r7).cwd(),path:r=l(r7).env[x()],execPath:n=l(r7).execPath}=e,o=n instanceof URL?l(ne).fileURLToPath(n):n,i=t instanceof URL?l(ne).fileURLToPath(t):t,s=l(r5).resolve(i),a=[];for(;A!==s;)a.push(l(r5).join(s,"node_modules/.bin")),A=s,s=l(r5).resolve(s,"..");return a.push(l(r5).resolve(i,o,"..")),[...a,r].join(l(r5).delimiter);}(A),e;}({env:o,cwd:r,execPath:n}):o;},iP=(e,A,t={})=>{let r=l(th)._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(r7).cwd(),execPath:l(r7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:iO,...t}).env=iH(t),t.stdio=it(t),"win32"===l(r7).platform&&"cmd"===l(r5).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},iV=(e,A,t)=>"string"==typeof A||(0,r3.Buffer).isBuffer(A)?e.stripFinalNewline?Q(A):A:void 0===t?void 0:"",iq=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},iW=(e={})=>({preferLocal:!0,...iq(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=i_(r,n);return M(o,i,iW(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=i_(e,t);return function(e,A,t){let r;let n=iP(e,A,t),o=iL(e,A),i=iU(e,A);iJ(i,n.options);let s=iB(n.options);try{r=l(r6).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){throw o7({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=iV(n.options,r.stdout,r.error),c=iV(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let e=o7({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:o,escapedCommand:i,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return e;throw e;}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(r,n,iW(A));},t;}(),ta=ni("6vN83"),t8=ni("hQXed");const ij={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},i$=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],iX=S("~/.cpprc");let iz=!1,iZ=!1,iK=!1;const i0=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(A5=t5||(t5={}))[A5.NameDashVersion=0]="NameDashVersion",A5[A5.NameEqualsVersion=1]="NameEqualsVersion",A5[A5.Name=2]="Name",A5[A5.None=3]="None",t2=ni("d1q4F"),t6=ni("jQPzx"),t7=ni("2C5C8"),ta=ni("6vN83"),t6=ni("jQPzx");let i1=!1;tA=ni("pcnv8"),t8=ni("hQXed"),t6=ni("jQPzx");let i2=!1;tA=ni("pcnv8"),tA=ni("pcnv8");let i4=!1,i8=!1;const i9=/Version\s*:\s*(.*)/g;re={},rA=rU.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),rt=re&&re.__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];}),rr=re&&re.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),rn=re&&re.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&rt(A,e,t);return rr(A,e),A;},ro=re&&re.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},ri=re&&re.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(re,"__esModule",{value:!0}),re.evaluateVersions=re.isExplicitVersion=re.findFromManifest=re.getManifestFro
2023-07-16 06:41:58 +08:00
//# sourceMappingURL=setup-cpp.js.map