@turbo/codemod 1.10.11 → 1.10.13-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +267 -4
- package/dist/transforms/add-package-manager.js +264 -1
- package/dist/transforms/create-turbo-config.js +1 -1
- package/dist/transforms/migrate-env-var-dependencies.js +36 -36
- package/dist/transforms/set-default-outputs.js +36 -36
- package/dist/transforms/stabilize-env-mode.js +35 -35
- package/dist/transforms/transform-env-literals-to-wildcards.js +36 -36
- package/package.json +4 -3
package/dist/cli.js
CHANGED
@@ -1,6 +1,269 @@
|
|
1
1
|
#!/usr/bin/env node
|
2
|
-
"use strict";var
|
2
|
+
"use strict";var Cy=Object.create;var Zl=Object.defineProperty;var ky=Object.getOwnPropertyDescriptor;var Dy=Object.getOwnPropertyNames;var Ry=Object.getPrototypeOf,Oy=Object.prototype.hasOwnProperty;var ve=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var Ty=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of Dy(r))!Oy.call(e,i)&&i!==t&&Zl(e,i,{get:()=>r[i],enumerable:!(n=ky(r,i))||n.enumerable});return e};var Pe=(e,r,t)=>(t=e!=null?Cy(Ry(e)):{},Ty(r||!e||!e.__esModule?Zl(t,"default",{value:e,enumerable:!0}):t,e));var rc=ve((y9,tc)=>{tc.exports=ec;ec.sync=Py;var Jl=require("fs");function Fy(e,r){var t=r.pathExt!==void 0?r.pathExt:process.env.PATHEXT;if(!t||(t=t.split(";"),t.indexOf("")!==-1))return!0;for(var n=0;n<t.length;n++){var i=t[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i)return!0}return!1}function Ql(e,r,t){return!e.isSymbolicLink()&&!e.isFile()?!1:Fy(r,t)}function ec(e,r,t){Jl.stat(e,function(n,i){t(n,n?!1:Ql(i,e,r))})}function Py(e,r){return Ql(Jl.statSync(e),e,r)}});var ac=ve((g9,oc)=>{oc.exports=ic;ic.sync=By;var nc=require("fs");function ic(e,r,t){nc.stat(e,function(n,i){t(n,n?!1:sc(i,r))})}function By(e,r){return sc(nc.statSync(e),r)}function sc(e,r){return e.isFile()&&Iy(e,r)}function Iy(e,r){var t=e.mode,n=e.uid,i=e.gid,c=r.uid!==void 0?r.uid:process.getuid&&process.getuid(),a=r.gid!==void 0?r.gid:process.getgid&&process.getgid(),s=parseInt("100",8),o=parseInt("010",8),f=parseInt("001",8),l=s|o,h=t&f||t&o&&i===a||t&s&&n===c||t&l&&c===0;return h}});var lc=ve((v9,uc)=>{var b9=require("fs"),vi;process.platform==="win32"||global.TESTING_WINDOWS?vi=rc():vi=ac();uc.exports=io;io.sync=Ly;function io(e,r,t){if(typeof r=="function"&&(t=r,r={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(n,i){io(e,r||{},function(c,a){c?i(c):n(a)})})}vi(e,r||{},function(n,i){n&&(n.code==="EACCES"||r&&r.ignoreErrors)&&(n=null,i=!1),t(n,i)})}function Ly(e,r){try{return vi.sync(e,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES")return!1;throw t}}});var yc=ve((_9,mc)=>{var Ir=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",cc=require("path"),My=Ir?";":":",hc=lc(),fc=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),pc=(e,r)=>{let t=r.colon||My,n=e.match(/\//)||Ir&&e.match(/\\/)?[""]:[...Ir?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(t)],i=Ir?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",c=Ir?i.split(t):[""];return Ir&&e.indexOf(".")!==-1&&c[0]!==""&&c.unshift(""),{pathEnv:n,pathExt:c,pathExtExe:i}},dc=(e,r,t)=>{typeof r=="function"&&(t=r,r={}),r||(r={});let{pathEnv:n,pathExt:i,pathExtExe:c}=pc(e,r),a=[],s=f=>new Promise((l,h)=>{if(f===n.length)return r.all&&a.length?l(a):h(fc(e));let u=n[f],d=/^".*"$/.test(u)?u.slice(1,-1):u,p=cc.join(d,e),y=!d&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;l(o(y,f,0))}),o=(f,l,h)=>new Promise((u,d)=>{if(h===i.length)return u(s(l+1));let p=i[h];hc(f+p,{pathExt:c},(y,b)=>{if(!y&&b)if(r.all)a.push(f+p);else return u(f+p);return u(o(f,l,h+1))})});return t?s(0).then(f=>t(null,f),t):s(0)},Ny=(e,r)=>{r=r||{};let{pathEnv:t,pathExt:n,pathExtExe:i}=pc(e,r),c=[];for(let a=0;a<t.length;a++){let s=t[a],o=/^".*"$/.test(s)?s.slice(1,-1):s,f=cc.join(o,e),l=!o&&/^\.[\\\/]/.test(e)?e.slice(0,2)+f:f;for(let h=0;h<n.length;h++){let u=l+n[h];try{if(hc.sync(u,{pathExt:i}))if(r.all)c.push(u);else return u}catch{}}}if(r.all&&c.length)return c;if(r.nothrow)return null;throw fc(e)};mc.exports=dc;dc.sync=Ny});var oo=ve((w9,so)=>{"use strict";var gc=(e={})=>{let r=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(r).reverse().find(n=>n.toUpperCase()==="PATH")||"Path"};so.exports=gc;so.exports.default=gc});var wc=ve((E9,_c)=>{"use strict";var bc=require("path"),jy=yc(),$y=oo();function vc(e,r){let t=e.options.env||process.env,n=process.cwd(),i=e.options.cwd!=null,c=i&&process.chdir!==void 0&&!process.chdir.disabled;if(c)try{process.chdir(e.options.cwd)}catch{}let a;try{a=jy.sync(e.command,{path:t[$y({env:t})],pathExt:r?bc.delimiter:void 0})}catch{}finally{c&&process.chdir(n)}return a&&(a=bc.resolve(i?e.options.cwd:"",a)),a}function Hy(e){return vc(e)||vc(e,!0)}_c.exports=Hy});var Ec=ve((S9,uo)=>{"use strict";var ao=/([()\][%!^"`<>&|;, *?])/g;function Uy(e){return e=e.replace(ao,"^$1"),e}function qy(e,r){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(ao,"^$1"),r&&(e=e.replace(ao,"^$1")),e}uo.exports.command=Uy;uo.exports.argument=qy});var Ac=ve((A9,Sc)=>{"use strict";Sc.exports=/^#!(.*)/});var Cc=ve((x9,xc)=>{"use strict";var Gy=Ac();xc.exports=(e="")=>{let r=e.match(Gy);if(!r)return null;let[t,n]=r[0].replace(/#! ?/,"").split(" "),i=t.split("/").pop();return i==="env"?n:n?`${i} ${n}`:i}});var Dc=ve((C9,kc)=>{"use strict";var lo=require("fs"),zy=Cc();function Wy(e){let t=Buffer.alloc(150),n;try{n=lo.openSync(e,"r"),lo.readSync(n,t,0,150,0),lo.closeSync(n)}catch{}return zy(t.toString())}kc.exports=Wy});var Fc=ve((k9,Tc)=>{"use strict";var Vy=require("path"),Rc=wc(),Oc=Ec(),Yy=Dc(),Ky=process.platform==="win32",Xy=/\.(?:com|exe)$/i,Zy=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Jy(e){e.file=Rc(e);let r=e.file&&Yy(e.file);return r?(e.args.unshift(e.file),e.command=r,Rc(e)):e.file}function Qy(e){if(!Ky)return e;let r=Jy(e),t=!Xy.test(r);if(e.options.forceShell||t){let n=Zy.test(r);e.command=Vy.normalize(e.command),e.command=Oc.command(e.command),e.args=e.args.map(c=>Oc.argument(c,n));let i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function eg(e,r,t){r&&!Array.isArray(r)&&(t=r,r=null),r=r?r.slice(0):[],t=Object.assign({},t);let n={command:e,args:r,options:t,file:void 0,original:{command:e,args:r}};return t.shell?n:Qy(n)}Tc.exports=eg});var Ic=ve((D9,Bc)=>{"use strict";var co=process.platform==="win32";function ho(e,r){return Object.assign(new Error(`${r} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${e.command}`,path:e.command,spawnargs:e.args})}function tg(e,r){if(!co)return;let t=e.emit;e.emit=function(n,i){if(n==="exit"){let c=Pc(i,r,"spawn");if(c)return t.call(e,"error",c)}return t.apply(e,arguments)}}function Pc(e,r){return co&&e===1&&!r.file?ho(r.original,"spawn"):null}function rg(e,r){return co&&e===1&&!r.file?ho(r.original,"spawnSync"):null}Bc.exports={hookChildProcess:tg,verifyENOENT:Pc,verifyENOENTSync:rg,notFoundError:ho}});var Nc=ve((R9,Lr)=>{"use strict";var Lc=require("child_process"),fo=Fc(),po=Ic();function Mc(e,r,t){let n=fo(e,r,t),i=Lc.spawn(n.command,n.args,n.options);return po.hookChildProcess(i,n),i}function ng(e,r,t){let n=fo(e,r,t),i=Lc.spawnSync(n.command,n.args,n.options);return i.error=i.error||po.verifyENOENTSync(i.status,n),i}Lr.exports=Mc;Lr.exports.spawn=Mc;Lr.exports.sync=ng;Lr.exports._parse=fo;Lr.exports._enoent=po});var $c=ve((O9,jc)=>{"use strict";jc.exports=e=>{let r=typeof e=="string"?`
|
3
|
+
`:`
|
4
|
+
`.charCodeAt(),t=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e}});var qc=ve((T9,kn)=>{"use strict";var Cn=require("path"),Hc=oo(),Uc=e=>{e={cwd:process.cwd(),path:process.env[Hc()],execPath:process.execPath,...e};let r,t=Cn.resolve(e.cwd),n=[];for(;r!==t;)n.push(Cn.join(t,"node_modules/.bin")),r=t,t=Cn.resolve(t,"..");let i=Cn.resolve(e.cwd,e.execPath,"..");return n.push(i),n.concat(e.path).join(Cn.delimiter)};kn.exports=Uc;kn.exports.default=Uc;kn.exports.env=e=>{e={env:process.env,...e};let r={...e.env},t=Hc({env:r});return e.path=r[t],r[t]=kn.exports(e),r}});var zc=ve((F9,mo)=>{"use strict";var Gc=(e,r)=>{for(let t of Reflect.ownKeys(r))Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t));return e};mo.exports=Gc;mo.exports.default=Gc});var Vc=ve((P9,wi)=>{"use strict";var ig=zc(),_i=new WeakMap,Wc=(e,r={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let t,n=0,i=e.displayName||e.name||"<anonymous>",c=function(...a){if(_i.set(c,++n),n===1)t=e.apply(this,a),e=null;else if(r.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return t};return ig(c,e),_i.set(c,n),c};wi.exports=Wc;wi.exports.default=Wc;wi.exports.callCount=e=>{if(!_i.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return _i.get(e)}});var Yc=ve(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.SIGNALS=void 0;var sg=[{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"}];Ei.SIGNALS=sg});var yo=ve(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.SIGRTMAX=Mr.getRealtimeSignals=void 0;var og=function(){let e=Xc-Kc+1;return Array.from({length:e},ag)};Mr.getRealtimeSignals=og;var ag=function(e,r){return{name:`SIGRT${r+1}`,number:Kc+r,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Kc=34,Xc=64;Mr.SIGRTMAX=Xc});var Zc=ve(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getSignals=void 0;var ug=require("os"),lg=Yc(),cg=yo(),hg=function(){let e=(0,cg.getRealtimeSignals)();return[...lg.SIGNALS,...e].map(fg)};Si.getSignals=hg;var fg=function({name:e,number:r,description:t,action:n,forced:i=!1,standard:c}){let{signals:{[e]:a}}=ug.constants,s=a!==void 0;return{name:e,number:s?a:r,description:t,supported:s,action:n,forced:i,standard:c}}});var Qc=ve(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.signalsByNumber=Nr.signalsByName=void 0;var pg=require("os"),Jc=Zc(),dg=yo(),mg=function(){return(0,Jc.getSignals)().reduce(yg,{})},yg=function(e,{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}){return{...e,[r]:{name:r,number:t,description:n,supported:i,action:c,forced:a,standard:s}}},gg=mg();Nr.signalsByName=gg;var bg=function(){let e=(0,Jc.getSignals)(),r=dg.SIGRTMAX+1,t=Array.from({length:r},(n,i)=>vg(i,e));return Object.assign({},...t)},vg=function(e,r){let t=_g(e,r);if(t===void 0)return{};let{name:n,description:i,supported:c,action:a,forced:s,standard:o}=t;return{[e]:{name:n,number:e,description:i,supported:c,action:a,forced:s,standard:o}}},_g=function(e,r){let t=r.find(({name:n})=>pg.constants.signals[n]===e);return t!==void 0?t:r.find(n=>n.number===e)},wg=bg();Nr.signalsByNumber=wg});var th=ve((N9,eh)=>{"use strict";var{signalsByName:Eg}=Qc(),Sg=({timedOut:e,timeout:r,errorCode:t,signal:n,signalDescription:i,exitCode:c,isCanceled:a})=>e?`timed out after ${r} milliseconds`:a?"was canceled":t!==void 0?`failed with ${t}`:n!==void 0?`was killed with ${n} (${i})`:c!==void 0?`failed with exit code ${c}`:"failed",Ag=({stdout:e,stderr:r,all:t,error:n,signal:i,exitCode:c,command:a,escapedCommand:s,timedOut:o,isCanceled:f,killed:l,parsed:{options:{timeout:h}}})=>{c=c===null?void 0:c,i=i===null?void 0:i;let u=i===void 0?void 0:Eg[i].description,d=n&&n.code,y=`Command ${Sg({timedOut:o,timeout:h,errorCode:d,signal:i,signalDescription:u,exitCode:c,isCanceled:f})}: ${a}`,b=Object.prototype.toString.call(n)==="[object Error]",_=b?`${y}
|
5
|
+
${n.message}`:y,g=[_,r,e].filter(Boolean).join(`
|
6
|
+
`);return b?(n.originalMessage=n.message,n.message=g):n=new Error(g),n.shortMessage=_,n.command=a,n.escapedCommand=s,n.exitCode=c,n.signal=i,n.signalDescription=u,n.stdout=e,n.stderr=r,t!==void 0&&(n.all=t),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!o,n.isCanceled=f,n.killed=l&&!o,n};eh.exports=Ag});var nh=ve((j9,go)=>{"use strict";var Ai=["stdin","stdout","stderr"],xg=e=>Ai.some(r=>e[r]!==void 0),rh=e=>{if(!e)return;let{stdio:r}=e;if(r===void 0)return Ai.map(n=>e[n]);if(xg(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Ai.map(n=>`\`${n}\``).join(", ")}`);if(typeof r=="string")return r;if(!Array.isArray(r))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``);let t=Math.max(r.length,Ai.length);return Array.from({length:t},(n,i)=>r[i])};go.exports=rh;go.exports.node=e=>{let r=rh(e);return r==="ipc"?"ipc":r===void 0||typeof r=="string"?[r,r,r,"ipc"]:r.includes("ipc")?r:[...r,"ipc"]}});var ih=ve(($9,xi)=>{xi.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&xi.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&xi.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var lh=ve((H9,Hr)=>{var $e=global.process,gr=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};gr($e)?(sh=require("assert"),jr=ih(),oh=/^win/i.test($e.platform),Dn=require("events"),typeof Dn!="function"&&(Dn=Dn.EventEmitter),$e.__signal_exit_emitter__?Ke=$e.__signal_exit_emitter__:(Ke=$e.__signal_exit_emitter__=new Dn,Ke.count=0,Ke.emitted={}),Ke.infinite||(Ke.setMaxListeners(1/0),Ke.infinite=!0),Hr.exports=function(e,r){if(!gr(global.process))return function(){};sh.equal(typeof e,"function","a callback must be provided for exit handler"),$r===!1&&bo();var t="exit";r&&r.alwaysLast&&(t="afterexit");var n=function(){Ke.removeListener(t,e),Ke.listeners("exit").length===0&&Ke.listeners("afterexit").length===0&&Ci()};return Ke.on(t,e),n},Ci=function(){!$r||!gr(global.process)||($r=!1,jr.forEach(function(r){try{$e.removeListener(r,ki[r])}catch{}}),$e.emit=Di,$e.reallyExit=vo,Ke.count-=1)},Hr.exports.unload=Ci,br=function(r,t,n){Ke.emitted[r]||(Ke.emitted[r]=!0,Ke.emit(r,t,n))},ki={},jr.forEach(function(e){ki[e]=function(){if(gr(global.process)){var t=$e.listeners(e);t.length===Ke.count&&(Ci(),br("exit",null,e),br("afterexit",null,e),oh&&e==="SIGHUP"&&(e="SIGINT"),$e.kill($e.pid,e))}}}),Hr.exports.signals=function(){return jr},$r=!1,bo=function(){$r||!gr(global.process)||($r=!0,Ke.count+=1,jr=jr.filter(function(r){try{return $e.on(r,ki[r]),!0}catch{return!1}}),$e.emit=uh,$e.reallyExit=ah)},Hr.exports.load=bo,vo=$e.reallyExit,ah=function(r){gr(global.process)&&($e.exitCode=r||0,br("exit",$e.exitCode,null),br("afterexit",$e.exitCode,null),vo.call($e,$e.exitCode))},Di=$e.emit,uh=function(r,t){if(r==="exit"&&gr(global.process)){t!==void 0&&($e.exitCode=t);var n=Di.apply(this,arguments);return br("exit",$e.exitCode,null),br("afterexit",$e.exitCode,null),n}else return Di.apply(this,arguments)}):Hr.exports=function(){return function(){}};var sh,jr,oh,Dn,Ke,Ci,br,ki,$r,bo,vo,ah,Di,uh});var hh=ve((U9,ch)=>{"use strict";var Cg=require("os"),kg=lh(),Dg=1e3*5,Rg=(e,r="SIGTERM",t={})=>{let n=e(r);return Og(e,r,t,n),n},Og=(e,r,t,n)=>{if(!Tg(r,t,n))return;let i=Pg(t),c=setTimeout(()=>{e("SIGKILL")},i);c.unref&&c.unref()},Tg=(e,{forceKillAfterTimeout:r},t)=>Fg(e)&&r!==!1&&t,Fg=e=>e===Cg.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",Pg=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return Dg;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},Bg=(e,r)=>{e.kill()&&(r.isCanceled=!0)},Ig=(e,r,t)=>{e.kill(r),t(Object.assign(new Error("Timed out"),{timedOut:!0,signal:r}))},Lg=(e,{timeout:r,killSignal:t="SIGTERM"},n)=>{if(r===0||r===void 0)return n;let i,c=new Promise((s,o)=>{i=setTimeout(()=>{Ig(e,t,o)},r)}),a=n.finally(()=>{clearTimeout(i)});return Promise.race([c,a])},Mg=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ng=async(e,{cleanup:r,detached:t},n)=>{if(!r||t)return n;let i=kg(()=>{e.kill()});return n.finally(()=>{i()})};ch.exports={spawnedKill:Rg,spawnedCancel:Bg,setupTimeout:Lg,validateTimeout:Mg,setExitHandler:Ng}});var ph=ve((q9,fh)=>{"use strict";var Rt=e=>e!==null&&typeof e=="object"&&typeof e.pipe=="function";Rt.writable=e=>Rt(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object";Rt.readable=e=>Rt(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object";Rt.duplex=e=>Rt.writable(e)&&Rt.readable(e);Rt.transform=e=>Rt.duplex(e)&&typeof e._transform=="function";fh.exports=Rt});var mh=ve((G9,dh)=>{"use strict";var{PassThrough:jg}=require("stream");dh.exports=e=>{e={...e};let{array:r}=e,{encoding:t}=e,n=t==="buffer",i=!1;r?i=!(t||n):t=t||"utf8",n&&(t=null);let c=new jg({objectMode:i});t&&c.setEncoding(t);let a=0,s=[];return c.on("data",o=>{s.push(o),i?a=s.length:a+=o.length}),c.getBufferedValue=()=>r?s:n?Buffer.concat(s,a):s.join(""),c.getBufferedLength=()=>a,c}});var yh=ve((z9,Rn)=>{"use strict";var{constants:$g}=require("buffer"),Hg=require("stream"),{promisify:Ug}=require("util"),qg=mh(),Gg=Ug(Hg.pipeline),Ri=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function _o(e,r){if(!e)throw new Error("Expected a stream");r={maxBuffer:1/0,...r};let{maxBuffer:t}=r,n=qg(r);return await new Promise((i,c)=>{let a=s=>{s&&n.getBufferedLength()<=$g.MAX_LENGTH&&(s.bufferedData=n.getBufferedValue()),c(s)};(async()=>{try{await Gg(e,n),i()}catch(s){a(s)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new Ri)})}),n.getBufferedValue()}Rn.exports=_o;Rn.exports.buffer=(e,r)=>_o(e,{...r,encoding:"buffer"});Rn.exports.array=(e,r)=>_o(e,{...r,array:!0});Rn.exports.MaxBufferError=Ri});var bh=ve((W9,gh)=>{"use strict";var{PassThrough:zg}=require("stream");gh.exports=function(){var e=[],r=new zg({objectMode:!0});return r.setMaxListeners(0),r.add=t,r.isEmpty=n,r.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(t),r;function t(c){return Array.isArray(c)?(c.forEach(t),this):(e.push(c),c.once("end",i.bind(null,c)),c.once("error",r.emit.bind(r,"error")),c.pipe(r,{end:!1}),this)}function n(){return e.length==0}function i(c){e=e.filter(function(a){return a!==c}),!e.length&&r.readable&&r.end()}}});var Eh=ve((V9,wh)=>{"use strict";var _h=ph(),vh=yh(),Wg=bh(),Vg=(e,r)=>{r===void 0||e.stdin===void 0||(_h(r)?r.pipe(e.stdin):e.stdin.end(r))},Yg=(e,{all:r})=>{if(!r||!e.stdout&&!e.stderr)return;let t=Wg();return e.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t},wo=async(e,r)=>{if(e){e.destroy();try{return await r}catch(t){return t.bufferedData}}},Eo=(e,{encoding:r,buffer:t,maxBuffer:n})=>{if(!(!e||!t))return r?vh(e,{encoding:r,maxBuffer:n}):vh.buffer(e,{maxBuffer:n})},Kg=async({stdout:e,stderr:r,all:t},{encoding:n,buffer:i,maxBuffer:c},a)=>{let s=Eo(e,{encoding:n,buffer:i,maxBuffer:c}),o=Eo(r,{encoding:n,buffer:i,maxBuffer:c}),f=Eo(t,{encoding:n,buffer:i,maxBuffer:c*2});try{return await Promise.all([a,s,o,f])}catch(l){return Promise.all([{error:l,signal:l.signal,timedOut:l.timedOut},wo(e,s),wo(r,o),wo(t,f)])}},Xg=({input:e})=>{if(_h(e))throw new TypeError("The `input` option cannot be a stream in sync mode")};wh.exports={handleInput:Vg,makeAllStream:Yg,getSpawnedResult:Kg,validateInputSync:Xg}});var Ah=ve((Y9,Sh)=>{"use strict";var Zg=(async()=>{})().constructor.prototype,Jg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Zg,e)]),Qg=(e,r)=>{for(let[t,n]of Jg){let i=typeof r=="function"?(...c)=>Reflect.apply(n.value,r(),c):n.value.bind(r);Reflect.defineProperty(e,t,{...n,value:i})}return e},e8=e=>new Promise((r,t)=>{e.on("exit",(n,i)=>{r({exitCode:n,signal:i})}),e.on("error",n=>{t(n)}),e.stdin&&e.stdin.on("error",n=>{t(n)})});Sh.exports={mergePromise:Qg,getSpawnedPromise:e8}});var kh=ve((K9,Ch)=>{"use strict";var xh=(e,r=[])=>Array.isArray(r)?[e,...r]:[e],t8=/^[\w.-]+$/,r8=/"/g,n8=e=>typeof e!="string"||t8.test(e)?e:`"${e.replace(r8,'\\"')}"`,i8=(e,r)=>xh(e,r).join(" "),s8=(e,r)=>xh(e,r).map(t=>n8(t)).join(" "),o8=/ +/g,a8=e=>{let r=[];for(let t of e.trim().split(o8)){let n=r[r.length-1];n&&n.endsWith("\\")?r[r.length-1]=`${n.slice(0,-1)} ${t}`:r.push(t)}return r};Ch.exports={joinCommand:i8,getEscapedCommand:s8,parseCommand:a8}});var Ao=ve((X9,Ur)=>{"use strict";var u8=require("path"),So=require("child_process"),l8=Nc(),c8=$c(),h8=qc(),f8=Vc(),Oi=th(),Rh=nh(),{spawnedKill:p8,spawnedCancel:d8,setupTimeout:m8,validateTimeout:y8,setExitHandler:g8}=hh(),{handleInput:b8,getSpawnedResult:v8,makeAllStream:_8,validateInputSync:w8}=Eh(),{mergePromise:Dh,getSpawnedPromise:E8}=Ah(),{joinCommand:Oh,parseCommand:Th,getEscapedCommand:Fh}=kh(),S8=1e3*1e3*100,A8=({env:e,extendEnv:r,preferLocal:t,localDir:n,execPath:i})=>{let c=r?{...process.env,...e}:e;return t?h8.env({env:c,cwd:n,execPath:i}):c},Ph=(e,r,t={})=>{let n=l8._parse(e,r,t);return e=n.command,r=n.args,t=n.options,t={maxBuffer:S8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:t.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...t},t.env=A8(t),t.stdio=Rh(t),process.platform==="win32"&&u8.basename(e,".exe")==="cmd"&&r.unshift("/q"),{file:e,args:r,options:t,parsed:n}},On=(e,r,t)=>typeof r!="string"&&!Buffer.isBuffer(r)?t===void 0?void 0:"":e.stripFinalNewline?c8(r):r,Ti=(e,r,t)=>{let n=Ph(e,r,t),i=Oh(e,r),c=Fh(e,r);y8(n.options);let a;try{a=So.spawn(n.file,n.args,n.options)}catch(d){let p=new So.ChildProcess,y=Promise.reject(Oi({error:d,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}));return Dh(p,y)}let s=E8(a),o=m8(a,n.options,s),f=g8(a,n.options,o),l={isCanceled:!1};a.kill=p8.bind(null,a.kill.bind(a)),a.cancel=d8.bind(null,a,l);let u=f8(async()=>{let[{error:d,exitCode:p,signal:y,timedOut:b},_,g,S]=await v8(a,n.options,f),E=On(n.options,_),v=On(n.options,g),m=On(n.options,S);if(d||p!==0||y!==null){let w=Oi({error:d,exitCode:p,signal:y,stdout:E,stderr:v,all:m,command:i,escapedCommand:c,parsed:n,timedOut:b,isCanceled:l.isCanceled,killed:a.killed});if(!n.options.reject)return w;throw w}return{command:i,escapedCommand:c,exitCode:0,stdout:E,stderr:v,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return b8(a,n.options.input),a.all=_8(a,n.options),Dh(a,u)};Ur.exports=Ti;Ur.exports.sync=(e,r,t)=>{let n=Ph(e,r,t),i=Oh(e,r),c=Fh(e,r);w8(n.options);let a;try{a=So.spawnSync(n.file,n.args,n.options)}catch(f){throw Oi({error:f,stdout:"",stderr:"",all:"",command:i,escapedCommand:c,parsed:n,timedOut:!1,isCanceled:!1,killed:!1})}let s=On(n.options,a.stdout,a.error),o=On(n.options,a.stderr,a.error);if(a.error||a.status!==0||a.signal!==null){let f=Oi({stdout:s,stderr:o,error:a.error,signal:a.signal,exitCode:a.status,command:i,escapedCommand:c,parsed:n,timedOut:a.error&&a.error.code==="ETIMEDOUT",isCanceled:!1,killed:a.signal!==null});if(!n.options.reject)return f;throw f}return{command:i,escapedCommand:c,exitCode:0,stdout:s,stderr:o,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}};Ur.exports.command=(e,r)=>{let[t,...n]=Th(e);return Ti(t,n,r)};Ur.exports.commandSync=(e,r)=>{let[t,...n]=Th(e);return Ti.sync(t,n,r)};Ur.exports.node=(e,r,t={})=>{r&&!Array.isArray(r)&&typeof r=="object"&&(t=r,r=[]);let n=Rh.node(t),i=process.execArgv.filter(s=>!s.startsWith("--inspect")),{nodePath:c=process.execPath,nodeOptions:a=i}=t;return Ti(c,[...a,e,...Array.isArray(r)?r:[]],{...t,stdin:void 0,stdout:void 0,stderr:void 0,stdio:n,shell:!1})}});var Bh=ve(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.splitWhen=qr.flatten=void 0;function x8(e){return e.reduce((r,t)=>[].concat(r,t),[])}qr.flatten=x8;function C8(e,r){let t=[[]],n=0;for(let i of e)r(i)?(n++,t[n]=[]):t[n].push(i);return t}qr.splitWhen=C8});var Ih=ve(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.isEnoentCodeError=void 0;function k8(e){return e.code==="ENOENT"}Fi.isEnoentCodeError=k8});var Lh=ve(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.createDirentFromStats=void 0;var xo=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function D8(e,r){return new xo(e,r)}Pi.createDirentFromStats=D8});var Mh=ve(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.removeLeadingDotSegment=Ot.escape=Ot.makeAbsolute=Ot.unixify=void 0;var R8=require("path"),O8=2,T8=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function F8(e){return e.replace(/\\/g,"/")}Ot.unixify=F8;function P8(e,r){return R8.resolve(e,r)}Ot.makeAbsolute=P8;function B8(e){return e.replace(T8,"\\$2")}Ot.escape=B8;function I8(e){if(e.charAt(0)==="."){let r=e.charAt(1);if(r==="/"||r==="\\")return e.slice(O8)}return e}Ot.removeLeadingDotSegment=I8});var jh=ve((tL,Nh)=>{Nh.exports=function(r){if(typeof r!="string"||r==="")return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(r);){if(t[2])return!0;r=r.slice(t.index+t[0].length)}return!1}});var Uh=ve((rL,Hh)=>{var L8=jh(),$h={"{":"}","(":")","[":"]"},M8=function(e){if(e[0]==="!")return!0;for(var r=0,t=-2,n=-2,i=-2,c=-2,a=-2;r<e.length;){if(e[r]==="*"||e[r+1]==="?"&&/[\].+)]/.test(e[r])||n!==-1&&e[r]==="["&&e[r+1]!=="]"&&(n<r&&(n=e.indexOf("]",r)),n>r&&(a===-1||a>n||(a=e.indexOf("\\",r),a===-1||a>n)))||i!==-1&&e[r]==="{"&&e[r+1]!=="}"&&(i=e.indexOf("}",r),i>r&&(a=e.indexOf("\\",r),a===-1||a>i))||c!==-1&&e[r]==="("&&e[r+1]==="?"&&/[:!=]/.test(e[r+2])&&e[r+3]!==")"&&(c=e.indexOf(")",r),c>r&&(a=e.indexOf("\\",r),a===-1||a>c))||t!==-1&&e[r]==="("&&e[r+1]!=="|"&&(t<r&&(t=e.indexOf("|",r)),t!==-1&&e[t+1]!==")"&&(c=e.indexOf(")",t),c>t&&(a=e.indexOf("\\",t),a===-1||a>c))))return!0;if(e[r]==="\\"){var s=e[r+1];r+=2;var o=$h[s];if(o){var f=e.indexOf(o,r);f!==-1&&(r=f+1)}if(e[r]==="!")return!0}else r++}return!1},N8=function(e){if(e[0]==="!")return!0;for(var r=0;r<e.length;){if(/[*?{}()[\]]/.test(e[r]))return!0;if(e[r]==="\\"){var t=e[r+1];r+=2;var n=$h[t];if(n){var i=e.indexOf(n,r);i!==-1&&(r=i+1)}if(e[r]==="!")return!0}else r++}return!1};Hh.exports=function(r,t){if(typeof r!="string"||r==="")return!1;if(L8(r))return!0;var n=M8;return t&&t.strict===!1&&(n=N8),n(r)}});var Gh=ve((nL,qh)=>{"use strict";var j8=Uh(),$8=require("path").posix.dirname,H8=require("os").platform()==="win32",Co="/",U8=/\\/g,q8=/[\{\[].*[\}\]]$/,G8=/(^|[^\\])([\{\[]|\([^\)]+$)/,z8=/\\([\!\*\?\|\[\]\(\)\{\}])/g;qh.exports=function(r,t){var n=Object.assign({flipBackslashes:!0},t);n.flipBackslashes&&H8&&r.indexOf(Co)<0&&(r=r.replace(U8,Co)),q8.test(r)&&(r+=Co),r+="a";do r=$8(r);while(j8(r)||G8.test(r));return r.replace(z8,"$1")}});var Bi=ve(_t=>{"use strict";_t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;_t.find=(e,r)=>e.nodes.find(t=>t.type===r);_t.exceedsLimit=(e,r,t=1,n)=>n===!1||!_t.isInteger(e)||!_t.isInteger(r)?!1:(Number(r)-Number(e))/Number(t)>=n;_t.escapeNode=(e,r=0,t)=>{let n=e.nodes[r];n&&(t&&n.type===t||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};_t.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);_t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;_t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;_t.reduce=e=>e.reduce((r,t)=>(t.type==="text"&&r.push(t.value),t.type==="range"&&(t.type="text"),r),[]);_t.flatten=(...e)=>{let r=[],t=n=>{for(let i=0;i<n.length;i++){let c=n[i];Array.isArray(c)?t(c,r):c!==void 0&&r.push(c)}return r};return t(e),r}});var Ii=ve((sL,Wh)=>{"use strict";var zh=Bi();Wh.exports=(e,r={})=>{let t=(n,i={})=>{let c=r.escapeInvalid&&zh.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s="";if(n.value)return(c||a)&&zh.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let o of n.nodes)s+=t(o);return s};return t(e)}});var Yh=ve((oL,Vh)=>{"use strict";Vh.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var nf=ve((aL,rf)=>{"use strict";var Kh=Yh(),vr=(e,r,t)=>{if(Kh(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(r===void 0||e===r)return String(e);if(Kh(r)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...t};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),c=String(n.shorthand),a=String(n.capture),s=String(n.wrap),o=e+":"+r+"="+i+c+a+s;if(vr.cache.hasOwnProperty(o))return vr.cache[o].result;let f=Math.min(e,r),l=Math.max(e,r);if(Math.abs(f-l)===1){let y=e+"|"+r;return n.capture?`(${y})`:n.wrap===!1?y:`(?:${y})`}let h=tf(e)||tf(r),u={min:e,max:r,a:f,b:l},d=[],p=[];if(h&&(u.isPadded=h,u.maxLen=String(u.max).length),f<0){let y=l<0?Math.abs(l):1;p=Xh(y,Math.abs(f),u,n),f=u.a=0}return l>=0&&(d=Xh(f,l,u,n)),u.negatives=p,u.positives=d,u.result=W8(p,d,n),n.capture===!0?u.result=`(${u.result})`:n.wrap!==!1&&d.length+p.length>1&&(u.result=`(?:${u.result})`),vr.cache[o]=u,u.result};function W8(e,r,t){let n=ko(e,r,"-",!1,t)||[],i=ko(r,e,"",!1,t)||[],c=ko(e,r,"-?",!0,t)||[];return n.concat(c).concat(i).join("|")}function V8(e,r){let t=1,n=1,i=Jh(e,t),c=new Set([r]);for(;e<=i&&i<=r;)c.add(i),t+=1,i=Jh(e,t);for(i=Qh(r+1,n)-1;e<i&&i<=r;)c.add(i),n+=1,i=Qh(r+1,n)-1;return c=[...c],c.sort(X8),c}function Y8(e,r,t){if(e===r)return{pattern:e,count:[],digits:0};let n=K8(e,r),i=n.length,c="",a=0;for(let s=0;s<i;s++){let[o,f]=n[s];o===f?c+=o:o!=="0"||f!=="9"?c+=Z8(o,f,t):a++}return a&&(c+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:c,count:[a],digits:i}}function Xh(e,r,t,n){let i=V8(e,r),c=[],a=e,s;for(let o=0;o<i.length;o++){let f=i[o],l=Y8(String(a),String(f),n),h="";if(!t.isPadded&&s&&s.pattern===l.pattern){s.count.length>1&&s.count.pop(),s.count.push(l.count[0]),s.string=s.pattern+ef(s.count),a=f+1;continue}t.isPadded&&(h=J8(f,t,n)),l.string=h+l.pattern+ef(l.count),c.push(l),a=f+1,s=l}return c}function ko(e,r,t,n,i){let c=[];for(let a of e){let{string:s}=a;!n&&!Zh(r,"string",s)&&c.push(t+s),n&&Zh(r,"string",s)&&c.push(t+s)}return c}function K8(e,r){let t=[];for(let n=0;n<e.length;n++)t.push([e[n],r[n]]);return t}function X8(e,r){return e>r?1:r>e?-1:0}function Zh(e,r,t){return e.some(n=>n[r]===t)}function Jh(e,r){return Number(String(e).slice(0,-r)+"9".repeat(r))}function Qh(e,r){return e-e%Math.pow(10,r)}function ef(e){let[r=0,t=""]=e;return t||r>1?`{${r+(t?","+t:"")}}`:""}function Z8(e,r,t){return`[${e}${r-e===1?"":"-"}${r}]`}function tf(e){return/^-?(0+)\d/.test(e)}function J8(e,r,t){if(!r.isPadded)return e;let n=Math.abs(r.maxLen-String(e).length),i=t.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}vr.cache={};vr.clearCache=()=>vr.cache={};rf.exports=vr});var Oo=ve((uL,ff)=>{"use strict";var Q8=require("util"),af=nf(),sf=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),e5=e=>r=>e===!0?Number(r):String(r),Do=e=>typeof e=="number"||typeof e=="string"&&e!=="",Tn=e=>Number.isInteger(+e),Ro=e=>{let r=`${e}`,t=-1;if(r[0]==="-"&&(r=r.slice(1)),r==="0")return!1;for(;r[++t]==="0";);return t>0},t5=(e,r,t)=>typeof e=="string"||typeof r=="string"?!0:t.stringify===!0,r5=(e,r,t)=>{if(r>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?r-1:r,"0")}return t===!1?String(e):e},of=(e,r)=>{let t=e[0]==="-"?"-":"";for(t&&(e=e.slice(1),r--);e.length<r;)e="0"+e;return t?"-"+e:e},n5=(e,r)=>{e.negatives.sort((a,s)=>a<s?-1:a>s?1:0),e.positives.sort((a,s)=>a<s?-1:a>s?1:0);let t=r.capture?"":"?:",n="",i="",c;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${t}${e.negatives.join("|")})`),n&&i?c=`${n}|${i}`:c=n||i,r.wrap?`(${t}${c})`:c},uf=(e,r,t,n)=>{if(t)return af(e,r,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===r)return i;let c=String.fromCharCode(r);return`[${i}-${c}]`},lf=(e,r,t)=>{if(Array.isArray(e)){let n=t.wrap===!0,i=t.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return af(e,r,t)},cf=(...e)=>new RangeError("Invalid range arguments: "+Q8.inspect(...e)),hf=(e,r,t)=>{if(t.strictRanges===!0)throw cf([e,r]);return[]},i5=(e,r)=>{if(r.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},s5=(e,r,t=1,n={})=>{let i=Number(e),c=Number(r);if(!Number.isInteger(i)||!Number.isInteger(c)){if(n.strictRanges===!0)throw cf([e,r]);return[]}i===0&&(i=0),c===0&&(c=0);let a=i>c,s=String(e),o=String(r),f=String(t);t=Math.max(Math.abs(t),1);let l=Ro(s)||Ro(o)||Ro(f),h=l?Math.max(s.length,o.length,f.length):0,u=l===!1&&t5(e,r,n)===!1,d=n.transform||e5(u);if(n.toRegex&&t===1)return uf(of(e,h),of(r,h),!0,n);let p={negatives:[],positives:[]},y=g=>p[g<0?"negatives":"positives"].push(Math.abs(g)),b=[],_=0;for(;a?i>=c:i<=c;)n.toRegex===!0&&t>1?y(i):b.push(r5(d(i,_),h,u)),i=a?i-t:i+t,_++;return n.toRegex===!0?t>1?n5(p,n):lf(b,null,{wrap:!1,...n}):b},o5=(e,r,t=1,n={})=>{if(!Tn(e)&&e.length>1||!Tn(r)&&r.length>1)return hf(e,r,n);let i=n.transform||(u=>String.fromCharCode(u)),c=`${e}`.charCodeAt(0),a=`${r}`.charCodeAt(0),s=c>a,o=Math.min(c,a),f=Math.max(c,a);if(n.toRegex&&t===1)return uf(o,f,!1,n);let l=[],h=0;for(;s?c>=a:c<=a;)l.push(i(c,h)),c=s?c-t:c+t,h++;return n.toRegex===!0?lf(l,null,{wrap:!1,options:n}):l},Li=(e,r,t,n={})=>{if(r==null&&Do(e))return[e];if(!Do(e)||!Do(r))return hf(e,r,n);if(typeof t=="function")return Li(e,r,1,{transform:t});if(sf(t))return Li(e,r,0,t);let i={...n};return i.capture===!0&&(i.wrap=!0),t=t||i.step||1,Tn(t)?Tn(e)&&Tn(r)?s5(e,r,t,i):o5(e,r,Math.max(Math.abs(t),1),i):t!=null&&!sf(t)?i5(t,i):Li(e,r,1,t)};ff.exports=Li});var mf=ve((lL,df)=>{"use strict";var a5=Oo(),pf=Bi(),u5=(e,r={})=>{let t=(n,i={})=>{let c=pf.isInvalidBrace(i),a=n.invalid===!0&&r.escapeInvalid===!0,s=c===!0||a===!0,o=r.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return o+n.value;if(n.type==="open")return s?o+n.value:"(";if(n.type==="close")return s?o+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=pf.reduce(n.nodes),h=a5(...l,{...r,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=t(l,n);return f};return t(e)};df.exports=u5});var bf=ve((cL,gf)=>{"use strict";var l5=Oo(),yf=Ii(),Gr=Bi(),_r=(e="",r="",t=!1)=>{let n=[];if(e=[].concat(e),r=[].concat(r),!r.length)return e;if(!e.length)return t?Gr.flatten(r).map(i=>`{${i}}`):r;for(let i of e)if(Array.isArray(i))for(let c of i)n.push(_r(c,r,t));else for(let c of r)t===!0&&typeof c=="string"&&(c=`{${c}}`),n.push(Array.isArray(c)?_r(i,c,t):i+c);return Gr.flatten(n)},c5=(e,r={})=>{let t=r.rangeLimit===void 0?1e3:r.rangeLimit,n=(i,c={})=>{i.queue=[];let a=c,s=c.queue;for(;a.type!=="brace"&&a.type!=="root"&&a.parent;)a=a.parent,s=a.queue;if(i.invalid||i.dollar){s.push(_r(s.pop(),yf(i,r)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(_r(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Gr.reduce(i.nodes);if(Gr.exceedsLimit(...h,r.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let u=l5(...h,r);u.length===0&&(u=yf(i,r)),s.push(_r(s.pop(),u)),i.nodes=[];return}let o=Gr.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let u=i.nodes[h];if(u.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(u.type==="close"){s.push(_r(s.pop(),f,o));continue}if(u.value&&u.type!=="open"){f.push(_r(f.pop(),u.value));continue}u.nodes&&n(u,i)}return f};return Gr.flatten(n(e))};gf.exports=c5});var _f=ve((hL,vf)=>{"use strict";vf.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
7
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var xf=ve((fL,Af)=>{"use strict";var h5=Ii(),{MAX_LENGTH:wf,CHAR_BACKSLASH:To,CHAR_BACKTICK:f5,CHAR_COMMA:p5,CHAR_DOT:d5,CHAR_LEFT_PARENTHESES:m5,CHAR_RIGHT_PARENTHESES:y5,CHAR_LEFT_CURLY_BRACE:g5,CHAR_RIGHT_CURLY_BRACE:b5,CHAR_LEFT_SQUARE_BRACKET:Ef,CHAR_RIGHT_SQUARE_BRACKET:Sf,CHAR_DOUBLE_QUOTE:v5,CHAR_SINGLE_QUOTE:_5,CHAR_NO_BREAK_SPACE:w5,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E5}=_f(),S5=(e,r={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let t=r||{},n=typeof t.maxLength=="number"?Math.min(wf,t.maxLength):wf;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},c=[i],a=i,s=i,o=0,f=e.length,l=0,h=0,u,d={},p=()=>e[l++],y=b=>{if(b.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&b.type==="text"){s.value+=b.value;return}return a.nodes.push(b),b.parent=a,b.prev=s,s=b,b};for(y({type:"bos"});l<f;)if(a=c[c.length-1],u=p(),!(u===E5||u===w5)){if(u===To){y({type:"text",value:(r.keepEscaping?u:"")+p()});continue}if(u===Sf){y({type:"text",value:"\\"+u});continue}if(u===Ef){o++;let b=!0,_;for(;l<f&&(_=p());){if(u+=_,_===Ef){o++;continue}if(_===To){u+=p();continue}if(_===Sf&&(o--,o===0))break}y({type:"text",value:u});continue}if(u===m5){a=y({type:"paren",nodes:[]}),c.push(a),y({type:"text",value:u});continue}if(u===y5){if(a.type!=="paren"){y({type:"text",value:u});continue}a=c.pop(),y({type:"text",value:u}),a=c[c.length-1];continue}if(u===v5||u===_5||u===f5){let b=u,_;for(r.keepQuotes!==!0&&(u="");l<f&&(_=p());){if(_===To){u+=_+p();continue}if(_===b){r.keepQuotes===!0&&(u+=_);break}u+=_}y({type:"text",value:u});continue}if(u===g5){h++;let _={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||a.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};a=y(_),c.push(a),y({type:"open",value:u});continue}if(u===b5){if(a.type!=="brace"){y({type:"text",value:u});continue}let b="close";a=c.pop(),a.close=!0,y({type:b,value:u}),h--,a=c[c.length-1];continue}if(u===p5&&h>0){if(a.ranges>0){a.ranges=0;let b=a.nodes.shift();a.nodes=[b,{type:"text",value:h5(a)}]}y({type:"comma",value:u}),a.commas++;continue}if(u===d5&&h>0&&a.commas===0){let b=a.nodes;if(h===0||b.length===0){y({type:"text",value:u});continue}if(s.type==="dot"){if(a.range=[],s.value+=u,s.type="range",a.nodes.length!==3&&a.nodes.length!==5){a.invalid=!0,a.ranges=0,s.type="text";continue}a.ranges++,a.args=[];continue}if(s.type==="range"){b.pop();let _=b[b.length-1];_.value+=s.value+u,s=_,a.ranges--;continue}y({type:"dot",value:u});continue}y({type:"text",value:u})}do if(a=c.pop(),a.type!=="root"){a.nodes.forEach(g=>{g.nodes||(g.type==="open"&&(g.isOpen=!0),g.type==="close"&&(g.isClose=!0),g.nodes||(g.type="text"),g.invalid=!0)});let b=c[c.length-1],_=b.nodes.indexOf(a);b.nodes.splice(_,1,...a.nodes)}while(c.length>0);return y({type:"eos"}),i};Af.exports=S5});var Df=ve((pL,kf)=>{"use strict";var Cf=Ii(),A5=mf(),x5=bf(),C5=xf(),pt=(e,r={})=>{let t=[];if(Array.isArray(e))for(let n of e){let i=pt.create(n,r);Array.isArray(i)?t.push(...i):t.push(i)}else t=[].concat(pt.create(e,r));return r&&r.expand===!0&&r.nodupes===!0&&(t=[...new Set(t)]),t};pt.parse=(e,r={})=>C5(e,r);pt.stringify=(e,r={})=>Cf(typeof e=="string"?pt.parse(e,r):e,r);pt.compile=(e,r={})=>(typeof e=="string"&&(e=pt.parse(e,r)),A5(e,r));pt.expand=(e,r={})=>{typeof e=="string"&&(e=pt.parse(e,r));let t=x5(e,r);return r.noempty===!0&&(t=t.filter(Boolean)),r.nodupes===!0&&(t=[...new Set(t)]),t};pt.create=(e,r={})=>e===""||e.length<3?[e]:r.expand!==!0?pt.compile(e,r):pt.expand(e,r);kf.exports=pt});var Fn=ve((dL,Pf)=>{"use strict";var k5=require("path"),Tt="\\\\/",Rf=`[^${Tt}]`,Ut="\\.",D5="\\+",R5="\\?",Mi="\\/",O5="(?=.)",Of="[^/]",Fo=`(?:${Mi}|$)`,Tf=`(?:^|${Mi})`,Po=`${Ut}{1,2}${Fo}`,T5=`(?!${Ut})`,F5=`(?!${Tf}${Po})`,P5=`(?!${Ut}{0,1}${Fo})`,B5=`(?!${Po})`,I5=`[^.${Mi}]`,L5=`${Of}*?`,Ff={DOT_LITERAL:Ut,PLUS_LITERAL:D5,QMARK_LITERAL:R5,SLASH_LITERAL:Mi,ONE_CHAR:O5,QMARK:Of,END_ANCHOR:Fo,DOTS_SLASH:Po,NO_DOT:T5,NO_DOTS:F5,NO_DOT_SLASH:P5,NO_DOTS_SLASH:B5,QMARK_NO_DOT:I5,STAR:L5,START_ANCHOR:Tf},M5={...Ff,SLASH_LITERAL:`[${Tt}]`,QMARK:Rf,STAR:`${Rf}*?`,DOTS_SLASH:`${Ut}{1,2}(?:[${Tt}]|$)`,NO_DOT:`(?!${Ut})`,NO_DOTS:`(?!(?:^|[${Tt}])${Ut}{1,2}(?:[${Tt}]|$))`,NO_DOT_SLASH:`(?!${Ut}{0,1}(?:[${Tt}]|$))`,NO_DOTS_SLASH:`(?!${Ut}{1,2}(?:[${Tt}]|$))`,QMARK_NO_DOT:`[^.${Tt}]`,START_ANCHOR:`(?:^|[${Tt}])`,END_ANCHOR:`(?:[${Tt}]|$)`},N5={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Pf.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:N5,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:k5.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?M5:Ff}}});var Pn=ve(at=>{"use strict";var j5=require("path"),$5=process.platform==="win32",{REGEX_BACKSLASH:H5,REGEX_REMOVE_BACKSLASH:U5,REGEX_SPECIAL_CHARS:q5,REGEX_SPECIAL_CHARS_GLOBAL:G5}=Fn();at.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);at.hasRegexChars=e=>q5.test(e);at.isRegexChar=e=>e.length===1&&at.hasRegexChars(e);at.escapeRegex=e=>e.replace(G5,"\\$1");at.toPosixSlashes=e=>e.replace(H5,"/");at.removeBackslashes=e=>e.replace(U5,r=>r==="\\"?"":r);at.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};at.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:$5===!0||j5.sep==="\\";at.escapeLast=(e,r,t)=>{let n=e.lastIndexOf(r,t);return n===-1?e:e[n-1]==="\\"?at.escapeLast(e,r,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};at.removePrefix=(e,r={})=>{let t=e;return t.startsWith("./")&&(t=t.slice(2),r.prefix="./"),t};at.wrapOutput=(e,r={},t={})=>{let n=t.contains?"":"^",i=t.contains?"":"$",c=`${n}(?:${e})${i}`;return r.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}});var Hf=ve((yL,$f)=>{"use strict";var Bf=Pn(),{CHAR_ASTERISK:Bo,CHAR_AT:z5,CHAR_BACKWARD_SLASH:Bn,CHAR_COMMA:W5,CHAR_DOT:Io,CHAR_EXCLAMATION_MARK:Lo,CHAR_FORWARD_SLASH:jf,CHAR_LEFT_CURLY_BRACE:Mo,CHAR_LEFT_PARENTHESES:No,CHAR_LEFT_SQUARE_BRACKET:V5,CHAR_PLUS:Y5,CHAR_QUESTION_MARK:If,CHAR_RIGHT_CURLY_BRACE:K5,CHAR_RIGHT_PARENTHESES:Lf,CHAR_RIGHT_SQUARE_BRACKET:X5}=Fn(),Mf=e=>e===jf||e===Bn,Nf=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Z5=(e,r)=>{let t=r||{},n=e.length-1,i=t.parts===!0||t.scanToEnd===!0,c=[],a=[],s=[],o=e,f=-1,l=0,h=0,u=!1,d=!1,p=!1,y=!1,b=!1,_=!1,g=!1,S=!1,E=!1,v=!1,m=0,w,A,x={value:"",depth:0,isGlob:!1},R=()=>f>=n,P=()=>o.charCodeAt(f+1),F=()=>(w=A,o.charCodeAt(++f));for(;f<n;){A=F();let I;if(A===Bn){g=x.backslashes=!0,A=F(),A===Mo&&(_=!0);continue}if(_===!0||A===Mo){for(m++;R()!==!0&&(A=F());){if(A===Bn){g=x.backslashes=!0,F();continue}if(A===Mo){m++;continue}if(_!==!0&&A===Io&&(A=F())===Io){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(_!==!0&&A===W5){if(u=x.isBrace=!0,p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===K5&&(m--,m===0)){_=!1,u=x.isBrace=!0,v=!0;break}}if(i===!0)continue;break}if(A===jf){if(c.push(f),a.push(x),x={value:"",depth:0,isGlob:!1},v===!0)continue;if(w===Io&&f===l+1){l+=2;continue}h=f+1;continue}if(t.noext!==!0&&(A===Y5||A===z5||A===Bo||A===If||A===Lo)===!0&&P()===No){if(p=x.isGlob=!0,y=x.isExtglob=!0,v=!0,A===Lo&&f===l&&(E=!0),i===!0){for(;R()!==!0&&(A=F());){if(A===Bn){g=x.backslashes=!0,A=F();continue}if(A===Lf){p=x.isGlob=!0,v=!0;break}}continue}break}if(A===Bo){if(w===Bo&&(b=x.isGlobstar=!0),p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===If){if(p=x.isGlob=!0,v=!0,i===!0)continue;break}if(A===V5){for(;R()!==!0&&(I=F());){if(I===Bn){g=x.backslashes=!0,F();continue}if(I===X5){d=x.isBracket=!0,p=x.isGlob=!0,v=!0;break}}if(i===!0)continue;break}if(t.nonegate!==!0&&A===Lo&&f===l){S=x.negated=!0,l++;continue}if(t.noparen!==!0&&A===No){if(p=x.isGlob=!0,i===!0){for(;R()!==!0&&(A=F());){if(A===No){g=x.backslashes=!0,A=F();continue}if(A===Lf){v=!0;break}}continue}break}if(p===!0){if(v=!0,i===!0)continue;break}}t.noext===!0&&(y=!1,p=!1);let O=o,D="",k="";l>0&&(D=o.slice(0,l),o=o.slice(l),h-=l),O&&p===!0&&h>0?(O=o.slice(0,h),k=o.slice(h)):p===!0?(O="",k=o):O=o,O&&O!==""&&O!=="/"&&O!==o&&Mf(O.charCodeAt(O.length-1))&&(O=O.slice(0,-1)),t.unescape===!0&&(k&&(k=Bf.removeBackslashes(k)),O&&g===!0&&(O=Bf.removeBackslashes(O)));let L={prefix:D,input:e,start:l,base:O,glob:k,isBrace:u,isBracket:d,isGlob:p,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(t.tokens===!0&&(L.maxDepth=0,Mf(A)||a.push(x),L.tokens=a),t.parts===!0||t.tokens===!0){let I;for(let H=0;H<c.length;H++){let z=I?I+1:l,re=c[H],B=e.slice(z,re);t.tokens&&(H===0&&l!==0?(a[H].isPrefix=!0,a[H].value=D):a[H].value=B,Nf(a[H]),L.maxDepth+=a[H].depth),(H!==0||B!=="")&&s.push(B),I=re}if(I&&I+1<e.length){let H=e.slice(I+1);s.push(H),t.tokens&&(a[a.length-1].value=H,Nf(a[a.length-1]),L.maxDepth+=a[a.length-1].depth)}L.slashes=c,L.parts=s}return L};$f.exports=Z5});var Gf=ve((gL,qf)=>{"use strict";var Ni=Fn(),dt=Pn(),{MAX_LENGTH:ji,POSIX_REGEX_SOURCE:J5,REGEX_NON_SPECIAL_CHARS:Q5,REGEX_SPECIAL_CHARS_BACKREF:eb,REPLACEMENTS:Uf}=Ni,tb=(e,r)=>{if(typeof r.expandRange=="function")return r.expandRange(...e,r);e.sort();let t=`[${e.join("-")}]`;try{new RegExp(t)}catch{return e.map(i=>dt.escapeRegex(i)).join("..")}return t},zr=(e,r)=>`Missing ${e}: "${r}" - use "\\\\${r}" to match literal characters`,jo=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Uf[e]||e;let t={...r},n=typeof t.maxLength=="number"?Math.min(ji,t.maxLength):ji,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let c={type:"bos",value:"",output:t.prepend||""},a=[c],s=t.capture?"":"?:",o=dt.isWindows(r),f=Ni.globChars(o),l=Ni.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:p,DOTS_SLASH:y,NO_DOT:b,NO_DOT_SLASH:_,NO_DOTS_SLASH:g,QMARK:S,QMARK_NO_DOT:E,STAR:v,START_ANCHOR:m}=f,w=J=>`(${s}(?:(?!${m}${J.dot?y:h}).)*?)`,A=t.dot?"":b,x=t.dot?S:E,R=t.bash===!0?w(t):v;t.capture&&(R=`(${R})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let P={input:e,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=dt.removePrefix(e,P),i=e.length;let F=[],O=[],D=[],k=c,L,I=()=>P.index===i-1,H=P.peek=(J=1)=>e[P.index+J],z=P.advance=()=>e[++P.index]||"",re=()=>e.slice(P.index+1),B=(J="",ae=0)=>{P.consumed+=J,P.index+=ae},M=J=>{P.output+=J.output!=null?J.output:J.value,B(J.value)},T=()=>{let J=1;for(;H()==="!"&&(H(2)!=="("||H(3)==="?");)z(),P.start++,J++;return J%2===0?!1:(P.negated=!0,P.start++,!0)},Y=J=>{P[J]++,D.push(J)},U=J=>{P[J]--,D.pop()},Q=J=>{if(k.type==="globstar"){let ae=P.braces>0&&(J.type==="comma"||J.type==="brace"),oe=J.extglob===!0||F.length&&(J.type==="pipe"||J.type==="paren");J.type!=="slash"&&J.type!=="paren"&&!ae&&!oe&&(P.output=P.output.slice(0,-k.output.length),k.type="star",k.value="*",k.output=R,P.output+=k.output)}if(F.length&&J.type!=="paren"&&(F[F.length-1].inner+=J.value),(J.value||J.output)&&M(J),k&&k.type==="text"&&J.type==="text"){k.value+=J.value,k.output=(k.output||"")+J.value;return}J.prev=k,a.push(J),k=J},N=(J,ae)=>{let oe={...l[ae],conditions:1,inner:""};oe.prev=k,oe.parens=P.parens,oe.output=P.output;let de=(t.capture?"(":"")+oe.open;Y("parens"),Q({type:J,value:ae,output:P.output?"":p}),Q({type:"paren",extglob:!0,value:z(),output:de}),F.push(oe)},W=J=>{let ae=J.close+(t.capture?")":""),oe;if(J.type==="negate"){let de=R;if(J.inner&&J.inner.length>1&&J.inner.includes("/")&&(de=w(t)),(de!==R||I()||/^\)+$/.test(re()))&&(ae=J.close=`)$))${de}`),J.inner.includes("*")&&(oe=re())&&/^\.[^\\/.]+$/.test(oe)){let pe=jo(oe,{...r,fastpaths:!1}).output;ae=J.close=`)${pe})${de})`}J.prev.type==="bos"&&(P.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:L,output:ae}),U("parens")};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let J=!1,ae=e.replace(eb,(oe,de,pe,j,G,C)=>j==="\\"?(J=!0,oe):j==="?"?de?de+j+(G?S.repeat(G.length):""):C===0?x+(G?S.repeat(G.length):""):S.repeat(pe.length):j==="."?h.repeat(pe.length):j==="*"?de?de+j+(G?R:""):R:de?oe:`\\${oe}`);return J===!0&&(t.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,oe=>oe.length%2===0?"\\\\":oe?"\\":"")),ae===e&&t.contains===!0?(P.output=e,P):(P.output=dt.wrapOutput(ae,P,r),P)}for(;!I();){if(L=z(),L==="\0")continue;if(L==="\\"){let oe=H();if(oe==="/"&&t.bash!==!0||oe==="."||oe===";")continue;if(!oe){L+="\\",Q({type:"text",value:L});continue}let de=/^\\+/.exec(re()),pe=0;if(de&&de[0].length>2&&(pe=de[0].length,P.index+=pe,pe%2!==0&&(L+="\\")),t.unescape===!0?L=z():L+=z(),P.brackets===0){Q({type:"text",value:L});continue}}if(P.brackets>0&&(L!=="]"||k.value==="["||k.value==="[^")){if(t.posix!==!1&&L===":"){let oe=k.value.slice(1);if(oe.includes("[")&&(k.posix=!0,oe.includes(":"))){let de=k.value.lastIndexOf("["),pe=k.value.slice(0,de),j=k.value.slice(de+2),G=J5[j];if(G){k.value=pe+G,P.backtrack=!0,z(),!c.output&&a.indexOf(k)===1&&(c.output=p);continue}}}(L==="["&&H()!==":"||L==="-"&&H()==="]")&&(L=`\\${L}`),L==="]"&&(k.value==="["||k.value==="[^")&&(L=`\\${L}`),t.posix===!0&&L==="!"&&k.value==="["&&(L="^"),k.value+=L,M({value:L});continue}if(P.quotes===1&&L!=='"'){L=dt.escapeRegex(L),k.value+=L,M({value:L});continue}if(L==='"'){P.quotes=P.quotes===1?0:1,t.keepQuotes===!0&&Q({type:"text",value:L});continue}if(L==="("){Y("parens"),Q({type:"paren",value:L});continue}if(L===")"){if(P.parens===0&&t.strictBrackets===!0)throw new SyntaxError(zr("opening","("));let oe=F[F.length-1];if(oe&&P.parens===oe.parens+1){W(F.pop());continue}Q({type:"paren",value:L,output:P.parens?")":"\\)"}),U("parens");continue}if(L==="["){if(t.nobracket===!0||!re().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(zr("closing","]"));L=`\\${L}`}else Y("brackets");Q({type:"bracket",value:L});continue}if(L==="]"){if(t.nobracket===!0||k&&k.type==="bracket"&&k.value.length===1){Q({type:"text",value:L,output:`\\${L}`});continue}if(P.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(zr("opening","["));Q({type:"text",value:L,output:`\\${L}`});continue}U("brackets");let oe=k.value.slice(1);if(k.posix!==!0&&oe[0]==="^"&&!oe.includes("/")&&(L=`/${L}`),k.value+=L,M({value:L}),t.literalBrackets===!1||dt.hasRegexChars(oe))continue;let de=dt.escapeRegex(k.value);if(P.output=P.output.slice(0,-k.value.length),t.literalBrackets===!0){P.output+=de,k.value=de;continue}k.value=`(${s}${de}|${k.value})`,P.output+=k.value;continue}if(L==="{"&&t.nobrace!==!0){Y("braces");let oe={type:"brace",value:L,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};O.push(oe),Q(oe);continue}if(L==="}"){let oe=O[O.length-1];if(t.nobrace===!0||!oe){Q({type:"text",value:L,output:L});continue}let de=")";if(oe.dots===!0){let pe=a.slice(),j=[];for(let G=pe.length-1;G>=0&&(a.pop(),pe[G].type!=="brace");G--)pe[G].type!=="dots"&&j.unshift(pe[G].value);de=tb(j,t),P.backtrack=!0}if(oe.comma!==!0&&oe.dots!==!0){let pe=P.output.slice(0,oe.outputIndex),j=P.tokens.slice(oe.tokensIndex);oe.value=oe.output="\\{",L=de="\\}",P.output=pe;for(let G of j)P.output+=G.output||G.value}Q({type:"brace",value:L,output:de}),U("braces"),O.pop();continue}if(L==="|"){F.length>0&&F[F.length-1].conditions++,Q({type:"text",value:L});continue}if(L===","){let oe=L,de=O[O.length-1];de&&D[D.length-1]==="braces"&&(de.comma=!0,oe="|"),Q({type:"comma",value:L,output:oe});continue}if(L==="/"){if(k.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",a.pop(),k=c;continue}Q({type:"slash",value:L,output:d});continue}if(L==="."){if(P.braces>0&&k.type==="dot"){k.value==="."&&(k.output=h);let oe=O[O.length-1];k.type="dots",k.output+=L,k.value+=L,oe.dots=!0;continue}if(P.braces+P.parens===0&&k.type!=="bos"&&k.type!=="slash"){Q({type:"text",value:L,output:h});continue}Q({type:"dot",value:L,output:h});continue}if(L==="?"){if(!(k&&k.value==="(")&&t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("qmark",L);continue}if(k&&k.type==="paren"){let de=H(),pe=L;if(de==="<"&&!dt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(k.value==="("&&!/[!=<:]/.test(de)||de==="<"&&!/<([!=]|\w+>)/.test(re()))&&(pe=`\\${L}`),Q({type:"text",value:L,output:pe});continue}if(t.dot!==!0&&(k.type==="slash"||k.type==="bos")){Q({type:"qmark",value:L,output:E});continue}Q({type:"qmark",value:L,output:S});continue}if(L==="!"){if(t.noextglob!==!0&&H()==="("&&(H(2)!=="?"||!/[!=<:]/.test(H(3)))){N("negate",L);continue}if(t.nonegate!==!0&&P.index===0){T();continue}}if(L==="+"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){N("plus",L);continue}if(k&&k.value==="("||t.regex===!1){Q({type:"plus",value:L,output:u});continue}if(k&&(k.type==="bracket"||k.type==="paren"||k.type==="brace")||P.parens>0){Q({type:"plus",value:L});continue}Q({type:"plus",value:u});continue}if(L==="@"){if(t.noextglob!==!0&&H()==="("&&H(2)!=="?"){Q({type:"at",extglob:!0,value:L,output:""});continue}Q({type:"text",value:L});continue}if(L!=="*"){(L==="$"||L==="^")&&(L=`\\${L}`);let oe=Q5.exec(re());oe&&(L+=oe[0],P.index+=oe[0].length),Q({type:"text",value:L});continue}if(k&&(k.type==="globstar"||k.star===!0)){k.type="star",k.star=!0,k.value+=L,k.output=R,P.backtrack=!0,P.globstar=!0,B(L);continue}let J=re();if(t.noextglob!==!0&&/^\([^?]/.test(J)){N("star",L);continue}if(k.type==="star"){if(t.noglobstar===!0){B(L);continue}let oe=k.prev,de=oe.prev,pe=oe.type==="slash"||oe.type==="bos",j=de&&(de.type==="star"||de.type==="globstar");if(t.bash===!0&&(!pe||J[0]&&J[0]!=="/")){Q({type:"star",value:L,output:""});continue}let G=P.braces>0&&(oe.type==="comma"||oe.type==="brace"),C=F.length&&(oe.type==="pipe"||oe.type==="paren");if(!pe&&oe.type!=="paren"&&!G&&!C){Q({type:"star",value:L,output:""});continue}for(;J.slice(0,3)==="/**";){let q=e[P.index+4];if(q&&q!=="/")break;J=J.slice(3),B("/**",3)}if(oe.type==="bos"&&I()){k.type="globstar",k.value+=L,k.output=w(t),P.output=k.output,P.globstar=!0,B(L);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&!j&&I()){P.output=P.output.slice(0,-(oe.output+k.output).length),oe.output=`(?:${oe.output}`,k.type="globstar",k.output=w(t)+(t.strictSlashes?")":"|$)"),k.value+=L,P.globstar=!0,P.output+=oe.output+k.output,B(L);continue}if(oe.type==="slash"&&oe.prev.type!=="bos"&&J[0]==="/"){let q=J[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(oe.output+k.output).length),oe.output=`(?:${oe.output}`,k.type="globstar",k.output=`${w(t)}${d}|${d}${q})`,k.value+=L,P.output+=oe.output+k.output,P.globstar=!0,B(L+z()),Q({type:"slash",value:"/",output:""});continue}if(oe.type==="bos"&&J[0]==="/"){k.type="globstar",k.value+=L,k.output=`(?:^|${d}|${w(t)}${d})`,P.output=k.output,P.globstar=!0,B(L+z()),Q({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-k.output.length),k.type="globstar",k.output=w(t),k.value+=L,P.output+=k.output,P.globstar=!0,B(L);continue}let ae={type:"star",value:L,output:R};if(t.bash===!0){ae.output=".*?",(k.type==="bos"||k.type==="slash")&&(ae.output=A+ae.output),Q(ae);continue}if(k&&(k.type==="bracket"||k.type==="paren")&&t.regex===!0){ae.output=L,Q(ae);continue}(P.index===P.start||k.type==="slash"||k.type==="dot")&&(k.type==="dot"?(P.output+=_,k.output+=_):t.dot===!0?(P.output+=g,k.output+=g):(P.output+=A,k.output+=A),H()!=="*"&&(P.output+=p,k.output+=p)),Q(ae)}for(;P.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(zr("closing","]"));P.output=dt.escapeLast(P.output,"["),U("brackets")}for(;P.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(zr("closing",")"));P.output=dt.escapeLast(P.output,"("),U("parens")}for(;P.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(zr("closing","}"));P.output=dt.escapeLast(P.output,"{"),U("braces")}if(t.strictSlashes!==!0&&(k.type==="star"||k.type==="bracket")&&Q({type:"maybe_slash",value:"",output:`${d}?`}),P.backtrack===!0){P.output="";for(let J of P.tokens)P.output+=J.output!=null?J.output:J.value,J.suffix&&(P.output+=J.suffix)}return P};jo.fastpaths=(e,r)=>{let t={...r},n=typeof t.maxLength=="number"?Math.min(ji,t.maxLength):ji,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Uf[e]||e;let c=dt.isWindows(r),{DOT_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:o,DOTS_SLASH:f,NO_DOT:l,NO_DOTS:h,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:p}=Ni.globChars(c),y=t.dot?h:l,b=t.dot?u:l,_=t.capture?"":"?:",g={negated:!1,prefix:""},S=t.bash===!0?".*?":d;t.capture&&(S=`(${S})`);let E=A=>A.noglobstar===!0?S:`(${_}(?:(?!${p}${A.dot?f:a}).)*?)`,v=A=>{switch(A){case"*":return`${y}${o}${S}`;case".*":return`${a}${o}${S}`;case"*.*":return`${y}${S}${a}${o}${S}`;case"*/*":return`${y}${S}${s}${o}${b}${S}`;case"**":return y+E(t);case"**/*":return`(?:${y}${E(t)}${s})?${b}${o}${S}`;case"**/*.*":return`(?:${y}${E(t)}${s})?${b}${S}${a}${o}${S}`;case"**/.*":return`(?:${y}${E(t)}${s})?${a}${o}${S}`;default:{let x=/^(.*?)\.(\w+)$/.exec(A);if(!x)return;let R=v(x[1]);return R?R+a+x[2]:void 0}}},m=dt.removePrefix(e,g),w=v(m);return w&&t.strictSlashes!==!0&&(w+=`${s}?`),w};qf.exports=jo});var Wf=ve((bL,zf)=>{"use strict";var rb=require("path"),nb=Hf(),$o=Gf(),Ho=Pn(),ib=Fn(),sb=e=>e&&typeof e=="object"&&!Array.isArray(e),Ue=(e,r,t=!1)=>{if(Array.isArray(e)){let l=e.map(u=>Ue(u,r,t));return u=>{for(let d of l){let p=d(u);if(p)return p}return!1}}let n=sb(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=r||{},c=Ho.isWindows(r),a=n?Ue.compileRe(e,r):Ue.makeRe(e,r,!1,!0),s=a.state;delete a.state;let o=()=>!1;if(i.ignore){let l={...r,ignore:null,onMatch:null,onResult:null};o=Ue(i.ignore,l,t)}let f=(l,h=!1)=>{let{isMatch:u,match:d,output:p}=Ue.test(l,a,r,{glob:e,posix:c}),y={glob:e,state:s,regex:a,posix:c,input:l,output:p,match:d,isMatch:u};return typeof i.onResult=="function"&&i.onResult(y),u===!1?(y.isMatch=!1,h?y:!1):o(l)?(typeof i.onIgnore=="function"&&i.onIgnore(y),y.isMatch=!1,h?y:!1):(typeof i.onMatch=="function"&&i.onMatch(y),h?y:!0)};return t&&(f.state=s),f};Ue.test=(e,r,t,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=t||{},a=c.format||(i?Ho.toPosixSlashes:null),s=e===n,o=s&&a?a(e):e;return s===!1&&(o=a?a(e):e,s=o===n),(s===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?s=Ue.matchBase(e,r,t,i):s=r.exec(o)),{isMatch:!!s,match:s,output:o}};Ue.matchBase=(e,r,t,n=Ho.isWindows(t))=>(r instanceof RegExp?r:Ue.makeRe(r,t)).test(rb.basename(e));Ue.isMatch=(e,r,t)=>Ue(r,t)(e);Ue.parse=(e,r)=>Array.isArray(e)?e.map(t=>Ue.parse(t,r)):$o(e,{...r,fastpaths:!1});Ue.scan=(e,r)=>nb(e,r);Ue.compileRe=(e,r,t=!1,n=!1)=>{if(t===!0)return e.output;let i=r||{},c=i.contains?"":"^",a=i.contains?"":"$",s=`${c}(?:${e.output})${a}`;e&&e.negated===!0&&(s=`^(?!${s}).*$`);let o=Ue.toRegex(s,r);return n===!0&&(o.state=e),o};Ue.makeRe=(e,r={},t=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return r.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=$o.fastpaths(e,r)),i.output||(i=$o(e,r)),Ue.compileRe(i,r,t,n)};Ue.toRegex=(e,r)=>{try{let t=r||{};return new RegExp(e,t.flags||(t.nocase?"i":""))}catch(t){if(r&&r.debug===!0)throw t;return/$^/}};Ue.constants=ib;zf.exports=Ue});var Yf=ve((vL,Vf)=>{"use strict";Vf.exports=Wf()});var Qf=ve((_L,Jf)=>{"use strict";var Xf=require("util"),Zf=Df(),Ft=Yf(),Uo=Pn(),Kf=e=>e===""||e==="./",He=(e,r,t)=>{r=[].concat(r),e=[].concat(e);let n=new Set,i=new Set,c=new Set,a=0,s=l=>{c.add(l.output),t&&t.onResult&&t.onResult(l)};for(let l=0;l<r.length;l++){let h=Ft(String(r[l]),{...t,onResult:s},!0),u=h.state.negated||h.state.negatedExtglob;u&&a++;for(let d of e){let p=h(d,!0);(u?!p.isMatch:p.isMatch)&&(u?n.add(p.output):(n.delete(p.output),i.add(p.output)))}}let f=(a===r.length?[...c]:[...i]).filter(l=>!n.has(l));if(t&&f.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${r.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?r.map(l=>l.replace(/\\/g,"")):r}return f};He.match=He;He.matcher=(e,r)=>Ft(e,r);He.isMatch=(e,r,t)=>Ft(r,t)(e);He.any=He.isMatch;He.not=(e,r,t={})=>{r=[].concat(r).map(String);let n=new Set,i=[],c=s=>{t.onResult&&t.onResult(s),i.push(s.output)},a=new Set(He(e,r,{...t,onResult:c}));for(let s of i)a.has(s)||n.add(s);return[...n]};He.contains=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Xf.inspect(e)}"`);if(Array.isArray(r))return r.some(n=>He.contains(e,n,t));if(typeof r=="string"){if(Kf(e)||Kf(r))return!1;if(e.includes(r)||e.startsWith("./")&&e.slice(2).includes(r))return!0}return He.isMatch(e,r,{...t,contains:!0})};He.matchKeys=(e,r,t)=>{if(!Uo.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=He(Object.keys(e),r,t),i={};for(let c of n)i[c]=e[c];return i};He.some=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Ft(String(i),t);if(n.some(a=>c(a)))return!0}return!1};He.every=(e,r,t)=>{let n=[].concat(e);for(let i of[].concat(r)){let c=Ft(String(i),t);if(!n.every(a=>c(a)))return!1}return!0};He.all=(e,r,t)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Xf.inspect(e)}"`);return[].concat(r).every(n=>Ft(n,t)(e))};He.capture=(e,r,t)=>{let n=Uo.isWindows(t),c=Ft.makeRe(String(e),{...t,capture:!0}).exec(n?Uo.toPosixSlashes(r):r);if(c)return c.slice(1).map(a=>a===void 0?"":a)};He.makeRe=(...e)=>Ft.makeRe(...e);He.scan=(...e)=>Ft.scan(...e);He.parse=(e,r)=>{let t=[];for(let n of[].concat(e||[]))for(let i of Zf(String(n),r))t.push(Ft.parse(i,r));return t};He.braces=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return r&&r.nobrace===!0||!/\{.*\}/.test(e)?[e]:Zf(e,r)};He.braceExpand=(e,r)=>{if(typeof e!="string")throw new TypeError("Expected a string");return He.braces(e,{...r,expand:!0})};Jf.exports=He});var ap=ve(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.matchAny=Te.convertPatternsToRe=Te.makeRe=Te.getPatternParts=Te.expandBraceExpansion=Te.expandPatternsWithBraceExpansion=Te.isAffectDepthOfReadingPattern=Te.endsWithSlashGlobStar=Te.hasGlobStar=Te.getBaseDirectory=Te.isPatternRelatedToParentDirectory=Te.getPatternsOutsideCurrentDirectory=Te.getPatternsInsideCurrentDirectory=Te.getPositivePatterns=Te.getNegativePatterns=Te.isPositivePattern=Te.isNegativePattern=Te.convertToNegativePattern=Te.convertToPositivePattern=Te.isDynamicPattern=Te.isStaticPattern=void 0;var ob=require("path"),ab=Gh(),qo=Qf(),ep="**",ub="\\",lb=/[*?]|^!/,cb=/\[[^[]*]/,hb=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fb=/[!*+?@]\([^(]*\)/,pb=/,|\.\./;function tp(e,r={}){return!rp(e,r)}Te.isStaticPattern=tp;function rp(e,r={}){return e===""?!1:!!(r.caseSensitiveMatch===!1||e.includes(ub)||lb.test(e)||cb.test(e)||hb.test(e)||r.extglob!==!1&&fb.test(e)||r.braceExpansion!==!1&&db(e))}Te.isDynamicPattern=rp;function db(e){let r=e.indexOf("{");if(r===-1)return!1;let t=e.indexOf("}",r+1);if(t===-1)return!1;let n=e.slice(r,t);return pb.test(n)}function mb(e){return $i(e)?e.slice(1):e}Te.convertToPositivePattern=mb;function yb(e){return"!"+e}Te.convertToNegativePattern=yb;function $i(e){return e.startsWith("!")&&e[1]!=="("}Te.isNegativePattern=$i;function np(e){return!$i(e)}Te.isPositivePattern=np;function gb(e){return e.filter($i)}Te.getNegativePatterns=gb;function bb(e){return e.filter(np)}Te.getPositivePatterns=bb;function vb(e){return e.filter(r=>!Go(r))}Te.getPatternsInsideCurrentDirectory=vb;function _b(e){return e.filter(Go)}Te.getPatternsOutsideCurrentDirectory=_b;function Go(e){return e.startsWith("..")||e.startsWith("./..")}Te.isPatternRelatedToParentDirectory=Go;function wb(e){return ab(e,{flipBackslashes:!1})}Te.getBaseDirectory=wb;function Eb(e){return e.includes(ep)}Te.hasGlobStar=Eb;function ip(e){return e.endsWith("/"+ep)}Te.endsWithSlashGlobStar=ip;function Sb(e){let r=ob.basename(e);return ip(e)||tp(r)}Te.isAffectDepthOfReadingPattern=Sb;function Ab(e){return e.reduce((r,t)=>r.concat(sp(t)),[])}Te.expandPatternsWithBraceExpansion=Ab;function sp(e){return qo.braces(e,{expand:!0,nodupes:!0})}Te.expandBraceExpansion=sp;function xb(e,r){let{parts:t}=qo.scan(e,Object.assign(Object.assign({},r),{parts:!0}));return t.length===0&&(t=[e]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}Te.getPatternParts=xb;function op(e,r){return qo.makeRe(e,r)}Te.makeRe=op;function Cb(e,r){return e.map(t=>op(t,r))}Te.convertPatternsToRe=Cb;function kb(e,r){return r.some(t=>t.test(e))}Te.matchAny=kb});var hp=ve((EL,cp)=>{"use strict";var Db=require("stream"),up=Db.PassThrough,Rb=Array.prototype.slice;cp.exports=Ob;function Ob(){let e=[],r=Rb.call(arguments),t=!1,n=r[r.length-1];n&&!Array.isArray(n)&&n.pipe==null?r.pop():n={};let i=n.end!==!1,c=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let a=up(n);function s(){for(let l=0,h=arguments.length;l<h;l++)e.push(lp(arguments[l],n));return o(),this}function o(){if(t)return;t=!0;let l=e.shift();if(!l){process.nextTick(f);return}Array.isArray(l)||(l=[l]);let h=l.length+1;function u(){--h>0||(t=!1,o())}function d(p){function y(){p.removeListener("merge2UnpipeEnd",y),p.removeListener("end",y),c&&p.removeListener("error",b),u()}function b(_){a.emit("error",_)}if(p._readableState.endEmitted)return u();p.on("merge2UnpipeEnd",y),p.on("end",y),c&&p.on("error",b),p.pipe(a,{end:!1}),p.resume()}for(let p=0;p<l.length;p++)d(l[p]);u()}function f(){t=!1,a.emit("queueDrain"),i&&a.end()}return a.setMaxListeners(0),a.add=s,a.on("unpipe",function(l){l.emit("merge2UnpipeEnd")}),r.length&&s.apply(null,r),a}function lp(e,r){if(Array.isArray(e))for(let t=0,n=e.length;t<n;t++)e[t]=lp(e[t],r);else{if(!e._readableState&&e.pipe&&(e=e.pipe(up(r))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var pp=ve(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.merge=void 0;var Tb=hp();function Fb(e){let r=Tb(e);return e.forEach(t=>{t.once("error",n=>r.emit("error",n))}),r.once("close",()=>fp(e)),r.once("end",()=>fp(e)),r}Hi.merge=Fb;function fp(e){e.forEach(r=>r.emit("close"))}});var dp=ve(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.isEmpty=Wr.isString=void 0;function Pb(e){return typeof e=="string"}Wr.isString=Pb;function Bb(e){return e===""}Wr.isEmpty=Bb});var qt=ve(Qe=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.string=Qe.stream=Qe.pattern=Qe.path=Qe.fs=Qe.errno=Qe.array=void 0;var Ib=Bh();Qe.array=Ib;var Lb=Ih();Qe.errno=Lb;var Mb=Lh();Qe.fs=Mb;var Nb=Mh();Qe.path=Nb;var jb=ap();Qe.pattern=jb;var $b=pp();Qe.stream=$b;var Hb=dp();Qe.string=Hb});var gp=ve(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.convertPatternGroupToTask=et.convertPatternGroupsToTasks=et.groupPatternsByBaseDirectory=et.getNegativePatternsAsPositive=et.getPositivePatterns=et.convertPatternsToTasks=et.generate=void 0;var Gt=qt();function Ub(e,r){let t=mp(e),n=yp(e,r.ignore),i=t.filter(o=>Gt.pattern.isStaticPattern(o,r)),c=t.filter(o=>Gt.pattern.isDynamicPattern(o,r)),a=zo(i,n,!1),s=zo(c,n,!0);return a.concat(s)}et.generate=Ub;function zo(e,r,t){let n=[],i=Gt.pattern.getPatternsOutsideCurrentDirectory(e),c=Gt.pattern.getPatternsInsideCurrentDirectory(e),a=Wo(i),s=Wo(c);return n.push(...Vo(a,r,t)),"."in s?n.push(Yo(".",c,r,t)):n.push(...Vo(s,r,t)),n}et.convertPatternsToTasks=zo;function mp(e){return Gt.pattern.getPositivePatterns(e)}et.getPositivePatterns=mp;function yp(e,r){return Gt.pattern.getNegativePatterns(e).concat(r).map(Gt.pattern.convertToPositivePattern)}et.getNegativePatternsAsPositive=yp;function Wo(e){let r={};return e.reduce((t,n)=>{let i=Gt.pattern.getBaseDirectory(n);return i in t?t[i].push(n):t[i]=[n],t},r)}et.groupPatternsByBaseDirectory=Wo;function Vo(e,r,t){return Object.keys(e).map(n=>Yo(n,e[n],r,t))}et.convertPatternGroupsToTasks=Vo;function Yo(e,r,t,n){return{dynamic:n,positive:r,negative:t,base:e,patterns:[].concat(r,t.map(Gt.pattern.convertToNegativePattern))}}et.convertPatternGroupToTask=Yo});var vp=ve(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.removeDuplicateSlashes=Vr.transform=void 0;var qb=/(?!^)\/{2,}/g;function Gb(e){return e.map(r=>bp(r))}Vr.transform=Gb;function bp(e){return e.replace(qb,"/")}Vr.removeDuplicateSlashes=bp});var wp=ve(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.read=void 0;function zb(e,r,t){r.fs.lstat(e,(n,i)=>{if(n!==null){_p(t,n);return}if(!i.isSymbolicLink()||!r.followSymbolicLink){Ko(t,i);return}r.fs.stat(e,(c,a)=>{if(c!==null){if(r.throwErrorOnBrokenSymbolicLink){_p(t,c);return}Ko(t,i);return}r.markSymbolicLink&&(a.isSymbolicLink=()=>!0),Ko(t,a)})})}Ui.read=zb;function _p(e,r){e(r)}function Ko(e,r){e(null,r)}});var Ep=ve(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.read=void 0;function Wb(e,r){let t=r.fs.lstatSync(e);if(!t.isSymbolicLink()||!r.followSymbolicLink)return t;try{let n=r.fs.statSync(e);return r.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!r.throwErrorOnBrokenSymbolicLink)return t;throw n}}qi.read=Wb});var Sp=ve(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.createFileSystemAdapter=Xt.FILE_SYSTEM_ADAPTER=void 0;var Gi=require("fs");Xt.FILE_SYSTEM_ADAPTER={lstat:Gi.lstat,stat:Gi.stat,lstatSync:Gi.lstatSync,statSync:Gi.statSync};function Vb(e){return e===void 0?Xt.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Xt.FILE_SYSTEM_ADAPTER),e)}Xt.createFileSystemAdapter=Vb});var Ap=ve(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});var Yb=Sp(),Xo=class{constructor(r={}){this._options=r,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Yb.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(r,t){return r!=null?r:t}};Zo.default=Xo});var wr=ve(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.statSync=Zt.stat=Zt.Settings=void 0;var xp=wp(),Kb=Ep(),Jo=Ap();Zt.Settings=Jo.default;function Xb(e,r,t){if(typeof r=="function"){xp.read(e,Qo(),r);return}xp.read(e,Qo(r),t)}Zt.stat=Xb;function Zb(e,r){let t=Qo(r);return Kb.read(e,t)}Zt.statSync=Zb;function Qo(e={}){return e instanceof Jo.default?e:new Jo.default(e)}});var Dp=ve((PL,kp)=>{var Cp;kp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:global):e=>(Cp||(Cp=Promise.resolve())).then(e).catch(r=>setTimeout(()=>{throw r},0))});var Op=ve((BL,Rp)=>{Rp.exports=Qb;var Jb=Dp();function Qb(e,r){let t,n,i,c=!0;Array.isArray(e)?(t=[],n=e.length):(i=Object.keys(e),t={},n=i.length);function a(o){function f(){r&&r(o,t),r=null}c?Jb(f):f()}function s(o,f,l){t[o]=l,(--n===0||f)&&a(f)}n?i?i.forEach(function(o){e[o](function(f,l){s(o,f,l)})}):e.forEach(function(o,f){o(function(l,h){s(f,l,h)})}):a(null),c=!1}});var ea=ve(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});Wi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var zi=process.versions.node.split(".");if(zi[0]===void 0||zi[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Tp=Number.parseInt(zi[0],10),ev=Number.parseInt(zi[1],10),Fp=10,tv=10,rv=Tp>Fp,nv=Tp===Fp&&ev>=tv;Wi.IS_SUPPORT_READDIR_WITH_FILE_TYPES=rv||nv});var Pp=ve(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.createDirentFromStats=void 0;var ta=class{constructor(r,t){this.name=r,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t)}};function iv(e,r){return new ta(e,r)}Vi.createDirentFromStats=iv});var ra=ve(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.fs=void 0;var sv=Pp();Yi.fs=sv});var na=ve(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.joinPathSegments=void 0;function ov(e,r,t){return e.endsWith(t)?e+r:e+t+r}Ki.joinPathSegments=ov});var jp=ve(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.readdir=Jt.readdirWithFileTypes=Jt.read=void 0;var av=wr(),Bp=Op(),uv=ea(),Ip=ra(),Lp=na();function lv(e,r,t){if(!r.stats&&uv.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Mp(e,r,t);return}Np(e,r,t)}Jt.read=lv;function Mp(e,r,t){r.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Xi(t,n);return}let c=i.map(s=>({dirent:s,name:s.name,path:Lp.joinPathSegments(e,s.name,r.pathSegmentSeparator)}));if(!r.followSymbolicLinks){ia(t,c);return}let a=c.map(s=>cv(s,r));Bp(a,(s,o)=>{if(s!==null){Xi(t,s);return}ia(t,o)})})}Jt.readdirWithFileTypes=Mp;function cv(e,r){return t=>{if(!e.dirent.isSymbolicLink()){t(null,e);return}r.fs.stat(e.path,(n,i)=>{if(n!==null){if(r.throwErrorOnBrokenSymbolicLink){t(n);return}t(null,e);return}e.dirent=Ip.fs.createDirentFromStats(e.name,i),t(null,e)})}}function Np(e,r,t){r.fs.readdir(e,(n,i)=>{if(n!==null){Xi(t,n);return}let c=i.map(a=>{let s=Lp.joinPathSegments(e,a,r.pathSegmentSeparator);return o=>{av.stat(s,r.fsStatSettings,(f,l)=>{if(f!==null){o(f);return}let h={name:a,path:s,dirent:Ip.fs.createDirentFromStats(a,l)};r.stats&&(h.stats=l),o(null,h)})}});Bp(c,(a,s)=>{if(a!==null){Xi(t,a);return}ia(t,s)})})}Jt.readdir=Np;function Xi(e,r){e(r)}function ia(e,r){e(null,r)}});var Gp=ve(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.readdir=Qt.readdirWithFileTypes=Qt.read=void 0;var hv=wr(),fv=ea(),$p=ra(),Hp=na();function pv(e,r){return!r.stats&&fv.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Up(e,r):qp(e,r)}Qt.read=pv;function Up(e,r){return r.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Hp.joinPathSegments(e,n.name,r.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&r.followSymbolicLinks)try{let c=r.fs.statSync(i.path);i.dirent=$p.fs.createDirentFromStats(i.name,c)}catch(c){if(r.throwErrorOnBrokenSymbolicLink)throw c}return i})}Qt.readdirWithFileTypes=Up;function qp(e,r){return r.fs.readdirSync(e).map(n=>{let i=Hp.joinPathSegments(e,n,r.pathSegmentSeparator),c=hv.statSync(i,r.fsStatSettings),a={name:n,path:i,dirent:$p.fs.createDirentFromStats(n,c)};return r.stats&&(a.stats=c),a})}Qt.readdir=qp});var zp=ve(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.createFileSystemAdapter=er.FILE_SYSTEM_ADAPTER=void 0;var Yr=require("fs");er.FILE_SYSTEM_ADAPTER={lstat:Yr.lstat,stat:Yr.stat,lstatSync:Yr.lstatSync,statSync:Yr.statSync,readdir:Yr.readdir,readdirSync:Yr.readdirSync};function dv(e){return e===void 0?er.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},er.FILE_SYSTEM_ADAPTER),e)}er.createFileSystemAdapter=dv});var Wp=ve(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});var mv=require("path"),yv=wr(),gv=zp(),sa=class{constructor(r={}){this._options=r,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=gv.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,mv.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new yv.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};oa.default=sa});var Zi=ve(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.Settings=tr.scandirSync=tr.scandir=void 0;var Vp=jp(),bv=Gp(),aa=Wp();tr.Settings=aa.default;function vv(e,r,t){if(typeof r=="function"){Vp.read(e,ua(),r);return}Vp.read(e,ua(r),t)}tr.scandir=vv;function _v(e,r){let t=ua(r);return bv.read(e,t)}tr.scandirSync=_v;function ua(e={}){return e instanceof aa.default?e:new aa.default(e)}});var Kp=ve((GL,Yp)=>{"use strict";function wv(e){var r=new e,t=r;function n(){var c=r;return c.next?r=c.next:(r=new e,t=r),c.next=null,c}function i(c){t.next=c,t=c}return{get:n,release:i}}Yp.exports=wv});var Zp=ve((zL,la)=>{"use strict";var Ev=Kp();function Xp(e,r,t){if(typeof e=="function"&&(t=r,r=e,e=null),t<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Ev(Sv),i=null,c=null,a=0,s=null,o={push:y,drain:wt,saturated:wt,pause:l,paused:!1,concurrency:t,running:f,resume:d,idle:p,length:h,getQueue:u,unshift:b,empty:wt,kill:g,killAndDrain:S,error:E};return o;function f(){return a}function l(){o.paused=!0}function h(){for(var v=i,m=0;v;)v=v.next,m++;return m}function u(){for(var v=i,m=[];v;)m.push(v.value),v=v.next;return m}function d(){if(o.paused){o.paused=!1;for(var v=0;v<o.concurrency;v++)a++,_()}}function p(){return a===0&&o.length()===0}function y(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||wt,w.errorHandler=s,a===o.concurrency||o.paused?c?(c.next=w,c=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function b(v,m){var w=n.get();w.context=e,w.release=_,w.value=v,w.callback=m||wt,a===o.concurrency||o.paused?i?(w.next=i,i=w):(i=w,c=w,o.saturated()):(a++,r.call(e,w.value,w.worked))}function _(v){v&&n.release(v);var m=i;m?o.paused?a--:(c===i&&(c=null),i=m.next,m.next=null,r.call(e,m.value,m.worked),c===null&&o.empty()):--a===0&&o.drain()}function g(){i=null,c=null,o.drain=wt}function S(){i=null,c=null,o.drain(),o.drain=wt}function E(v){s=v}}function wt(){}function Sv(){this.value=null,this.callback=wt,this.next=null,this.release=wt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(t,n){var i=e.callback,c=e.errorHandler,a=e.value;e.value=null,e.callback=wt,e.errorHandler&&c(t,a),i.call(e.context,t,n),e.release(e)}}function Av(e,r,t){typeof e=="function"&&(t=r,r=e,e=null);function n(l,h){r.call(this,l).then(function(u){h(null,u)},h)}var i=Xp(e,n,t),c=i.push,a=i.unshift;return i.push=s,i.unshift=o,i.drained=f,i;function s(l){var h=new Promise(function(u,d){c(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(wt),h}function o(l){var h=new Promise(function(u,d){a(l,function(p,y){if(p){d(p);return}u(y)})});return h.catch(wt),h}function f(){var l=i.drain,h=new Promise(function(u){i.drain=function(){l(),u()}});return h}}la.exports=Xp;la.exports.promise=Av});var Ji=ve(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.joinPathSegments=Pt.replacePathSegmentSeparator=Pt.isAppliedFilter=Pt.isFatalError=void 0;function xv(e,r){return e.errorFilter===null?!0:!e.errorFilter(r)}Pt.isFatalError=xv;function Cv(e,r){return e===null||e(r)}Pt.isAppliedFilter=Cv;function kv(e,r){return e.split(/[/\\]/).join(r)}Pt.replacePathSegmentSeparator=kv;function Dv(e,r,t){return e===""?r:e.endsWith(t)?e+r:e+t+r}Pt.joinPathSegments=Dv});var fa=ve(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});var Rv=Ji(),ca=class{constructor(r,t){this._root=r,this._settings=t,this._root=Rv.replacePathSegmentSeparator(r,t.pathSegmentSeparator)}};ha.default=ca});var ma=ve(da=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});var Ov=require("events"),Tv=Zi(),Fv=Zp(),Qi=Ji(),Pv=fa(),pa=class extends Pv.default{constructor(r,t){super(r,t),this._settings=t,this._scandir=Tv.scandir,this._emitter=new Ov.EventEmitter,this._queue=Fv(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,t){let n={directory:r,base:t};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(r,t){this._scandir(r.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){t(n,void 0);return}for(let c of i)this._handleEntry(c,r.base);t(null,void 0)})}_handleError(r){this._isDestroyed||!Qi.isFatalError(this._settings,r)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",r))}_handleEntry(r,t){if(this._isDestroyed||this._isFatalError)return;let n=r.path;t!==void 0&&(r.path=Qi.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),Qi.isAppliedFilter(this._settings.entryFilter,r)&&this._emitEntry(r),r.dirent.isDirectory()&&Qi.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_emitEntry(r){this._emitter.emit("entry",r)}};da.default=pa});var Jp=ve(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});var Bv=ma(),ya=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new Bv.default(this._root,this._settings),this._storage=[]}read(r){this._reader.onError(t=>{Iv(r,t)}),this._reader.onEntry(t=>{this._storage.push(t)}),this._reader.onEnd(()=>{Lv(r,this._storage)}),this._reader.read()}};ga.default=ya;function Iv(e,r){e(r)}function Lv(e,r){e(null,r)}});var Qp=ve(va=>{"use strict";Object.defineProperty(va,"__esModule",{value:!0});var Mv=require("stream"),Nv=ma(),ba=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new Nv.default(this._root,this._settings),this._stream=new Mv.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(r=>{this._stream.emit("error",r)}),this._reader.onEntry(r=>{this._stream.push(r)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};va.default=ba});var ed=ve(wa=>{"use strict";Object.defineProperty(wa,"__esModule",{value:!0});var jv=Zi(),es=Ji(),$v=fa(),_a=class extends $v.default{constructor(){super(...arguments),this._scandir=jv.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(r,t){this._queue.add({directory:r,base:t})}_handleQueue(){for(let r of this._queue.values())this._handleDirectory(r.directory,r.base)}_handleDirectory(r,t){try{let n=this._scandir(r,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,t)}catch(n){this._handleError(n)}}_handleError(r){if(es.isFatalError(this._settings,r))throw r}_handleEntry(r,t){let n=r.path;t!==void 0&&(r.path=es.joinPathSegments(t,r.name,this._settings.pathSegmentSeparator)),es.isAppliedFilter(this._settings.entryFilter,r)&&this._pushToStorage(r),r.dirent.isDirectory()&&es.isAppliedFilter(this._settings.deepFilter,r)&&this._pushToQueue(n,t===void 0?void 0:r.path)}_pushToStorage(r){this._storage.push(r)}};wa.default=_a});var td=ve(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var Hv=ed(),Ea=class{constructor(r,t){this._root=r,this._settings=t,this._reader=new Hv.default(this._root,this._settings)}read(){return this._reader.read()}};Sa.default=Ea});var rd=ve(xa=>{"use strict";Object.defineProperty(xa,"__esModule",{value:!0});var Uv=require("path"),qv=Zi(),Aa=class{constructor(r={}){this._options=r,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Uv.sep),this.fsScandirSettings=new qv.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,t){return r!=null?r:t}};xa.default=Aa});var rs=ve(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.Settings=Bt.walkStream=Bt.walkSync=Bt.walk=void 0;var nd=Jp(),Gv=Qp(),zv=td(),Ca=rd();Bt.Settings=Ca.default;function Wv(e,r,t){if(typeof r=="function"){new nd.default(e,ts()).read(r);return}new nd.default(e,ts(r)).read(t)}Bt.walk=Wv;function Vv(e,r){let t=ts(r);return new zv.default(e,t).read()}Bt.walkSync=Vv;function Yv(e,r){let t=ts(r);return new Gv.default(e,t).read()}Bt.walkStream=Yv;function ts(e={}){return e instanceof Ca.default?e:new Ca.default(e)}});var ns=ve(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var Kv=require("path"),Xv=wr(),id=qt(),ka=class{constructor(r){this._settings=r,this._fsStatSettings=new Xv.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return Kv.resolve(this._settings.cwd,r)}_makeEntry(r,t){let n={name:t,path:t,dirent:id.fs.createDirentFromStats(t,r)};return this._settings.stats&&(n.stats=r),n}_isFatalError(r){return!id.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}};Da.default=ka});var Ta=ve(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});var Zv=require("stream"),Jv=wr(),Qv=rs(),e_=ns(),Ra=class extends e_.default{constructor(){super(...arguments),this._walkStream=Qv.walkStream,this._stat=Jv.stat}dynamic(r,t){return this._walkStream(r,t)}static(r,t){let n=r.map(this._getFullEntryPath,this),i=new Zv.PassThrough({objectMode:!0});i._write=(c,a,s)=>this._getEntry(n[c],r[c],t).then(o=>{o!==null&&t.entryFilter(o)&&i.push(o),c===n.length-1&&i.end(),s()}).catch(s);for(let c=0;c<n.length;c++)i.write(c);return i}_getEntry(r,t,n){return this._getStat(r).then(i=>this._makeEntry(i,t)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(r){return new Promise((t,n)=>{this._stat(r,this._fsStatSettings,(i,c)=>i===null?t(c):n(i))})}};Oa.default=Ra});var sd=ve(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var t_=rs(),r_=ns(),n_=Ta(),Fa=class extends r_.default{constructor(){super(...arguments),this._walkAsync=t_.walk,this._readerStream=new n_.default(this._settings)}dynamic(r,t){return new Promise((n,i)=>{this._walkAsync(r,t,(c,a)=>{c===null?n(a):i(c)})})}async static(r,t){let n=[],i=this._readerStream.static(r,t);return new Promise((c,a)=>{i.once("error",a),i.on("data",s=>n.push(s)),i.once("end",()=>c(n))})}};Pa.default=Fa});var od=ve(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var Kr=qt(),Ba=class{constructor(r,t,n){this._patterns=r,this._settings=t,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let r=Kr.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let t of r){let n=this._getPatternSegments(t),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:t,segments:n,sections:i})}}_getPatternSegments(r){return Kr.pattern.getPatternParts(r,this._micromatchOptions).map(n=>Kr.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Kr.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(r){return Kr.array.splitWhen(r,t=>t.dynamic&&Kr.pattern.hasGlobStar(t.pattern))}};Ia.default=Ba});var ad=ve(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var i_=od(),La=class extends i_.default{match(r){let t=r.split("/"),n=t.length,i=this._storage.filter(c=>!c.complete||c.segments.length>n);for(let c of i){let a=c.sections[0];if(!c.complete&&n>a.length||t.every((o,f)=>{let l=c.segments[f];return!!(l.dynamic&&l.patternRe.test(o)||!l.dynamic&&l.pattern===o)}))return!0}return!1}};Ma.default=La});var ud=ve(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var is=qt(),s_=ad(),Na=class{constructor(r,t){this._settings=r,this._micromatchOptions=t}getFilter(r,t,n){let i=this._getMatcher(t),c=this._getNegativePatternsRe(n);return a=>this._filter(r,a,i,c)}_getMatcher(r){return new s_.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){let t=r.filter(is.pattern.isAffectDepthOfReadingPattern);return is.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(r,t,n,i){if(this._isSkippedByDeep(r,t.path)||this._isSkippedSymbolicLink(t))return!1;let c=is.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(c,n)?!1:this._isSkippedByNegativePatterns(c,i)}_isSkippedByDeep(r,t){return this._settings.deep===1/0?!1:this._getEntryLevel(r,t)>=this._settings.deep}_getEntryLevel(r,t){let n=t.split("/").length;if(r==="")return n;let i=r.split("/").length;return n-i}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,t){return!this._settings.baseNameMatch&&!t.match(r)}_isSkippedByNegativePatterns(r,t){return!is.pattern.matchAny(r,t)}};ja.default=Na});var ld=ve(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Er=qt(),$a=class{constructor(r,t){this._settings=r,this._micromatchOptions=t,this.index=new Map}getFilter(r,t){let n=Er.pattern.convertPatternsToRe(r,this._micromatchOptions),i=Er.pattern.convertPatternsToRe(t,this._micromatchOptions);return c=>this._filter(c,n,i)}_filter(r,t,n){if(this._settings.unique&&this._isDuplicateEntry(r)||this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)||this._isSkippedByAbsoluteNegativePatterns(r.path,n))return!1;let i=this._settings.baseNameMatch?r.name:r.path,c=r.dirent.isDirectory(),a=this._isMatchToPatterns(i,t,c)&&!this._isMatchToPatterns(r.path,n,c);return this._settings.unique&&a&&this._createIndexRecord(r),a}_isDuplicateEntry(r){return this.index.has(r.path)}_createIndexRecord(r){this.index.set(r.path,void 0)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(r,t){if(!this._settings.absolute)return!1;let n=Er.path.makeAbsolute(this._settings.cwd,r);return Er.pattern.matchAny(n,t)}_isMatchToPatterns(r,t,n){let i=Er.path.removeLeadingDotSegment(r),c=Er.pattern.matchAny(i,t);return!c&&n?Er.pattern.matchAny(i+"/",t):c}};Ha.default=$a});var cd=ve(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var o_=qt(),Ua=class{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return o_.errno.isEnoentCodeError(r)||this._settings.suppressErrors}};qa.default=Ua});var fd=ve(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});var hd=qt(),Ga=class{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let t=r.path;return this._settings.absolute&&(t=hd.path.makeAbsolute(this._settings.cwd,t),t=hd.path.unixify(t)),this._settings.markDirectories&&r.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},r),{path:t}):t}};za.default=Ga});var ss=ve(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var a_=require("path"),u_=ud(),l_=ld(),c_=cd(),h_=fd(),Wa=class{constructor(r){this._settings=r,this.errorFilter=new c_.default(this._settings),this.entryFilter=new l_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new u_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new h_.default(this._settings)}_getRootDirectory(r){return a_.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){let t=r.base==="."?"":r.base;return{basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Va.default=Wa});var pd=ve(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var f_=sd(),p_=ss(),Ya=class extends p_.default{constructor(){super(...arguments),this._reader=new f_.default(this._settings)}async read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return(await this.api(t,r,n)).map(c=>n.transform(c))}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Ka.default=Ya});var dd=ve(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var d_=require("stream"),m_=Ta(),y_=ss(),Xa=class extends y_.default{constructor(){super(...arguments),this._reader=new m_.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r),i=this.api(t,r,n),c=new d_.Readable({objectMode:!0,read:()=>{}});return i.once("error",a=>c.emit("error",a)).on("data",a=>c.emit("data",n.transform(a))).once("end",()=>c.emit("end")),c.once("close",()=>i.destroy()),c}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};Za.default=Xa});var md=ve(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var g_=wr(),b_=rs(),v_=ns(),Ja=class extends v_.default{constructor(){super(...arguments),this._walkSync=b_.walkSync,this._statSync=g_.statSync}dynamic(r,t){return this._walkSync(r,t)}static(r,t){let n=[];for(let i of r){let c=this._getFullEntryPath(i),a=this._getEntry(c,i,t);a===null||!t.entryFilter(a)||n.push(a)}return n}_getEntry(r,t,n){try{let i=this._getStat(r);return this._makeEntry(i,t)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(r){return this._statSync(r,this._fsStatSettings)}};Qa.default=Ja});var yd=ve(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var __=md(),w_=ss(),eu=class extends w_.default{constructor(){super(...arguments),this._reader=new __.default(this._settings)}read(r){let t=this._getRootDirectory(r),n=this._getReaderOptions(r);return this.api(t,r,n).map(n.transform)}api(r,t,n){return t.dynamic?this._reader.dynamic(r,n):this._reader.static(t.patterns,n)}};tu.default=eu});var gd=ve(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Xr=require("fs"),E_=require("os"),S_=Math.max(E_.cpus().length,1);Zr.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Xr.lstat,lstatSync:Xr.lstatSync,stat:Xr.stat,statSync:Xr.statSync,readdir:Xr.readdir,readdirSync:Xr.readdirSync};var ru=class{constructor(r={}){this._options=r,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,S_),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(r,t){return r===void 0?t:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},Zr.DEFAULT_FILE_SYSTEM_ADAPTER),r)}};Zr.default=ru});var wd=ve((y4,_d)=>{"use strict";var bd=gp(),vd=vp(),A_=pd(),x_=dd(),C_=yd(),nu=gd(),Sr=qt();async function iu(e,r){Jr(e);let t=su(e,A_.default,r),n=await Promise.all(t);return Sr.array.flatten(n)}(function(e){function r(a,s){Jr(a);let o=su(a,C_.default,s);return Sr.array.flatten(o)}e.sync=r;function t(a,s){Jr(a);let o=su(a,x_.default,s);return Sr.stream.merge(o)}e.stream=t;function n(a,s){Jr(a);let o=vd.transform([].concat(a)),f=new nu.default(s);return bd.generate(o,f)}e.generateTasks=n;function i(a,s){Jr(a);let o=new nu.default(s);return Sr.pattern.isDynamicPattern(a,o)}e.isDynamicPattern=i;function c(a){return Jr(a),Sr.path.escape(a)}e.escapePath=c})(iu||(iu={}));function su(e,r,t){let n=vd.transform([].concat(e)),i=new nu.default(t),c=bd.generate(n,i),a=new r(i);return c.map(a.read,a)}function Jr(e){if(![].concat(e).every(n=>Sr.string.isString(n)&&!Sr.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}_d.exports=iu});var Xl=Pe(require("chalk")),xy=require("commander");var Xe=Pe(require("chalk")),xn=Pe(require("os")),wy=Pe(require("inquirer"));var em=require("stream"),tm=require("util"),At=Pe(require("fs-extra"),1),cn=Pe(require("path"),1),c2=Pe(Ao(),1),h2=Pe(require("fs-extra"),1),f2=Pe(require("chalk"),1),p2=Pe(require("path"),1),Wn=Pe(require("fs-extra"),1),or=Pe(require("path"),1),d2=Pe(wd(),1);function Md(e){return typeof e=="undefined"||e===null}function k_(e){return typeof e=="object"&&e!==null}function D_(e){return Array.isArray(e)?e:Md(e)?[]:[e]}function R_(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function O_(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function T_(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var F_=Md,P_=k_,B_=D_,I_=O_,L_=T_,M_=R_,We={isNothing:F_,isObject:P_,toArray:B_,repeat:I_,isNegativeZero:L_,extend:M_};function Nd(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
8
|
+
|
9
|
+
`+e.mark.snippet),n+" "+t):n}function Ln(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=Nd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ln.prototype=Object.create(Error.prototype);Ln.prototype.constructor=Ln;Ln.prototype.toString=function(r){return this.name+": "+Nd(this,r)};var ot=Ln;function ou(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function au(e,r){return We.repeat(" ",r-e.length)+e}function N_(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=ou(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=We.repeat(" ",r.indent)+au((e.line-o+1).toString(),l)+" | "+f.str+`
|
10
|
+
`+s;for(f=ou(e.buffer,n[a],i[a],e.position,h),s+=We.repeat(" ",r.indent)+au((e.line+1).toString(),l)+" | "+f.str+`
|
11
|
+
`,s+=We.repeat("-",r.indent+l+3+f.pos)+`^
|
12
|
+
`,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=ou(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=We.repeat(" ",r.indent)+au((e.line+o+1).toString(),l)+" | "+f.str+`
|
13
|
+
`;return s.replace(/\n$/,"")}var j_=N_,$_=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],H_=["scalar","sequence","mapping"];function U_(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function q_(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if($_.indexOf(t)===-1)throw new ot('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=U_(r.styleAliases||null),H_.indexOf(this.kind)===-1)throw new ot('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Ze=q_;function Ed(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function G_(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function lu(e){return this.extend(e)}lu.prototype.extend=function(r){var t=[],n=[];if(r instanceof Ze)n.push(r);else if(Array.isArray(r))n=n.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(t=t.concat(r.implicit)),r.explicit&&(n=n.concat(r.explicit));else throw new ot("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(c){if(!(c instanceof Ze))throw new ot("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new ot("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new ot("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(c){if(!(c instanceof Ze))throw new ot("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(lu.prototype);return i.implicit=(this.implicit||[]).concat(t),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Ed(i,"implicit"),i.compiledExplicit=Ed(i,"explicit"),i.compiledTypeMap=G_(i.compiledImplicit,i.compiledExplicit),i};var jd=lu,$d=new Ze("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Hd=new Ze("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Ud=new Ze("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),qd=new jd({explicit:[$d,Hd,Ud]});function z_(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function W_(){return null}function V_(e){return e===null}var Gd=new Ze("tag:yaml.org,2002:null",{kind:"scalar",resolve:z_,construct:W_,predicate:V_,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Y_(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function K_(e){return e==="true"||e==="True"||e==="TRUE"}function X_(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var zd=new Ze("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Y_,construct:K_,predicate:X_,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function Z_(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function J_(e){return 48<=e&&e<=55}function Q_(e){return 48<=e&&e<=57}function ew(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!Z_(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!J_(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!Q_(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function tw(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function rw(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!We.isNegativeZero(e)}var Wd=new Ze("tag:yaml.org,2002:int",{kind:"scalar",resolve:ew,construct:tw,predicate:rw,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),nw=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function iw(e){return!(e===null||!nw.test(e)||e[e.length-1]==="_")}function sw(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var ow=/^[-+]?[0-9]+e/;function aw(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(We.isNegativeZero(e))return"-0.0";return t=e.toString(10),ow.test(t)?t.replace("e",".e"):t}function uw(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||We.isNegativeZero(e))}var Vd=new Ze("tag:yaml.org,2002:float",{kind:"scalar",resolve:iw,construct:sw,predicate:uw,represent:aw,defaultStyle:"lowercase"}),Yd=qd.extend({implicit:[Gd,zd,Wd,Vd]}),Kd=Yd,Xd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Zd=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lw(e){return e===null?!1:Xd.exec(e)!==null||Zd.exec(e)!==null}function cw(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=Xd.exec(e),r===null&&(r=Zd.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function hw(e){return e.toISOString()}var Jd=new Ze("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lw,construct:cw,instanceOf:Date,represent:hw});function fw(e){return e==="<<"||e===null}var Qd=new Ze("tag:yaml.org,2002:merge",{kind:"scalar",resolve:fw}),du=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
14
|
+
\r`;function pw(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=du;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function dw(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=du,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function mw(e){var r="",t=0,n,i,c=e.length,a=du;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function yw(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var e0=new Ze("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pw,construct:dw,predicate:yw,represent:mw}),gw=Object.prototype.hasOwnProperty,bw=Object.prototype.toString;function vw(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,bw.call(i)!=="[object Object]")return!1;for(c in i)if(gw.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function _w(e){return e!==null?e:[]}var t0=new Ze("tag:yaml.org,2002:omap",{kind:"sequence",resolve:vw,construct:_w}),ww=Object.prototype.toString;function Ew(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],ww.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function Sw(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var r0=new Ze("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ew,construct:Sw}),Aw=Object.prototype.hasOwnProperty;function xw(e){if(e===null)return!0;var r,t=e;for(r in t)if(Aw.call(t,r)&&t[r]!==null)return!1;return!0}function Cw(e){return e!==null?e:{}}var n0=new Ze("tag:yaml.org,2002:set",{kind:"mapping",resolve:xw,construct:Cw}),mu=Kd.extend({implicit:[Jd,Qd],explicit:[e0,t0,r0,n0]}),nr=Object.prototype.hasOwnProperty,os=1,i0=2,s0=3,as=4,uu=1,kw=2,Sd=3,Dw=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rw=/[\x85\u2028\u2029]/,Ow=/[,\[\]\{\}]/,o0=/^(?:!|!!|![a-z\-]+!)$/i,a0=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ad(e){return Object.prototype.toString.call(e)}function It(e){return e===10||e===13}function xr(e){return e===9||e===32}function ut(e){return e===9||e===32||e===10||e===13}function en(e){return e===44||e===91||e===93||e===123||e===125}function Tw(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function Fw(e){return e===120?2:e===117?4:e===85?8:0}function Pw(e){return 48<=e&&e<=57?e-48:-1}function xd(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
15
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function Bw(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var u0=new Array(256),l0=new Array(256);for(Ar=0;Ar<256;Ar++)u0[Ar]=xd(Ar)?1:0,l0[Ar]=xd(Ar);var Ar;function Iw(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||mu,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function c0(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=j_(t),new ot(r,t)}function De(e,r){throw c0(e,r)}function us(e,r){e.onWarning&&e.onWarning.call(null,c0(e,r))}var Cd={YAML:function(r,t,n){var i,c,a;r.version!==null&&De(r,"duplication of %YAML directive"),n.length!==1&&De(r,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&De(r,"ill-formed argument of the YAML directive"),c=parseInt(i[1],10),a=parseInt(i[2],10),c!==1&&De(r,"unacceptable YAML version of the document"),r.version=n[0],r.checkLineBreaks=a<2,a!==1&&a!==2&&us(r,"unsupported YAML version of the document")},TAG:function(r,t,n){var i,c;n.length!==2&&De(r,"TAG directive accepts exactly two arguments"),i=n[0],c=n[1],o0.test(i)||De(r,"ill-formed tag handle (first argument) of the TAG directive"),nr.call(r.tagMap,i)&&De(r,'there is a previously declared suffix for "'+i+'" tag handle'),a0.test(c)||De(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch{De(r,"tag prefix is malformed: "+c)}r.tagMap[i]=c}};function rr(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||De(e,"expected valid JSON character");else Dw.test(s)&&De(e,"the stream contains non-printable characters");e.result+=s}}function kd(e,r,t,n){var i,c,a,s;for(We.isObject(t)||De(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],nr.call(r,c)||(r[c]=t[c],n[c]=!0)}function tn(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&De(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Ad(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&Ad(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)kd(e,r,c[f],t);else kd(e,r,c,t);else!e.json&&!nr.call(t,i)&&nr.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,De(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function yu(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):De(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function qe(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;xr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(It(i))for(yu(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&us(e,"deficient indentation"),n}function hs(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||ut(t)))}function gu(e,r){r===1?e.result+=" ":r>1&&(e.result+=We.repeat(`
|
16
|
+
`,r-1))}function Lw(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),ut(d)||en(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ut(i)||t&&en(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ut(i)||t&&en(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ut(n))break}else{if(e.position===e.lineStart&&hs(e)||t&&en(d))break;if(It(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,qe(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(rr(e,c,a,!1),gu(e,e.line-o),c=a=e.position,s=!1),xr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return rr(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function Mw(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(rr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else It(t)?(rr(e,n,i,!0),gu(e,qe(e,!1,r)),n=i=e.position):e.position===e.lineStart&&hs(e)?De(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);De(e,"unexpected end of the stream within a single quoted scalar")}function Nw(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return rr(e,t,e.position,!0),e.position++,!0;if(s===92){if(rr(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),It(s))qe(e,!1,r);else if(s<256&&u0[s])e.result+=l0[s],e.position++;else if((a=Fw(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=Tw(s))>=0?c=(c<<4)+a:De(e,"expected hexadecimal character");e.result+=Bw(c),e.position++}else De(e,"unknown escape sequence");t=n=e.position}else It(s)?(rr(e,t,n,!0),gu(e,qe(e,!1,r)),t=n=e.position):e.position===e.lineStart&&hs(e)?De(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}De(e,"unexpected end of the stream within a double quoted scalar")}function jw(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(qe(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&De(e,"expected the node content, but found ','"):De(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),ut(f)&&(h=u=!0,e.position++,qe(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,rn(e,r,os,!1,!0),b=e.tag,y=e.result,qe(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),qe(e,!0,r),rn(e,r,os,!1,!0),_=e.result),d?tn(e,s,p,b,y,_,n,i,c):h?s.push(tn(e,null,p,b,y,_,n,i,c)):s.push(y),qe(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}De(e,"unexpected end of the stream within a flow collection")}function $w(e,r){var t,n,i=uu,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)uu===i?i=h===43?Sd:kw:De(e,"repeat of a chomping mode identifier");else if((l=Pw(h))>=0)l===0?De(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?De(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(xr(h)){do h=e.input.charCodeAt(++e.position);while(xr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!It(h)&&h!==0)}for(;h!==0;){for(yu(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),It(h)){o++;continue}if(e.lineIndent<s){i===Sd?e.result+=We.repeat(`
|
17
|
+
`,c?1+o:o):i===uu&&c&&(e.result+=`
|
18
|
+
`);break}for(n?xr(h)?(f=!0,e.result+=We.repeat(`
|
19
|
+
`,c?1+o:o)):f?(f=!1,e.result+=We.repeat(`
|
20
|
+
`,o+1)):o===0?c&&(e.result+=" "):e.result+=We.repeat(`
|
21
|
+
`,o):e.result+=We.repeat(`
|
22
|
+
`,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!It(h)&&h!==0;)h=e.input.charCodeAt(++e.position);rr(e,t,e.position,!1)}return!0}function Dd(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,De(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!ut(a))));){if(s=!0,e.position++,qe(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,rn(e,r,s0,!1,!0),c.push(e.result),qe(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)De(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function Hw(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,De(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&ut(n))g===63?(b&&(tn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):De(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!rn(e,t,i0,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);xr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),ut(g)||De(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(tn(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)De(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)De(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),rn(e,r,as,!0,i)&&(b?p=e.result:y=e.result),b||(tn(e,h,u,d,p,y,a,s,o),d=p=y=null),qe(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)De(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&tn(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function Uw(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&De(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):De(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ut(a);)a===33&&(n?De(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),o0.test(i)||De(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),Ow.test(c)&&De(e,"tag suffix cannot contain flow indicator characters")}c&&!a0.test(c)&&De(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{De(e,"tag name is malformed: "+c)}return t?e.tag=c:nr.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:De(e,'undeclared tag handle "'+i+'"'),!0}function qw(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&De(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!ut(t)&&!en(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&De(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function Gw(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!ut(n)&&!en(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&De(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),nr.call(e.anchorMap,t)||De(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],qe(e,!0,-1),!0}function rn(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=as===t||s0===t,n&&qe(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;Uw(e)||qw(e);)qe(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||as===t)&&(os===t||i0===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(Dd(e,b)||Hw(e,b,y))||jw(e,y)?l=!0:(a&&$w(e,y)||Mw(e,y)||Nw(e,y)?l=!0:Gw(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&De(e,"alias node should not have any properties")):Lw(e,y,os===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&Dd(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&De(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(nr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||De(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&De(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):De(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function zw(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(qe(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!ut(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&De(e,"directive name must not be less than one character in length");a!==0;){for(;xr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!It(a));break}if(It(a))break;for(t=e.position;a!==0&&!ut(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&yu(e),nr.call(Cd,n)?Cd[n](e,n,i):us(e,'unknown document directive "'+n+'"')}if(qe(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,qe(e,!0,-1)):c&&De(e,"directives end mark is expected"),rn(e,e.lineIndent-1,as,!1,!0),qe(e,!0,-1),e.checkLineBreaks&&Rw.test(e.input.slice(r,e.position))&&us(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&hs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,qe(e,!0,-1));return}if(e.position<e.length-1)De(e,"end of the stream or a document separator is expected");else return}function h0(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
23
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new Iw(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,De(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)zw(t);return t.documents}function Ww(e,r,t){r!==null&&typeof r=="object"&&typeof t=="undefined"&&(t=r,r=null);var n=h0(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function Vw(e,r){var t=h0(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new ot("expected a single document in the stream, but found more")}}var Yw=Ww,Kw=Vw,f0={loadAll:Yw,load:Kw},p0=Object.prototype.toString,d0=Object.prototype.hasOwnProperty,bu=65279,Xw=9,Mn=10,Zw=13,Jw=32,Qw=33,eE=34,cu=35,tE=37,rE=38,nE=39,iE=42,m0=44,sE=45,ls=58,oE=61,aE=62,uE=63,lE=64,y0=91,g0=93,cE=96,b0=123,hE=124,v0=125,tt={};tt[0]="\\0";tt[7]="\\a";tt[8]="\\b";tt[9]="\\t";tt[10]="\\n";tt[11]="\\v";tt[12]="\\f";tt[13]="\\r";tt[27]="\\e";tt[34]='\\"';tt[92]="\\\\";tt[133]="\\N";tt[160]="\\_";tt[8232]="\\L";tt[8233]="\\P";var fE=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],pE=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function dE(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&d0.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function mE(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new ot("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+We.repeat("0",n-r.length)+r}var yE=1,Nn=2;function gE(e){this.schema=e.schema||mu,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=We.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=dE(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Nn:yE,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Rd(e,r){for(var t=We.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
|
24
|
+
`,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
25
|
+
`&&(c+=t),c+=a;return c}function hu(e,r){return`
|
26
|
+
`+We.repeat(" ",e.indent*r)}function bE(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function cs(e){return e===Jw||e===Xw}function jn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==bu||65536<=e&&e<=1114111}function Od(e){return jn(e)&&e!==bu&&e!==Zw&&e!==Mn}function Td(e,r,t){var n=Od(e),i=n&&!cs(e);return(t?n:n&&e!==m0&&e!==y0&&e!==g0&&e!==b0&&e!==v0)&&e!==cu&&!(r===ls&&!i)||Od(r)&&!cs(r)&&e===cu||r===ls&&i}function vE(e){return jn(e)&&e!==bu&&!cs(e)&&e!==sE&&e!==uE&&e!==ls&&e!==m0&&e!==y0&&e!==g0&&e!==b0&&e!==v0&&e!==cu&&e!==rE&&e!==iE&&e!==Qw&&e!==hE&&e!==oE&&e!==aE&&e!==nE&&e!==eE&&e!==tE&&e!==lE&&e!==cE}function _E(e){return!cs(e)&&e!==ls}function In(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function _0(e){var r=/^\n* /;return r.test(e)}var w0=1,fu=2,E0=3,S0=4,Qr=5;function wE(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=vE(In(e,0))&&_E(In(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=In(e,o),!jn(f))return Qr;y=y&&Td(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=In(e,o),f===Mn)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!jn(f))return Qr;y=y&&Td(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?w0:c===Nn?Qr:fu:t>9&&_0(e)?Qr:a?c===Nn?Qr:fu:u?S0:E0}function EE(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===Nn?'""':"''";if(!e.noCompatMode&&(fE.indexOf(r)!==-1||pE.test(r)))return e.quotingType===Nn?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return bE(e,f)}switch(wE(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case w0:return r;case fu:return"'"+r.replace(/'/g,"''")+"'";case E0:return"|"+Fd(r,e.indent)+Pd(Rd(r,c));case S0:return">"+Fd(r,e.indent)+Pd(Rd(SE(r,a),c));case Qr:return'"'+AE(r)+'"';default:throw new ot("impossible error: invalid scalar style")}}()}function Fd(e,r){var t=_0(e)?String(r):"",n=e[e.length-1]===`
|
27
|
+
`,i=n&&(e[e.length-2]===`
|
28
|
+
`||e===`
|
29
|
+
`),c=i?"+":n?"":"-";return t+c+`
|
30
|
+
`}function Pd(e){return e[e.length-1]===`
|
31
|
+
`?e.slice(0,-1):e}function SE(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
32
|
+
`);return f=f!==-1?f:e.length,t.lastIndex=f,Bd(e.slice(0,f),r)}(),i=e[0]===`
|
33
|
+
`||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
|
34
|
+
`:"")+Bd(o,r),i=c}return n}function Bd(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
|
35
|
+
`+e.slice(i,c),i=c+1),a=s;return o+=`
|
36
|
+
`,e.length-i>r&&a>i?o+=e.slice(i,a)+`
|
37
|
+
`+e.slice(a+1):o+=e.slice(i),o.slice(1)}function AE(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=In(e,i),n=tt[t],!n&&jn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||mE(t);return r}function xE(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(zt(e,r,s,!1,!1)||typeof s=="undefined"&&zt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Id(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(zt(e,r+1,o,!0,!0,!1,!0)||typeof o=="undefined"&&zt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=hu(e,r)),e.dump&&Mn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function CE(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),zt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),zt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function kE(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ot("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=hu(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),zt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&Mn===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=hu(e,r)),zt(e,r+1,l,!0,h)&&(e.dump&&Mn===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function Ld(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,p0.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(d0.call(s.represent,o))n=s.represent[o](r,o);else throw new ot("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function zt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,Ld(e,t,!1)||Ld(e,t,!0);var s=p0.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(kE(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(CE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?Id(e,r-1,e.dump,i):Id(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(xE(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&EE(e,e.dump,r,c,o);else{if(s==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ot("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function DE(e,r){var t=[],n=[],i,c;for(pu(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function pu(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)pu(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)pu(e[n[i]],r,t)}function RE(e,r){r=r||{};var t=new gE(r);t.noRefs||DE(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),zt(t,0,n,!0,!0)?t.dump+`
|
38
|
+
`:""}var OE=RE,TE={dump:OE};function vu(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var FE=Ze,PE=jd,BE=qd,IE=Yd,LE=Kd,ME=mu,NE=f0.load,jE=f0.loadAll,$E=TE.dump,HE=ot,UE={binary:e0,float:Vd,map:Ud,null:Gd,pairs:r0,set:n0,timestamp:Jd,bool:zd,int:Wd,merge:Qd,omap:t0,seq:Hd,str:$d},qE=vu("safeLoad","load"),GE=vu("safeLoadAll","loadAll"),zE=vu("safeDump","dump"),WE={Type:FE,Schema:PE,FAILSAFE_SCHEMA:BE,JSON_SCHEMA:IE,CORE_SCHEMA:LE,DEFAULT_SCHEMA:ME,load:NE,loadAll:jE,dump:$E,YAMLException:HE,types:UE,safeLoad:qE,safeLoadAll:GE,safeDump:zE},A0=WE;var ar=Pe(require("fs-extra"),1),Vn=Pe(require("path"),1),ur=Pe(require("fs-extra"),1),Yn=Pe(require("path"),1),PO=Pe(require("chalk"),1),BO=Pe(require("gradient-string"),1),IO=Pe(Ao(),1),LO=Pe(require("ora"),1),MO=require("semver"),NO=Pe(require("chalk"),1),nn=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),VE=Object.create,Ou=Object.defineProperty,YE=Object.getOwnPropertyDescriptor,KE=Object.getOwnPropertyNames,XE=Object.getPrototypeOf,ZE=Object.prototype.hasOwnProperty,ce=(e=>typeof nn<"u"?nn:typeof Proxy<"u"?new Proxy(e,{get:(r,t)=>(typeof nn<"u"?nn:r)[t]}):e)(function(e){if(typeof nn<"u")return nn.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),JE=(e,r)=>()=>(e&&(r=e(e=0)),r),te=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),QE=(e,r)=>{for(var t in r)Ou(e,t,{get:r[t],enumerable:!0})},eS=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of KE(r))!ZE.call(e,i)&&i!==t&&Ou(e,i,{get:()=>r[i],enumerable:!(n=YE(r,i))||n.enumerable});return e},Je=(e,r,t)=>(t=e!=null?VE(XE(e)):{},eS(r||!e||!e.__esModule?Ou(t,"default",{value:e,enumerable:!0}):t,e)),Z=JE(()=>{}),tS=te((e,r)=>{"use strict";Z();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),U0=te((e,r)=>{"use strict";Z();var t=tS(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),rS=te((e,r)=>{Z(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),q0=te((e,r)=>{Z();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=ce("assert"),c=rS(),a=/^win/i.test(t.platform),s=ce("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_}),nS=te((e,r)=>{Z(),r.exports=c,c.sync=a;var t=ce("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),iS=te((e,r)=>{Z(),r.exports=n,n.sync=i;var t=ce("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),sS=te((e,r)=>{Z();var t=ce("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=nS():n=iS(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),oS=te((e,r)=>{Z();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=ce("path"),i=t?";":":",c=sS(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,R)=>{if(!x&&R)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),G0=te((e,r)=>{"use strict";Z();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),aS=te((e,r)=>{"use strict";Z();var t=ce("path"),n=oS(),i=G0();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),uS=te((e,r)=>{"use strict";Z();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),lS=te((e,r)=>{"use strict";Z(),r.exports=/^#!(.*)/}),cS=te((e,r)=>{"use strict";Z();var t=lS();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),hS=te((e,r)=>{"use strict";Z();var t=ce("fs"),n=cS();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),fS=te((e,r)=>{"use strict";Z();var t=ce("path"),n=aS(),i=uS(),c=hS(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),pS=te((e,r)=>{"use strict";Z();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),dS=te((e,r)=>{"use strict";Z();var t=ce("child_process"),n=fS(),i=pS();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),mS=te((e,r)=>{"use strict";Z(),r.exports=t=>{let n=typeof t=="string"?`
|
39
|
+
`:`
|
40
|
+
`.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),yS=te((e,r)=>{"use strict";Z();var t=ce("path"),n=G0(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),gS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),z0=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),bS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=ce("os"),t=gS(),n=z0(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),vS=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=ce("os"),t=bS(),n=z0(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),_S=te((e,r)=>{"use strict";Z();var{signalsByName:t}=vS(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
|
41
|
+
${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
|
42
|
+
`);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),wS=te((e,r)=>{"use strict";Z();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),ES=te((e,r)=>{"use strict";Z();var t=ce("os"),n=q0(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),SS=te((e,r)=>{"use strict";Z();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),AS=te((e,r)=>{"use strict";Z();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),xS=te((e,r)=>{"use strict";Z();var{constants:t}=ce("buffer"),n=ce("stream"),{promisify:i}=ce("util"),c=AS(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),CS=te((e,r)=>{"use strict";Z();var{PassThrough:t}=ce("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),kS=te((e,r)=>{"use strict";Z();var t=SS(),n=xS(),i=CS(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),DS=te((e,r)=>{"use strict";Z();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),RS=te((e,r)=>{"use strict";Z();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),OS=te((e,r)=>{"use strict";Z();var t=ce("path"),n=ce("child_process"),i=dS(),c=mS(),a=yS(),s=U0(),o=_S(),f=wS(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=ES(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=kS(),{mergePromise:S,getSpawnedPromise:E}=DS(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=RS(),A=1e3*1e3*100,x=({env:O,extendEnv:D,preferLocal:k,localDir:L,execPath:I})=>{let H=D?{...process.env,...O}:O;return k?a.env({env:H,cwd:L,execPath:I}):H},R=(O,D,k={})=>{let L=i._parse(O,D,k);return O=L.command,D=L.args,k=L.options,k={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:k.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...k},k.env=x(k),k.stdio=f(k),process.platform==="win32"&&t.basename(O,".exe")==="cmd"&&D.unshift("/q"),{file:O,args:D,options:k,parsed:L}},P=(O,D,k)=>typeof D!="string"&&!Buffer.isBuffer(D)?k===void 0?void 0:"":O.stripFinalNewline?c(D):D,F=(O,D,k)=>{let L=R(O,D,k),I=v(O,D),H=w(O,D);d(L.options);let z;try{z=n.spawn(L.file,L.args,L.options)}catch(U){let Q=new n.ChildProcess,N=Promise.reject(o({error:U,stdout:"",stderr:"",all:"",command:I,escapedCommand:H,parsed:L,timedOut:!1,isCanceled:!1,killed:!1}));return S(Q,N)}let re=E(z),B=u(z,L.options,re),M=p(z,L.options,B),T={isCanceled:!1};z.kill=l.bind(null,z.kill.bind(z)),z.cancel=h.bind(null,z,T);let Y=s(async()=>{let[{error:U,exitCode:Q,signal:N,timedOut:W},J,ae,oe]=await b(z,L.options,M),de=P(L.options,J),pe=P(L.options,ae),j=P(L.options,oe);if(U||Q!==0||N!==null){let G=o({error:U,exitCode:Q,signal:N,stdout:de,stderr:pe,all:j,command:I,escapedCommand:H,parsed:L,timedOut:W,isCanceled:T.isCanceled,killed:z.killed});if(!L.options.reject)return G;throw G}return{command:I,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(z,L.options.input),z.all=_(z,L.options),S(z,Y)};r.exports=F,r.exports.sync=(O,D,k)=>{let L=R(O,D,k),I=v(O,D),H=w(O,D);g(L.options);let z;try{z=n.spawnSync(L.file,L.args,L.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:I,escapedCommand:H,parsed:L,timedOut:!1,isCanceled:!1,killed:!1})}let re=P(L.options,z.stdout,z.error),B=P(L.options,z.stderr,z.error);if(z.error||z.status!==0||z.signal!==null){let M=o({stdout:re,stderr:B,error:z.error,signal:z.signal,exitCode:z.status,command:I,escapedCommand:H,parsed:L,timedOut:z.error&&z.error.code==="ETIMEDOUT",isCanceled:!1,killed:z.signal!==null});if(!L.options.reject)return M;throw M}return{command:I,escapedCommand:H,exitCode:0,stdout:re,stderr:B,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(O,D)=>{let[k,...L]=m(O);return F(k,L,D)},r.exports.commandSync=(O,D)=>{let[k,...L]=m(O);return F.sync(k,L,D)},r.exports.node=(O,D,k={})=>{D&&!Array.isArray(D)&&typeof D=="object"&&(k=D,D=[]);let L=f.node(k),I=process.execArgv.filter(re=>!re.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:z=I}=k;return F(H,[...z,O,...Array.isArray(D)?D:[]],{...k,stdin:void 0,stdout:void 0,stderr:void 0,stdio:L,shell:!1})}});Z();var b4=Je(OS());var TS=te((e,r)=>{"use strict";Z();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),FS=te((e,r)=>{"use strict";Z(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),W0=te((e,r)=>{Z();var t=FS(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),PS=te((e,r)=>{Z();var t=W0();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),BS=te((e,r)=>{Z();var t=W0(),n=PS(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),IS=te((e,r)=>{"use strict";Z();var t=BS(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),LS=te((e,r)=>{"use strict";Z(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),MS=te((e,r)=>{"use strict";Z();var t=ce("os"),n=LS(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),NS=te((e,r)=>{"use strict";Z();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
43
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),ws=te((e,r)=>{"use strict";Z();var t=TS(),n=IS(),i=MS().stdout,c=NS(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports}),jS=te((e,r)=>{"use strict";Z(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),V0=te((e,r)=>{Z();var t=jS(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),$S=te((e,r)=>{Z();var t=V0();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),HS=te((e,r)=>{Z();var t=V0(),n=$S(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),Y0=te((e,r)=>{"use strict";Z();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=HS());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),US=te((e,r)=>{"use strict";Z(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),K0=te((e,r)=>{"use strict";Z();var t=ce("os"),n=ce("tty"),i=US(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),qS=te((e,r)=>{"use strict";Z();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
44
|
+
`:`
|
45
|
+
`)+a,o=s+1,s=i.indexOf(`
|
46
|
+
`,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),GS=te((e,r)=>{"use strict";Z();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
47
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),zS=te((e,r)=>{"use strict";Z();var t=Y0(),{stdout:n,stderr:i}=K0(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=qS(),s=["ansi","ansi","ansi256","ansi16m"],o=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},l=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=l,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))o[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};o.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)o[v]={get(){let{level:m}=this;return function(...w){let A=y(t.color[s[m]][v](...w),t.color.close,this._styler);return b(this,A,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);o[m]={get(){let{level:w}=this;return function(...A){let x=y(t.bgColor[s[w]][v](...A),t.bgColor.close,this._styler);return b(this,x,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...o,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let A,x;return w===void 0?(A=v,x=m):(A=w.openAll+v,x=m+w.closeAll),{open:v,close:m,openAll:A,closeAll:x,parent:w}},b=(v,m,w)=>{let A=(...x)=>_(A,x.length===1?""+x[0]:x.join(" "));return A.__proto__=p,A._generator=v,A._styler=m,A._isEmpty=w,A},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:A,closeAll:x}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=c(m,w.close,w.open),w=w.parent;let R=m.indexOf(`
|
48
|
+
`);return R!==-1&&(m=a(m,x,A,R)),A+m+x},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let A=m.slice(1),x=[w.raw[0]];for(let R=1;R<w.length;R++)x.push(String(A[R-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[R]));return g===void 0&&(g=GS()),g(v,x.join(""))};Object.defineProperties(u.prototype,o);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),WS=te((e,r)=>{"use strict";Z();var t=U0(),n=q0();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),VS=te(e=>{"use strict";Z();var r=WS(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),YS=te((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),KS=te((e,r)=>{"use strict";Z();var t=Object.assign({},YS()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),c=n[i];return t[c]}}),r.exports=t}),XS=te((e,r)=>{"use strict";Z();var t=ws(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},c={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:c}),ZS=te((e,r)=>{"use strict";Z(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),JS=te((e,r)=>{"use strict";Z();var t=ZS();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),QS=te((e,r)=>{Z();var t=function(){"use strict";function n(f,l,h,u){var d;typeof l=="object"&&(h=l.depth,u=l.prototype,d=l.filter,l=l.circular);var p=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,o(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(l){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var A;v&&(A=Object.getOwnPropertyDescriptor(v,w)),!(A&&A.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var l=function(){};return l.prototype=f,new l};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function c(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=c;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function s(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=s;function o(f){var l="";return f.global&&(l+="g"),f.ignoreCase&&(l+="i"),f.multiline&&(l+="m"),l}return n.__getRegExpFlags=o,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),eA=te((e,r)=>{Z();var t=QS();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(c){typeof n[c]>"u"&&(n[c]=t(i[c]))}),n}}),tA=te((e,r)=>{Z(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),rA=te((e,r)=>{"use strict";Z();var t=eA(),n=tA(),i={nul:0,control:0};r.exports=function(o){return c(o,i)},r.exports.config=function(o){return o=t(o||{},i),function(f){return c(f,o)}};function c(o,f){if(typeof o!="string")return a(o,f);for(var l=0,h=0;h<o.length;h++){var u=a(o.charCodeAt(h),f);if(u<0)return-1;l+=u}return l}function a(o,f){return o===0?f.nul:o<32||o>=127&&o<160?f.control:s(o)?0:1+(o>=4352&&(o<=4447||o==9001||o==9002||o>=11904&&o<=42191&&o!=12351||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65040&&o<=65049||o>=65072&&o<=65135||o>=65280&&o<=65376||o>=65504&&o<=65510||o>=131072&&o<=196605||o>=196608&&o<=262141))}function s(o){var f=0,l=n.length-1,h;if(o<n[0][0]||o>n[l][1])return!1;for(;l>=f;)if(h=Math.floor((f+l)/2),o>n[h][1])f=h+1;else if(o<n[h][0])l=h-1;else return!0;return!1}}),nA=te((e,r)=>{"use strict";Z(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),iA=te((e,r)=>{Z();var t=ce("stream");r.exports=n;function n(o){t.apply(this),o=o||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=o.replace,this._prompt=o.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(o){this._src=o}Object.defineProperty(n.prototype,"isTTY",{get:c,set:a,enumerable:!0,configurable:!0});function c(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(o){Object.defineProperty(this,"isTTY",{value:o,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(o,f){return this._dest=o,t.prototype.pipe.call(this,o,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(o){if(this.muted){if(!this.replace)return!0;if(o.match(/^\u001b/))return o.indexOf(this._prompt)===0&&(o=o.substr(this._prompt.length),o=o.replace(/./g,this.replace),o=this._prompt+o),this._hadControl=!0,this.emit("data",o);this._prompt&&this._hadControl&&o.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),o=o.substr(this._prompt.length)),o=o.toString().replace(/./g,this.replace)}this.emit("data",o)},n.prototype.end=function(o){this.muted&&(o&&this.replace?o=o.toString().replace(/./g,this.replace):o=null),o&&this.emit("data",o),this.emit("end")};function s(o){return function(){var f=this._dest,l=this._src;f&&f[o]&&f[o].apply(f,arguments),l&&l[o]&&l[o].apply(l,arguments)}}n.prototype.destroy=s("destroy"),n.prototype.destroySoon=s("destroySoon"),n.prototype.close=s("close")}),sA=te((e,r)=>{"use strict";Z();var t=ce("readline"),n=zS(),i=VS(),c=KS(),a=XS(),s=JS(),o=rA(),f=nA(),l=iA(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=c.line;else if(g===void 0)this._spinner=c.dots;else if(c[g])this._spinner=c[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=s(S+"--"+this[h]).split(`
|
49
|
+
`).reduce((E,v)=>E+Math.max(1,Math.ceil(o(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
50
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
|
51
|
+
`),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),oA=te((e,r)=>{"use strict";Z();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
52
|
+
`:`
|
53
|
+
`)+a,o=s+1,s=i.indexOf(`
|
54
|
+
`,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),aA=te((e,r)=>{"use strict";Z();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
55
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),uA=te((e,r)=>{"use strict";Z();var t=Y0(),{stdout:n,stderr:i}=K0(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=oA(),{isArray:s}=Array,o=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),l=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let A=n?n.level:0;m.level=w.level===void 0?A:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return l(w,m),w.template=(...A)=>E(w.template,...A),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let A=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:A}),A}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...A){let x=b(t.color[o[w]][m](...A),t.color.close,this._styler);return _(this,x,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:A}=this;return function(...x){let R=b(t.bgColor[o[A]][m](...x),t.bgColor.close,this._styler);return _(this,R,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,A)=>{let x,R;return A===void 0?(x=m,R=w):(x=A.openAll+m,R=w+A.closeAll),{open:m,close:w,openAll:x,closeAll:R,parent:A}},_=(m,w,A)=>{let x=(...R)=>s(R[0])&&s(R[0].raw)?g(x,E(x,...R)):g(x,R.length===1?""+R[0]:R.join(" "));return Object.setPrototypeOf(x,y),x._generator=m,x._styler=w,x._isEmpty=A,x},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let A=m._styler;if(A===void 0)return w;let{openAll:x,closeAll:R}=A;if(w.indexOf("\x1B")!==-1)for(;A!==void 0;)w=c(w,A.close,A.open),A=A.parent;let P=w.indexOf(`
|
56
|
+
`);return P!==-1&&(w=a(w,R,x,P)),x+w+R},S,E=(m,...w)=>{let[A]=w;if(!s(A)||!s(A.raw))return w.join(" ");let x=w.slice(1),R=[A.raw[0]];for(let P=1;P<A.length;P++)R.push(String(x[P-1]).replace(/[{}\\]/g,"\\$&"),String(A.raw[P]));return S===void 0&&(S=aA()),S(m,R.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),lA=te((e,r)=>{Z(),function(t){var n=/^\s+/,i=/\s+$/,c=0,a=t.round,s=t.min,o=t.max,f=t.random;function l(j,G){if(j=j||"",G=G||{},j instanceof l)return j;if(!(this instanceof l))return new l(j,G);var C=h(j);this._originalInput=j,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=G.format||C.format,this._gradientType=G.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=C.ok,this._tc_id=c++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),G,C,q,X,ne,me;return G=j.r/255,C=j.g/255,q=j.b/255,G<=.03928?X=G/12.92:X=t.pow((G+.055)/1.055,2.4),C<=.03928?ne=C/12.92:ne=t.pow((C+.055)/1.055,2.4),q<=.03928?me=q/12.92:me=t.pow((q+.055)/1.055,2.4),.2126*X+.7152*ne+.0722*me},setAlpha:function(j){return this._a=re(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=y(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=y(this._r,this._g,this._b),G=a(j.h*360),C=a(j.s*100),q=a(j.v*100);return this._a==1?"hsv("+G+", "+C+"%, "+q+"%)":"hsva("+G+", "+C+"%, "+q+"%, "+this._roundA+")"},toHsl:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=d(this._r,this._g,this._b),G=a(j.h*360),C=a(j.s*100),q=a(j.l*100);return this._a==1?"hsl("+G+", "+C+"%, "+q+"%)":"hsla("+G+", "+C+"%, "+q+"%, "+this._roundA+")"},toHex:function(j){return _(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return g(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(B(this._r,255)*100)+"%",g:a(B(this._g,255)*100)+"%",b:a(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(B(this._r,255)*100)+"%, "+a(B(this._g,255)*100)+"%, "+a(B(this._b,255)*100)+"%)":"rgba("+a(B(this._r,255)*100)+"%, "+a(B(this._g,255)*100)+"%, "+a(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var G="#"+S(this._r,this._g,this._b,this._a),C=G,q=this._gradientType?"GradientType = 1, ":"";if(j){var X=l(j);C="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+q+"startColorstr="+G+",endColorstr="+C+")"},toString:function(j){var G=!!j;j=j||this._format;var C=!1,q=this._a<1&&this._a>=0,X=!G&&q&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return X?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(C=this.toRgbString()),j==="prgb"&&(C=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(C=this.toHexString()),j==="hex3"&&(C=this.toHexString(!0)),j==="hex4"&&(C=this.toHex8String(!0)),j==="hex8"&&(C=this.toHex8String()),j==="name"&&(C=this.toName()),j==="hsl"&&(C=this.toHslString()),j==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(j,G){var C=j.apply(null,[this].concat([].slice.call(G)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(j,G){return j.apply(null,[this].concat([].slice.call(G)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(j,G){if(typeof j=="object"){var C={};for(var q in j)j.hasOwnProperty(q)&&(q==="a"?C[q]=j[q]:C[q]=N(j[q]));j=C}return l(j,G)};function h(j){var G={r:0,g:0,b:0},C=1,q=null,X=null,ne=null,me=!1,se=!1;return typeof j=="string"&&(j=de(j)),typeof j=="object"&&(oe(j.r)&&oe(j.g)&&oe(j.b)?(G=u(j.r,j.g,j.b),me=!0,se=String(j.r).substr(-1)==="%"?"prgb":"rgb"):oe(j.h)&&oe(j.s)&&oe(j.v)?(q=N(j.s),X=N(j.v),G=b(j.h,q,X),me=!0,se="hsv"):oe(j.h)&&oe(j.s)&&oe(j.l)&&(q=N(j.s),ne=N(j.l),G=p(j.h,q,ne),me=!0,se="hsl"),j.hasOwnProperty("a")&&(C=j.a)),C=re(C),{ok:me,format:j.format||se,r:s(255,o(G.r,0)),g:s(255,o(G.g,0)),b:s(255,o(G.b,0)),a:C}}function u(j,G,C){return{r:B(j,255)*255,g:B(G,255)*255,b:B(C,255)*255}}function d(j,G,C){j=B(j,255),G=B(G,255),C=B(C,255);var q=o(j,G,C),X=s(j,G,C),ne,me,se=(q+X)/2;if(q==X)ne=me=0;else{var fe=q-X;switch(me=se>.5?fe/(2-q-X):fe/(q+X),q){case j:ne=(G-C)/fe+(G<C?6:0);break;case G:ne=(C-j)/fe+2;break;case C:ne=(j-G)/fe+4;break}ne/=6}return{h:ne,s:me,l:se}}function p(j,G,C){var q,X,ne;j=B(j,360),G=B(G,100),C=B(C,100);function me(ie,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ie+(ye-ie)*6*we:we<1/2?ye:we<2/3?ie+(ye-ie)*(2/3-we)*6:ie}if(G===0)q=X=ne=C;else{var se=C<.5?C*(1+G):C+G-C*G,fe=2*C-se;q=me(fe,se,j+1/3),X=me(fe,se,j),ne=me(fe,se,j-1/3)}return{r:q*255,g:X*255,b:ne*255}}function y(j,G,C){j=B(j,255),G=B(G,255),C=B(C,255);var q=o(j,G,C),X=s(j,G,C),ne,me,se=q,fe=q-X;if(me=q===0?0:fe/q,q==X)ne=0;else{switch(q){case j:ne=(G-C)/fe+(G<C?6:0);break;case G:ne=(C-j)/fe+2;break;case C:ne=(j-G)/fe+4;break}ne/=6}return{h:ne,s:me,v:se}}function b(j,G,C){j=B(j,360)*6,G=B(G,100),C=B(C,100);var q=t.floor(j),X=j-q,ne=C*(1-G),me=C*(1-X*G),se=C*(1-(1-X)*G),fe=q%6,ie=[C,me,ne,ne,se,C][fe],ye=[se,C,C,me,ne,ne][fe],we=[ne,ne,se,C,C,me][fe];return{r:ie*255,g:ye*255,b:we*255}}function _(j,G,C,q){var X=[Q(a(j).toString(16)),Q(a(G).toString(16)),Q(a(C).toString(16))];return q&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(j,G,C,q,X){var ne=[Q(a(j).toString(16)),Q(a(G).toString(16)),Q(a(C).toString(16)),Q(W(q))];return X&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function S(j,G,C,q){var X=[Q(W(q)),Q(a(j).toString(16)),Q(a(G).toString(16)),Q(a(C).toString(16))];return X.join("")}l.equals=function(j,G){return!j||!G?!1:l(j).toRgbString()==l(G).toRgbString()},l.random=function(){return l.fromRatio({r:f(),g:f(),b:f()})};function E(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.s-=G/100,C.s=M(C.s),l(C)}function v(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.s+=G/100,C.s=M(C.s),l(C)}function m(j){return l(j).desaturate(100)}function w(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.l+=G/100,C.l=M(C.l),l(C)}function A(j,G){G=G===0?0:G||10;var C=l(j).toRgb();return C.r=o(0,s(255,C.r-a(255*-(G/100)))),C.g=o(0,s(255,C.g-a(255*-(G/100)))),C.b=o(0,s(255,C.b-a(255*-(G/100)))),l(C)}function x(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.l-=G/100,C.l=M(C.l),l(C)}function R(j,G){var C=l(j).toHsl(),q=(C.h+G)%360;return C.h=q<0?360+q:q,l(C)}function P(j){var G=l(j).toHsl();return G.h=(G.h+180)%360,l(G)}function F(j){var G=l(j).toHsl(),C=G.h;return[l(j),l({h:(C+120)%360,s:G.s,l:G.l}),l({h:(C+240)%360,s:G.s,l:G.l})]}function O(j){var G=l(j).toHsl(),C=G.h;return[l(j),l({h:(C+90)%360,s:G.s,l:G.l}),l({h:(C+180)%360,s:G.s,l:G.l}),l({h:(C+270)%360,s:G.s,l:G.l})]}function D(j){var G=l(j).toHsl(),C=G.h;return[l(j),l({h:(C+72)%360,s:G.s,l:G.l}),l({h:(C+216)%360,s:G.s,l:G.l})]}function k(j,G,C){G=G||6,C=C||30;var q=l(j).toHsl(),X=360/C,ne=[l(j)];for(q.h=(q.h-(X*G>>1)+720)%360;--G;)q.h=(q.h+X)%360,ne.push(l(q));return ne}function L(j,G){G=G||6;for(var C=l(j).toHsv(),q=C.h,X=C.s,ne=C.v,me=[],se=1/G;G--;)me.push(l({h:q,s:X,v:ne})),ne=(ne+se)%1;return me}l.mix=function(j,G,C){C=C===0?0:C||50;var q=l(j).toRgb(),X=l(G).toRgb(),ne=C/100,me={r:(X.r-q.r)*ne+q.r,g:(X.g-q.g)*ne+q.g,b:(X.b-q.b)*ne+q.b,a:(X.a-q.a)*ne+q.a};return l(me)},l.readability=function(j,G){var C=l(j),q=l(G);return(t.max(C.getLuminance(),q.getLuminance())+.05)/(t.min(C.getLuminance(),q.getLuminance())+.05)},l.isReadable=function(j,G,C){var q=l.readability(j,G),X,ne;switch(ne=!1,X=pe(C),X.level+X.size){case"AAsmall":case"AAAlarge":ne=q>=4.5;break;case"AAlarge":ne=q>=3;break;case"AAAsmall":ne=q>=7;break}return ne},l.mostReadable=function(j,G,C){var q=null,X=0,ne,me,se,fe;C=C||{},me=C.includeFallbackColors,se=C.level,fe=C.size;for(var ie=0;ie<G.length;ie++)ne=l.readability(j,G[ie]),ne>X&&(X=ne,q=l(G[ie]));return l.isReadable(j,q,{level:se,size:fe})||!me?q:(C.includeFallbackColors=!1,l.mostReadable(j,["#fff","#000"],C))};var I=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=l.hexNames=z(I);function z(j){var G={};for(var C in j)j.hasOwnProperty(C)&&(G[j[C]]=C);return G}function re(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function B(j,G){Y(j)&&(j="100%");var C=U(j);return j=s(G,o(0,parseFloat(j))),C&&(j=parseInt(j*G,10)/100),t.abs(j-G)<1e-6?1:j%G/parseFloat(G)}function M(j){return s(1,o(0,j))}function T(j){return parseInt(j,16)}function Y(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function U(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Q(j){return j.length==1?"0"+j:""+j}function N(j){return j<=1&&(j=j*100+"%"),j}function W(j){return t.round(parseFloat(j)*255).toString(16)}function J(j){return T(j)/255}var ae=function(){var j="[-\\+]?\\d+%?",G="[-\\+]?\\d*\\.\\d+%?",C="(?:"+G+")|(?:"+j+")",q="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(j){return!!ae.CSS_UNIT.exec(j)}function de(j){j=j.replace(n,"").replace(i,"").toLowerCase();var G=!1;if(I[j])j=I[j],G=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=ae.rgb.exec(j))?{r:C[1],g:C[2],b:C[3]}:(C=ae.rgba.exec(j))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=ae.hsl.exec(j))?{h:C[1],s:C[2],l:C[3]}:(C=ae.hsla.exec(j))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=ae.hsv.exec(j))?{h:C[1],s:C[2],v:C[3]}:(C=ae.hsva.exec(j))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=ae.hex8.exec(j))?{r:T(C[1]),g:T(C[2]),b:T(C[3]),a:J(C[4]),format:G?"name":"hex8"}:(C=ae.hex6.exec(j))?{r:T(C[1]),g:T(C[2]),b:T(C[3]),format:G?"name":"hex"}:(C=ae.hex4.exec(j))?{r:T(C[1]+""+C[1]),g:T(C[2]+""+C[2]),b:T(C[3]+""+C[3]),a:J(C[4]+""+C[4]),format:G?"name":"hex8"}:(C=ae.hex3.exec(j))?{r:T(C[1]+""+C[1]),g:T(C[2]+""+C[2]),b:T(C[3]+""+C[3]),format:G?"name":"hex"}:!1}function pe(j){var G,C;return j=j||{level:"AA",size:"small"},G=(j.level||"AA").toUpperCase(),C=(j.size||"small").toLowerCase(),G!=="AA"&&G!=="AAA"&&(G="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:G,size:C}}typeof r<"u"&&r.exports?r.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),cA=te((e,r)=>{Z();var t=lA(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function c(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function s(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=c(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function o(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return s(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=c(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function l(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=c(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=s(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=s(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=o(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=o(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return l(this.stops,u,"toRgb",n)}hsvAt(u){return l(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),hA=te((e,r)=>{"use strict";Z();var t=uA(),n=cA(),i=/\s/g;function c(...h){let u=n.apply(this,h),d=(p,y)=>s(p?p.toString():"",u,y);return d.multiline=(p,y)=>o(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function s(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function o(h,u,d){let p=f(d),y=h.split(`
|
57
|
+
`),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
|
58
|
+
`)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var l={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=c;for(let h in l)r.exports[h]=u=>new c(l[h].colors)(u,l[h].options),r.exports[h].multiline=u=>new c(l[h].colors).multiline(u,l[h].options)}),fA={};QE(fA,{dimmed:()=>wA,error:()=>vA,info:()=>bA,item:()=>EA,turboBlue:()=>un,turboGradient:()=>yA,turboLoader:()=>gA,turboRed:()=>J0,warn:()=>_A,yellow:()=>Q0});Z();var Es=Je(ws()),pA=Je(sA()),dA=Je(hA()),X0="#0099F7",Z0="#F11712",mA="#FFFF00",yA=(0,dA.default)(X0,Z0),un=Es.default.hex(X0),J0=Es.default.hex(Z0),Q0=Es.default.hex(mA),gA=e=>(0,pA.default)({text:e,spinner:{frames:[" ",un("> "),un(">> "),un(">>>")]}}),bA=(...e)=>{console.log(un.bold(">>>"),...e)},vA=(...e)=>{console.error(J0.bold(">>>"),...e)},_A=(...e)=>{console.error(Q0.bold(">>>"),...e)},wA=(...e)=>{console.log(Es.default.dim(...e))},EA=(...e)=>{console.log(un.bold(" \u2022"),...e)},lr=te((e,r)=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,R;return(R=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&R!==void 0?R:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,R;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((R=(x=m)["@@observable"])===null||R===void 0?void 0:R.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:R}=x,P=R?`received values of types ${[...new Set(A.map(F=>`\`${u(F)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${P}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),SA=te((e,r)=>{"use strict";Z();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),AA=te((e,r)=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),xA=te((e,r)=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var t=AA(),n=ce("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),CA=te((e,r)=>{"use strict";Z();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=ce("dns"),{promisify:s}=ce("util"),o=ce("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let R=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);R.unref&&R.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async F=>{try{return await F}catch(O){if(O.code==="ENODATA"||O.code==="ENOTFOUND")return[];throw O}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(F=>v(F))),A=0,x=0,R=0,P=Date.now();for(let F of m)F.family=4,F.expires=P+F.ttl*1e3,A=Math.max(A,F.ttl);for(let F of w)F.family=6,F.expires=P+F.ttl*1e3,x=Math.max(x,F.ttl);return m.length>0?w.length>0?R=Math.min(A,x):R=A:R=x,{entries:[...m,...w],cacheTtl:R}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let R=x[h];w>=R?this._cache.delete(A):R<m&&(m=R)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),kA=te((e,r)=>{"use strict";Z();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),DA=te((e,r)=>{Z(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),rm=te((e,r)=>{Z();var t=DA();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),RA=te((e,r)=>{Z();var t=rm(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),OA=te((e,r)=>{Z();var t=rm(),n=RA(),i=ce("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),TA=te((e,r)=>{"use strict";Z();var{PassThrough:t}=ce("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),FA=te((e,r)=>{"use strict";Z();var{constants:t}=ce("buffer"),n=OA(),i=TA(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),PA=te((e,r)=>{"use strict";Z();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),Tu=te((e,r)=>{"use strict";Z(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),BA=te((e,r)=>{"use strict";Z();var t=ce("stream").Readable,n=Tu(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),IA=te((e,r)=>{"use strict";Z();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),LA=te((e,r)=>{"use strict";Z();var t=ce("stream").PassThrough,n=IA(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),MA=te(e=>{Z(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),NA=te((e,r)=>{"use strict";Z();var t=ce("events"),n=MA(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(ce(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),jA=te((e,r)=>{"use strict";Z();var t=ce("events"),n=ce("url"),i=kA(),c=FA(),a=PA(),s=BA(),o=Tu(),f=LA(),l=NA(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),R=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:R})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,R,P=new Promise(O=>{R=()=>{x||(x=!0,O())}}),F=O=>{if(v&&!A.forceRefresh){O.status=O.statusCode;let k=a.fromObject(v.cachePolicy).revalidatedPolicy(A,O);if(!k.modified){let L=k.policy.responseHeaders();O=new s(v.statusCode,L,v.body,v.url),O.cachePolicy=k.policy,O.fromCache=!0}}O.fromCache||(O.cachePolicy=new a(A,O,A),O.fromCache=!1);let D;A.cache&&O.cachePolicy.storable()?(D=f(O),(async()=>{try{let k=c.buffer(O);if(await Promise.race([P,new Promise(z=>O.once("end",z))]),x)return;let L=await k,I={cachePolicy:O.cachePolicy.toObject(),url:O.url,statusCode:O.fromCache?v.statusCode:O.statusCode,body:L},H=A.strictTtl?O.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,I,H)}catch(k){g.emit("error",new h.CacheError(k))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(k){g.emit("error",new h.CacheError(k))}})(),g.emit("response",D||O),typeof b=="function"&&b(D||O)};try{let O=p(A,F);O.once("error",R),O.once("abort",R),g.emit("request",O)}catch(O){g.emit("error",new h.RequestError(O))}};return(async()=>{let A=async R=>{await Promise.resolve();let P=R.cache?await this.cache.get(E):void 0;if(typeof P>"u")return w(R);let F=a.fromObject(P.cachePolicy);if(F.satisfiesWithoutRevalidation(R)&&!R.forceRefresh){let O=F.responseHeaders(),D=new s(P.statusCode,O,P.body,P.url);D.cachePolicy=F,D.fromCache=!0,g.emit("response",D),typeof b=="function"&&b(D)}else v=P,R.headers=F.revalidationHeaders(R),w(R)},x=R=>g.emit("error",new h.CacheError(R));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(R){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(R))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),$A=te((e,r)=>{"use strict";Z();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),HA=te((e,r)=>{"use strict";Z();var{Transform:t,PassThrough:n}=ce("stream"),i=ce("zlib"),c=$A();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),nm=te((e,r)=>{"use strict";Z();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),im=te((e,r)=>{"use strict";Z();var t=ce("events"),n=ce("tls"),i=ce("http2"),c=nm(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:P}of E)P(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let P=this.sessions[w],F=-1,O=-1,D;for(let k of P){let L=k.remoteSettings.maxConcurrentStreams;if(L<F)break;if(k[o].includes(A)){let I=k[a];if(I>=L||k[f]||k.destroyed)continue;D||(F=L),I>O&&(D=k,O=I)}}if(D){if(E.length!==1){for(let{reject:k}of E){let L=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
59
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);k(L)}return}E[0].resolve(D);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===R&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},R=()=>{let P=`${A}:${w}`,F=!1;try{let O=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(P),...S});O[a]=0,O[f]=!1;let D=()=>O[a]<O.remoteSettings.maxConcurrentStreams,k=!0;O.socket.once("session",I=>{this.tlsSessionCache.set(P,I)}),O.once("error",I=>{for(let{reject:H}of E)H(I);this.tlsSessionCache.delete(P)}),O.setTimeout(this.timeout,()=>{O.destroy()}),O.once("close",()=>{if(F){k&&this._freeSessionsCount--,this._sessionsCount--;let I=this.sessions[w];I.splice(I.indexOf(O),1),I.length===0&&delete this.sessions[w]}else{let I=new Error("Session closed without receiving a SETTINGS frame");I.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(I);x()}this._tryToCreateNewSession(w,A)});let L=()=>{if(!(!(w in this.queue)||!D())){for(let I of O[o])if(I in this.queue[w]){let{listeners:H}=this.queue[w][I];for(;H.length!==0&&D();)H.shift().resolve(O);let z=this.queue[w];if(z[I].listeners.length===0&&(delete z[I],Object.keys(z).length===0)){delete this.queue[w];break}if(!D())break}}};O.on("origin",()=>{O[o]=O.originSet,D()&&(L(),d(this.sessions[w],O))}),O.once("remoteSettings",()=>{if(O.ref(),O.unref(),this._sessionsCount++,R.destroyed){let I=new Error("Agent has been destroyed");for(let H of E)H.reject(I);O.destroy();return}O[o]=O.originSet;{let I=this.sessions;if(w in I){let H=I[w];H.splice(h(H,O,u),0,O)}else I[w]=[O]}this._freeSessionsCount+=1,F=!0,this.emit("session",O),L(),x(),O[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&O.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),O.on("remoteSettings",()=>{L(),d(this.sessions[w],O)})}),O[s]=O.request,O.request=(I,H)=>{if(O[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let z=O[s](I,H);return O.ref(),++O[a],O[a]===O.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,z.once("close",()=>{if(k=D(),--O[a],!O.destroyed&&!O.closed&&(p(this.sessions[w],O),D()&&!O.closed)){k||(this._freeSessionsCount++,k=!0);let re=O[a]===0;re&&O.unref(),re&&(this._freeSessionsCount>this.maxFreeSessions||O[f])?O.close():(d(this.sessions[w],O),L())}}),z}}catch(O){for(let D of E)D.reject(O);x()}};R.listeners=E,R.completed=!1,R.destroyed=!1,this.queue[w][A]=R,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),sm=te((e,r)=>{"use strict";Z();var{Readable:t}=ce("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),om=te((e,r)=>{"use strict";Z(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),UA=te((e,r)=>{"use strict";Z(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),qA=te((e,r)=>{"use strict";Z(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),GA=te((e,r)=>{"use strict";Z();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),am=te((e,r)=>{"use strict";Z();var t=ce("http2"),{Writable:n}=ce("stream"),{Agent:i,globalAgent:c}=im(),a=sm(),s=om(),o=UA(),f=qA(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=GA(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),R=/^[\^`\-\w!#$%&*+.|~]+$/,P=/[^\t\u0020-\u007E\u0080-\u00FF]/,F=class extends n{constructor(O,D,k){super({autoDestroy:!1});let L=typeof O=="string"||O instanceof URL;if(L&&(O=s(O instanceof URL?O:new URL(O))),typeof D=="function"||D===void 0?(k=D,D=L?O:{...O}):D={...O,...D},D.h2session)this[m]=D.h2session;else if(D.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof D.agent>"u"||D.agent===null)typeof D.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=D.createConnection):this.agent=c;else if(typeof D.agent.request=="function")this.agent=D.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],D.agent);if(D.protocol&&D.protocol!=="https:")throw new h(D.protocol,"https:");let I=D.port||D.defaultPort||this.agent&&this.agent.defaultPort||443,H=D.hostname||D.host||"localhost";delete D.hostname,delete D.host,delete D.port;let{timeout:z}=D;if(D.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=D.method||"GET",this.path=D.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,D.headers)for(let[re,B]of Object.entries(D.headers))this.setHeader(re,B);D.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(D.auth).toString("base64")),D.session=D.tlsSession,D.path=D.socketPath,this[w]=D,I===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${I}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${I}`)),z&&this.setTimeout(z),k&&this.once("response",k),this[A]=!1}get method(){return this[E][_]}set method(O){O&&(this[E][_]=O.toUpperCase())}get path(){return this[E][g]}set path(O){O&&(this[E][g]=O)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(O,D,k){if(this._mustNotHaveABody){k(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let L=()=>this._request.write(O,D,k);this._request?L():this[x].push(L)}_final(O){if(this.destroyed)return;this.flushHeaders();let D=()=>{if(this._mustNotHaveABody){O();return}this._request.end(O)};this._request?D():this[x].push(D)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(O,D){this.res&&this.res._dump(),this._request&&this._request.destroy(),D(O)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let O=this.method===S,D=k=>{if(this._request=k,this.destroyed){k.destroy();return}O||o(k,this,["timeout","continue","close","error"]);let L=H=>(...z)=>{!this.writable&&!this.destroyed?H(...z):this.once("finish",()=>{H(...z)})};k.once("response",L((H,z,re)=>{let B=new a(this.socket,k.readableHighWaterMark);this.res=B,B.req=this,B.statusCode=H[b],B.headers=H,B.rawHeaders=re,B.once("end",()=>{this.aborted?(B.aborted=!0,B.emit("aborted")):(B.complete=!0,B.socket=null,B.connection=null)}),O?(B.upgrade=!0,this.emit("connect",B,k,Buffer.alloc(0))?this.emit("close"):k.destroy()):(k.on("data",M=>{!B._dumped&&!B.push(M)&&k.pause()}),k.once("end",()=>{B.push(null)}),this.emit("response",B)||B._dump())})),k.once("headers",L(H=>this.emit("information",{statusCode:H[b]}))),k.once("trailers",L((H,z,re)=>{let{res:B}=this;B.trailers=H,B.rawTrailers=re}));let{socket:I}=k.session;this.socket=I,this.connection=I;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{D(this[m].request(this[E]))}catch(k){this.emit("error",k)}else{this.reusedSocket=!0;try{D(await this.agent.request(this[v],this[w],this[E]))}catch(k){this.emit("error",k)}}}getHeader(O){if(typeof O!="string")throw new l("name","string",O);return this[E][O.toLowerCase()]}get headersSent(){return this[A]}removeHeader(O){if(typeof O!="string")throw new l("name","string",O);if(this.headersSent)throw new u("remove");delete this[E][O.toLowerCase()]}setHeader(O,D){if(this.headersSent)throw new u("set");if(typeof O!="string"||!R.test(O)&&!f(O))throw new d("Header name",O);if(typeof D>"u")throw new p(D,O);if(P.test(D))throw new y("header content",O);this[E][O.toLowerCase()]=D}setNoDelay(){}setSocketKeepAlive(){}setTimeout(O,D){let k=()=>this._request.setTimeout(O,D);return this._request?k():this[x].push(k),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(O){}};r.exports=F}),zA=te((e,r)=>{"use strict";Z();var t=ce("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),WA=te((e,r)=>{"use strict";Z();var t=ce("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),VA=te((e,r)=>{"use strict";Z();var t=ce("http"),n=ce("https"),i=zA(),c=nm(),a=am(),s=WA(),o=om(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),YA=te((e,r)=>{"use strict";Z();var t=ce("http2"),n=im(),i=am(),c=sm(),a=VA(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),um=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=lr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),KA=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("fs"),t=ce("util"),n=lr(),i=um(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),lm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),XA=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),ZA=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=ce("net"),t=XA(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),JA=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=lr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),QA=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),ex=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),cm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),tx=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),hm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),rx=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),nx=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=lr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),ix=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),ps=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=ce("util"),t=ce("stream"),n=ce("fs"),i=ce("url"),c=ce("http"),a=ce("http"),s=ce("https"),o=xA(),f=CA(),l=jA(),h=HA(),u=YA(),d=Tu(),p=lr(),y=KA(),b=um(),_=lm(),g=ZA(),S=JA(),E=QA(),v=ex(),m=cm(),w=tx(),A=hm(),x=rx(),R=nx(),P=ix(),F,O=Symbol("request"),D=Symbol("response"),k=Symbol("responseSize"),L=Symbol("downloadedSize"),I=Symbol("bodySize"),H=Symbol("uploadedSize"),z=Symbol("serverResponsesPiped"),re=Symbol("unproxyEvents"),B=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),T=Symbol("startedReading"),Y=Symbol("stopReading"),U=Symbol("triggerRead"),Q=Symbol("body"),N=Symbol("jobs"),W=Symbol("originalResponse"),J=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),G=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of C)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var q=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[D]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
|
60
|
+
`).reverse(),Ee=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
|
61
|
+
`).reverse();for(;Ee.length!==0&&Ee[0]===be[0];)be.shift();this.stack=`${this.stack.slice(0,he)}${be.reverse().join(`
|
62
|
+
`)}${Ee.reverse().join(`
|
63
|
+
`)}`}}};e.RequestError=q;var X=class extends q{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends q{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends q{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends q{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends q{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends q{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends q{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[L]=0,this[H]=0,this.requestInitialized=!1,this[z]=new Set,this.redirects=[],this[Y]=!1,this[U]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Me}=this.options;if(!Me)throw new TypeError("Missing `url` property");if(this.requestUrl=Me.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[O])===null||Ae===void 0||Ae.destroy();return}for(let Ie of this[N])Ie();this[N].length=0,this.requestInitialized=!0}catch(Me){if(Me instanceof q){this._beforeError(Me);return}this.destroyed||this.destroy(Me)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Be=$.searchParams[Fe];Be===null?Se.append(Fe,""):Be!==void 0&&Se.append(Fe,Be)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Be)=>{Se.has(Be)||Se.append(Be,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Be=>{let Ce=$.url;if(!Ce.href.startsWith(Be))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Be}: ${Ce.href}`);$.url=new i.URL(Be+Ce.href.slice(Se.length)),Se=Be},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Me}=$;if(Me){let{setCookie:Se,getCookieString:Fe}=Me;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Ie}=$;if(Ie&&(pe.has(Ie)||pe.set(Ie,new l((Se,Fe)=>{let Be=Se[O](Se,Fe);return p.default.promise(Be)&&(Be.once=(Ce,ke)=>{if(Ce==="error")Be.catch(ke);else if(Ce==="abort")(async()=>{try{(await Be).once("abort",ke)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Ce}`);return Be}),Be},Ie))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)F||(F=new f.default),$.dnsCache=F;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let $t=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!$t)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),R.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Q]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Q]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Q]=V.stringifyJson(V.json));let Ae=await y.default(this[Q],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[I]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[W]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[B]=ge.isFromCache,this[k]=Number(V.headers["content-length"])||void 0,this[D]=V,V.once("end",()=>{this[k]=this[L],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&G.has(_e)){if(V.resume(),this[O]&&(this[M](),delete this[O],this[re]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Q]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Ie){return Ie.protocol==="unix:"||Ie.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Me=Ae.toString();if(decodeURI(Me),!be(ue)&&be(Ae)){this._beforeError(new q("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Me),$.url=Ae;for(let Ie of $.hooks.beforeRedirect)await Ie($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[U]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[z])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Me=V.headers[Ee];Ae&&be.setHeader(Ee,Me)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new q(Ee.message,Ee,this),this._beforeError(Ee)}),this[re]=_.default(V,this,we),this[O]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Q],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let ke in be)if(p.default.undefined(be[ke]))delete be[ke];else if(p.default.null_(be[ke]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${ke}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let ke=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(ke)&&(he.headers.cookie=ke)}for(let ke of he.hooks.beforeRequest){let Ht=await ke(he);if(!p.default.undefined(Ht)){he.request=()=>Ht;break}}he.body&&this[Q]!==he.body&&(this[Q]=he.body);let{agent:Ee,request:Ae,timeout:Me,url:Ie}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Ie.hostname==="unix"){let ke=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Ie.pathname}${Ie.search}`);if(ke!=null&&ke.groups){let{socketPath:Ht,path:no}=ke.groups;Object.assign(he,{socketPath:Ht,path:no,host:""})}}let $t=Ie.protocol==="https:",Se;he.http2?Se=u.auto:Se=$t?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Be=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[$t?"https":"http"]),he[O]=Fe,delete he.request,delete he.timeout;let Ce=he;if(Ce.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,Ce.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,Ce.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,Ce.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{Ce.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(Ce.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(Ce.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(Ce.ca=he.https.certificateAuthority),he.https.certificate&&(Ce.cert=he.https.certificate),he.https.key&&(Ce.key=he.https.key),he.https.passphrase&&(Ce.passphrase=he.https.passphrase),he.https.pfx&&(Ce.pfx=he.https.pfx));try{let ke=await Be(Ie,Ce);p.default.undefined(ke)&&(ke=Se(Ie,Ce)),he.request=Ae,he.timeout=Me,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete Ce.rejectUnauthorized,he.https.checkServerIdentity&&delete Ce.checkServerIdentity,he.https.certificateAuthority&&delete Ce.ca,he.https.certificate&&delete Ce.cert,he.https.key&&delete Ce.key,he.https.passphrase&&delete Ce.passphrase,he.https.pfx&&delete Ce.pfx),de(ke)?this._onRequest(ke):this.writable?(this.once("finish",()=>{this._onResponse(ke)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(ke)}catch(ke){throw ke instanceof l.CacheError?new me(ke,this):new q(ke.message,ke,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new q($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[Y])return;let{options:$}=this,ue=this.retryCount+1;this[Y]=!0,V instanceof q||(V=new q(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:P.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new q(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new q(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[J]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[U]=!0;let V=this[D];if(V&&!this[Y]){V.readableLength&&(this[U]=!1);let $;for(;($=V.read())!==null;){this[L]+=$.length,this[T]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[O].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[O].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(O in this)){V();return}if(this[O].destroyed){V();return}this[O].end(ue=>{ue||(this[I]=this[H],this.emit("uploadProgress",this.uploadProgress),this[O].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[Y]=!0,clearTimeout(this[J]),O in this&&(this[M](),!((ue=this[D])===null||ue===void 0)&&ue.complete||this[O].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof q)&&(V=new q(V.message,V,this)),$(V)}get _isAboutToError(){return this[Y]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[O])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[W])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[O])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[k]?V=this[L]/this[k]:this[k]===this[L]?V=1:V=0,{percent:V,transferred:this[L],total:this[k]}}get uploadProgress(){let V;return this[I]?V=this[H]/this[I]:this[I]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[I]}}get timings(){var V;return(V=this[O])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[B]}pipe(V,$){if(this[T])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[z].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[z].delete(V),super.unpipe(V),this}};e.default=xe}),ds=te(e=>{"use strict";Z();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=ps(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(ps(),e)}),sx=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ds(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),fm=te(e=>{"use strict";Z();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=ce("events"),i=lr(),c=SA(),a=ds(),s=sx(),o=ps(),f=lm(),l=cm(),h=hm(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async F=>{var O;if(F.retryCount=A,F.request.aborted)return;let D;try{D=await l.default(x),F.rawBody=D}catch{return}if(x._isAboutToError)return;let k=((O=F.headers["content-encoding"])!==null&&O!==void 0?O:"").toLowerCase(),L=["gzip","deflate","br"].includes(k),{options:I}=x;if(L&&!I.decompress)F.body=D;else try{F.body=s.default(F,I.responseType,I.parseJson,I.encoding)}catch(H){if(F.body=D.toString(),h.isResponseOk(F)){x._beforeError(H);return}}try{for(let[H,z]of I.hooks.afterResponse.entries())F=await z(F,async re=>{let B=o.default.normalizeArguments(void 0,{...re,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},I);B.hooks.afterResponse=B.hooks.afterResponse.slice(0,H);for(let T of B.hooks.beforeRetry)await T(B);let M=d(B);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=F,!h.isResponseOk(F)){x._beforeError(new a.HTTPError(F));return}x.destroy(),E(x.options.resolveBodyOnly?F.body:F)});let R=F=>{if(g.isCanceled)return;let{options:O}=x;if(F instanceof a.HTTPError&&!O.throwHttpErrors){let{response:D}=F;E(x.options.resolveBodyOnly?D.body:D);return}v(F)};x.once("error",R);let P=x.options.body;x.once("retry",(F,O)=>{var D,k;if(P===((D=O.request)===null||D===void 0?void 0:D.options.body)&&i.default.nodeStream((k=O.request)===null||k===void 0?void 0:k.options.body)){R(O);return}w(F)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(ds(),e)}),ox=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ds();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),ax=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=lr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),ux=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0})}),x0=te(e=>{"use strict";Z();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=lr(),i=fm(),c=ox(),a=ps(),s=ax(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:R,catch:P,finally:F}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=R,x.catch=P,x.finally=F}return A});let g=(E,v={},m)=>{var w,A;let x=0,R=P=>_.handlers[x++](P,x===_.handlers.length?u:R);if(n.default.plainObject(E)){let P={...E,...v};a.setNonEnumerableProperties([E,v],P),v=P,E=void 0}try{let P;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(O){P=O}let F=l(E,v,m!=null?m:_.options);if(F[a.kIsNormalizedAlready]=!0,P)throw new i.RequestError(P.message,P,F);return R(F)}catch(P){if(v.isStream)throw P;return c.default(P,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,R=0;for(;R<w.requestLimit;){R!==0&&await f(w.backoff);let P=await g(void 0,void 0,m),F=await w.transform(P),O=[];for(let k of F)if(w.filter(k,A,O)&&(!w.shouldContinue(k,A,O)||(yield k,w.stackAllItems&&A.push(k),O.push(k),--x<=0)))return;let D=w.paginate(P,A,O);if(D===!1)return;D===P.request.options?m=P.request.options:D!==void 0&&(m=l(void 0,D,m)),R++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(ux(),e)}),lx=te((e,r)=>{"use strict";Z();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=ce("url"),c=x0(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(x0(),e),n(fm(),e)}),Kn=te((e,r)=>{"use strict";Z();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),Fu=te((e,r)=>{"use strict";Z();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),R=Symbol("destroyed"),P=Symbol("emitData"),F=Symbol("emitEnd"),O=Symbol("emitEnd2"),D=Symbol("async"),k=Y=>Promise.resolve().then(Y),L=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=L&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=L&&Symbol.iterator||Symbol("iterator not implemented"),z=Y=>Y==="end"||Y==="finish"||Y==="prefinish",re=Y=>Y instanceof ArrayBuffer||typeof Y=="object"&&Y.constructor&&Y.constructor.name==="ArrayBuffer"&&Y.byteLength>=0,B=Y=>!Buffer.isBuffer(Y)&&ArrayBuffer.isView(Y),M=class{constructor(Y,U,Q){this.src=Y,this.dest=U,this.opts=Q,this.ondrain=()=>Y[S](),U.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},T=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Y,U,Q){super(Y,U,Q),this.proxyErrors=N=>U.emit("error",N),Y.on("error",this.proxyErrors)}};r.exports=class pm extends i{constructor(U){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=U&&U.objectMode||!1,this[x]?this[y]=null:this[y]=U&&U.encoding||null,this[y]==="buffer"&&(this[y]=null),this[D]=U&&!!U.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[R]=!1,U&&U.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),U&&U.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(U){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&U!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==U&&(this[b]=U?new c(U):null,this[E].length&&(this[E]=this[E].map(Q=>this[b].write(Q)))),this[y]=U}setEncoding(U){this.encoding=U}get objectMode(){return this[x]}set objectMode(U){this[x]=this[x]||!!U}get async(){return this[D]}set async(U){this[D]=this[D]||!!U}write(U,Q,N){if(this[a])throw new Error("write after end");if(this[R])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Q=="function"&&(N=Q,Q="utf8"),Q||(Q="utf8");let W=this[D]?k:J=>J();return!this[x]&&!Buffer.isBuffer(U)&&(B(U)?U=Buffer.from(U.buffer,U.byteOffset,U.byteLength):re(U)?U=Buffer.from(U):typeof U!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",U):this[w](U),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):U.length?(typeof U=="string"&&!(Q===this[y]&&!this[b].lastNeed)&&(U=Buffer.from(U,Q)),Buffer.isBuffer(U)&&this[y]&&(U=this[b].write(U)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",U):this[w](U),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing)}read(U){if(this[R])return null;if(this[m]===0||U===0||U>this[m])return this[s](),null;this[x]&&(U=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Q=this[u](U||null,this[E][0]);return this[s](),Q}[u](U,Q){return U===Q.length||U===null?this[A]():(this[E][0]=Q.slice(U),Q=Q.slice(0,U),this[m]-=U),this.emit("data",Q),!this[E].length&&!this[a]&&this.emit("drain"),Q}end(U,Q,N){return typeof U=="function"&&(N=U,U=null),typeof Q=="function"&&(N=Q,Q="utf8"),U&&this.write(U,Q),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[R]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[R]}get flowing(){return this[_]}get paused(){return this[g]}[w](U){this[x]?this[m]+=1:this[m]+=U.length,this[E].push(U)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](U){do;while(this[p](this[A]()));!U&&!this[E].length&&!this[a]&&this.emit("drain")}[p](U){return U?(this.emit("data",U),this.flowing):!1}pipe(U,Q){if(this[R])return;let N=this[o];return Q=Q||{},U===t.stdout||U===t.stderr?Q.end=!1:Q.end=Q.end!==!1,Q.proxyErrors=!!Q.proxyErrors,N?Q.end&&U.end():(this[v].push(Q.proxyErrors?new T(this,U,Q):new M(this,U,Q)),this[D]?k(()=>this[S]()):this[S]()),U}unpipe(U){let Q=this[v].find(N=>N.dest===U);Q&&(this[v].splice(this[v].indexOf(Q),1),Q.unpipe())}addListener(U,Q){return this.on(U,Q)}on(U,Q){let N=super.on(U,Q);return U==="data"&&!this[v].length&&!this.flowing?this[S]():U==="readable"&&this[m]!==0?super.emit("readable"):z(U)&&this[o]?(super.emit(U),this.removeAllListeners(U)):U==="error"&&this[l]&&(this[D]?k(()=>Q.call(this,this[l])):Q.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[R]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(U,Q,...N){if(U!=="error"&&U!=="close"&&U!==R&&this[R])return;if(U==="data")return Q?this[D]?k(()=>this[P](Q)):this[P](Q):!1;if(U==="end")return this[F]();if(U==="close"){if(this[h]=!0,!this[o]&&!this[R])return;let J=super.emit("close");return this.removeAllListeners("close"),J}else if(U==="error"){this[l]=Q;let J=super.emit("error",Q);return this[s](),J}else if(U==="resume"){let J=super.emit("resume");return this[s](),J}else if(U==="finish"||U==="prefinish"){let J=super.emit(U);return this.removeAllListeners(U),J}let W=super.emit(U,Q,...N);return this[s](),W}[P](U){for(let N of this[v])N.dest.write(U)===!1&&this.pause();let Q=super.emit("data",U);return this[s](),Q}[F](){this[o]||(this[o]=!0,this.readable=!1,this[D]?k(()=>this[O]()):this[O]())}[O](){if(this[b]){let Q=this[b].end();if(Q){for(let N of this[v])N.dest.write(Q);super.emit("data",Q)}}for(let Q of this[v])Q.end();let U=super.emit("end");return this.removeAllListeners("end"),U}collect(){let U=[];this[x]||(U.dataLength=0);let Q=this.promise();return this.on("data",N=>{U.push(N),this[x]||(U.dataLength+=N.length)}),Q.then(()=>U)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(U=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?U.join(""):Buffer.concat(U,U.dataLength))}promise(){return new Promise((U,Q)=>{this.on(R,()=>Q(new Error("stream destroyed"))),this.on("error",N=>Q(N)),this.on("end",()=>U())})}[I](){return{next:()=>{let U=this.read();if(U!==null)return Promise.resolve({done:!1,value:U});if(this[a])return Promise.resolve({done:!0});let Q=null,N=null,W=de=>{this.removeListener("data",J),this.removeListener("end",ae),N(de)},J=de=>{this.removeListener("error",W),this.removeListener("end",ae),this.pause(),Q({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",W),this.removeListener("data",J),Q({done:!0})},oe=()=>W(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Q=de,this.once(R,oe),this.once("error",W),this.once("end",ae),this.once("data",J)})}}}[H](){return{next:()=>{let U=this.read();return{value:U,done:U===null}}}}destroy(U){return this[R]?(U?this.emit("error",U):this.emit(R),this):(this[R]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),U?this.emit("error",U):this.emit(R),this)}static isStream(U){return!!U&&(U instanceof pm||U instanceof i||U instanceof n&&(typeof U.pipe=="function"||typeof U.write=="function"&&typeof U.end=="function"))}}}),cx=te((e,r)=>{Z();var t=ce("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),dm=te((e,r)=>{"use strict";Z();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=ce("events"),i=ce("stream"),c=ce("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),R=Symbol("emitEnd"),P=Symbol("emitEnd2"),F=Symbol("async"),O=M=>Promise.resolve().then(M),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",k=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L=D&&Symbol.iterator||Symbol("iterator not implemented"),I=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,z=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),re=class{constructor(M,T,Y){this.src=M,this.dest=T,this.opts=Y,this.ondrain=()=>M[S](),T.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},B=class extends re{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,T,Y){super(M,T,Y),this.proxyErrors=U=>T.emit("error",U),M.on("error",this.proxyErrors)}};r.exports=class mm extends i{constructor(T){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=T&&T.objectMode||!1,this[w]?this[y]=null:this[y]=T&&T.encoding||null,this[y]==="buffer"&&(this[y]=null),this[F]=T&&!!T.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(T){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&T!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==T&&(this[b]=T?new c(T):null,this.buffer.length&&(this.buffer=this.buffer.map(Y=>this[b].write(Y)))),this[y]=T}setEncoding(T){this.encoding=T}get objectMode(){return this[w]}set objectMode(T){this[w]=this[w]||!!T}get async(){return this[F]}set async(T){this[F]=this[F]||!!T}write(T,Y,U){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Y=="function"&&(U=Y,Y="utf8"),Y||(Y="utf8");let Q=this[F]?O:N=>N();return!this[w]&&!Buffer.isBuffer(T)&&(z(T)?T=Buffer.from(T.buffer,T.byteOffset,T.byteLength):H(T)?T=Buffer.from(T):typeof T!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",T):this[v](T),this[E]!==0&&this.emit("readable"),U&&Q(U),this.flowing):T.length?(typeof T=="string"&&!(Y===this[y]&&!this[b].lastNeed)&&(T=Buffer.from(T,Y)),Buffer.isBuffer(T)&&this[y]&&(T=this[b].write(T)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",T):this[v](T),this[E]!==0&&this.emit("readable"),U&&Q(U),this.flowing):(this[E]!==0&&this.emit("readable"),U&&Q(U),this.flowing)}read(T){if(this[A])return null;if(this[E]===0||T===0||T>this[E])return this[s](),null;this[w]&&(T=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let Y=this[u](T||null,this.buffer[0]);return this[s](),Y}[u](T,Y){return T===Y.length||T===null?this[m]():(this.buffer[0]=Y.slice(T),Y=Y.slice(0,T),this[E]-=T),this.emit("data",Y),!this.buffer.length&&!this[a]&&this.emit("drain"),Y}end(T,Y,U){return typeof T=="function"&&(U=T,T=null),typeof Y=="function"&&(U=Y,Y="utf8"),T&&this.write(T,Y),U&&this.once("end",U),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](T){this[w]?this[E]+=1:this[E]+=T.length,this.buffer.push(T)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](T){do;while(this[p](this[m]()));!T&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](T){return T?(this.emit("data",T),this.flowing):!1}pipe(T,Y){if(this[A])return;let U=this[o];return Y=Y||{},T===t.stdout||T===t.stderr?Y.end=!1:Y.end=Y.end!==!1,Y.proxyErrors=!!Y.proxyErrors,U?Y.end&&T.end():(this.pipes.push(Y.proxyErrors?new B(this,T,Y):new re(this,T,Y)),this[F]?O(()=>this[S]()):this[S]()),T}unpipe(T){let Y=this.pipes.find(U=>U.dest===T);Y&&(this.pipes.splice(this.pipes.indexOf(Y),1),Y.unpipe())}addListener(T,Y){return this.on(T,Y)}on(T,Y){let U=super.on(T,Y);return T==="data"&&!this.pipes.length&&!this.flowing?this[S]():T==="readable"&&this[E]!==0?super.emit("readable"):I(T)&&this[o]?(super.emit(T),this.removeAllListeners(T)):T==="error"&&this[l]&&(this[F]?O(()=>Y.call(this,this[l])):Y.call(this,this[l])),U}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(T,Y,...U){if(T!=="error"&&T!=="close"&&T!==A&&this[A])return;if(T==="data")return Y?this[F]?O(()=>this[x](Y)):this[x](Y):!1;if(T==="end")return this[R]();if(T==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(T==="error"){this[l]=Y;let N=super.emit("error",Y);return this[s](),N}else if(T==="resume"){let N=super.emit("resume");return this[s](),N}else if(T==="finish"||T==="prefinish"){let N=super.emit(T);return this.removeAllListeners(T),N}let Q=super.emit(T,Y,...U);return this[s](),Q}[x](T){for(let U of this.pipes)U.dest.write(T)===!1&&this.pause();let Y=super.emit("data",T);return this[s](),Y}[R](){this[o]||(this[o]=!0,this.readable=!1,this[F]?O(()=>this[P]()):this[P]())}[P](){if(this[b]){let Y=this[b].end();if(Y){for(let U of this.pipes)U.dest.write(Y);super.emit("data",Y)}}for(let Y of this.pipes)Y.end();let T=super.emit("end");return this.removeAllListeners("end"),T}collect(){let T=[];this[w]||(T.dataLength=0);let Y=this.promise();return this.on("data",U=>{T.push(U),this[w]||(T.dataLength+=U.length)}),Y.then(()=>T)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(T=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?T.join(""):Buffer.concat(T,T.dataLength))}promise(){return new Promise((T,Y)=>{this.on(A,()=>Y(new Error("stream destroyed"))),this.on("error",U=>Y(U)),this.on("end",()=>T())})}[k](){return{next:()=>{let T=this.read();if(T!==null)return Promise.resolve({done:!1,value:T});if(this[a])return Promise.resolve({done:!0});let Y=null,U=null,Q=ae=>{this.removeListener("data",N),this.removeListener("end",W),U(ae)},N=ae=>{this.removeListener("error",Q),this.removeListener("end",W),this.pause(),Y({value:ae,done:!!this[a]})},W=()=>{this.removeListener("error",Q),this.removeListener("data",N),Y({done:!0})},J=()=>Q(new Error("stream destroyed"));return new Promise((ae,oe)=>{U=oe,Y=ae,this.once(A,J),this.once("error",Q),this.once("end",W),this.once("data",N)})}}}[L](){return{next:()=>{let T=this.read();return{value:T,done:T===null}}}}destroy(T){return this[A]?(T?this.emit("error",T):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),T?this.emit("error",T):this.emit(A),this)}static isStream(T){return!!T&&(T instanceof mm||T instanceof i||T instanceof n&&(typeof T.pipe=="function"||typeof T.write=="function"&&typeof T.end=="function"))}}}),ym=te(e=>{"use strict";Z();var r=ce("assert"),t=ce("buffer").Buffer,n=ce("zlib"),i=e.constants=cx(),c=dm(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(I){super("zlib: "+I.message),this.code=I.code,this.errno=I.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+I.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(I,H){if(!I||typeof I!="object")throw new TypeError("invalid options for ZlibBase constructor");super(I),this[y]=!1,this[g]=!1,this[f]=I,this[l]=I.flush,this[h]=I.finishFlush;try{this[d]=new n[H](I)}catch(z){throw new o(z)}this[p]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[p](new o(z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(I){this.ended||(typeof I!="number"&&(I=this[u]),this.write(Object.assign(t.alloc(0),{[l]:I})))}end(I,H,z){return I&&this.write(I,H),this.flush(this[h]),this[g]=!0,super.end(null,null,z)}get ended(){return this[g]}write(I,H,z){if(typeof H=="function"&&(z=H,H="utf8"),typeof I=="string"&&(I=t.from(I,H)),this[y])return;r(this[d],"zlib binding closed");let re=this[d]._handle,B=re.close;re.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=U=>U;let T;try{let U=typeof I[l]=="number"?I[l]:this[l];T=this[d]._processChunk(I,U),t.concat=a}catch(U){t.concat=a,this[p](new o(U))}finally{this[d]&&(this[d]._handle=re,re.close=B,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",U=>this[p](new o(U)));let Y;if(T)if(Array.isArray(T)&&T.length>0){Y=this[s](t.from(T[0]));for(let U=1;U<T.length;U++)Y=this[s](T[U])}else Y=this[s](t.from(T));return z&&z(),Y}[s](I){return super.write(I)}},v=class extends E{constructor(I,H){I=I||{},I.flush=I.flush||i.Z_NO_FLUSH,I.finishFlush=I.finishFlush||i.Z_FINISH,super(I,H),this[u]=i.Z_FULL_FLUSH,this[b]=I.level,this[_]=I.strategy}params(I,H){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==I||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(re,B)=>{this.flush(re),B()};try{this[d].params(I,H)}finally{this[d].flush=z}this[d]&&(this[b]=I,this[_]=H)}}}},m=class extends v{constructor(I){super(I,"Deflate")}},w=class extends v{constructor(I){super(I,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(I){super(I,"Gzip"),this[A]=I&&!!I.portable}[s](I){return this[A]?(this[A]=!1,I[9]=255,super[s](I)):super[s](I)}},R=class extends v{constructor(I){super(I,"Gunzip")}},P=class extends v{constructor(I){super(I,"DeflateRaw")}},F=class extends v{constructor(I){super(I,"InflateRaw")}},O=class extends v{constructor(I){super(I,"Unzip")}},D=class extends E{constructor(I,H){I=I||{},I.flush=I.flush||i.BROTLI_OPERATION_PROCESS,I.finishFlush=I.finishFlush||i.BROTLI_OPERATION_FINISH,super(I,H),this[u]=i.BROTLI_OPERATION_FLUSH}},k=class extends D{constructor(I){super(I,"BrotliCompress")}},L=class extends D{constructor(I){super(I,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=R,e.DeflateRaw=P,e.InflateRaw=F,e.Unzip=O,typeof n.BrotliCompress=="function"?(e.BrotliCompress=k,e.BrotliDecompress=L):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),Xn=te((e,r)=>{Z();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),Pu=te((e,r)=>{"use strict";Z();var t=Fu(),n=Xn(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),gm=te(e=>{"use strict";Z(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),hx=te((e,r)=>{"use strict";Z();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),Zn=te((e,r)=>{"use strict";Z();var t=gm(),n=ce("path").posix,i=hx(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,R){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,A||0,x,R):w&&this.set(w)}decode(w,A,x,R){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](R,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let F=f(w,A+345,155);this.path=F+"/"+this.path}else{let F=f(w,A+345,130);F&&(this.path=F+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let P=8*32;for(let F=A;F<A+148;F++)P+=w[F];for(let F=A+156;F<A+512;F++)P+=w[F];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,R=o(this.path||"",x),P=R[0],F=R[1];this.needPax=R[2],this.needPax=m(w,A,100,P)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,F)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,F)||this.needPax:(this.needPax=m(w,A+345,130,F)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let O=8*32;for(let D=A;D<A+148;D++)O+=w[D];for(let D=A+156;D<A+512;D++)O+=w[D];return this.cksum=O,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,R="",P,F=n.parse(w).root||".";if(Buffer.byteLength(x)<100)P=[x,R,!1];else{R=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(R)<=A?P=[x,R,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(R)<=A?P=[x.slice(0,100-1),R,!0]:(x=n.join(n.basename(R),x),R=n.dirname(R));while(R!==F&&!P);P||(P=[w.slice(0,100-1),"",!0])}return P},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,R)=>R===null?!1:R>y[x]||R<0?(i.encode(R,w.slice(A,A+x)),!0):(_(w,A,x,R),!1),_=(w,A,x,R)=>w.write(g(R,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,R)=>R===null?!1:b(w,A,x,R.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,R)=>R===null?!1:(w.write(R+v,A,x,"utf8"),R.length!==Buffer.byteLength(R)||R.length>x);r.exports=s}),Bu=te((e,r)=>{"use strict";Z();var t=Zn(),n=ce("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
|
64
|
+
`,h=Buffer.byteLength(l),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+l}};i.parse=(o,f,l)=>new i(c(a(o),f),l);var c=(o,f)=>f?Object.keys(o).reduce((l,h)=>(l[h]=o[h],l),f):o,a=o=>o.replace(/\n$/,"").split(`
|
65
|
+
`).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),Jn=te((e,r)=>{Z(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),Iu=te((e,r)=>{"use strict";Z(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),bm=te((e,r)=>{"use strict";Z();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),vm=te((e,r)=>{Z();var{isAbsolute:t,parse:n}=ce("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),fx=te((e,r)=>{"use strict";Z(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),_m=te((e,r)=>{"use strict";Z();var t=Fu(),n=Bu(),i=Zn(),c=ce("fs"),a=ce("path"),s=Xn(),o=Jn(),f=(M,T)=>T?(M=s(M).replace(/^\.(\/|$)/,""),o(T)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),R=Symbol("awaitDrain"),P=Symbol("ondrain"),F=Symbol("prefix"),O=Symbol("hadError"),D=Iu(),k=bm(),L=vm(),I=fx(),H=D(class extends t{constructor(M,T){if(T=T||{},super(T),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!T.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=T.maxReadSize||l,this.linkCache=T.linkCache||new Map,this.statCache=T.statCache||new Map,this.preservePaths=!!T.preservePaths,this.cwd=s(T.cwd||process.cwd()),this.strict=!!T.strict,this.noPax=!!T.noPax,this.noMtime=!!T.noMtime,this.mtime=T.mtime||null,this.prefix=T.prefix?s(T.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof T.onwarn=="function"&&this.on("warn",T.onwarn);let Y=!1;if(!this.preservePaths){let[U,Q]=L(this.path);U&&(this.path=Q,Y=U)}this.win32=!!T.win32||process.platform==="win32",this.win32&&(this.path=k.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(T.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),Y&&this.warn("TAR_ENTRY_INFO",`stripping ${Y} from absolute path`,{entry:this,path:Y+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...T){return M==="error"&&(this[O]=!0),super.emit(M,...T)}[g](){c.lstat(this.absolute,(M,T)=>{if(M)return this.emit("error",M);this[S](T)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=B(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return I(M,this.type==="Directory",this.portable)}[F](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,mode:this[x](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){c.readlink(this.absolute,(M,T)=>{if(M)return this.emit("error",M);this[v](T)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let T=this.linkCache.get(M);if(T.indexOf(this.cwd)===0)return this[y](T)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,T)=>{if(M)return this.emit("error",M);this[w](T)})}[w](M){if(this.fd=M,this[O])return this[A]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let T=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(T),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:M,buf:T,offset:Y,length:U,pos:Q}=this;c.read(M,T,Y,U,Q,(N,W)=>{if(N)return this[A](()=>this.emit("error",N));this[E](W)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let Y=new Error("encountered unexpected EOF");return Y.path=this.absolute,Y.syscall="read",Y.code="EOF",this[A](()=>this.emit("error",Y))}if(M>this.remain){let Y=new Error("did not encounter expected EOF");return Y.path=this.absolute,Y.syscall="read",Y.code="EOF",this[A](()=>this.emit("error",Y))}if(M===this.remain)for(let Y=M;Y<this.length&&M<this.blockRemain;Y++)this.buf[Y+this.offset]=0,M++,this.remain++;let T=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(T)?this[P]():this[R](()=>this[P]())}[R](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let T=new Error("writing more data than expected");return T.path=this.absolute,this.emit("error",T)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[P](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](M=>M?this.emit("error",M):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),z=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:T,buf:Y,offset:U,length:Q,pos:N}=this,W=c.readSync(T,Y,U,Q,N);this[E](W),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[R](M){M()}[A](M){c.closeSync(this.fd),M()}},re=D(class extends t{constructor(M,T){T=T||{},super(T),this.preservePaths=!!T.preservePaths,this.portable=!!T.portable,this.strict=!!T.strict,this.noPax=!!T.noPax,this.noMtime=!!T.noMtime,this.readEntry=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=T.prefix||null,this.path=s(M.path),this.mode=this[x](M.mode),this.uid=this.portable?null:M.uid,this.gid=this.portable?null:M.gid,this.uname=this.portable?null:M.uname,this.gname=this.portable?null:M.gname,this.size=M.size,this.mtime=this.noMtime?null:T.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof T.onwarn=="function"&&this.on("warn",T.onwarn);let Y=!1;if(!this.preservePaths){let[U,Q]=L(this.path);U&&(this.path=Q,Y=U)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),Y&&this.warn("TAR_ENTRY_INFO",`stripping ${Y} from absolute path`,{entry:this,path:Y+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),M.pipe(this)}[F](M){return f(M,this.prefix)}[x](M){return I(M,this.type==="Directory",this.portable)}write(M){let T=M.length;if(T>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=T,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=z,H.Tar=re;var B=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),px=te((e,r)=>{"use strict";Z(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),wm=te((e,r)=>{"use strict";Z(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{px()(t)}catch{}}),Lu=te((e,r)=>{"use strict";Z();var t=class{constructor(B,M){this.path=B||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=Fu(),i=ym(),c=Pu(),a=_m(),s=a.Sync,o=a.Tar,f=wm(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),R=Symbol("entry"),P=Symbol("entryOpt"),F=Symbol("writeEntryClass"),O=Symbol("write"),D=Symbol("ondrain"),k=ce("fs"),L=ce("path"),I=Iu(),H=Xn(),z=I(class extends n{constructor(B){super(B),B=B||Object.create(null),this.opt=B,this.file=B.file||"",this.cwd=B.cwd||process.cwd(),this.maxReadSize=B.maxReadSize,this.preservePaths=!!B.preservePaths,this.strict=!!B.strict,this.noPax=!!B.noPax,this.prefix=H(B.prefix||""),this.linkCache=B.linkCache||new Map,this.statCache=B.statCache||new Map,this.readdirCache=B.readdirCache||new Map,this[F]=a,typeof B.onwarn=="function"&&this.on("warn",B.onwarn),this.portable=!!B.portable,this.zip=null,B.gzip?(typeof B.gzip!="object"&&(B.gzip={}),this.portable&&(B.gzip.portable=!0),this.zip=new i.Gzip(B.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[D]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[D]),this.noDirRecurse=!!B.noDirRecurse,this.follow=!!B.follow,this.noMtime=!!B.noMtime,this.mtime=B.mtime||null,this.filter=typeof B.filter=="function"?B.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+B.jobs||4,this[b]=!1,this[u]=!1}[O](B){return super.write(B)}add(B){return this.write(B),this}end(B){return B&&this.write(B),this[u]=!0,this[y](),this}write(B){if(this[u])throw new Error("write after end");return B instanceof c?this[v](B):this[E](B),this.flowing}[v](B){let M=H(L.resolve(this.cwd,B.path));if(!this.filter(B.path,B))B.resume();else{let T=new t(B.path,M,!1);T.entry=new o(B,this[P](T)),T.entry.on("end",Y=>this[S](T)),this[g]+=1,this[d].push(T)}this[y]()}[E](B){let M=H(L.resolve(this.cwd,B));this[d].push(new t(B,M)),this[y]()}[m](B){B.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";k[M](B.absolute,(T,Y)=>{B.pending=!1,this[g]-=1,T?this.emit("error",T):this[h](B,Y)})}[h](B,M){this.statCache.set(B.absolute,M),B.stat=M,this.filter(B.path,M)||(B.ignore=!0),this[y]()}[w](B){B.pending=!0,this[g]+=1,k.readdir(B.absolute,(M,T)=>{if(B.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](B,T)})}[A](B,M){this.readdirCache.set(B.absolute,M),B.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let B=this[d].head;B!==null&&this[g]<this.jobs;B=B.next)if(this[_](B.value),B.value.ignore){let M=B.next;this[d].removeNode(B),B.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](B){this[d].shift(),this[g]-=1,this[y]()}[_](B){if(!B.pending){if(B.entry){B===this[p]&&!B.piped&&this[x](B);return}if(B.stat||(this.statCache.has(B.absolute)?this[h](B,this.statCache.get(B.absolute)):this[m](B)),!!B.stat&&!B.ignore&&!(!this.noDirRecurse&&B.stat.isDirectory()&&!B.readdir&&(this.readdirCache.has(B.absolute)?this[A](B,this.readdirCache.get(B.absolute)):this[w](B),!B.readdir))){if(B.entry=this[R](B),!B.entry){B.ignore=!0;return}B===this[p]&&!B.piped&&this[x](B)}}}[P](B){return{onwarn:(M,T,Y)=>this.warn(M,T,Y),noPax:this.noPax,cwd:this.cwd,absolute:B.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[R](B){this[g]+=1;try{return new this[F](B.path,this[P](B)).on("end",()=>this[S](B)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[D](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](B){B.piped=!0,B.readdir&&B.readdir.forEach(Y=>{let U=B.path,Q=U==="./"?"":U.replace(/\/*$/,"/");this[E](Q+Y)});let M=B.entry,T=this.zip;T?M.on("data",Y=>{T.write(Y)||M.pause()}):M.on("data",Y=>{super.write(Y)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),re=class extends z{constructor(B){super(B),this[F]=s}pause(){}resume(){}[m](B){let M=this.follow?"statSync":"lstatSync";this[h](B,k[M](B.absolute))}[w](B,M){this[A](B,k.readdirSync(B.absolute))}[x](B){let M=B.entry,T=this.zip;B.readdir&&B.readdir.forEach(Y=>{let U=B.path,Q=U==="./"?"":U.replace(/\/*$/,"/");this[E](Q+Y)}),T?M.on("data",Y=>{T.write(Y)}):M.on("data",Y=>{super[O](Y)})}};z.Sync=re,r.exports=z}),Qn=te(e=>{"use strict";Z();var r=dm(),t=ce("events").EventEmitter,n=ce("fs"),i=n.writev;if(!i){let B=process.binding("fs"),M=B.FSReqWrap||B.FSReqCallback;i=(T,Y,U,Q)=>{let N=(J,ae)=>Q(J,ae,Y),W=new M;W.oncomplete=N,B.writeBuffers(T,Y,U,W)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),R=Symbol("_reading"),P=Symbol("_remain"),F=Symbol("_size"),O=Symbol("_write"),D=Symbol("_writing"),k=Symbol("_defaultFlag"),L=Symbol("_errored"),I=class extends r{constructor(B,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof B!="string")throw new TypeError("path must be a string");this[L]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=B,this[x]=M.readSize||16*1024*1024,this[R]=!1,this[F]=typeof M.size=="number"?M.size:1/0,this[P]=this[F],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(B,M)=>this[_](B,M))}[_](B,M){B?this[b](B):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[P]))}[A](){if(!this[R]){this[R]=!0;let B=this[d]();if(B.length===0)return process.nextTick(()=>this[g](null,0,B));n.read(this[o],B,0,B.length,null,(M,T,Y)=>this[g](M,T,Y))}}[g](B,M,T){this[R]=!1,B?this[b](B):this[u](M,T)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.close(B,M=>M?this.emit("error",M):this.emit("close"))}}[b](B){this[R]=!0,this[a](),this.emit("error",B)}[u](B,M){let T=!1;return this[P]-=B,B>0&&(T=super.write(B<M.length?M.slice(0,B):M)),(B===0||this[P]<=0)&&(T=!1,this[a](),super.end()),T}emit(B,M){switch(B){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[L]?void 0:(this[L]=!0,super.emit(B,M));default:return super.emit(B,M)}}},H=class extends I{[E](){let B=!0;try{this[_](null,n.openSync(this[v],"r")),B=!1}finally{B&&this[a]()}}[A](){let B=!0;try{if(!this[R]){this[R]=!0;do{let M=this[d](),T=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](T,M))break}while(!0);this[R]=!1}B=!1}finally{B&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.closeSync(B),this.emit("close")}}},z=class extends t{constructor(B,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[L]=!1,this[D]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=B,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let T=this[m]!==null?"r+":"w";this[k]=M.flags===void 0,this[l]=this[k]?T:M.flags,this[o]===null&&this[E]()}emit(B,M){if(B==="error"){if(this[L])return;this[L]=!0}return super.emit(B,M)}get fd(){return this[o]}get path(){return this[v]}[b](B){this[a](),this[D]=!0,this.emit("error",B)}[E](){n.open(this[v],this[l],this[p],(B,M)=>this[_](B,M))}[_](B,M){this[k]&&this[l]==="r+"&&B&&B.code==="ENOENT"?(this[l]="w",this[E]()):B?this[b](B):(this[o]=M,this.emit("open",M),this[h]())}end(B,M){return B&&this.write(B,M),this[s]=!0,!this[D]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(B,M){return typeof B=="string"&&(B=Buffer.from(B,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[D]||this[w].length?(this[w].push(B),this[y]=!0,!1):(this[D]=!0,this[O](B),!0)}[O](B){n.write(this[o],B,0,B.length,this[m],(M,T)=>this[S](M,T))}[S](B,M){B?this[b](B):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[D]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[O](this[w].pop());else{let B=this[w];this[w]=[],i(this[o],B,this[m],(M,T)=>this[S](M,T))}}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.close(B,M=>M?this.emit("error",M):this.emit("close"))}}},re=class extends z{[E](){let B;if(this[k]&&this[l]==="r+")try{B=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else B=n.openSync(this[v],this[l],this[p]);this[_](null,B)}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.closeSync(B),this.emit("close")}}[O](B){let M=!0;try{this[S](null,n.writeSync(this[o],B,0,B.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=I,e.ReadStreamSync=H,e.WriteStream=z,e.WriteStreamSync=re}),Mu=te((e,r)=>{"use strict";Z();var t=Iu(),n=Zn(),i=ce("events"),c=wm(),a=1024*1024,s=Pu(),o=Bu(),f=ym(),{nextTick:l}=ce("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),R=Symbol("unzip"),P=Symbol("consumeChunk"),F=Symbol("consumeChunkSub"),O=Symbol("consumeBody"),D=Symbol("consumeMeta"),k=Symbol("consumeHeader"),L=Symbol("consuming"),I=Symbol("bufferConcat"),H=Symbol("maybeEnd"),z=Symbol("writing"),re=Symbol("aborted"),B=Symbol("onDone"),M=Symbol("sawValidEntry"),T=Symbol("sawNullBlock"),Y=Symbol("sawEOF"),U=Symbol("closeStream"),Q=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(B,W=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(B,N.ondone):this.on(B,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Q,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[R]=null,this[re]=!1,this[T]=!1,this[Y]=!1,this.on("end",()=>this[U]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[k](N,W){this[M]===null&&(this[M]=!1);let J;try{J=new n(N,W,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(J.nullBlock)this[T]?(this[Y]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[T]=!0,this[x]("nullBlock"));else if(this[T]=!1,!J.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:J});else if(!J.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:J});else{let ae=J.type;if(/^(Symbolic)?Link$/.test(ae)&&!J.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:J});else if(!/^(Symbolic)?Link$/.test(ae)&&J.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:J});else{let oe=this[d]=new s(J,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[U](){l(()=>this.emit("close"))}[b](N){let W=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",J=>this[y]()),W=!1)):(this[p]=null,W=!1),W}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[z]||this.emit("drain"):N.once("drain",W=>this.emit("drain"))}}[O](N,W){let J=this[d],ae=J.blockRemain,oe=ae>=N.length&&W===0?N:N.slice(W,W+ae);return J.write(oe),J.blockRemain||(this[u]="header",this[d]=null,J.end()),oe.length}[D](N,W){let J=this[d],ae=this[O](N,W);return this[d]||this[E](J),ae}[x](N,W,J){!this[m].length&&!this[p]?this.emit(N,W,J):this[m].push([N,W,J])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[re]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[re])return;if(this[R]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let J=0;this[R]===null&&J<h.length;J++)N[J]!==h[J]&&(this[R]=!1);if(this[R]===null){let J=this[w];this[w]=!1,this[R]=new f.Unzip,this[R].on("data",oe=>this[P](oe)),this[R].on("error",oe=>this.abort(oe)),this[R].on("end",oe=>{this[w]=!0,this[P]()}),this[z]=!0;let ae=this[R][J?"end":"write"](N);return this[z]=!1,ae}}this[z]=!0,this[R]?this[R].write(N):this[P](N),this[z]=!1;let W=this[m].length?!1:this[p]?this[p].flowing:!0;return!W&&!this[m].length&&this[p].once("drain",J=>this.emit("drain")),W}[I](N){N&&!this[re]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[re]&&!this[L]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${W} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](B)}}[P](N){if(this[L])this[I](N);else if(!N&&!this[v])this[H]();else{if(this[L]=!0,this[v]){this[I](N);let W=this[v];this[v]=null,this[F](W)}else this[F](N);for(;this[v]&&this[v].length>=512&&!this[re]&&!this[Y];){let W=this[v];this[v]=null,this[F](W)}this[L]=!1}(!this[v]||this[w])&&this[H]()}[F](N){let W=0,J=N.length;for(;W+512<=J&&!this[re]&&!this[Y];)switch(this[u]){case"begin":case"header":this[k](N,W),W+=512;break;case"ignore":case"body":W+=this[O](N,W);break;case"meta":W+=this[D](N,W);break;default:throw new Error("invalid state: "+this[u])}W<J&&(this[v]?this[v]=Buffer.concat([N.slice(W),this[v]]):this[v]=N.slice(W))}end(N){this[re]||(this[R]?this[R].end(N):(this[w]=!0,this.write(N)))}})}),Nu=te((e,r)=>{"use strict";Z();var t=Kn(),n=Mu(),i=ce("fs"),c=Qn(),a=ce("path"),s=Jn();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),dx=te((e,r)=>{"use strict";Z();var t=Kn(),n=Lu(),i=Qn(),c=Nu(),a=ce("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),Em=te((e,r)=>{"use strict";Z();var t=Kn(),n=Lu(),i=ce("fs"),c=Qn(),a=Nu(),s=ce("path"),o=Zn();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(F,O)=>{F?i.close(E,D=>m(F)):m(null,O)},A=0;if(v===0)return w(null,0);let x=0,R=Buffer.alloc(512),P=(F,O)=>{if(F)return w(F);if(x+=O,x<512&&O)return i.read(E,R,x,R.length-x,A+x,P);if(A===0&&R[0]===31&&R[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let D=new o(R);if(!D.cksumValid)return w(null,A);let k=512*Math.ceil(D.size/512);if(A+k+512>v||(A+=k+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(D.path,D.mtime),x=0,i.read(E,R,0,512,A,P)};i.read(E,R,0,512,A,P)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(R,P)=>{if(R)return i.close(x,()=>v(R));g(x,P.size,(F,O)=>{if(F)return v(F);let D=new c.WriteStream(p.file,{fd:x,start:O});_.pipe(D),D.on("error",v),D.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),mx=te((e,r)=>{"use strict";Z();var t=Kn(),n=Em();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),yx=te((e,r)=>{Z();var{promisify:t}=ce("util"),n=ce("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),gx=te((e,r)=>{Z();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=ce("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),bx=te((e,r)=>{Z();var{dirname:t}=ce("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),Sm=te((e,r)=>{Z();var{dirname:t}=ce("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),vx=te((e,r)=>{Z();var{dirname:t}=ce("path"),{findMade:n,findMadeSync:i}=bx(),{mkdirpManual:c,mkdirpManualSync:a}=Sm(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),_x=te((e,r)=>{Z();var t=ce("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),wx=te((e,r)=>{Z();var t=yx(),n=gx(),{mkdirpNative:i,mkdirpNativeSync:c}=vx(),{mkdirpManual:a,mkdirpManualSync:s}=Sm(),{useNative:o,useNativeSync:f}=_x(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),Ex=te((e,r)=>{"use strict";Z();var t=ce("fs"),n=ce("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,R=null,P=F=>{if(!R){if(F)return m(R=F);if(--x===0)return p(S,E,v,m)}};A.forEach(F=>y(S,F,E,v,P))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),Sx=te((e,r)=>{"use strict";Z();var t=wx(),n=ce("fs"),i=ce("path"),c=Ex(),a=Xn(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,R=b.cache,P=a(b.cwd),F=(D,k)=>{D?_(D):(l(R,y,!0),k&&w?c(k,v,m,L=>F(L)):E?n.chmod(y,S,_):_())};if(R&&f(R,y)===!0)return F();if(y===P)return h(y,F);if(A)return t(y,{mode:S}).then(D=>F(null,D),F);let O=a(i.relative(P,y)).split("/");u(P,O,S,R,x,P,null,F)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,R=>{if(R)return m(R);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,R=a(b.cwd),P=D=>{l(x,y,!0),D&&m&&c.sync(D,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return P();if(y===R)return p(R),P();if(w)return P(t.sync(y,g));let F=a(i.relative(R,y)).split("/"),O=null;for(let D=F.shift(),k=R;D&&(k+="/"+D);D=F.shift())if(k=a(i.resolve(k)),!f(x,k))try{n.mkdirSync(k,g),O=O||k,l(x,k,!0)}catch{let L=n.lstatSync(k);if(L.isDirectory()){l(x,k,!0);continue}else if(A){n.unlinkSync(k),n.mkdirSync(k,g),O=O||k,l(x,k,!0);continue}else if(L.isSymbolicLink())return new s(k,k+"/"+F.join("/"))}return P(O)}}),Am=te((e,r)=>{Z();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),Ax=te((e,r)=>{Z();var t=ce("assert"),n=Am(),i=Jn(),{join:c}=ce("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),xx=te((e,r)=>{Z();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||ce("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),xm=te((e,r)=>{"use strict";Z();var t=ce("assert"),n=Mu(),i=ce("fs"),c=Qn(),a=ce("path"),s=Sx(),o=bm(),f=Ax(),l=vm(),h=Xn(),u=Jn(),d=Am(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),R=Symbol("checkPath"),P=Symbol("mkdir"),F=Symbol("onError"),O=Symbol("pending"),D=Symbol("pend"),k=Symbol("unpend"),L=Symbol("ended"),I=Symbol("maybeClose"),H=Symbol("skip"),z=Symbol("doChown"),re=Symbol("uid"),B=Symbol("gid"),M=Symbol("checkedCwd"),T=ce("crypto"),Y=xx(),U=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Q=U==="win32",N=(C,q)=>{if(!Q)return i.unlink(C,q);let X=C+".DELETE."+T.randomBytes(16).toString("hex");i.rename(C,X,ne=>{if(ne)return q(ne);i.unlink(X,q)})},W=C=>{if(!Q)return i.unlinkSync(C);let q=C+".DELETE."+T.randomBytes(16).toString("hex");i.renameSync(C,q),i.unlinkSync(q)},J=(C,q,X)=>C===C>>>0?C:q===q>>>0?q:X,ae=C=>d(u(h(C))).toLowerCase(),oe=(C,q)=>{q=ae(q);for(let X of C.keys()){let ne=ae(X);(ne===q||ne.indexOf(q+"/")===0)&&C.delete(X)}},de=C=>{for(let q of C.keys())C.delete(q)},pe=class extends n{constructor(C){if(C||(C={}),C.ondone=q=>{this[L]=!0,this[I]()},super(C),this[M]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[O]=0,this[L]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||Q,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=h(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",q=>this[p](q))}warn(C,q,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,q,X)}[I](){this[L]&&this[O]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[R](C){if(this.strip){let q=h(C.path).split("/");if(q.length<this.strip)return!1;if(C.path=q.slice(this.strip).join("/"),C.type==="Link"){let X=h(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let q=h(C.path),X=q.split("/");if(X.includes("..")||Q&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:q}),!1;let[ne,me]=l(q);ne&&(C.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:C,path:q}))}if(a.isAbsolute(C.path)?C.absolute=h(a.resolve(C.path)):C.absolute=h(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:h(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:q}=a.win32.parse(C.absolute);C.absolute=q+o.encode(C.absolute.slice(q.length));let{root:X}=a.win32.parse(C.path);C.path=X+o.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[R](C))return C.resume();switch(t.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](C)}}[F](C,q){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:q}),this[k](),q.resume())}[P](C,q,X){s(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:q,noChmod:this.noChmod},X)}[z](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[re](C){return J(this.uid,C.uid,this.processUid)}[B](C){return J(this.gid,C.gid,this.processGid)}[E](C,q){let X=C.mode&4095||this.fmode,ne=new c.WriteStream(C.absolute,{flags:Y(C.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[F](ie,C),q()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[F](ie,C),q();return}--me===0&&i.close(ne.fd,ye=>{ye?this[F](ye,C):this[k](),q()})};ne.on("finish",ie=>{let ye=C.absolute,we=ne.fd;if(C.mtime&&!this.noMtime){me++;let xe=C.atime||new Date,V=C.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[z](C)){me++;let xe=this[re](C),V=this[B](C);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(C)||C;fe!==C&&(fe.on("error",ie=>{this[F](ie,C),q()}),C.pipe(fe)),fe.pipe(ne)}[v](C,q){let X=C.mode&4095||this.dmode;this[P](C.absolute,X,ne=>{if(ne){this[F](ne,C),q();return}let me=1,se=fe=>{--me===0&&(q(),this[k](),C.resume())};C.mtime&&!this.noMtime&&(me++,i.utimes(C.absolute,C.atime||new Date,C.mtime,se)),this[z](C)&&(me++,i.chown(C.absolute,this[re](C),this[B](C),se)),se()})}[x](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[w](C,q){this[m](C,C.linkpath,"symlink",q)}[A](C,q){let X=h(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",q)}[D](){this[O]++}[k](){this[O]--,this[I]()}[H](C){this[k](),C.resume()}[g](C,q){return C.type==="File"&&!this.unlink&&q.isFile()&&q.nlink<=1&&!Q}[y](C){this[D]();let q=[C.path];C.linkpath&&q.push(C.linkpath),this.reservations.reserve(q,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?de(this.dirCache):C.type!=="Directory"&&oe(this.dirCache,C.absolute)}[b](C,q){this[_](C);let X=fe=>{this[_](C),q(fe)},ne=()=>{this[P](this.cwd,this.dmode,fe=>{if(fe){this[F](fe,C),X();return}this[M]=!0,me()})},me=()=>{if(C.absolute!==this.cwd){let fe=h(a.dirname(C.absolute));if(fe!==this.cwd)return this[P](fe,this.dmode,ie=>{if(ie){this[F](ie,C),X();return}se()})}se()},se=()=>{i.lstat(C.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>C.mtime)){this[H](C),X();return}if(fe||this[g](C,ie))return this[S](null,C,X);if(ie.isDirectory()){if(C.type==="Directory"){let ye=!this.noChmod&&C.mode&&(ie.mode&4095)!==C.mode,we=xe=>this[S](xe,C,X);return ye?i.chmod(C.absolute,C.mode,we):we()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ye=>this[S](ye,C,X))}if(C.absolute===this.cwd)return this[S](null,C,X);N(C.absolute,ye=>this[S](ye,C,X))})};this[M]?me():ne()}[S](C,q,X){if(C){this[F](C,q),X();return}switch(q.type){case"File":case"OldFile":case"ContiguousFile":return this[E](q,X);case"Link":return this[A](q,X);case"SymbolicLink":return this[w](q,X);case"Directory":case"GNUDumpDir":return this[v](q,X)}}[m](C,q,X,ne){i[X](q,C.absolute,me=>{me?this[F](me,C):(this[k](),C.resume()),ne()})}},j=C=>{try{return[null,C()]}catch(q){return[q,null]}},G=class extends pe{[S](C,q){return super[S](C,q,()=>{})}[y](C){if(this[_](C),!this[M]){let me=this[P](this.cwd,this.dmode);if(me)return this[F](me,C);this[M]=!0}if(C.absolute!==this.cwd){let me=h(a.dirname(C.absolute));if(me!==this.cwd){let se=this[P](me,this.dmode);if(se)return this[F](se,C)}}let[q,X]=j(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[H](C);if(q||this[g](C,X))return this[S](null,C);if(X.isDirectory()){if(C.type==="Directory"){let se=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[fe]=se?j(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[S](fe,C)}let[me]=j(()=>i.rmdirSync(C.absolute));this[S](me,C)}let[ne]=C.absolute===this.cwd?[]:j(()=>W(C.absolute));this[S](ne,C)}[E](C,q){let X=C.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[F](fe||ie,C),q()},me;try{me=i.openSync(C.absolute,Y(C.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(C)||C;se!==C&&(se.on("error",fe=>this[F](fe,C)),C.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(C.mtime&&!this.noMtime){let ye=C.atime||new Date,we=C.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(C.absolute,ye,we)}catch{ie=xe}}}if(this[z](C)){let ye=this[re](C),we=this[B](C);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(C.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](C,q){let X=C.mode&4095||this.dmode,ne=this[P](C.absolute,X);if(ne){this[F](ne,C),q();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[z](C))try{i.chownSync(C.absolute,this[re](C),this[B](C))}catch{}q(),C.resume()}[P](C,q){try{return s.sync(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:q})}catch(X){return X}}[m](C,q,X,ne){try{i[X+"Sync"](q,C.absolute),ne(),C.resume()}catch(me){return this[F](me,C)}}};pe.Sync=G,r.exports=pe}),Cx=te((e,r)=>{"use strict";Z();var t=Kn(),n=xm(),i=ce("fs"),c=Qn(),a=ce("path"),s=Jn();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),kx=te(e=>{"use strict";Z(),e.c=e.create=dx(),e.r=e.replace=Em(),e.t=e.list=Nu(),e.u=e.update=mx(),e.x=e.extract=Cx(),e.Pack=Lu(),e.Unpack=xm(),e.Parse=Mu(),e.ReadEntry=Pu(),e.WriteEntry=_m(),e.Header=Zn(),e.Pax=Bu(),e.types=gm()});Z();var v4=Je(lx()),_4=Je(kx()),w4=(0,tm.promisify)(em.Stream.pipeline),Dx=te((e,r)=>{Z();var t=ce("constants"),n=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(o){i=null,a.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=s;function s(o){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=h(o.chmod),o.fchmod=h(o.fchmod),o.lchmod=h(o.lchmod),o.chownSync=p(o.chownSync),o.fchownSync=p(o.fchownSync),o.lchownSync=p(o.lchownSync),o.chmodSync=u(o.chmodSync),o.fchmodSync=u(o.fchmodSync),o.lchmodSync=u(o.lchmodSync),o.stat=y(o.stat),o.fstat=y(o.fstat),o.lstat=y(o.lstat),o.statSync=b(o.statSync),o.fstatSync=b(o.fstatSync),o.lstatSync=b(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(g,S,E){E&&process.nextTick(E)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(g,S,E,v){v&&process.nextTick(v)},o.lchownSync=function(){}),c==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(g){function S(E,v,m){var w=Date.now(),A=0;g(E,v,function x(R){if(R&&(R.code==="EACCES"||R.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){o.stat(v,function(P,F){P&&P.code==="ENOENT"?g(E,v,x):m(R)})},A),A<100&&(A+=10);return}m&&m(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.rename)),o.read=typeof o.read!="function"?o.read:function(g){function S(E,v,m,w,A,x){var R;if(x&&typeof x=="function"){var P=0;R=function(F,O,D){if(F&&F.code==="EAGAIN"&&P<10)return P++,g.call(o,E,v,m,w,A,R);x.apply(this,arguments)}}return g.call(o,E,v,m,w,A,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(g){return function(S,E,v,m,w){for(var A=0;;)try{return g.call(o,S,E,v,m,w)}catch(x){if(x.code==="EAGAIN"&&A<10){A++;continue}throw x}}}(o.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(A){g.close(w,function(x){v&&v(A||x)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function l(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,A){if(w){m&&m(w);return}g.futimes(A,E,v,function(x){g.close(A,function(R){m&&m(x||R)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,A=!0;try{w=g.futimesSync(m,E,v),A=!1}finally{if(A)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(o,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(o,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(o,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(o,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(o,S,E,m):g.call(o,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(o,S,E):g.call(o,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),Rx=te((e,r)=>{Z();var t=ce("stream").Stream;r.exports=n;function n(i){return{ReadStream:c,WriteStream:a};function c(s,o){if(!(this instanceof c))return new c(s,o);t.call(this);var f=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),h=0,u=l.length;h<u;h++){var d=l[h];this[d]=o[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(s,o){if(!(this instanceof a))return new a(s,o);t.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var f=Object.keys(o),l=0,h=f.length;l<h;l++){var u=f[l];this[u]=o[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),Ox=te((e,r)=>{"use strict";Z(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var c={__proto__:t(i)};else var c=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(i,a))}),c}}),Ne=te((e,r)=>{Z();var t=ce("fs"),n=Dx(),i=Rx(),c=Ox(),a=ce("util"),s,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",o="___graceful-fs.previous");function f(){}function l(g,S){Object.defineProperty(g,s,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
|
66
|
+
GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,o,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,o,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[s]),ce("assert").equal(t[s].length,0)}));var u;global[s]||l(global,t[s]),r.exports=d(c(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=T,g.createWriteStream=Y;var S=g.readFile;g.readFile=E;function E(N,W,J){return typeof W=="function"&&(J=W,W=null),ae(N,W,J);function ae(oe,de,pe,j){return S(oe,de,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?p([ae,[oe,de,pe],G,j||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(N,W,J,ae){return typeof J=="function"&&(ae=J,J=null),oe(N,W,J,ae);function oe(de,pe,j,G,C){return v(de,pe,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=A);function A(N,W,J,ae){return typeof J=="function"&&(ae=J,J=null),oe(N,W,J,ae);function oe(de,pe,j,G,C){return w(de,pe,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var x=g.copyFile;x&&(g.copyFile=R);function R(N,W,J,ae){return typeof J=="function"&&(ae=J,J=0),oe(N,W,J,ae);function oe(de,pe,j,G,C){return x(de,pe,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var P=g.readdir;g.readdir=O;var F=/^v[0-5]\./;function O(N,W,J){typeof W=="function"&&(J=W,W=null);var ae=F.test(process.version)?function(de,pe,j,G){return P(de,oe(de,pe,j,G))}:function(de,pe,j,G){return P(de,pe,oe(de,pe,j,G))};return ae(N,W,J);function oe(de,pe,j,G){return function(C,q){C&&(C.code==="EMFILE"||C.code==="ENFILE")?p([ae,[de,pe,j],C,G||Date.now(),Date.now()]):(q&&q.sort&&q.sort(),typeof j=="function"&&j.call(this,C,q))}}}if(process.version.substr(0,4)==="v0.8"){var D=i(g);z=D.ReadStream,B=D.WriteStream}var k=g.ReadStream;k&&(z.prototype=Object.create(k.prototype),z.prototype.open=re);var L=g.WriteStream;L&&(B.prototype=Object.create(L.prototype),B.prototype.open=M),Object.defineProperty(g,"ReadStream",{get:function(){return z},set:function(N){z=N},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return B},set:function(N){B=N},enumerable:!0,configurable:!0});var I=z;Object.defineProperty(g,"FileReadStream",{get:function(){return I},set:function(N){I=N},enumerable:!0,configurable:!0});var H=B;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(N){H=N},enumerable:!0,configurable:!0});function z(N,W){return this instanceof z?(k.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function re(){var N=this;Q(N.path,N.flags,N.mode,function(W,J){W?(N.autoClose&&N.destroy(),N.emit("error",W)):(N.fd=J,N.emit("open",J),N.read())})}function B(N,W){return this instanceof B?(L.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function M(){var N=this;Q(N.path,N.flags,N.mode,function(W,J){W?(N.destroy(),N.emit("error",W)):(N.fd=J,N.emit("open",J))})}function T(N,W){return new g.ReadStream(N,W)}function Y(N,W){return new g.WriteStream(N,W)}var U=g.open;g.open=Q;function Q(N,W,J,ae){return typeof J=="function"&&(ae=J,J=null),oe(N,W,J,ae);function oe(de,pe,j,G,C){return U(de,pe,j,function(q,X){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[s].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[s].length;++S)t[s][S].length>2&&(t[s][S][3]=g,t[s][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[s].length!==0){var g=t[s].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var A=E.pop();typeof A=="function"&&A.call(null,v)}else{var x=Date.now()-w,R=Math.max(w-m,1),P=Math.min(R*1.2,100);x>=P?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[s].push(g)}y===void 0&&(y=setTimeout(_,0))}}}),yt=te(e=>{"use strict";Z(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(c,a)=>c!=null?i(c):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),fn=te(e=>{"use strict";Z();var r=yt().fromCallback,t=Ne(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},e.readv=function(i,c,...a){return typeof a[a.length-1]=="function"?t.readv(i,c,...a):new Promise((s,o)=>{t.readv(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesRead:l,buffers:h})})})},e.writev=function(i,c,...a){return typeof a[a.length-1]=="function"?t.writev(i,c,...a):new Promise((s,o)=>{t.writev(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),Tx=te((e,r)=>{"use strict";Z();var t=ce("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),Fx=te((e,r)=>{"use strict";Z();var t=fn(),{checkPath:n}=Tx(),i=c=>typeof c=="number"?c:{mode:511,...c}.mode;r.exports.makeDir=async(c,a)=>(n(c),t.mkdir(c,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(c,a)=>(n(c),t.mkdirSync(c,{mode:i(a),recursive:!0}))}),Mt=te((e,r)=>{"use strict";Z();var t=yt().fromPromise,{makeDir:n,makeDirSync:i}=Fx(),c=t(n);r.exports={mkdirs:c,mkdirsSync:i,mkdirp:c,mkdirpSync:i,ensureDir:c,ensureDirSync:i}}),Dr=te((e,r)=>{"use strict";Z();var t=yt().fromPromise,n=fn();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),Cm=te((e,r)=>{"use strict";Z();var t=Ne();function n(c,a,s,o){t.open(c,"r+",(f,l)=>{if(f)return o(f);t.futimes(l,a,s,h=>{t.close(l,u=>{o&&o(h||u)})})})}function i(c,a,s){let o=t.openSync(c,"r+");return t.futimesSync(o,a,s),t.closeSync(o)}r.exports={utimesMillis:n,utimesMillisSync:i}}),pn=te((e,r)=>{"use strict";Z();var t=fn(),n=ce("path"),i=ce("util");function c(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function s(p,y,b,_,g){i.callbackify(c)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),A=n.basename(y);return b==="move"&&w!==A&&w.toLowerCase()===A.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function o(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function l(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return l(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:s,checkPathsSync:o,checkParentPaths:f,checkParentPathsSync:l,isSrcSubdir:u,areIdentical:h}}),Px=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Mt().mkdirs,c=Dr().pathExists,a=Cm().utimesMillis,s=pn();function o(F,O,D,k){typeof D=="function"&&!k?(k=D,D={}):typeof D=="function"&&(D={filter:D}),k=k||function(){},D=D||{},D.clobber="clobber"in D?!!D.clobber:!0,D.overwrite="overwrite"in D?!!D.overwrite:D.clobber,D.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
67
|
+
|
68
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),s.checkPaths(F,O,"copy",D,(L,I)=>{if(L)return k(L);let{srcStat:H,destStat:z}=I;s.checkParentPaths(F,H,O,"copy",re=>{if(re)return k(re);l(F,O,D,(B,M)=>{if(B)return k(B);if(!M)return k();f(z,F,O,D,k)})})})}function f(F,O,D,k,L){let I=n.dirname(D);c(I,(H,z)=>{if(H)return L(H);if(z)return h(F,O,D,k,L);i(I,re=>re?L(re):h(F,O,D,k,L))})}function l(F,O,D,k){if(!D.filter)return k(null,!0);Promise.resolve(D.filter(F,O)).then(L=>k(null,L),L=>k(L))}function h(F,O,D,k,L){(k.dereference?t.stat:t.lstat)(O,(I,H)=>I?L(I):H.isDirectory()?v(H,F,O,D,k,L):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,F,O,D,k,L):H.isSymbolicLink()?R(F,O,D,k,L):H.isSocket()?L(new Error(`Cannot copy a socket file: ${O}`)):H.isFIFO()?L(new Error(`Cannot copy a FIFO pipe: ${O}`)):L(new Error(`Unknown file: ${O}`)))}function u(F,O,D,k,L,I){return O?d(F,D,k,L,I):p(F,D,k,L,I)}function d(F,O,D,k,L){if(k.overwrite)t.unlink(D,I=>I?L(I):p(F,O,D,k,L));else return k.errorOnExist?L(new Error(`'${D}' already exists`)):L()}function p(F,O,D,k,L){t.copyFile(O,D,I=>I?L(I):k.preserveTimestamps?y(F.mode,O,D,L):S(D,F.mode,L))}function y(F,O,D,k){return b(F)?_(D,F,L=>L?k(L):g(F,O,D,k)):g(F,O,D,k)}function b(F){return(F&128)===0}function _(F,O,D){return S(F,O|128,D)}function g(F,O,D,k){E(O,D,L=>L?k(L):S(D,F,k))}function S(F,O,D){return t.chmod(F,O,D)}function E(F,O,D){t.stat(F,(k,L)=>k?D(k):a(O,L.atime,L.mtime,D))}function v(F,O,D,k,L,I){return O?w(D,k,L,I):m(F.mode,D,k,L,I)}function m(F,O,D,k,L){t.mkdir(D,I=>{if(I)return L(I);w(O,D,k,H=>H?L(H):S(D,F,L))})}function w(F,O,D,k){t.readdir(F,(L,I)=>L?k(L):A(I,F,O,D,k))}function A(F,O,D,k,L){let I=F.pop();return I?x(F,I,O,D,k,L):L()}function x(F,O,D,k,L,I){let H=n.join(D,O),z=n.join(k,O);l(H,z,L,(re,B)=>{if(re)return I(re);if(!B)return A(F,D,k,L,I);s.checkPaths(H,z,"copy",L,(M,T)=>{if(M)return I(M);let{destStat:Y}=T;h(Y,H,z,L,U=>U?I(U):A(F,D,k,L,I))})})}function R(F,O,D,k,L){t.readlink(O,(I,H)=>{if(I)return L(I);if(k.dereference&&(H=n.resolve(process.cwd(),H)),F)t.readlink(D,(z,re)=>z?z.code==="EINVAL"||z.code==="UNKNOWN"?t.symlink(H,D,L):L(z):(k.dereference&&(re=n.resolve(process.cwd(),re)),s.isSrcSubdir(H,re)?L(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${re}'.`)):s.isSrcSubdir(re,H)?L(new Error(`Cannot overwrite '${re}' with '${H}'.`)):P(H,D,L)));else return t.symlink(H,D,L)})}function P(F,O,D){t.unlink(O,k=>k?D(k):t.symlink(F,O,D))}r.exports=o}),Bx=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Mt().mkdirsSync,c=Cm().utimesMillisSync,a=pn();function s(w,A,x){typeof x=="function"&&(x={filter:x}),x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
69
|
+
|
70
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:R,destStat:P}=a.checkPathsSync(w,A,"copy",x);if(a.checkParentPathsSync(w,R,A,"copy"),x.filter&&!x.filter(w,A))return;let F=n.dirname(A);return t.existsSync(F)||i(F),o(P,w,A,x)}function o(w,A,x,R){let P=(R.dereference?t.statSync:t.lstatSync)(A);if(P.isDirectory())return _(P,w,A,x,R);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return f(P,w,A,x,R);if(P.isSymbolicLink())return v(w,A,x,R);throw P.isSocket()?new Error(`Cannot copy a socket file: ${A}`):P.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${A}`):new Error(`Unknown file: ${A}`)}function f(w,A,x,R,P){return A?l(w,x,R,P):h(w,x,R,P)}function l(w,A,x,R){if(R.overwrite)return t.unlinkSync(x),h(w,A,x,R);if(R.errorOnExist)throw new Error(`'${x}' already exists`)}function h(w,A,x,R){return t.copyFileSync(A,x),R.preserveTimestamps&&u(w.mode,A,x),y(x,w.mode)}function u(w,A,x){return d(w)&&p(x,w),b(A,x)}function d(w){return(w&128)===0}function p(w,A){return y(w,A|128)}function y(w,A){return t.chmodSync(w,A)}function b(w,A){let x=t.statSync(w);return c(A,x.atime,x.mtime)}function _(w,A,x,R,P){return A?S(x,R,P):g(w.mode,x,R,P)}function g(w,A,x,R){return t.mkdirSync(x),S(A,x,R),y(x,w)}function S(w,A,x){t.readdirSync(w).forEach(R=>E(R,w,A,x))}function E(w,A,x,R){let P=n.join(A,w),F=n.join(x,w);if(R.filter&&!R.filter(P,F))return;let{destStat:O}=a.checkPathsSync(P,F,"copy",R);return o(O,P,F,R)}function v(w,A,x,R){let P=t.readlinkSync(A);if(R.dereference&&(P=n.resolve(process.cwd(),P)),w){let F;try{F=t.readlinkSync(x)}catch(O){if(O.code==="EINVAL"||O.code==="UNKNOWN")return t.symlinkSync(P,x);throw O}if(R.dereference&&(F=n.resolve(process.cwd(),F)),a.isSrcSubdir(P,F))throw new Error(`Cannot copy '${P}' to a subdirectory of itself, '${F}'.`);if(a.isSrcSubdir(F,P))throw new Error(`Cannot overwrite '${F}' with '${P}'.`);return m(P,x)}else return t.symlinkSync(P,x)}function m(w,A){return t.unlinkSync(A),t.symlinkSync(w,A)}r.exports=s}),ju=te((e,r)=>{"use strict";Z();var t=yt().fromCallback;r.exports={copy:t(Px()),copySync:Bx()}}),Ss=te((e,r)=>{"use strict";Z();var t=Ne(),n=yt().fromCallback;function i(a,s){t.rm(a,{recursive:!0,force:!0},s)}function c(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:c}}),Ix=te((e,r)=>{"use strict";Z();var t=yt().fromPromise,n=fn(),i=ce("path"),c=Mt(),a=Ss(),s=t(async function(f){let l;try{l=await n.readdir(f)}catch{return c.mkdirs(f)}return Promise.all(l.map(h=>a.remove(i.join(f,h))))});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),Lx=te((e,r)=>{"use strict";Z();var t=yt().fromCallback,n=ce("path"),i=Ne(),c=Mt();function a(o,f){function l(){i.writeFile(o,"",h=>{if(h)return f(h);f()})}i.stat(o,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(o);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?c.mkdirs(d,b=>{if(b)return f(b);l()}):f(p);y.isDirectory()?l():i.readdir(d,b=>{if(b)return f(b)})})})}function s(o){let f;try{f=i.statSync(o)}catch{}if(f&&f.isFile())return;let l=n.dirname(o);try{i.statSync(l).isDirectory()||i.readdirSync(l)}catch(h){if(h&&h.code==="ENOENT")c.mkdirsSync(l);else throw h}i.writeFileSync(o,"")}r.exports={createFile:t(a),createFileSync:s}}),Mx=te((e,r)=>{"use strict";Z();var t=yt().fromCallback,n=ce("path"),i=Ne(),c=Mt(),a=Dr().pathExists,{areIdentical:s}=pn();function o(l,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(l,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&s(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(l,h);c.mkdirs(g,v=>{if(v)return u(v);d(l,h)})})})})}function f(l,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(l);if(u&&s(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||c.mkdirsSync(d),i.linkSync(l,h)}r.exports={createLink:t(o),createLinkSync:f}}),Nx=te((e,r)=>{"use strict";Z();var t=ce("path"),n=Ne(),i=Dr().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),jx=te((e,r)=>{"use strict";Z();var t=Ne();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),$x=te((e,r)=>{"use strict";Z();var t=yt().fromCallback,n=ce("path"),i=fn(),c=Mt(),a=c.mkdirs,s=c.mkdirsSync,o=Nx(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=jx(),u=h.symlinkType,d=h.symlinkTypeSync,p=Dr().pathExists,{areIdentical:y}=pn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,A)=>{!w&&A.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([x,R])=>{if(y(x,R))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,A)=>{if(w)return m(w);S=A.toDst,u(A.toCwd,v,(x,R)=>{if(x)return m(x);let P=n.dirname(E);p(P,(F,O)=>{if(F)return m(F);if(O)return i.symlink(S,E,R,m);a(P,D=>{if(D)return m(D);i.symlink(S,E,R,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let x=i.statSync(S),R=i.statSync(E);if(y(x,R))return}let w=l(S,E);S=w.toDst,v=d(w.toCwd,v);let A=n.dirname(E);return i.existsSync(A)||s(A),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),Hx=te((e,r)=>{"use strict";Z();var{createFile:t,createFileSync:n}=Lx(),{createLink:i,createLinkSync:c}=Mx(),{createSymlink:a,createSymlinkSync:s}=$x();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:c,ensureLink:i,ensureLinkSync:c,createSymlink:a,createSymlinkSync:s,ensureSymlink:a,ensureSymlinkSync:s}}),$u=te((e,r)=>{Z();function t(i,{EOL:c=`
|
71
|
+
`,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),Ux=te((e,r)=>{Z();var t;try{t=Ne()}catch{t=ce("fs")}var n=yt(),{stringify:i,stripBom:c}=$u();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),qx=te((e,r)=>{"use strict";Z();var t=Ux();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),Hu=te((e,r)=>{"use strict";Z();var t=yt().fromCallback,n=Ne(),i=ce("path"),c=Mt(),a=Dr().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),Gx=te((e,r)=>{"use strict";Z();var{stringify:t}=$u(),{outputFile:n}=Hu();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),zx=te((e,r)=>{"use strict";Z();var{stringify:t}=$u(),{outputFileSync:n}=Hu();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),Wx=te((e,r)=>{"use strict";Z();var t=yt().fromPromise,n=qx();n.outputJson=t(Gx()),n.outputJsonSync=zx(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),Vx=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=ju().copy,c=Ss().remove,a=Mt().mkdirp,s=Dr().pathExists,o=pn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),Yx=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=ju().copySync,c=Ss().removeSync,a=Mt().mkdirpSync,s=pn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),Kx=te((e,r)=>{"use strict";Z();var t=yt().fromCallback;r.exports={move:t(Vx()),moveSync:Yx()}}),As=te((e,r)=>{"use strict";Z(),r.exports={...fn(),...ju(),...Ix(),...Hx(),...Wx(),...Mt(),...Kx(),...Hu(),...Dr(),...Ss()}});Z();var E4=Je(As());Z();var S4=Je(As()),Xx=te((e,r)=>{Z();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),Zx=te(e=>{Z();var r=Xx();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),Jx=te((e,r)=>{Z(),r.exports=Zx()}),Qx=te((e,r)=>{Z();var t=Jx();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});Z();Z();var A4=Je(Qx()),x4=Je(ws()),C4=Je(As());Z();var k4=Je(As()),D4=Je(ws());Z();Z();var eC=te((e,r)=>{Z();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),tC=te((e,r)=>{Z();var t=eC().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",f=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(D,k,L){return Object.defineProperty(D,k,{value:L,enumerable:!0,configurable:!0,writable:!0}),D[k]}try{h({},"")}catch{h=function(D,k,L){return D[k]=L}}function u(D,k,L,I){var H=k&&k.prototype instanceof y?k:y,z=Object.create(H.prototype),re=new P(I||[]);return z._invoke=function(B,M,T){var Y="suspendedStart";return function(U,Q){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(U==="throw")throw Q;return O()}for(T.method=U,T.arg=Q;;){var N=T.delegate;if(N){var W=A(N,T);if(W){if(W===p)continue;return W}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(Y==="suspendedStart")throw Y="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);Y="executing";var J=d(B,M,T);if(J.type==="normal"){if(Y=T.done?"completed":"suspendedYield",J.arg===p)continue;return{value:J.arg,done:T.done}}J.type==="throw"&&(Y="completed",T.method="throw",T.arg=J.arg)}}}(D,L,re),z}function d(D,k,L){try{return{type:"normal",arg:D.call(k,L)}}catch(I){return{type:"throw",arg:I}}}i.wrap=u;var p={};function y(){}function b(){}function _(){}var g={};h(g,o,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(F([])));E&&E!==c&&a.call(E,o)&&(g=E);var v=_.prototype=y.prototype=Object.create(g);function m(D){["next","throw","return"].forEach(function(k){h(D,k,function(L){return this._invoke(k,L)})})}function w(D,k){function L(H,z,re,B){var M=d(D[H],D,z);if(M.type!=="throw"){var T=M.arg,Y=T.value;return Y&&t(Y)=="object"&&a.call(Y,"__await")?k.resolve(Y.__await).then(function(U){L("next",U,re,B)},function(U){L("throw",U,re,B)}):k.resolve(Y).then(function(U){T.value=U,re(T)},function(U){return L("throw",U,re,B)})}B(M.arg)}var I;this._invoke=function(H,z){function re(){return new k(function(B,M){L(H,z,B,M)})}return I=I?I.then(re,re):re()}}function A(D,k){var L=D.iterator[k.method];if(L===void 0){if(k.delegate=null,k.method==="throw"){if(D.iterator.return&&(k.method="return",k.arg=void 0,A(D,k),k.method==="throw"))return p;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var I=d(L,D.iterator,k.arg);if(I.type==="throw")return k.method="throw",k.arg=I.arg,k.delegate=null,p;var H=I.arg;return H?H.done?(k[D.resultName]=H.value,k.next=D.nextLoc,k.method!=="return"&&(k.method="next",k.arg=void 0),k.delegate=null,p):H:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,p)}function x(D){var k={tryLoc:D[0]};1 in D&&(k.catchLoc=D[1]),2 in D&&(k.finallyLoc=D[2],k.afterLoc=D[3]),this.tryEntries.push(k)}function R(D){var k=D.completion||{};k.type="normal",delete k.arg,D.completion=k}function P(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(x,this),this.reset(!0)}function F(D){if(D){var k=D[o];if(k)return k.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var L=-1,I=function H(){for(;++L<D.length;)if(a.call(D,L))return H.value=D[L],H.done=!1,H;return H.value=void 0,H.done=!0,H};return I.next=I}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=_,h(v,"constructor",_),h(_,"constructor",b),b.displayName=h(_,l,"GeneratorFunction"),i.isGeneratorFunction=function(D){var k=typeof D=="function"&&D.constructor;return!!k&&(k===b||(k.displayName||k.name)==="GeneratorFunction")},i.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,_):(D.__proto__=_,h(D,l,"GeneratorFunction")),D.prototype=Object.create(v),D},i.awrap=function(D){return{__await:D}},m(w.prototype),h(w.prototype,f,function(){return this}),i.AsyncIterator=w,i.async=function(D,k,L,I,H){H===void 0&&(H=Promise);var z=new w(u(D,k,L,I),H);return i.isGeneratorFunction(k)?z:z.next().then(function(re){return re.done?re.value:z.next()})},m(v),h(v,l,"Generator"),h(v,o,function(){return this}),h(v,"toString",function(){return"[object Generator]"}),i.keys=function(D){var k=[];for(var L in D)k.push(L);return k.reverse(),function I(){for(;k.length;){var H=k.pop();if(H in D)return I.value=H,I.done=!1,I}return I.done=!0,I}},i.values=F,P.prototype={constructor:P,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!D)for(var k in this)k.charAt(0)==="t"&&a.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var k=this;function L(M,T){return z.type="throw",z.arg=D,k.next=M,T&&(k.method="next",k.arg=void 0),!!T}for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I],z=H.completion;if(H.tryLoc==="root")return L("end");if(H.tryLoc<=this.prev){var re=a.call(H,"catchLoc"),B=a.call(H,"finallyLoc");if(re&&B){if(this.prev<H.catchLoc)return L(H.catchLoc,!0);if(this.prev<H.finallyLoc)return L(H.finallyLoc)}else if(re){if(this.prev<H.catchLoc)return L(H.catchLoc,!0)}else{if(!B)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return L(H.finallyLoc)}}}},abrupt:function(D,k){for(var L=this.tryEntries.length-1;L>=0;--L){var I=this.tryEntries[L];if(I.tryLoc<=this.prev&&a.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var H=I;break}}H&&(D==="break"||D==="continue")&&H.tryLoc<=k&&k<=H.finallyLoc&&(H=null);var z=H?H.completion:{};return z.type=D,z.arg=k,H?(this.method="next",this.next=H.finallyLoc,p):this.complete(z)},complete:function(D,k){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&k&&(this.next=k),p},finish:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var L=this.tryEntries[k];if(L.finallyLoc===D)return this.complete(L.completion,L.afterLoc),R(L),p}},catch:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var L=this.tryEntries[k];if(L.tryLoc===D){var I=L.completion;if(I.type==="throw"){var H=I.arg;R(L)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(D,k,L){return this.delegate={iterator:F(D),resultName:k,nextLoc:L},this.method==="next"&&(this.arg=void 0),p}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),rC=te((e,r)=>{Z();var t=tC()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),nC=te((e,r)=>{"use strict";Z();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),iC=te((e,r)=>{"use strict";Z();var t=nC(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),sC=te((e,r)=>{"use strict";Z();var t=iC(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),oC=te((e,r)=>{"use strict";Z();var t=ce("path"),n=ce("fs"),{promisify:i}=ce("util"),c=sC(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),aC=te((e,r)=>{"use strict";Z();var t=ce("fs"),{promisify:n}=ce("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),uC=te((e,r)=>{"use strict";Z();var t=ce("path"),n=oC(),i=aC(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),gt=te(e=>{"use strict";Z(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),km=te(e=>{"use strict";Z();var r=gt().fromCallback,t=Ne(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),Dm=te((e,r)=>{"use strict";Z();var t=ce("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),lC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Dm().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),cC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Dm().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),Et=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=t(lC()),i=cC();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),Rm=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("os"),i=ce("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),xs=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,R)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:R}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,R)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:R}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:R,destStat:P}=x;return P&&P.ino&&P.dev&&P.ino===R.ino&&P.dev===R.dev?w(new Error("Source and destination must not be the same.")):R.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:R,destStat:P})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),R=n.resolve(n.dirname(m));if(R===x||R===n.parse(R).root)return A();h()?t.stat(R,{bigint:!0},(P,F)=>P?P.code==="ENOENT"?A():A(P):F.ino&&F.dev&&F.ino===v.ino&&F.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,R,w,A)):t.stat(R,(P,F)=>P?P.code==="ENOENT"?A():A(P):F.ino&&F.dev&&F.ino===v.ino&&F.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,R,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let R;try{h()?R=t.statSync(x,{bigint:!0}):R=t.statSync(x)}catch(P){if(P.code==="ENOENT")return;throw P}if(R.ino&&R.dev&&R.ino===v.ino&&R.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,R)=>A&&w[R]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),hC=te((e,r)=>{"use strict";Z(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),fC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Et().mkdirsSync,c=Rm().utimesMillisSync,a=xs();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
72
|
+
|
73
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:A,destStat:x}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,A,m,"copy"),o(x,v,m,w)}function o(v,m,w,A){if(A.filter&&!A.filter(m,w))return;let x=n.dirname(w);return t.existsSync(x)||i(x),f(v,m,w,A)}function f(v,m,w,A){if(!(A.filter&&!A.filter(m,w)))return l(v,m,w,A)}function l(v,m,w,A){let x=(A.dereference?t.statSync:t.lstatSync)(m);if(x.isDirectory())return y(x,v,m,w,A);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return h(x,v,m,w,A);if(x.isSymbolicLink())return S(v,m,w,A)}function h(v,m,w,A,x){return m?u(v,w,A,x):d(v,w,A,x)}function u(v,m,w,A){if(A.overwrite)return t.unlinkSync(w),d(v,m,w,A);if(A.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,A){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),A.preserveTimestamps?c(w,v.atime,v.mtime):void 0):p(v,m,w,A)}function p(v,m,w,A){let x=hC()(65536),R=t.openSync(m,"r"),P=t.openSync(w,"w",v.mode),F=0;for(;F<v.size;){let O=t.readSync(R,x,0,65536,F);t.writeSync(P,x,0,O),F+=O}A.preserveTimestamps&&t.futimesSync(P,v.atime,v.mtime),t.closeSync(R),t.closeSync(P)}function y(v,m,w,A,x){if(!m)return b(v,w,A,x);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${A}' with directory '${w}'.`);return _(w,A,x)}function b(v,m,w,A){return t.mkdirSync(w),_(m,w,A),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(A=>g(A,v,m,w))}function g(v,m,w,A){let x=n.join(m,v),R=n.join(w,v),{destStat:P}=a.checkPathsSync(x,R,"copy");return f(P,x,R,A)}function S(v,m,w,A){let x=t.readlinkSync(m);if(A.dereference&&(x=n.resolve(process.cwd(),x)),v){let R;try{R=t.readlinkSync(w)}catch(P){if(P.code==="EINVAL"||P.code==="UNKNOWN")return t.symlinkSync(x,w);throw P}if(A.dereference&&(R=n.resolve(process.cwd(),R)),a.isSrcSubdir(x,R))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${R}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(R,x))throw new Error(`Cannot overwrite '${R}' with '${x}'.`);return E(x,w)}else return t.symlinkSync(x,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=s}),Om=te((e,r)=>{"use strict";Z(),r.exports={copySync:fC()}}),Vt=te((e,r)=>{"use strict";Z();var t=gt().fromPromise,n=km();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),pC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Et().mkdirs,c=Vt().pathExists,a=Rm().utimesMillis,s=xs();function o(x,R,P,F){typeof P=="function"&&!F?(F=P,P={}):typeof P=="function"&&(P={filter:P}),F=F||function(){},P=P||{},P.clobber="clobber"in P?!!P.clobber:!0,P.overwrite="overwrite"in P?!!P.overwrite:P.clobber,P.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
74
|
+
|
75
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,R,"copy",(O,D)=>{if(O)return F(O);let{srcStat:k,destStat:L}=D;s.checkParentPaths(x,k,R,"copy",I=>I?F(I):P.filter?l(f,L,x,R,P,F):f(L,x,R,P,F))})}function f(x,R,P,F,O){let D=n.dirname(P);c(D,(k,L)=>{if(k)return O(k);if(L)return h(x,R,P,F,O);i(D,I=>I?O(I):h(x,R,P,F,O))})}function l(x,R,P,F,O,D){Promise.resolve(O.filter(P,F)).then(k=>k?x(R,P,F,O,D):D(),k=>D(k))}function h(x,R,P,F,O){return F.filter?l(u,x,R,P,F,O):u(x,R,P,F,O)}function u(x,R,P,F,O){(F.dereference?t.stat:t.lstat)(R,(D,k)=>{if(D)return O(D);if(k.isDirectory())return g(k,x,R,P,F,O);if(k.isFile()||k.isCharacterDevice()||k.isBlockDevice())return d(k,x,R,P,F,O);if(k.isSymbolicLink())return w(x,R,P,F,O)})}function d(x,R,P,F,O,D){return R?p(x,P,F,O,D):y(x,P,F,O,D)}function p(x,R,P,F,O){if(F.overwrite)t.unlink(P,D=>D?O(D):y(x,R,P,F,O));else return F.errorOnExist?O(new Error(`'${P}' already exists`)):O()}function y(x,R,P,F,O){return typeof t.copyFile=="function"?t.copyFile(R,P,D=>D?O(D):_(x,P,F,O)):b(x,R,P,F,O)}function b(x,R,P,F,O){let D=t.createReadStream(R);D.on("error",k=>O(k)).once("open",()=>{let k=t.createWriteStream(P,{mode:x.mode});k.on("error",L=>O(L)).on("open",()=>D.pipe(k)).once("close",()=>_(x,P,F,O))})}function _(x,R,P,F){t.chmod(R,x.mode,O=>O?F(O):P.preserveTimestamps?a(R,x.atime,x.mtime,F):F())}function g(x,R,P,F,O,D){return R?R&&!R.isDirectory()?D(new Error(`Cannot overwrite non-directory '${F}' with directory '${P}'.`)):E(P,F,O,D):S(x,P,F,O,D)}function S(x,R,P,F,O){t.mkdir(P,D=>{if(D)return O(D);E(R,P,F,k=>k?O(k):t.chmod(P,x.mode,O))})}function E(x,R,P,F){t.readdir(x,(O,D)=>O?F(O):v(D,x,R,P,F))}function v(x,R,P,F,O){let D=x.pop();return D?m(x,D,R,P,F,O):O()}function m(x,R,P,F,O,D){let k=n.join(P,R),L=n.join(F,R);s.checkPaths(k,L,"copy",(I,H)=>{if(I)return D(I);let{destStat:z}=H;h(z,k,L,O,re=>re?D(re):v(x,P,F,O,D))})}function w(x,R,P,F,O){t.readlink(R,(D,k)=>{if(D)return O(D);if(F.dereference&&(k=n.resolve(process.cwd(),k)),x)t.readlink(P,(L,I)=>L?L.code==="EINVAL"||L.code==="UNKNOWN"?t.symlink(k,P,O):O(L):(F.dereference&&(I=n.resolve(process.cwd(),I)),s.isSrcSubdir(k,I)?O(new Error(`Cannot copy '${k}' to a subdirectory of itself, '${I}'.`)):x.isDirectory()&&s.isSrcSubdir(I,k)?O(new Error(`Cannot overwrite '${I}' with '${k}'.`)):A(k,P,O)));else return t.symlink(k,P,O)})}function A(x,R,P){t.unlink(R,F=>F?P(F):t.symlink(x,R,P))}r.exports=o}),Tm=te((e,r)=>{"use strict";Z();var t=gt().fromCallback;r.exports={copy:t(pC())}}),dC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=ce("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Cs=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=dC();r.exports={remove:t(n),removeSync:n.sync}}),mC=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=Ne(),i=ce("path"),c=Et(),a=Cs(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),yC=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=ce("path"),i=Ne(),c=Et(),a=Vt().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),gC=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=ce("path"),i=Ne(),c=Et(),a=Vt().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),bC=te((e,r)=>{"use strict";Z();var t=ce("path"),n=Ne(),i=Vt().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),vC=te((e,r)=>{"use strict";Z();var t=Ne();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),_C=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=ce("path"),i=Ne(),c=Et(),a=c.mkdirs,s=c.mkdirsSync,o=bC(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=vC(),u=h.symlinkType,d=h.symlinkTypeSync,p=Vt().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,R)=>{if(x)return E(x);let P=n.dirname(g);p(P,(F,O)=>{if(F)return E(F);if(O)return i.symlink(_,g,R,E);a(P,D=>{if(D)return E(D);i.symlink(_,g,R,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),wC=te((e,r)=>{"use strict";Z();var t=yC(),n=gC(),i=_C();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),EC=te((e,r)=>{Z();var t;try{t=Ne()}catch{t=ce("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
|
76
|
+
`;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),Uu=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=EC();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),SC=te((e,r)=>{"use strict";Z();var t=ce("path"),n=Et(),i=Vt().pathExists,c=Uu();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),AC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Et(),c=Uu();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),xC=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=Uu();n.outputJson=t(SC()),n.outputJsonSync=AC(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),CC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Om().copySync,c=Cs().removeSync,a=Et().mkdirpSync,s=xs();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),kC=te((e,r)=>{"use strict";Z(),r.exports={moveSync:CC()}}),DC=te((e,r)=>{"use strict";Z();var t=Ne(),n=ce("path"),i=Tm().copy,c=Cs().remove,a=Et().mkdirp,s=Vt().pathExists,o=xs();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),RC=te((e,r)=>{"use strict";Z();var t=gt().fromCallback;r.exports={move:t(DC())}}),OC=te((e,r)=>{"use strict";Z();var t=gt().fromCallback,n=Ne(),i=ce("path"),c=Et(),a=Vt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),TC=te((e,r)=>{"use strict";Z(),r.exports=Object.assign({},km(),Om(),Tm(),mC(),wC(),xC(),Et(),kC(),RC(),OC(),Vt(),Cs());var t=ce("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});Z();Z();var R4=Je(rC());Z();Z();function FC(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}Z();Z();function Su(e){return Su=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Su(e)}Z();function PC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BC(e,r){if(r&&(Su(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PC(e)}Z();function ms(e){return ms=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ms(e)}Z();Z();function Hn(e,r){return Hn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Hn(e,r)}function IC(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Hn(e,r)}Z();Z();function LC(e){return Function.toString.call(e).indexOf("[native code]")!==-1}Z();Z();function MC(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fs(e,r,t){return MC()?fs=Reflect.construct.bind():fs=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&Hn(o,c.prototype),o},fs.apply(null,arguments)}function Au(e){var r=typeof Map=="function"?new Map:void 0;return Au=function(t){if(t===null||!LC(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return fs(t,arguments,ms(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Hn(n,t)},Au(e)}var O4=Je(uC()),T4=Je(TC()),F4=function(e){IC(r,e);function r(t){var n;return FC(this,r),n=BC(this,ms(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(Au(Error));Z();var NC=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),jC=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),$C=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),HC=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=ce("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),UC=te((e,r)=>{Z(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),qC=te((e,r)=>{Z();var t=UC(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),GC=te((e,r)=>{"use strict";Z();var t=qC(),n=ce("path").posix.dirname,i=ce("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),qu=te(e=>{"use strict";Z(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Gu=te((e,r)=>{"use strict";Z();var t=qu();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),zC=te((e,r)=>{"use strict";Z(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),WC=te((e,r)=>{"use strict";Z();var t=zC(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),R=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(R))return n.cache[R].result;let P=Math.min(g,S),F=Math.max(g,S);if(Math.abs(P-F)===1){let I=g+"|"+S;return v.capture?`(${I})`:v.wrap===!1?I:`(?:${I})`}let O=b(g)||b(S),D={min:g,max:S,a:P,b:F},k=[],L=[];if(O&&(D.isPadded=O,D.maxLen=String(D.max).length),P<0){let I=F<0?Math.abs(F):1;L=s(I,Math.abs(P),D,v),P=D.a=0}return F>=0&&(k=s(P,F,D,v)),D.negatives=L,D.positives=k,D.result=i(L,k,v),v.capture===!0?D.result=`(${D.result})`:v.wrap!==!1&&k.length+L.length>1&&(D.result=`(?:${D.result})`),n.cache[R]=D,D.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[R,P]=v[x];R===P?w+=R:R!=="0"||P!=="9"?w+=y(R,P,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let R=0;R<m.length;R++){let P=m[R],F=a(String(A),String(P),v),O="";if(!E.isPadded&&x&&x.pattern===F.pattern){x.count.length>1&&x.count.pop(),x.count.push(F.count[0]),x.string=x.pattern+p(x.count),A=P+1;continue}E.isPadded&&(O=_(P,E,v)),F.string=O+F.pattern+p(F.count),w.push(F),A=P+1,x=F}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),Fm=te((e,r)=>{"use strict";Z();var t=ce("util"),n=WC(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((P,F)=>P<F?-1:P>F?1:0),v.positives.sort((P,F)=>P<F?-1:P>F?1:0);let w=m.capture?"":"?:",A="",x="",R;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?R=`${A}|${x}`:R=A||x,m.wrap?`(${w}${R})`:R},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let R=String.fromCharCode(m);return`[${x}-${R}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),R=Number(m);if(!Number.isInteger(x)||!Number.isInteger(R)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),R===0&&(R=0);let P=x>R,F=String(v),O=String(m),D=String(w);w=Math.max(Math.abs(w),1);let k=o(F)||o(O)||o(D),L=k?Math.max(F.length,O.length,D.length):0,I=k===!1&&f(v,m,A)===!1,H=A.transform||c(I);if(A.toRegex&&w===1)return d(h(v,L),h(m,L),!0,A);let z={negatives:[],positives:[]},re=T=>z[T<0?"negatives":"positives"].push(Math.abs(T)),B=[],M=0;for(;P?x>=R:x<=R;)A.toRegex===!0&&w>1?re(x):B.push(l(H(x,M),L,I)),x=P?x-w:x+w,M++;return A.toRegex===!0?w>1?u(z,A):p(B,null,{wrap:!1,...A}):B},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(I=>String.fromCharCode(I)),R=`${v}`.charCodeAt(0),P=`${m}`.charCodeAt(0),F=R>P,O=Math.min(R,P),D=Math.max(R,P);if(A.toRegex&&w===1)return d(O,D,!1,A);let k=[],L=0;for(;F?R>=P:R<=P;)k.push(x(R,L)),R=F?R-w:R+w,L++;return A.toRegex===!0?p(k,null,{wrap:!1,options:A}):k},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),VC=te((e,r)=>{"use strict";Z();var t=Fm(),n=qu(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),YC=te((e,r)=>{"use strict";Z();var t=Fm(),n=Gu(),i=qu(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),KC=te((e,r)=>{"use strict";Z(),r.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
77
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),XC=te((e,r)=>{"use strict";Z();var t=Gu(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=KC(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,R=w,P=0,F=S.length,O=0,D=0,k,L={},I=()=>S[O++],H=z=>{if(z.type==="text"&&R.type==="dot"&&(R.type="text"),R&&R.type==="text"&&z.type==="text"){R.value+=z.value;return}return x.nodes.push(z),z.parent=x,z.prev=R,R=z,z};for(H({type:"bos"});O<F;)if(x=A[A.length-1],k=I(),!(k===_||k===b)){if(k===i){H({type:"text",value:(E.keepEscaping?k:"")+I()});continue}if(k===d){H({type:"text",value:"\\"+k});continue}if(k===u){P++;let z=!0,re;for(;O<F&&(re=I());){if(k+=re,re===u){P++;continue}if(re===i){k+=I();continue}if(re===d&&(P--,P===0))break}H({type:"text",value:k});continue}if(k===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:k});continue}if(k===f){if(x.type!=="paren"){H({type:"text",value:k});continue}x=A.pop(),H({type:"text",value:k}),x=A[A.length-1];continue}if(k===p||k===y||k===c){let z=k,re;for(E.keepQuotes!==!0&&(k="");O<F&&(re=I());){if(re===i){k+=re+I();continue}if(re===z){E.keepQuotes===!0&&(k+=re);break}k+=re}H({type:"text",value:k});continue}if(k===l){D++;let z=R.value&&R.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:z,depth:D,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:k});continue}if(k===h){if(x.type!=="brace"){H({type:"text",value:k});continue}let z="close";x=A.pop(),x.close=!0,H({type:z,value:k}),D--,x=A[A.length-1];continue}if(k===a&&D>0){if(x.ranges>0){x.ranges=0;let z=x.nodes.shift();x.nodes=[z,{type:"text",value:t(x)}]}H({type:"comma",value:k}),x.commas++;continue}if(k===s&&D>0&&x.commas===0){let z=x.nodes;if(D===0||z.length===0){H({type:"text",value:k});continue}if(R.type==="dot"){if(x.range=[],R.value+=k,R.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,R.type="text";continue}x.ranges++,x.args=[];continue}if(R.type==="range"){z.pop();let re=z[z.length-1];re.value+=R.value+k,R=re,x.ranges--;continue}H({type:"dot",value:k});continue}H({type:"text",value:k})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let z=A[A.length-1],re=z.nodes.indexOf(x);z.nodes.splice(re,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),ZC=te((e,r)=>{"use strict";Z();var t=Gu(),n=VC(),i=YC(),c=XC(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),ks=te((e,r)=>{"use strict";Z();var t=ce("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),Ds=te(e=>{"use strict";Z();var r=ce("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=ks();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),JC=te((e,r)=>{"use strict";Z();var t=Ds(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=ks(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,R=[],P=[],F=[],O=v,D=-1,k=0,L=0,I=!1,H=!1,z=!1,re=!1,B=!1,M=!1,T=!1,Y=!1,U=!1,Q=!1,N=0,W,J,ae={value:"",depth:0,isGlob:!1},oe=()=>D>=A,de=()=>O.charCodeAt(D+1),pe=()=>(W=J,O.charCodeAt(++D));for(;D<A;){J=pe();let X;if(J===c){T=ae.backslashes=!0,J=pe(),J===l&&(M=!0);continue}if(M===!0||J===l){for(N++;oe()!==!0&&(J=pe());){if(J===c){T=ae.backslashes=!0,pe();continue}if(J===l){N++;continue}if(M!==!0&&J===s&&(J=pe())===s){if(I=ae.isBrace=!0,z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(M!==!0&&J===a){if(I=ae.isBrace=!0,z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(J===y&&(N--,N===0)){M=!1,I=ae.isBrace=!0,Q=!0;break}}if(x===!0)continue;break}if(J===f){if(R.push(D),P.push(ae),ae={value:"",depth:0,isGlob:!1},Q===!0)continue;if(W===s&&D===k+1){k+=2;continue}L=D+1;continue}if(w.noext!==!0&&(J===d||J===i||J===n||J===p||J===o)&&de()===h){if(z=ae.isGlob=!0,re=ae.isExtglob=!0,Q=!0,J===o&&D===k&&(U=!0),x===!0){for(;oe()!==!0&&(J=pe());){if(J===c){T=ae.backslashes=!0,J=pe();continue}if(J===b){z=ae.isGlob=!0,Q=!0;break}}continue}break}if(J===n){if(W===n&&(B=ae.isGlobstar=!0),z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(J===p){if(z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(J===u){for(;oe()!==!0&&(X=pe());){if(X===c){T=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,z=ae.isGlob=!0,Q=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&J===o&&D===k){Y=ae.negated=!0,k++;continue}if(w.noparen!==!0&&J===h){if(z=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(J=pe());){if(J===h){T=ae.backslashes=!0,J=pe();continue}if(J===b){Q=!0;break}}continue}break}if(z===!0){if(Q=!0,x===!0)continue;break}}w.noext===!0&&(re=!1,z=!1);let j=O,G="",C="";k>0&&(G=O.slice(0,k),O=O.slice(k),L-=k),j&&z===!0&&L>0?(j=O.slice(0,L),C=O.slice(L)):z===!0?(j="",C=O):j=O,j&&j!==""&&j!=="/"&&j!==O&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(C&&(C=t.removeBackslashes(C)),j&&T===!0&&(j=t.removeBackslashes(j)));let q={prefix:G,input:v,start:k,base:j,glob:C,isBrace:I,isBracket:H,isGlob:z,isExtglob:re,isGlobstar:B,negated:Y,negatedExtglob:U};if(w.tokens===!0&&(q.maxDepth=0,g(J)||P.push(ae),q.tokens=P),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<R.length;ne++){let me=X?X+1:k,se=R[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&k!==0?(P[ne].isPrefix=!0,P[ne].value=G):P[ne].value=fe,S(P[ne]),q.maxDepth+=P[ne].depth),(ne!==0||fe!=="")&&F.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);F.push(ne),w.tokens&&(P[P.length-1].value=ne,S(P[P.length-1]),q.maxDepth+=P[P.length-1].depth)}q.slashes=R,q.parts=F}return q};r.exports=E}),QC=te((e,r)=>{"use strict";Z();var t=ks(),n=Ds(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:R,DOTS_SLASH:P,NO_DOT:F,NO_DOT_SLASH:O,NO_DOTS_SLASH:D,QMARK:k,QMARK_NO_DOT:L,STAR:I,START_ANCHOR:H}=v,z=se=>`(${S}(?:(?!${H}${se.dot?P:w}).)*?)`,re=p.dot?"":F,B=p.dot?k:L,M=p.bash===!0?z(p):I;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let T={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,T),b=u.length;let Y=[],U=[],Q=[],N=_,W,J=()=>T.index===b-1,ae=T.peek=(se=1)=>u[T.index+se],oe=T.advance=()=>u[++T.index]||"",de=()=>u.slice(T.index+1),pe=(se="",fe=0)=>{T.consumed+=se,T.index+=fe},j=se=>{T.output+=se.output!=null?se.output:se.value,pe(se.value)},G=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),T.start++,se++;return se%2===0?!1:(T.negated=!0,T.start++,!0)},C=se=>{T[se]++,Q.push(se)},q=se=>{T[se]--,Q.pop()},X=se=>{if(N.type==="globstar"){let fe=T.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||Y.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(T.output=T.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,T.output+=N.output)}if(Y.length&&se.type!=="paren"&&(Y[Y.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=T.parens,ie.output=T.output;let ye=(p.capture?"(":"")+ie.open;C("parens"),X({type:se,value:fe,output:T.output?"":R}),X({type:"paren",extglob:!0,value:oe(),output:ye}),Y.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=z(p)),(ye!==M||J()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(T.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:fe}),q("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?k.repeat(V.length):""):$===0?B+(V?k.repeat(V.length):""):k.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(T.output=u,T):(T.output=n.wrapOutput(fe,T,d),T)}for(;!J();){if(W=oe(),W==="\0")continue;if(W==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){W+="\\",X({type:"text",value:W});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,T.index+=we,we%2!==0&&(W+="\\")),p.unescape===!0?W=oe():W+=oe(),T.brackets===0){X({type:"text",value:W});continue}}if(T.brackets>0&&(W!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&W===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,T.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=R);continue}}}(W==="["&&ae()!==":"||W==="-"&&ae()==="]")&&(W=`\\${W}`),W==="]"&&(N.value==="["||N.value==="[^")&&(W=`\\${W}`),p.posix===!0&&W==="!"&&N.value==="["&&(W="^"),N.value+=W,j({value:W});continue}if(T.quotes===1&&W!=='"'){W=n.escapeRegex(W),N.value+=W,j({value:W});continue}if(W==='"'){T.quotes=T.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){C("parens"),X({type:"paren",value:W});continue}if(W===")"){if(T.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=Y[Y.length-1];if(ie&&T.parens===ie.parens+1){me(Y.pop());continue}X({type:"paren",value:W,output:T.parens?")":"\\)"}),q("parens");continue}if(W==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));W=`\\${W}`}else C("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(T.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}q("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(W=`/${W}`),N.value+=W,j({value:W}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(T.output=T.output.slice(0,-N.value.length),p.literalBrackets===!0){T.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,T.output+=N.value;continue}if(W==="{"&&p.nobrace!==!0){C("braces");let ie={type:"brace",value:W,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};U.push(ie),X(ie);continue}if(W==="}"){let ie=U[U.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:W,output:W});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),T.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=T.output.slice(0,ie.outputIndex),xe=T.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",W=ye="\\}",T.output=we;for(let V of xe)T.output+=V.output||V.value}X({type:"brace",value:W,output:ye}),q("braces"),U.pop();continue}if(W==="|"){Y.length>0&&Y[Y.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let ie=W,ye=U[U.length-1];ye&&Q[Q.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:W,output:ie});continue}if(W==="/"){if(N.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",g.pop(),N=_;continue}X({type:"slash",value:W,output:x});continue}if(W==="."){if(T.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=U[U.length-1];N.type="dots",N.output+=W,N.value+=W,ie.dots=!0;continue}if(T.braces+T.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:W,output:w});continue}X({type:"dot",value:W,output:w});continue}if(W==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",W);continue}if(N&&N.type==="paren"){let ie=ae(),ye=W;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${W}`),X({type:"text",value:W,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:W,output:L});continue}X({type:"qmark",value:W,output:k});continue}if(W==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",W);continue}if(p.nonegate!==!0&&T.index===0){G();continue}}if(W==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",W);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:W,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||T.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:A});continue}if(W==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let ie=a.exec(de());ie&&(W+=ie[0],T.index+=ie[0].length),X({type:"text",value:W});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=W,N.output=M,T.backtrack=!0,T.globstar=!0,pe(W);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",W);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(W);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:W,output:""});continue}let V=T.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=Y.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:W,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[T.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&J()){N.type="globstar",N.value+=W,N.output=z(p),T.output=N.output,T.globstar=!0,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&J()){T.output=T.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=z(p)+(p.strictSlashes?")":"|$)"),N.value+=W,T.globstar=!0,T.output+=ie.output+N.output,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${z(p)}${x}|${x}${ue})`,N.value+=W,T.output+=ie.output+N.output,T.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=W,N.output=`(?:^|${x}|${z(p)}${x})`,T.output=N.output,T.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-N.output.length),N.type="globstar",N.output=z(p),N.value+=W,T.output+=N.output,T.globstar=!0,pe(W);continue}let fe={type:"star",value:W,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=re+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=W,X(fe);continue}(T.index===T.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(T.output+=O,N.output+=O):p.dot===!0?(T.output+=D,N.output+=D):(T.output+=re,N.output+=re),ae()!=="*"&&(T.output+=R,N.output+=R)),X(fe)}for(;T.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));T.output=n.escapeLast(T.output,"["),q("brackets")}for(;T.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));T.output=n.escapeLast(T.output,"("),q("parens")}for(;T.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));T.output=n.escapeLast(T.output,"{"),q("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),T.backtrack===!0){T.output="";for(let se of T.tokens)T.output+=se.output!=null?se.output:se.value,se.suffix&&(T.output+=se.suffix)}return T};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:R}=t.globChars(_),P=p.dot?w:m,F=p.dot?A:m,O=p.capture?"":"?:",D={negated:!1,prefix:""},k=p.bash===!0?".*?":x;p.capture&&(k=`(${k})`);let L=re=>re.noglobstar===!0?k:`(${O}(?:(?!${R}${re.dot?v:g}).)*?)`,I=re=>{switch(re){case"*":return`${P}${E}${k}`;case".*":return`${g}${E}${k}`;case"*.*":return`${P}${k}${g}${E}${k}`;case"*/*":return`${P}${k}${S}${E}${F}${k}`;case"**":return P+L(p);case"**/*":return`(?:${P}${L(p)}${S})?${F}${E}${k}`;case"**/*.*":return`(?:${P}${L(p)}${S})?${F}${k}${g}${E}${k}`;case"**/.*":return`(?:${P}${L(p)}${S})?${g}${E}${k}`;default:{let B=/^(.*?)\.(\w+)$/.exec(re);if(!B)return;let M=I(B[1]);return M?M+g+B[2]:void 0}}},H=n.removePrefix(u,D),z=I(H);return z&&p.strictSlashes!==!0&&(z+=`${S}?`),z},r.exports=h}),ek=te((e,r)=>{"use strict";Z();var t=ce("path"),n=JC(),i=QC(),c=Ds(),a=ks(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),tk=te((e,r)=>{"use strict";Z(),r.exports=ek()}),rk=te((e,r)=>{"use strict";Z();var t=ce("util"),n=ZC(),i=tk(),c=Ds(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),nk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=ce("path"),t=GC(),n=rk(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(I,H={}){return!u(I,H)}e.isStaticPattern=h;function u(I,H={}){return I===""?!1:!!(H.caseSensitiveMatch===!1||I.includes(c)||a.test(I)||s.test(I)||o.test(I)||H.extglob!==!1&&f.test(I)||H.braceExpansion!==!1&&d(I))}e.isDynamicPattern=u;function d(I){let H=I.indexOf("{");if(H===-1)return!1;let z=I.indexOf("}",H+1);if(z===-1)return!1;let re=I.slice(H,z);return l.test(re)}function p(I){return b(I)?I.slice(1):I}e.convertToPositivePattern=p;function y(I){return"!"+I}e.convertToNegativePattern=y;function b(I){return I.startsWith("!")&&I[1]!=="("}e.isNegativePattern=b;function _(I){return!b(I)}e.isPositivePattern=_;function g(I){return I.filter(b)}e.getNegativePatterns=g;function S(I){return I.filter(_)}e.getPositivePatterns=S;function E(I){return I.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(I){return I.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(I){return I.startsWith("..")||I.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(I){return t(I,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(I){return I.includes(i)}e.hasGlobStar=A;function x(I){return I.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function R(I){let H=r.basename(I);return x(I)||h(H)}e.isAffectDepthOfReadingPattern=R;function P(I){return I.reduce((H,z)=>H.concat(F(z)),[])}e.expandPatternsWithBraceExpansion=P;function F(I){return n.braces(I,{expand:!0,nodupes:!0})}e.expandBraceExpansion=F;function O(I,H){let{parts:z}=n.scan(I,Object.assign(Object.assign({},H),{parts:!0}));return z.length===0&&(z=[I]),z[0].startsWith("/")&&(z[0]=z[0].slice(1),z.unshift("")),z}e.getPatternParts=O;function D(I,H){return n.makeRe(I,H)}e.makeRe=D;function k(I,H){return I.map(z=>D(z,H))}e.convertPatternsToRe=k;function L(I,H){return H.some(z=>z.test(I))}e.matchAny=L}),ik=te((e,r)=>{"use strict";Z();var t=ce("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),sk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=ik();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),ok=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),cr=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=NC();e.array=r;var t=jC();e.errno=t;var n=$C();e.fs=n;var i=HC();e.path=i;var c=nk();e.pattern=c;var a=sk();e.stream=a;var s=ok();e.string=s}),ak=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=cr();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),uk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),lk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),ck=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),hk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),fk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=hk(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),dn=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=lk(),t=ck(),n=fk();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),pk=te((e,r)=>{Z();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),dk=te((e,r)=>{Z(),r.exports=n;var t=pk();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),Pm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),mk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),Bm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=mk();e.fs=r}),Im=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),yk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=dn(),t=dk(),n=Pm(),i=Bm(),c=Im();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),gk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=dn(),t=Pm(),n=Bm(),i=Im();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),bk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),vk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=dn(),n=bk(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),zu=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=yk(),t=gk(),n=vk();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),_k=te((e,r)=>{"use strict";Z();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),wk=te((e,r)=>{"use strict";Z();var t=_k();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:R,error:P};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var F=h,O=0;F;)F=F.next,O++;return O}function S(){for(var F=h,O=[];F;)O.push(F.value),F=F.next;return O}function E(){if(y.paused){y.paused=!1;for(var F=0;F<y.concurrency;F++)d++,A()}}function v(){return d===0&&y.length()===0}function m(F,O){var D=l.get();D.context=s,D.release=A,D.value=F,D.callback=O||i,D.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=D,u=D):(h=D,u=D,y.saturated()):(d++,o.call(s,D.value,D.worked))}function w(F,O){var D=l.get();D.context=s,D.release=A,D.value=F,D.callback=O||i,d===y.concurrency||y.paused?h?(D.next=h,h=D):(h=D,u=D,y.saturated()):(d++,o.call(s,D.value,D.worked))}function A(F){F&&l.release(F);var O=h;O?y.paused?d--:(u===h&&(u=null),h=O.next,O.next=null,o.call(s,O.value,O.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function R(){h=null,u=null,y.drain(),y.drain=i}function P(F){p=F}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Wu=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),Lm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Wu(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),Mm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("events"),t=zu(),n=wk(),i=Wu(),c=Lm(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),Ek=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Mm(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),Sk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=Mm(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),Ak=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=zu(),t=Wu(),n=Lm(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),xk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ak(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),Ck=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=zu(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),Vu=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=Ek(),t=Sk(),n=xk(),i=Ck();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),Yu=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=dn(),n=cr(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),Nm=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=dn(),n=Vu(),i=Yu(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),kk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Vu(),t=Yu(),n=Nm(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),Dk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=cr(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),Rk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Dk(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),Ok=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=cr(),t=Rk(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),Tk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=cr(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),Fk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=cr(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),Pk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=cr(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Ku=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("path"),t=Ok(),n=Tk(),i=Fk(),c=Pk(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}),Bk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=kk(),t=Ku(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),Ik=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=ce("stream"),t=Nm(),n=Ku(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),Lk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=dn(),t=Vu(),n=Yu(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),Mk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0});var r=Lk(),t=Ku(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),Nk=te(e=>{"use strict";Z(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=ce("fs"),t=ce("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),jk=te((e,r)=>{"use strict";Z();var t=ak(),n=uk(),i=Bk(),c=Ik(),a=Mk(),s=Nk(),o=cr();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});Z();Z();function jm(e){return typeof e>"u"||e===null}function $k(e){return typeof e=="object"&&e!==null}function Hk(e){return Array.isArray(e)?e:jm(e)?[]:[e]}function Uk(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function qk(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function Gk(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var zk=jm,Wk=$k,Vk=Hk,Yk=qk,Kk=Gk,Xk=Uk,Ve={isNothing:zk,isObject:Wk,toArray:Vk,repeat:Yk,isNegativeZero:Kk,extend:Xk};function $m(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
78
|
+
|
79
|
+
`+e.mark.snippet),n+" "+t):n}function Un(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=$m(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Un.prototype=Object.create(Error.prototype);Un.prototype.constructor=Un;Un.prototype.toString=function(e){return this.name+": "+$m(this,e)};var lt=Un;function _u(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function wu(e,r){return Ve.repeat(" ",r-e.length)+e}function Zk(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=_u(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ve.repeat(" ",r.indent)+wu((e.line-o+1).toString(),l)+" | "+f.str+`
|
80
|
+
`+s;for(f=_u(e.buffer,n[a],i[a],e.position,h),s+=Ve.repeat(" ",r.indent)+wu((e.line+1).toString(),l)+" | "+f.str+`
|
81
|
+
`,s+=Ve.repeat("-",r.indent+l+3+f.pos)+`^
|
82
|
+
`,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=_u(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ve.repeat(" ",r.indent)+wu((e.line+o+1).toString(),l)+" | "+f.str+`
|
83
|
+
`;return s.replace(/\n$/,"")}var Jk=Zk,Qk=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],eD=["scalar","sequence","mapping"];function tD(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function rD(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(Qk.indexOf(t)===-1)throw new lt('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=tD(r.styleAliases||null),eD.indexOf(this.kind)===-1)throw new lt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var rt=rD;function C0(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function nD(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function xu(e){return this.extend(e)}xu.prototype.extend=function(e){var r=[],t=[];if(e instanceof rt)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new lt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof rt))throw new lt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new lt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new lt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof rt))throw new lt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(xu.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=C0(n,"implicit"),n.compiledExplicit=C0(n,"explicit"),n.compiledTypeMap=nD(n.compiledImplicit,n.compiledExplicit),n};var iD=xu,sD=new rt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),oD=new rt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),aD=new rt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),uD=new iD({explicit:[sD,oD,aD]});function lD(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function cD(){return null}function hD(e){return e===null}var fD=new rt("tag:yaml.org,2002:null",{kind:"scalar",resolve:lD,construct:cD,predicate:hD,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function pD(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function dD(e){return e==="true"||e==="True"||e==="TRUE"}function mD(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var yD=new rt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:pD,construct:dD,predicate:mD,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function gD(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function bD(e){return 48<=e&&e<=55}function vD(e){return 48<=e&&e<=57}function _D(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!gD(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!bD(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!vD(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function wD(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function ED(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ve.isNegativeZero(e)}var SD=new rt("tag:yaml.org,2002:int",{kind:"scalar",resolve:_D,construct:wD,predicate:ED,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),AD=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function xD(e){return!(e===null||!AD.test(e)||e[e.length-1]==="_")}function CD(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var kD=/^[-+]?[0-9]+e/;function DD(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ve.isNegativeZero(e))return"-0.0";return t=e.toString(10),kD.test(t)?t.replace("e",".e"):t}function RD(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ve.isNegativeZero(e))}var OD=new rt("tag:yaml.org,2002:float",{kind:"scalar",resolve:xD,construct:CD,predicate:RD,represent:DD,defaultStyle:"lowercase"}),TD=uD.extend({implicit:[fD,yD,SD,OD]}),FD=TD,Hm=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Um=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function PD(e){return e===null?!1:Hm.exec(e)!==null||Um.exec(e)!==null}function BD(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=Hm.exec(e),r===null&&(r=Um.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function ID(e){return e.toISOString()}var LD=new rt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:PD,construct:BD,instanceOf:Date,represent:ID});function MD(e){return e==="<<"||e===null}var ND=new rt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:MD}),Xu=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
84
|
+
\r`;function jD(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=Xu;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function $D(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=Xu,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function HD(e){var r="",t=0,n,i,c=e.length,a=Xu;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function UD(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var qD=new rt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:jD,construct:$D,predicate:UD,represent:HD}),GD=Object.prototype.hasOwnProperty,zD=Object.prototype.toString;function WD(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,zD.call(i)!=="[object Object]")return!1;for(c in i)if(GD.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function VD(e){return e!==null?e:[]}var YD=new rt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:WD,construct:VD}),KD=Object.prototype.toString;function XD(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],KD.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function ZD(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var JD=new rt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:XD,construct:ZD}),QD=Object.prototype.hasOwnProperty;function eR(e){if(e===null)return!0;var r,t=e;for(r in t)if(QD.call(t,r)&&t[r]!==null)return!1;return!0}function tR(e){return e!==null?e:{}}var rR=new rt("tag:yaml.org,2002:set",{kind:"mapping",resolve:eR,construct:tR}),qm=FD.extend({implicit:[LD,ND],explicit:[qD,YD,JD,rR]}),sr=Object.prototype.hasOwnProperty,ys=1,Gm=2,zm=3,gs=4,Eu=1,nR=2,k0=3,iR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sR=/[\x85\u2028\u2029]/,oR=/[,\[\]\{\}]/,Wm=/^(?:!|!!|![a-z\-]+!)$/i,Vm=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function D0(e){return Object.prototype.toString.call(e)}function Lt(e){return e===10||e===13}function kr(e){return e===9||e===32}function ct(e){return e===9||e===32||e===10||e===13}function on(e){return e===44||e===91||e===93||e===123||e===125}function aR(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function uR(e){return e===120?2:e===117?4:e===85?8:0}function lR(e){return 48<=e&&e<=57?e-48:-1}function R0(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
85
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function cR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ym=new Array(256),Km=new Array(256);for(Cr=0;Cr<256;Cr++)Ym[Cr]=R0(Cr)?1:0,Km[Cr]=R0(Cr);var Cr;function hR(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||qm,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Xm(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=Jk(t),new lt(r,t)}function Re(e,r){throw Xm(e,r)}function bs(e,r){e.onWarning&&e.onWarning.call(null,Xm(e,r))}var O0={YAML:function(e,r,t){var n,i,c;e.version!==null&&Re(e,"duplication of %YAML directive"),t.length!==1&&Re(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Re(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),c=parseInt(n[2],10),i!==1&&Re(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=c<2,c!==1&&c!==2&&bs(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Re(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],Wm.test(n)||Re(e,"ill-formed tag handle (first argument) of the TAG directive"),sr.call(e.tagMap,n)&&Re(e,'there is a previously declared suffix for "'+n+'" tag handle'),Vm.test(i)||Re(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Re(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function ir(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Re(e,"expected valid JSON character");else iR.test(s)&&Re(e,"the stream contains non-printable characters");e.result+=s}}function T0(e,r,t,n){var i,c,a,s;for(Ve.isObject(t)||Re(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],sr.call(r,c)||(r[c]=t[c],n[c]=!0)}function an(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&Re(e,"nested arrays are not supported inside keys"),typeof i=="object"&&D0(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&D0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)T0(e,r,c[f],t);else T0(e,r,c,t);else!e.json&&!sr.call(t,i)&&sr.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,Re(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function Zu(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Re(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Ge(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;kr(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Lt(i))for(Zu(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&bs(e,"deficient indentation"),n}function Rs(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||ct(t)))}function Ju(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ve.repeat(`
|
86
|
+
`,r-1))}function fR(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),ct(d)||on(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ct(i)||t&&on(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ct(i)||t&&on(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ct(n))break}else{if(e.position===e.lineStart&&Rs(e)||t&&on(d))break;if(Lt(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,Ge(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(ir(e,c,a,!1),Ju(e,e.line-o),c=a=e.position,s=!1),kr(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return ir(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function pR(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(ir(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else Lt(t)?(ir(e,n,i,!0),Ju(e,Ge(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Rs(e)?Re(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Re(e,"unexpected end of the stream within a single quoted scalar")}function dR(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return ir(e,t,e.position,!0),e.position++,!0;if(s===92){if(ir(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),Lt(s))Ge(e,!1,r);else if(s<256&&Ym[s])e.result+=Km[s],e.position++;else if((a=uR(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=aR(s))>=0?c=(c<<4)+a:Re(e,"expected hexadecimal character");e.result+=cR(c),e.position++}else Re(e,"unknown escape sequence");t=n=e.position}else Lt(s)?(ir(e,t,n,!0),Ju(e,Ge(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Rs(e)?Re(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Re(e,"unexpected end of the stream within a double quoted scalar")}function mR(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(Ge(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&Re(e,"expected the node content, but found ','"):Re(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),ct(f)&&(h=u=!0,e.position++,Ge(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,ln(e,r,ys,!1,!0),b=e.tag,y=e.result,Ge(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),Ge(e,!0,r),ln(e,r,ys,!1,!0),_=e.result),d?an(e,s,p,b,y,_,n,i,c):h?s.push(an(e,null,p,b,y,_,n,i,c)):s.push(y),Ge(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Re(e,"unexpected end of the stream within a flow collection")}function yR(e,r){var t,n,i=Eu,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Eu===i?i=h===43?k0:nR:Re(e,"repeat of a chomping mode identifier");else if((l=lR(h))>=0)l===0?Re(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Re(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(kr(h)){do h=e.input.charCodeAt(++e.position);while(kr(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!Lt(h)&&h!==0)}for(;h!==0;){for(Zu(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),Lt(h)){o++;continue}if(e.lineIndent<s){i===k0?e.result+=Ve.repeat(`
|
87
|
+
`,c?1+o:o):i===Eu&&c&&(e.result+=`
|
88
|
+
`);break}for(n?kr(h)?(f=!0,e.result+=Ve.repeat(`
|
89
|
+
`,c?1+o:o)):f?(f=!1,e.result+=Ve.repeat(`
|
90
|
+
`,o+1)):o===0?c&&(e.result+=" "):e.result+=Ve.repeat(`
|
91
|
+
`,o):e.result+=Ve.repeat(`
|
92
|
+
`,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!Lt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);ir(e,t,e.position,!1)}return!0}function F0(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!ct(a))));){if(s=!0,e.position++,Ge(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,ln(e,r,zm,!1,!0),c.push(e.result),Ge(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)Re(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function gR(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Re(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&ct(n))g===63?(b&&(an(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Re(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!ln(e,t,Gm,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);kr(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),ct(g)||Re(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(an(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Re(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)Re(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),ln(e,r,gs,!0,i)&&(b?p=e.result:y=e.result),b||(an(e,h,u,d,p,y,a,s,o),d=p=y=null),Ge(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)Re(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&an(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function bR(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Re(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Re(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ct(a);)a===33&&(n?Re(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),Wm.test(i)||Re(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),oR.test(c)&&Re(e,"tag suffix cannot contain flow indicator characters")}c&&!Vm.test(c)&&Re(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Re(e,"tag name is malformed: "+c)}return t?e.tag=c:sr.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:Re(e,'undeclared tag handle "'+i+'"'),!0}function vR(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Re(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!ct(t)&&!on(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function _R(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!ct(n)&&!on(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Re(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),sr.call(e.anchorMap,t)||Re(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],Ge(e,!0,-1),!0}function ln(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=gs===t||zm===t,n&&Ge(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;bR(e)||vR(e);)Ge(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||gs===t)&&(ys===t||Gm===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(F0(e,b)||gR(e,b,y))||mR(e,y)?l=!0:(a&&yR(e,y)||pR(e,y)||dR(e,y)?l=!0:_R(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Re(e,"alias node should not have any properties")):fR(e,y,ys===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&F0(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Re(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(sr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Re(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Re(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Re(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function wR(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Ge(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!ct(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Re(e,"directive name must not be less than one character in length");a!==0;){for(;kr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Lt(a));break}if(Lt(a))break;for(t=e.position;a!==0&&!ct(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&Zu(e),sr.call(O0,n)?O0[n](e,n,i):bs(e,'unknown document directive "'+n+'"')}if(Ge(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ge(e,!0,-1)):c&&Re(e,"directives end mark is expected"),ln(e,e.lineIndent-1,gs,!1,!0),Ge(e,!0,-1),e.checkLineBreaks&&sR.test(e.input.slice(r,e.position))&&bs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Rs(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ge(e,!0,-1));return}if(e.position<e.length-1)Re(e,"end of the stream or a document separator is expected");else return}function Zm(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
93
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new hR(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Re(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)wR(t);return t.documents}function ER(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=Zm(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function SR(e,r){var t=Zm(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new lt("expected a single document in the stream, but found more")}}var AR=ER,xR=SR,Jm={loadAll:AR,load:xR},Qm=Object.prototype.toString,e2=Object.prototype.hasOwnProperty,Qu=65279,CR=9,qn=10,kR=13,DR=32,RR=33,OR=34,Cu=35,TR=37,FR=38,PR=39,BR=42,t2=44,IR=45,vs=58,LR=61,MR=62,NR=63,jR=64,r2=91,n2=93,$R=96,i2=123,HR=124,s2=125,nt={};nt[0]="\\0";nt[7]="\\a";nt[8]="\\b";nt[9]="\\t";nt[10]="\\n";nt[11]="\\v";nt[12]="\\f";nt[13]="\\r";nt[27]="\\e";nt[34]='\\"';nt[92]="\\\\";nt[133]="\\N";nt[160]="\\_";nt[8232]="\\L";nt[8233]="\\P";var UR=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],qR=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function GR(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&e2.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function zR(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new lt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ve.repeat("0",n-r.length)+r}var WR=1,Gn=2;function VR(e){this.schema=e.schema||qm,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ve.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=GR(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Gn:WR,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function P0(e,r){for(var t=Ve.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
|
94
|
+
`,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
95
|
+
`&&(c+=t),c+=a;return c}function ku(e,r){return`
|
96
|
+
`+Ve.repeat(" ",e.indent*r)}function YR(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function _s(e){return e===DR||e===CR}function zn(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Qu||65536<=e&&e<=1114111}function B0(e){return zn(e)&&e!==Qu&&e!==kR&&e!==qn}function I0(e,r,t){var n=B0(e),i=n&&!_s(e);return(t?n:n&&e!==t2&&e!==r2&&e!==n2&&e!==i2&&e!==s2)&&e!==Cu&&!(r===vs&&!i)||B0(r)&&!_s(r)&&e===Cu||r===vs&&i}function KR(e){return zn(e)&&e!==Qu&&!_s(e)&&e!==IR&&e!==NR&&e!==vs&&e!==t2&&e!==r2&&e!==n2&&e!==i2&&e!==s2&&e!==Cu&&e!==FR&&e!==BR&&e!==RR&&e!==HR&&e!==LR&&e!==MR&&e!==PR&&e!==OR&&e!==TR&&e!==jR&&e!==$R}function XR(e){return!_s(e)&&e!==vs}function $n(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function o2(e){var r=/^\n* /;return r.test(e)}var a2=1,Du=2,u2=3,l2=4,sn=5;function ZR(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=KR($n(e,0))&&XR($n(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=$n(e,o),!zn(f))return sn;y=y&&I0(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=$n(e,o),f===qn)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!zn(f))return sn;y=y&&I0(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?a2:c===Gn?sn:Du:t>9&&o2(e)?sn:a?c===Gn?sn:Du:u?l2:u2}function JR(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===Gn?'""':"''";if(!e.noCompatMode&&(UR.indexOf(r)!==-1||qR.test(r)))return e.quotingType===Gn?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return YR(e,f)}switch(ZR(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case a2:return r;case Du:return"'"+r.replace(/'/g,"''")+"'";case u2:return"|"+L0(r,e.indent)+M0(P0(r,c));case l2:return">"+L0(r,e.indent)+M0(P0(QR(r,a),c));case sn:return'"'+eO(r)+'"';default:throw new lt("impossible error: invalid scalar style")}}()}function L0(e,r){var t=o2(e)?String(r):"",n=e[e.length-1]===`
|
97
|
+
`,i=n&&(e[e.length-2]===`
|
98
|
+
`||e===`
|
99
|
+
`),c=i?"+":n?"":"-";return t+c+`
|
100
|
+
`}function M0(e){return e[e.length-1]===`
|
101
|
+
`?e.slice(0,-1):e}function QR(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
102
|
+
`);return f=f!==-1?f:e.length,t.lastIndex=f,N0(e.slice(0,f),r)}(),i=e[0]===`
|
103
|
+
`||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
|
104
|
+
`:"")+N0(o,r),i=c}return n}function N0(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
|
105
|
+
`+e.slice(i,c),i=c+1),a=s;return o+=`
|
106
|
+
`,e.length-i>r&&a>i?o+=e.slice(i,a)+`
|
107
|
+
`+e.slice(a+1):o+=e.slice(i),o.slice(1)}function eO(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=$n(e,i),n=nt[t],!n&&zn(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||zR(t);return r}function tO(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Wt(e,r,s,!1,!1)||typeof s>"u"&&Wt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function j0(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Wt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Wt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ku(e,r)),e.dump&&qn===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function rO(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Wt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function nO(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new lt("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=ku(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Wt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&qn===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=ku(e,r)),Wt(e,r+1,l,!0,h)&&(e.dump&&qn===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function $0(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,Qm.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(e2.call(s.represent,o))n=s.represent[o](r,o);else throw new lt("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Wt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,$0(e,t,!1)||$0(e,t,!0);var s=Qm.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(nO(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(rO(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?j0(e,r-1,e.dump,i):j0(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(tO(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&JR(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new lt("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function iO(e,r){var t=[],n=[],i,c;for(Ru(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Ru(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Ru(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Ru(e[n[i]],r,t)}function sO(e,r){r=r||{};var t=new VR(r);t.noRefs||iO(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Wt(t,0,n,!0,!0)?t.dump+`
|
108
|
+
`:""}var oO=sO,aO={dump:oO};function el(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var P4=Jm.load,B4=Jm.loadAll,I4=aO.dump,L4=el("safeLoad","load"),M4=el("safeLoadAll","loadAll"),N4=el("safeDump","dump"),j4=Je(jk()),mt=class extends Error{constructor(e,r){var t;super(e),this.name="ConvertError",this.type=(t=r==null?void 0:r.type)!=null?t:"unknown",Error.captureStackTrace(this,mt)}},uO=/^(?!_)(.+)@(.+)$/;function xt({workspaceRoot:e}){let r=or.default.join(e,"package.json");try{return Wn.default.readJsonSync(r,"utf8")}catch(t){if(t&&typeof t=="object"&&"code"in t){if(t.code==="ENOENT")throw new mt(`no "package.json" found at ${e}`,{type:"package_json-missing"});if(t.code==="EJSONPARSE")throw new mt(`failed to parse "package.json" at ${e}`,{type:"package_json-parse_error"})}throw new Error(`unexpected error reading "package.json" at ${e}`)}}function tl({workspaceRoot:e}){let{packageManager:r}=xt({workspaceRoot:e});if(r)try{let t=r.match(uO);if(t){let[n,i]=t;return i}}catch{}}function Os({workspaceRoot:e}){let r=xt({workspaceRoot:e}),t=or.default.basename(e),{name:n=t,description:i}=r;return{name:n,description:i}}function H0({workspaceRoot:e}){let r=or.default.join(e,"pnpm-workspace.yaml");if(Wn.default.existsSync(r))try{let t=A0.load(Wn.default.readFileSync(r,"utf8"));if(t instanceof Object&&"packages"in t&&Array.isArray(t.packages))return t.packages}catch{throw new mt(`failed to parse ${r}`,{type:"pnpm-workspace_parse_error"})}return[]}function rl({root:e,lockFile:r,workspaceConfig:t}){let n=c=>or.default.join(e,c),i={root:e,lockfile:n(r),packageJson:n("package.json"),nodeModules:n("node_modules")};return t&&(i.workspaceConfig=n(t)),i}function nl({workspaceRoot:e,workspaceGlobs:r}){return r?r.flatMap(t=>{let n=`${t}/package.json`;return d2.default.sync(n,{onlyFiles:!0,absolute:!0,cwd:e})}).map(t=>{let n=or.default.dirname(t),{name:i,description:c}=Os({workspaceRoot:n});return{name:i,description:c,paths:{root:n,packageJson:t,nodeModules:or.default.join(n,"node_modules")}}}):[]}function lO({directory:e}){let r=or.default.resolve(process.cwd(),e);return{exists:Wn.default.existsSync(r),absolute:r}}function mn({packageManager:e,action:r,project:t}){let n=t.workspaceData.globs.length>0;return`${r==="remove"?"Removing":"Adding"} ${e} ${n?"workspaces":""} ${r==="remove"?"from":"to"} ${t.name}`}function cO({dependencyList:e,project:r,to:t}){let n=[];return r.workspaceData.workspaces.forEach(i=>{let{name:c}=i;if(e[c]){let a=e[c],s=a.startsWith("workspace:")?a.slice(10):a;e[c]=t.name==="pnpm"?`workspace:${s}`:s,n.push(c)}}),{dependencyList:e,updated:n}}function hn({project:e,workspace:r,to:t,logger:n,options:i}){if(["yarn","npm"].includes(t.name)&&["yarn","npm"].includes(e.packageManager))return;let c=xt({workspaceRoot:r.paths.root}),a={dependencies:[],devDependencies:[],peerDependencies:[],optionalDependencies:[]},s=["dependencies","devDependencies","peerDependencies","optionalDependencies"];s.forEach(h=>{let u=c[h];if(u){let{updated:d,dependencyList:p}=cO({dependencyList:u,project:e,to:t});c[h]=p,a[h]=d}});let o=h=>{let u=a[h].length;if(u>0)return`${f2.default.green(u.toString())} ${h}`},f=s.map(o).filter(Boolean),l=`./${p2.default.relative(e.paths.root,r.paths.packageJson)}`;if(f.length>=1){let h="updating";f.forEach((u,d)=>{f.length===1?h+=` ${u} in ${l}`:d===f.length-1?h+=`and ${u} in ${l}`:h+=` ${u}, `}),n.workspaceStep(h)}else n.workspaceStep(`no workspace dependencies found in ${l}`);i!=null&&i.dry||h2.default.writeJSONSync(r.paths.packageJson,c,{spaces:2})}async function m2(e){let r=cn.default.join(e.workspaceRoot,"pnpm-lock.yaml"),t=cn.default.join(e.workspaceRoot,"pnpm-workspace.yaml"),n=tl({workspaceRoot:e.workspaceRoot});return At.default.existsSync(r)||At.default.existsSync(t)||n==="pnpm"}async function hO(e){if(!await m2(e))throw new mt("Not a pnpm project",{type:"package_manager-unexpected"});let{name:r,description:t}=Os(e);return{name:r,description:t,packageManager:"pnpm",paths:rl({root:e.workspaceRoot,lockFile:"pnpm-lock.yaml",workspaceConfig:"pnpm-workspace.yaml"}),workspaceData:{globs:H0(e),workspaces:nl({workspaceGlobs:H0(e),...e})}}}async function fO(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(mn({action:"create",packageManager:"pnpm",project:r}));let a=xt({workspaceRoot:r.paths.root});n.rootHeader(),a.packageManager=`${t.name}@${t.version}`,n.rootStep(`adding "packageManager" field to ${r.name} root "package.json"`),i!=null&&i.dry||(At.default.writeJSONSync(r.paths.packageJson,a,{spaces:2}),c&&(n.rootStep('adding "pnpm-workspace.yaml"'),At.default.writeFileSync(cn.default.join(r.paths.root,"pnpm-workspace.yaml"),`packages:
|
109
|
+
${r.workspaceData.globs.map(s=>` - "${s}"`).join(`
|
110
|
+
`)}`))),c&&(hn({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>hn({workspace:s,project:r,to:t,logger:n,options:i})))}async function pO(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(mn({action:"remove",packageManager:"pnpm",project:r}));let c=xt({workspaceRoot:r.paths.root});if(r.paths.workspaceConfig&&i&&(t.subStep('removing "pnpm-workspace.yaml"'),n!=null&&n.dry||At.default.rmSync(r.paths.workspaceConfig,{force:!0})),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){At.default.writeJSONSync(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>At.default.rm(s,{recursive:!0,force:!0})))}catch{throw new mt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function dO(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${cn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||At.default.rmSync(r.paths.lockfile,{force:!0})}async function mO(e){let{project:r,logger:t,options:n}=e;if(r.packageManager!=="pnpm"&&(t.subStep(`converting ${cn.default.relative(r.paths.root,r.paths.lockfile)} to pnpm-lock.yaml`),!(n!=null&&n.dry)&&At.default.existsSync(r.paths.lockfile)))try{await(0,c2.default)("pnpm",["import"],{stdio:"ignore",cwd:r.paths.root})}finally{At.default.rmSync(r.paths.lockfile,{force:!0})}}var yO={detect:m2,read:hO,create:fO,remove:pO,clean:dO,convertLock:mO},gO=yO;async function y2(e){let r=Vn.default.join(e.workspaceRoot,"package-lock.json"),t=tl({workspaceRoot:e.workspaceRoot});return ar.default.existsSync(r)||t==="npm"}async function bO(e){if(!await y2(e))throw new mt("Not an npm project",{type:"package_manager-unexpected"});let r=xt(e),{name:t,description:n}=Os(e);return{name:t,description:n,packageManager:"npm",paths:rl({root:e.workspaceRoot,lockFile:"package-lock.json"}),workspaceData:{globs:r.workspaces||[],workspaces:nl({workspaceGlobs:r.workspaces,...e})}}}async function vO(e){let{project:r,options:t,to:n,logger:i}=e,c=r.workspaceData.globs.length>0;i.mainStep(mn({packageManager:"npm",action:"create",project:r}));let a=xt({workspaceRoot:r.paths.root});i.rootHeader(),i.rootStep(`adding "packageManager" field to ${Vn.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${n.name}@${n.version}`,c?(i.rootStep(`adding "workspaces" field to ${Vn.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,t!=null&&t.dry||ar.default.writeJSONSync(r.paths.packageJson,a,{spaces:2}),hn({workspace:{name:"root",paths:r.paths},project:r,to:n,logger:i,options:t}),i.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>hn({workspace:s,project:r,to:n,logger:i,options:t}))):t!=null&&t.dry||ar.default.writeJSONSync(r.paths.packageJson,a,{spaces:2})}async function _O(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(mn({packageManager:"npm",action:"remove",project:r}));let c=xt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){ar.default.writeJSONSync(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>ar.default.rm(s,{recursive:!0,force:!0})))}catch{throw new mt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function wO(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Vn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||ar.default.rmSync(r.paths.lockfile,{force:!0})}async function EO(e){let{project:r,options:t}=e;r.packageManager!=="npm"&&(t!=null&&t.dry||ar.default.rmSync(r.paths.lockfile,{force:!0}))}var SO={detect:y2,read:bO,create:vO,remove:_O,clean:wO,convertLock:EO},AO=SO;async function g2(e){let r=Yn.default.join(e.workspaceRoot,"yarn.lock"),t=tl({workspaceRoot:e.workspaceRoot});return ur.default.existsSync(r)||t==="yarn"}async function xO(e){if(!await g2(e))throw new mt("Not a yarn project",{type:"package_manager-unexpected"});let r=xt(e),{name:t,description:n}=Os(e);return{name:t,description:n,packageManager:"yarn",paths:rl({root:e.workspaceRoot,lockFile:"yarn.lock"}),workspaceData:{globs:r.workspaces||[],workspaces:nl({workspaceGlobs:r.workspaces,...e})}}}async function CO(e){let{project:r,to:t,logger:n,options:i}=e,c=r.workspaceData.globs.length>0;n.mainStep(mn({packageManager:"yarn",action:"create",project:r}));let a=xt({workspaceRoot:r.paths.root});n.rootHeader(),n.rootStep(`adding "packageManager" field to ${Yn.default.relative(r.paths.root,r.paths.packageJson)}`),a.packageManager=`${t.name}@${t.version}`,c?(n.rootStep(`adding "workspaces" field to ${Yn.default.relative(r.paths.root,r.paths.packageJson)}`),a.workspaces=r.workspaceData.globs,i!=null&&i.dry||ur.default.writeJSONSync(r.paths.packageJson,a,{spaces:2}),hn({workspace:{name:"root",paths:r.paths},project:r,to:t,logger:n,options:i}),n.workspaceHeader(),r.workspaceData.workspaces.forEach(s=>hn({workspace:s,project:r,to:t,logger:n,options:i}))):i!=null&&i.dry||ur.default.writeJSONSync(r.paths.packageJson,a,{spaces:2})}async function kO(e){let{project:r,logger:t,options:n}=e,i=r.workspaceData.globs.length>0;t.mainStep(mn({packageManager:"yarn",action:"remove",project:r}));let c=xt({workspaceRoot:r.paths.root});if(i&&(t.subStep(`removing "workspaces" field in ${r.name} root "package.json"`),delete c.workspaces),t.subStep(`removing "packageManager" field in ${r.name} root "package.json"`),delete c.packageManager,!(n!=null&&n.dry)){ur.default.writeJSONSync(r.paths.packageJson,c,{spaces:2});let a=[r.paths.nodeModules,...r.workspaceData.workspaces.map(s=>s.paths.nodeModules)];try{t.subStep('removing "node_modules"'),await Promise.all(a.map(s=>ur.default.rm(s,{recursive:!0,force:!0})))}catch{throw new mt("Failed to remove node_modules",{type:"error_removing_node_modules"})}}}async function DO(e){let{project:r,logger:t,options:n}=e;t.subStep(`removing ${Yn.default.relative(r.paths.root,r.paths.lockfile)}`),n!=null&&n.dry||ur.default.rmSync(r.paths.lockfile,{force:!0})}async function RO(e){let{project:r,options:t}=e;r.packageManager!=="yarn"&&(t!=null&&t.dry||ur.default.rmSync(r.paths.lockfile,{force:!0}))}var OO={detect:g2,read:xO,create:CO,remove:kO,clean:DO,convertLock:RO},TO=OO,FO={pnpm:gO,yarn:TO,npm:AO},b2=FO;async function ei({root:e}){let{exists:r,absolute:t}=lO({directory:e});if(!r)throw new mt(`Could not find directory at ${t}. Ensure the directory exists.`,{type:"invalid_directory"});for(let{detect:n,read:i}of Object.values(b2))if(await n({workspaceRoot:t}))return i({workspaceRoot:t});throw new mt("Could not determine package manager. Add `packageManager` to `package.json` or ensure a lockfile is present.",{type:"package_manager-unable_to_detect"})}var v2=require("child_process");function Ct(e,r,t){try{return(0,v2.execSync)(e,{stdio:"pipe",...r}).toString("utf8").trim()}catch{return t||void 0}}function jO(e,r){let{from:t}=r;if(t)return t;let n=Ct("turbo --version",{cwd:e.paths.root});if(n)return n;let{packageManager:i}=e;if(i==="yarn")return Ct("yarn turbo --version",{cwd:e.paths.root});if(i==="pnpm")return Ct("pnpm turbo --version",{cwd:e.paths.root});if(i==="npm")return Ct("npm exec -c 'turbo --version'",{cwd:e.paths.root})}var _2=jO;var w2=Pe(require("axios")),$O="https://registry.npmjs.org";async function HO({packageName:e}){try{return(await w2.default.get(`${$O}/${e}`)).data}catch{throw new Error(`Unable to fetch the latest version of ${e}`)}}async function il({to:e}){let r=await HO({packageName:"turbo"}),{"dist-tags":t,versions:n}=r;if(e){if(t[e]||n[e])return e;throw new Error(`turbo@${e} does not exist`)}return t.latest}var Rr=require("semver");var Ts=Pe(require("path")),S2=Pe(require("fs-extra")),E2=process.env.NODE_ENV==="test"?Ts.default.join(__dirname,"../transforms"):Ts.default.join(__dirname,"./transforms");function ti(){return S2.default.readdirSync(E2).map(r=>{let t=Ts.default.join(E2,r);try{return require(t).default}catch{return}}).filter(Boolean)}function UO({fromVersion:e,toVersion:r}){let t=ti().filter(n=>(0,Rr.gt)(n.introducedIn,e)&&(0,Rr.lte)(n.introducedIn,r));return t.sort((n,i)=>(0,Rr.gt)(n.introducedIn,i.introducedIn)?1:(0,Rr.eq)(n.introducedIn,i.introducedIn)?0:-1),t}var A2=UO;var sl=Pe(require("chalk")),x2=Pe(require("is-git-clean"));function ri({directory:e,force:r}){let t=!1,n="Unable to determine if git directory is clean";try{t=x2.default.sync(e||process.cwd()),n="Git directory is not clean"}catch(i){i&&i.stderr&&i.stderr.indexOf("not a git repository")>=0&&(t=!0)}t||(r?console.log(`${sl.default.yellow("WARNING")}: ${n}. Forcibly continuing...`):(console.log("Thank you for using @turbo/codemod!"),console.log(sl.default.yellow(`
|
3
111
|
But before we continue, please stash or commit your git changes.`)),console.log(`
|
4
|
-
You may use the --force flag to override this safety check.`),process.exit(1)))}var _=i(require("path")),pe=i(require("fs"));function k({directory:r}){let e=_.default.isAbsolute(r)?r:_.default.join(process.cwd(),r);return{exists:pe.default.existsSync(e),absolute:e}}var A=i(require("os")),K=i(require("path")),O=i(require("fs-extra")),ue=require("semver");var I=require("child_process");function J(r,e){switch(r){case"yarn":return(0,I.execSync)("yarn --version",{cwd:e}).toString().trim();case"pnpm":return(0,I.execSync)("pnpm --version",{cwd:e}).toString().trim();case"npm":return(0,I.execSync)("npm --version",{cwd:e}).toString().trim()}}function Ae(){return{yarn:u("yarn global bin",{cwd:A.default.tmpdir()}),npm:u("npm bin --global",{cwd:A.default.tmpdir()}),pnpm:u("pnpm bin --global",{cwd:A.default.tmpdir()})}}function Oe(r,e="latest"){switch(r){case"yarn":return`yarn global add turbo@${e}`;case"npm":return`npm install turbo@${e} --global`;case"pnpm":return`pnpm install turbo@${e} --global`}}function Ue({packageManager:r,packageManagerVersion:e,installType:t,isUsingWorkspaces:n,to:o="latest"}){let s=a=>a.filter(Boolean).join(" ");switch(r){case"yarn":return(0,ue.gte)(e,"2.0.0")?s(["yarn","add",`turbo@${o}`,t==="devDependencies"&&"--dev"]):s(["yarn","add",`turbo@${o}`,t==="devDependencies"&&"--dev",n&&"-W"]);case"npm":return s(["npm","install",`turbo@${o}`,t==="devDependencies"&&"--save-dev"]);case"pnpm":return s(["pnpm","install",`turbo@${o}`,t==="devDependencies"&&"--save-dev",n&&"-w"])}}function Fe({directory:r}){let e=K.default.join(r,"package.json"),t=K.default.join(r,"pnpm-workspace.yaml"),n=O.default.existsSync(t);if(!O.default.existsSync(e))return console.error(`Unable to find package.json at ${e}`),{installType:void 0,isUsingWorkspaces:void 0};let o=O.default.readJsonSync(e),s=o.devDependencies&&"turbo"in o.devDependencies,a=o.dependencies&&"turbo"in o.dependencies,l="workspaces"in o||n;return a||s?{installType:a?"dependencies":"devDependencies",isUsingWorkspaces:l}:{installType:void 0,isUsingWorkspaces:l}}function Y({directory:r,to:e}){let t=u("turbo bin",{cwd:r,stdio:"pipe"}),n=Ae(),o=Object.keys(n).find(s=>{let a=n[s];return a&&t?t.includes(a):!1});if(t&&o)return Oe(o,e);{let s=y({directory:r}),{installType:a,isUsingWorkspaces:l}=Fe({directory:r});if(s&&a){let f=J(s,r);return Ue({packageManager:s,packageManagerVersion:f,installType:a,isUsingWorkspaces:l,to:e})}}}var j=i(require("chalk"));var U=i(require("chalk")),F=require("diff"),$=i(require("fs-extra")),ge=i(require("os")),H=i(require("path")),M=class{constructor(e){this.changes=[];if(this.filePath=e.filePath,this.rootPath=e.rootPath,this.after=e.after,this.error=e.error,e.before===void 0)try{H.default.extname(e.filePath)===".json"?this.before=$.default.readJsonSync(e.filePath):this.before=$.default.readFileSync(e.filePath)}catch{this.before=""}else e.before===null?this.before="":this.before=e.before;e.after?typeof this.before=="object"||typeof e.after=="object"?this.changes=(0,F.diffJson)(this.before,e.after):this.changes=(0,F.diffLines)(this.before,e.after):this.changes=[]}fileName(){return H.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?$.default.writeJsonSync(this.filePath,this.after,{spaces:2}):$.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(e=>e.added).length}deletions(){return this.changes.filter(e=>e.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(e){e.diff?(this.changes.forEach(t=>{t.added?process.stdout.write(U.default.green(t.value)):t.removed?process.stdout.write(U.default.red(t.value)):process.stdout.write(U.default.dim(t.value))}),console.log(ge.default.EOL)):console.log(this.after)}};var d=i(require("chalk")),C=class{constructor(e){this.transform=e.transformer,this.dry=e.dry}modified(...e){console.log(d.default.green(" MODIFIED "),...e,this.dry?d.default.dim("(dry run)"):"")}unchanged(...e){console.log(d.default.gray(" UNCHANGED "),...e,this.dry?d.default.dim("(dry run)"):"")}skipped(...e){console.log(d.default.yellow(" SKIPPED "),...e,this.dry?d.default.dim("(dry run)"):"")}error(...e){console.log(d.default.red(" ERROR "),...e,this.dry?d.default.dim("(dry run)"):"")}info(...e){console.log(d.default.bold(" INFO "),...e,this.dry?d.default.dim("(dry run)"):"")}};var z=class{constructor(e){this.modifications={};this.transform=e.transformer,this.rootPath=e.rootPath,this.dry=e.dry,this.print=e.print,this.logger=new C(e)}abortTransform(e){return this.logger.error(e.reason),{fatalError:new Error(e.reason),changes:e.changes||{}}}modifyFile(e){this.modifications[e.filePath]=new M({rootPath:this.rootPath,...e})}finish(){let e={changes:{}};return Object.keys(this.modifications).forEach(n=>{let o=this.modifications[n],s={action:"unchanged",additions:o.additions(),deletions:o.deletions()};if(o.hasChanges()){if(this.dry)s.action="skipped",this.logger.skipped(j.default.dim(o.fileName()));else try{o.write(),s.action="modified",this.logger.modified(j.default.bold(o.fileName()))}catch(a){let l="Unknown error";a instanceof Error&&(l=a.message),s.error=new Error(l),s.action="error",this.logger.error(o.fileName(),l)}this.print&&o.log({diff:!0})}else this.logger.unchanged(j.default.dim(o.fileName()));e.changes[o.fileName()]=s}),Object.keys(e.changes).some(n=>e.changes[n].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:e.changes}):e}static logResults(e){let t=Object.keys(e.changes);if(console.log(),t.length>0){console.log(j.default.bold("Results:"));let n={};t.forEach(o=>{var a;let s=e.changes[o];n[o]={action:s.action,additions:s.additions,deletions:s.deletions,error:((a=s.error)==null?void 0:a.message)||"None"}}),console.table(n),console.log()}}},E=z;var he=i(require("path")),ye=require("fs-extra"),Se=["package.json","turbo.json",".git"];function Q({directory:r}){return Se.some(e=>(0,ye.existsSync)(he.default.join(r,e)))}function g({message:r,success:e}){return e?(console.log(m.default.bold(m.default.green("Migration completed"))),r&&console.log(r),process.exit(0)):(console.log(m.default.bold(m.default.red("Migration failed"))),r&&console.log(r),process.exit(1))}async function S(r,e){e.dry||T({directory:r,force:e.force});let t=await be.default.prompt([{type:"input",name:"directoryInput",message:"Where is the root of the repo to migrate?",when:!r,default:".",validate:c=>{let{exists:p,absolute:w}=k({directory:c});return p?!0:`Directory ${m.default.dim(`(${w})`)} does not exist`},filter:c=>c.trim()}]),{directoryInput:n=r}=t,{exists:o,absolute:s}=k({directory:n});if(!o)return g({success:!1,message:`Directory ${m.default.dim(`(${s})`)} does not exist`});if(!Q({directory:s}))return g({success:!1,message:`Directory (${m.default.dim(s)}) does not appear to be a repository`});let a=ae(n,e);if(!a)return g({success:!1,message:`Unable to infer the version of turbo being used by ${r}`});let l=e.to;try{l=await q(e)}catch(c){let p="UNKNOWN_ERROR";return c instanceof Error&&(p=c.message),g({success:!1,message:p})}if(!l)return g({success:!1,message:"Unable to fetch the latest version of turbo"});if(a===l)return g({success:!0,message:`Nothing to do, current version (${m.default.bold(a)}) is the same as the requested version (${m.default.bold(l)})`});let f=fe({fromVersion:a,toVersion:l});if(f.length===0&&console.log(`No codemods required to migrate from ${a} to ${l}`,x.default.EOL),console.log(`Upgrading turbo from ${m.default.bold(a)} to ${m.default.bold(l)} (${f.length===0?"no codemods required":`${f.length} required codemod${f.length===1?"":"s"}`})`,x.default.EOL),f.map((c,p)=>{console.log(`(${p+1}/${f.length}) ${m.default.bold(`Running ${c.value}`)}`);let w=c.transformer({root:n,options:e});return E.logResults(w),w}).some(c=>c.fatalError||Object.keys(c.changes).some(p=>c.changes[p].error)))return g({success:!1,message:"Could not complete migration due to codemod errors. Please fix the errors and try again."});let h=Y({directory:n,to:e.to});if(!h)return g({success:!1,message:"Unable to determine upgrade command"});e.install?e.dry?console.log(`Upgrading turbo with ${m.default.bold(h)} ${m.default.dim("(dry run)")}`,x.default.EOL):(console.log(`Upgrading turbo with ${m.default.bold(h)}`,x.default.EOL),(0,ke.execSync)(h,{cwd:n})):console.log(`Upgrade turbo with ${m.default.bold(h)}`,x.default.EOL),g({success:!0})}var D=i(require("chalk")),we=i(require("inquirer"));async function N(r,e,t){let n=P();if(t.list)return console.log(n.map(c=>`- ${D.default.cyan(c.value)}`).join(`
|
5
|
-
`)),process.exit(0);t.dry||T({directory:e,force:t.force});let o=await we.default.prompt([{type:"input",name:"directoryInput",message:"Where is the root of the repo where the transform should run?",when:!e,default:".",validate:c=>{let{exists:p,absolute:w}=k({directory:c});return p?!0:`Directory ${D.default.dim(`(${w})`)} does not exist`},filter:c=>c.trim()},{type:"list",name:"transformerInput",message:"Which transform would you like to apply?",when:!r,pageSize:n.length,choices:n}]),{directoryInput:s=e,transformerInput:a=r}=o,{exists:l,absolute:f}=k({directory:s});if(!l)return console.error(`Directory ${D.default.dim(`(${f})`)} does not exist`),process.exit(1);let ee=n.map(c=>c.value),W=n.find(c=>c.value===a);if(!W)return console.error(`Invalid transform choice ${D.default.dim(`(${r})`)}, pick one of:`),console.error(ee.map(c=>`- ${c}`).join(`
|
6
|
-
|
112
|
+
You may use the --force flag to override this safety check.`),process.exit(1)))}var ol=Pe(require("path")),C2=Pe(require("fs"));function Or({directory:e}){let r=ol.default.isAbsolute(e)?e:ol.default.join(process.cwd(),e);return{exists:C2.default.existsSync(r),absolute:r}}var my=Pe(require("path")),Gl=Pe(require("fs-extra")),yy=require("semver");var qO=Object.create,al=Object.defineProperty,GO=Object.getOwnPropertyDescriptor,zO=Object.getOwnPropertyNames,WO=Object.getPrototypeOf,VO=Object.prototype.hasOwnProperty,le=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(r,t)=>(typeof require!="undefined"?require:r)[t]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')}),YO=(e,r)=>()=>(e&&(r=e(e=0)),r),ee=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),k2=(e,r)=>{for(var t in r)al(e,t,{get:r[t],enumerable:!0})},KO=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let i of zO(r))!VO.call(e,i)&&i!==t&&al(e,i,{get:()=>r[i],enumerable:!(n=GO(r,i))||n.enumerable});return e},je=(e,r,t)=>(t=e!=null?qO(WO(e)):{},KO(r||!e||!e.__esModule?al(t,"default",{value:e,enumerable:!0}):t,e)),K=YO(()=>{});var XO=ee((e,r)=>{"use strict";K();var t=(n,i)=>{for(let c of Reflect.ownKeys(i))Object.defineProperty(n,c,Object.getOwnPropertyDescriptor(i,c));return n};r.exports=t,r.exports.default=t}),Fs=ee((e,r)=>{"use strict";K();var t=XO(),n=new WeakMap,i=(c,a={})=>{if(typeof c!="function")throw new TypeError("Expected a function");let s,o=0,f=c.displayName||c.name||"<anonymous>",l=function(...h){if(n.set(l,++o),o===1)s=c.apply(this,h),c=null;else if(a.throw===!0)throw new Error(`Function \`${f}\` can only be called once`);return s};return t(l,c),n.set(l,o),l};r.exports=i,r.exports.default=i,r.exports.callCount=c=>{if(!n.has(c))throw new Error(`The given function \`${c.name}\` is not wrapped by the \`onetime\` package`);return n.get(c)}}),ZO=ee((e,r)=>{K(),r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],process.platform!=="win32"&&r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),process.platform==="linux"&&r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}),Ps=ee((e,r)=>{K();var t=global.process,n=function(g){return g&&typeof g=="object"&&typeof g.removeListener=="function"&&typeof g.emit=="function"&&typeof g.reallyExit=="function"&&typeof g.listeners=="function"&&typeof g.kill=="function"&&typeof g.pid=="number"&&typeof g.on=="function"};n(t)?(i=le("assert"),c=ZO(),a=/^win/i.test(t.platform),s=le("events"),typeof s!="function"&&(s=s.EventEmitter),t.__signal_exit_emitter__?o=t.__signal_exit_emitter__:(o=t.__signal_exit_emitter__=new s,o.count=0,o.emitted={}),o.infinite||(o.setMaxListeners(1/0),o.infinite=!0),r.exports=function(g,S){if(!n(global.process))return function(){};i.equal(typeof g,"function","a callback must be provided for exit handler"),u===!1&&d();var E="exit";S&&S.alwaysLast&&(E="afterexit");var v=function(){o.removeListener(E,g),o.listeners("exit").length===0&&o.listeners("afterexit").length===0&&f()};return o.on(E,g),v},f=function(){!u||!n(global.process)||(u=!1,c.forEach(function(g){try{t.removeListener(g,h[g])}catch{}}),t.emit=b,t.reallyExit=p,o.count-=1)},r.exports.unload=f,l=function(g,S,E){o.emitted[g]||(o.emitted[g]=!0,o.emit(g,S,E))},h={},c.forEach(function(g){h[g]=function(){if(n(global.process)){var S=t.listeners(g);S.length===o.count&&(f(),l("exit",null,g),l("afterexit",null,g),a&&g==="SIGHUP"&&(g="SIGINT"),t.kill(t.pid,g))}}}),r.exports.signals=function(){return c},u=!1,d=function(){u||!n(global.process)||(u=!0,o.count+=1,c=c.filter(function(g){try{return t.on(g,h[g]),!0}catch{return!1}}),t.emit=_,t.reallyExit=y)},r.exports.load=d,p=t.reallyExit,y=function(g){!n(global.process)||(t.exitCode=g||0,l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),p.call(t,t.exitCode))},b=t.emit,_=function(g,S){if(g==="exit"&&n(global.process)){S!==void 0&&(t.exitCode=S);var E=b.apply(this,arguments);return l("exit",t.exitCode,null),l("afterexit",t.exitCode,null),E}else return b.apply(this,arguments)}):r.exports=function(){return function(){}};var i,c,a,s,o,f,l,h,u,d,p,y,b,_});var JO=ee((e,r)=>{"use strict";K();var t=/[|\\{}()[\]^$+*?.]/g;r.exports=function(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(t,"\\$&")}}),QO=ee((e,r)=>{"use strict";K(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),D2=ee((e,r)=>{K();var t=QO(),n={};for(i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var i,c=r.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(o in c)if(c.hasOwnProperty(o)){if(!("channels"in c[o]))throw new Error("missing channels property: "+o);if(!("labels"in c[o]))throw new Error("missing channel labels property: "+o);if(c[o].labels.length!==c[o].channels)throw new Error("channel and label counts mismatch: "+o);a=c[o].channels,s=c[o].labels,delete c[o].channels,delete c[o].labels,Object.defineProperty(c[o],"channels",{value:a}),Object.defineProperty(c[o],"labels",{value:s})}var a,s,o;c.rgb.hsl=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.min(h,u,d),y=Math.max(h,u,d),b=y-p,_,g,S;return y===p?_=0:h===y?_=(u-d)/b:u===y?_=2+(d-h)/b:d===y&&(_=4+(h-u)/b),_=Math.min(_*60,360),_<0&&(_+=360),S=(p+y)/2,y===p?g=0:S<=.5?g=b/(y+p):g=b/(2-y-p),[_,g*100,S*100]},c.rgb.hsv=function(l){var h,u,d,p,y,b=l[0]/255,_=l[1]/255,g=l[2]/255,S=Math.max(b,_,g),E=S-Math.min(b,_,g),v=function(m){return(S-m)/6/E+1/2};return E===0?p=y=0:(y=E/S,h=v(b),u=v(_),d=v(g),b===S?p=d-u:_===S?p=1/3+h-d:g===S&&(p=2/3+u-h),p<0?p+=1:p>1&&(p-=1)),[p*360,y*100,S*100]},c.rgb.hwb=function(l){var h=l[0],u=l[1],d=l[2],p=c.rgb.hsl(l)[0],y=1/255*Math.min(h,Math.min(u,d));return d=1-1/255*Math.max(h,Math.max(u,d)),[p,y*100,d*100]},c.rgb.cmyk=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p,y,b,_;return _=Math.min(1-h,1-u,1-d),p=(1-h-_)/(1-_)||0,y=(1-u-_)/(1-_)||0,b=(1-d-_)/(1-_)||0,[p*100,y*100,b*100,_*100]};function f(l,h){return Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)+Math.pow(l[2]-h[2],2)}c.rgb.keyword=function(l){var h=n[l];if(h)return h;var u=1/0,d;for(var p in t)if(t.hasOwnProperty(p)){var y=t[p],b=f(l,y);b<u&&(u=b,d=p)}return d},c.keyword.rgb=function(l){return t[l]},c.rgb.xyz=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255;h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,u=u>.04045?Math.pow((u+.055)/1.055,2.4):u/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92;var p=h*.4124+u*.3576+d*.1805,y=h*.2126+u*.7152+d*.0722,b=h*.0193+u*.1192+d*.9505;return[p*100,y*100,b*100]},c.rgb.lab=function(l){var h=c.rgb.xyz(l),u=h[0],d=h[1],p=h[2],y,b,_;return u/=95.047,d/=100,p/=108.883,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,y=116*d-16,b=500*(u-d),_=200*(d-p),[y,b,_]},c.hsl.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p,y,b,_,g;if(u===0)return g=d*255,[g,g,g];d<.5?y=d*(1+u):y=d+u-d*u,p=2*d-y,_=[0,0,0];for(var S=0;S<3;S++)b=h+1/3*-(S-1),b<0&&b++,b>1&&b--,6*b<1?g=p+(y-p)*6*b:2*b<1?g=y:3*b<2?g=p+(y-p)*(2/3-b)*6:g=p,_[S]=g*255;return _},c.hsl.hsv=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=u,y=Math.max(d,.01),b,_;return d*=2,u*=d<=1?d:2-d,p*=y<=1?y:2-y,_=(d+u)/2,b=d===0?2*p/(y+p):2*u/(d+u),[h,b*100,_*100]},c.hsv.rgb=function(l){var h=l[0]/60,u=l[1]/100,d=l[2]/100,p=Math.floor(h)%6,y=h-Math.floor(h),b=255*d*(1-u),_=255*d*(1-u*y),g=255*d*(1-u*(1-y));switch(d*=255,p){case 0:return[d,g,b];case 1:return[_,d,b];case 2:return[b,d,g];case 3:return[b,_,d];case 4:return[g,b,d];case 5:return[d,b,_]}},c.hsv.hsl=function(l){var h=l[0],u=l[1]/100,d=l[2]/100,p=Math.max(d,.01),y,b,_;return _=(2-u)*d,y=(2-u)*p,b=u*p,b/=y<=1?y:2-y,b=b||0,_/=2,[h,b*100,_*100]},c.hwb.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100,p=u+d,y,b,_,g;p>1&&(u/=p,d/=p),y=Math.floor(6*h),b=1-d,_=6*h-y,y&1&&(_=1-_),g=u+_*(b-u);var S,E,v;switch(y){default:case 6:case 0:S=b,E=g,v=u;break;case 1:S=g,E=b,v=u;break;case 2:S=u,E=b,v=g;break;case 3:S=u,E=g,v=b;break;case 4:S=g,E=u,v=b;break;case 5:S=b,E=u,v=g;break}return[S*255,E*255,v*255]},c.cmyk.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p=l[3]/100,y,b,_;return y=1-Math.min(1,h*(1-p)+p),b=1-Math.min(1,u*(1-p)+p),_=1-Math.min(1,d*(1-p)+p),[y*255,b*255,_*255]},c.xyz.rgb=function(l){var h=l[0]/100,u=l[1]/100,d=l[2]/100,p,y,b;return p=h*3.2406+u*-1.5372+d*-.4986,y=h*-.9689+u*1.8758+d*.0415,b=h*.0557+u*-.204+d*1.057,p=p>.0031308?1.055*Math.pow(p,1/2.4)-.055:p*12.92,y=y>.0031308?1.055*Math.pow(y,1/2.4)-.055:y*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,p=Math.min(Math.max(0,p),1),y=Math.min(Math.max(0,y),1),b=Math.min(Math.max(0,b),1),[p*255,y*255,b*255]},c.xyz.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return h/=95.047,u/=100,d/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,u=u>.008856?Math.pow(u,1/3):7.787*u+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=116*u-16,y=500*(h-u),b=200*(u-d),[p,y,b]},c.lab.xyz=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;y=(h+16)/116,p=u/500+y,b=y-d/200;var _=Math.pow(y,3),g=Math.pow(p,3),S=Math.pow(b,3);return y=_>.008856?_:(y-16/116)/7.787,p=g>.008856?g:(p-16/116)/7.787,b=S>.008856?S:(b-16/116)/7.787,p*=95.047,y*=100,b*=108.883,[p,y,b]},c.lab.lch=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return p=Math.atan2(d,u),y=p*360/2/Math.PI,y<0&&(y+=360),b=Math.sqrt(u*u+d*d),[h,b,y]},c.lch.lab=function(l){var h=l[0],u=l[1],d=l[2],p,y,b;return b=d/360*2*Math.PI,p=u*Math.cos(b),y=u*Math.sin(b),[h,p,y]},c.rgb.ansi16=function(l){var h=l[0],u=l[1],d=l[2],p=1 in arguments?arguments[1]:c.rgb.hsv(l)[2];if(p=Math.round(p/50),p===0)return 30;var y=30+(Math.round(d/255)<<2|Math.round(u/255)<<1|Math.round(h/255));return p===2&&(y+=60),y},c.hsv.ansi16=function(l){return c.rgb.ansi16(c.hsv.rgb(l),l[2])},c.rgb.ansi256=function(l){var h=l[0],u=l[1],d=l[2];if(h===u&&u===d)return h<8?16:h>248?231:Math.round((h-8)/247*24)+232;var p=16+36*Math.round(h/255*5)+6*Math.round(u/255*5)+Math.round(d/255*5);return p},c.ansi16.rgb=function(l){var h=l%10;if(h===0||h===7)return l>50&&(h+=3.5),h=h/10.5*255,[h,h,h];var u=(~~(l>50)+1)*.5,d=(h&1)*u*255,p=(h>>1&1)*u*255,y=(h>>2&1)*u*255;return[d,p,y]},c.ansi256.rgb=function(l){if(l>=232){var h=(l-232)*10+8;return[h,h,h]}l-=16;var u,d=Math.floor(l/36)/5*255,p=Math.floor((u=l%36)/6)/5*255,y=u%6/5*255;return[d,p,y]},c.rgb.hex=function(l){var h=((Math.round(l[0])&255)<<16)+((Math.round(l[1])&255)<<8)+(Math.round(l[2])&255),u=h.toString(16).toUpperCase();return"000000".substring(u.length)+u},c.hex.rgb=function(l){var h=l.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!h)return[0,0,0];var u=h[0];h[0].length===3&&(u=u.split("").map(function(_){return _+_}).join(""));var d=parseInt(u,16),p=d>>16&255,y=d>>8&255,b=d&255;return[p,y,b]},c.rgb.hcg=function(l){var h=l[0]/255,u=l[1]/255,d=l[2]/255,p=Math.max(Math.max(h,u),d),y=Math.min(Math.min(h,u),d),b=p-y,_,g;return b<1?_=y/(1-b):_=0,b<=0?g=0:p===h?g=(u-d)/b%6:p===u?g=2+(d-h)/b:g=4+(h-u)/b+4,g/=6,g%=1,[g*360,b*100,_*100]},c.hsl.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1,p=0;return u<.5?d=2*h*u:d=2*h*(1-u),d<1&&(p=(u-.5*d)/(1-d)),[l[0],d*100,p*100]},c.hsv.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=h*u,p=0;return d<1&&(p=(u-d)/(1-d)),[l[0],d*100,p*100]},c.hcg.rgb=function(l){var h=l[0]/360,u=l[1]/100,d=l[2]/100;if(u===0)return[d*255,d*255,d*255];var p=[0,0,0],y=h%1*6,b=y%1,_=1-b,g=0;switch(Math.floor(y)){case 0:p[0]=1,p[1]=b,p[2]=0;break;case 1:p[0]=_,p[1]=1,p[2]=0;break;case 2:p[0]=0,p[1]=1,p[2]=b;break;case 3:p[0]=0,p[1]=_,p[2]=1;break;case 4:p[0]=b,p[1]=0,p[2]=1;break;default:p[0]=1,p[1]=0,p[2]=_}return g=(1-u)*d,[(u*p[0]+g)*255,(u*p[1]+g)*255,(u*p[2]+g)*255]},c.hcg.hsv=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h),p=0;return d>0&&(p=h/d),[l[0],p*100,d*100]},c.hcg.hsl=function(l){var h=l[1]/100,u=l[2]/100,d=u*(1-h)+.5*h,p=0;return d>0&&d<.5?p=h/(2*d):d>=.5&&d<1&&(p=h/(2*(1-d))),[l[0],p*100,d*100]},c.hcg.hwb=function(l){var h=l[1]/100,u=l[2]/100,d=h+u*(1-h);return[l[0],(d-h)*100,(1-d)*100]},c.hwb.hcg=function(l){var h=l[1]/100,u=l[2]/100,d=1-u,p=d-h,y=0;return p<1&&(y=(d-p)/(1-p)),[l[0],p*100,y*100]},c.apple.rgb=function(l){return[l[0]/65535*255,l[1]/65535*255,l[2]/65535*255]},c.rgb.apple=function(l){return[l[0]/255*65535,l[1]/255*65535,l[2]/255*65535]},c.gray.rgb=function(l){return[l[0]/100*255,l[0]/100*255,l[0]/100*255]},c.gray.hsl=c.gray.hsv=function(l){return[0,0,l[0]]},c.gray.hwb=function(l){return[0,100,l[0]]},c.gray.cmyk=function(l){return[0,0,0,l[0]]},c.gray.lab=function(l){return[l[0],0,0]},c.gray.hex=function(l){var h=Math.round(l[0]/100*255)&255,u=(h<<16)+(h<<8)+h,d=u.toString(16).toUpperCase();return"000000".substring(d.length)+d},c.rgb.gray=function(l){var h=(l[0]+l[1]+l[2])/3;return[h/255*100]}}),eT=ee((e,r)=>{K();var t=D2();function n(){for(var s={},o=Object.keys(t),f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){var o=n(),f=[s];for(o[s].distance=0;f.length;)for(var l=f.pop(),h=Object.keys(t[l]),u=h.length,d=0;d<u;d++){var p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){for(var f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){for(var o=i(s),f={},l=Object.keys(o),h=l.length,u=0;u<h;u++){var d=l[u],p=o[d];p.parent!==null&&(f[d]=a(d,o))}return f}}),tT=ee((e,r)=>{K();var t=D2(),n=eT(),i={},c=Object.keys(t);function a(o){var f=function(l){return l==null?l:(arguments.length>1&&(l=Array.prototype.slice.call(arguments)),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){var f=function(l){if(l==null)return l;arguments.length>1&&(l=Array.prototype.slice.call(arguments));var h=o(l);if(typeof h=="object")for(var u=h.length,d=0;d<u;d++)h[d]=Math.round(h[d]);return h};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(function(o){i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});var f=n(o),l=Object.keys(f);l.forEach(function(h){var u=f[h];i[o][h]=s(u),i[o][h].raw=a(u)})}),r.exports=i}),rT=ee((e,r)=>{"use strict";K();var t=tT(),n=(s,o)=>function(){return`\x1B[${s.apply(t,arguments)+o}m`},i=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};5;${f}m`},c=(s,o)=>function(){let f=s.apply(t,arguments);return`\x1B[${38+o};2;${f[0]};${f[1]};${f[2]}m`};function a(){let s=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(let h of Object.keys(o)){let u=o[h];for(let d of Object.keys(u)){let p=u[d];o[d]={open:`\x1B[${p[0]}m`,close:`\x1B[${p[1]}m`},u[d]=o[d],s.set(p[0],p[1])}Object.defineProperty(o,h,{value:u,enumerable:!1}),Object.defineProperty(o,"codes",{value:s,enumerable:!1})}let f=h=>h,l=(h,u,d)=>[h,u,d];o.color.close="\x1B[39m",o.bgColor.close="\x1B[49m",o.color.ansi={ansi:n(f,0)},o.color.ansi256={ansi256:i(f,0)},o.color.ansi16m={rgb:c(l,0)},o.bgColor.ansi={ansi:n(f,10)},o.bgColor.ansi256={ansi256:i(f,10)},o.bgColor.ansi16m={rgb:c(l,10)};for(let h of Object.keys(t)){if(typeof t[h]!="object")continue;let u=t[h];h==="ansi16"&&(h="ansi"),"ansi16"in u&&(o.color.ansi[h]=n(u.ansi16,0),o.bgColor.ansi[h]=n(u.ansi16,10)),"ansi256"in u&&(o.color.ansi256[h]=i(u.ansi256,0),o.bgColor.ansi256[h]=i(u.ansi256,10)),"rgb"in u&&(o.color.ansi16m[h]=c(u.rgb,0),o.bgColor.ansi16m[h]=c(u.rgb,10))}return o}Object.defineProperty(r,"exports",{enumerable:!0,get:a})}),nT=ee((e,r)=>{"use strict";K(),r.exports=(t,n)=>{n=n||process.argv;let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1?!0:c<a)}}),iT=ee((e,r)=>{"use strict";K();var t=le("os"),n=nT(),i=process.env,c;n("no-color")||n("no-colors")||n("color=false")?c=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(c=!0),"FORCE_COLOR"in i&&(c=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function a(f){return f===0?!1:{level:f,hasBasic:!0,has256:f>=2,has16m:f>=3}}function s(f){if(c===!1)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(f&&!f.isTTY&&c!==!0)return 0;let l=c?1:0;if(process.platform==="win32"){let h=t.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(h[0])>=10&&Number(h[2])>=10586?Number(h[2])>=14931?3:2:1}if("CI"in i)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(h=>h in i)||i.CI_NAME==="codeship"?1:l;if("TEAMCITY_VERSION"in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(i.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in i){let h=parseInt((i.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(i.TERM_PROGRAM){case"iTerm.app":return h>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||"COLORTERM"in i?1:(i.TERM,l)}function o(f){let l=s(f);return a(l)}r.exports={supportsColor:o,stdout:o(process.stdout),stderr:o(process.stderr)}}),sT=ee((e,r)=>{"use strict";K();var t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
113
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){return h[0]==="u"&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p)if(!isNaN(b))d.push(Number(b));else if(y=b.match(i))d.push(y[2].replace(c,(_,g,S)=>g?s(g):S));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`);return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let y of Object.keys(d))if(Array.isArray(d[y])){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);d[y].length>0?p=p[y].apply(p,d[y]):p=p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),Tr=ee((e,r)=>{"use strict";K();var t=JO(),n=rT(),i=iT().stdout,c=sT(),a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],o=new Set(["gray"]),f=Object.create(null);function l(b,_){_=_||{};let g=i?i.level:0;b.level=_.level===void 0?g:_.level,b.enabled="enabled"in _?_.enabled:b.level>0}function h(b){if(!this||!(this instanceof h)||this.template){let _={};return l(_,b),_.template=function(){let g=[].slice.call(arguments);return y.apply(null,[_.template].concat(g))},Object.setPrototypeOf(_,h.prototype),Object.setPrototypeOf(_.template,_),_.template.constructor=h,_.template}l(this,b)}a&&(n.blue.open="\x1B[94m");for(let b of Object.keys(n))n[b].closeRe=new RegExp(t(n[b].close),"g"),f[b]={get(){let _=n[b];return d.call(this,this._styles?this._styles.concat(_):[_],this._empty,b)}};f.visible={get(){return d.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(let b of Object.keys(n.color.ansi))o.has(b)||(f[b]={get(){let _=this.level;return function(){let g={open:n.color[s[_]][b].apply(null,arguments),close:n.color.close,closeRe:n.color.closeRe};return d.call(this,this._styles?this._styles.concat(g):[g],this._empty,b)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(let b of Object.keys(n.bgColor.ansi)){if(o.has(b))continue;let _="bg"+b[0].toUpperCase()+b.slice(1);f[_]={get(){let g=this.level;return function(){let S={open:n.bgColor[s[g]][b].apply(null,arguments),close:n.bgColor.close,closeRe:n.bgColor.closeRe};return d.call(this,this._styles?this._styles.concat(S):[S],this._empty,b)}}}}var u=Object.defineProperties(()=>{},f);function d(b,_,g){let S=function(){return p.apply(S,arguments)};S._styles=b,S._empty=_;let E=this;return Object.defineProperty(S,"level",{enumerable:!0,get(){return E.level},set(v){E.level=v}}),Object.defineProperty(S,"enabled",{enumerable:!0,get(){return E.enabled},set(v){E.enabled=v}}),S.hasGrey=this.hasGrey||g==="gray"||g==="grey",S.__proto__=u,S}function p(){let b=arguments,_=b.length,g=String(arguments[0]);if(_===0)return"";if(_>1)for(let E=1;E<_;E++)g+=" "+b[E];if(!this.enabled||this.level<=0||!g)return this._empty?"":g;let S=n.dim.open;a&&this.hasGrey&&(n.dim.open="");for(let E of this._styles.slice().reverse())g=E.open+g.replace(E.closeRe,E.open)+E.close,g=g.replace(/\r?\n/g,`${E.close}$&${E.open}`);return n.dim.open=S,g}function y(b,_){if(!Array.isArray(_))return[].slice.call(arguments,1).join(" ");let g=[].slice.call(arguments,2),S=[_.raw[0]];for(let E=1;E<_.length;E++)S.push(String(g[E-1]).replace(/[{}\\]/g,"\\$&")),S.push(String(_.raw[E]));return c(b,S.join(""))}Object.defineProperties(h.prototype,f),r.exports=h(),r.exports.supportsColor=i,r.exports.default=r.exports});var oT=ee((e,r)=>{"use strict";K(),r.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}}),R2=ee((e,r)=>{K();var t=oT(),n={};for(let a of Object.keys(t))n[t[a]]=a;var i={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};r.exports=i;for(let a of Object.keys(i)){if(!("channels"in i[a]))throw new Error("missing channels property: "+a);if(!("labels"in i[a]))throw new Error("missing channel labels property: "+a);if(i[a].labels.length!==i[a].channels)throw new Error("channel and label counts mismatch: "+a);let{channels:s,labels:o}=i[a];delete i[a].channels,delete i[a].labels,Object.defineProperty(i[a],"channels",{value:s}),Object.defineProperty(i[a],"labels",{value:o})}i.rgb.hsl=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(s,o,f),h=Math.max(s,o,f),u=h-l,d,p;h===l?d=0:s===h?d=(o-f)/u:o===h?d=2+(f-s)/u:f===h&&(d=4+(s-o)/u),d=Math.min(d*60,360),d<0&&(d+=360);let y=(l+h)/2;return h===l?p=0:y<=.5?p=u/(h+l):p=u/(2-h-l),[d,p*100,y*100]},i.rgb.hsv=function(a){let s,o,f,l,h,u=a[0]/255,d=a[1]/255,p=a[2]/255,y=Math.max(u,d,p),b=y-Math.min(u,d,p),_=function(g){return(y-g)/6/b+1/2};return b===0?(l=0,h=0):(h=b/y,s=_(u),o=_(d),f=_(p),u===y?l=f-o:d===y?l=1/3+s-f:p===y&&(l=2/3+o-s),l<0?l+=1:l>1&&(l-=1)),[l*360,h*100,y*100]},i.rgb.hwb=function(a){let s=a[0],o=a[1],f=a[2],l=i.rgb.hsl(a)[0],h=1/255*Math.min(s,Math.min(o,f));return f=1-1/255*Math.max(s,Math.max(o,f)),[l,h*100,f*100]},i.rgb.cmyk=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.min(1-s,1-o,1-f),h=(1-s-l)/(1-l)||0,u=(1-o-l)/(1-l)||0,d=(1-f-l)/(1-l)||0;return[h*100,u*100,d*100,l*100]};function c(a,s){return(a[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2}i.rgb.keyword=function(a){let s=n[a];if(s)return s;let o=1/0,f;for(let l of Object.keys(t)){let h=t[l],u=c(a,h);u<o&&(o=u,f=l)}return f},i.keyword.rgb=function(a){return t[a]},i.rgb.xyz=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255;s=s>.04045?((s+.055)/1.055)**2.4:s/12.92,o=o>.04045?((o+.055)/1.055)**2.4:o/12.92,f=f>.04045?((f+.055)/1.055)**2.4:f/12.92;let l=s*.4124+o*.3576+f*.1805,h=s*.2126+o*.7152+f*.0722,u=s*.0193+o*.1192+f*.9505;return[l*100,h*100,u*100]},i.rgb.lab=function(a){let s=i.rgb.xyz(a),o=s[0],f=s[1],l=s[2];o/=95.047,f/=100,l/=108.883,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116,l=l>.008856?l**(1/3):7.787*l+16/116;let h=116*f-16,u=500*(o-f),d=200*(f-l);return[h,u,d]},i.hsl.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l,h,u;if(o===0)return u=f*255,[u,u,u];f<.5?l=f*(1+o):l=f+o-f*o;let d=2*f-l,p=[0,0,0];for(let y=0;y<3;y++)h=s+1/3*-(y-1),h<0&&h++,h>1&&h--,6*h<1?u=d+(l-d)*6*h:2*h<1?u=l:3*h<2?u=d+(l-d)*(2/3-h)*6:u=d,p[y]=u*255;return p},i.hsl.hsv=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=o,h=Math.max(f,.01);f*=2,o*=f<=1?f:2-f,l*=h<=1?h:2-h;let u=(f+o)/2,d=f===0?2*l/(h+l):2*o/(f+o);return[s,d*100,u*100]},i.hsv.rgb=function(a){let s=a[0]/60,o=a[1]/100,f=a[2]/100,l=Math.floor(s)%6,h=s-Math.floor(s),u=255*f*(1-o),d=255*f*(1-o*h),p=255*f*(1-o*(1-h));switch(f*=255,l){case 0:return[f,p,u];case 1:return[d,f,u];case 2:return[u,f,p];case 3:return[u,d,f];case 4:return[p,u,f];case 5:return[f,u,d]}},i.hsv.hsl=function(a){let s=a[0],o=a[1]/100,f=a[2]/100,l=Math.max(f,.01),h,u;u=(2-o)*f;let d=(2-o)*l;return h=o*l,h/=d<=1?d:2-d,h=h||0,u/=2,[s,h*100,u*100]},i.hwb.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100,l=o+f,h;l>1&&(o/=l,f/=l);let u=Math.floor(6*s),d=1-f;h=6*s-u,u&1&&(h=1-h);let p=o+h*(d-o),y,b,_;switch(u){default:case 6:case 0:y=d,b=p,_=o;break;case 1:y=p,b=d,_=o;break;case 2:y=o,b=d,_=p;break;case 3:y=o,b=p,_=d;break;case 4:y=p,b=o,_=d;break;case 5:y=d,b=o,_=p;break}return[y*255,b*255,_*255]},i.cmyk.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l=a[3]/100,h=1-Math.min(1,s*(1-l)+l),u=1-Math.min(1,o*(1-l)+l),d=1-Math.min(1,f*(1-l)+l);return[h*255,u*255,d*255]},i.xyz.rgb=function(a){let s=a[0]/100,o=a[1]/100,f=a[2]/100,l,h,u;return l=s*3.2406+o*-1.5372+f*-.4986,h=s*-.9689+o*1.8758+f*.0415,u=s*.0557+o*-.204+f*1.057,l=l>.0031308?1.055*l**(1/2.4)-.055:l*12.92,h=h>.0031308?1.055*h**(1/2.4)-.055:h*12.92,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,l=Math.min(Math.max(0,l),1),h=Math.min(Math.max(0,h),1),u=Math.min(Math.max(0,u),1),[l*255,h*255,u*255]},i.xyz.lab=function(a){let s=a[0],o=a[1],f=a[2];s/=95.047,o/=100,f/=108.883,s=s>.008856?s**(1/3):7.787*s+16/116,o=o>.008856?o**(1/3):7.787*o+16/116,f=f>.008856?f**(1/3):7.787*f+16/116;let l=116*o-16,h=500*(s-o),u=200*(o-f);return[l,h,u]},i.lab.xyz=function(a){let s=a[0],o=a[1],f=a[2],l,h,u;h=(s+16)/116,l=o/500+h,u=h-f/200;let d=h**3,p=l**3,y=u**3;return h=d>.008856?d:(h-16/116)/7.787,l=p>.008856?p:(l-16/116)/7.787,u=y>.008856?y:(u-16/116)/7.787,l*=95.047,h*=100,u*=108.883,[l,h,u]},i.lab.lch=function(a){let s=a[0],o=a[1],f=a[2],l;l=Math.atan2(f,o)*360/2/Math.PI,l<0&&(l+=360);let h=Math.sqrt(o*o+f*f);return[s,h,l]},i.lch.lab=function(a){let s=a[0],o=a[1],f=a[2]/360*2*Math.PI,l=o*Math.cos(f),h=o*Math.sin(f);return[s,l,h]},i.rgb.ansi16=function(a,s=null){let[o,f,l]=a,h=s===null?i.rgb.hsv(a)[2]:s;if(h=Math.round(h/50),h===0)return 30;let u=30+(Math.round(l/255)<<2|Math.round(f/255)<<1|Math.round(o/255));return h===2&&(u+=60),u},i.hsv.ansi16=function(a){return i.rgb.ansi16(i.hsv.rgb(a),a[2])},i.rgb.ansi256=function(a){let s=a[0],o=a[1],f=a[2];return s===o&&o===f?s<8?16:s>248?231:Math.round((s-8)/247*24)+232:16+36*Math.round(s/255*5)+6*Math.round(o/255*5)+Math.round(f/255*5)},i.ansi16.rgb=function(a){let s=a%10;if(s===0||s===7)return a>50&&(s+=3.5),s=s/10.5*255,[s,s,s];let o=(~~(a>50)+1)*.5,f=(s&1)*o*255,l=(s>>1&1)*o*255,h=(s>>2&1)*o*255;return[f,l,h]},i.ansi256.rgb=function(a){if(a>=232){let h=(a-232)*10+8;return[h,h,h]}a-=16;let s,o=Math.floor(a/36)/5*255,f=Math.floor((s=a%36)/6)/5*255,l=s%6/5*255;return[o,f,l]},i.rgb.hex=function(a){let s=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(s.length)+s},i.hex.rgb=function(a){let s=a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!s)return[0,0,0];let o=s[0];s[0].length===3&&(o=o.split("").map(d=>d+d).join(""));let f=parseInt(o,16),l=f>>16&255,h=f>>8&255,u=f&255;return[l,h,u]},i.rgb.hcg=function(a){let s=a[0]/255,o=a[1]/255,f=a[2]/255,l=Math.max(Math.max(s,o),f),h=Math.min(Math.min(s,o),f),u=l-h,d,p;return u<1?d=h/(1-u):d=0,u<=0?p=0:l===s?p=(o-f)/u%6:l===o?p=2+(f-s)/u:p=4+(s-o)/u,p/=6,p%=1,[p*360,u*100,d*100]},i.hsl.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=o<.5?2*s*o:2*s*(1-o),l=0;return f<1&&(l=(o-.5*f)/(1-f)),[a[0],f*100,l*100]},i.hsv.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=s*o,l=0;return f<1&&(l=(o-f)/(1-f)),[a[0],f*100,l*100]},i.hcg.rgb=function(a){let s=a[0]/360,o=a[1]/100,f=a[2]/100;if(o===0)return[f*255,f*255,f*255];let l=[0,0,0],h=s%1*6,u=h%1,d=1-u,p=0;switch(Math.floor(h)){case 0:l[0]=1,l[1]=u,l[2]=0;break;case 1:l[0]=d,l[1]=1,l[2]=0;break;case 2:l[0]=0,l[1]=1,l[2]=u;break;case 3:l[0]=0,l[1]=d,l[2]=1;break;case 4:l[0]=u,l[1]=0,l[2]=1;break;default:l[0]=1,l[1]=0,l[2]=d}return p=(1-o)*f,[(o*l[0]+p)*255,(o*l[1]+p)*255,(o*l[2]+p)*255]},i.hcg.hsv=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s),l=0;return f>0&&(l=s/f),[a[0],l*100,f*100]},i.hcg.hsl=function(a){let s=a[1]/100,o=a[2]/100*(1-s)+.5*s,f=0;return o>0&&o<.5?f=s/(2*o):o>=.5&&o<1&&(f=s/(2*(1-o))),[a[0],f*100,o*100]},i.hcg.hwb=function(a){let s=a[1]/100,o=a[2]/100,f=s+o*(1-s);return[a[0],(f-s)*100,(1-f)*100]},i.hwb.hcg=function(a){let s=a[1]/100,o=a[2]/100,f=1-o,l=f-s,h=0;return l<1&&(h=(f-l)/(1-l)),[a[0],l*100,h*100]},i.apple.rgb=function(a){return[a[0]/65535*255,a[1]/65535*255,a[2]/65535*255]},i.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]},i.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]},i.gray.hsl=function(a){return[0,0,a[0]]},i.gray.hsv=i.gray.hsl,i.gray.hwb=function(a){return[0,100,a[0]]},i.gray.cmyk=function(a){return[0,0,0,a[0]]},i.gray.lab=function(a){return[a[0],0,0]},i.gray.hex=function(a){let s=Math.round(a[0]/100*255)&255,o=((s<<16)+(s<<8)+s).toString(16).toUpperCase();return"000000".substring(o.length)+o},i.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}}),aT=ee((e,r)=>{K();var t=R2();function n(){let s={},o=Object.keys(t);for(let f=o.length,l=0;l<f;l++)s[o[l]]={distance:-1,parent:null};return s}function i(s){let o=n(),f=[s];for(o[s].distance=0;f.length;){let l=f.pop(),h=Object.keys(t[l]);for(let u=h.length,d=0;d<u;d++){let p=h[d],y=o[p];y.distance===-1&&(y.distance=o[l].distance+1,y.parent=l,f.unshift(p))}}return o}function c(s,o){return function(f){return o(s(f))}}function a(s,o){let f=[o[s].parent,s],l=t[o[s].parent][s],h=o[s].parent;for(;o[h].parent;)f.unshift(o[h].parent),l=c(t[o[h].parent][h],l),h=o[h].parent;return l.conversion=f,l}r.exports=function(s){let o=i(s),f={},l=Object.keys(o);for(let h=l.length,u=0;u<h;u++){let d=l[u];o[d].parent!==null&&(f[d]=a(d,o))}return f}}),uT=ee((e,r)=>{K();var t=R2(),n=aT(),i={},c=Object.keys(t);function a(o){let f=function(...l){let h=l[0];return h==null?h:(h.length>1&&(l=h),o(l))};return"conversion"in o&&(f.conversion=o.conversion),f}function s(o){let f=function(...l){let h=l[0];if(h==null)return h;h.length>1&&(l=h);let u=o(l);if(typeof u=="object")for(let d=u.length,p=0;p<d;p++)u[p]=Math.round(u[p]);return u};return"conversion"in o&&(f.conversion=o.conversion),f}c.forEach(o=>{i[o]={},Object.defineProperty(i[o],"channels",{value:t[o].channels}),Object.defineProperty(i[o],"labels",{value:t[o].labels});let f=n(o);Object.keys(f).forEach(l=>{let h=f[l];i[o][l]=s(h),i[o][l].raw=a(h)})}),r.exports=i}),O2=ee((e,r)=>{"use strict";K();var t=(h,u)=>(...d)=>`\x1B[${h(...d)+u}m`,n=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};5;${p}m`},i=(h,u)=>(...d)=>{let p=h(...d);return`\x1B[${38+u};2;${p[0]};${p[1]};${p[2]}m`},c=h=>h,a=(h,u,d)=>[h,u,d],s=(h,u,d)=>{Object.defineProperty(h,u,{get:()=>{let p=d();return Object.defineProperty(h,u,{value:p,enumerable:!0,configurable:!0}),p},enumerable:!0,configurable:!0})},o,f=(h,u,d,p)=>{o===void 0&&(o=uT());let y=p?10:0,b={};for(let[_,g]of Object.entries(o)){let S=_==="ansi16"?"ansi":_;_===u?b[S]=h(d,y):typeof g=="object"&&(b[S]=h(g[u],y))}return b};function l(){let h=new Map,u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};u.color.gray=u.color.blackBright,u.bgColor.bgGray=u.bgColor.bgBlackBright,u.color.grey=u.color.blackBright,u.bgColor.bgGrey=u.bgColor.bgBlackBright;for(let[d,p]of Object.entries(u)){for(let[y,b]of Object.entries(p))u[y]={open:`\x1B[${b[0]}m`,close:`\x1B[${b[1]}m`},p[y]=u[y],h.set(b[0],b[1]);Object.defineProperty(u,d,{value:p,enumerable:!1})}return Object.defineProperty(u,"codes",{value:h,enumerable:!1}),u.color.close="\x1B[39m",u.bgColor.close="\x1B[49m",s(u.color,"ansi",()=>f(t,"ansi16",c,!1)),s(u.color,"ansi256",()=>f(n,"ansi256",c,!1)),s(u.color,"ansi16m",()=>f(i,"rgb",a,!1)),s(u.bgColor,"ansi",()=>f(t,"ansi16",c,!0)),s(u.bgColor,"ansi256",()=>f(n,"ansi256",c,!0)),s(u.bgColor,"ansi16m",()=>f(i,"rgb",a,!0)),u}Object.defineProperty(r,"exports",{enumerable:!0,get:l})}),lT=ee((e,r)=>{"use strict";K(),r.exports=(t,n=process.argv)=>{let i=t.startsWith("-")?"":t.length===1?"-":"--",c=n.indexOf(i+t),a=n.indexOf("--");return c!==-1&&(a===-1||c<a)}}),T2=ee((e,r)=>{"use strict";K();var t=le("os"),n=le("tty"),i=lT(),{env:c}=process,a;i("no-color")||i("no-colors")||i("color=false")||i("color=never")?a=0:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(a=1),"FORCE_COLOR"in c&&(c.FORCE_COLOR==="true"?a=1:c.FORCE_COLOR==="false"?a=0:a=c.FORCE_COLOR.length===0?1:Math.min(parseInt(c.FORCE_COLOR,10),3));function s(l){return l===0?!1:{level:l,hasBasic:!0,has256:l>=2,has16m:l>=3}}function o(l,h){if(a===0)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(l&&!h&&a===void 0)return 0;let u=a||0;if(c.TERM==="dumb")return u;if(process.platform==="win32"){let d=t.release().split(".");return Number(d[0])>=10&&Number(d[2])>=10586?Number(d[2])>=14931?3:2:1}if("CI"in c)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(d=>d in c)||c.CI_NAME==="codeship"?1:u;if("TEAMCITY_VERSION"in c)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(c.TEAMCITY_VERSION)?1:0;if(c.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in c){let d=parseInt((c.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(c.TERM_PROGRAM){case"iTerm.app":return d>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(c.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(c.TERM)||"COLORTERM"in c?1:u}function f(l){let h=o(l,l&&l.isTTY);return s(h)}r.exports={supportsColor:f,stdout:s(o(!0,n.isatty(1))),stderr:s(o(!0,n.isatty(2)))}}),cT=ee((e,r)=>{"use strict";K();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
114
|
+
`:`
|
115
|
+
`)+a,o=s+1,s=i.indexOf(`
|
116
|
+
`,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),hT=ee((e,r)=>{"use strict";K();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
117
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),fT=ee((e,r)=>{"use strict";K();var t=O2(),{stdout:n,stderr:i}=T2(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=cT(),s=["ansi","ansi","ansi256","ansi16m"],o=Object.create(null),f=(v,m={})=>{if(m.level>3||m.level<0)throw new Error("The `level` option should be an integer from 0 to 3");let w=n?n.level:0;v.level=m.level===void 0?w:m.level},l=class{constructor(v){return h(v)}},h=v=>{let m={};return f(m,v),m.template=(...w)=>S(m.template,...w),Object.setPrototypeOf(m,u.prototype),Object.setPrototypeOf(m.template,m),m.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},m.template.Instance=l,m.template};function u(v){return h(v)}for(let[v,m]of Object.entries(t))o[v]={get(){let w=b(this,y(m.open,m.close,this._styler),this._isEmpty);return Object.defineProperty(this,v,{value:w}),w}};o.visible={get(){let v=b(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:v}),v}};var d=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let v of d)o[v]={get(){let{level:m}=this;return function(...w){let A=y(t.color[s[m]][v](...w),t.color.close,this._styler);return b(this,A,this._isEmpty)}}};for(let v of d){let m="bg"+v[0].toUpperCase()+v.slice(1);o[m]={get(){let{level:w}=this;return function(...A){let x=y(t.bgColor[s[w]][v](...A),t.bgColor.close,this._styler);return b(this,x,this._isEmpty)}}}}var p=Object.defineProperties(()=>{},{...o,level:{enumerable:!0,get(){return this._generator.level},set(v){this._generator.level=v}}}),y=(v,m,w)=>{let A,x;return w===void 0?(A=v,x=m):(A=w.openAll+v,x=m+w.closeAll),{open:v,close:m,openAll:A,closeAll:x,parent:w}},b=(v,m,w)=>{let A=(...x)=>_(A,x.length===1?""+x[0]:x.join(" "));return A.__proto__=p,A._generator=v,A._styler=m,A._isEmpty=w,A},_=(v,m)=>{if(v.level<=0||!m)return v._isEmpty?"":m;let w=v._styler;if(w===void 0)return m;let{openAll:A,closeAll:x}=w;if(m.indexOf("\x1B")!==-1)for(;w!==void 0;)m=c(m,w.close,w.open),w=w.parent;let R=m.indexOf(`
|
118
|
+
`);return R!==-1&&(m=a(m,x,A,R)),A+m+x},g,S=(v,...m)=>{let[w]=m;if(!Array.isArray(w))return m.join(" ");let A=m.slice(1),x=[w.raw[0]];for(let R=1;R<w.length;R++)x.push(String(A[R-1]).replace(/[{}\\]/g,"\\$&"),String(w.raw[R]));return g===void 0&&(g=hT()),g(v,x.join(""))};Object.defineProperties(u.prototype,o);var E=u();E.supportsColor=n,E.stderr=u({level:i?i.level:0}),E.stderr.supportsColor=i,E.Level={None:0,Basic:1,Ansi256:2,TrueColor:3,0:"None",1:"Basic",2:"Ansi256",3:"TrueColor"},r.exports=E}),pT=ee((e,r)=>{"use strict";K();var t=Fs(),n=Ps();r.exports=t(()=>{n(()=>{process.stderr.write("\x1B[?25h")},{alwaysLast:!0})})}),dT=ee(e=>{"use strict";K();var r=pT(),t=!1;e.show=(n=process.stderr)=>{!n.isTTY||(t=!1,n.write("\x1B[?25h"))},e.hide=(n=process.stderr)=>{!n.isTTY||(r(),t=!0,n.write("\x1B[?25l"))},e.toggle=(n,i)=>{n!==void 0&&(t=n),t?e.show(i):e.hide(i)}}),mT=ee((e,r)=>{r.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]}}}),yT=ee((e,r)=>{"use strict";K();var t=Object.assign({},mT()),n=Object.keys(t);Object.defineProperty(t,"random",{get(){let i=Math.floor(Math.random()*n.length),c=n[i];return t[c]}}),r.exports=t}),gT=ee((e,r)=>{"use strict";K();var t=Tr(),n=process.platform!=="win32"||process.env.CI||process.env.TERM==="xterm-256color",i={info:t.blue("\u2139"),success:t.green("\u2714"),warning:t.yellow("\u26A0"),error:t.red("\u2716")},c={info:t.blue("i"),success:t.green("\u221A"),warning:t.yellow("\u203C"),error:t.red("\xD7")};r.exports=n?i:c}),bT=ee((e,r)=>{"use strict";K(),r.exports=({onlyFirst:t=!1}={})=>{let n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}}),vT=ee((e,r)=>{"use strict";K();var t=bT();r.exports=n=>typeof n=="string"?n.replace(t(),""):n}),_T=ee((e,r)=>{K();var t=function(){"use strict";function n(f,l,h,u){var d;typeof l=="object"&&(h=l.depth,u=l.prototype,d=l.filter,l=l.circular);var p=[],y=[],b=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof h>"u"&&(h=1/0);function _(g,S){if(g===null)return null;if(S==0)return g;var E,v;if(typeof g!="object")return g;if(n.__isArray(g))E=[];else if(n.__isRegExp(g))E=new RegExp(g.source,o(g)),g.lastIndex&&(E.lastIndex=g.lastIndex);else if(n.__isDate(g))E=new Date(g.getTime());else{if(b&&Buffer.isBuffer(g))return Buffer.allocUnsafe?E=Buffer.allocUnsafe(g.length):E=new Buffer(g.length),g.copy(E),E;typeof u>"u"?(v=Object.getPrototypeOf(g),E=Object.create(v)):(E=Object.create(u),v=u)}if(l){var m=p.indexOf(g);if(m!=-1)return y[m];p.push(g),y.push(E)}for(var w in g){var A;v&&(A=Object.getOwnPropertyDescriptor(v,w)),!(A&&A.set==null)&&(E[w]=_(g[w],S-1))}return E}return _(f,h)}n.clonePrototype=function(f){if(f===null)return null;var l=function(){};return l.prototype=f,new l};function i(f){return Object.prototype.toString.call(f)}n.__objToStr=i;function c(f){return typeof f=="object"&&i(f)==="[object Date]"}n.__isDate=c;function a(f){return typeof f=="object"&&i(f)==="[object Array]"}n.__isArray=a;function s(f){return typeof f=="object"&&i(f)==="[object RegExp]"}n.__isRegExp=s;function o(f){var l="";return f.global&&(l+="g"),f.ignoreCase&&(l+="i"),f.multiline&&(l+="m"),l}return n.__getRegExpFlags=o,n}();typeof r=="object"&&r.exports&&(r.exports=t)}),wT=ee((e,r)=>{K();var t=_T();r.exports=function(n,i){return n=n||{},Object.keys(i).forEach(function(c){typeof n[c]>"u"&&(n[c]=t(i[c]))}),n}}),ET=ee((e,r)=>{K(),r.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]}),ST=ee((e,r)=>{"use strict";K();var t=wT(),n=ET(),i={nul:0,control:0};r.exports=function(o){return c(o,i)},r.exports.config=function(o){return o=t(o||{},i),function(f){return c(f,o)}};function c(o,f){if(typeof o!="string")return a(o,f);for(var l=0,h=0;h<o.length;h++){var u=a(o.charCodeAt(h),f);if(u<0)return-1;l+=u}return l}function a(o,f){return o===0?f.nul:o<32||o>=127&&o<160?f.control:s(o)?0:1+(o>=4352&&(o<=4447||o==9001||o==9002||o>=11904&&o<=42191&&o!=12351||o>=44032&&o<=55203||o>=63744&&o<=64255||o>=65040&&o<=65049||o>=65072&&o<=65135||o>=65280&&o<=65376||o>=65504&&o<=65510||o>=131072&&o<=196605||o>=196608&&o<=262141))}function s(o){var f=0,l=n.length-1,h;if(o<n[0][0]||o>n[l][1])return!1;for(;l>=f;)if(h=Math.floor((f+l)/2),o>n[h][1])f=h+1;else if(o<n[h][0])l=h-1;else return!0;return!1}}),AT=ee((e,r)=>{"use strict";K(),r.exports=({stream:t=process.stdout}={})=>!!(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}),xT=ee((e,r)=>{K();var t=le("stream");r.exports=n;function n(o){t.apply(this),o=o||{},this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=o.replace,this._prompt=o.prompt||null,this._hadControl=!1}n.prototype=Object.create(t.prototype),Object.defineProperty(n.prototype,"constructor",{value:n,enumerable:!1}),n.prototype.mute=function(){this.muted=!0},n.prototype.unmute=function(){this.muted=!1},Object.defineProperty(n.prototype,"_onpipe",{value:i,enumerable:!1,writable:!0,configurable:!0});function i(o){this._src=o}Object.defineProperty(n.prototype,"isTTY",{get:c,set:a,enumerable:!0,configurable:!0});function c(){return this._dest?this._dest.isTTY:this._src?this._src.isTTY:!1}function a(o){Object.defineProperty(this,"isTTY",{value:o,enumerable:!0,writable:!0,configurable:!0})}Object.defineProperty(n.prototype,"rows",{get:function(){return this._dest?this._dest.rows:this._src?this._src.rows:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"columns",{get:function(){return this._dest?this._dest.columns:this._src?this._src.columns:void 0},enumerable:!0,configurable:!0}),n.prototype.pipe=function(o,f){return this._dest=o,t.prototype.pipe.call(this,o,f)},n.prototype.pause=function(){if(this._src)return this._src.pause()},n.prototype.resume=function(){if(this._src)return this._src.resume()},n.prototype.write=function(o){if(this.muted){if(!this.replace)return!0;if(o.match(/^\u001b/))return o.indexOf(this._prompt)===0&&(o=o.substr(this._prompt.length),o=o.replace(/./g,this.replace),o=this._prompt+o),this._hadControl=!0,this.emit("data",o);this._prompt&&this._hadControl&&o.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),o=o.substr(this._prompt.length)),o=o.toString().replace(/./g,this.replace)}this.emit("data",o)},n.prototype.end=function(o){this.muted&&(o&&this.replace?o=o.toString().replace(/./g,this.replace):o=null),o&&this.emit("data",o),this.emit("end")};function s(o){return function(){var f=this._dest,l=this._src;f&&f[o]&&f[o].apply(f,arguments),l&&l[o]&&l[o].apply(l,arguments)}}n.prototype.destroy=s("destroy"),n.prototype.destroySoon=s("destroySoon"),n.prototype.close=s("close")}),CT=ee((e,r)=>{"use strict";K();var t=le("readline"),n=fT(),i=dT(),c=yT(),a=gT(),s=vT(),o=ST(),f=AT(),l=xT(),h=Symbol("text"),u=Symbol("prefixText"),d=3,p=class{constructor(){this.requests=0,this.mutedStream=new l,this.mutedStream.pipe(process.stdout),this.mutedStream.mute();let g=this;this.ourEmit=function(S,E,...v){let{stdin:m}=process;if(g.requests>0||m.emit===g.ourEmit){if(S==="keypress")return;S==="data"&&E.includes(d)&&process.emit("SIGINT"),Reflect.apply(g.oldEmit,this,[S,E,...v])}else Reflect.apply(process.stdin.emit,this,[S,E,...v])}}start(){this.requests++,this.requests===1&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,this.requests===0&&this.realStop()}realStart(){process.platform!=="win32"&&(this.rl=t.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",()=>{process.listenerCount("SIGINT")===0?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))}))}realStop(){process.platform!=="win32"&&(this.rl.close(),this.rl=void 0)}},y,b=class{constructor(g){y||(y=new p),typeof g=="string"&&(g={text:g}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...g},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=this.options.hideCursor!==!1,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled=typeof this.options.isEnabled=="boolean"?this.options.isEnabled:f({stream:this.stream}),this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(g=0){if(!(g>=0&&Number.isInteger(g)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=g}_updateInterval(g){g!==void 0&&(this.interval=g)}get spinner(){return this._spinner}set spinner(g){if(this.frameIndex=0,typeof g=="object"){if(g.frames===void 0)throw new Error("The given spinner must have a `frames` property");this._spinner=g}else if(process.platform==="win32")this._spinner=c.line;else if(g===void 0)this._spinner=c.dots;else if(c[g])this._spinner=c[g];else throw new Error(`There is no built-in spinner named '${g}'. See https://github.com/sindresorhus/cli-spinners/blob/master/spinners.json for a full list.`);this._updateInterval(this._spinner.interval)}get text(){return this[h]}get prefixText(){return this[u]}get isSpinning(){return this.id!==void 0}updateLineCount(){let g=this.stream.columns||80,S=typeof this[u]=="string"?this[u]+"-":"";this.lineCount=s(S+"--"+this[h]).split(`
|
119
|
+
`).reduce((E,v)=>E+Math.max(1,Math.ceil(o(v)/g)),0)}set text(g){this[h]=g,this.updateLineCount()}set prefixText(g){this[u]=g,this.updateLineCount()}frame(){let{frames:g}=this.spinner,S=g[this.frameIndex];this.color&&(S=n[this.color](S)),this.frameIndex=++this.frameIndex%g.length;let E=typeof this.prefixText=="string"&&this.prefixText!==""?this.prefixText+" ":"",v=typeof this.text=="string"?" "+this.text:"";return E+S+v}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let g=0;g<this.linesToClear;g++)g>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount,this}start(g){return g&&(this.text=g),this.isEnabled?this.isSpinning?this:(this.hideCursor&&i.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,y.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.stream.write(`- ${this.text}
|
120
|
+
`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&i.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(y.stop(),this.isDiscardingStdin=!1),this):this}succeed(g){return this.stopAndPersist({symbol:a.success,text:g})}fail(g){return this.stopAndPersist({symbol:a.error,text:g})}warn(g){return this.stopAndPersist({symbol:a.warning,text:g})}info(g){return this.stopAndPersist({symbol:a.info,text:g})}stopAndPersist(g={}){let S=g.prefixText||this.prefixText,E=typeof S=="string"&&S!==""?S+" ":"",v=g.text||this.text,m=typeof v=="string"?" "+v:"";return this.stop(),this.stream.write(`${E}${g.symbol||" "}${m}
|
121
|
+
`),this}},_=function(g){return new b(g)};r.exports=_,r.exports.promise=(g,S)=>{if(typeof g.then!="function")throw new TypeError("Parameter `action` must be a Promise");let E=new b(S);return E.start(),(async()=>{try{await g,E.succeed()}catch{E.fail()}})(),E}}),kT=ee((e,r)=>{"use strict";K();var t=(i,c,a)=>{let s=i.indexOf(c);if(s===-1)return i;let o=c.length,f=0,l="";do l+=i.substr(f,s-f)+c+a,f=s+o,s=i.indexOf(c,f);while(s!==-1);return l+=i.substr(f),l},n=(i,c,a,s)=>{let o=0,f="";do{let l=i[s-1]==="\r";f+=i.substr(o,(l?s-1:s)-o)+c+(l?`\r
|
122
|
+
`:`
|
123
|
+
`)+a,o=s+1,s=i.indexOf(`
|
124
|
+
`,o)}while(s!==-1);return f+=i.substr(o),f};r.exports={stringReplaceAll:t,stringEncaseCRLFWithFirstIndex:n}}),DT=ee((e,r)=>{"use strict";K();var t=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,n=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,i=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,c=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,a=new Map([["n",`
|
125
|
+
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function s(h){let u=h[0]==="u",d=h[1]==="{";return u&&!d&&h.length===5||h[0]==="x"&&h.length===3?String.fromCharCode(parseInt(h.slice(1),16)):u&&d?String.fromCodePoint(parseInt(h.slice(2,-1),16)):a.get(h)||h}function o(h,u){let d=[],p=u.trim().split(/\s*,\s*/g),y;for(let b of p){let _=Number(b);if(!Number.isNaN(_))d.push(_);else if(y=b.match(i))d.push(y[2].replace(c,(g,S,E)=>S?s(S):E));else throw new Error(`Invalid Chalk template style argument: ${b} (in style '${h}')`)}return d}function f(h){n.lastIndex=0;let u=[],d;for(;(d=n.exec(h))!==null;){let p=d[1];if(d[2]){let y=o(p,d[2]);u.push([p].concat(y))}else u.push([p])}return u}function l(h,u){let d={};for(let y of u)for(let b of y.styles)d[b[0]]=y.inverse?null:b.slice(1);let p=h;for(let[y,b]of Object.entries(d))if(Array.isArray(b)){if(!(y in p))throw new Error(`Unknown Chalk style: ${y}`);p=b.length>0?p[y](...b):p[y]}return p}r.exports=(h,u)=>{let d=[],p=[],y=[];if(u.replace(t,(b,_,g,S,E,v)=>{if(_)y.push(s(_));else if(S){let m=y.join("");y=[],p.push(d.length===0?m:l(h,d)(m)),d.push({inverse:g,styles:f(S)})}else if(E){if(d.length===0)throw new Error("Found extraneous } in Chalk template literal");p.push(l(h,d)(y.join(""))),y=[],d.pop()}else y.push(v)}),p.push(y.join("")),d.length>0){let b=`Chalk template literal is missing ${d.length} closing bracket${d.length===1?"":"s"} (\`}\`)`;throw new Error(b)}return p.join("")}}),RT=ee((e,r)=>{"use strict";K();var t=O2(),{stdout:n,stderr:i}=T2(),{stringReplaceAll:c,stringEncaseCRLFWithFirstIndex:a}=kT(),{isArray:s}=Array,o=["ansi","ansi","ansi256","ansi16m"],f=Object.create(null),l=(m,w={})=>{if(w.level&&!(Number.isInteger(w.level)&&w.level>=0&&w.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let A=n?n.level:0;m.level=w.level===void 0?A:w.level},h=class{constructor(m){return u(m)}},u=m=>{let w={};return l(w,m),w.template=(...A)=>E(w.template,...A),Object.setPrototypeOf(w,d.prototype),Object.setPrototypeOf(w.template,w),w.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},w.template.Instance=h,w.template};function d(m){return u(m)}for(let[m,w]of Object.entries(t))f[m]={get(){let A=_(this,b(w.open,w.close,this._styler),this._isEmpty);return Object.defineProperty(this,m,{value:A}),A}};f.visible={get(){let m=_(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:m}),m}};var p=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let m of p)f[m]={get(){let{level:w}=this;return function(...A){let x=b(t.color[o[w]][m](...A),t.color.close,this._styler);return _(this,x,this._isEmpty)}}};for(let m of p){let w="bg"+m[0].toUpperCase()+m.slice(1);f[w]={get(){let{level:A}=this;return function(...x){let R=b(t.bgColor[o[A]][m](...x),t.bgColor.close,this._styler);return _(this,R,this._isEmpty)}}}}var y=Object.defineProperties(()=>{},{...f,level:{enumerable:!0,get(){return this._generator.level},set(m){this._generator.level=m}}}),b=(m,w,A)=>{let x,R;return A===void 0?(x=m,R=w):(x=A.openAll+m,R=w+A.closeAll),{open:m,close:w,openAll:x,closeAll:R,parent:A}},_=(m,w,A)=>{let x=(...R)=>s(R[0])&&s(R[0].raw)?g(x,E(x,...R)):g(x,R.length===1?""+R[0]:R.join(" "));return Object.setPrototypeOf(x,y),x._generator=m,x._styler=w,x._isEmpty=A,x},g=(m,w)=>{if(m.level<=0||!w)return m._isEmpty?"":w;let A=m._styler;if(A===void 0)return w;let{openAll:x,closeAll:R}=A;if(w.indexOf("\x1B")!==-1)for(;A!==void 0;)w=c(w,A.close,A.open),A=A.parent;let P=w.indexOf(`
|
126
|
+
`);return P!==-1&&(w=a(w,R,x,P)),x+w+R},S,E=(m,...w)=>{let[A]=w;if(!s(A)||!s(A.raw))return w.join(" ");let x=w.slice(1),R=[A.raw[0]];for(let P=1;P<A.length;P++)R.push(String(x[P-1]).replace(/[{}\\]/g,"\\$&"),String(A.raw[P]));return S===void 0&&(S=DT()),S(m,R.join(""))};Object.defineProperties(d.prototype,f);var v=d();v.supportsColor=n,v.stderr=d({level:i?i.level:0}),v.stderr.supportsColor=i,r.exports=v}),OT=ee((e,r)=>{K(),function(t){var n=/^\s+/,i=/\s+$/,c=0,a=t.round,s=t.min,o=t.max,f=t.random;function l(j,G){if(j=j||"",G=G||{},j instanceof l)return j;if(!(this instanceof l))return new l(j,G);var C=h(j);this._originalInput=j,this._r=C.r,this._g=C.g,this._b=C.b,this._a=C.a,this._roundA=a(100*this._a)/100,this._format=G.format||C.format,this._gradientType=G.gradientType,this._r<1&&(this._r=a(this._r)),this._g<1&&(this._g=a(this._g)),this._b<1&&(this._b=a(this._b)),this._ok=C.ok,this._tc_id=c++}l.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var j=this.toRgb();return(j.r*299+j.g*587+j.b*114)/1e3},getLuminance:function(){var j=this.toRgb(),G,C,q,X,ne,me;return G=j.r/255,C=j.g/255,q=j.b/255,G<=.03928?X=G/12.92:X=t.pow((G+.055)/1.055,2.4),C<=.03928?ne=C/12.92:ne=t.pow((C+.055)/1.055,2.4),q<=.03928?me=q/12.92:me=t.pow((q+.055)/1.055,2.4),.2126*X+.7152*ne+.0722*me},setAlpha:function(j){return this._a=re(j),this._roundA=a(100*this._a)/100,this},toHsv:function(){var j=y(this._r,this._g,this._b);return{h:j.h*360,s:j.s,v:j.v,a:this._a}},toHsvString:function(){var j=y(this._r,this._g,this._b),G=a(j.h*360),C=a(j.s*100),q=a(j.v*100);return this._a==1?"hsv("+G+", "+C+"%, "+q+"%)":"hsva("+G+", "+C+"%, "+q+"%, "+this._roundA+")"},toHsl:function(){var j=d(this._r,this._g,this._b);return{h:j.h*360,s:j.s,l:j.l,a:this._a}},toHslString:function(){var j=d(this._r,this._g,this._b),G=a(j.h*360),C=a(j.s*100),q=a(j.l*100);return this._a==1?"hsl("+G+", "+C+"%, "+q+"%)":"hsla("+G+", "+C+"%, "+q+"%, "+this._roundA+")"},toHex:function(j){return _(this._r,this._g,this._b,j)},toHexString:function(j){return"#"+this.toHex(j)},toHex8:function(j){return g(this._r,this._g,this._b,this._a,j)},toHex8String:function(j){return"#"+this.toHex8(j)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+a(this._r)+", "+a(this._g)+", "+a(this._b)+")":"rgba("+a(this._r)+", "+a(this._g)+", "+a(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:a(B(this._r,255)*100)+"%",g:a(B(this._g,255)*100)+"%",b:a(B(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+a(B(this._r,255)*100)+"%, "+a(B(this._g,255)*100)+"%, "+a(B(this._b,255)*100)+"%)":"rgba("+a(B(this._r,255)*100)+"%, "+a(B(this._g,255)*100)+"%, "+a(B(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:H[_(this._r,this._g,this._b,!0)]||!1},toFilter:function(j){var G="#"+S(this._r,this._g,this._b,this._a),C=G,q=this._gradientType?"GradientType = 1, ":"";if(j){var X=l(j);C="#"+S(X._r,X._g,X._b,X._a)}return"progid:DXImageTransform.Microsoft.gradient("+q+"startColorstr="+G+",endColorstr="+C+")"},toString:function(j){var G=!!j;j=j||this._format;var C=!1,q=this._a<1&&this._a>=0,X=!G&&q&&(j==="hex"||j==="hex6"||j==="hex3"||j==="hex4"||j==="hex8"||j==="name");return X?j==="name"&&this._a===0?this.toName():this.toRgbString():(j==="rgb"&&(C=this.toRgbString()),j==="prgb"&&(C=this.toPercentageRgbString()),(j==="hex"||j==="hex6")&&(C=this.toHexString()),j==="hex3"&&(C=this.toHexString(!0)),j==="hex4"&&(C=this.toHex8String(!0)),j==="hex8"&&(C=this.toHex8String()),j==="name"&&(C=this.toName()),j==="hsl"&&(C=this.toHslString()),j==="hsv"&&(C=this.toHsvString()),C||this.toHexString())},clone:function(){return l(this.toString())},_applyModification:function(j,G){var C=j.apply(null,[this].concat([].slice.call(G)));return this._r=C._r,this._g=C._g,this._b=C._b,this.setAlpha(C._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(A,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(E,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(R,arguments)},_applyCombination:function(j,G){return j.apply(null,[this].concat([].slice.call(G)))},analogous:function(){return this._applyCombination(k,arguments)},complement:function(){return this._applyCombination(P,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(D,arguments)},triad:function(){return this._applyCombination(F,arguments)},tetrad:function(){return this._applyCombination(O,arguments)}},l.fromRatio=function(j,G){if(typeof j=="object"){var C={};for(var q in j)j.hasOwnProperty(q)&&(q==="a"?C[q]=j[q]:C[q]=N(j[q]));j=C}return l(j,G)};function h(j){var G={r:0,g:0,b:0},C=1,q=null,X=null,ne=null,me=!1,se=!1;return typeof j=="string"&&(j=de(j)),typeof j=="object"&&(oe(j.r)&&oe(j.g)&&oe(j.b)?(G=u(j.r,j.g,j.b),me=!0,se=String(j.r).substr(-1)==="%"?"prgb":"rgb"):oe(j.h)&&oe(j.s)&&oe(j.v)?(q=N(j.s),X=N(j.v),G=b(j.h,q,X),me=!0,se="hsv"):oe(j.h)&&oe(j.s)&&oe(j.l)&&(q=N(j.s),ne=N(j.l),G=p(j.h,q,ne),me=!0,se="hsl"),j.hasOwnProperty("a")&&(C=j.a)),C=re(C),{ok:me,format:j.format||se,r:s(255,o(G.r,0)),g:s(255,o(G.g,0)),b:s(255,o(G.b,0)),a:C}}function u(j,G,C){return{r:B(j,255)*255,g:B(G,255)*255,b:B(C,255)*255}}function d(j,G,C){j=B(j,255),G=B(G,255),C=B(C,255);var q=o(j,G,C),X=s(j,G,C),ne,me,se=(q+X)/2;if(q==X)ne=me=0;else{var fe=q-X;switch(me=se>.5?fe/(2-q-X):fe/(q+X),q){case j:ne=(G-C)/fe+(G<C?6:0);break;case G:ne=(C-j)/fe+2;break;case C:ne=(j-G)/fe+4;break}ne/=6}return{h:ne,s:me,l:se}}function p(j,G,C){var q,X,ne;j=B(j,360),G=B(G,100),C=B(C,100);function me(ie,ye,we){return we<0&&(we+=1),we>1&&(we-=1),we<1/6?ie+(ye-ie)*6*we:we<1/2?ye:we<2/3?ie+(ye-ie)*(2/3-we)*6:ie}if(G===0)q=X=ne=C;else{var se=C<.5?C*(1+G):C+G-C*G,fe=2*C-se;q=me(fe,se,j+1/3),X=me(fe,se,j),ne=me(fe,se,j-1/3)}return{r:q*255,g:X*255,b:ne*255}}function y(j,G,C){j=B(j,255),G=B(G,255),C=B(C,255);var q=o(j,G,C),X=s(j,G,C),ne,me,se=q,fe=q-X;if(me=q===0?0:fe/q,q==X)ne=0;else{switch(q){case j:ne=(G-C)/fe+(G<C?6:0);break;case G:ne=(C-j)/fe+2;break;case C:ne=(j-G)/fe+4;break}ne/=6}return{h:ne,s:me,v:se}}function b(j,G,C){j=B(j,360)*6,G=B(G,100),C=B(C,100);var q=t.floor(j),X=j-q,ne=C*(1-G),me=C*(1-X*G),se=C*(1-(1-X)*G),fe=q%6,ie=[C,me,ne,ne,se,C][fe],ye=[se,C,C,me,ne,ne][fe],we=[ne,ne,se,C,C,me][fe];return{r:ie*255,g:ye*255,b:we*255}}function _(j,G,C,q){var X=[Q(a(j).toString(16)),Q(a(G).toString(16)),Q(a(C).toString(16))];return q&&X[0].charAt(0)==X[0].charAt(1)&&X[1].charAt(0)==X[1].charAt(1)&&X[2].charAt(0)==X[2].charAt(1)?X[0].charAt(0)+X[1].charAt(0)+X[2].charAt(0):X.join("")}function g(j,G,C,q,X){var ne=[Q(a(j).toString(16)),Q(a(G).toString(16)),Q(a(C).toString(16)),Q(W(q))];return X&&ne[0].charAt(0)==ne[0].charAt(1)&&ne[1].charAt(0)==ne[1].charAt(1)&&ne[2].charAt(0)==ne[2].charAt(1)&&ne[3].charAt(0)==ne[3].charAt(1)?ne[0].charAt(0)+ne[1].charAt(0)+ne[2].charAt(0)+ne[3].charAt(0):ne.join("")}function S(j,G,C,q){var X=[Q(W(q)),Q(a(j).toString(16)),Q(a(G).toString(16)),Q(a(C).toString(16))];return X.join("")}l.equals=function(j,G){return!j||!G?!1:l(j).toRgbString()==l(G).toRgbString()},l.random=function(){return l.fromRatio({r:f(),g:f(),b:f()})};function E(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.s-=G/100,C.s=M(C.s),l(C)}function v(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.s+=G/100,C.s=M(C.s),l(C)}function m(j){return l(j).desaturate(100)}function w(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.l+=G/100,C.l=M(C.l),l(C)}function A(j,G){G=G===0?0:G||10;var C=l(j).toRgb();return C.r=o(0,s(255,C.r-a(255*-(G/100)))),C.g=o(0,s(255,C.g-a(255*-(G/100)))),C.b=o(0,s(255,C.b-a(255*-(G/100)))),l(C)}function x(j,G){G=G===0?0:G||10;var C=l(j).toHsl();return C.l-=G/100,C.l=M(C.l),l(C)}function R(j,G){var C=l(j).toHsl(),q=(C.h+G)%360;return C.h=q<0?360+q:q,l(C)}function P(j){var G=l(j).toHsl();return G.h=(G.h+180)%360,l(G)}function F(j){var G=l(j).toHsl(),C=G.h;return[l(j),l({h:(C+120)%360,s:G.s,l:G.l}),l({h:(C+240)%360,s:G.s,l:G.l})]}function O(j){var G=l(j).toHsl(),C=G.h;return[l(j),l({h:(C+90)%360,s:G.s,l:G.l}),l({h:(C+180)%360,s:G.s,l:G.l}),l({h:(C+270)%360,s:G.s,l:G.l})]}function D(j){var G=l(j).toHsl(),C=G.h;return[l(j),l({h:(C+72)%360,s:G.s,l:G.l}),l({h:(C+216)%360,s:G.s,l:G.l})]}function k(j,G,C){G=G||6,C=C||30;var q=l(j).toHsl(),X=360/C,ne=[l(j)];for(q.h=(q.h-(X*G>>1)+720)%360;--G;)q.h=(q.h+X)%360,ne.push(l(q));return ne}function L(j,G){G=G||6;for(var C=l(j).toHsv(),q=C.h,X=C.s,ne=C.v,me=[],se=1/G;G--;)me.push(l({h:q,s:X,v:ne})),ne=(ne+se)%1;return me}l.mix=function(j,G,C){C=C===0?0:C||50;var q=l(j).toRgb(),X=l(G).toRgb(),ne=C/100,me={r:(X.r-q.r)*ne+q.r,g:(X.g-q.g)*ne+q.g,b:(X.b-q.b)*ne+q.b,a:(X.a-q.a)*ne+q.a};return l(me)},l.readability=function(j,G){var C=l(j),q=l(G);return(t.max(C.getLuminance(),q.getLuminance())+.05)/(t.min(C.getLuminance(),q.getLuminance())+.05)},l.isReadable=function(j,G,C){var q=l.readability(j,G),X,ne;switch(ne=!1,X=pe(C),X.level+X.size){case"AAsmall":case"AAAlarge":ne=q>=4.5;break;case"AAlarge":ne=q>=3;break;case"AAAsmall":ne=q>=7;break}return ne},l.mostReadable=function(j,G,C){var q=null,X=0,ne,me,se,fe;C=C||{},me=C.includeFallbackColors,se=C.level,fe=C.size;for(var ie=0;ie<G.length;ie++)ne=l.readability(j,G[ie]),ne>X&&(X=ne,q=l(G[ie]));return l.isReadable(j,q,{level:se,size:fe})||!me?q:(C.includeFallbackColors=!1,l.mostReadable(j,["#fff","#000"],C))};var I=l.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},H=l.hexNames=z(I);function z(j){var G={};for(var C in j)j.hasOwnProperty(C)&&(G[j[C]]=C);return G}function re(j){return j=parseFloat(j),(isNaN(j)||j<0||j>1)&&(j=1),j}function B(j,G){Y(j)&&(j="100%");var C=U(j);return j=s(G,o(0,parseFloat(j))),C&&(j=parseInt(j*G,10)/100),t.abs(j-G)<1e-6?1:j%G/parseFloat(G)}function M(j){return s(1,o(0,j))}function T(j){return parseInt(j,16)}function Y(j){return typeof j=="string"&&j.indexOf(".")!=-1&&parseFloat(j)===1}function U(j){return typeof j=="string"&&j.indexOf("%")!=-1}function Q(j){return j.length==1?"0"+j:""+j}function N(j){return j<=1&&(j=j*100+"%"),j}function W(j){return t.round(parseFloat(j)*255).toString(16)}function J(j){return T(j)/255}var ae=function(){var j="[-\\+]?\\d+%?",G="[-\\+]?\\d*\\.\\d+%?",C="(?:"+G+")|(?:"+j+")",q="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?",X="[\\s|\\(]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")[,|\\s]+("+C+")\\s*\\)?";return{CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+q),rgba:new RegExp("rgba"+X),hsl:new RegExp("hsl"+q),hsla:new RegExp("hsla"+X),hsv:new RegExp("hsv"+q),hsva:new RegExp("hsva"+X),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oe(j){return!!ae.CSS_UNIT.exec(j)}function de(j){j=j.replace(n,"").replace(i,"").toLowerCase();var G=!1;if(I[j])j=I[j],G=!0;else if(j=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var C;return(C=ae.rgb.exec(j))?{r:C[1],g:C[2],b:C[3]}:(C=ae.rgba.exec(j))?{r:C[1],g:C[2],b:C[3],a:C[4]}:(C=ae.hsl.exec(j))?{h:C[1],s:C[2],l:C[3]}:(C=ae.hsla.exec(j))?{h:C[1],s:C[2],l:C[3],a:C[4]}:(C=ae.hsv.exec(j))?{h:C[1],s:C[2],v:C[3]}:(C=ae.hsva.exec(j))?{h:C[1],s:C[2],v:C[3],a:C[4]}:(C=ae.hex8.exec(j))?{r:T(C[1]),g:T(C[2]),b:T(C[3]),a:J(C[4]),format:G?"name":"hex8"}:(C=ae.hex6.exec(j))?{r:T(C[1]),g:T(C[2]),b:T(C[3]),format:G?"name":"hex"}:(C=ae.hex4.exec(j))?{r:T(C[1]+""+C[1]),g:T(C[2]+""+C[2]),b:T(C[3]+""+C[3]),a:J(C[4]+""+C[4]),format:G?"name":"hex8"}:(C=ae.hex3.exec(j))?{r:T(C[1]+""+C[1]),g:T(C[2]+""+C[2]),b:T(C[3]+""+C[3]),format:G?"name":"hex"}:!1}function pe(j){var G,C;return j=j||{level:"AA",size:"small"},G=(j.level||"AA").toUpperCase(),C=(j.size||"small").toLowerCase(),G!=="AA"&&G!=="AAA"&&(G="AA"),C!=="small"&&C!=="large"&&(C="small"),{level:G,size:C}}typeof r<"u"&&r.exports?r.exports=l:typeof define=="function"&&define.amd?define(function(){return l}):window.tinycolor=l}(Math)}),TT=ee((e,r)=>{K();var t=OT(),n={r:256,g:256,b:256,a:1},i={h:360,s:1,v:1,a:1};function c(u,d,p){let y={};for(let b in u)u.hasOwnProperty(b)&&(y[b]=p===0?0:(d[b]-u[b])/p);return y}function a(u,d,p,y){let b={};for(let _ in d)d.hasOwnProperty(_)&&(b[_]=u[_]*p+d[_],b[_]=b[_]<0?b[_]+y[_]:y[_]!==1?b[_]%y[_]:b[_]);return b}function s(u,d,p){let y=u.color.toRgb(),b=d.color.toRgb(),_=c(y,b,p),g=[u.color];for(let S=1;S<p;S++){let E=a(_,y,S,n);g.push(t(E))}return g}function o(u,d,p,y){let b=u.color.toHsv(),_=d.color.toHsv();if(b.s===0||_.s===0)return s(u,d,p);let g;if(typeof y=="boolean")g=y;else{let m=b.h<_.h&&_.h-b.h<180||b.h>_.h&&b.h-_.h>180;g=y==="long"&&m||y==="short"&&!m}let S=c(b,_,p),E=[u.color],v;b.h<=_.h&&!g||b.h>=_.h&&g?v=_.h-b.h:g?v=360-_.h+b.h:v=360-b.h+_.h,S.h=Math.pow(-1,g?1:0)*Math.abs(v)/p;for(let m=1;m<p;m++){let w=a(S,b,m,i);E.push(t(w))}return E}function f(u,d){let p=u.length;if(d=parseInt(d,10),isNaN(d)||d<2)throw new Error("Invalid number of steps (< 2)");if(d<p)throw new Error("Number of steps cannot be inferior to number of stops");let y=[];for(let _=1;_<p;_++){let g=(d-1)*(u[_].pos-u[_-1].pos);y.push(Math.max(1,Math.round(g)))}let b=1;for(let _=p-1;_--;)b+=y[_];for(;b!==d;)if(b<d){let _=Math.min.apply(null,y);y[y.indexOf(_)]++,b++}else{let _=Math.max.apply(null,y);y[y.indexOf(_)]--,b--}return y}function l(u,d,p,y){if(d<0||d>1)throw new Error("Position must be between 0 and 1");let b,_;for(let E=0,v=u.length;E<v-1;E++)if(d>=u[E].pos&&d<u[E+1].pos){b=u[E],_=u[E+1];break}b||(b=_=u[u.length-1]);let g=c(b.color[p](),_.color[p](),(_.pos-b.pos)*100),S=a(g,b.color[p](),(d-b.pos)*100,y);return t(S)}var h=class{constructor(u){if(u.length<2)throw new Error("Invalid number of stops (< 2)");let d=u[0].pos!==void 0,p=u.length,y=-1,b=!1;this.stops=u.map((_,g)=>{let S=_.pos!==void 0;if(d^S)throw new Error("Cannot mix positionned and not posionned color stops");if(S){let E=_.color!==void 0;if(!E&&(b||g===0||g===p-1))throw new Error("Cannot define two consecutive position-only stops");if(b=!E,_={color:E?t(_.color):null,colorLess:!E,pos:_.pos},_.pos<0||_.pos>1)throw new Error("Color stops positions must be between 0 and 1");if(_.pos<y)throw new Error("Color stops positions are not ordered");y=_.pos}else _={color:t(_.color!==void 0?_.color:_),pos:g/(p-1)};return _}),this.stops[0].pos!==0&&(this.stops.unshift({color:this.stops[0].color,pos:0}),p++),this.stops[p-1].pos!==1&&this.stops.push({color:this.stops[p-1].color,pos:1})}reverse(){let u=[];return this.stops.forEach(function(d){u.push({color:d.color,pos:1-d.pos})}),new h(u.reverse())}loop(){let u=[],d=[];return this.stops.forEach(p=>{u.push({color:p.color,pos:p.pos/2})}),this.stops.slice(0,-1).forEach(p=>{d.push({color:p.color,pos:1-p.pos/2})}),new h(u.concat(d.reverse()))}rgb(u){let d=f(this.stops,u),p=[];this.stops.forEach((y,b)=>{y.colorLess&&(y.color=s(this.stops[b-1],this.stops[b+1],2)[1])});for(let y=0,b=this.stops.length;y<b-1;y++){let _=s(this.stops[y],this.stops[y+1],d[y]);p.splice(p.length,0,..._)}return p.push(this.stops[this.stops.length-1].color),p}hsv(u,d){let p=f(this.stops,u),y=[];this.stops.forEach((b,_)=>{b.colorLess&&(b.color=o(this.stops[_-1],this.stops[_+1],2,d)[1])});for(let b=0,_=this.stops.length;b<_-1;b++){let g=o(this.stops[b],this.stops[b+1],p[b],d);y.splice(y.length,0,...g)}return y.push(this.stops[this.stops.length-1].color),y}css(u,d){u=u||"linear",d=d||(u==="linear"?"to right":"ellipse at center");let p=u+"-gradient("+d;return this.stops.forEach(function(y){p+=", "+(y.colorLess?"":y.color.toRgbString()+" ")+y.pos*100+"%"}),p+=")",p}rgbAt(u){return l(this.stops,u,"toRgb",n)}hsvAt(u){return l(this.stops,u,"toHsv",i)}};r.exports=function(u){if(arguments.length===1){if(!Array.isArray(arguments[0]))throw new Error('"stops" is not an array');u=arguments[0]}else u=Array.prototype.slice.call(arguments);return new h(u)}}),FT=ee((e,r)=>{"use strict";K();var t=RT(),n=TT(),i=/\s/g;function c(...h){let u=n.apply(this,h),d=(p,y)=>s(p?p.toString():"",u,y);return d.multiline=(p,y)=>o(p?p.toString():"",u,y),d}var a=(h,u,d)=>u.interpolation.toLowerCase()==="hsv"?h.hsv(d,u.hsvSpin.toLowerCase()):h.rgb(d);function s(h,u,d){let p=f(d),y=Math.max(h.replace(i,"").length,u.stops.length),b=a(u,p,y),_="";for(let g of h)_+=g.match(i)?g:t.hex(b.shift().toHex())(g);return _}function o(h,u,d){let p=f(d),y=h.split(`
|
127
|
+
`),b=Math.max.apply(null,y.map(S=>S.length).concat([u.stops.length])),_=a(u,p,b),g=[];for(let S of y){let E=_.slice(0),v="";for(let m of S)v+=t.hex(E.shift().toHex())(m);g.push(v)}return g.join(`
|
128
|
+
`)}function f(h){let u={interpolation:"rgb",hsvSpin:"short",...h};if(h!==void 0&&typeof h!="object")throw new TypeError(`Expected \`options\` to be an \`object\`, got \`${typeof h}\``);if(typeof u.interpolation!="string")throw new TypeError(`Expected \`options.interpolation\` to be a \`string\`, got \`${typeof u.interpolation}\``);if(u.interpolation.toLowerCase()==="hsv"&&typeof u.hsvSpin!="string")throw new TypeError(`Expected \`options.hsvSpin\` to be a \`string\`, got \`${typeof u.hsvSpin}\``);return u}var l={atlas:{colors:["#feac5e","#c779d0","#4bc0c8"],options:{}},cristal:{colors:["#bdfff3","#4ac29a"],options:{}},teen:{colors:["#77a1d3","#79cbca","#e684ae"],options:{}},mind:{colors:["#473b7b","#3584a7","#30d2be"],options:{}},morning:{colors:["#ff5f6d","#ffc371"],options:{interpolation:"hsv"}},vice:{colors:["#5ee7df","#b490ca"],options:{interpolation:"hsv"}},passion:{colors:["#f43b47","#453a94"],options:{}},fruit:{colors:["#ff4e50","#f9d423"],options:{}},instagram:{colors:["#833ab4","#fd1d1d","#fcb045"],options:{}},retro:{colors:["#3f51b1","#5a55ae","#7b5fac","#8f6aae","#a86aa4","#cc6b8e","#f18271","#f3a469","#f7c978"],options:{}},summer:{colors:["#fdbb2d","#22c1c3"],options:{}},rainbow:{colors:["#ff0000","#ff0100"],options:{interpolation:"hsv",hsvSpin:"long"}},pastel:{colors:["#74ebd5","#74ecd5"],options:{interpolation:"hsv",hsvSpin:"long"}}};r.exports=c;for(let h in l)r.exports[h]=u=>new c(l[h].colors)(u,l[h].options),r.exports[h].multiline=u=>new c(l[h].colors).multiline(u,l[h].options)}),F2={};k2(F2,{dimmed:()=>jT,error:()=>N2,info:()=>MT,item:()=>$T,turboBlue:()=>yn,turboGradient:()=>LT,turboLoader:()=>M2,turboRed:()=>I2,warn:()=>NT,yellow:()=>L2});K();var Bs=je(Tr()),PT=je(CT()),BT=je(FT()),P2="#0099F7",B2="#F11712",IT="#FFFF00",LT=(0,BT.default)(P2,B2),yn=Bs.default.hex(P2),I2=Bs.default.hex(B2),L2=Bs.default.hex(IT),M2=e=>(0,PT.default)({text:e,spinner:{frames:[" ",yn("> "),yn(">> "),yn(">>>")]}}),MT=(...e)=>{console.log(yn.bold(">>>"),...e)},N2=(...e)=>{console.error(I2.bold(">>>"),...e)},NT=(...e)=>{console.error(L2.bold(">>>"),...e)},jT=(...e)=>{console.log(Bs.default.dim(...e))},$T=(...e)=>{console.log(yn.bold(" \u2022"),...e)};var c1=require("stream"),h1=require("util");var hr=ee((e,r)=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var t=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];function n(m){return t.includes(m)}var i=["Function","Generator","AsyncGenerator","GeneratorFunction","AsyncGeneratorFunction","AsyncFunction","Observable","Array","Buffer","Blob","Object","RegExp","Date","Error","Map","Set","WeakMap","WeakSet","ArrayBuffer","SharedArrayBuffer","DataView","Promise","URL","FormData","URLSearchParams","HTMLElement",...t];function c(m){return i.includes(m)}var a=["null","undefined","string","number","bigint","boolean","symbol"];function s(m){return a.includes(m)}function o(m){return w=>typeof w===m}var{toString:f}=Object.prototype,l=m=>{let w=f.call(m).slice(8,-1);if(/HTML\w+Element/.test(w)&&u.domElement(m))return"HTMLElement";if(c(w))return w},h=m=>w=>l(w)===m;function u(m){if(m===null)return"null";switch(typeof m){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"boolean":return"boolean";case"function":return"Function";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(u.observable(m))return"Observable";if(u.array(m))return"Array";if(u.buffer(m))return"Buffer";let w=l(m);if(w)return w;if(m instanceof String||m instanceof Boolean||m instanceof Number)throw new TypeError("Please don't use object wrappers for primitive types");return"Object"}u.undefined=o("undefined"),u.string=o("string");var d=o("number");u.number=m=>d(m)&&!u.nan(m),u.bigint=o("bigint"),u.function_=o("function"),u.null_=m=>m===null,u.class_=m=>u.function_(m)&&m.toString().startsWith("class "),u.boolean=m=>m===!0||m===!1,u.symbol=o("symbol"),u.numericString=m=>u.string(m)&&!u.emptyStringOrWhitespace(m)&&!Number.isNaN(Number(m)),u.array=(m,w)=>Array.isArray(m)?u.function_(w)?m.every(w):!0:!1,u.buffer=m=>{var w,A,x,R;return(R=(x=(A=(w=m)===null||w===void 0?void 0:w.constructor)===null||A===void 0?void 0:A.isBuffer)===null||x===void 0?void 0:x.call(A,m))!==null&&R!==void 0?R:!1},u.blob=m=>h("Blob")(m),u.nullOrUndefined=m=>u.null_(m)||u.undefined(m),u.object=m=>!u.null_(m)&&(typeof m=="object"||u.function_(m)),u.iterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.iterator])},u.asyncIterable=m=>{var w;return u.function_((w=m)===null||w===void 0?void 0:w[Symbol.asyncIterator])},u.generator=m=>{var w,A;return u.iterable(m)&&u.function_((w=m)===null||w===void 0?void 0:w.next)&&u.function_((A=m)===null||A===void 0?void 0:A.throw)},u.asyncGenerator=m=>u.asyncIterable(m)&&u.function_(m.next)&&u.function_(m.throw),u.nativePromise=m=>h("Promise")(m);var p=m=>{var w,A;return u.function_((w=m)===null||w===void 0?void 0:w.then)&&u.function_((A=m)===null||A===void 0?void 0:A.catch)};u.promise=m=>u.nativePromise(m)||p(m),u.generatorFunction=h("GeneratorFunction"),u.asyncGeneratorFunction=m=>l(m)==="AsyncGeneratorFunction",u.asyncFunction=m=>l(m)==="AsyncFunction",u.boundFunction=m=>u.function_(m)&&!m.hasOwnProperty("prototype"),u.regExp=h("RegExp"),u.date=h("Date"),u.error=h("Error"),u.map=m=>h("Map")(m),u.set=m=>h("Set")(m),u.weakMap=m=>h("WeakMap")(m),u.weakSet=m=>h("WeakSet")(m),u.int8Array=h("Int8Array"),u.uint8Array=h("Uint8Array"),u.uint8ClampedArray=h("Uint8ClampedArray"),u.int16Array=h("Int16Array"),u.uint16Array=h("Uint16Array"),u.int32Array=h("Int32Array"),u.uint32Array=h("Uint32Array"),u.float32Array=h("Float32Array"),u.float64Array=h("Float64Array"),u.bigInt64Array=h("BigInt64Array"),u.bigUint64Array=h("BigUint64Array"),u.arrayBuffer=h("ArrayBuffer"),u.sharedArrayBuffer=h("SharedArrayBuffer"),u.dataView=h("DataView"),u.enumCase=(m,w)=>Object.values(w).includes(m),u.directInstanceOf=(m,w)=>Object.getPrototypeOf(m)===w.prototype,u.urlInstance=m=>h("URL")(m),u.urlString=m=>{if(!u.string(m))return!1;try{return new URL(m),!0}catch{return!1}},u.truthy=m=>!!m,u.falsy=m=>!m,u.nan=m=>Number.isNaN(m),u.primitive=m=>u.null_(m)||s(typeof m),u.integer=m=>Number.isInteger(m),u.safeInteger=m=>Number.isSafeInteger(m),u.plainObject=m=>{if(f.call(m)!=="[object Object]")return!1;let w=Object.getPrototypeOf(m);return w===null||w===Object.getPrototypeOf({})},u.typedArray=m=>n(l(m));var y=m=>u.safeInteger(m)&&m>=0;u.arrayLike=m=>!u.nullOrUndefined(m)&&!u.function_(m)&&y(m.length),u.inRange=(m,w)=>{if(u.number(w))return m>=Math.min(0,w)&&m<=Math.max(w,0);if(u.array(w)&&w.length===2)return m>=Math.min(...w)&&m<=Math.max(...w);throw new TypeError(`Invalid range: ${JSON.stringify(w)}`)};var b=1,_=["innerHTML","ownerDocument","style","attributes","nodeValue"];u.domElement=m=>u.object(m)&&m.nodeType===b&&u.string(m.nodeName)&&!u.plainObject(m)&&_.every(w=>w in m),u.observable=m=>{var w,A,x,R;return m?m===((A=(w=m)[Symbol.observable])===null||A===void 0?void 0:A.call(w))||m===((R=(x=m)["@@observable"])===null||R===void 0?void 0:R.call(x)):!1},u.nodeStream=m=>u.object(m)&&u.function_(m.pipe)&&!u.observable(m),u.infinite=m=>m===1/0||m===-1/0;var g=m=>w=>u.integer(w)&&Math.abs(w%2)===m;u.evenInteger=g(0),u.oddInteger=g(1),u.emptyArray=m=>u.array(m)&&m.length===0,u.nonEmptyArray=m=>u.array(m)&&m.length>0,u.emptyString=m=>u.string(m)&&m.length===0;var S=m=>u.string(m)&&!/\S/.test(m);u.emptyStringOrWhitespace=m=>u.emptyString(m)||S(m),u.nonEmptyString=m=>u.string(m)&&m.length>0,u.nonEmptyStringAndNotWhitespace=m=>u.string(m)&&!u.emptyStringOrWhitespace(m),u.emptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length===0,u.nonEmptyObject=m=>u.object(m)&&!u.map(m)&&!u.set(m)&&Object.keys(m).length>0,u.emptySet=m=>u.set(m)&&m.size===0,u.nonEmptySet=m=>u.set(m)&&m.size>0,u.emptyMap=m=>u.map(m)&&m.size===0,u.nonEmptyMap=m=>u.map(m)&&m.size>0,u.propertyKey=m=>u.any([u.string,u.number,u.symbol],m),u.formData=m=>h("FormData")(m),u.urlSearchParams=m=>h("URLSearchParams")(m);var E=(m,w,A)=>{if(!u.function_(w))throw new TypeError(`Invalid predicate: ${JSON.stringify(w)}`);if(A.length===0)throw new TypeError("Invalid number of values");return m.call(A,w)};u.any=(m,...w)=>(u.array(m)?m:[m]).some(A=>E(Array.prototype.some,A,w)),u.all=(m,...w)=>E(Array.prototype.every,m,w);var v=(m,w,A,x={})=>{if(!m){let{multipleValues:R}=x,P=R?`received values of types ${[...new Set(A.map(F=>`\`${u(F)}\``))].join(", ")}`:`received value of type \`${u(A)}\``;throw new TypeError(`Expected value which is \`${w}\`, ${P}.`)}};e.assert={undefined:m=>v(u.undefined(m),"undefined",m),string:m=>v(u.string(m),"string",m),number:m=>v(u.number(m),"number",m),bigint:m=>v(u.bigint(m),"bigint",m),function_:m=>v(u.function_(m),"Function",m),null_:m=>v(u.null_(m),"null",m),class_:m=>v(u.class_(m),"Class",m),boolean:m=>v(u.boolean(m),"boolean",m),symbol:m=>v(u.symbol(m),"symbol",m),numericString:m=>v(u.numericString(m),"string with a number",m),array:(m,w)=>{v(u.array(m),"Array",m),w&&m.forEach(w)},buffer:m=>v(u.buffer(m),"Buffer",m),blob:m=>v(u.blob(m),"Blob",m),nullOrUndefined:m=>v(u.nullOrUndefined(m),"null or undefined",m),object:m=>v(u.object(m),"Object",m),iterable:m=>v(u.iterable(m),"Iterable",m),asyncIterable:m=>v(u.asyncIterable(m),"AsyncIterable",m),generator:m=>v(u.generator(m),"Generator",m),asyncGenerator:m=>v(u.asyncGenerator(m),"AsyncGenerator",m),nativePromise:m=>v(u.nativePromise(m),"native Promise",m),promise:m=>v(u.promise(m),"Promise",m),generatorFunction:m=>v(u.generatorFunction(m),"GeneratorFunction",m),asyncGeneratorFunction:m=>v(u.asyncGeneratorFunction(m),"AsyncGeneratorFunction",m),asyncFunction:m=>v(u.asyncFunction(m),"AsyncFunction",m),boundFunction:m=>v(u.boundFunction(m),"Function",m),regExp:m=>v(u.regExp(m),"RegExp",m),date:m=>v(u.date(m),"Date",m),error:m=>v(u.error(m),"Error",m),map:m=>v(u.map(m),"Map",m),set:m=>v(u.set(m),"Set",m),weakMap:m=>v(u.weakMap(m),"WeakMap",m),weakSet:m=>v(u.weakSet(m),"WeakSet",m),int8Array:m=>v(u.int8Array(m),"Int8Array",m),uint8Array:m=>v(u.uint8Array(m),"Uint8Array",m),uint8ClampedArray:m=>v(u.uint8ClampedArray(m),"Uint8ClampedArray",m),int16Array:m=>v(u.int16Array(m),"Int16Array",m),uint16Array:m=>v(u.uint16Array(m),"Uint16Array",m),int32Array:m=>v(u.int32Array(m),"Int32Array",m),uint32Array:m=>v(u.uint32Array(m),"Uint32Array",m),float32Array:m=>v(u.float32Array(m),"Float32Array",m),float64Array:m=>v(u.float64Array(m),"Float64Array",m),bigInt64Array:m=>v(u.bigInt64Array(m),"BigInt64Array",m),bigUint64Array:m=>v(u.bigUint64Array(m),"BigUint64Array",m),arrayBuffer:m=>v(u.arrayBuffer(m),"ArrayBuffer",m),sharedArrayBuffer:m=>v(u.sharedArrayBuffer(m),"SharedArrayBuffer",m),dataView:m=>v(u.dataView(m),"DataView",m),enumCase:(m,w)=>v(u.enumCase(m,w),"EnumCase",m),urlInstance:m=>v(u.urlInstance(m),"URL",m),urlString:m=>v(u.urlString(m),"string with a URL",m),truthy:m=>v(u.truthy(m),"truthy",m),falsy:m=>v(u.falsy(m),"falsy",m),nan:m=>v(u.nan(m),"NaN",m),primitive:m=>v(u.primitive(m),"primitive",m),integer:m=>v(u.integer(m),"integer",m),safeInteger:m=>v(u.safeInteger(m),"integer",m),plainObject:m=>v(u.plainObject(m),"plain object",m),typedArray:m=>v(u.typedArray(m),"TypedArray",m),arrayLike:m=>v(u.arrayLike(m),"array-like",m),domElement:m=>v(u.domElement(m),"HTMLElement",m),observable:m=>v(u.observable(m),"Observable",m),nodeStream:m=>v(u.nodeStream(m),"Node.js Stream",m),infinite:m=>v(u.infinite(m),"infinite number",m),emptyArray:m=>v(u.emptyArray(m),"empty array",m),nonEmptyArray:m=>v(u.nonEmptyArray(m),"non-empty array",m),emptyString:m=>v(u.emptyString(m),"empty string",m),emptyStringOrWhitespace:m=>v(u.emptyStringOrWhitespace(m),"empty string or whitespace",m),nonEmptyString:m=>v(u.nonEmptyString(m),"non-empty string",m),nonEmptyStringAndNotWhitespace:m=>v(u.nonEmptyStringAndNotWhitespace(m),"non-empty string and not whitespace",m),emptyObject:m=>v(u.emptyObject(m),"empty object",m),nonEmptyObject:m=>v(u.nonEmptyObject(m),"non-empty object",m),emptySet:m=>v(u.emptySet(m),"empty set",m),nonEmptySet:m=>v(u.nonEmptySet(m),"non-empty set",m),emptyMap:m=>v(u.emptyMap(m),"empty map",m),nonEmptyMap:m=>v(u.nonEmptyMap(m),"non-empty map",m),propertyKey:m=>v(u.propertyKey(m),"PropertyKey",m),formData:m=>v(u.formData(m),"FormData",m),urlSearchParams:m=>v(u.urlSearchParams(m),"URLSearchParams",m),evenInteger:m=>v(u.evenInteger(m),"even integer",m),oddInteger:m=>v(u.oddInteger(m),"odd integer",m),directInstanceOf:(m,w)=>v(u.directInstanceOf(m,w),"T",m),inRange:(m,w)=>v(u.inRange(m,w),"in range",m),any:(m,...w)=>v(u.any(m,...w),"predicate returns truthy for any value",w,{multipleValues:!0}),all:(m,...w)=>v(u.all(m,...w),"predicate returns truthy for all values",w,{multipleValues:!0})},Object.defineProperties(u,{class:{value:u.class_},function:{value:u.function_},null:{value:u.null_}}),Object.defineProperties(e.assert,{class:{value:e.assert.class_},function:{value:e.assert.function_},null:{value:e.assert.null_}}),e.default=u,r.exports=u,r.exports.default=u,r.exports.assert=e.assert}),HT=ee((e,r)=>{"use strict";K();var t=class extends Error{constructor(i){super(i||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}},n=class{static fn(i){return(...c)=>new n((a,s,o)=>{c.push(o),i(...c).then(a,s)})}constructor(i){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((c,a)=>{this._reject=a;let s=l=>{(!this._isCanceled||!f.shouldReject)&&(this._isPending=!1,c(l))},o=l=>{this._isPending=!1,a(l)},f=l=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push(l)};return Object.defineProperties(f,{shouldReject:{get:()=>this._rejectOnCancel,set:l=>{this._rejectOnCancel=l}}}),i(s,o,f)})}then(i,c){return this._promise.then(i,c)}catch(i){return this._promise.catch(i)}finally(i){return this._promise.finally(i)}cancel(i){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(let c of this._cancelHandlers)c()}catch(c){this._reject(c);return}this._rejectOnCancel&&this._reject(new t(i))}}get isCanceled(){return this._isCanceled}};Object.setPrototypeOf(n.prototype,Promise.prototype),r.exports=n,r.exports.CancelError=t}),UT=ee((e,r)=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});function t(i){return i.encrypted}var n=(i,c)=>{let a;typeof c=="function"?a={connect:c}:a=c;let s=typeof a.connect=="function",o=typeof a.secureConnect=="function",f=typeof a.close=="function",l=()=>{s&&a.connect(),t(i)&&o&&(i.authorized?a.secureConnect():i.authorizationError||i.once("secureConnect",a.secureConnect)),f&&i.once("close",a.close)};i.writable&&!i.connecting?l():i.connecting?i.once("connect",l):i.destroyed&&f&&a.close(i._hadError)};e.default=n,r.exports=n,r.exports.default=n}),qT=ee((e,r)=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var t=UT(),n=le("util"),i=Number(process.versions.node.split(".")[0]),c=a=>{if(a.timings)return a.timings;let s={start:Date.now(),socket:void 0,lookup:void 0,connect:void 0,secureConnect:void 0,upload:void 0,response:void 0,end:void 0,error:void 0,abort:void 0,phases:{wait:void 0,dns:void 0,tcp:void 0,tls:void 0,request:void 0,firstByte:void 0,download:void 0,total:void 0}};a.timings=s;let o=u=>{let d=u.emit.bind(u);u.emit=(p,...y)=>(p==="error"&&(s.error=Date.now(),s.phases.total=s.error-s.start,u.emit=d),d(p,...y))};o(a);let f=()=>{s.abort=Date.now(),(!s.response||i>=13)&&(s.phases.total=Date.now()-s.start)};a.prependOnceListener("abort",f);let l=u=>{if(s.socket=Date.now(),s.phases.wait=s.socket-s.start,n.types.isProxy(u))return;let d=()=>{s.lookup=Date.now(),s.phases.dns=s.lookup-s.socket};u.prependOnceListener("lookup",d),t.default(u,{connect:()=>{s.connect=Date.now(),s.lookup===void 0&&(u.removeListener("lookup",d),s.lookup=s.connect,s.phases.dns=s.lookup-s.socket),s.phases.tcp=s.connect-s.lookup},secureConnect:()=>{s.secureConnect=Date.now(),s.phases.tls=s.secureConnect-s.connect}})};a.socket?l(a.socket):a.prependOnceListener("socket",l);let h=()=>{var u;s.upload=Date.now(),s.phases.request=s.upload-((u=s.secureConnect)!==null&&u!==void 0?u:s.connect)};return(()=>typeof a.writableFinished=="boolean"?a.writableFinished:a.finished&&a.outputSize===0&&(!a.socket||a.socket.writableLength===0))()?h():a.prependOnceListener("finish",h),a.prependOnceListener("response",u=>{s.response=Date.now(),s.phases.firstByte=s.response-s.upload,u.timings=s,o(u),u.prependOnceListener("end",()=>{s.end=Date.now(),s.phases.download=s.end-s.response,s.phases.total=s.end-s.start}),u.prependOnceListener("aborted",f)}),s};e.default=c,r.exports=c,r.exports.default=c}),GT=ee((e,r)=>{"use strict";K();var{V4MAPPED:t,ADDRCONFIG:n,ALL:i,promises:{Resolver:c},lookup:a}=le("dns"),{promisify:s}=le("util"),o=le("os"),f=Symbol("cacheableLookupCreateConnection"),l=Symbol("cacheableLookupInstance"),h=Symbol("expires"),u=typeof i=="number",d=E=>{if(!(E&&typeof E.createConnection=="function"))throw new Error("Expected an Agent instance as the first argument")},p=E=>{for(let v of E)v.family!==6&&(v.address=`::ffff:${v.address}`,v.family=6)},y=()=>{let E=!1,v=!1;for(let m of Object.values(o.networkInterfaces()))for(let w of m)if(!w.internal&&(w.family==="IPv6"?v=!0:E=!0,E&&v))return{has4:E,has6:v};return{has4:E,has6:v}},b=E=>Symbol.iterator in E,_={ttl:!0},g={all:!0},S=class{constructor({cache:E=new Map,maxTtl:v=1/0,fallbackDuration:m=3600,errorTtl:w=.15,resolver:A=new c,lookup:x=a}={}){if(this.maxTtl=v,this.errorTtl=w,this._cache=E,this._resolver=A,this._dnsLookup=s(x),this._resolver instanceof c?(this._resolve4=this._resolver.resolve4.bind(this._resolver),this._resolve6=this._resolver.resolve6.bind(this._resolver)):(this._resolve4=s(this._resolver.resolve4.bind(this._resolver)),this._resolve6=s(this._resolver.resolve6.bind(this._resolver))),this._iface=y(),this._pending={},this._nextRemovalTime=!1,this._hostnamesToFallback=new Set,m<1)this._fallback=!1;else{this._fallback=!0;let R=setInterval(()=>{this._hostnamesToFallback.clear()},m*1e3);R.unref&&R.unref()}this.lookup=this.lookup.bind(this),this.lookupAsync=this.lookupAsync.bind(this)}set servers(E){this.clear(),this._resolver.setServers(E)}get servers(){return this._resolver.getServers()}lookup(E,v,m){if(typeof v=="function"?(m=v,v={}):typeof v=="number"&&(v={family:v}),!m)throw new Error("Callback must be a function.");this.lookupAsync(E,v).then(w=>{v.all?m(null,w):m(null,w.address,w.family,w.expires,w.ttl)},m)}async lookupAsync(E,v={}){typeof v=="number"&&(v={family:v});let m=await this.query(E);if(v.family===6){let w=m.filter(A=>A.family===6);v.hints&t&&(u&&v.hints&i||w.length===0)?p(m):m=w}else v.family===4&&(m=m.filter(w=>w.family===4));if(v.hints&n){let{_iface:w}=this;m=m.filter(A=>A.family===6?w.has6:w.has4)}if(m.length===0){let w=new Error(`cacheableLookup ENOTFOUND ${E}`);throw w.code="ENOTFOUND",w.hostname=E,w}return v.all?m:m[0]}async query(E){let v=await this._cache.get(E);if(!v){let m=this._pending[E];if(m)v=await m;else{let w=this.queryAndCache(E);this._pending[E]=w;try{v=await w}finally{delete this._pending[E]}}}return v=v.map(m=>({...m})),v}async _resolve(E){let v=async F=>{try{return await F}catch(O){if(O.code==="ENODATA"||O.code==="ENOTFOUND")return[];throw O}},[m,w]=await Promise.all([this._resolve4(E,_),this._resolve6(E,_)].map(F=>v(F))),A=0,x=0,R=0,P=Date.now();for(let F of m)F.family=4,F.expires=P+F.ttl*1e3,A=Math.max(A,F.ttl);for(let F of w)F.family=6,F.expires=P+F.ttl*1e3,x=Math.max(x,F.ttl);return m.length>0?w.length>0?R=Math.min(A,x):R=A:R=x,{entries:[...m,...w],cacheTtl:R}}async _lookup(E){try{return{entries:await this._dnsLookup(E,{all:!0}),cacheTtl:0}}catch{return{entries:[],cacheTtl:0}}}async _set(E,v,m){if(this.maxTtl>0&&m>0){m=Math.min(m,this.maxTtl)*1e3,v[h]=Date.now()+m;try{await this._cache.set(E,v,m)}catch(w){this.lookupAsync=async()=>{let A=new Error("Cache Error. Please recreate the CacheableLookup instance.");throw A.cause=w,A}}b(this._cache)&&this._tick(m)}}async queryAndCache(E){if(this._hostnamesToFallback.has(E))return this._dnsLookup(E,g);let v=await this._resolve(E);v.entries.length===0&&this._fallback&&(v=await this._lookup(E),v.entries.length!==0&&this._hostnamesToFallback.add(E));let m=v.entries.length===0?this.errorTtl:v.cacheTtl;return await this._set(E,v.entries,m),v.entries}_tick(E){let v=this._nextRemovalTime;(!v||E<v)&&(clearTimeout(this._removalTimeout),this._nextRemovalTime=E,this._removalTimeout=setTimeout(()=>{this._nextRemovalTime=!1;let m=1/0,w=Date.now();for(let[A,x]of this._cache){let R=x[h];w>=R?this._cache.delete(A):R<m&&(m=R)}m!==1/0&&this._tick(m-w)},E),this._removalTimeout.unref&&this._removalTimeout.unref())}install(E){if(d(E),f in E)throw new Error("CacheableLookup has been already installed");E[f]=E.createConnection,E[l]=this,E.createConnection=(v,m)=>("lookup"in v||(v.lookup=this.lookup),E[f](v,m))}uninstall(E){if(d(E),E[f]){if(E[l]!==this)throw new Error("The agent is not owned by this CacheableLookup instance");E.createConnection=E[f],delete E[f],delete E[l]}}updateInterfaceInfo(){let{_iface:E}=this;this._iface=y(),(E.has4&&!this._iface.has4||E.has6&&!this._iface.has6)&&this._cache.clear()}clear(E){if(E){this._cache.delete(E);return}this._cache.clear()}};r.exports=S,r.exports.default=S}),zT=ee((e,r)=>{"use strict";K();var t="text/plain",n="us-ascii",i=(s,o)=>o.some(f=>f instanceof RegExp?f.test(s):f===s),c=(s,{stripHash:o})=>{let f=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(s);if(!f)throw new Error(`Invalid URL: ${s}`);let{type:l,data:h,hash:u}=f.groups,d=l.split(";");u=o?"":u;let p=!1;d[d.length-1]==="base64"&&(d.pop(),p=!0);let y=(d.shift()||"").toLowerCase(),b=[...d.map(_=>{let[g,S=""]=_.split("=").map(E=>E.trim());return g==="charset"&&(S=S.toLowerCase(),S===n)?"":`${g}${S?`=${S}`:""}`}).filter(Boolean)];return p&&b.push("base64"),(b.length!==0||y&&y!==t)&&b.unshift(y),`data:${b.join(";")},${p?h.trim():h}${u?`#${u}`:""}`},a=(s,o)=>{if(o={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...o},s=s.trim(),/^data:/i.test(s))return c(s,o);if(/^view-source:/i.test(s))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let f=s.startsWith("//");!f&&/^\.*\//.test(s)||(s=s.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,o.defaultProtocol));let l=new URL(s);if(o.forceHttp&&o.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(o.forceHttp&&l.protocol==="https:"&&(l.protocol="http:"),o.forceHttps&&l.protocol==="http:"&&(l.protocol="https:"),o.stripAuthentication&&(l.username="",l.password=""),o.stripHash?l.hash="":o.stripTextFragment&&(l.hash=l.hash.replace(/#?:~:text.*?$/i,"")),l.pathname&&(l.pathname=l.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")),l.pathname)try{l.pathname=decodeURI(l.pathname)}catch{}if(o.removeDirectoryIndex===!0&&(o.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(o.removeDirectoryIndex)&&o.removeDirectoryIndex.length>0){let u=l.pathname.split("/"),d=u[u.length-1];i(d,o.removeDirectoryIndex)&&(u=u.slice(0,u.length-1),l.pathname=u.slice(1).join("/")+"/")}if(l.hostname&&(l.hostname=l.hostname.replace(/\.$/,""),o.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(l.hostname)&&(l.hostname=l.hostname.replace(/^www\./,""))),Array.isArray(o.removeQueryParameters))for(let u of[...l.searchParams.keys()])i(u,o.removeQueryParameters)&&l.searchParams.delete(u);o.removeQueryParameters===!0&&(l.search=""),o.sortQueryParameters&&l.searchParams.sort(),o.removeTrailingSlash&&(l.pathname=l.pathname.replace(/\/$/,""));let h=s;return s=l.toString(),!o.removeSingleSlash&&l.pathname==="/"&&!h.endsWith("/")&&l.hash===""&&(s=s.replace(/\/$/,"")),(o.removeTrailingSlash||l.pathname==="/")&&l.hash===""&&o.removeSingleSlash&&(s=s.replace(/\/$/,"")),f&&!o.normalizeProtocol&&(s=s.replace(/^http:\/\//,"//")),o.stripProtocol&&(s=s.replace(/^(?:https?:)?\/\//,"")),s};r.exports=a}),WT=ee((e,r)=>{K(),r.exports=t;function t(n,i){if(n&&i)return t(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(a){c[a]=n[a]}),c;function c(){for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];var o=n.apply(this,a),f=a[a.length-1];return typeof o=="function"&&o!==f&&Object.keys(f).forEach(function(l){o[l]=f[l]}),o}}}),$2=ee((e,r)=>{K();var t=WT();r.exports=t(n),r.exports.strict=t(i),n.proto=n(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return n(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})});function n(c){var a=function(){return a.called?a.value:(a.called=!0,a.value=c.apply(this,arguments))};return a.called=!1,a}function i(c){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=c.apply(this,arguments)},s=c.name||"Function wrapped with `once`";return a.onceError=s+" shouldn't be called more than once",a.called=!1,a}}),VT=ee((e,r)=>{K();var t=$2(),n=function(){},i=function(s){return s.setHeader&&typeof s.abort=="function"},c=function(s){return s.stdio&&Array.isArray(s.stdio)&&s.stdio.length===3},a=function(s,o,f){if(typeof o=="function")return a(s,null,o);o||(o={}),f=t(f||n);var l=s._writableState,h=s._readableState,u=o.readable||o.readable!==!1&&s.readable,d=o.writable||o.writable!==!1&&s.writable,p=!1,y=function(){s.writable||b()},b=function(){d=!1,u||f.call(s)},_=function(){u=!1,d||f.call(s)},g=function(w){f.call(s,w?new Error("exited with error code: "+w):null)},S=function(w){f.call(s,w)},E=function(){process.nextTick(v)},v=function(){if(!p){if(u&&!(h&&h.ended&&!h.destroyed))return f.call(s,new Error("premature close"));if(d&&!(l&&l.ended&&!l.destroyed))return f.call(s,new Error("premature close"))}},m=function(){s.req.on("finish",b)};return i(s)?(s.on("complete",b),s.on("abort",E),s.req?m():s.on("request",m)):d&&!l&&(s.on("end",y),s.on("close",y)),c(s)&&s.on("exit",g),s.on("end",_),s.on("finish",b),o.error!==!1&&s.on("error",S),s.on("close",E),function(){p=!0,s.removeListener("complete",b),s.removeListener("abort",E),s.removeListener("request",m),s.req&&s.req.removeListener("finish",b),s.removeListener("end",y),s.removeListener("close",y),s.removeListener("finish",b),s.removeListener("exit",g),s.removeListener("end",_),s.removeListener("error",S),s.removeListener("close",E)}};r.exports=a}),YT=ee((e,r)=>{K();var t=$2(),n=VT(),i=le("fs"),c=function(){},a=/^v?\.0/.test(process.version),s=function(p){return typeof p=="function"},o=function(p){return!a||!i?!1:(p instanceof(i.ReadStream||c)||p instanceof(i.WriteStream||c))&&s(p.close)},f=function(p){return p.setHeader&&s(p.abort)},l=function(p,y,b,_){_=t(_);var g=!1;p.on("close",function(){g=!0}),n(p,{readable:y,writable:b},function(E){if(E)return _(E);g=!0,_()});var S=!1;return function(E){if(!g&&!S){if(S=!0,o(p))return p.close(c);if(f(p))return p.abort();if(s(p.destroy))return p.destroy();_(E||new Error("stream was destroyed"))}}},h=function(p){p()},u=function(p,y){return p.pipe(y)},d=function(){var p=Array.prototype.slice.call(arguments),y=s(p[p.length-1]||c)&&p.pop()||c;if(Array.isArray(p[0])&&(p=p[0]),p.length<2)throw new Error("pump requires two streams per minimum");var b,_=p.map(function(g,S){var E=S<p.length-1,v=S>0;return l(g,E,v,function(m){b||(b=m),m&&_.forEach(h),!E&&(_.forEach(h),y(b))})});return p.reduce(u)};r.exports=d}),KT=ee((e,r)=>{"use strict";K();var{PassThrough:t}=le("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),XT=ee((e,r)=>{"use strict";K();var{constants:t}=le("buffer"),n=YT(),i=KT(),c=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function a(s,o){if(!s)return Promise.reject(new Error("Expected a stream"));o={maxBuffer:1/0,...o};let{maxBuffer:f}=o,l;return await new Promise((h,u)=>{let d=p=>{p&&l.getBufferedLength()<=t.MAX_LENGTH&&(p.bufferedData=l.getBufferedValue()),u(p)};l=n(s,i(o),p=>{if(p){d(p);return}h()}),l.on("data",()=>{l.getBufferedLength()>f&&d(new c)})}),l.getBufferedValue()}r.exports=a,r.exports.default=a,r.exports.buffer=(s,o)=>a(s,{...o,encoding:"buffer"}),r.exports.array=(s,o)=>a(s,{...o,array:!0}),r.exports.MaxBufferError=c}),ZT=ee((e,r)=>{"use strict";K();var t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]),n=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]),i=new Set([500,502,503,504]),c={date:!0,connection:!0,"keep-alive":!0,"proxy-authenticate":!0,"proxy-authorization":!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0},a={"content-length":!0,"content-encoding":!0,"transfer-encoding":!0,"content-range":!0};function s(h){let u=parseInt(h,10);return isFinite(u)?u:0}function o(h){return h?i.has(h.status):!0}function f(h){let u={};if(!h)return u;let d=h.trim().split(/,/);for(let p of d){let[y,b]=p.split(/=/,2);u[y.trim()]=b===void 0?!0:b.trim().replace(/^"|"$/g,"")}return u}function l(h){let u=[];for(let d in h){let p=h[d];u.push(p===!0?d:d+"="+p)}if(u.length)return u.join(", ")}r.exports=class{constructor(h,u,{shared:d,cacheHeuristic:p,immutableMinTimeToLive:y,ignoreCargoCult:b,_fromObject:_}={}){if(_){this._fromObject(_);return}if(!u||!u.headers)throw Error("Response headers missing");this._assertRequestHasHeaders(h),this._responseTime=this.now(),this._isShared=d!==!1,this._cacheHeuristic=p!==void 0?p:.1,this._immutableMinTtl=y!==void 0?y:24*3600*1e3,this._status="status"in u?u.status:200,this._resHeaders=u.headers,this._rescc=f(u.headers["cache-control"]),this._method="method"in h?h.method:"GET",this._url=h.url,this._host=h.headers.host,this._noAuthorization=!h.headers.authorization,this._reqHeaders=u.headers.vary?h.headers:null,this._reqcc=f(h.headers["cache-control"]),b&&"pre-check"in this._rescc&&"post-check"in this._rescc&&(delete this._rescc["pre-check"],delete this._rescc["post-check"],delete this._rescc["no-cache"],delete this._rescc["no-store"],delete this._rescc["must-revalidate"],this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":l(this._rescc)}),delete this._resHeaders.expires,delete this._resHeaders.pragma),u.headers["cache-control"]==null&&/no-cache/.test(u.headers.pragma)&&(this._rescc["no-cache"]=!0)}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&(this._method==="GET"||this._method==="HEAD"||this._method==="POST"&&this._hasExplicitExpiration())&&n.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(h){if(!h||!h.headers)throw Error("Request headers missing")}satisfiesWithoutRevalidation(h){this._assertRequestHasHeaders(h);let u=f(h.headers["cache-control"]);return u["no-cache"]||/no-cache/.test(h.headers.pragma)||u["max-age"]&&this.age()>u["max-age"]||u["min-fresh"]&&this.timeToLive()<1e3*u["min-fresh"]||this.stale()&&!(u["max-stale"]&&!this._rescc["must-revalidate"]&&(u["max-stale"]===!0||u["max-stale"]>this.age()-this.maxAge()))?!1:this._requestMatches(h,!1)}_requestMatches(h,u){return(!this._url||this._url===h.url)&&this._host===h.headers.host&&(!h.method||this._method===h.method||u&&h.method==="HEAD")&&this._varyMatches(h)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(h){if(!this._resHeaders.vary)return!0;if(this._resHeaders.vary==="*")return!1;let u=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(let d of u)if(h.headers[d]!==this._reqHeaders[d])return!1;return!0}_copyWithoutHopByHopHeaders(h){let u={};for(let d in h)c[d]||(u[d]=h[d]);if(h.connection){let d=h.connection.trim().split(/\s*,\s*/);for(let p of d)delete u[p]}if(u.warning){let d=u.warning.split(/,/).filter(p=>!/^\s*1[0-9][0-9]/.test(p));d.length?u.warning=d.join(",").trim():delete u.warning}return u}responseHeaders(){let h=this._copyWithoutHopByHopHeaders(this._resHeaders),u=this.age();return u>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24&&(h.warning=(h.warning?`${h.warning}, `:"")+'113 - "rfc7234 5.5.4"'),h.age=`${Math.round(u)}`,h.date=new Date(this.now()).toUTCString(),h}date(){let h=Date.parse(this._resHeaders.date);return isFinite(h)?h:this._responseTime}age(){let h=this._ageValue(),u=(this.now()-this._responseTime)/1e3;return h+u}_ageValue(){return s(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]||this._isShared&&this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable||this._resHeaders.vary==="*")return 0;if(this._isShared){if(this._rescc["proxy-revalidate"])return 0;if(this._rescc["s-maxage"])return s(this._rescc["s-maxage"])}if(this._rescc["max-age"])return s(this._rescc["max-age"]);let h=this._rescc.immutable?this._immutableMinTtl:0,u=this.date();if(this._resHeaders.expires){let d=Date.parse(this._resHeaders.expires);return Number.isNaN(d)||d<u?0:Math.max(h,(d-u)/1e3)}if(this._resHeaders["last-modified"]){let d=Date.parse(this._resHeaders["last-modified"]);if(isFinite(d)&&u>d)return Math.max(h,(u-d)/1e3*this._cacheHeuristic)}return h}timeToLive(){let h=this.maxAge()-this.age(),u=h+s(this._rescc["stale-if-error"]),d=h+s(this._rescc["stale-while-revalidate"]);return Math.max(0,h,u,d)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+s(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+s(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(h){return new this(void 0,void 0,{_fromObject:h})}_fromObject(h){if(this._responseTime)throw Error("Reinitialized");if(!h||h.v!==1)throw Error("Invalid serialization");this._responseTime=h.t,this._isShared=h.sh,this._cacheHeuristic=h.ch,this._immutableMinTtl=h.imm!==void 0?h.imm:24*3600*1e3,this._status=h.st,this._resHeaders=h.resh,this._rescc=h.rescc,this._method=h.m,this._url=h.u,this._host=h.h,this._noAuthorization=h.a,this._reqHeaders=h.reqh,this._reqcc=h.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(h){this._assertRequestHasHeaders(h);let u=this._copyWithoutHopByHopHeaders(h.headers);if(delete u["if-range"],!this._requestMatches(h,!0)||!this.storable())return delete u["if-none-match"],delete u["if-modified-since"],u;if(this._resHeaders.etag&&(u["if-none-match"]=u["if-none-match"]?`${u["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag),u["accept-ranges"]||u["if-match"]||u["if-unmodified-since"]||this._method&&this._method!="GET"){if(delete u["if-modified-since"],u["if-none-match"]){let d=u["if-none-match"].split(/,/).filter(p=>!/^\s*W\//.test(p));d.length?u["if-none-match"]=d.join(",").trim():delete u["if-none-match"]}}else this._resHeaders["last-modified"]&&!u["if-modified-since"]&&(u["if-modified-since"]=this._resHeaders["last-modified"]);return u}revalidatedPolicy(h,u){if(this._assertRequestHasHeaders(h),this._useStaleIfError()&&o(u))return{modified:!1,matches:!1,policy:this};if(!u||!u.headers)throw Error("Response headers missing");let d=!1;if(u.status!==void 0&&u.status!=304?d=!1:u.headers.etag&&!/^\s*W\//.test(u.headers.etag)?d=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag:this._resHeaders.etag&&u.headers.etag?d=this._resHeaders.etag.replace(/^\s*W\//,"")===u.headers.etag.replace(/^\s*W\//,""):this._resHeaders["last-modified"]?d=this._resHeaders["last-modified"]===u.headers["last-modified"]:!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!u.headers.etag&&!u.headers["last-modified"]&&(d=!0),!d)return{policy:new this.constructor(h,u),modified:u.status!=304,matches:!1};let p={};for(let b in this._resHeaders)p[b]=b in u.headers&&!a[b]?u.headers[b]:this._resHeaders[b];let y=Object.assign({},u,{status:this._status,method:this._method,headers:p});return{policy:new this.constructor(h,y,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:!1,matches:!0}}}}),ul=ee((e,r)=>{"use strict";K(),r.exports=t=>{let n={};for(let[i,c]of Object.entries(t))n[i.toLowerCase()]=c;return n}}),JT=ee((e,r)=>{"use strict";K();var t=le("stream").Readable,n=ul(),i=class extends t{constructor(c,a,s,o){if(typeof c!="number")throw new TypeError("Argument `statusCode` should be a number");if(typeof a!="object")throw new TypeError("Argument `headers` should be an object");if(!(s instanceof Buffer))throw new TypeError("Argument `body` should be a buffer");if(typeof o!="string")throw new TypeError("Argument `url` should be a string");super(),this.statusCode=c,this.headers=n(a),this.body=s,this.url=o}_read(){this.push(this.body),this.push(null)}};r.exports=i}),QT=ee((e,r)=>{"use strict";K();var t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];r.exports=(n,i)=>{let c=new Set(Object.keys(n).concat(t));for(let a of c)a in i||(i[a]=typeof n[a]=="function"?n[a].bind(n):n[a])}}),eF=ee((e,r)=>{"use strict";K();var t=le("stream").PassThrough,n=QT(),i=c=>{if(!(c&&c.pipe))throw new TypeError("Parameter `response` must be a response stream.");let a=new t;return n(c,a),c.pipe(a)};r.exports=i}),tF=ee(e=>{K(),e.stringify=function r(t){if(typeof t>"u")return t;if(t&&Buffer.isBuffer(t))return JSON.stringify(":base64:"+t.toString("base64"));if(t&&t.toJSON&&(t=t.toJSON()),t&&typeof t=="object"){var n="",i=Array.isArray(t);n=i?"[":"{";var c=!0;for(var a in t){var s=typeof t[a]=="function"||!i&&typeof t[a]>"u";Object.hasOwnProperty.call(t,a)&&!s&&(c||(n+=","),c=!1,i?t[a]==null?n+="null":n+=r(t[a]):t[a]!==void 0&&(n+=r(a)+":"+r(t[a])))}return n+=i?"]":"}",n}else return typeof t=="string"?JSON.stringify(/^:/.test(t)?":"+t:t):typeof t>"u"?"null":JSON.stringify(t)},e.parse=function(r){return JSON.parse(r,function(t,n){return typeof n=="string"?/^:base64:/.test(n)?Buffer.from(n.substring(8),"base64"):/^:/.test(n)?n.substring(1):n:n})}}),rF=ee((e,r)=>{"use strict";K();var t=le("events"),n=tF(),i=s=>{let o={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(s.adapter||s.uri){let f=s.adapter||/^[^:+]*/.exec(s.uri)[0];return new(le(o[f]))(s)}return new Map},c=["sqlite","postgres","mysql","mongo","redis","tiered"],a=class extends t{constructor(s,{emitErrors:o=!0,...f}={}){if(super(),this.opts={namespace:"keyv",serialize:n.stringify,deserialize:n.parse,...typeof s=="string"?{uri:s}:s,...f},!this.opts.store){let h={...this.opts};this.opts.store=i(h)}if(this.opts.compression){let h=this.opts.compression;this.opts.serialize=h.serialize.bind(h),this.opts.deserialize=h.deserialize.bind(h)}typeof this.opts.store.on=="function"&&o&&this.opts.store.on("error",h=>this.emit("error",h)),this.opts.store.namespace=this.opts.namespace;let l=h=>async function*(){for await(let[u,d]of typeof h=="function"?h(this.opts.store.namespace):h){let p=this.opts.deserialize(d);if(!(this.opts.store.namespace&&!u.includes(this.opts.store.namespace))){if(typeof p.expires=="number"&&Date.now()>p.expires){this.delete(u);continue}yield[this._getKeyUnprefix(u),p.value]}}};typeof this.opts.store[Symbol.iterator]=="function"&&this.opts.store instanceof Map?this.iterator=l(this.opts.store):typeof this.opts.store.iterator=="function"&&this.opts.store.opts&&this._checkIterableAdaptar()&&(this.iterator=l(this.opts.store.iterator.bind(this.opts.store)))}_checkIterableAdaptar(){return c.includes(this.opts.store.opts.dialect)||c.findIndex(s=>this.opts.store.opts.url.includes(s))>=0}_getKeyPrefix(s){return`${this.opts.namespace}:${s}`}_getKeyPrefixArray(s){return s.map(o=>`${this.opts.namespace}:${o}`)}_getKeyUnprefix(s){return s.split(":").splice(1).join(":")}get(s,o){let{store:f}=this.opts,l=Array.isArray(s),h=l?this._getKeyPrefixArray(s):this._getKeyPrefix(s);if(l&&f.getMany===void 0){let u=[];for(let d of h)u.push(Promise.resolve().then(()=>f.get(d)).then(p=>typeof p=="string"?this.opts.deserialize(p):this.opts.compression?this.opts.deserialize(p):p).then(p=>{if(p!=null)return typeof p.expires=="number"&&Date.now()>p.expires?this.delete(d).then(()=>{}):o&&o.raw?p:p.value}));return Promise.allSettled(u).then(d=>{let p=[];for(let y of d)p.push(y.value);return p})}return Promise.resolve().then(()=>l?f.getMany(h):f.get(h)).then(u=>typeof u=="string"?this.opts.deserialize(u):this.opts.compression?this.opts.deserialize(u):u).then(u=>{if(u!=null){if(l){let d=[];for(let p of u){if(typeof p=="string"&&(p=this.opts.deserialize(p)),p==null){d.push(void 0);continue}typeof p.expires=="number"&&Date.now()>p.expires?(this.delete(s).then(()=>{}),d.push(void 0)):d.push(o&&o.raw?p:p.value)}return d}return typeof u.expires=="number"&&Date.now()>u.expires?this.delete(s).then(()=>{}):o&&o.raw?u:u.value}})}set(s,o,f){let l=this._getKeyPrefix(s);typeof f>"u"&&(f=this.opts.ttl),f===0&&(f=void 0);let{store:h}=this.opts;return Promise.resolve().then(()=>{let u=typeof f=="number"?Date.now()+f:null;return typeof o=="symbol"&&this.emit("error","symbol cannot be serialized"),o={value:o,expires:u},this.opts.serialize(o)}).then(u=>h.set(l,u,f)).then(()=>!0)}delete(s){let{store:o}=this.opts;if(Array.isArray(s)){let l=this._getKeyPrefixArray(s);if(o.deleteMany===void 0){let h=[];for(let u of l)h.push(o.delete(u));return Promise.allSettled(h).then(u=>u.every(d=>d.value===!0))}return Promise.resolve().then(()=>o.deleteMany(l))}let f=this._getKeyPrefix(s);return Promise.resolve().then(()=>o.delete(f))}clear(){let{store:s}=this.opts;return Promise.resolve().then(()=>s.clear())}has(s){let o=this._getKeyPrefix(s),{store:f}=this.opts;return Promise.resolve().then(async()=>typeof f.has=="function"?f.has(o):await f.get(o)!==void 0)}disconnect(){let{store:s}=this.opts;if(typeof s.disconnect=="function")return s.disconnect()}};r.exports=a}),nF=ee((e,r)=>{"use strict";K();var t=le("events"),n=le("url"),i=zT(),c=XT(),a=ZT(),s=JT(),o=ul(),f=eF(),l=rF(),h=class{constructor(p,y){if(typeof p!="function")throw new TypeError("Parameter `request` must be a function");return this.cache=new l({uri:typeof y=="string"&&y,store:typeof y!="string"&&y,namespace:"cacheable-request"}),this.createCacheableRequest(p)}createCacheableRequest(p){return(y,b)=>{let _;if(typeof y=="string")_=d(n.parse(y)),y={};else if(y instanceof n.URL)_=d(n.parse(y.toString())),y={};else{let[A,...x]=(y.path||"").split("?"),R=x.length>0?`?${x.join("?")}`:"";_=d({...y,pathname:A,search:R})}y={headers:{},method:"GET",cache:!0,strictTtl:!1,automaticFailover:!1,...y,...u(_)},y.headers=o(y.headers);let g=new t,S=i(n.format(_),{stripWWW:!1,removeTrailingSlash:!1,stripAuthentication:!1}),E=`${y.method}:${S}`,v=!1,m=!1,w=A=>{m=!0;let x=!1,R,P=new Promise(O=>{R=()=>{x||(x=!0,O())}}),F=O=>{if(v&&!A.forceRefresh){O.status=O.statusCode;let k=a.fromObject(v.cachePolicy).revalidatedPolicy(A,O);if(!k.modified){let L=k.policy.responseHeaders();O=new s(v.statusCode,L,v.body,v.url),O.cachePolicy=k.policy,O.fromCache=!0}}O.fromCache||(O.cachePolicy=new a(A,O,A),O.fromCache=!1);let D;A.cache&&O.cachePolicy.storable()?(D=f(O),(async()=>{try{let k=c.buffer(O);if(await Promise.race([P,new Promise(z=>O.once("end",z))]),x)return;let L=await k,I={cachePolicy:O.cachePolicy.toObject(),url:O.url,statusCode:O.fromCache?v.statusCode:O.statusCode,body:L},H=A.strictTtl?O.cachePolicy.timeToLive():void 0;A.maxTtl&&(H=H?Math.min(H,A.maxTtl):A.maxTtl),await this.cache.set(E,I,H)}catch(k){g.emit("error",new h.CacheError(k))}})()):A.cache&&v&&(async()=>{try{await this.cache.delete(E)}catch(k){g.emit("error",new h.CacheError(k))}})(),g.emit("response",D||O),typeof b=="function"&&b(D||O)};try{let O=p(A,F);O.once("error",R),O.once("abort",R),g.emit("request",O)}catch(O){g.emit("error",new h.RequestError(O))}};return(async()=>{let A=async R=>{await Promise.resolve();let P=R.cache?await this.cache.get(E):void 0;if(typeof P>"u")return w(R);let F=a.fromObject(P.cachePolicy);if(F.satisfiesWithoutRevalidation(R)&&!R.forceRefresh){let O=F.responseHeaders(),D=new s(P.statusCode,O,P.body,P.url);D.cachePolicy=F,D.fromCache=!0,g.emit("response",D),typeof b=="function"&&b(D)}else v=P,R.headers=F.revalidationHeaders(R),w(R)},x=R=>g.emit("error",new h.CacheError(R));this.cache.once("error",x),g.on("response",()=>this.cache.removeListener("error",x));try{await A(y)}catch(R){y.automaticFailover&&!m&&w(y),g.emit("error",new h.CacheError(R))}})(),g}}};function u(p){let y={...p};return y.path=`${p.pathname||"/"}${p.search||""}`,delete y.pathname,delete y.search,y}function d(p){return{protocol:p.protocol,auth:p.auth,hostname:p.hostname||p.host||"localhost",port:p.port,pathname:p.pathname,search:p.search}}h.RequestError=class extends Error{constructor(p){super(p.message),this.name="RequestError",Object.assign(this,p)}},h.CacheError=class extends Error{constructor(p){super(p.message),this.name="CacheError",Object.assign(this,p)}},r.exports=h}),iF=ee((e,r)=>{"use strict";K();var t=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];r.exports=(n,i)=>{if(i._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let c=new Set(Object.keys(n).concat(t)),a={};for(let s of c)s in i||(a[s]={get(){let o=n[s];return typeof o=="function"?o.bind(n):o},set(o){n[s]=o},enumerable:!0,configurable:!1});return Object.defineProperties(i,a),n.once("aborted",()=>{i.destroy(),i.emit("aborted")}),n.once("close",()=>{n.complete&&i.readable?i.once("end",()=>{i.emit("close")}):i.emit("close")}),i}}),sF=ee((e,r)=>{"use strict";K();var{Transform:t,PassThrough:n}=le("stream"),i=le("zlib"),c=iF();r.exports=a=>{let s=(a.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(s))return a;let o=s==="br";if(o&&typeof i.createBrotliDecompress!="function")return a.destroy(new Error("Brotli is not supported on Node.js < 12")),a;let f=!0,l=new t({transform(d,p,y){f=!1,y(null,d)},flush(d){d()}}),h=new n({autoDestroy:!1,destroy(d,p){a.destroy(),p(d)}}),u=o?i.createBrotliDecompress():i.createUnzip();return u.once("error",d=>{if(f&&!a.readable){h.end();return}h.destroy(d)}),c(a,h),a.pipe(l).pipe(u).pipe(h),h}}),H2=ee((e,r)=>{"use strict";K();var t=class{constructor(n={}){if(!(n.maxSize&&n.maxSize>0))throw new TypeError("`maxSize` must be a number greater than 0");this.maxSize=n.maxSize,this.onEviction=n.onEviction,this.cache=new Map,this.oldCache=new Map,this._size=0}_set(n,i){if(this.cache.set(n,i),this._size++,this._size>=this.maxSize){if(this._size=0,typeof this.onEviction=="function")for(let[c,a]of this.oldCache.entries())this.onEviction(c,a);this.oldCache=this.cache,this.cache=new Map}}get(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n)){let i=this.oldCache.get(n);return this.oldCache.delete(n),this._set(n,i),i}}set(n,i){return this.cache.has(n)?this.cache.set(n,i):this._set(n,i),this}has(n){return this.cache.has(n)||this.oldCache.has(n)}peek(n){if(this.cache.has(n))return this.cache.get(n);if(this.oldCache.has(n))return this.oldCache.get(n)}delete(n){let i=this.cache.delete(n);return i&&this._size--,this.oldCache.delete(n)||i}clear(){this.cache.clear(),this.oldCache.clear(),this._size=0}*keys(){for(let[n]of this)yield n}*values(){for(let[,n]of this)yield n}*[Symbol.iterator](){for(let n of this.cache)yield n;for(let n of this.oldCache){let[i]=n;this.cache.has(i)||(yield n)}}get size(){let n=0;for(let i of this.oldCache.keys())this.cache.has(i)||n++;return Math.min(this._size+n,this.maxSize)}};r.exports=t}),U2=ee((e,r)=>{"use strict";K();var t=le("events"),n=le("tls"),i=le("http2"),c=H2(),a=Symbol("currentStreamsCount"),s=Symbol("request"),o=Symbol("cachedOriginSet"),f=Symbol("gracefullyClosing"),l=["maxDeflateDynamicTableSize","maxSessionMemory","maxHeaderListPairs","maxOutstandingPings","maxReservedRemoteStreams","maxSendHeaderBlockLength","paddingStrategy","localAddress","path","rejectUnauthorized","minDHSize","ca","cert","clientCertEngine","ciphers","key","pfx","servername","minVersion","maxVersion","secureProtocol","crl","honorCipherOrder","ecdhCurve","dhparam","secureOptions","sessionIdContext"],h=(g,S,E)=>{let v=0,m=g.length;for(;v<m;){let w=v+m>>>1;E(g[w],S)?v=w+1:m=w}return v},u=(g,S)=>g.remoteSettings.maxConcurrentStreams>S.remoteSettings.maxConcurrentStreams,d=(g,S)=>{for(let E of g)E[o].length<S[o].length&&E[o].every(v=>S[o].includes(v))&&E[a]+S[a]<=S.remoteSettings.maxConcurrentStreams&&b(E)},p=(g,S)=>{for(let E of g)S[o].length<E[o].length&&S[o].every(v=>E[o].includes(v))&&S[a]+E[a]<=E.remoteSettings.maxConcurrentStreams&&b(S)},y=({agent:g,isFree:S})=>{let E={};for(let v in g.sessions){let m=g.sessions[v].filter(w=>{let A=w[_.kCurrentStreamsCount]<w.remoteSettings.maxConcurrentStreams;return S?A:!A});m.length!==0&&(E[v]=m)}return E},b=g=>{g[f]=!0,g[a]===0&&g.close()},_=class extends t{constructor({timeout:g=6e4,maxSessions:S=1/0,maxFreeSessions:E=10,maxCachedTlsSessions:v=100}={}){super(),this.sessions={},this.queue={},this.timeout=g,this.maxSessions=S,this.maxFreeSessions=E,this._freeSessionsCount=0,this._sessionsCount=0,this.settings={enablePush:!1},this.tlsSessionCache=new c({maxSize:v})}static normalizeOrigin(g,S){return typeof g=="string"&&(g=new URL(g)),S&&g.hostname!==S&&(g.hostname=S),g.origin}normalizeOptions(g){let S="";if(g)for(let E of l)g[E]&&(S+=`:${g[E]}`);return S}_tryToCreateNewSession(g,S){if(!(g in this.queue)||!(S in this.queue[g]))return;let E=this.queue[g][S];this._sessionsCount<this.maxSessions&&!E.completed&&(E.completed=!0,E())}getSession(g,S,E){return new Promise((v,m)=>{Array.isArray(E)?(E=[...E],v()):E=[{resolve:v,reject:m}];let w=this.normalizeOptions(S),A=_.normalizeOrigin(g,S&&S.servername);if(A===void 0){for(let{reject:P}of E)P(new TypeError("The `origin` argument needs to be a string or an URL object"));return}if(w in this.sessions){let P=this.sessions[w],F=-1,O=-1,D;for(let k of P){let L=k.remoteSettings.maxConcurrentStreams;if(L<F)break;if(k[o].includes(A)){let I=k[a];if(I>=L||k[f]||k.destroyed)continue;D||(F=L),I>O&&(D=k,O=I)}}if(D){if(E.length!==1){for(let{reject:k}of E){let L=new Error(`Expected the length of listeners to be 1, got ${E.length}.
|
129
|
+
Please report this to https://github.com/szmarczak/http2-wrapper/`);k(L)}return}E[0].resolve(D);return}}if(w in this.queue){if(A in this.queue[w]){this.queue[w][A].listeners.push(...E),this._tryToCreateNewSession(w,A);return}}else this.queue[w]={};let x=()=>{w in this.queue&&this.queue[w][A]===R&&(delete this.queue[w][A],Object.keys(this.queue[w]).length===0&&delete this.queue[w])},R=()=>{let P=`${A}:${w}`,F=!1;try{let O=i.connect(g,{createConnection:this.createConnection,settings:this.settings,session:this.tlsSessionCache.get(P),...S});O[a]=0,O[f]=!1;let D=()=>O[a]<O.remoteSettings.maxConcurrentStreams,k=!0;O.socket.once("session",I=>{this.tlsSessionCache.set(P,I)}),O.once("error",I=>{for(let{reject:H}of E)H(I);this.tlsSessionCache.delete(P)}),O.setTimeout(this.timeout,()=>{O.destroy()}),O.once("close",()=>{if(F){k&&this._freeSessionsCount--,this._sessionsCount--;let I=this.sessions[w];I.splice(I.indexOf(O),1),I.length===0&&delete this.sessions[w]}else{let I=new Error("Session closed without receiving a SETTINGS frame");I.code="HTTP2WRAPPER_NOSETTINGS";for(let{reject:H}of E)H(I);x()}this._tryToCreateNewSession(w,A)});let L=()=>{if(!(!(w in this.queue)||!D())){for(let I of O[o])if(I in this.queue[w]){let{listeners:H}=this.queue[w][I];for(;H.length!==0&&D();)H.shift().resolve(O);let z=this.queue[w];if(z[I].listeners.length===0&&(delete z[I],Object.keys(z).length===0)){delete this.queue[w];break}if(!D())break}}};O.on("origin",()=>{O[o]=O.originSet,D()&&(L(),d(this.sessions[w],O))}),O.once("remoteSettings",()=>{if(O.ref(),O.unref(),this._sessionsCount++,R.destroyed){let I=new Error("Agent has been destroyed");for(let H of E)H.reject(I);O.destroy();return}O[o]=O.originSet;{let I=this.sessions;if(w in I){let H=I[w];H.splice(h(H,O,u),0,O)}else I[w]=[O]}this._freeSessionsCount+=1,F=!0,this.emit("session",O),L(),x(),O[a]===0&&this._freeSessionsCount>this.maxFreeSessions&&O.close(),E.length!==0&&(this.getSession(A,S,E),E.length=0),O.on("remoteSettings",()=>{L(),d(this.sessions[w],O)})}),O[s]=O.request,O.request=(I,H)=>{if(O[f])throw new Error("The session is gracefully closing. No new streams are allowed.");let z=O[s](I,H);return O.ref(),++O[a],O[a]===O.remoteSettings.maxConcurrentStreams&&this._freeSessionsCount--,z.once("close",()=>{if(k=D(),--O[a],!O.destroyed&&!O.closed&&(p(this.sessions[w],O),D()&&!O.closed)){k||(this._freeSessionsCount++,k=!0);let re=O[a]===0;re&&O.unref(),re&&(this._freeSessionsCount>this.maxFreeSessions||O[f])?O.close():(d(this.sessions[w],O),L())}}),z}}catch(O){for(let D of E)D.reject(O);x()}};R.listeners=E,R.completed=!1,R.destroyed=!1,this.queue[w][A]=R,this._tryToCreateNewSession(w,A)})}request(g,S,E,v){return new Promise((m,w)=>{this.getSession(g,S,[{reject:w,resolve:A=>{try{m(A.request(E,v))}catch(x){w(x)}}}])})}createConnection(g,S){return _.connect(g,S)}static connect(g,S){S.ALPNProtocols=["h2"];let E=g.port||443,v=g.hostname||g.host;return typeof S.servername>"u"&&(S.servername=v),n.connect(E,v,S)}closeFreeSessions(){for(let g of Object.values(this.sessions))for(let S of g)S[a]===0&&S.close()}destroy(g){for(let S of Object.values(this.sessions))for(let E of S)E.destroy(g);for(let S of Object.values(this.queue))for(let E of Object.values(S))E.destroyed=!0;this.queue={}}get freeSessions(){return y({agent:this,isFree:!0})}get busySessions(){return y({agent:this,isFree:!1})}};_.kCurrentStreamsCount=a,_.kGracefullyClosing=f,r.exports={Agent:_,globalAgent:new _}}),q2=ee((e,r)=>{"use strict";K();var{Readable:t}=le("stream"),n=class extends t{constructor(i,c){super({highWaterMark:c,autoDestroy:!1}),this.statusCode=null,this.statusMessage="",this.httpVersion="2.0",this.httpVersionMajor=2,this.httpVersionMinor=0,this.headers={},this.trailers={},this.req=null,this.aborted=!1,this.complete=!1,this.upgrade=null,this.rawHeaders=[],this.rawTrailers=[],this.socket=i,this.connection=i,this._dumped=!1}_destroy(i){this.req._request.destroy(i)}setTimeout(i,c){return this.req.setTimeout(i,c),this}_dump(){this._dumped||(this._dumped=!0,this.removeAllListeners("data"),this.resume())}_read(){this.req&&this.req._request.resume()}};r.exports=n}),G2=ee((e,r)=>{"use strict";K(),r.exports=t=>{let n={protocol:t.protocol,hostname:typeof t.hostname=="string"&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return typeof t.port=="string"&&t.port.length!==0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),oF=ee((e,r)=>{"use strict";K(),r.exports=(t,n,i)=>{for(let c of i)t.on(c,(...a)=>n.emit(c,...a))}}),aF=ee((e,r)=>{"use strict";K(),r.exports=t=>{switch(t){case":method":case":scheme":case":authority":case":path":return!0;default:return!1}}}),uF=ee((e,r)=>{"use strict";K();var t=(n,i,c)=>{r.exports[i]=class extends n{constructor(...a){super(typeof c=="string"?c:c(a)),this.name=`${super.name} [${i}]`,this.code=i}}};t(TypeError,"ERR_INVALID_ARG_TYPE",n=>{let i=n[0].includes(".")?"property":"argument",c=n[1],a=Array.isArray(c);return a&&(c=`${c.slice(0,-1).join(", ")} or ${c.slice(-1)}`),`The "${n[0]}" ${i} must be ${a?"one of":"of"} type ${c}. Received ${typeof n[2]}`}),t(TypeError,"ERR_INVALID_PROTOCOL",n=>`Protocol "${n[0]}" not supported. Expected "${n[1]}"`),t(Error,"ERR_HTTP_HEADERS_SENT",n=>`Cannot ${n[0]} headers after they are sent to the client`),t(TypeError,"ERR_INVALID_HTTP_TOKEN",n=>`${n[0]} must be a valid HTTP token [${n[1]}]`),t(TypeError,"ERR_HTTP_INVALID_HEADER_VALUE",n=>`Invalid value "${n[0]} for header "${n[1]}"`),t(TypeError,"ERR_INVALID_CHAR",n=>`Invalid character in ${n[0]} [${n[1]}]`)}),z2=ee((e,r)=>{"use strict";K();var t=le("http2"),{Writable:n}=le("stream"),{Agent:i,globalAgent:c}=U2(),a=q2(),s=G2(),o=oF(),f=aF(),{ERR_INVALID_ARG_TYPE:l,ERR_INVALID_PROTOCOL:h,ERR_HTTP_HEADERS_SENT:u,ERR_INVALID_HTTP_TOKEN:d,ERR_HTTP_INVALID_HEADER_VALUE:p,ERR_INVALID_CHAR:y}=uF(),{HTTP2_HEADER_STATUS:b,HTTP2_HEADER_METHOD:_,HTTP2_HEADER_PATH:g,HTTP2_METHOD_CONNECT:S}=t.constants,E=Symbol("headers"),v=Symbol("origin"),m=Symbol("session"),w=Symbol("options"),A=Symbol("flushedHeaders"),x=Symbol("jobs"),R=/^[\^`\-\w!#$%&*+.|~]+$/,P=/[^\t\u0020-\u007E\u0080-\u00FF]/,F=class extends n{constructor(O,D,k){super({autoDestroy:!1});let L=typeof O=="string"||O instanceof URL;if(L&&(O=s(O instanceof URL?O:new URL(O))),typeof D=="function"||D===void 0?(k=D,D=L?O:{...O}):D={...O,...D},D.h2session)this[m]=D.h2session;else if(D.agent===!1)this.agent=new i({maxFreeSessions:0});else if(typeof D.agent>"u"||D.agent===null)typeof D.createConnection=="function"?(this.agent=new i({maxFreeSessions:0}),this.agent.createConnection=D.createConnection):this.agent=c;else if(typeof D.agent.request=="function")this.agent=D.agent;else throw new l("options.agent",["Agent-like Object","undefined","false"],D.agent);if(D.protocol&&D.protocol!=="https:")throw new h(D.protocol,"https:");let I=D.port||D.defaultPort||this.agent&&this.agent.defaultPort||443,H=D.hostname||D.host||"localhost";delete D.hostname,delete D.host,delete D.port;let{timeout:z}=D;if(D.timeout=void 0,this[E]=Object.create(null),this[x]=[],this.socket=null,this.connection=null,this.method=D.method||"GET",this.path=D.path,this.res=null,this.aborted=!1,this.reusedSocket=!1,D.headers)for(let[re,B]of Object.entries(D.headers))this.setHeader(re,B);D.auth&&!("authorization"in this[E])&&(this[E].authorization="Basic "+Buffer.from(D.auth).toString("base64")),D.session=D.tlsSession,D.path=D.socketPath,this[w]=D,I===443?(this[v]=`https://${H}`,":authority"in this[E]||(this[E][":authority"]=H)):(this[v]=`https://${H}:${I}`,":authority"in this[E]||(this[E][":authority"]=`${H}:${I}`)),z&&this.setTimeout(z),k&&this.once("response",k),this[A]=!1}get method(){return this[E][_]}set method(O){O&&(this[E][_]=O.toUpperCase())}get path(){return this[E][g]}set path(O){O&&(this[E][g]=O)}get _mustNotHaveABody(){return this.method==="GET"||this.method==="HEAD"||this.method==="DELETE"}_write(O,D,k){if(this._mustNotHaveABody){k(new Error("The GET, HEAD and DELETE methods must NOT have a body"));return}this.flushHeaders();let L=()=>this._request.write(O,D,k);this._request?L():this[x].push(L)}_final(O){if(this.destroyed)return;this.flushHeaders();let D=()=>{if(this._mustNotHaveABody){O();return}this._request.end(O)};this._request?D():this[x].push(D)}abort(){this.res&&this.res.complete||(this.aborted||process.nextTick(()=>this.emit("abort")),this.aborted=!0,this.destroy())}_destroy(O,D){this.res&&this.res._dump(),this._request&&this._request.destroy(),D(O)}async flushHeaders(){if(this[A]||this.destroyed)return;this[A]=!0;let O=this.method===S,D=k=>{if(this._request=k,this.destroyed){k.destroy();return}O||o(k,this,["timeout","continue","close","error"]);let L=H=>(...z)=>{!this.writable&&!this.destroyed?H(...z):this.once("finish",()=>{H(...z)})};k.once("response",L((H,z,re)=>{let B=new a(this.socket,k.readableHighWaterMark);this.res=B,B.req=this,B.statusCode=H[b],B.headers=H,B.rawHeaders=re,B.once("end",()=>{this.aborted?(B.aborted=!0,B.emit("aborted")):(B.complete=!0,B.socket=null,B.connection=null)}),O?(B.upgrade=!0,this.emit("connect",B,k,Buffer.alloc(0))?this.emit("close"):k.destroy()):(k.on("data",M=>{!B._dumped&&!B.push(M)&&k.pause()}),k.once("end",()=>{B.push(null)}),this.emit("response",B)||B._dump())})),k.once("headers",L(H=>this.emit("information",{statusCode:H[b]}))),k.once("trailers",L((H,z,re)=>{let{res:B}=this;B.trailers=H,B.rawTrailers=re}));let{socket:I}=k.session;this.socket=I,this.connection=I;for(let H of this[x])H();this.emit("socket",this.socket)};if(this[m])try{D(this[m].request(this[E]))}catch(k){this.emit("error",k)}else{this.reusedSocket=!0;try{D(await this.agent.request(this[v],this[w],this[E]))}catch(k){this.emit("error",k)}}}getHeader(O){if(typeof O!="string")throw new l("name","string",O);return this[E][O.toLowerCase()]}get headersSent(){return this[A]}removeHeader(O){if(typeof O!="string")throw new l("name","string",O);if(this.headersSent)throw new u("remove");delete this[E][O.toLowerCase()]}setHeader(O,D){if(this.headersSent)throw new u("set");if(typeof O!="string"||!R.test(O)&&!f(O))throw new d("Header name",O);if(typeof D>"u")throw new p(D,O);if(P.test(D))throw new y("header content",O);this[E][O.toLowerCase()]=D}setNoDelay(){}setSocketKeepAlive(){}setTimeout(O,D){let k=()=>this._request.setTimeout(O,D);return this._request?k():this[x].push(k),this}get maxHeadersCount(){if(!this.destroyed&&this._request)return this._request.session.localSettings.maxHeaderListSize}set maxHeadersCount(O){}};r.exports=F}),lF=ee((e,r)=>{"use strict";K();var t=le("tls");r.exports=(n={},i=t.connect)=>new Promise((c,a)=>{let s=!1,o,f=async()=>{await h,o.off("timeout",l),o.off("error",a),n.resolveSocket?(c({alpnProtocol:o.alpnProtocol,socket:o,timeout:s}),s&&(await Promise.resolve(),o.emit("timeout"))):(o.destroy(),c({alpnProtocol:o.alpnProtocol,timeout:s}))},l=async()=>{s=!0,f()},h=(async()=>{try{o=await i(n,f),o.on("error",a),o.once("timeout",l)}catch(u){a(u)}})()})}),cF=ee((e,r)=>{"use strict";K();var t=le("net");r.exports=n=>{let i=n.host,c=n.headers&&n.headers.host;return c&&(c.startsWith("[")?c.indexOf("]")===-1?i=c:i=c.slice(1,-1):i=c.split(":",1)[0]),t.isIP(i)?"":i}}),hF=ee((e,r)=>{"use strict";K();var t=le("http"),n=le("https"),i=lF(),c=H2(),a=z2(),s=cF(),o=G2(),f=new c({maxSize:100}),l=new Map,h=(d,p,y)=>{p._httpMessage={shouldKeepAlive:!0};let b=()=>{d.emit("free",p,y)};p.on("free",b);let _=()=>{d.removeSocket(p,y)};p.on("close",_);let g=()=>{d.removeSocket(p,y),p.off("close",_),p.off("free",b),p.off("agentRemove",g)};p.on("agentRemove",g),d.emit("free",p,y)},u=async d=>{let p=`${d.host}:${d.port}:${d.ALPNProtocols.sort()}`;if(!f.has(p)){if(l.has(p))return(await l.get(p)).alpnProtocol;let{path:y,agent:b}=d;d.path=d.socketPath;let _=i(d);l.set(p,_);try{let{socket:g,alpnProtocol:S}=await _;if(f.set(p,S),d.path=y,S==="h2")g.destroy();else{let{globalAgent:E}=n,v=n.Agent.prototype.createConnection;b?b.createConnection===v?h(b,g,d):g.destroy():E.createConnection===v?h(E,g,d):g.destroy()}return l.delete(p),S}catch(g){throw l.delete(p),g}}return f.get(p)};r.exports=async(d,p,y)=>{if((typeof d=="string"||d instanceof URL)&&(d=o(new URL(d))),typeof p=="function"&&(y=p,p=void 0),p={ALPNProtocols:["h2","http/1.1"],...d,...p,resolveSocket:!0},!Array.isArray(p.ALPNProtocols)||p.ALPNProtocols.length===0)throw new Error("The `ALPNProtocols` option must be an Array with at least one entry");p.protocol=p.protocol||"https:";let b=p.protocol==="https:";p.host=p.hostname||p.host||"localhost",p.session=p.tlsSession,p.servername=p.servername||s(p),p.port=p.port||(b?443:80),p._defaultAgent=b?n.globalAgent:t.globalAgent;let _=p.agent;if(_){if(_.addRequest)throw new Error("The `options.agent` object can contain only `http`, `https` or `http2` properties");p.agent=_[b?"https":"http"]}return b&&await u(p)==="h2"?(_&&(p.agent=_.http2),new a(p,y)):t.request(p,y)},r.exports.protocolCache=f}),fF=ee((e,r)=>{"use strict";K();var t=le("http2"),n=U2(),i=z2(),c=q2(),a=hF(),s=(f,l,h)=>new i(f,l,h),o=(f,l,h)=>{let u=new i(f,l,h);return u.end(),u};r.exports={...t,ClientRequest:i,IncomingMessage:c,...n,request:s,get:o,auto:a}}),W2=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr();e.default=t=>r.default.nodeStream(t)&&r.default.function_(t.getBoundary)}),pF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("fs"),t=le("util"),n=hr(),i=W2(),c=t.promisify(r.stat);e.default=async(a,s)=>{if(s&&"content-length"in s)return Number(s["content-length"]);if(!a)return 0;if(n.default.string(a))return Buffer.byteLength(a);if(n.default.buffer(a))return a.length;if(i.default(a))return t.promisify(a.getLength.bind(a))();if(a instanceof r.ReadStream){let{size:o}=await c(a.path);return o===0?void 0:o}}}),V2=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});function r(t,n,i){let c={};for(let a of i)c[a]=(...s)=>{n.emit(a,...s)},t.on(a,c[a]);return()=>{for(let a of i)t.off(a,c[a])}}e.default=r}),dF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.default=()=>{let r=[];return{once(t,n,i){t.once(n,i),r.push({origin:t,event:n,fn:i})},unhandleAll(){for(let t of r){let{origin:n,event:i,fn:c}=t;n.removeListener(i,c)}r.length=0}}}}),mF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.TimeoutError=void 0;var r=le("net"),t=dF(),n=Symbol("reentry"),i=()=>{},c=class extends Error{constructor(a,s){super(`Timeout awaiting '${s}' for ${a}ms`),this.event=s,this.name="TimeoutError",this.code="ETIMEDOUT"}};e.TimeoutError=c,e.default=(a,s,o)=>{if(n in a)return i;a[n]=!0;let f=[],{once:l,unhandleAll:h}=t.default(),u=(_,g,S)=>{var E;let v=setTimeout(g,_,_,S);(E=v.unref)===null||E===void 0||E.call(v);let m=()=>{clearTimeout(v)};return f.push(m),m},{host:d,hostname:p}=o,y=(_,g)=>{a.destroy(new c(_,g))},b=()=>{for(let _ of f)_();h()};if(a.once("error",_=>{if(b(),a.listenerCount("error")===0)throw _}),a.once("close",b),l(a,"response",_=>{l(_,"end",b)}),typeof s.request<"u"&&u(s.request,y,"request"),typeof s.socket<"u"){let _=()=>{y(s.socket,"socket")};a.setTimeout(s.socket,_),f.push(()=>{a.removeListener("timeout",_)})}return l(a,"socket",_=>{var g;let{socketPath:S}=a;if(_.connecting){let E=!!(S!=null?S:r.isIP((g=p!=null?p:d)!==null&&g!==void 0?g:"")!==0);if(typeof s.lookup<"u"&&!E&&typeof _.address().address>"u"){let v=u(s.lookup,y,"lookup");l(_,"lookup",v)}if(typeof s.connect<"u"){let v=()=>u(s.connect,y,"connect");E?l(_,"connect",v()):l(_,"lookup",m=>{m===null&&l(_,"connect",v())})}typeof s.secureConnect<"u"&&o.protocol==="https:"&&l(_,"connect",()=>{let v=u(s.secureConnect,y,"secureConnect");l(_,"secureConnect",v)})}if(typeof s.send<"u"){let E=()=>u(s.send,y,"send");_.connecting?l(_,"connect",()=>{l(a,"upload-complete",E())}):l(a,"upload-complete",E())}}),typeof s.response<"u"&&l(a,"upload-complete",()=>{let _=u(s.response,y,"response");l(a,"response",_)}),b}}),yF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr();e.default=t=>{t=t;let n={protocol:t.protocol,hostname:r.default.string(t.hostname)&&t.hostname.startsWith("[")?t.hostname.slice(1,-1):t.hostname,host:t.host,hash:t.hash,search:t.search,pathname:t.pathname,href:t.href,path:`${t.pathname||""}${t.search||""}`};return r.default.string(t.port)&&t.port.length>0&&(n.port=Number(t.port)),(t.username||t.password)&&(n.auth=`${t.username||""}:${t.password||""}`),n}}),gF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("url"),t=["protocol","host","hostname","port","pathname","search"];e.default=(n,i)=>{var c,a;if(i.path){if(i.pathname)throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.");if(i.search)throw new TypeError("Parameters `path` and `search` are mutually exclusive.");if(i.searchParams)throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}if(i.search&&i.searchParams)throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.");if(!n){if(!i.protocol)throw new TypeError("No URL protocol specified");n=`${i.protocol}//${(a=(c=i.hostname)!==null&&c!==void 0?c:i.host)!==null&&a!==void 0?a:""}`}let s=new r.URL(n);if(i.path){let o=i.path.indexOf("?");o===-1?i.pathname=i.path:(i.pathname=i.path.slice(0,o),i.search=i.path.slice(o+1)),delete i.path}for(let o of t)i[o]&&(s[o]=i[o].toString());return s}}),bF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=class{constructor(){this.weakMap=new WeakMap,this.map=new Map}set(t,n){typeof t=="object"?this.weakMap.set(t,n):this.map.set(t,n)}get(t){return typeof t=="object"?this.weakMap.get(t):this.map.get(t)}has(t){return typeof t=="object"?this.weakMap.has(t):this.map.has(t)}};e.default=r}),Y2=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=async t=>{let n=[],i=0;for await(let c of t)n.push(c),i+=Buffer.byteLength(c);return Buffer.isBuffer(n[0])?Buffer.concat(n,i):Buffer.from(n.join(""))};e.default=r}),vF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.dnsLookupIpVersionToFamily=e.isDnsLookupIpVersion=void 0;var r={auto:0,ipv4:4,ipv6:6};e.isDnsLookupIpVersion=t=>t in r,e.dnsLookupIpVersionToFamily=t=>{if(e.isDnsLookupIpVersion(t))return r[t];throw new Error("Invalid DNS lookup IP version")}}),K2=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.isResponseOk=void 0,e.isResponseOk=r=>{let{statusCode:t}=r,n=r.request.options.followRedirect?299:399;return t>=200&&t<=n||t===304}}),_F=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=new Set;e.default=t=>{r.has(t)||(r.add(t),process.emitWarning(`Got: ${t}`,{type:"DeprecationWarning"}))}}),wF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr(),t=(n,i)=>{if(r.default.null_(n.encoding))throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead");r.assert.any([r.default.string,r.default.undefined],n.encoding),r.assert.any([r.default.boolean,r.default.undefined],n.resolveBodyOnly),r.assert.any([r.default.boolean,r.default.undefined],n.methodRewriting),r.assert.any([r.default.boolean,r.default.undefined],n.isStream),r.assert.any([r.default.string,r.default.undefined],n.responseType),n.responseType===void 0&&(n.responseType="text");let{retry:c}=n;if(i?n.retry={...i.retry}:n.retry={calculateDelay:a=>a.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:void 0},r.default.object(c)?(n.retry={...n.retry,...c},n.retry.methods=[...new Set(n.retry.methods.map(a=>a.toUpperCase()))],n.retry.statusCodes=[...new Set(n.retry.statusCodes)],n.retry.errorCodes=[...new Set(n.retry.errorCodes)]):r.default.number(c)&&(n.retry.limit=c),r.default.undefined(n.retry.maxRetryAfter)&&(n.retry.maxRetryAfter=Math.min(...[n.timeout.request,n.timeout.connect].filter(r.default.number))),r.default.object(n.pagination)){i&&(n.pagination={...i.pagination,...n.pagination});let{pagination:a}=n;if(!r.default.function_(a.transform))throw new Error("`options.pagination.transform` must be implemented");if(!r.default.function_(a.shouldContinue))throw new Error("`options.pagination.shouldContinue` must be implemented");if(!r.default.function_(a.filter))throw new TypeError("`options.pagination.filter` must be implemented");if(!r.default.function_(a.paginate))throw new Error("`options.pagination.paginate` must be implemented")}return n.responseType==="json"&&n.headers.accept===void 0&&(n.headers.accept="application/json"),n};e.default=t}),EF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.retryAfterStatusCodes=void 0,e.retryAfterStatusCodes=new Set([413,429,503]);var r=({attemptCount:t,retryOptions:n,error:i,retryAfter:c})=>{if(t>n.limit)return 0;let a=n.methods.includes(i.options.method),s=n.errorCodes.includes(i.code),o=i.response&&n.statusCodes.includes(i.response.statusCode);if(!a||!s&&!o)return 0;if(i.response){if(c)return n.maxRetryAfter===void 0||c>n.maxRetryAfter?0:c;if(i.response.statusCode===413)return 0}let f=Math.random()*100;return 2**(t-1)*1e3+f};e.default=r}),Is=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.UnsupportedProtocolError=e.ReadError=e.TimeoutError=e.UploadError=e.CacheError=e.HTTPError=e.MaxRedirectsError=e.RequestError=e.setNonEnumerableProperties=e.knownHookEvents=e.withoutBody=e.kIsNormalizedAlready=void 0;var r=le("util"),t=le("stream"),n=le("fs"),i=le("url"),c=le("http"),a=le("http"),s=le("https"),o=qT(),f=GT(),l=nF(),h=sF(),u=fF(),d=ul(),p=hr(),y=pF(),b=W2(),_=V2(),g=mF(),S=yF(),E=gF(),v=bF(),m=Y2(),w=vF(),A=K2(),x=_F(),R=wF(),P=EF(),F,O=Symbol("request"),D=Symbol("response"),k=Symbol("responseSize"),L=Symbol("downloadedSize"),I=Symbol("bodySize"),H=Symbol("uploadedSize"),z=Symbol("serverResponsesPiped"),re=Symbol("unproxyEvents"),B=Symbol("isFromCache"),M=Symbol("cancelTimeouts"),T=Symbol("startedReading"),Y=Symbol("stopReading"),U=Symbol("triggerRead"),Q=Symbol("body"),N=Symbol("jobs"),W=Symbol("originalResponse"),J=Symbol("retryTimeout");e.kIsNormalizedAlready=Symbol("isNormalizedAlready");var ae=p.default.string(process.versions.brotli);e.withoutBody=new Set(["GET","HEAD"]),e.knownHookEvents=["init","beforeRequest","beforeRedirect","beforeError","beforeRetry","afterResponse"];function oe(V){for(let $ in V){let ue=V[$];if(!p.default.string(ue)&&!p.default.number(ue)&&!p.default.boolean(ue)&&!p.default.null_(ue)&&!p.default.undefined(ue))throw new TypeError(`The \`searchParams\` value '${String(ue)}' must be a string, number, boolean or null`)}}function de(V){return p.default.object(V)&&!("statusCode"in V)}var pe=new v.default,j=async V=>new Promise(($,ue)=>{let _e=ge=>{ue(ge)};V.pending||$(),V.once("error",_e),V.once("ready",()=>{V.off("error",_e),$()})}),G=new Set([300,301,302,303,304,307,308]),C=["context","body","json","form"];e.setNonEnumerableProperties=(V,$)=>{let ue={};for(let _e of V)if(_e)for(let ge of C)ge in _e&&(ue[ge]={writable:!0,configurable:!0,enumerable:!1,value:_e[ge]});Object.defineProperties($,ue)};var q=class extends Error{constructor(V,$,ue){var _e,ge;if(super(V),Error.captureStackTrace(this,this.constructor),this.name="RequestError",this.code=(_e=$.code)!==null&&_e!==void 0?_e:"ERR_GOT_REQUEST_ERROR",ue instanceof xe?(Object.defineProperty(this,"request",{enumerable:!1,value:ue}),Object.defineProperty(this,"response",{enumerable:!1,value:ue[D]}),Object.defineProperty(this,"options",{enumerable:!1,value:ue.options})):Object.defineProperty(this,"options",{enumerable:!1,value:ue}),this.timings=(ge=this.request)===null||ge===void 0?void 0:ge.timings,p.default.string($.stack)&&p.default.string(this.stack)){let he=this.stack.indexOf(this.message)+this.message.length,be=this.stack.slice(he).split(`
|
130
|
+
`).reverse(),Ee=$.stack.slice($.stack.indexOf($.message)+$.message.length).split(`
|
131
|
+
`).reverse();for(;Ee.length!==0&&Ee[0]===be[0];)be.shift();this.stack=`${this.stack.slice(0,he)}${be.reverse().join(`
|
132
|
+
`)}${Ee.reverse().join(`
|
133
|
+
`)}`}}};e.RequestError=q;var X=class extends q{constructor(V){super(`Redirected ${V.options.maxRedirects} times. Aborting.`,{},V),this.name="MaxRedirectsError",this.code="ERR_TOO_MANY_REDIRECTS"}};e.MaxRedirectsError=X;var ne=class extends q{constructor(V){super(`Response code ${V.statusCode} (${V.statusMessage})`,{},V.request),this.name="HTTPError",this.code="ERR_NON_2XX_3XX_RESPONSE"}};e.HTTPError=ne;var me=class extends q{constructor(V,$){super(V.message,V,$),this.name="CacheError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_CACHE_ACCESS":this.code}};e.CacheError=me;var se=class extends q{constructor(V,$){super(V.message,V,$),this.name="UploadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_UPLOAD":this.code}};e.UploadError=se;var fe=class extends q{constructor(V,$,ue){super(V.message,V,ue),this.name="TimeoutError",this.event=V.event,this.timings=$}};e.TimeoutError=fe;var ie=class extends q{constructor(V,$){super(V.message,V,$),this.name="ReadError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_READING_RESPONSE_STREAM":this.code}};e.ReadError=ie;var ye=class extends q{constructor(V){super(`Unsupported protocol "${V.url.protocol}"`,{},V),this.name="UnsupportedProtocolError",this.code="ERR_UNSUPPORTED_PROTOCOL"}};e.UnsupportedProtocolError=ye;var we=["socket","connect","continue","information","upgrade","timeout"],xe=class extends t.Duplex{constructor(V,$={},ue){super({autoDestroy:!1,highWaterMark:0}),this[L]=0,this[H]=0,this.requestInitialized=!1,this[z]=new Set,this.redirects=[],this[Y]=!1,this[U]=!1,this[N]=[],this.retryCount=0,this._progressCallbacks=[];let _e=()=>this._unlockWrite(),ge=()=>this._lockWrite();this.on("pipe",Ae=>{Ae.prependListener("data",_e),Ae.on("data",ge),Ae.prependListener("end",_e),Ae.on("end",ge)}),this.on("unpipe",Ae=>{Ae.off("data",_e),Ae.off("data",ge),Ae.off("end",_e),Ae.off("end",ge)}),this.on("pipe",Ae=>{Ae instanceof a.IncomingMessage&&(this.options.headers={...Ae.headers,...this.options.headers})});let{json:he,body:be,form:Ee}=$;if((he||be||Ee)&&this._lockWrite(),e.kIsNormalizedAlready in $)this.options=$;else try{this.options=this.constructor.normalizeArguments(V,$,ue)}catch(Ae){p.default.nodeStream($.body)&&$.body.destroy(),this.destroy(Ae);return}(async()=>{var Ae;try{this.options.body instanceof n.ReadStream&&await j(this.options.body);let{url:Me}=this.options;if(!Me)throw new TypeError("Missing `url` property");if(this.requestUrl=Me.toString(),decodeURI(this.requestUrl),await this._finalizeBody(),await this._makeRequest(),this.destroyed){(Ae=this[O])===null||Ae===void 0||Ae.destroy();return}for(let Ie of this[N])Ie();this[N].length=0,this.requestInitialized=!0}catch(Me){if(Me instanceof q){this._beforeError(Me);return}this.destroyed||this.destroy(Me)}})()}static normalizeArguments(V,$,ue){var _e,ge,he,be,Ee;let Ae=$;if(p.default.object(V)&&!p.default.urlInstance(V))$={...ue,...V,...$};else{if(V&&$&&$.url!==void 0)throw new TypeError("The `url` option is mutually exclusive with the `input` argument");$={...ue,...$},V!==void 0&&($.url=V),p.default.urlInstance($.url)&&($.url=new i.URL($.url.toString()))}if($.cache===!1&&($.cache=void 0),$.dnsCache===!1&&($.dnsCache=void 0),p.assert.any([p.default.string,p.default.undefined],$.method),p.assert.any([p.default.object,p.default.undefined],$.headers),p.assert.any([p.default.string,p.default.urlInstance,p.default.undefined],$.prefixUrl),p.assert.any([p.default.object,p.default.undefined],$.cookieJar),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.searchParams),p.assert.any([p.default.object,p.default.string,p.default.undefined],$.cache),p.assert.any([p.default.object,p.default.number,p.default.undefined],$.timeout),p.assert.any([p.default.object,p.default.undefined],$.context),p.assert.any([p.default.object,p.default.undefined],$.hooks),p.assert.any([p.default.boolean,p.default.undefined],$.decompress),p.assert.any([p.default.boolean,p.default.undefined],$.ignoreInvalidCookies),p.assert.any([p.default.boolean,p.default.undefined],$.followRedirect),p.assert.any([p.default.number,p.default.undefined],$.maxRedirects),p.assert.any([p.default.boolean,p.default.undefined],$.throwHttpErrors),p.assert.any([p.default.boolean,p.default.undefined],$.http2),p.assert.any([p.default.boolean,p.default.undefined],$.allowGetBody),p.assert.any([p.default.string,p.default.undefined],$.localAddress),p.assert.any([w.isDnsLookupIpVersion,p.default.undefined],$.dnsLookupIpVersion),p.assert.any([p.default.object,p.default.undefined],$.https),p.assert.any([p.default.boolean,p.default.undefined],$.rejectUnauthorized),$.https&&(p.assert.any([p.default.boolean,p.default.undefined],$.https.rejectUnauthorized),p.assert.any([p.default.function_,p.default.undefined],$.https.checkServerIdentity),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificateAuthority),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.key),p.assert.any([p.default.string,p.default.object,p.default.array,p.default.undefined],$.https.certificate),p.assert.any([p.default.string,p.default.undefined],$.https.passphrase),p.assert.any([p.default.string,p.default.buffer,p.default.array,p.default.undefined],$.https.pfx)),p.assert.any([p.default.object,p.default.undefined],$.cacheOptions),p.default.string($.method)?$.method=$.method.toUpperCase():$.method="GET",$.headers===(ue==null?void 0:ue.headers)?$.headers={...$.headers}:$.headers=d({...ue==null?void 0:ue.headers,...$.headers}),"slashes"in $)throw new TypeError("The legacy `url.Url` has been deprecated. Use `URL` instead.");if("auth"in $)throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.");if("searchParams"in $&&$.searchParams&&$.searchParams!==(ue==null?void 0:ue.searchParams)){let Se;if(p.default.string($.searchParams)||$.searchParams instanceof i.URLSearchParams)Se=new i.URLSearchParams($.searchParams);else{oe($.searchParams),Se=new i.URLSearchParams;for(let Fe in $.searchParams){let Be=$.searchParams[Fe];Be===null?Se.append(Fe,""):Be!==void 0&&Se.append(Fe,Be)}}(_e=ue==null?void 0:ue.searchParams)===null||_e===void 0||_e.forEach((Fe,Be)=>{Se.has(Be)||Se.append(Be,Fe)}),$.searchParams=Se}if($.username=(ge=$.username)!==null&&ge!==void 0?ge:"",$.password=(he=$.password)!==null&&he!==void 0?he:"",p.default.undefined($.prefixUrl)?$.prefixUrl=(be=ue==null?void 0:ue.prefixUrl)!==null&&be!==void 0?be:"":($.prefixUrl=$.prefixUrl.toString(),$.prefixUrl!==""&&!$.prefixUrl.endsWith("/")&&($.prefixUrl+="/")),p.default.string($.url)){if($.url.startsWith("/"))throw new Error("`input` must not start with a slash when using `prefixUrl`");$.url=E.default($.prefixUrl+$.url,$)}else(p.default.undefined($.url)&&$.prefixUrl!==""||$.protocol)&&($.url=E.default($.prefixUrl,$));if($.url){"port"in $&&delete $.port;let{prefixUrl:Se}=$;Object.defineProperty($,"prefixUrl",{set:Be=>{let Ce=$.url;if(!Ce.href.startsWith(Be))throw new Error(`Cannot change \`prefixUrl\` from ${Se} to ${Be}: ${Ce.href}`);$.url=new i.URL(Be+Ce.href.slice(Se.length)),Se=Be},get:()=>Se});let{protocol:Fe}=$.url;if(Fe==="unix:"&&(Fe="http:",$.url=new i.URL(`http://unix${$.url.pathname}${$.url.search}`)),$.searchParams&&($.url.search=$.searchParams.toString()),Fe!=="http:"&&Fe!=="https:")throw new ye($);$.username===""?$.username=$.url.username:$.url.username=$.username,$.password===""?$.password=$.url.password:$.url.password=$.password}let{cookieJar:Me}=$;if(Me){let{setCookie:Se,getCookieString:Fe}=Me;p.assert.function_(Se),p.assert.function_(Fe),Se.length===4&&Fe.length===0&&(Se=r.promisify(Se.bind($.cookieJar)),Fe=r.promisify(Fe.bind($.cookieJar)),$.cookieJar={setCookie:Se,getCookieString:Fe})}let{cache:Ie}=$;if(Ie&&(pe.has(Ie)||pe.set(Ie,new l((Se,Fe)=>{let Be=Se[O](Se,Fe);return p.default.promise(Be)&&(Be.once=(Ce,ke)=>{if(Ce==="error")Be.catch(ke);else if(Ce==="abort")(async()=>{try{(await Be).once("abort",ke)}catch{}})();else throw new Error(`Unknown HTTP2 promise event: ${Ce}`);return Be}),Be},Ie))),$.cacheOptions={...$.cacheOptions},$.dnsCache===!0)F||(F=new f.default),$.dnsCache=F;else if(!p.default.undefined($.dnsCache)&&!$.dnsCache.lookup)throw new TypeError(`Parameter \`dnsCache\` must be a CacheableLookup instance or a boolean, got ${p.default($.dnsCache)}`);p.default.number($.timeout)?$.timeout={request:$.timeout}:ue&&$.timeout!==ue.timeout?$.timeout={...ue.timeout,...$.timeout}:$.timeout={...$.timeout},$.context||($.context={});let $t=$.hooks===(ue==null?void 0:ue.hooks);$.hooks={...$.hooks};for(let Se of e.knownHookEvents)if(Se in $.hooks)if(p.default.array($.hooks[Se]))$.hooks[Se]=[...$.hooks[Se]];else throw new TypeError(`Parameter \`${Se}\` must be an Array, got ${p.default($.hooks[Se])}`);else $.hooks[Se]=[];if(ue&&!$t)for(let Se of e.knownHookEvents)ue.hooks[Se].length>0&&($.hooks[Se]=[...ue.hooks[Se],...$.hooks[Se]]);if("family"in $&&x.default('"options.family" was never documented, please use "options.dnsLookupIpVersion"'),ue!=null&&ue.https&&($.https={...ue.https,...$.https}),"rejectUnauthorized"in $&&x.default('"options.rejectUnauthorized" is now deprecated, please use "options.https.rejectUnauthorized"'),"checkServerIdentity"in $&&x.default('"options.checkServerIdentity" was never documented, please use "options.https.checkServerIdentity"'),"ca"in $&&x.default('"options.ca" was never documented, please use "options.https.certificateAuthority"'),"key"in $&&x.default('"options.key" was never documented, please use "options.https.key"'),"cert"in $&&x.default('"options.cert" was never documented, please use "options.https.certificate"'),"passphrase"in $&&x.default('"options.passphrase" was never documented, please use "options.https.passphrase"'),"pfx"in $&&x.default('"options.pfx" was never documented, please use "options.https.pfx"'),"followRedirects"in $)throw new TypeError("The `followRedirects` option does not exist. Use `followRedirect` instead.");if($.agent){for(let Se in $.agent)if(Se!=="http"&&Se!=="https"&&Se!=="http2")throw new TypeError(`Expected the \`options.agent\` properties to be \`http\`, \`https\` or \`http2\`, got \`${Se}\``)}return $.maxRedirects=(Ee=$.maxRedirects)!==null&&Ee!==void 0?Ee:0,e.setNonEnumerableProperties([ue,Ae],$),R.default($,ue)}_lockWrite(){let V=()=>{throw new TypeError("The payload has been already provided")};this.write=V,this.end=V}_unlockWrite(){this.write=super.write,this.end=super.end}async _finalizeBody(){let{options:V}=this,{headers:$}=V,ue=!p.default.undefined(V.form),_e=!p.default.undefined(V.json),ge=!p.default.undefined(V.body),he=ue||_e||ge,be=e.withoutBody.has(V.method)&&!(V.method==="GET"&&V.allowGetBody);if(this._cannotHaveBody=be,he){if(be)throw new TypeError(`The \`${V.method}\` method cannot be used with a body`);if([ge,ue,_e].filter(Ee=>Ee).length>1)throw new TypeError("The `body`, `json` and `form` options are mutually exclusive");if(ge&&!(V.body instanceof t.Readable)&&!p.default.string(V.body)&&!p.default.buffer(V.body)&&!b.default(V.body))throw new TypeError("The `body` option must be a stream.Readable, string or Buffer");if(ue&&!p.default.object(V.form))throw new TypeError("The `form` option must be an Object");{let Ee=!p.default.string($["content-type"]);ge?(b.default(V.body)&&Ee&&($["content-type"]=`multipart/form-data; boundary=${V.body.getBoundary()}`),this[Q]=V.body):ue?(Ee&&($["content-type"]="application/x-www-form-urlencoded"),this[Q]=new i.URLSearchParams(V.form).toString()):(Ee&&($["content-type"]="application/json"),this[Q]=V.stringifyJson(V.json));let Ae=await y.default(this[Q],V.headers);p.default.undefined($["content-length"])&&p.default.undefined($["transfer-encoding"])&&!be&&!p.default.undefined(Ae)&&($["content-length"]=String(Ae))}}else be?this._lockWrite():this._unlockWrite();this[I]=Number($["content-length"])||void 0}async _onResponseBase(V){let{options:$}=this,{url:ue}=$;this[W]=V,$.decompress&&(V=h(V));let _e=V.statusCode,ge=V;ge.statusMessage=ge.statusMessage?ge.statusMessage:c.STATUS_CODES[_e],ge.url=$.url.toString(),ge.requestUrl=this.requestUrl,ge.redirectUrls=this.redirects,ge.request=this,ge.isFromCache=V.fromCache||!1,ge.ip=this.ip,ge.retryCount=this.retryCount,this[B]=ge.isFromCache,this[k]=Number(V.headers["content-length"])||void 0,this[D]=V,V.once("end",()=>{this[k]=this[L],this.emit("downloadProgress",this.downloadProgress)}),V.once("error",be=>{V.destroy(),this._beforeError(new ie(be,this))}),V.once("aborted",()=>{this._beforeError(new ie({name:"Error",message:"The server aborted pending request",code:"ECONNRESET"},this))}),this.emit("downloadProgress",this.downloadProgress);let he=V.headers["set-cookie"];if(p.default.object($.cookieJar)&&he){let be=he.map(async Ee=>$.cookieJar.setCookie(Ee,ue.toString()));$.ignoreInvalidCookies&&(be=be.map(async Ee=>Ee.catch(()=>{})));try{await Promise.all(be)}catch(Ee){this._beforeError(Ee);return}}if($.followRedirect&&V.headers.location&&G.has(_e)){if(V.resume(),this[O]&&(this[M](),delete this[O],this[re]()),(_e===303&&$.method!=="GET"&&$.method!=="HEAD"||!$.methodRewriting)&&($.method="GET","body"in $&&delete $.body,"json"in $&&delete $.json,"form"in $&&delete $.form,this[Q]=void 0,delete $.headers["content-length"]),this.redirects.length>=$.maxRedirects){this._beforeError(new X(this));return}try{let be=function(Ie){return Ie.protocol==="unix:"||Ie.hostname==="unix"},Ee=Buffer.from(V.headers.location,"binary").toString(),Ae=new i.URL(Ee,ue),Me=Ae.toString();if(decodeURI(Me),!be(ue)&&be(Ae)){this._beforeError(new q("Cannot redirect to UNIX socket",{},this));return}Ae.hostname!==ue.hostname||Ae.port!==ue.port?("host"in $.headers&&delete $.headers.host,"cookie"in $.headers&&delete $.headers.cookie,"authorization"in $.headers&&delete $.headers.authorization,($.username||$.password)&&($.username="",$.password="")):(Ae.username=$.username,Ae.password=$.password),this.redirects.push(Me),$.url=Ae;for(let Ie of $.hooks.beforeRedirect)await Ie($,ge);this.emit("redirect",ge,$),await this._makeRequest()}catch(be){this._beforeError(be);return}return}if($.isStream&&$.throwHttpErrors&&!A.isResponseOk(ge)){this._beforeError(new ne(ge));return}V.on("readable",()=>{this[U]&&this._read()}),this.on("resume",()=>{V.resume()}),this.on("pause",()=>{V.pause()}),V.once("end",()=>{this.push(null)}),this.emit("response",V);for(let be of this[z])if(!be.headersSent){for(let Ee in V.headers){let Ae=$.decompress?Ee!=="content-encoding":!0,Me=V.headers[Ee];Ae&&be.setHeader(Ee,Me)}be.statusCode=_e}}async _onResponse(V){try{await this._onResponseBase(V)}catch($){this._beforeError($)}}_onRequest(V){let{options:$}=this,{timeout:ue,url:_e}=$;o.default(V),this[M]=g.default(V,ue,_e);let ge=$.cache?"cacheableResponse":"response";V.once(ge,Ee=>{this._onResponse(Ee)}),V.once("error",Ee=>{var Ae;V.destroy(),(Ae=V.res)===null||Ae===void 0||Ae.removeAllListeners("end"),Ee=Ee instanceof g.TimeoutError?new fe(Ee,this.timings,this):new q(Ee.message,Ee,this),this._beforeError(Ee)}),this[re]=_.default(V,this,we),this[O]=V,this.emit("uploadProgress",this.uploadProgress);let he=this[Q],be=this.redirects.length===0?this:V;p.default.nodeStream(he)?(he.pipe(be),he.once("error",Ee=>{this._beforeError(new se(Ee,this))})):(this._unlockWrite(),p.default.undefined(he)?(this._cannotHaveBody||this._noPipe)&&(be.end(),this._lockWrite()):(this._writeRequest(he,void 0,()=>{}),be.end(),this._lockWrite())),this.emit("request",V)}async _createCacheableRequest(V,$){return new Promise((ue,_e)=>{Object.assign($,S.default(V)),delete $.url;let ge,he=pe.get($.cache)($,async be=>{be._readableState.autoDestroy=!1,ge&&(await ge).emit("cacheableResponse",be),ue(be)});$.url=V,he.once("error",_e),he.once("request",async be=>{ge=be,ue(ge)})})}async _makeRequest(){var V,$,ue,_e,ge;let{options:he}=this,{headers:be}=he;for(let ke in be)if(p.default.undefined(be[ke]))delete be[ke];else if(p.default.null_(be[ke]))throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${ke}\` header`);if(he.decompress&&p.default.undefined(be["accept-encoding"])&&(be["accept-encoding"]=ae?"gzip, deflate, br":"gzip, deflate"),he.cookieJar){let ke=await he.cookieJar.getCookieString(he.url.toString());p.default.nonEmptyString(ke)&&(he.headers.cookie=ke)}for(let ke of he.hooks.beforeRequest){let Ht=await ke(he);if(!p.default.undefined(Ht)){he.request=()=>Ht;break}}he.body&&this[Q]!==he.body&&(this[Q]=he.body);let{agent:Ee,request:Ae,timeout:Me,url:Ie}=he;if(he.dnsCache&&!("lookup"in he)&&(he.lookup=he.dnsCache.lookup),Ie.hostname==="unix"){let ke=/(?<socketPath>.+?):(?<path>.+)/.exec(`${Ie.pathname}${Ie.search}`);if(ke!=null&&ke.groups){let{socketPath:Ht,path:no}=ke.groups;Object.assign(he,{socketPath:Ht,path:no,host:""})}}let $t=Ie.protocol==="https:",Se;he.http2?Se=u.auto:Se=$t?s.request:c.request;let Fe=(V=he.request)!==null&&V!==void 0?V:Se,Be=he.cache?this._createCacheableRequest:Fe;Ee&&!he.http2&&(he.agent=Ee[$t?"https":"http"]),he[O]=Fe,delete he.request,delete he.timeout;let Ce=he;if(Ce.shared=($=he.cacheOptions)===null||$===void 0?void 0:$.shared,Ce.cacheHeuristic=(ue=he.cacheOptions)===null||ue===void 0?void 0:ue.cacheHeuristic,Ce.immutableMinTimeToLive=(_e=he.cacheOptions)===null||_e===void 0?void 0:_e.immutableMinTimeToLive,Ce.ignoreCargoCult=(ge=he.cacheOptions)===null||ge===void 0?void 0:ge.ignoreCargoCult,he.dnsLookupIpVersion!==void 0)try{Ce.family=w.dnsLookupIpVersionToFamily(he.dnsLookupIpVersion)}catch{throw new Error("Invalid `dnsLookupIpVersion` option value")}he.https&&("rejectUnauthorized"in he.https&&(Ce.rejectUnauthorized=he.https.rejectUnauthorized),he.https.checkServerIdentity&&(Ce.checkServerIdentity=he.https.checkServerIdentity),he.https.certificateAuthority&&(Ce.ca=he.https.certificateAuthority),he.https.certificate&&(Ce.cert=he.https.certificate),he.https.key&&(Ce.key=he.https.key),he.https.passphrase&&(Ce.passphrase=he.https.passphrase),he.https.pfx&&(Ce.pfx=he.https.pfx));try{let ke=await Be(Ie,Ce);p.default.undefined(ke)&&(ke=Se(Ie,Ce)),he.request=Ae,he.timeout=Me,he.agent=Ee,he.https&&("rejectUnauthorized"in he.https&&delete Ce.rejectUnauthorized,he.https.checkServerIdentity&&delete Ce.checkServerIdentity,he.https.certificateAuthority&&delete Ce.ca,he.https.certificate&&delete Ce.cert,he.https.key&&delete Ce.key,he.https.passphrase&&delete Ce.passphrase,he.https.pfx&&delete Ce.pfx),de(ke)?this._onRequest(ke):this.writable?(this.once("finish",()=>{this._onResponse(ke)}),this._unlockWrite(),this.end(),this._lockWrite()):this._onResponse(ke)}catch(ke){throw ke instanceof l.CacheError?new me(ke,this):new q(ke.message,ke,this)}}async _error(V){try{for(let $ of this.options.hooks.beforeError)V=await $(V)}catch($){V=new q($.message,$,this)}this.destroy(V)}_beforeError(V){if(this[Y])return;let{options:$}=this,ue=this.retryCount+1;this[Y]=!0,V instanceof q||(V=new q(V.message,V,this));let _e=V,{response:ge}=_e;(async()=>{if(ge&&!ge.body){ge.setEncoding(this._readableState.encoding);try{ge.rawBody=await m.default(ge),ge.body=ge.rawBody.toString()}catch{}}if(this.listenerCount("retry")!==0){let he;try{let be;ge&&"retry-after"in ge.headers&&(be=Number(ge.headers["retry-after"]),Number.isNaN(be)?(be=Date.parse(ge.headers["retry-after"])-Date.now(),be<=0&&(be=1)):be*=1e3),he=await $.retry.calculateDelay({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:P.default({attemptCount:ue,retryOptions:$.retry,error:_e,retryAfter:be,computedValue:0})})}catch(be){this._error(new q(be.message,be,this));return}if(he){let be=async()=>{try{for(let Ee of this.options.hooks.beforeRetry)await Ee(this.options,_e,ue)}catch(Ee){this._error(new q(Ee.message,V,this));return}this.destroyed||(this.destroy(),this.emit("retry",ue,V))};this[J]=setTimeout(be,he);return}}this._error(_e)})()}_read(){this[U]=!0;let V=this[D];if(V&&!this[Y]){V.readableLength&&(this[U]=!1);let $;for(;($=V.read())!==null;){this[L]+=$.length,this[T]=!0;let ue=this.downloadProgress;ue.percent<1&&this.emit("downloadProgress",ue),this.push($)}}}_write(V,$,ue){let _e=()=>{this._writeRequest(V,$,ue)};this.requestInitialized?_e():this[N].push(_e)}_writeRequest(V,$,ue){this[O].destroyed||(this._progressCallbacks.push(()=>{this[H]+=Buffer.byteLength(V,$);let _e=this.uploadProgress;_e.percent<1&&this.emit("uploadProgress",_e)}),this[O].write(V,$,_e=>{!_e&&this._progressCallbacks.length>0&&this._progressCallbacks.shift()(),ue(_e)}))}_final(V){let $=()=>{for(;this._progressCallbacks.length!==0;)this._progressCallbacks.shift()();if(!(O in this)){V();return}if(this[O].destroyed){V();return}this[O].end(ue=>{ue||(this[I]=this[H],this.emit("uploadProgress",this.uploadProgress),this[O].emit("upload-complete")),V(ue)})};this.requestInitialized?$():this[N].push($)}_destroy(V,$){var ue;this[Y]=!0,clearTimeout(this[J]),O in this&&(this[M](),!((ue=this[D])===null||ue===void 0)&&ue.complete||this[O].destroy()),V!==null&&!p.default.undefined(V)&&!(V instanceof q)&&(V=new q(V.message,V,this)),$(V)}get _isAboutToError(){return this[Y]}get ip(){var V;return(V=this.socket)===null||V===void 0?void 0:V.remoteAddress}get aborted(){var V,$,ue;return(($=(V=this[O])===null||V===void 0?void 0:V.destroyed)!==null&&$!==void 0?$:this.destroyed)&&!(!((ue=this[W])===null||ue===void 0)&&ue.complete)}get socket(){var V,$;return($=(V=this[O])===null||V===void 0?void 0:V.socket)!==null&&$!==void 0?$:void 0}get downloadProgress(){let V;return this[k]?V=this[L]/this[k]:this[k]===this[L]?V=1:V=0,{percent:V,transferred:this[L],total:this[k]}}get uploadProgress(){let V;return this[I]?V=this[H]/this[I]:this[I]===this[H]?V=1:V=0,{percent:V,transferred:this[H],total:this[I]}}get timings(){var V;return(V=this[O])===null||V===void 0?void 0:V.timings}get isFromCache(){return this[B]}pipe(V,$){if(this[T])throw new Error("Failed to pipe. The response has been emitted already.");return V instanceof a.ServerResponse&&this[z].add(V),super.pipe(V,$)}unpipe(V){return V instanceof a.ServerResponse&&this[z].delete(V),super.unpipe(V),this}};e.default=xe}),Ls=ee(e=>{"use strict";K();var r=e&&e.__createBinding||(Object.create?function(a,s,o,f){f===void 0&&(f=o),Object.defineProperty(a,f,{enumerable:!0,get:function(){return s[o]}})}:function(a,s,o,f){f===void 0&&(f=o),a[f]=s[o]}),t=e&&e.__exportStar||function(a,s){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&r(s,a,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.CancelError=e.ParseError=void 0;var n=Is(),i=class extends n.RequestError{constructor(a,s){let{options:o}=s.request;super(`${a.message} in "${o.url.toString()}"`,a,s.request),this.name="ParseError",this.code=this.code==="ERR_GOT_REQUEST_ERROR"?"ERR_BODY_PARSE_FAILURE":this.code}};e.ParseError=i;var c=class extends n.RequestError{constructor(a){super("Promise was canceled",{},a),this.name="CancelError",this.code="ERR_CANCELED"}get isCanceled(){return!0}};e.CancelError=c,t(Is(),e)}),SF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ls(),t=(n,i,c,a)=>{let{rawBody:s}=n;try{if(i==="text")return s.toString(a);if(i==="json")return s.length===0?"":c(s.toString());if(i==="buffer")return s;throw new r.ParseError({message:`Unknown body type '${i}'`,name:"Error"},n)}catch(o){throw new r.ParseError(o,n)}};e.default=t}),X2=ee(e=>{"use strict";K();var r=e&&e.__createBinding||(Object.create?function(p,y,b,_){_===void 0&&(_=b),Object.defineProperty(p,_,{enumerable:!0,get:function(){return y[b]}})}:function(p,y,b,_){_===void 0&&(_=b),p[_]=y[b]}),t=e&&e.__exportStar||function(p,y){for(var b in p)b!=="default"&&!Object.prototype.hasOwnProperty.call(y,b)&&r(y,p,b)};Object.defineProperty(e,"__esModule",{value:!0});var n=le("events"),i=hr(),c=HT(),a=Ls(),s=SF(),o=Is(),f=V2(),l=Y2(),h=K2(),u=["request","response","redirect","uploadProgress","downloadProgress"];function d(p){let y,b,_=new n.EventEmitter,g=new c((E,v,m)=>{let w=A=>{let x=new o.default(void 0,p);x.retryCount=A,x._noPipe=!0,m(()=>x.destroy()),m.shouldReject=!1,m(()=>v(new a.CancelError(x))),y=x,x.once("response",async F=>{var O;if(F.retryCount=A,F.request.aborted)return;let D;try{D=await l.default(x),F.rawBody=D}catch{return}if(x._isAboutToError)return;let k=((O=F.headers["content-encoding"])!==null&&O!==void 0?O:"").toLowerCase(),L=["gzip","deflate","br"].includes(k),{options:I}=x;if(L&&!I.decompress)F.body=D;else try{F.body=s.default(F,I.responseType,I.parseJson,I.encoding)}catch(H){if(F.body=D.toString(),h.isResponseOk(F)){x._beforeError(H);return}}try{for(let[H,z]of I.hooks.afterResponse.entries())F=await z(F,async re=>{let B=o.default.normalizeArguments(void 0,{...re,retry:{calculateDelay:()=>0},throwHttpErrors:!1,resolveBodyOnly:!1},I);B.hooks.afterResponse=B.hooks.afterResponse.slice(0,H);for(let T of B.hooks.beforeRetry)await T(B);let M=d(B);return m(()=>{M.catch(()=>{}),M.cancel()}),M})}catch(H){x._beforeError(new a.RequestError(H.message,H,x));return}if(b=F,!h.isResponseOk(F)){x._beforeError(new a.HTTPError(F));return}x.destroy(),E(x.options.resolveBodyOnly?F.body:F)});let R=F=>{if(g.isCanceled)return;let{options:O}=x;if(F instanceof a.HTTPError&&!O.throwHttpErrors){let{response:D}=F;E(x.options.resolveBodyOnly?D.body:D);return}v(F)};x.once("error",R);let P=x.options.body;x.once("retry",(F,O)=>{var D,k;if(P===((D=O.request)===null||D===void 0?void 0:D.options.body)&&i.default.nodeStream((k=O.request)===null||k===void 0?void 0:k.options.body)){R(O);return}w(F)}),f.default(x,_,u)};w(0)});g.on=(E,v)=>(_.on(E,v),g);let S=E=>{let v=(async()=>{await g;let{options:m}=b.request;return s.default(b,E,m.parseJson,m.encoding)})();return Object.defineProperties(v,Object.getOwnPropertyDescriptors(g)),v};return g.json=()=>{let{headers:E}=y.options;return!y.writableFinished&&E.accept===void 0&&(E.accept="application/json"),S("json")},g.buffer=()=>S("buffer"),g.text=()=>S("text"),g}e.default=d,t(Ls(),e)}),AF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ls();function t(n,...i){let c=(async()=>{if(n instanceof r.RequestError)try{for(let s of i)if(s)for(let o of s)n=await o(n)}catch(s){n=s}throw n})(),a=()=>c;return c.json=a,c.text=a,c.buffer=a,c.on=a,c}e.default=t}),xF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=hr();function t(n){for(let i of Object.values(n))(r.default.plainObject(i)||r.default.array(i))&&t(i);return Object.freeze(n)}e.default=t}),CF=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0})}),j2=ee(e=>{"use strict";K();var r=e&&e.__createBinding||(Object.create?function(_,g,S,E){E===void 0&&(E=S),Object.defineProperty(_,E,{enumerable:!0,get:function(){return g[S]}})}:function(_,g,S,E){E===void 0&&(E=S),_[E]=g[S]}),t=e&&e.__exportStar||function(_,g){for(var S in _)S!=="default"&&!Object.prototype.hasOwnProperty.call(g,S)&&r(g,_,S)};Object.defineProperty(e,"__esModule",{value:!0}),e.defaultHandler=void 0;var n=hr(),i=X2(),c=AF(),a=Is(),s=xF(),o={RequestError:i.RequestError,CacheError:i.CacheError,ReadError:i.ReadError,HTTPError:i.HTTPError,MaxRedirectsError:i.MaxRedirectsError,TimeoutError:i.TimeoutError,ParseError:i.ParseError,CancelError:i.CancelError,UnsupportedProtocolError:i.UnsupportedProtocolError,UploadError:i.UploadError},f=async _=>new Promise(g=>{setTimeout(g,_)}),{normalizeArguments:l}=a.default,h=(..._)=>{let g;for(let S of _)g=l(void 0,S,g);return g},u=_=>_.isStream?new a.default(void 0,_):i.default(_),d=_=>"defaults"in _&&"options"in _.defaults,p=["get","post","put","patch","head","delete"];e.defaultHandler=(_,g)=>g(_);var y=(_,g)=>{if(_)for(let S of _)S(g)},b=_=>{_._rawHandlers=_.handlers,_.handlers=_.handlers.map(E=>(v,m)=>{let w,A=E(v,x=>(w=m(x),w));if(A!==w&&!v.isStream&&w){let x=A,{then:R,catch:P,finally:F}=x;Object.setPrototypeOf(x,Object.getPrototypeOf(w)),Object.defineProperties(x,Object.getOwnPropertyDescriptors(w)),x.then=R,x.catch=P,x.finally=F}return A});let g=(E,v={},m)=>{var w,A;let x=0,R=P=>_.handlers[x++](P,x===_.handlers.length?u:R);if(n.default.plainObject(E)){let P={...E,...v};a.setNonEnumerableProperties([E,v],P),v=P,E=void 0}try{let P;try{y(_.options.hooks.init,v),y((w=v.hooks)===null||w===void 0?void 0:w.init,v)}catch(O){P=O}let F=l(E,v,m!=null?m:_.options);if(F[a.kIsNormalizedAlready]=!0,P)throw new i.RequestError(P.message,P,F);return R(F)}catch(P){if(v.isStream)throw P;return c.default(P,_.options.hooks.beforeError,(A=v.hooks)===null||A===void 0?void 0:A.beforeError)}};g.extend=(...E)=>{let v=[_.options],m=[..._._rawHandlers],w;for(let A of E)d(A)?(v.push(A.defaults.options),m.push(...A.defaults._rawHandlers),w=A.defaults.mutableDefaults):(v.push(A),"handlers"in A&&m.push(...A.handlers),w=A.mutableDefaults);return m=m.filter(A=>A!==e.defaultHandler),m.length===0&&m.push(e.defaultHandler),b({options:h(...v),handlers:m,mutableDefaults:!!w})};let S=async function*(E,v){let m=l(E,v,_.options);m.resolveBodyOnly=!1;let w=m.pagination;if(!n.default.object(w))throw new TypeError("`options.pagination` must be implemented");let A=[],{countLimit:x}=w,R=0;for(;R<w.requestLimit;){R!==0&&await f(w.backoff);let P=await g(void 0,void 0,m),F=await w.transform(P),O=[];for(let k of F)if(w.filter(k,A,O)&&(!w.shouldContinue(k,A,O)||(yield k,w.stackAllItems&&A.push(k),O.push(k),--x<=0)))return;let D=w.paginate(P,A,O);if(D===!1)return;D===P.request.options?m=P.request.options:D!==void 0&&(m=l(void 0,D,m)),R++}};g.paginate=S,g.paginate.all=async(E,v)=>{let m=[];for await(let w of S(E,v))m.push(w);return m},g.paginate.each=S,g.stream=(E,v)=>g(E,{...v,isStream:!0});for(let E of p)g[E]=(v,m)=>g(v,{...m,method:E}),g.stream[E]=(v,m)=>g(v,{...m,method:E,isStream:!0});return Object.assign(g,o),Object.defineProperty(g,"defaults",{value:_.mutableDefaults?_:s.default(_),writable:_.mutableDefaults,configurable:_.mutableDefaults,enumerable:!0}),g.mergeOptions=h,g};e.default=b,t(CF(),e)}),kF=ee((e,r)=>{"use strict";K();var t=e&&e.__createBinding||(Object.create?function(o,f,l,h){h===void 0&&(h=l),Object.defineProperty(o,h,{enumerable:!0,get:function(){return f[l]}})}:function(o,f,l,h){h===void 0&&(h=l),o[h]=f[l]}),n=e&&e.__exportStar||function(o,f){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(f,l)&&t(f,o,l)};Object.defineProperty(e,"__esModule",{value:!0});var i=le("url"),c=j2(),a={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:void 0,calculateDelay:({computedValue:o})=>o},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},cache:void 0,dnsCache:void 0,decompress:!0,throwHttpErrors:!0,followRedirect:!0,isStream:!1,responseType:"text",resolveBodyOnly:!1,maxRedirects:10,prefixUrl:"",methodRewriting:!0,ignoreInvalidCookies:!1,context:{},http2:!1,allowGetBody:!1,https:void 0,pagination:{transform:o=>o.request.options.responseType==="json"?o.body:JSON.parse(o.body),paginate:o=>{if(!Reflect.has(o.headers,"link"))return!1;let f=o.headers.link.split(","),l;for(let h of f){let u=h.split(";");if(u[1].includes("next")){l=u[0].trimStart().trim(),l=l.slice(1,-1);break}}return l?{url:new i.URL(l)}:!1},filter:()=>!0,shouldContinue:()=>!0,countLimit:1/0,backoff:0,requestLimit:1e4,stackAllItems:!0},parseJson:o=>JSON.parse(o),stringifyJson:o=>JSON.stringify(o),cacheOptions:{}},handlers:[c.defaultHandler],mutableDefaults:!1},s=c.default(a);e.default=s,r.exports=s,r.exports.default=s,r.exports.__esModule=!0,n(j2(),e),n(X2(),e)}),ni=ee((e,r)=>{"use strict";K();var t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);r.exports=n=>n?Object.keys(n).map(i=>[t.has(i)?t.get(i):i,n[i]]).reduce((i,c)=>(i[c[0]]=c[1],i),Object.create(null)):{}}),ll=ee((e,r)=>{"use strict";K();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=le("events"),i=le("stream"),c=le("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("buffer"),v=Symbol("pipes"),m=Symbol("bufferLength"),w=Symbol("bufferPush"),A=Symbol("bufferShift"),x=Symbol("objectMode"),R=Symbol("destroyed"),P=Symbol("emitData"),F=Symbol("emitEnd"),O=Symbol("emitEnd2"),D=Symbol("async"),k=Y=>Promise.resolve().then(Y),L=global._MP_NO_ITERATOR_SYMBOLS_!=="1",I=L&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),H=L&&Symbol.iterator||Symbol("iterator not implemented"),z=Y=>Y==="end"||Y==="finish"||Y==="prefinish",re=Y=>Y instanceof ArrayBuffer||typeof Y=="object"&&Y.constructor&&Y.constructor.name==="ArrayBuffer"&&Y.byteLength>=0,B=Y=>!Buffer.isBuffer(Y)&&ArrayBuffer.isView(Y),M=class{constructor(Y,U,Q){this.src=Y,this.dest=U,this.opts=Q,this.ondrain=()=>Y[S](),U.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},T=class extends M{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Y,U,Q){super(Y,U,Q),this.proxyErrors=N=>U.emit("error",N),Y.on("error",this.proxyErrors)}};r.exports=class Z2 extends i{constructor(U){super(),this[_]=!1,this[g]=!1,this[v]=[],this[E]=[],this[x]=U&&U.objectMode||!1,this[x]?this[y]=null:this[y]=U&&U.encoding||null,this[y]==="buffer"&&(this[y]=null),this[D]=U&&!!U.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[m]=0,this[R]=!1,U&&U.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[E]}),U&&U.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[v]})}get bufferLength(){return this[m]}get encoding(){return this[y]}set encoding(U){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[y]&&U!==this[y]&&(this[b]&&this[b].lastNeed||this[m]))throw new Error("cannot change encoding");this[y]!==U&&(this[b]=U?new c(U):null,this[E].length&&(this[E]=this[E].map(Q=>this[b].write(Q)))),this[y]=U}setEncoding(U){this.encoding=U}get objectMode(){return this[x]}set objectMode(U){this[x]=this[x]||!!U}get async(){return this[D]}set async(U){this[D]=this[D]||!!U}write(U,Q,N){if(this[a])throw new Error("write after end");if(this[R])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Q=="function"&&(N=Q,Q="utf8"),Q||(Q="utf8");let W=this[D]?k:J=>J();return!this[x]&&!Buffer.isBuffer(U)&&(B(U)?U=Buffer.from(U.buffer,U.byteOffset,U.byteLength):re(U)?U=Buffer.from(U):typeof U!="string"&&(this.objectMode=!0)),this[x]?(this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",U):this[w](U),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):U.length?(typeof U=="string"&&!(Q===this[y]&&!this[b].lastNeed)&&(U=Buffer.from(U,Q)),Buffer.isBuffer(U)&&this[y]&&(U=this[b].write(U)),this.flowing&&this[m]!==0&&this[d](!0),this.flowing?this.emit("data",U):this[w](U),this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing):(this[m]!==0&&this.emit("readable"),N&&W(N),this.flowing)}read(U){if(this[R])return null;if(this[m]===0||U===0||U>this[m])return this[s](),null;this[x]&&(U=null),this[E].length>1&&!this[x]&&(this.encoding?this[E]=[this[E].join("")]:this[E]=[Buffer.concat(this[E],this[m])]);let Q=this[u](U||null,this[E][0]);return this[s](),Q}[u](U,Q){return U===Q.length||U===null?this[A]():(this[E][0]=Q.slice(U),Q=Q.slice(0,U),this[m]-=U),this.emit("data",Q),!this[E].length&&!this[a]&&this.emit("drain"),Q}end(U,Q,N){return typeof U=="function"&&(N=U,U=null),typeof Q=="function"&&(N=Q,Q="utf8"),U&&this.write(U,Q),N&&this.once("end",N),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[R]||(this[g]=!1,this[_]=!0,this.emit("resume"),this[E].length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[R]}get flowing(){return this[_]}get paused(){return this[g]}[w](U){this[x]?this[m]+=1:this[m]+=U.length,this[E].push(U)}[A](){return this[E].length&&(this[x]?this[m]-=1:this[m]-=this[E][0].length),this[E].shift()}[d](U){do;while(this[p](this[A]()));!U&&!this[E].length&&!this[a]&&this.emit("drain")}[p](U){return U?(this.emit("data",U),this.flowing):!1}pipe(U,Q){if(this[R])return;let N=this[o];return Q=Q||{},U===t.stdout||U===t.stderr?Q.end=!1:Q.end=Q.end!==!1,Q.proxyErrors=!!Q.proxyErrors,N?Q.end&&U.end():(this[v].push(Q.proxyErrors?new T(this,U,Q):new M(this,U,Q)),this[D]?k(()=>this[S]()):this[S]()),U}unpipe(U){let Q=this[v].find(N=>N.dest===U);Q&&(this[v].splice(this[v].indexOf(Q),1),Q.unpipe())}addListener(U,Q){return this.on(U,Q)}on(U,Q){let N=super.on(U,Q);return U==="data"&&!this[v].length&&!this.flowing?this[S]():U==="readable"&&this[m]!==0?super.emit("readable"):z(U)&&this[o]?(super.emit(U),this.removeAllListeners(U)):U==="error"&&this[l]&&(this[D]?k(()=>Q.call(this,this[l])):Q.call(this,this[l])),N}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[R]&&this[E].length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(U,Q,...N){if(U!=="error"&&U!=="close"&&U!==R&&this[R])return;if(U==="data")return Q?this[D]?k(()=>this[P](Q)):this[P](Q):!1;if(U==="end")return this[F]();if(U==="close"){if(this[h]=!0,!this[o]&&!this[R])return;let J=super.emit("close");return this.removeAllListeners("close"),J}else if(U==="error"){this[l]=Q;let J=super.emit("error",Q);return this[s](),J}else if(U==="resume"){let J=super.emit("resume");return this[s](),J}else if(U==="finish"||U==="prefinish"){let J=super.emit(U);return this.removeAllListeners(U),J}let W=super.emit(U,Q,...N);return this[s](),W}[P](U){for(let N of this[v])N.dest.write(U)===!1&&this.pause();let Q=super.emit("data",U);return this[s](),Q}[F](){this[o]||(this[o]=!0,this.readable=!1,this[D]?k(()=>this[O]()):this[O]())}[O](){if(this[b]){let Q=this[b].end();if(Q){for(let N of this[v])N.dest.write(Q);super.emit("data",Q)}}for(let Q of this[v])Q.end();let U=super.emit("end");return this.removeAllListeners("end"),U}collect(){let U=[];this[x]||(U.dataLength=0);let Q=this.promise();return this.on("data",N=>{U.push(N),this[x]||(U.dataLength+=N.length)}),Q.then(()=>U)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(U=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?U.join(""):Buffer.concat(U,U.dataLength))}promise(){return new Promise((U,Q)=>{this.on(R,()=>Q(new Error("stream destroyed"))),this.on("error",N=>Q(N)),this.on("end",()=>U())})}[I](){return{next:()=>{let U=this.read();if(U!==null)return Promise.resolve({done:!1,value:U});if(this[a])return Promise.resolve({done:!0});let Q=null,N=null,W=de=>{this.removeListener("data",J),this.removeListener("end",ae),N(de)},J=de=>{this.removeListener("error",W),this.removeListener("end",ae),this.pause(),Q({value:de,done:!!this[a]})},ae=()=>{this.removeListener("error",W),this.removeListener("data",J),Q({done:!0})},oe=()=>W(new Error("stream destroyed"));return new Promise((de,pe)=>{N=pe,Q=de,this.once(R,oe),this.once("error",W),this.once("end",ae),this.once("data",J)})}}}[H](){return{next:()=>{let U=this.read();return{value:U,done:U===null}}}}destroy(U){return this[R]?(U?this.emit("error",U):this.emit(R),this):(this[R]=!0,this[E].length=0,this[m]=0,typeof this.close=="function"&&!this[h]&&this.close(),U?this.emit("error",U):this.emit(R),this)}static isStream(U){return!!U&&(U instanceof Z2||U instanceof i||U instanceof n&&(typeof U.pipe=="function"||typeof U.write=="function"&&typeof U.end=="function"))}}}),DF=ee((e,r)=>{K();var t=le("zlib").constants||{ZLIB_VERNUM:4736};r.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:1/0,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},t))}),J2=ee((e,r)=>{"use strict";K();var t=typeof process=="object"&&process?process:{stdout:null,stderr:null},n=le("events"),i=le("stream"),c=le("string_decoder").StringDecoder,a=Symbol("EOF"),s=Symbol("maybeEmitEnd"),o=Symbol("emittedEnd"),f=Symbol("emittingEnd"),l=Symbol("emittedError"),h=Symbol("closed"),u=Symbol("read"),d=Symbol("flush"),p=Symbol("flushChunk"),y=Symbol("encoding"),b=Symbol("decoder"),_=Symbol("flowing"),g=Symbol("paused"),S=Symbol("resume"),E=Symbol("bufferLength"),v=Symbol("bufferPush"),m=Symbol("bufferShift"),w=Symbol("objectMode"),A=Symbol("destroyed"),x=Symbol("emitData"),R=Symbol("emitEnd"),P=Symbol("emitEnd2"),F=Symbol("async"),O=M=>Promise.resolve().then(M),D=global._MP_NO_ITERATOR_SYMBOLS_!=="1",k=D&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),L=D&&Symbol.iterator||Symbol("iterator not implemented"),I=M=>M==="end"||M==="finish"||M==="prefinish",H=M=>M instanceof ArrayBuffer||typeof M=="object"&&M.constructor&&M.constructor.name==="ArrayBuffer"&&M.byteLength>=0,z=M=>!Buffer.isBuffer(M)&&ArrayBuffer.isView(M),re=class{constructor(M,T,Y){this.src=M,this.dest=T,this.opts=Y,this.ondrain=()=>M[S](),T.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},B=class extends re{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(M,T,Y){super(M,T,Y),this.proxyErrors=U=>T.emit("error",U),M.on("error",this.proxyErrors)}};r.exports=class Q2 extends i{constructor(T){super(),this[_]=!1,this[g]=!1,this.pipes=[],this.buffer=[],this[w]=T&&T.objectMode||!1,this[w]?this[y]=null:this[y]=T&&T.encoding||null,this[y]==="buffer"&&(this[y]=null),this[F]=T&&!!T.async||!1,this[b]=this[y]?new c(this[y]):null,this[a]=!1,this[o]=!1,this[f]=!1,this[h]=!1,this[l]=null,this.writable=!0,this.readable=!0,this[E]=0,this[A]=!1}get bufferLength(){return this[E]}get encoding(){return this[y]}set encoding(T){if(this[w])throw new Error("cannot set encoding in objectMode");if(this[y]&&T!==this[y]&&(this[b]&&this[b].lastNeed||this[E]))throw new Error("cannot change encoding");this[y]!==T&&(this[b]=T?new c(T):null,this.buffer.length&&(this.buffer=this.buffer.map(Y=>this[b].write(Y)))),this[y]=T}setEncoding(T){this.encoding=T}get objectMode(){return this[w]}set objectMode(T){this[w]=this[w]||!!T}get async(){return this[F]}set async(T){this[F]=this[F]||!!T}write(T,Y,U){if(this[a])throw new Error("write after end");if(this[A])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof Y=="function"&&(U=Y,Y="utf8"),Y||(Y="utf8");let Q=this[F]?O:N=>N();return!this[w]&&!Buffer.isBuffer(T)&&(z(T)?T=Buffer.from(T.buffer,T.byteOffset,T.byteLength):H(T)?T=Buffer.from(T):typeof T!="string"&&(this.objectMode=!0)),this[w]?(this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",T):this[v](T),this[E]!==0&&this.emit("readable"),U&&Q(U),this.flowing):T.length?(typeof T=="string"&&!(Y===this[y]&&!this[b].lastNeed)&&(T=Buffer.from(T,Y)),Buffer.isBuffer(T)&&this[y]&&(T=this[b].write(T)),this.flowing&&this[E]!==0&&this[d](!0),this.flowing?this.emit("data",T):this[v](T),this[E]!==0&&this.emit("readable"),U&&Q(U),this.flowing):(this[E]!==0&&this.emit("readable"),U&&Q(U),this.flowing)}read(T){if(this[A])return null;if(this[E]===0||T===0||T>this[E])return this[s](),null;this[w]&&(T=null),this.buffer.length>1&&!this[w]&&(this.encoding?this.buffer=[this.buffer.join("")]:this.buffer=[Buffer.concat(this.buffer,this[E])]);let Y=this[u](T||null,this.buffer[0]);return this[s](),Y}[u](T,Y){return T===Y.length||T===null?this[m]():(this.buffer[0]=Y.slice(T),Y=Y.slice(0,T),this[E]-=T),this.emit("data",Y),!this.buffer.length&&!this[a]&&this.emit("drain"),Y}end(T,Y,U){return typeof T=="function"&&(U=T,T=null),typeof Y=="function"&&(U=Y,Y="utf8"),T&&this.write(T,Y),U&&this.once("end",U),this[a]=!0,this.writable=!1,(this.flowing||!this[g])&&this[s](),this}[S](){this[A]||(this[g]=!1,this[_]=!0,this.emit("resume"),this.buffer.length?this[d]():this[a]?this[s]():this.emit("drain"))}resume(){return this[S]()}pause(){this[_]=!1,this[g]=!0}get destroyed(){return this[A]}get flowing(){return this[_]}get paused(){return this[g]}[v](T){this[w]?this[E]+=1:this[E]+=T.length,this.buffer.push(T)}[m](){return this.buffer.length&&(this[w]?this[E]-=1:this[E]-=this.buffer[0].length),this.buffer.shift()}[d](T){do;while(this[p](this[m]()));!T&&!this.buffer.length&&!this[a]&&this.emit("drain")}[p](T){return T?(this.emit("data",T),this.flowing):!1}pipe(T,Y){if(this[A])return;let U=this[o];return Y=Y||{},T===t.stdout||T===t.stderr?Y.end=!1:Y.end=Y.end!==!1,Y.proxyErrors=!!Y.proxyErrors,U?Y.end&&T.end():(this.pipes.push(Y.proxyErrors?new B(this,T,Y):new re(this,T,Y)),this[F]?O(()=>this[S]()):this[S]()),T}unpipe(T){let Y=this.pipes.find(U=>U.dest===T);Y&&(this.pipes.splice(this.pipes.indexOf(Y),1),Y.unpipe())}addListener(T,Y){return this.on(T,Y)}on(T,Y){let U=super.on(T,Y);return T==="data"&&!this.pipes.length&&!this.flowing?this[S]():T==="readable"&&this[E]!==0?super.emit("readable"):I(T)&&this[o]?(super.emit(T),this.removeAllListeners(T)):T==="error"&&this[l]&&(this[F]?O(()=>Y.call(this,this[l])):Y.call(this,this[l])),U}get emittedEnd(){return this[o]}[s](){!this[f]&&!this[o]&&!this[A]&&this.buffer.length===0&&this[a]&&(this[f]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[h]&&this.emit("close"),this[f]=!1)}emit(T,Y,...U){if(T!=="error"&&T!=="close"&&T!==A&&this[A])return;if(T==="data")return Y?this[F]?O(()=>this[x](Y)):this[x](Y):!1;if(T==="end")return this[R]();if(T==="close"){if(this[h]=!0,!this[o]&&!this[A])return;let N=super.emit("close");return this.removeAllListeners("close"),N}else if(T==="error"){this[l]=Y;let N=super.emit("error",Y);return this[s](),N}else if(T==="resume"){let N=super.emit("resume");return this[s](),N}else if(T==="finish"||T==="prefinish"){let N=super.emit(T);return this.removeAllListeners(T),N}let Q=super.emit(T,Y,...U);return this[s](),Q}[x](T){for(let U of this.pipes)U.dest.write(T)===!1&&this.pause();let Y=super.emit("data",T);return this[s](),Y}[R](){this[o]||(this[o]=!0,this.readable=!1,this[F]?O(()=>this[P]()):this[P]())}[P](){if(this[b]){let Y=this[b].end();if(Y){for(let U of this.pipes)U.dest.write(Y);super.emit("data",Y)}}for(let Y of this.pipes)Y.end();let T=super.emit("end");return this.removeAllListeners("end"),T}collect(){let T=[];this[w]||(T.dataLength=0);let Y=this.promise();return this.on("data",U=>{T.push(U),this[w]||(T.dataLength+=U.length)}),Y.then(()=>T)}concat(){return this[w]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(T=>this[w]?Promise.reject(new Error("cannot concat in objectMode")):this[y]?T.join(""):Buffer.concat(T,T.dataLength))}promise(){return new Promise((T,Y)=>{this.on(A,()=>Y(new Error("stream destroyed"))),this.on("error",U=>Y(U)),this.on("end",()=>T())})}[k](){return{next:()=>{let T=this.read();if(T!==null)return Promise.resolve({done:!1,value:T});if(this[a])return Promise.resolve({done:!0});let Y=null,U=null,Q=ae=>{this.removeListener("data",N),this.removeListener("end",W),U(ae)},N=ae=>{this.removeListener("error",Q),this.removeListener("end",W),this.pause(),Y({value:ae,done:!!this[a]})},W=()=>{this.removeListener("error",Q),this.removeListener("data",N),Y({done:!0})},J=()=>Q(new Error("stream destroyed"));return new Promise((ae,oe)=>{U=oe,Y=ae,this.once(A,J),this.once("error",Q),this.once("end",W),this.once("data",N)})}}}[L](){return{next:()=>{let T=this.read();return{value:T,done:T===null}}}}destroy(T){return this[A]?(T?this.emit("error",T):this.emit(A),this):(this[A]=!0,this.buffer.length=0,this[E]=0,typeof this.close=="function"&&!this[h]&&this.close(),T?this.emit("error",T):this.emit(A),this)}static isStream(T){return!!T&&(T instanceof Q2||T instanceof i||T instanceof n&&(typeof T.pipe=="function"||typeof T.write=="function"&&typeof T.end=="function"))}}}),e1=ee(e=>{"use strict";K();var r=le("assert"),t=le("buffer").Buffer,n=le("zlib"),i=e.constants=DF(),c=J2(),a=t.concat,s=Symbol("_superWrite"),o=class extends Error{constructor(I){super("zlib: "+I.message),this.code=I.code,this.errno=I.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+I.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},f=Symbol("opts"),l=Symbol("flushFlag"),h=Symbol("finishFlushFlag"),u=Symbol("fullFlushFlag"),d=Symbol("handle"),p=Symbol("onError"),y=Symbol("sawError"),b=Symbol("level"),_=Symbol("strategy"),g=Symbol("ended"),S=Symbol("_defaultFullFlush"),E=class extends c{constructor(I,H){if(!I||typeof I!="object")throw new TypeError("invalid options for ZlibBase constructor");super(I),this[y]=!1,this[g]=!1,this[f]=I,this[l]=I.flush,this[h]=I.finishFlush;try{this[d]=new n[H](I)}catch(z){throw new o(z)}this[p]=z=>{this[y]||(this[y]=!0,this.close(),this.emit("error",z))},this[d].on("error",z=>this[p](new o(z))),this.once("end",()=>this.close)}close(){this[d]&&(this[d].close(),this[d]=null,this.emit("close"))}reset(){if(!this[y])return r(this[d],"zlib binding closed"),this[d].reset()}flush(I){this.ended||(typeof I!="number"&&(I=this[u]),this.write(Object.assign(t.alloc(0),{[l]:I})))}end(I,H,z){return I&&this.write(I,H),this.flush(this[h]),this[g]=!0,super.end(null,null,z)}get ended(){return this[g]}write(I,H,z){if(typeof H=="function"&&(z=H,H="utf8"),typeof I=="string"&&(I=t.from(I,H)),this[y])return;r(this[d],"zlib binding closed");let re=this[d]._handle,B=re.close;re.close=()=>{};let M=this[d].close;this[d].close=()=>{},t.concat=U=>U;let T;try{let U=typeof I[l]=="number"?I[l]:this[l];T=this[d]._processChunk(I,U),t.concat=a}catch(U){t.concat=a,this[p](new o(U))}finally{this[d]&&(this[d]._handle=re,re.close=B,this[d].close=M,this[d].removeAllListeners("error"))}this[d]&&this[d].on("error",U=>this[p](new o(U)));let Y;if(T)if(Array.isArray(T)&&T.length>0){Y=this[s](t.from(T[0]));for(let U=1;U<T.length;U++)Y=this[s](T[U])}else Y=this[s](t.from(T));return z&&z(),Y}[s](I){return super.write(I)}},v=class extends E{constructor(I,H){I=I||{},I.flush=I.flush||i.Z_NO_FLUSH,I.finishFlush=I.finishFlush||i.Z_FINISH,super(I,H),this[u]=i.Z_FULL_FLUSH,this[b]=I.level,this[_]=I.strategy}params(I,H){if(!this[y]){if(!this[d])throw new Error("cannot switch params when binding is closed");if(!this[d].params)throw new Error("not supported in this implementation");if(this[b]!==I||this[_]!==H){this.flush(i.Z_SYNC_FLUSH),r(this[d],"zlib binding closed");let z=this[d].flush;this[d].flush=(re,B)=>{this.flush(re),B()};try{this[d].params(I,H)}finally{this[d].flush=z}this[d]&&(this[b]=I,this[_]=H)}}}},m=class extends v{constructor(I){super(I,"Deflate")}},w=class extends v{constructor(I){super(I,"Inflate")}},A=Symbol("_portable"),x=class extends v{constructor(I){super(I,"Gzip"),this[A]=I&&!!I.portable}[s](I){return this[A]?(this[A]=!1,I[9]=255,super[s](I)):super[s](I)}},R=class extends v{constructor(I){super(I,"Gunzip")}},P=class extends v{constructor(I){super(I,"DeflateRaw")}},F=class extends v{constructor(I){super(I,"InflateRaw")}},O=class extends v{constructor(I){super(I,"Unzip")}},D=class extends E{constructor(I,H){I=I||{},I.flush=I.flush||i.BROTLI_OPERATION_PROCESS,I.finishFlush=I.finishFlush||i.BROTLI_OPERATION_FINISH,super(I,H),this[u]=i.BROTLI_OPERATION_FLUSH}},k=class extends D{constructor(I){super(I,"BrotliCompress")}},L=class extends D{constructor(I){super(I,"BrotliDecompress")}};e.Deflate=m,e.Inflate=w,e.Gzip=x,e.Gunzip=R,e.DeflateRaw=P,e.InflateRaw=F,e.Unzip=O,typeof n.BrotliCompress=="function"?(e.BrotliCompress=k,e.BrotliDecompress=L):e.BrotliCompress=e.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}),ii=ee((e,r)=>{K();var t=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;r.exports=t!=="win32"?n=>n:n=>n&&n.replace(/\\/g,"/")}),cl=ee((e,r)=>{"use strict";K();var t=ll(),n=ii(),i=Symbol("slurp");r.exports=class extends t{constructor(c,a,s){switch(super(),this.pause(),this.extended=a,this.globalExtended=s,this.header=c,this.startBlockSize=512*Math.ceil(c.size/512),this.blockRemain=this.startBlockSize,this.remain=c.size,this.type=c.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=n(c.path),this.mode=c.mode,this.mode&&(this.mode=this.mode&4095),this.uid=c.uid,this.gid=c.gid,this.uname=c.uname,this.gname=c.gname,this.size=c.size,this.mtime=c.mtime,this.atime=c.atime,this.ctime=c.ctime,this.linkpath=n(c.linkpath),this.uname=c.uname,this.gname=c.gname,a&&this[i](a),s&&this[i](s,!0)}write(c){let a=c.length;if(a>this.blockRemain)throw new Error("writing more to entry than is appropriate");let s=this.remain,o=this.blockRemain;return this.remain=Math.max(0,s-a),this.blockRemain=Math.max(0,o-a),this.ignore?!0:s>=a?super.write(c):super.write(c.slice(0,s))}[i](c,a){for(let s in c)c[s]!==null&&c[s]!==void 0&&!(a&&s==="path")&&(this[s]=s==="path"||s==="linkpath"?n(c[s]):c[s])}}}),t1=ee(e=>{"use strict";K(),e.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]),e.code=new Map(Array.from(e.name).map(r=>[r[1],r[0]]))}),RF=ee((e,r)=>{"use strict";K();var t=(l,h)=>{if(Number.isSafeInteger(l))l<0?i(l,h):n(l,h);else throw Error("cannot encode number outside of javascript safe integer range");return h},n=(l,h)=>{h[0]=128;for(var u=h.length;u>1;u--)h[u-1]=l&255,l=Math.floor(l/256)},i=(l,h)=>{h[0]=255;var u=!1;l=l*-1;for(var d=h.length;d>1;d--){var p=l&255;l=Math.floor(l/256),u?h[d-1]=o(p):p===0?h[d-1]=0:(u=!0,h[d-1]=f(p))}},c=l=>{let h=l[0],u=h===128?s(l.slice(1,l.length)):h===255?a(l):null;if(u===null)throw Error("invalid base256 encoding");if(!Number.isSafeInteger(u))throw Error("parsed number outside of javascript safe integer range");return u},a=l=>{for(var h=l.length,u=0,d=!1,p=h-1;p>-1;p--){var y=l[p],b;d?b=o(y):y===0?b=y:(d=!0,b=f(y)),b!==0&&(u-=b*Math.pow(256,h-p-1))}return u},s=l=>{for(var h=l.length,u=0,d=h-1;d>-1;d--){var p=l[d];p!==0&&(u+=p*Math.pow(256,h-d-1))}return u},o=l=>(255^l)&255,f=l=>(255^l)+1&255;r.exports={encode:t,parse:c}}),si=ee((e,r)=>{"use strict";K();var t=t1(),n=le("path").posix,i=RF(),c=Symbol("slurp"),a=Symbol("type"),s=class{constructor(w,A,x,R){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[a]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(w)?this.decode(w,A||0,x,R):w&&this.set(w)}decode(w,A,x,R){if(A||(A=0),!w||!(w.length>=A+512))throw new Error("need 512 bytes for header");if(this.path=f(w,A,100),this.mode=u(w,A+100,8),this.uid=u(w,A+108,8),this.gid=u(w,A+116,8),this.size=u(w,A+124,12),this.mtime=l(w,A+136,12),this.cksum=u(w,A+148,12),this[c](x),this[c](R,!0),this[a]=f(w,A+156,1),this[a]===""&&(this[a]="0"),this[a]==="0"&&this.path.slice(-1)==="/"&&(this[a]="5"),this[a]==="5"&&(this.size=0),this.linkpath=f(w,A+157,100),w.slice(A+257,A+265).toString()==="ustar\x0000")if(this.uname=f(w,A+265,32),this.gname=f(w,A+297,32),this.devmaj=u(w,A+329,8),this.devmin=u(w,A+337,8),w[A+475]!==0){let F=f(w,A+345,155);this.path=F+"/"+this.path}else{let F=f(w,A+345,130);F&&(this.path=F+"/"+this.path),this.atime=l(w,A+476,12),this.ctime=l(w,A+488,12)}let P=8*32;for(let F=A;F<A+148;F++)P+=w[F];for(let F=A+156;F<A+512;F++)P+=w[F];this.cksumValid=P===this.cksum,this.cksum===null&&P===8*32&&(this.nullBlock=!0)}[c](w,A){for(let x in w)w[x]!==null&&w[x]!==void 0&&!(A&&x==="path")&&(this[x]=w[x])}encode(w,A){if(w||(w=this.block=Buffer.alloc(512),A=0),A||(A=0),!(w.length>=A+512))throw new Error("need 512 bytes for header");let x=this.ctime||this.atime?130:155,R=o(this.path||"",x),P=R[0],F=R[1];this.needPax=R[2],this.needPax=m(w,A,100,P)||this.needPax,this.needPax=b(w,A+100,8,this.mode)||this.needPax,this.needPax=b(w,A+108,8,this.uid)||this.needPax,this.needPax=b(w,A+116,8,this.gid)||this.needPax,this.needPax=b(w,A+124,12,this.size)||this.needPax,this.needPax=E(w,A+136,12,this.mtime)||this.needPax,w[A+156]=this[a].charCodeAt(0),this.needPax=m(w,A+157,100,this.linkpath)||this.needPax,w.write("ustar\x0000",A+257,8),this.needPax=m(w,A+265,32,this.uname)||this.needPax,this.needPax=m(w,A+297,32,this.gname)||this.needPax,this.needPax=b(w,A+329,8,this.devmaj)||this.needPax,this.needPax=b(w,A+337,8,this.devmin)||this.needPax,this.needPax=m(w,A+345,x,F)||this.needPax,w[A+475]!==0?this.needPax=m(w,A+345,155,F)||this.needPax:(this.needPax=m(w,A+345,130,F)||this.needPax,this.needPax=E(w,A+476,12,this.atime)||this.needPax,this.needPax=E(w,A+488,12,this.ctime)||this.needPax);let O=8*32;for(let D=A;D<A+148;D++)O+=w[D];for(let D=A+156;D<A+512;D++)O+=w[D];return this.cksum=O,b(w,A+148,8,this.cksum),this.cksumValid=!0,this.needPax}set(w){for(let A in w)w[A]!==null&&w[A]!==void 0&&(this[A]=w[A])}get type(){return t.name.get(this[a])||this[a]}get typeKey(){return this[a]}set type(w){t.code.has(w)?this[a]=t.code.get(w):this[a]=w}},o=(w,A)=>{let x=w,R="",P,F=n.parse(w).root||".";if(Buffer.byteLength(x)<100)P=[x,R,!1];else{R=n.dirname(x),x=n.basename(x);do Buffer.byteLength(x)<=100&&Buffer.byteLength(R)<=A?P=[x,R,!1]:Buffer.byteLength(x)>100&&Buffer.byteLength(R)<=A?P=[x.slice(0,100-1),R,!0]:(x=n.join(n.basename(R),x),R=n.dirname(R));while(R!==F&&!P);P||(P=[w.slice(0,100-1),"",!0])}return P},f=(w,A,x)=>w.slice(A,A+x).toString("utf8").replace(/\0.*/,""),l=(w,A,x)=>h(u(w,A,x)),h=w=>w===null?null:new Date(w*1e3),u=(w,A,x)=>w[A]&128?i.parse(w.slice(A,A+x)):p(w,A,x),d=w=>isNaN(w)?null:w,p=(w,A,x)=>d(parseInt(w.slice(A,A+x).toString("utf8").replace(/\0.*$/,"").trim(),8)),y={12:8589934591,8:2097151},b=(w,A,x,R)=>R===null?!1:R>y[x]||R<0?(i.encode(R,w.slice(A,A+x)),!0):(_(w,A,x,R),!1),_=(w,A,x,R)=>w.write(g(R,x),A,x,"ascii"),g=(w,A)=>S(Math.floor(w).toString(8),A),S=(w,A)=>(w.length===A-1?w:new Array(A-w.length-1).join("0")+w+" ")+"\0",E=(w,A,x,R)=>R===null?!1:b(w,A,x,R.getTime()/1e3),v=new Array(156).join("\0"),m=(w,A,x,R)=>R===null?!1:(w.write(R+v,A,x,"utf8"),R.length!==Buffer.byteLength(R)||R.length>x);r.exports=s}),hl=ee((e,r)=>{"use strict";K();var t=si(),n=le("path"),i=class{constructor(o,f){this.atime=o.atime||null,this.charset=o.charset||null,this.comment=o.comment||null,this.ctime=o.ctime||null,this.gid=o.gid||null,this.gname=o.gname||null,this.linkpath=o.linkpath||null,this.mtime=o.mtime||null,this.path=o.path||null,this.size=o.size||null,this.uid=o.uid||null,this.uname=o.uname||null,this.dev=o.dev||null,this.ino=o.ino||null,this.nlink=o.nlink||null,this.global=f||!1}encode(){let o=this.encodeBody();if(o==="")return null;let f=Buffer.byteLength(o),l=512*Math.ceil(1+f/512),h=Buffer.allocUnsafe(l);for(let u=0;u<512;u++)h[u]=0;new t({path:("PaxHeader/"+n.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:f,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(h),h.write(o,512,f,"utf8");for(let u=f+512;u<h.length;u++)h[u]=0;return h}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(o){if(this[o]===null||this[o]===void 0)return"";let f=this[o]instanceof Date?this[o].getTime()/1e3:this[o],l=" "+(o==="dev"||o==="ino"||o==="nlink"?"SCHILY.":"")+o+"="+f+`
|
134
|
+
`,h=Buffer.byteLength(l),u=Math.floor(Math.log(h)/Math.log(10))+1;return h+u>=Math.pow(10,u)&&(u+=1),u+h+l}};i.parse=(o,f,l)=>new i(c(a(o),f),l);var c=(o,f)=>f?Object.keys(o).reduce((l,h)=>(l[h]=o[h],l),f):o,a=o=>o.replace(/\n$/,"").split(`
|
135
|
+
`).reduce(s,Object.create(null)),s=(o,f)=>{let l=parseInt(f,10);if(l!==Buffer.byteLength(f)+1)return o;f=f.slice((l+" ").length);let h=f.split("="),u=h.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!u)return o;let d=h.join("=");return o[u]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(u)?new Date(d*1e3):/^[0-9]+$/.test(d)?+d:d,o};r.exports=i}),oi=ee((e,r)=>{K(),r.exports=t=>{let n=t.length-1,i=-1;for(;n>-1&&t.charAt(n)==="/";)i=n,n--;return i===-1?t:t.slice(0,i)}}),fl=ee((e,r)=>{"use strict";K(),r.exports=t=>class extends t{warn(n,i,c={}){this.file&&(c.file=this.file),this.cwd&&(c.cwd=this.cwd),c.code=i instanceof Error&&i.code||n,c.tarCode=n,!this.strict&&c.recoverable!==!1?(i instanceof Error&&(c=Object.assign(i,c),i=i.message),this.emit("warn",c.tarCode,i,c)):i instanceof Error?this.emit("error",Object.assign(i,c)):this.emit("error",Object.assign(new Error(`${n}: ${i}`),c))}}}),r1=ee((e,r)=>{"use strict";K();var t=["|","<",">","?",":"],n=t.map(a=>String.fromCharCode(61440+a.charCodeAt(0))),i=new Map(t.map((a,s)=>[a,n[s]])),c=new Map(n.map((a,s)=>[a,t[s]]));r.exports={encode:a=>t.reduce((s,o)=>s.split(o).join(i.get(o)),a),decode:a=>n.reduce((s,o)=>s.split(o).join(c.get(o)),a)}}),n1=ee((e,r)=>{K();var{isAbsolute:t,parse:n}=le("path").win32;r.exports=i=>{let c="",a=n(i);for(;t(i)||a.root;){let s=i.charAt(0)==="/"&&i.slice(0,4)!=="//?/"?"/":a.root;i=i.slice(s.length),c+=s,a=n(i)}return[c,i]}}),OF=ee((e,r)=>{"use strict";K(),r.exports=(t,n,i)=>(t&=4095,i&&(t=(t|384)&-19),n&&(t&256&&(t|=64),t&32&&(t|=8),t&4&&(t|=1)),t)}),i1=ee((e,r)=>{"use strict";K();var t=ll(),n=hl(),i=si(),c=le("fs"),a=le("path"),s=ii(),o=oi(),f=(M,T)=>T?(M=s(M).replace(/^\.(\/|$)/,""),o(T)+"/"+M):s(M),l=16*1024*1024,h=Symbol("process"),u=Symbol("file"),d=Symbol("directory"),p=Symbol("symlink"),y=Symbol("hardlink"),b=Symbol("header"),_=Symbol("read"),g=Symbol("lstat"),S=Symbol("onlstat"),E=Symbol("onread"),v=Symbol("onreadlink"),m=Symbol("openfile"),w=Symbol("onopenfile"),A=Symbol("close"),x=Symbol("mode"),R=Symbol("awaitDrain"),P=Symbol("ondrain"),F=Symbol("prefix"),O=Symbol("hadError"),D=fl(),k=r1(),L=n1(),I=OF(),H=D(class extends t{constructor(M,T){if(T=T||{},super(T),typeof M!="string")throw new TypeError("path is required");this.path=s(M),this.portable=!!T.portable,this.myuid=process.getuid&&process.getuid()||0,this.myuser=process.env.USER||"",this.maxReadSize=T.maxReadSize||l,this.linkCache=T.linkCache||new Map,this.statCache=T.statCache||new Map,this.preservePaths=!!T.preservePaths,this.cwd=s(T.cwd||process.cwd()),this.strict=!!T.strict,this.noPax=!!T.noPax,this.noMtime=!!T.noMtime,this.mtime=T.mtime||null,this.prefix=T.prefix?s(T.prefix):null,this.fd=null,this.blockLen=null,this.blockRemain=null,this.buf=null,this.offset=null,this.length=null,this.pos=null,this.remain=null,typeof T.onwarn=="function"&&this.on("warn",T.onwarn);let Y=!1;if(!this.preservePaths){let[U,Q]=L(this.path);U&&(this.path=Q,Y=U)}this.win32=!!T.win32||process.platform==="win32",this.win32&&(this.path=k.decode(this.path.replace(/\\/g,"/")),M=M.replace(/\\/g,"/")),this.absolute=s(T.absolute||a.resolve(this.cwd,M)),this.path===""&&(this.path="./"),Y&&this.warn("TAR_ENTRY_INFO",`stripping ${Y} from absolute path`,{entry:this,path:Y+this.path}),this.statCache.has(this.absolute)?this[S](this.statCache.get(this.absolute)):this[g]()}emit(M,...T){return M==="error"&&(this[O]=!0),super.emit(M,...T)}[g](){c.lstat(this.absolute,(M,T)=>{if(M)return this.emit("error",M);this[S](T)})}[S](M){this.statCache.set(this.absolute,M),this.stat=M,M.isFile()||(M.size=0),this.type=B(M),this.emit("stat",M),this[h]()}[h](){switch(this.type){case"File":return this[u]();case"Directory":return this[d]();case"SymbolicLink":return this[p]();default:return this.end()}}[x](M){return I(M,this.type==="Directory",this.portable)}[F](M){return f(M,this.prefix)}[b](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new i({path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,mode:this[x](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),super.write(this.header.block)}[d](){this.path.slice(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[b](),this.end()}[p](){c.readlink(this.absolute,(M,T)=>{if(M)return this.emit("error",M);this[v](T)})}[v](M){this.linkpath=s(M),this[b](),this.end()}[y](M){this.type="Link",this.linkpath=s(a.relative(this.cwd,M)),this.stat.size=0,this[b](),this.end()}[u](){if(this.stat.nlink>1){let M=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(M)){let T=this.linkCache.get(M);if(T.indexOf(this.cwd)===0)return this[y](T)}this.linkCache.set(M,this.absolute)}if(this[b](),this.stat.size===0)return this.end();this[m]()}[m](){c.open(this.absolute,"r",(M,T)=>{if(M)return this.emit("error",M);this[w](T)})}[w](M){if(this.fd=M,this[O])return this[A]();this.blockLen=512*Math.ceil(this.stat.size/512),this.blockRemain=this.blockLen;let T=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(T),this.offset=0,this.pos=0,this.remain=this.stat.size,this.length=this.buf.length,this[_]()}[_](){let{fd:M,buf:T,offset:Y,length:U,pos:Q}=this;c.read(M,T,Y,U,Q,(N,W)=>{if(N)return this[A](()=>this.emit("error",N));this[E](W)})}[A](M){c.close(this.fd,M)}[E](M){if(M<=0&&this.remain>0){let Y=new Error("encountered unexpected EOF");return Y.path=this.absolute,Y.syscall="read",Y.code="EOF",this[A](()=>this.emit("error",Y))}if(M>this.remain){let Y=new Error("did not encounter expected EOF");return Y.path=this.absolute,Y.syscall="read",Y.code="EOF",this[A](()=>this.emit("error",Y))}if(M===this.remain)for(let Y=M;Y<this.length&&M<this.blockRemain;Y++)this.buf[Y+this.offset]=0,M++,this.remain++;let T=this.offset===0&&M===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+M);this.write(T)?this[P]():this[R](()=>this[P]())}[R](M){this.once("drain",M)}write(M){if(this.blockRemain<M.length){let T=new Error("writing more data than expected");return T.path=this.absolute,this.emit("error",T)}return this.remain-=M.length,this.blockRemain-=M.length,this.pos+=M.length,this.offset+=M.length,super.write(M)}[P](){if(!this.remain)return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),this[A](M=>M?this.emit("error",M):this.end());this.offset>=this.length&&(this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length)),this.offset=0),this.length=this.buf.length-this.offset,this[_]()}}),z=class extends H{[g](){this[S](c.lstatSync(this.absolute))}[p](){this[v](c.readlinkSync(this.absolute))}[m](){this[w](c.openSync(this.absolute,"r"))}[_](){let M=!0;try{let{fd:T,buf:Y,offset:U,length:Q,pos:N}=this,W=c.readSync(T,Y,U,Q,N);this[E](W),M=!1}finally{if(M)try{this[A](()=>{})}catch{}}}[R](M){M()}[A](M){c.closeSync(this.fd),M()}},re=D(class extends t{constructor(M,T){T=T||{},super(T),this.preservePaths=!!T.preservePaths,this.portable=!!T.portable,this.strict=!!T.strict,this.noPax=!!T.noPax,this.noMtime=!!T.noMtime,this.readEntry=M,this.type=M.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.prefix=T.prefix||null,this.path=s(M.path),this.mode=this[x](M.mode),this.uid=this.portable?null:M.uid,this.gid=this.portable?null:M.gid,this.uname=this.portable?null:M.uname,this.gname=this.portable?null:M.gname,this.size=M.size,this.mtime=this.noMtime?null:T.mtime||M.mtime,this.atime=this.portable?null:M.atime,this.ctime=this.portable?null:M.ctime,this.linkpath=s(M.linkpath),typeof T.onwarn=="function"&&this.on("warn",T.onwarn);let Y=!1;if(!this.preservePaths){let[U,Q]=L(this.path);U&&(this.path=Q,Y=U)}this.remain=M.size,this.blockRemain=M.startBlockSize,this.header=new i({path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),Y&&this.warn("TAR_ENTRY_INFO",`stripping ${Y} from absolute path`,{entry:this,path:Y+this.path}),this.header.encode()&&!this.noPax&&super.write(new n({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[F](this.path),linkpath:this.type==="Link"?this[F](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),M.pipe(this)}[F](M){return f(M,this.prefix)}[x](M){return I(M,this.type==="Directory",this.portable)}write(M){let T=M.length;if(T>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=T,super.write(M)}end(){return this.blockRemain&&super.write(Buffer.alloc(this.blockRemain)),super.end()}});H.Sync=z,H.Tar=re;var B=M=>M.isFile()?"File":M.isDirectory()?"Directory":M.isSymbolicLink()?"SymbolicLink":"Unsupported";r.exports=H}),TF=ee((e,r)=>{"use strict";K(),r.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let n=this.head;n;n=n.next)yield n.value}}}),s1=ee((e,r)=>{"use strict";K(),r.exports=t,t.Node=a,t.create=t;function t(s){var o=this;if(o instanceof t||(o=new t),o.tail=null,o.head=null,o.length=0,s&&typeof s.forEach=="function")s.forEach(function(h){o.push(h)});else if(arguments.length>0)for(var f=0,l=arguments.length;f<l;f++)o.push(arguments[f]);return o}t.prototype.removeNode=function(s){if(s.list!==this)throw new Error("removing node which does not belong to this list");var o=s.next,f=s.prev;return o&&(o.prev=f),f&&(f.next=o),s===this.head&&(this.head=o),s===this.tail&&(this.tail=f),s.list.length--,s.next=null,s.prev=null,s.list=null,o},t.prototype.unshiftNode=function(s){if(s!==this.head){s.list&&s.list.removeNode(s);var o=this.head;s.list=this,s.next=o,o&&(o.prev=s),this.head=s,this.tail||(this.tail=s),this.length++}},t.prototype.pushNode=function(s){if(s!==this.tail){s.list&&s.list.removeNode(s);var o=this.tail;s.list=this,s.prev=o,o&&(o.next=s),this.tail=s,this.head||(this.head=s),this.length++}},t.prototype.push=function(){for(var s=0,o=arguments.length;s<o;s++)i(this,arguments[s]);return this.length},t.prototype.unshift=function(){for(var s=0,o=arguments.length;s<o;s++)c(this,arguments[s]);return this.length},t.prototype.pop=function(){if(this.tail){var s=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,s}},t.prototype.shift=function(){if(this.head){var s=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,s}},t.prototype.forEach=function(s,o){o=o||this;for(var f=this.head,l=0;f!==null;l++)s.call(o,f.value,l,this),f=f.next},t.prototype.forEachReverse=function(s,o){o=o||this;for(var f=this.tail,l=this.length-1;f!==null;l--)s.call(o,f.value,l,this),f=f.prev},t.prototype.get=function(s){for(var o=0,f=this.head;f!==null&&o<s;o++)f=f.next;if(o===s&&f!==null)return f.value},t.prototype.getReverse=function(s){for(var o=0,f=this.tail;f!==null&&o<s;o++)f=f.prev;if(o===s&&f!==null)return f.value},t.prototype.map=function(s,o){o=o||this;for(var f=new t,l=this.head;l!==null;)f.push(s.call(o,l.value,this)),l=l.next;return f},t.prototype.mapReverse=function(s,o){o=o||this;for(var f=new t,l=this.tail;l!==null;)f.push(s.call(o,l.value,this)),l=l.prev;return f},t.prototype.reduce=function(s,o){var f,l=this.head;if(arguments.length>1)f=o;else if(this.head)l=this.head.next,f=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=0;l!==null;h++)f=s(f,l.value,h),l=l.next;return f},t.prototype.reduceReverse=function(s,o){var f,l=this.tail;if(arguments.length>1)f=o;else if(this.tail)l=this.tail.prev,f=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var h=this.length-1;l!==null;h--)f=s(f,l.value,h),l=l.prev;return f},t.prototype.toArray=function(){for(var s=new Array(this.length),o=0,f=this.head;f!==null;o++)s[o]=f.value,f=f.next;return s},t.prototype.toArrayReverse=function(){for(var s=new Array(this.length),o=0,f=this.tail;f!==null;o++)s[o]=f.value,f=f.prev;return s},t.prototype.slice=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(;h!==null&&l<o;l++,h=h.next)f.push(h.value);return f},t.prototype.sliceReverse=function(s,o){o=o||this.length,o<0&&(o+=this.length),s=s||0,s<0&&(s+=this.length);var f=new t;if(o<s||o<0)return f;s<0&&(s=0),o>this.length&&(o=this.length);for(var l=this.length,h=this.tail;h!==null&&l>o;l--)h=h.prev;for(;h!==null&&l>s;l--,h=h.prev)f.push(h.value);return f},t.prototype.splice=function(s,o,...f){s>this.length&&(s=this.length-1),s<0&&(s=this.length+s);for(var l=0,h=this.head;h!==null&&l<s;l++)h=h.next;for(var u=[],l=0;h&&l<o;l++)u.push(h.value),h=this.removeNode(h);h===null&&(h=this.tail),h!==this.head&&h!==this.tail&&(h=h.prev);for(var l=0;l<f.length;l++)h=n(this,h,f[l]);return u},t.prototype.reverse=function(){for(var s=this.head,o=this.tail,f=s;f!==null;f=f.prev){var l=f.prev;f.prev=f.next,f.next=l}return this.head=o,this.tail=s,this};function n(s,o,f){var l=o===s.head?new a(f,null,o,s):new a(f,o,o.next,s);return l.next===null&&(s.tail=l),l.prev===null&&(s.head=l),s.length++,l}function i(s,o){s.tail=new a(o,s.tail,null,s),s.head||(s.head=s.tail),s.length++}function c(s,o){s.head=new a(o,null,s.head,s),s.tail||(s.tail=s.head),s.length++}function a(s,o,f,l){if(!(this instanceof a))return new a(s,o,f,l);this.list=l,this.value=s,o?(o.next=this,this.prev=o):this.prev=null,f?(f.prev=this,this.next=f):this.next=null}try{TF()(t)}catch{}}),pl=ee((e,r)=>{"use strict";K();var t=class{constructor(B,M){this.path=B||"./",this.absolute=M,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},n=ll(),i=e1(),c=cl(),a=i1(),s=a.Sync,o=a.Tar,f=s1(),l=Buffer.alloc(1024),h=Symbol("onStat"),u=Symbol("ended"),d=Symbol("queue"),p=Symbol("current"),y=Symbol("process"),b=Symbol("processing"),_=Symbol("processJob"),g=Symbol("jobs"),S=Symbol("jobDone"),E=Symbol("addFSEntry"),v=Symbol("addTarEntry"),m=Symbol("stat"),w=Symbol("readdir"),A=Symbol("onreaddir"),x=Symbol("pipe"),R=Symbol("entry"),P=Symbol("entryOpt"),F=Symbol("writeEntryClass"),O=Symbol("write"),D=Symbol("ondrain"),k=le("fs"),L=le("path"),I=fl(),H=ii(),z=I(class extends n{constructor(B){super(B),B=B||Object.create(null),this.opt=B,this.file=B.file||"",this.cwd=B.cwd||process.cwd(),this.maxReadSize=B.maxReadSize,this.preservePaths=!!B.preservePaths,this.strict=!!B.strict,this.noPax=!!B.noPax,this.prefix=H(B.prefix||""),this.linkCache=B.linkCache||new Map,this.statCache=B.statCache||new Map,this.readdirCache=B.readdirCache||new Map,this[F]=a,typeof B.onwarn=="function"&&this.on("warn",B.onwarn),this.portable=!!B.portable,this.zip=null,B.gzip?(typeof B.gzip!="object"&&(B.gzip={}),this.portable&&(B.gzip.portable=!0),this.zip=new i.Gzip(B.gzip),this.zip.on("data",M=>super.write(M)),this.zip.on("end",M=>super.end()),this.zip.on("drain",M=>this[D]()),this.on("resume",M=>this.zip.resume())):this.on("drain",this[D]),this.noDirRecurse=!!B.noDirRecurse,this.follow=!!B.follow,this.noMtime=!!B.noMtime,this.mtime=B.mtime||null,this.filter=typeof B.filter=="function"?B.filter:M=>!0,this[d]=new f,this[g]=0,this.jobs=+B.jobs||4,this[b]=!1,this[u]=!1}[O](B){return super.write(B)}add(B){return this.write(B),this}end(B){return B&&this.write(B),this[u]=!0,this[y](),this}write(B){if(this[u])throw new Error("write after end");return B instanceof c?this[v](B):this[E](B),this.flowing}[v](B){let M=H(L.resolve(this.cwd,B.path));if(!this.filter(B.path,B))B.resume();else{let T=new t(B.path,M,!1);T.entry=new o(B,this[P](T)),T.entry.on("end",Y=>this[S](T)),this[g]+=1,this[d].push(T)}this[y]()}[E](B){let M=H(L.resolve(this.cwd,B));this[d].push(new t(B,M)),this[y]()}[m](B){B.pending=!0,this[g]+=1;let M=this.follow?"stat":"lstat";k[M](B.absolute,(T,Y)=>{B.pending=!1,this[g]-=1,T?this.emit("error",T):this[h](B,Y)})}[h](B,M){this.statCache.set(B.absolute,M),B.stat=M,this.filter(B.path,M)||(B.ignore=!0),this[y]()}[w](B){B.pending=!0,this[g]+=1,k.readdir(B.absolute,(M,T)=>{if(B.pending=!1,this[g]-=1,M)return this.emit("error",M);this[A](B,T)})}[A](B,M){this.readdirCache.set(B.absolute,M),B.readdir=M,this[y]()}[y](){if(!this[b]){this[b]=!0;for(let B=this[d].head;B!==null&&this[g]<this.jobs;B=B.next)if(this[_](B.value),B.value.ignore){let M=B.next;this[d].removeNode(B),B.next=M}this[b]=!1,this[u]&&!this[d].length&&this[g]===0&&(this.zip?this.zip.end(l):(super.write(l),super.end()))}}get[p](){return this[d]&&this[d].head&&this[d].head.value}[S](B){this[d].shift(),this[g]-=1,this[y]()}[_](B){if(!B.pending){if(B.entry){B===this[p]&&!B.piped&&this[x](B);return}if(B.stat||(this.statCache.has(B.absolute)?this[h](B,this.statCache.get(B.absolute)):this[m](B)),!!B.stat&&!B.ignore&&!(!this.noDirRecurse&&B.stat.isDirectory()&&!B.readdir&&(this.readdirCache.has(B.absolute)?this[A](B,this.readdirCache.get(B.absolute)):this[w](B),!B.readdir))){if(B.entry=this[R](B),!B.entry){B.ignore=!0;return}B===this[p]&&!B.piped&&this[x](B)}}}[P](B){return{onwarn:(M,T,Y)=>this.warn(M,T,Y),noPax:this.noPax,cwd:this.cwd,absolute:B.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[R](B){this[g]+=1;try{return new this[F](B.path,this[P](B)).on("end",()=>this[S](B)).on("error",M=>this.emit("error",M))}catch(M){this.emit("error",M)}}[D](){this[p]&&this[p].entry&&this[p].entry.resume()}[x](B){B.piped=!0,B.readdir&&B.readdir.forEach(Y=>{let U=B.path,Q=U==="./"?"":U.replace(/\/*$/,"/");this[E](Q+Y)});let M=B.entry,T=this.zip;T?M.on("data",Y=>{T.write(Y)||M.pause()}):M.on("data",Y=>{super.write(Y)||M.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),re=class extends z{constructor(B){super(B),this[F]=s}pause(){}resume(){}[m](B){let M=this.follow?"statSync":"lstatSync";this[h](B,k[M](B.absolute))}[w](B,M){this[A](B,k.readdirSync(B.absolute))}[x](B){let M=B.entry,T=this.zip;B.readdir&&B.readdir.forEach(Y=>{let U=B.path,Q=U==="./"?"":U.replace(/\/*$/,"/");this[E](Q+Y)}),T?M.on("data",Y=>{T.write(Y)}):M.on("data",Y=>{super[O](Y)})}};z.Sync=re,r.exports=z}),ai=ee(e=>{"use strict";K();var r=J2(),t=le("events").EventEmitter,n=le("fs"),i=n.writev;if(!i){let B=process.binding("fs"),M=B.FSReqWrap||B.FSReqCallback;i=(T,Y,U,Q)=>{let N=(J,ae)=>Q(J,ae,Y),W=new M;W.oncomplete=N,B.writeBuffers(T,Y,U,W)}}var c=Symbol("_autoClose"),a=Symbol("_close"),s=Symbol("_ended"),o=Symbol("_fd"),f=Symbol("_finished"),l=Symbol("_flags"),h=Symbol("_flush"),u=Symbol("_handleChunk"),d=Symbol("_makeBuf"),p=Symbol("_mode"),y=Symbol("_needDrain"),b=Symbol("_onerror"),_=Symbol("_onopen"),g=Symbol("_onread"),S=Symbol("_onwrite"),E=Symbol("_open"),v=Symbol("_path"),m=Symbol("_pos"),w=Symbol("_queue"),A=Symbol("_read"),x=Symbol("_readSize"),R=Symbol("_reading"),P=Symbol("_remain"),F=Symbol("_size"),O=Symbol("_write"),D=Symbol("_writing"),k=Symbol("_defaultFlag"),L=Symbol("_errored"),I=class extends r{constructor(B,M){if(M=M||{},super(M),this.readable=!0,this.writable=!1,typeof B!="string")throw new TypeError("path must be a string");this[L]=!1,this[o]=typeof M.fd=="number"?M.fd:null,this[v]=B,this[x]=M.readSize||16*1024*1024,this[R]=!1,this[F]=typeof M.size=="number"?M.size:1/0,this[P]=this[F],this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0,typeof this[o]=="number"?this[A]():this[E]()}get fd(){return this[o]}get path(){return this[v]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[E](){n.open(this[v],"r",(B,M)=>this[_](B,M))}[_](B,M){B?this[b](B):(this[o]=M,this.emit("open",M),this[A]())}[d](){return Buffer.allocUnsafe(Math.min(this[x],this[P]))}[A](){if(!this[R]){this[R]=!0;let B=this[d]();if(B.length===0)return process.nextTick(()=>this[g](null,0,B));n.read(this[o],B,0,B.length,null,(M,T,Y)=>this[g](M,T,Y))}}[g](B,M,T){this[R]=!1,B?this[b](B):this[u](M,T)&&this[A]()}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.close(B,M=>M?this.emit("error",M):this.emit("close"))}}[b](B){this[R]=!0,this[a](),this.emit("error",B)}[u](B,M){let T=!1;return this[P]-=B,B>0&&(T=super.write(B<M.length?M.slice(0,B):M)),(B===0||this[P]<=0)&&(T=!1,this[a](),super.end()),T}emit(B,M){switch(B){case"prefinish":case"finish":break;case"drain":typeof this[o]=="number"&&this[A]();break;case"error":return this[L]?void 0:(this[L]=!0,super.emit(B,M));default:return super.emit(B,M)}}},H=class extends I{[E](){let B=!0;try{this[_](null,n.openSync(this[v],"r")),B=!1}finally{B&&this[a]()}}[A](){let B=!0;try{if(!this[R]){this[R]=!0;do{let M=this[d](),T=M.length===0?0:n.readSync(this[o],M,0,M.length,null);if(!this[u](T,M))break}while(!0);this[R]=!1}B=!1}finally{B&&this[a]()}}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.closeSync(B),this.emit("close")}}},z=class extends t{constructor(B,M){M=M||{},super(M),this.readable=!1,this.writable=!0,this[L]=!1,this[D]=!1,this[s]=!1,this[y]=!1,this[w]=[],this[v]=B,this[o]=typeof M.fd=="number"?M.fd:null,this[p]=M.mode===void 0?438:M.mode,this[m]=typeof M.start=="number"?M.start:null,this[c]=typeof M.autoClose=="boolean"?M.autoClose:!0;let T=this[m]!==null?"r+":"w";this[k]=M.flags===void 0,this[l]=this[k]?T:M.flags,this[o]===null&&this[E]()}emit(B,M){if(B==="error"){if(this[L])return;this[L]=!0}return super.emit(B,M)}get fd(){return this[o]}get path(){return this[v]}[b](B){this[a](),this[D]=!0,this.emit("error",B)}[E](){n.open(this[v],this[l],this[p],(B,M)=>this[_](B,M))}[_](B,M){this[k]&&this[l]==="r+"&&B&&B.code==="ENOENT"?(this[l]="w",this[E]()):B?this[b](B):(this[o]=M,this.emit("open",M),this[h]())}end(B,M){return B&&this.write(B,M),this[s]=!0,!this[D]&&!this[w].length&&typeof this[o]=="number"&&this[S](null,0),this}write(B,M){return typeof B=="string"&&(B=Buffer.from(B,M)),this[s]?(this.emit("error",new Error("write() after end()")),!1):this[o]===null||this[D]||this[w].length?(this[w].push(B),this[y]=!0,!1):(this[D]=!0,this[O](B),!0)}[O](B){n.write(this[o],B,0,B.length,this[m],(M,T)=>this[S](M,T))}[S](B,M){B?this[b](B):(this[m]!==null&&(this[m]+=M),this[w].length?this[h]():(this[D]=!1,this[s]&&!this[f]?(this[f]=!0,this[a](),this.emit("finish")):this[y]&&(this[y]=!1,this.emit("drain"))))}[h](){if(this[w].length===0)this[s]&&this[S](null,0);else if(this[w].length===1)this[O](this[w].pop());else{let B=this[w];this[w]=[],i(this[o],B,this[m],(M,T)=>this[S](M,T))}}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.close(B,M=>M?this.emit("error",M):this.emit("close"))}}},re=class extends z{[E](){let B;if(this[k]&&this[l]==="r+")try{B=n.openSync(this[v],this[l],this[p])}catch(M){if(M.code==="ENOENT")return this[l]="w",this[E]();throw M}else B=n.openSync(this[v],this[l],this[p]);this[_](null,B)}[a](){if(this[c]&&typeof this[o]=="number"){let B=this[o];this[o]=null,n.closeSync(B),this.emit("close")}}[O](B){let M=!0;try{this[S](null,n.writeSync(this[o],B,0,B.length,this[m])),M=!1}finally{if(M)try{this[a]()}catch{}}}};e.ReadStream=I,e.ReadStreamSync=H,e.WriteStream=z,e.WriteStreamSync=re}),dl=ee((e,r)=>{"use strict";K();var t=fl(),n=si(),i=le("events"),c=s1(),a=1024*1024,s=cl(),o=hl(),f=e1(),{nextTick:l}=le("process"),h=Buffer.from([31,139]),u=Symbol("state"),d=Symbol("writeEntry"),p=Symbol("readEntry"),y=Symbol("nextEntry"),b=Symbol("processEntry"),_=Symbol("extendedHeader"),g=Symbol("globalExtendedHeader"),S=Symbol("meta"),E=Symbol("emitMeta"),v=Symbol("buffer"),m=Symbol("queue"),w=Symbol("ended"),A=Symbol("emittedEnd"),x=Symbol("emit"),R=Symbol("unzip"),P=Symbol("consumeChunk"),F=Symbol("consumeChunkSub"),O=Symbol("consumeBody"),D=Symbol("consumeMeta"),k=Symbol("consumeHeader"),L=Symbol("consuming"),I=Symbol("bufferConcat"),H=Symbol("maybeEnd"),z=Symbol("writing"),re=Symbol("aborted"),B=Symbol("onDone"),M=Symbol("sawValidEntry"),T=Symbol("sawNullBlock"),Y=Symbol("sawEOF"),U=Symbol("closeStream"),Q=N=>!0;r.exports=t(class extends i{constructor(N){N=N||{},super(N),this.file=N.file||"",this[M]=null,this.on(B,W=>{(this[u]==="begin"||this[M]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),N.ondone?this.on(B,N.ondone):this.on(B,W=>{this.emit("prefinish"),this.emit("finish"),this.emit("end")}),this.strict=!!N.strict,this.maxMetaEntrySize=N.maxMetaEntrySize||a,this.filter=typeof N.filter=="function"?N.filter:Q,this.writable=!0,this.readable=!1,this[m]=new c,this[v]=null,this[p]=null,this[d]=null,this[u]="begin",this[S]="",this[_]=null,this[g]=null,this[w]=!1,this[R]=null,this[re]=!1,this[T]=!1,this[Y]=!1,this.on("end",()=>this[U]()),typeof N.onwarn=="function"&&this.on("warn",N.onwarn),typeof N.onentry=="function"&&this.on("entry",N.onentry)}[k](N,W){this[M]===null&&(this[M]=!1);let J;try{J=new n(N,W,this[_],this[g])}catch(ae){return this.warn("TAR_ENTRY_INVALID",ae)}if(J.nullBlock)this[T]?(this[Y]=!0,this[u]==="begin"&&(this[u]="header"),this[x]("eof")):(this[T]=!0,this[x]("nullBlock"));else if(this[T]=!1,!J.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:J});else if(!J.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:J});else{let ae=J.type;if(/^(Symbolic)?Link$/.test(ae)&&!J.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:J});else if(!/^(Symbolic)?Link$/.test(ae)&&J.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:J});else{let oe=this[d]=new s(J,this[_],this[g]);if(!this[M])if(oe.remain){let de=()=>{oe.invalid||(this[M]=!0)};oe.on("end",de)}else this[M]=!0;oe.meta?oe.size>this.maxMetaEntrySize?(oe.ignore=!0,this[x]("ignoredEntry",oe),this[u]="ignore",oe.resume()):oe.size>0&&(this[S]="",oe.on("data",de=>this[S]+=de),this[u]="meta"):(this[_]=null,oe.ignore=oe.ignore||!this.filter(oe.path,oe),oe.ignore?(this[x]("ignoredEntry",oe),this[u]=oe.remain?"ignore":"header",oe.resume()):(oe.remain?this[u]="body":(this[u]="header",oe.end()),this[p]?this[m].push(oe):(this[m].push(oe),this[y]())))}}}[U](){l(()=>this.emit("close"))}[b](N){let W=!0;return N?Array.isArray(N)?this.emit.apply(this,N):(this[p]=N,this.emit("entry",N),N.emittedEnd||(N.on("end",J=>this[y]()),W=!1)):(this[p]=null,W=!1),W}[y](){do;while(this[b](this[m].shift()));if(!this[m].length){let N=this[p];!N||N.flowing||N.size===N.remain?this[z]||this.emit("drain"):N.once("drain",W=>this.emit("drain"))}}[O](N,W){let J=this[d],ae=J.blockRemain,oe=ae>=N.length&&W===0?N:N.slice(W,W+ae);return J.write(oe),J.blockRemain||(this[u]="header",this[d]=null,J.end()),oe.length}[D](N,W){let J=this[d],ae=this[O](N,W);return this[d]||this[E](J),ae}[x](N,W,J){!this[m].length&&!this[p]?this.emit(N,W,J):this[m].push([N,W,J])}[E](N){switch(this[x]("meta",this[S]),N.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=o.parse(this[S],this[_],!1);break;case"GlobalExtendedHeader":this[g]=o.parse(this[S],this[g],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null),this[_].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null),this[_].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+N.type)}}abort(N){this[re]=!0,this.emit("abort",N),this.warn("TAR_ABORT",N,{recoverable:!1})}write(N){if(this[re])return;if(this[R]===null&&N){if(this[v]&&(N=Buffer.concat([this[v],N]),this[v]=null),N.length<h.length)return this[v]=N,!0;for(let J=0;this[R]===null&&J<h.length;J++)N[J]!==h[J]&&(this[R]=!1);if(this[R]===null){let J=this[w];this[w]=!1,this[R]=new f.Unzip,this[R].on("data",oe=>this[P](oe)),this[R].on("error",oe=>this.abort(oe)),this[R].on("end",oe=>{this[w]=!0,this[P]()}),this[z]=!0;let ae=this[R][J?"end":"write"](N);return this[z]=!1,ae}}this[z]=!0,this[R]?this[R].write(N):this[P](N),this[z]=!1;let W=this[m].length?!1:this[p]?this[p].flowing:!0;return!W&&!this[m].length&&this[p].once("drain",J=>this.emit("drain")),W}[I](N){N&&!this[re]&&(this[v]=this[v]?Buffer.concat([this[v],N]):N)}[H](){if(this[w]&&!this[A]&&!this[re]&&!this[L]){this[A]=!0;let N=this[d];if(N&&N.blockRemain){let W=this[v]?this[v].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${N.blockRemain} more bytes, only ${W} available)`,{entry:N}),this[v]&&N.write(this[v]),N.end()}this[x](B)}}[P](N){if(this[L])this[I](N);else if(!N&&!this[v])this[H]();else{if(this[L]=!0,this[v]){this[I](N);let W=this[v];this[v]=null,this[F](W)}else this[F](N);for(;this[v]&&this[v].length>=512&&!this[re]&&!this[Y];){let W=this[v];this[v]=null,this[F](W)}this[L]=!1}(!this[v]||this[w])&&this[H]()}[F](N){let W=0,J=N.length;for(;W+512<=J&&!this[re]&&!this[Y];)switch(this[u]){case"begin":case"header":this[k](N,W),W+=512;break;case"ignore":case"body":W+=this[O](N,W);break;case"meta":W+=this[D](N,W);break;default:throw new Error("invalid state: "+this[u])}W<J&&(this[v]?this[v]=Buffer.concat([N.slice(W),this[v]]):this[v]=N.slice(W))}end(N){this[re]||(this[R]?this[R].end(N):(this[w]=!0,this.write(N)))}})}),ml=ee((e,r)=>{"use strict";K();var t=ni(),n=dl(),i=le("fs"),c=ai(),a=le("path"),s=oi();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&f(b,p),b.noResume||o(b),b.file&&b.sync?l(b):b.file?h(b,y):u(b)};var o=d=>{let p=d.onentry;d.onentry=p?y=>{p(y),y.resume()}:y=>y.resume()},f=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},l=d=>{let p=u(d),y=d.file,b=!0,_;try{let g=i.statSync(y),S=d.maxReadSize||16*1024*1024;if(g.size<S)p.end(i.readFileSync(y));else{let E=0,v=Buffer.allocUnsafe(S);for(_=i.openSync(y,"r");E<g.size;){let m=i.readSync(_,v,0,S,E);E+=m,p.write(v.slice(0,m))}p.end()}b=!1}finally{if(b&&_)try{i.closeSync(_)}catch{}}},h=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("end",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},u=d=>new n(d)}),FF=ee((e,r)=>{"use strict";K();var t=ni(),n=pl(),i=ai(),c=ml(),a=le("path");r.exports=(d,p,y)=>{if(typeof p=="function"&&(y=p),Array.isArray(d)&&(p=d,d={}),!p||!Array.isArray(p)||!p.length)throw new TypeError("no files or directories specified");p=Array.from(p);let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return b.file&&b.sync?s(b,p):b.file?o(b,p,y):b.sync?h(b,p):u(b,p)};var s=(d,p)=>{let y=new n.Sync(d),b=new i.WriteStreamSync(d.file,{mode:d.mode||438});y.pipe(b),f(y,p)},o=(d,p,y)=>{let b=new n(d),_=new i.WriteStream(d.file,{mode:d.mode||438});b.pipe(_);let g=new Promise((S,E)=>{_.on("error",E),_.on("close",S),b.on("error",E)});return l(b,p),y?g.then(y,y):g},f=(d,p)=>{p.forEach(y=>{y.charAt(0)==="@"?c({file:a.resolve(d.cwd,y.slice(1)),sync:!0,noResume:!0,onentry:b=>d.add(b)}):d.add(y)}),d.end()},l=(d,p)=>{for(;p.length;){let y=p.shift();if(y.charAt(0)==="@")return c({file:a.resolve(d.cwd,y.slice(1)),noResume:!0,onentry:b=>d.add(b)}).then(b=>l(d,p));d.add(y)}d.end()},h=(d,p)=>{let y=new n.Sync(d);return f(y,p),y},u=(d,p)=>{let y=new n(d);return l(y,p),y}}),o1=ee((e,r)=>{"use strict";K();var t=ni(),n=pl(),i=le("fs"),c=ai(),a=ml(),s=le("path"),o=si();r.exports=(p,y,b)=>{let _=t(p);if(!_.file)throw new TypeError("file is required");if(_.gzip)throw new TypeError("cannot append to compressed archives");if(!y||!Array.isArray(y)||!y.length)throw new TypeError("no files or directories specified");return y=Array.from(y),_.sync?f(_,y):h(_,y,b)};var f=(p,y)=>{let b=new n.Sync(p),_=!0,g,S;try{try{g=i.openSync(p.file,"r+")}catch(m){if(m.code==="ENOENT")g=i.openSync(p.file,"w+");else throw m}let E=i.fstatSync(g),v=Buffer.alloc(512);e:for(S=0;S<E.size;S+=512){for(let A=0,x=0;A<512;A+=x){if(x=i.readSync(g,v,A,v.length-A,S+A),S===0&&v[0]===31&&v[1]===139)throw new Error("cannot append to compressed archives");if(!x)break e}let m=new o(v);if(!m.cksumValid)break;let w=512*Math.ceil(m.size/512);if(S+w+512>E.size)break;S+=w,p.mtimeCache&&p.mtimeCache.set(m.path,m.mtime)}_=!1,l(p,b,S,g,y)}finally{if(_)try{i.closeSync(g)}catch{}}},l=(p,y,b,_,g)=>{let S=new c.WriteStreamSync(p.file,{fd:_,start:b});y.pipe(S),u(y,g)},h=(p,y,b)=>{y=Array.from(y);let _=new n(p),g=(E,v,m)=>{let w=(F,O)=>{F?i.close(E,D=>m(F)):m(null,O)},A=0;if(v===0)return w(null,0);let x=0,R=Buffer.alloc(512),P=(F,O)=>{if(F)return w(F);if(x+=O,x<512&&O)return i.read(E,R,x,R.length-x,A+x,P);if(A===0&&R[0]===31&&R[1]===139)return w(new Error("cannot append to compressed archives"));if(x<512)return w(null,A);let D=new o(R);if(!D.cksumValid)return w(null,A);let k=512*Math.ceil(D.size/512);if(A+k+512>v||(A+=k+512,A>=v))return w(null,A);p.mtimeCache&&p.mtimeCache.set(D.path,D.mtime),x=0,i.read(E,R,0,512,A,P)};i.read(E,R,0,512,A,P)},S=new Promise((E,v)=>{_.on("error",v);let m="r+",w=(A,x)=>{if(A&&A.code==="ENOENT"&&m==="r+")return m="w+",i.open(p.file,m,w);if(A)return v(A);i.fstat(x,(R,P)=>{if(R)return i.close(x,()=>v(R));g(x,P.size,(F,O)=>{if(F)return v(F);let D=new c.WriteStream(p.file,{fd:x,start:O});_.pipe(D),D.on("error",v),D.on("close",E),d(_,y)})})};i.open(p.file,m,w)});return b?S.then(b,b):S},u=(p,y)=>{y.forEach(b=>{b.charAt(0)==="@"?a({file:s.resolve(p.cwd,b.slice(1)),sync:!0,noResume:!0,onentry:_=>p.add(_)}):p.add(b)}),p.end()},d=(p,y)=>{for(;y.length;){let b=y.shift();if(b.charAt(0)==="@")return a({file:s.resolve(p.cwd,b.slice(1)),noResume:!0,onentry:_=>p.add(_)}).then(_=>d(p,y));p.add(b)}p.end()}}),PF=ee((e,r)=>{"use strict";K();var t=ni(),n=o1();r.exports=(c,a,s)=>{let o=t(c);if(!o.file)throw new TypeError("file is required");if(o.gzip)throw new TypeError("cannot append to compressed archives");if(!a||!Array.isArray(a)||!a.length)throw new TypeError("no files or directories specified");return a=Array.from(a),i(o),n(o,a,s)};var i=c=>{let a=c.filter;c.mtimeCache||(c.mtimeCache=new Map),c.filter=a?(s,o)=>a(s,o)&&!(c.mtimeCache.get(s)>o.mtime):(s,o)=>!(c.mtimeCache.get(s)>o.mtime)}}),BF=ee((e,r)=>{K();var{promisify:t}=le("util"),n=le("fs"),i=c=>{if(!c)c={mode:511,fs:n};else if(typeof c=="object")c={mode:511,fs:n,...c};else if(typeof c=="number")c={mode:c,fs:n};else if(typeof c=="string")c={mode:parseInt(c,8),fs:n};else throw new TypeError("invalid options argument");return c.mkdir=c.mkdir||c.fs.mkdir||n.mkdir,c.mkdirAsync=t(c.mkdir),c.stat=c.stat||c.fs.stat||n.stat,c.statAsync=t(c.stat),c.statSync=c.statSync||c.fs.statSync||n.statSync,c.mkdirSync=c.mkdirSync||c.fs.mkdirSync||n.mkdirSync,c};r.exports=i}),IF=ee((e,r)=>{K();var t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:n,parse:i}=le("path"),c=a=>{if(/\0/.test(a))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:a,code:"ERR_INVALID_ARG_VALUE"});if(a=n(a),t==="win32"){let s=/[*|"<>?:]/,{root:o}=i(a);if(s.test(a.substr(o.length)))throw Object.assign(new Error("Illegal characters in path."),{path:a,code:"EINVAL"})}return a};r.exports=c}),LF=ee((e,r)=>{K();var{dirname:t}=le("path"),n=(c,a,s=void 0)=>s===a?Promise.resolve():c.statAsync(a).then(o=>o.isDirectory()?s:void 0,o=>o.code==="ENOENT"?n(c,t(a),a):void 0),i=(c,a,s=void 0)=>{if(s!==a)try{return c.statSync(a).isDirectory()?s:void 0}catch(o){return o.code==="ENOENT"?i(c,t(a),a):void 0}};r.exports={findMade:n,findMadeSync:i}}),a1=ee((e,r)=>{K();var{dirname:t}=le("path"),n=(c,a,s)=>{a.recursive=!1;let o=t(c);return o===c?a.mkdirAsync(c,a).catch(f=>{if(f.code!=="EISDIR")throw f}):a.mkdirAsync(c,a).then(()=>s||c,f=>{if(f.code==="ENOENT")return n(o,a).then(l=>n(c,a,l));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;return a.statAsync(c).then(l=>{if(l.isDirectory())return s;throw f},()=>{throw f})})},i=(c,a,s)=>{let o=t(c);if(a.recursive=!1,o===c)try{return a.mkdirSync(c,a)}catch(f){if(f.code!=="EISDIR")throw f;return}try{return a.mkdirSync(c,a),s||c}catch(f){if(f.code==="ENOENT")return i(c,a,i(o,a,s));if(f.code!=="EEXIST"&&f.code!=="EROFS")throw f;try{if(!a.statSync(c).isDirectory())throw f}catch{throw f}}};r.exports={mkdirpManual:n,mkdirpManualSync:i}}),MF=ee((e,r)=>{K();var{dirname:t}=le("path"),{findMade:n,findMadeSync:i}=LF(),{mkdirpManual:c,mkdirpManualSync:a}=a1(),s=(f,l)=>(l.recursive=!0,t(f)===f?l.mkdirAsync(f,l):n(l,f).then(h=>l.mkdirAsync(f,l).then(()=>h).catch(u=>{if(u.code==="ENOENT")return c(f,l);throw u}))),o=(f,l)=>{if(l.recursive=!0,t(f)===f)return l.mkdirSync(f,l);let h=i(l,f);try{return l.mkdirSync(f,l),h}catch(u){if(u.code==="ENOENT")return a(f,l);throw u}};r.exports={mkdirpNative:s,mkdirpNativeSync:o}}),NF=ee((e,r)=>{K();var t=le("fs"),n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,i=n.replace(/^v/,"").split("."),c=+i[0]>10||+i[0]==10&&+i[1]>=12,a=c?o=>o.mkdir===t.mkdir:()=>!1,s=c?o=>o.mkdirSync===t.mkdirSync:()=>!1;r.exports={useNative:a,useNativeSync:s}}),jF=ee((e,r)=>{K();var t=BF(),n=IF(),{mkdirpNative:i,mkdirpNativeSync:c}=MF(),{mkdirpManual:a,mkdirpManualSync:s}=a1(),{useNative:o,useNativeSync:f}=NF(),l=(u,d)=>(u=n(u),d=t(d),o(d)?i(u,d):a(u,d)),h=(u,d)=>(u=n(u),d=t(d),f(d)?c(u,d):s(u,d));l.sync=h,l.native=(u,d)=>i(n(u),t(d)),l.manual=(u,d)=>a(n(u),t(d)),l.nativeSync=(u,d)=>c(n(u),t(d)),l.manualSync=(u,d)=>s(n(u),t(d)),r.exports=l}),$F=ee((e,r)=>{"use strict";K();var t=le("fs"),n=le("path"),i=t.lchown?"lchown":"chown",c=t.lchownSync?"lchownSync":"chownSync",a=t.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),s=(S,E,v)=>{try{return t[c](S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},o=(S,E,v)=>{try{return t.chownSync(S,E,v)}catch(m){if(m.code!=="ENOENT")throw m}},f=a?(S,E,v,m)=>w=>{!w||w.code!=="EISDIR"?m(w):t.chown(S,E,v,m)}:(S,E,v,m)=>m,l=a?(S,E,v)=>{try{return s(S,E,v)}catch(m){if(m.code!=="EISDIR")throw m;o(S,E,v)}}:(S,E,v)=>s(S,E,v),h=process.version,u=(S,E,v)=>t.readdir(S,E,v),d=(S,E)=>t.readdirSync(S,E);/^v4\./.test(h)&&(u=(S,E,v)=>t.readdir(S,v));var p=(S,E,v,m)=>{t[i](S,E,v,f(S,E,v,w=>{m(w&&w.code!=="ENOENT"?w:null)}))},y=(S,E,v,m,w)=>{if(typeof E=="string")return t.lstat(n.resolve(S,E),(A,x)=>{if(A)return w(A.code!=="ENOENT"?A:null);x.name=E,y(S,x,v,m,w)});if(E.isDirectory())b(n.resolve(S,E.name),v,m,A=>{if(A)return w(A);let x=n.resolve(S,E.name);p(x,v,m,w)});else{let A=n.resolve(S,E.name);p(A,v,m,w)}},b=(S,E,v,m)=>{u(S,{withFileTypes:!0},(w,A)=>{if(w){if(w.code==="ENOENT")return m();if(w.code!=="ENOTDIR"&&w.code!=="ENOTSUP")return m(w)}if(w||!A.length)return p(S,E,v,m);let x=A.length,R=null,P=F=>{if(!R){if(F)return m(R=F);if(--x===0)return p(S,E,v,m)}};A.forEach(F=>y(S,F,E,v,P))})},_=(S,E,v,m)=>{if(typeof E=="string")try{let w=t.lstatSync(n.resolve(S,E));w.name=E,E=w}catch(w){if(w.code==="ENOENT")return;throw w}E.isDirectory()&&g(n.resolve(S,E.name),v,m),l(n.resolve(S,E.name),v,m)},g=(S,E,v)=>{let m;try{m=d(S,{withFileTypes:!0})}catch(w){if(w.code==="ENOENT")return;if(w.code==="ENOTDIR"||w.code==="ENOTSUP")return l(S,E,v);throw w}return m&&m.length&&m.forEach(w=>_(S,w,E,v)),l(S,E,v)};r.exports=b,b.sync=g}),HF=ee((e,r)=>{"use strict";K();var t=jF(),n=le("fs"),i=le("path"),c=$F(),a=ii(),s=class extends Error{constructor(y,b){super("Cannot extract through symbolic link"),this.path=b,this.symlink=y}get name(){return"SylinkError"}},o=class extends Error{constructor(y,b){super(b+": Cannot cd into '"+y+"'"),this.path=y,this.code=b}get name(){return"CwdError"}},f=(y,b)=>y.get(a(b)),l=(y,b,_)=>y.set(a(b),_),h=(y,b)=>{n.stat(y,(_,g)=>{(_||!g.isDirectory())&&(_=new o(y,_&&_.code||"ENOTDIR")),b(_)})};r.exports=(y,b,_)=>{y=a(y);let g=b.umask,S=b.mode|448,E=(S&g)!==0,v=b.uid,m=b.gid,w=typeof v=="number"&&typeof m=="number"&&(v!==b.processUid||m!==b.processGid),A=b.preserve,x=b.unlink,R=b.cache,P=a(b.cwd),F=(D,k)=>{D?_(D):(l(R,y,!0),k&&w?c(k,v,m,L=>F(L)):E?n.chmod(y,S,_):_())};if(R&&f(R,y)===!0)return F();if(y===P)return h(y,F);if(A)return t(y,{mode:S}).then(D=>F(null,D),F);let O=a(i.relative(P,y)).split("/");u(P,O,S,R,x,P,null,F)};var u=(y,b,_,g,S,E,v,m)=>{if(!b.length)return m(null,v);let w=b.shift(),A=a(i.resolve(y+"/"+w));if(f(g,A))return u(A,b,_,g,S,E,v,m);n.mkdir(A,_,d(A,b,_,g,S,E,v,m))},d=(y,b,_,g,S,E,v,m)=>w=>{w?n.lstat(y,(A,x)=>{if(A)A.path=A.path&&a(A.path),m(A);else if(x.isDirectory())u(y,b,_,g,S,E,v,m);else if(S)n.unlink(y,R=>{if(R)return m(R);n.mkdir(y,_,d(y,b,_,g,S,E,v,m))});else{if(x.isSymbolicLink())return m(new s(y,y+"/"+b.join("/")));m(w)}}):(v=v||y,u(y,b,_,g,S,E,v,m))},p=y=>{let b=!1,_="ENOTDIR";try{b=n.statSync(y).isDirectory()}catch(g){_=g.code}finally{if(!b)throw new o(y,_)}};r.exports.sync=(y,b)=>{y=a(y);let _=b.umask,g=b.mode|448,S=(g&_)!==0,E=b.uid,v=b.gid,m=typeof E=="number"&&typeof v=="number"&&(E!==b.processUid||v!==b.processGid),w=b.preserve,A=b.unlink,x=b.cache,R=a(b.cwd),P=D=>{l(x,y,!0),D&&m&&c.sync(D,E,v),S&&n.chmodSync(y,g)};if(x&&f(x,y)===!0)return P();if(y===R)return p(R),P();if(w)return P(t.sync(y,g));let F=a(i.relative(R,y)).split("/"),O=null;for(let D=F.shift(),k=R;D&&(k+="/"+D);D=F.shift())if(k=a(i.resolve(k)),!f(x,k))try{n.mkdirSync(k,g),O=O||k,l(x,k,!0)}catch{let L=n.lstatSync(k);if(L.isDirectory()){l(x,k,!0);continue}else if(A){n.unlinkSync(k),n.mkdirSync(k,g),O=O||k,l(x,k,!0);continue}else if(L.isSymbolicLink())return new s(k,k+"/"+F.join("/"))}return P(O)}}),u1=ee((e,r)=>{K();var t=Object.create(null),{hasOwnProperty:n}=Object.prototype;r.exports=i=>(n.call(t,i)||(t[i]=i.normalize("NFKD")),t[i])}),UF=ee((e,r)=>{K();var t=le("assert"),n=u1(),i=oi(),{join:c}=le("path"),a=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,s=a==="win32";r.exports=()=>{let o=new Map,f=new Map,l=b=>b.split("/").slice(0,-1).reduce((_,g)=>(_.length&&(g=c(_[_.length-1],g)),_.push(g||"/"),_),[]),h=new Set,u=b=>{let _=f.get(b);if(!_)throw new Error("function does not have any path reservations");return{paths:_.paths.map(g=>o.get(g)),dirs:[..._.dirs].map(g=>o.get(g))}},d=b=>{let{paths:_,dirs:g}=u(b);return _.every(S=>S[0]===b)&&g.every(S=>S[0]instanceof Set&&S[0].has(b))},p=b=>h.has(b)||!d(b)?!1:(h.add(b),b(()=>y(b)),!0),y=b=>{if(!h.has(b))return!1;let{paths:_,dirs:g}=f.get(b),S=new Set;return _.forEach(E=>{let v=o.get(E);t.equal(v[0],b),v.length===1?o.delete(E):(v.shift(),typeof v[0]=="function"?S.add(v[0]):v[0].forEach(m=>S.add(m)))}),g.forEach(E=>{let v=o.get(E);t(v[0]instanceof Set),v[0].size===1&&v.length===1?o.delete(E):v[0].size===1?(v.shift(),S.add(v[0])):v[0].delete(b)}),h.delete(b),S.forEach(E=>p(E)),!0};return{check:d,reserve:(b,_)=>{b=s?["win32 parallelization disabled"]:b.map(S=>n(i(c(S))).toLowerCase());let g=new Set(b.map(S=>l(S)).reduce((S,E)=>S.concat(E)));return f.set(_,{dirs:g,paths:b}),b.forEach(S=>{let E=o.get(S);E?E.push(_):o.set(S,[_])}),g.forEach(S=>{let E=o.get(S);E?E[E.length-1]instanceof Set?E[E.length-1].add(_):E.push(new Set([_])):o.set(S,[new Set([_])])}),p(_)}}}}),qF=ee((e,r)=>{K();var t=process.env.__FAKE_PLATFORM__||process.platform,n=t==="win32",i=global.__FAKE_TESTING_FS__||le("fs"),{O_CREAT:c,O_TRUNC:a,O_WRONLY:s,UV_FS_O_FILEMAP:o=0}=i.constants,f=n&&!!o,l=512*1024,h=o|a|c|s;r.exports=f?u=>u<l?h:"w":()=>"w"}),l1=ee((e,r)=>{"use strict";K();var t=le("assert"),n=dl(),i=le("fs"),c=ai(),a=le("path"),s=HF(),o=r1(),f=UF(),l=n1(),h=ii(),u=oi(),d=u1(),p=Symbol("onEntry"),y=Symbol("checkFs"),b=Symbol("checkFs2"),_=Symbol("pruneCache"),g=Symbol("isReusable"),S=Symbol("makeFs"),E=Symbol("file"),v=Symbol("directory"),m=Symbol("link"),w=Symbol("symlink"),A=Symbol("hardlink"),x=Symbol("unsupported"),R=Symbol("checkPath"),P=Symbol("mkdir"),F=Symbol("onError"),O=Symbol("pending"),D=Symbol("pend"),k=Symbol("unpend"),L=Symbol("ended"),I=Symbol("maybeClose"),H=Symbol("skip"),z=Symbol("doChown"),re=Symbol("uid"),B=Symbol("gid"),M=Symbol("checkedCwd"),T=le("crypto"),Y=qF(),U=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform,Q=U==="win32",N=(C,q)=>{if(!Q)return i.unlink(C,q);let X=C+".DELETE."+T.randomBytes(16).toString("hex");i.rename(C,X,ne=>{if(ne)return q(ne);i.unlink(X,q)})},W=C=>{if(!Q)return i.unlinkSync(C);let q=C+".DELETE."+T.randomBytes(16).toString("hex");i.renameSync(C,q),i.unlinkSync(q)},J=(C,q,X)=>C===C>>>0?C:q===q>>>0?q:X,ae=C=>d(u(h(C))).toLowerCase(),oe=(C,q)=>{q=ae(q);for(let X of C.keys()){let ne=ae(X);(ne===q||ne.indexOf(q+"/")===0)&&C.delete(X)}},de=C=>{for(let q of C.keys())C.delete(q)},pe=class extends n{constructor(C){if(C||(C={}),C.ondone=q=>{this[L]=!0,this[I]()},super(C),this[M]=!1,this.reservations=f(),this.transform=typeof C.transform=="function"?C.transform:null,this.writable=!0,this.readable=!1,this[O]=0,this[L]=!1,this.dirCache=C.dirCache||new Map,typeof C.uid=="number"||typeof C.gid=="number"){if(typeof C.uid!="number"||typeof C.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(C.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=C.uid,this.gid=C.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;C.preserveOwner===void 0&&typeof C.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!C.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=C.forceChown===!0,this.win32=!!C.win32||Q,this.newer=!!C.newer,this.keep=!!C.keep,this.noMtime=!!C.noMtime,this.preservePaths=!!C.preservePaths,this.unlink=!!C.unlink,this.cwd=h(a.resolve(C.cwd||process.cwd())),this.strip=+C.strip||0,this.processUmask=C.noChmod?0:process.umask(),this.umask=typeof C.umask=="number"?C.umask:this.processUmask,this.dmode=C.dmode||511&~this.umask,this.fmode=C.fmode||438&~this.umask,this.on("entry",q=>this[p](q))}warn(C,q,X={}){return(C==="TAR_BAD_ARCHIVE"||C==="TAR_ABORT")&&(X.recoverable=!1),super.warn(C,q,X)}[I](){this[L]&&this[O]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"))}[R](C){if(this.strip){let q=h(C.path).split("/");if(q.length<this.strip)return!1;if(C.path=q.slice(this.strip).join("/"),C.type==="Link"){let X=h(C.linkpath).split("/");if(X.length>=this.strip)C.linkpath=X.slice(this.strip).join("/");else return!1}}if(!this.preservePaths){let q=h(C.path),X=q.split("/");if(X.includes("..")||Q&&/^[a-z]:\.\.$/i.test(X[0]))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:C,path:q}),!1;let[ne,me]=l(q);ne&&(C.path=me,this.warn("TAR_ENTRY_INFO",`stripping ${ne} from absolute path`,{entry:C,path:q}))}if(a.isAbsolute(C.path)?C.absolute=h(a.resolve(C.path)):C.absolute=h(a.resolve(this.cwd,C.path)),!this.preservePaths&&C.absolute.indexOf(this.cwd+"/")!==0&&C.absolute!==this.cwd)return this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:C,path:h(C.path),resolvedPath:C.absolute,cwd:this.cwd}),!1;if(C.absolute===this.cwd&&C.type!=="Directory"&&C.type!=="GNUDumpDir")return!1;if(this.win32){let{root:q}=a.win32.parse(C.absolute);C.absolute=q+o.encode(C.absolute.slice(q.length));let{root:X}=a.win32.parse(C.path);C.path=X+o.encode(C.path.slice(X.length))}return!0}[p](C){if(!this[R](C))return C.resume();switch(t.equal(typeof C.absolute,"string"),C.type){case"Directory":case"GNUDumpDir":C.mode&&(C.mode=C.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[y](C);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[x](C)}}[F](C,q){C.name==="CwdError"?this.emit("error",C):(this.warn("TAR_ENTRY_ERROR",C,{entry:q}),this[k](),q.resume())}[P](C,q,X){s(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:q,noChmod:this.noChmod},X)}[z](C){return this.forceChown||this.preserveOwner&&(typeof C.uid=="number"&&C.uid!==this.processUid||typeof C.gid=="number"&&C.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[re](C){return J(this.uid,C.uid,this.processUid)}[B](C){return J(this.gid,C.gid,this.processGid)}[E](C,q){let X=C.mode&4095||this.fmode,ne=new c.WriteStream(C.absolute,{flags:Y(C.size),mode:X,autoClose:!1});ne.on("error",ie=>{ne.fd&&i.close(ne.fd,()=>{}),ne.write=()=>!0,this[F](ie,C),q()});let me=1,se=ie=>{if(ie){ne.fd&&i.close(ne.fd,()=>{}),this[F](ie,C),q();return}--me===0&&i.close(ne.fd,ye=>{ye?this[F](ye,C):this[k](),q()})};ne.on("finish",ie=>{let ye=C.absolute,we=ne.fd;if(C.mtime&&!this.noMtime){me++;let xe=C.atime||new Date,V=C.mtime;i.futimes(we,xe,V,$=>$?i.utimes(ye,xe,V,ue=>se(ue&&$)):se())}if(this[z](C)){me++;let xe=this[re](C),V=this[B](C);i.fchown(we,xe,V,$=>$?i.chown(ye,xe,V,ue=>se(ue&&$)):se())}se()});let fe=this.transform&&this.transform(C)||C;fe!==C&&(fe.on("error",ie=>{this[F](ie,C),q()}),C.pipe(fe)),fe.pipe(ne)}[v](C,q){let X=C.mode&4095||this.dmode;this[P](C.absolute,X,ne=>{if(ne){this[F](ne,C),q();return}let me=1,se=fe=>{--me===0&&(q(),this[k](),C.resume())};C.mtime&&!this.noMtime&&(me++,i.utimes(C.absolute,C.atime||new Date,C.mtime,se)),this[z](C)&&(me++,i.chown(C.absolute,this[re](C),this[B](C),se)),se()})}[x](C){C.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${C.type}`,{entry:C}),C.resume()}[w](C,q){this[m](C,C.linkpath,"symlink",q)}[A](C,q){let X=h(a.resolve(this.cwd,C.linkpath));this[m](C,X,"link",q)}[D](){this[O]++}[k](){this[O]--,this[I]()}[H](C){this[k](),C.resume()}[g](C,q){return C.type==="File"&&!this.unlink&&q.isFile()&&q.nlink<=1&&!Q}[y](C){this[D]();let q=[C.path];C.linkpath&&q.push(C.linkpath),this.reservations.reserve(q,X=>this[b](C,X))}[_](C){C.type==="SymbolicLink"?de(this.dirCache):C.type!=="Directory"&&oe(this.dirCache,C.absolute)}[b](C,q){this[_](C);let X=fe=>{this[_](C),q(fe)},ne=()=>{this[P](this.cwd,this.dmode,fe=>{if(fe){this[F](fe,C),X();return}this[M]=!0,me()})},me=()=>{if(C.absolute!==this.cwd){let fe=h(a.dirname(C.absolute));if(fe!==this.cwd)return this[P](fe,this.dmode,ie=>{if(ie){this[F](ie,C),X();return}se()})}se()},se=()=>{i.lstat(C.absolute,(fe,ie)=>{if(ie&&(this.keep||this.newer&&ie.mtime>C.mtime)){this[H](C),X();return}if(fe||this[g](C,ie))return this[S](null,C,X);if(ie.isDirectory()){if(C.type==="Directory"){let ye=!this.noChmod&&C.mode&&(ie.mode&4095)!==C.mode,we=xe=>this[S](xe,C,X);return ye?i.chmod(C.absolute,C.mode,we):we()}if(C.absolute!==this.cwd)return i.rmdir(C.absolute,ye=>this[S](ye,C,X))}if(C.absolute===this.cwd)return this[S](null,C,X);N(C.absolute,ye=>this[S](ye,C,X))})};this[M]?me():ne()}[S](C,q,X){if(C){this[F](C,q),X();return}switch(q.type){case"File":case"OldFile":case"ContiguousFile":return this[E](q,X);case"Link":return this[A](q,X);case"SymbolicLink":return this[w](q,X);case"Directory":case"GNUDumpDir":return this[v](q,X)}}[m](C,q,X,ne){i[X](q,C.absolute,me=>{me?this[F](me,C):(this[k](),C.resume()),ne()})}},j=C=>{try{return[null,C()]}catch(q){return[q,null]}},G=class extends pe{[S](C,q){return super[S](C,q,()=>{})}[y](C){if(this[_](C),!this[M]){let me=this[P](this.cwd,this.dmode);if(me)return this[F](me,C);this[M]=!0}if(C.absolute!==this.cwd){let me=h(a.dirname(C.absolute));if(me!==this.cwd){let se=this[P](me,this.dmode);if(se)return this[F](se,C)}}let[q,X]=j(()=>i.lstatSync(C.absolute));if(X&&(this.keep||this.newer&&X.mtime>C.mtime))return this[H](C);if(q||this[g](C,X))return this[S](null,C);if(X.isDirectory()){if(C.type==="Directory"){let se=!this.noChmod&&C.mode&&(X.mode&4095)!==C.mode,[fe]=se?j(()=>{i.chmodSync(C.absolute,C.mode)}):[];return this[S](fe,C)}let[me]=j(()=>i.rmdirSync(C.absolute));this[S](me,C)}let[ne]=C.absolute===this.cwd?[]:j(()=>W(C.absolute));this[S](ne,C)}[E](C,q){let X=C.mode&4095||this.fmode,ne=fe=>{let ie;try{i.closeSync(me)}catch(ye){ie=ye}(fe||ie)&&this[F](fe||ie,C),q()},me;try{me=i.openSync(C.absolute,Y(C.size),X)}catch(fe){return ne(fe)}let se=this.transform&&this.transform(C)||C;se!==C&&(se.on("error",fe=>this[F](fe,C)),C.pipe(se)),se.on("data",fe=>{try{i.writeSync(me,fe,0,fe.length)}catch(ie){ne(ie)}}),se.on("end",fe=>{let ie=null;if(C.mtime&&!this.noMtime){let ye=C.atime||new Date,we=C.mtime;try{i.futimesSync(me,ye,we)}catch(xe){try{i.utimesSync(C.absolute,ye,we)}catch{ie=xe}}}if(this[z](C)){let ye=this[re](C),we=this[B](C);try{i.fchownSync(me,ye,we)}catch(xe){try{i.chownSync(C.absolute,ye,we)}catch{ie=ie||xe}}}ne(ie)})}[v](C,q){let X=C.mode&4095||this.dmode,ne=this[P](C.absolute,X);if(ne){this[F](ne,C),q();return}if(C.mtime&&!this.noMtime)try{i.utimesSync(C.absolute,C.atime||new Date,C.mtime)}catch{}if(this[z](C))try{i.chownSync(C.absolute,this[re](C),this[B](C))}catch{}q(),C.resume()}[P](C,q){try{return s.sync(h(C),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:q})}catch(X){return X}}[m](C,q,X,ne){try{i[X+"Sync"](q,C.absolute),ne(),C.resume()}catch(me){return this[F](me,C)}}};pe.Sync=G,r.exports=pe}),GF=ee((e,r)=>{"use strict";K();var t=ni(),n=l1(),i=le("fs"),c=ai(),a=le("path"),s=oi();r.exports=(d,p,y)=>{typeof d=="function"?(y=d,p=null,d={}):Array.isArray(d)&&(p=d,d={}),typeof p=="function"&&(y=p,p=null),p?p=Array.from(p):p=[];let b=t(d);if(b.sync&&typeof y=="function")throw new TypeError("callback not supported for sync tar functions");if(!b.file&&typeof y=="function")throw new TypeError("callback only supported with file option");return p.length&&o(b,p),b.file&&b.sync?f(b):b.file?l(b,y):b.sync?h(b):u(b)};var o=(d,p)=>{let y=new Map(p.map(g=>[s(g),!0])),b=d.filter,_=(g,S)=>{let E=S||a.parse(g).root||".",v=g===E?!1:y.has(g)?y.get(g):_(a.dirname(g),E);return y.set(g,v),v};d.filter=b?(g,S)=>b(g,S)&&_(s(g)):g=>_(s(g))},f=d=>{let p=new n.Sync(d),y=d.file,b=i.statSync(y),_=d.maxReadSize||16*1024*1024;new c.ReadStreamSync(y,{readSize:_,size:b.size}).pipe(p)},l=(d,p)=>{let y=new n(d),b=d.maxReadSize||16*1024*1024,_=d.file,g=new Promise((S,E)=>{y.on("error",E),y.on("close",S),i.stat(_,(v,m)=>{if(v)E(v);else{let w=new c.ReadStream(_,{readSize:b,size:m.size});w.on("error",E),w.pipe(y)}})});return p?g.then(p,p):g},h=d=>new n.Sync(d),u=d=>new n(d)}),zF=ee(e=>{"use strict";K(),e.c=e.create=FF(),e.r=e.replace=o1(),e.t=e.list=ml(),e.u=e.update=PF(),e.x=e.extract=GF(),e.Pack=pl(),e.Unpack=l1(),e.Parse=dl(),e.ReadEntry=cl(),e.WriteEntry=i1(),e.Header=si(),e.Pax=hl(),e.types=t1()});K();var hj=je(kF()),fj=je(zF()),pj=(0,h1.promisify)(c1.Stream.pipeline);var WF=ee((e,r)=>{K();var t=le("constants"),n=process.cwd,i=null,c=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return i||(i=n.call(process)),i};try{process.cwd()}catch{}typeof process.chdir=="function"&&(a=process.chdir,process.chdir=function(o){i=null,a.call(process,o)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,a));var a;r.exports=s;function s(o){t.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&f(o),o.lutimes||l(o),o.chown=d(o.chown),o.fchown=d(o.fchown),o.lchown=d(o.lchown),o.chmod=h(o.chmod),o.fchmod=h(o.fchmod),o.lchmod=h(o.lchmod),o.chownSync=p(o.chownSync),o.fchownSync=p(o.fchownSync),o.lchownSync=p(o.lchownSync),o.chmodSync=u(o.chmodSync),o.fchmodSync=u(o.fchmodSync),o.lchmodSync=u(o.lchmodSync),o.stat=y(o.stat),o.fstat=y(o.fstat),o.lstat=y(o.lstat),o.statSync=b(o.statSync),o.fstatSync=b(o.fstatSync),o.lstatSync=b(o.lstatSync),o.chmod&&!o.lchmod&&(o.lchmod=function(g,S,E){E&&process.nextTick(E)},o.lchmodSync=function(){}),o.chown&&!o.lchown&&(o.lchown=function(g,S,E,v){v&&process.nextTick(v)},o.lchownSync=function(){}),c==="win32"&&(o.rename=typeof o.rename!="function"?o.rename:function(g){function S(E,v,m){var w=Date.now(),A=0;g(E,v,function x(R){if(R&&(R.code==="EACCES"||R.code==="EPERM")&&Date.now()-w<6e4){setTimeout(function(){o.stat(v,function(P,F){P&&P.code==="ENOENT"?g(E,v,x):m(R)})},A),A<100&&(A+=10);return}m&&m(R)})}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.rename)),o.read=typeof o.read!="function"?o.read:function(g){function S(E,v,m,w,A,x){var R;if(x&&typeof x=="function"){var P=0;R=function(F,O,D){if(F&&F.code==="EAGAIN"&&P<10)return P++,g.call(o,E,v,m,w,A,R);x.apply(this,arguments)}}return g.call(o,E,v,m,w,A,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(S,g),S}(o.read),o.readSync=typeof o.readSync!="function"?o.readSync:function(g){return function(S,E,v,m,w){for(var A=0;;)try{return g.call(o,S,E,v,m,w)}catch(x){if(x.code==="EAGAIN"&&A<10){A++;continue}throw x}}}(o.readSync);function f(g){g.lchmod=function(S,E,v){g.open(S,t.O_WRONLY|t.O_SYMLINK,E,function(m,w){if(m){v&&v(m);return}g.fchmod(w,E,function(A){g.close(w,function(x){v&&v(A||x)})})})},g.lchmodSync=function(S,E){var v=g.openSync(S,t.O_WRONLY|t.O_SYMLINK,E),m=!0,w;try{w=g.fchmodSync(v,E),m=!1}finally{if(m)try{g.closeSync(v)}catch{}else g.closeSync(v)}return w}}function l(g){t.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(S,E,v,m){g.open(S,t.O_SYMLINK,function(w,A){if(w){m&&m(w);return}g.futimes(A,E,v,function(x){g.close(A,function(R){m&&m(x||R)})})})},g.lutimesSync=function(S,E,v){var m=g.openSync(S,t.O_SYMLINK),w,A=!0;try{w=g.futimesSync(m,E,v),A=!1}finally{if(A)try{g.closeSync(m)}catch{}else g.closeSync(m)}return w}):g.futimes&&(g.lutimes=function(S,E,v,m){m&&process.nextTick(m)},g.lutimesSync=function(){})}function h(g){return g&&function(S,E,v){return g.call(o,S,E,function(m){_(m)&&(m=null),v&&v.apply(this,arguments)})}}function u(g){return g&&function(S,E){try{return g.call(o,S,E)}catch(v){if(!_(v))throw v}}}function d(g){return g&&function(S,E,v,m){return g.call(o,S,E,v,function(w){_(w)&&(w=null),m&&m.apply(this,arguments)})}}function p(g){return g&&function(S,E,v){try{return g.call(o,S,E,v)}catch(m){if(!_(m))throw m}}}function y(g){return g&&function(S,E,v){typeof E=="function"&&(v=E,E=null);function m(w,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),v&&v.apply(this,arguments)}return E?g.call(o,S,E,m):g.call(o,S,m)}}function b(g){return g&&function(S,E){var v=E?g.call(o,S,E):g.call(o,S);return v&&(v.uid<0&&(v.uid+=4294967296),v.gid<0&&(v.gid+=4294967296)),v}}function _(g){if(!g||g.code==="ENOSYS")return!0;var S=!process.getuid||process.getuid()!==0;return!!(S&&(g.code==="EINVAL"||g.code==="EPERM"))}}}),VF=ee((e,r)=>{K();var t=le("stream").Stream;r.exports=n;function n(i){return{ReadStream:c,WriteStream:a};function c(s,o){if(!(this instanceof c))return new c(s,o);t.call(this);var f=this;this.path=s,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),h=0,u=l.length;h<u;h++){var d=l[h];this[d]=o[d]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){f._read()});return}i.open(this.path,this.flags,this.mode,function(p,y){if(p){f.emit("error",p),f.readable=!1;return}f.fd=y,f.emit("open",y),f._read()})}function a(s,o){if(!(this instanceof a))return new a(s,o);t.call(this),this.path=s,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var f=Object.keys(o),l=0,h=f.length;l<h;l++){var u=f[l];this[u]=o[u]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=i.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}),YF=ee((e,r)=>{"use strict";K(),r.exports=n;var t=Object.getPrototypeOf||function(i){return i.__proto__};function n(i){if(i===null||typeof i!="object")return i;if(i instanceof Object)var c={__proto__:t(i)};else var c=Object.create(null);return Object.getOwnPropertyNames(i).forEach(function(a){Object.defineProperty(c,a,Object.getOwnPropertyDescriptor(i,a))}),c}}),Le=ee((e,r)=>{K();var t=le("fs"),n=WF(),i=VF(),c=YF(),a=le("util"),s,o;typeof Symbol=="function"&&typeof Symbol.for=="function"?(s=Symbol.for("graceful-fs.queue"),o=Symbol.for("graceful-fs.previous")):(s="___graceful-fs.queue",o="___graceful-fs.previous");function f(){}function l(g,S){Object.defineProperty(g,s,{get:function(){return S}})}var h=f;a.debuglog?h=a.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(h=function(){var g=a.format.apply(a,arguments);g="GFS4: "+g.split(/\n/).join(`
|
136
|
+
GFS4: `),console.error(g)}),t[s]||(u=global[s]||[],l(t,u),t.close=function(g){function S(E,v){return g.call(t,E,function(m){m||b(),typeof v=="function"&&v.apply(this,arguments)})}return Object.defineProperty(S,o,{value:g}),S}(t.close),t.closeSync=function(g){function S(E){g.apply(t,arguments),b()}return Object.defineProperty(S,o,{value:g}),S}(t.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){h(t[s]),le("assert").equal(t[s].length,0)}));var u;global[s]||l(global,t[s]),r.exports=d(c(t)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!t.__patched&&(r.exports=d(t),t.__patched=!0);function d(g){n(g),g.gracefulify=d,g.createReadStream=T,g.createWriteStream=Y;var S=g.readFile;g.readFile=E;function E(N,W,J){return typeof W=="function"&&(J=W,W=null),ae(N,W,J);function ae(oe,de,pe,j){return S(oe,de,function(G){G&&(G.code==="EMFILE"||G.code==="ENFILE")?p([ae,[oe,de,pe],G,j||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}}var v=g.writeFile;g.writeFile=m;function m(N,W,J,ae){return typeof J=="function"&&(ae=J,J=null),oe(N,W,J,ae);function oe(de,pe,j,G,C){return v(de,pe,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var w=g.appendFile;w&&(g.appendFile=A);function A(N,W,J,ae){return typeof J=="function"&&(ae=J,J=null),oe(N,W,J,ae);function oe(de,pe,j,G,C){return w(de,pe,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var x=g.copyFile;x&&(g.copyFile=R);function R(N,W,J,ae){return typeof J=="function"&&(ae=J,J=0),oe(N,W,J,ae);function oe(de,pe,j,G,C){return x(de,pe,j,function(q){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}var P=g.readdir;g.readdir=O;var F=/^v[0-5]\./;function O(N,W,J){typeof W=="function"&&(J=W,W=null);var ae=F.test(process.version)?function(de,pe,j,G){return P(de,oe(de,pe,j,G))}:function(de,pe,j,G){return P(de,pe,oe(de,pe,j,G))};return ae(N,W,J);function oe(de,pe,j,G){return function(C,q){C&&(C.code==="EMFILE"||C.code==="ENFILE")?p([ae,[de,pe,j],C,G||Date.now(),Date.now()]):(q&&q.sort&&q.sort(),typeof j=="function"&&j.call(this,C,q))}}}if(process.version.substr(0,4)==="v0.8"){var D=i(g);z=D.ReadStream,B=D.WriteStream}var k=g.ReadStream;k&&(z.prototype=Object.create(k.prototype),z.prototype.open=re);var L=g.WriteStream;L&&(B.prototype=Object.create(L.prototype),B.prototype.open=M),Object.defineProperty(g,"ReadStream",{get:function(){return z},set:function(N){z=N},enumerable:!0,configurable:!0}),Object.defineProperty(g,"WriteStream",{get:function(){return B},set:function(N){B=N},enumerable:!0,configurable:!0});var I=z;Object.defineProperty(g,"FileReadStream",{get:function(){return I},set:function(N){I=N},enumerable:!0,configurable:!0});var H=B;Object.defineProperty(g,"FileWriteStream",{get:function(){return H},set:function(N){H=N},enumerable:!0,configurable:!0});function z(N,W){return this instanceof z?(k.apply(this,arguments),this):z.apply(Object.create(z.prototype),arguments)}function re(){var N=this;Q(N.path,N.flags,N.mode,function(W,J){W?(N.autoClose&&N.destroy(),N.emit("error",W)):(N.fd=J,N.emit("open",J),N.read())})}function B(N,W){return this instanceof B?(L.apply(this,arguments),this):B.apply(Object.create(B.prototype),arguments)}function M(){var N=this;Q(N.path,N.flags,N.mode,function(W,J){W?(N.destroy(),N.emit("error",W)):(N.fd=J,N.emit("open",J))})}function T(N,W){return new g.ReadStream(N,W)}function Y(N,W){return new g.WriteStream(N,W)}var U=g.open;g.open=Q;function Q(N,W,J,ae){return typeof J=="function"&&(ae=J,J=null),oe(N,W,J,ae);function oe(de,pe,j,G,C){return U(de,pe,j,function(q,X){q&&(q.code==="EMFILE"||q.code==="ENFILE")?p([oe,[de,pe,j,G],q,C||Date.now(),Date.now()]):typeof G=="function"&&G.apply(this,arguments)})}}return g}function p(g){h("ENQUEUE",g[0].name,g[1]),t[s].push(g),_()}var y;function b(){for(var g=Date.now(),S=0;S<t[s].length;++S)t[s][S].length>2&&(t[s][S][3]=g,t[s][S][4]=g);_()}function _(){if(clearTimeout(y),y=void 0,t[s].length!==0){var g=t[s].shift(),S=g[0],E=g[1],v=g[2],m=g[3],w=g[4];if(m===void 0)h("RETRY",S.name,E),S.apply(null,E);else if(Date.now()-m>=6e4){h("TIMEOUT",S.name,E);var A=E.pop();typeof A=="function"&&A.call(null,v)}else{var x=Date.now()-w,R=Math.max(w-m,1),P=Math.min(R*1.2,100);x>=P?(h("RETRY",S.name,E),S.apply(null,E.concat([m]))):t[s].push(g)}y===void 0&&(y=setTimeout(_,0))}}});var bt=ee(e=>{"use strict";K(),e.fromCallback=function(r){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")r.apply(this,t);else return new Promise((n,i)=>{r.call(this,...t,(c,a)=>c!=null?i(c):n(a))})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return r.apply(this,t);r.apply(this,t.slice(0,-1)).then(i=>n(null,i),n)},"name",{value:r.name})}}),gn=ee(e=>{"use strict";K();var r=bt().fromCallback,t=Le(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.assign(e,t),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},e.readv=function(i,c,...a){return typeof a[a.length-1]=="function"?t.readv(i,c,...a):new Promise((s,o)=>{t.readv(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesRead:l,buffers:h})})})},e.writev=function(i,c,...a){return typeof a[a.length-1]=="function"?t.writev(i,c,...a):new Promise((s,o)=>{t.writev(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffers:h})})})},typeof t.realpath.native=="function"?e.realpath.native=r(t.realpath.native):process.emitWarning("fs.realpath.native is not a function. Is fs being monkey-patched?","Warning","fs-extra-WARN0003")}),KF=ee((e,r)=>{"use strict";K();var t=le("path");r.exports.checkPath=function(n){if(process.platform==="win32"&&/[<>:"|?*]/.test(n.replace(t.parse(n).root,""))){let i=new Error(`Path contains invalid characters: ${n}`);throw i.code="EINVAL",i}}}),XF=ee((e,r)=>{"use strict";K();var t=gn(),{checkPath:n}=KF(),i=c=>typeof c=="number"?c:{...{mode:511},...c}.mode;r.exports.makeDir=async(c,a)=>(n(c),t.mkdir(c,{mode:i(a),recursive:!0})),r.exports.makeDirSync=(c,a)=>(n(c),t.mkdirSync(c,{mode:i(a),recursive:!0}))}),Nt=ee((e,r)=>{"use strict";K();var t=bt().fromPromise,{makeDir:n,makeDirSync:i}=XF(),c=t(n);r.exports={mkdirs:c,mkdirsSync:i,mkdirp:c,mkdirpSync:i,ensureDir:c,ensureDirSync:i}}),Fr=ee((e,r)=>{"use strict";K();var t=bt().fromPromise,n=gn();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),f1=ee((e,r)=>{"use strict";K();var t=Le();function n(c,a,s,o){t.open(c,"r+",(f,l)=>{if(f)return o(f);t.futimes(l,a,s,h=>{t.close(l,u=>{o&&o(h||u)})})})}function i(c,a,s){let o=t.openSync(c,"r+");return t.futimesSync(o,a,s),t.closeSync(o)}r.exports={utimesMillis:n,utimesMillisSync:i}}),bn=ee((e,r)=>{"use strict";K();var t=gn(),n=le("path"),i=le("util");function c(p,y,b){let _=b.dereference?g=>t.stat(g,{bigint:!0}):g=>t.lstat(g,{bigint:!0});return Promise.all([_(p),_(y).catch(g=>{if(g.code==="ENOENT")return null;throw g})]).then(([g,S])=>({srcStat:g,destStat:S}))}function a(p,y,b){let _,g=b.dereference?E=>t.statSync(E,{bigint:!0}):E=>t.lstatSync(E,{bigint:!0}),S=g(p);try{_=g(y)}catch(E){if(E.code==="ENOENT")return{srcStat:S,destStat:null};throw E}return{srcStat:S,destStat:_}}function s(p,y,b,_,g){i.callbackify(c)(p,y,_,(S,E)=>{if(S)return g(S);let{srcStat:v,destStat:m}=E;if(m){if(h(v,m)){let w=n.basename(p),A=n.basename(y);return b==="move"&&w!==A&&w.toLowerCase()===A.toLowerCase()?g(null,{srcStat:v,destStat:m,isChangingCase:!0}):g(new Error("Source and destination must not be the same."))}if(v.isDirectory()&&!m.isDirectory())return g(new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`));if(!v.isDirectory()&&m.isDirectory())return g(new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`))}return v.isDirectory()&&u(p,y)?g(new Error(d(p,y,b))):g(null,{srcStat:v,destStat:m})})}function o(p,y,b,_){let{srcStat:g,destStat:S}=a(p,y,_);if(S){if(h(g,S)){let E=n.basename(p),v=n.basename(y);if(b==="move"&&E!==v&&E.toLowerCase()===v.toLowerCase())return{srcStat:g,destStat:S,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(g.isDirectory()&&!S.isDirectory())throw new Error(`Cannot overwrite non-directory '${y}' with directory '${p}'.`);if(!g.isDirectory()&&S.isDirectory())throw new Error(`Cannot overwrite directory '${y}' with non-directory '${p}'.`)}if(g.isDirectory()&&u(p,y))throw new Error(d(p,y,b));return{srcStat:g,destStat:S}}function f(p,y,b,_,g){let S=n.resolve(n.dirname(p)),E=n.resolve(n.dirname(b));if(E===S||E===n.parse(E).root)return g();t.stat(E,{bigint:!0},(v,m)=>v?v.code==="ENOENT"?g():g(v):h(y,m)?g(new Error(d(p,b,_))):f(p,y,E,_,g))}function l(p,y,b,_){let g=n.resolve(n.dirname(p)),S=n.resolve(n.dirname(b));if(S===g||S===n.parse(S).root)return;let E;try{E=t.statSync(S,{bigint:!0})}catch(v){if(v.code==="ENOENT")return;throw v}if(h(y,E))throw new Error(d(p,b,_));return l(p,y,S,_)}function h(p,y){return y.ino&&y.dev&&y.ino===p.ino&&y.dev===p.dev}function u(p,y){let b=n.resolve(p).split(n.sep).filter(g=>g),_=n.resolve(y).split(n.sep).filter(g=>g);return b.reduce((g,S,E)=>g&&_[E]===S,!0)}function d(p,y,b){return`Cannot ${b} '${p}' to a subdirectory of itself, '${y}'.`}r.exports={checkPaths:s,checkPathsSync:o,checkParentPaths:f,checkParentPathsSync:l,isSrcSubdir:u,areIdentical:h}}),ZF=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=Nt().mkdirs,c=Fr().pathExists,a=f1().utimesMillis,s=bn();function o(F,O,D,k){typeof D=="function"&&!k?(k=D,D={}):typeof D=="function"&&(D={filter:D}),k=k||function(){},D=D||{},D.clobber="clobber"in D?!!D.clobber:!0,D.overwrite="overwrite"in D?!!D.overwrite:D.clobber,D.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
137
|
+
|
138
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0001"),s.checkPaths(F,O,"copy",D,(L,I)=>{if(L)return k(L);let{srcStat:H,destStat:z}=I;s.checkParentPaths(F,H,O,"copy",re=>{if(re)return k(re);l(F,O,D,(B,M)=>{if(B)return k(B);if(!M)return k();f(z,F,O,D,k)})})})}function f(F,O,D,k,L){let I=n.dirname(D);c(I,(H,z)=>{if(H)return L(H);if(z)return h(F,O,D,k,L);i(I,re=>re?L(re):h(F,O,D,k,L))})}function l(F,O,D,k){if(!D.filter)return k(null,!0);Promise.resolve(D.filter(F,O)).then(L=>k(null,L),L=>k(L))}function h(F,O,D,k,L){(k.dereference?t.stat:t.lstat)(O,(I,H)=>I?L(I):H.isDirectory()?v(H,F,O,D,k,L):H.isFile()||H.isCharacterDevice()||H.isBlockDevice()?u(H,F,O,D,k,L):H.isSymbolicLink()?R(F,O,D,k,L):H.isSocket()?L(new Error(`Cannot copy a socket file: ${O}`)):H.isFIFO()?L(new Error(`Cannot copy a FIFO pipe: ${O}`)):L(new Error(`Unknown file: ${O}`)))}function u(F,O,D,k,L,I){return O?d(F,D,k,L,I):p(F,D,k,L,I)}function d(F,O,D,k,L){if(k.overwrite)t.unlink(D,I=>I?L(I):p(F,O,D,k,L));else return k.errorOnExist?L(new Error(`'${D}' already exists`)):L()}function p(F,O,D,k,L){t.copyFile(O,D,I=>I?L(I):k.preserveTimestamps?y(F.mode,O,D,L):S(D,F.mode,L))}function y(F,O,D,k){return b(F)?_(D,F,L=>L?k(L):g(F,O,D,k)):g(F,O,D,k)}function b(F){return(F&128)===0}function _(F,O,D){return S(F,O|128,D)}function g(F,O,D,k){E(O,D,L=>L?k(L):S(D,F,k))}function S(F,O,D){return t.chmod(F,O,D)}function E(F,O,D){t.stat(F,(k,L)=>k?D(k):a(O,L.atime,L.mtime,D))}function v(F,O,D,k,L,I){return O?w(D,k,L,I):m(F.mode,D,k,L,I)}function m(F,O,D,k,L){t.mkdir(D,I=>{if(I)return L(I);w(O,D,k,H=>H?L(H):S(D,F,L))})}function w(F,O,D,k){t.readdir(F,(L,I)=>L?k(L):A(I,F,O,D,k))}function A(F,O,D,k,L){let I=F.pop();return I?x(F,I,O,D,k,L):L()}function x(F,O,D,k,L,I){let H=n.join(D,O),z=n.join(k,O);l(H,z,L,(re,B)=>{if(re)return I(re);if(!B)return A(F,D,k,L,I);s.checkPaths(H,z,"copy",L,(M,T)=>{if(M)return I(M);let{destStat:Y}=T;h(Y,H,z,L,U=>U?I(U):A(F,D,k,L,I))})})}function R(F,O,D,k,L){t.readlink(O,(I,H)=>{if(I)return L(I);if(k.dereference&&(H=n.resolve(process.cwd(),H)),F)t.readlink(D,(z,re)=>z?z.code==="EINVAL"||z.code==="UNKNOWN"?t.symlink(H,D,L):L(z):(k.dereference&&(re=n.resolve(process.cwd(),re)),s.isSrcSubdir(H,re)?L(new Error(`Cannot copy '${H}' to a subdirectory of itself, '${re}'.`)):s.isSrcSubdir(re,H)?L(new Error(`Cannot overwrite '${re}' with '${H}'.`)):P(H,D,L)));else return t.symlink(H,D,L)})}function P(F,O,D){t.unlink(O,k=>k?D(k):t.symlink(F,O,D))}r.exports=o}),JF=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=Nt().mkdirsSync,c=f1().utimesMillisSync,a=bn();function s(w,A,x){typeof x=="function"&&(x={filter:x}),x=x||{},x.clobber="clobber"in x?!!x.clobber:!0,x.overwrite="overwrite"in x?!!x.overwrite:x.clobber,x.preserveTimestamps&&process.arch==="ia32"&&process.emitWarning(`Using the preserveTimestamps option in 32-bit node is not recommended;
|
139
|
+
|
140
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:R,destStat:P}=a.checkPathsSync(w,A,"copy",x);if(a.checkParentPathsSync(w,R,A,"copy"),x.filter&&!x.filter(w,A))return;let F=n.dirname(A);return t.existsSync(F)||i(F),o(P,w,A,x)}function o(w,A,x,R){let P=(R.dereference?t.statSync:t.lstatSync)(A);if(P.isDirectory())return _(P,w,A,x,R);if(P.isFile()||P.isCharacterDevice()||P.isBlockDevice())return f(P,w,A,x,R);if(P.isSymbolicLink())return v(w,A,x,R);throw P.isSocket()?new Error(`Cannot copy a socket file: ${A}`):P.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${A}`):new Error(`Unknown file: ${A}`)}function f(w,A,x,R,P){return A?l(w,x,R,P):h(w,x,R,P)}function l(w,A,x,R){if(R.overwrite)return t.unlinkSync(x),h(w,A,x,R);if(R.errorOnExist)throw new Error(`'${x}' already exists`)}function h(w,A,x,R){return t.copyFileSync(A,x),R.preserveTimestamps&&u(w.mode,A,x),y(x,w.mode)}function u(w,A,x){return d(w)&&p(x,w),b(A,x)}function d(w){return(w&128)===0}function p(w,A){return y(w,A|128)}function y(w,A){return t.chmodSync(w,A)}function b(w,A){let x=t.statSync(w);return c(A,x.atime,x.mtime)}function _(w,A,x,R,P){return A?S(x,R,P):g(w.mode,x,R,P)}function g(w,A,x,R){return t.mkdirSync(x),S(A,x,R),y(x,w)}function S(w,A,x){t.readdirSync(w).forEach(R=>E(R,w,A,x))}function E(w,A,x,R){let P=n.join(A,w),F=n.join(x,w);if(R.filter&&!R.filter(P,F))return;let{destStat:O}=a.checkPathsSync(P,F,"copy",R);return o(O,P,F,R)}function v(w,A,x,R){let P=t.readlinkSync(A);if(R.dereference&&(P=n.resolve(process.cwd(),P)),w){let F;try{F=t.readlinkSync(x)}catch(O){if(O.code==="EINVAL"||O.code==="UNKNOWN")return t.symlinkSync(P,x);throw O}if(R.dereference&&(F=n.resolve(process.cwd(),F)),a.isSrcSubdir(P,F))throw new Error(`Cannot copy '${P}' to a subdirectory of itself, '${F}'.`);if(a.isSrcSubdir(F,P))throw new Error(`Cannot overwrite '${F}' with '${P}'.`);return m(P,x)}else return t.symlinkSync(P,x)}function m(w,A){return t.unlinkSync(A),t.symlinkSync(w,A)}r.exports=s}),yl=ee((e,r)=>{"use strict";K();var t=bt().fromCallback;r.exports={copy:t(ZF()),copySync:JF()}}),Ms=ee((e,r)=>{"use strict";K();var t=Le(),n=bt().fromCallback;function i(a,s){t.rm(a,{recursive:!0,force:!0},s)}function c(a){t.rmSync(a,{recursive:!0,force:!0})}r.exports={remove:n(i),removeSync:c}}),QF=ee((e,r)=>{"use strict";K();var t=bt().fromPromise,n=gn(),i=le("path"),c=Nt(),a=Ms(),s=t(async function(f){let l;try{l=await n.readdir(f)}catch{return c.mkdirs(f)}return Promise.all(l.map(h=>a.remove(i.join(f,h))))});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),e3=ee((e,r)=>{"use strict";K();var t=bt().fromCallback,n=le("path"),i=Le(),c=Nt();function a(o,f){function l(){i.writeFile(o,"",h=>{if(h)return f(h);f()})}i.stat(o,(h,u)=>{if(!h&&u.isFile())return f();let d=n.dirname(o);i.stat(d,(p,y)=>{if(p)return p.code==="ENOENT"?c.mkdirs(d,b=>{if(b)return f(b);l()}):f(p);y.isDirectory()?l():i.readdir(d,b=>{if(b)return f(b)})})})}function s(o){let f;try{f=i.statSync(o)}catch{}if(f&&f.isFile())return;let l=n.dirname(o);try{i.statSync(l).isDirectory()||i.readdirSync(l)}catch(h){if(h&&h.code==="ENOENT")c.mkdirsSync(l);else throw h}i.writeFileSync(o,"")}r.exports={createFile:t(a),createFileSync:s}}),t3=ee((e,r)=>{"use strict";K();var t=bt().fromCallback,n=le("path"),i=Le(),c=Nt(),a=Fr().pathExists,{areIdentical:s}=bn();function o(l,h,u){function d(p,y){i.link(p,y,b=>{if(b)return u(b);u(null)})}i.lstat(h,(p,y)=>{i.lstat(l,(b,_)=>{if(b)return b.message=b.message.replace("lstat","ensureLink"),u(b);if(y&&s(_,y))return u(null);let g=n.dirname(h);a(g,(S,E)=>{if(S)return u(S);if(E)return d(l,h);c.mkdirs(g,v=>{if(v)return u(v);d(l,h)})})})})}function f(l,h){let u;try{u=i.lstatSync(h)}catch{}try{let p=i.lstatSync(l);if(u&&s(p,u))return}catch(p){throw p.message=p.message.replace("lstat","ensureLink"),p}let d=n.dirname(h);return i.existsSync(d)||c.mkdirsSync(d),i.linkSync(l,h)}r.exports={createLink:t(o),createLinkSync:f}}),r3=ee((e,r)=>{"use strict";K();var t=le("path"),n=Le(),i=Fr().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),n3=ee((e,r)=>{"use strict";K();var t=Le();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),i3=ee((e,r)=>{"use strict";K();var t=bt().fromCallback,n=le("path"),i=gn(),c=Nt(),a=c.mkdirs,s=c.mkdirsSync,o=r3(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=n3(),u=h.symlinkType,d=h.symlinkTypeSync,p=Fr().pathExists,{areIdentical:y}=bn();function b(S,E,v,m){m=typeof v=="function"?v:m,v=typeof v=="function"?!1:v,i.lstat(E,(w,A)=>{!w&&A.isSymbolicLink()?Promise.all([i.stat(S),i.stat(E)]).then(([x,R])=>{if(y(x,R))return m(null);_(S,E,v,m)}):_(S,E,v,m)})}function _(S,E,v,m){f(S,E,(w,A)=>{if(w)return m(w);S=A.toDst,u(A.toCwd,v,(x,R)=>{if(x)return m(x);let P=n.dirname(E);p(P,(F,O)=>{if(F)return m(F);if(O)return i.symlink(S,E,R,m);a(P,D=>{if(D)return m(D);i.symlink(S,E,R,m)})})})})}function g(S,E,v){let m;try{m=i.lstatSync(E)}catch{}if(m&&m.isSymbolicLink()){let x=i.statSync(S),R=i.statSync(E);if(y(x,R))return}let w=l(S,E);S=w.toDst,v=d(w.toCwd,v);let A=n.dirname(E);return i.existsSync(A)||s(A),i.symlinkSync(S,E,v)}r.exports={createSymlink:t(b),createSymlinkSync:g}}),s3=ee((e,r)=>{"use strict";K();var{createFile:t,createFileSync:n}=e3(),{createLink:i,createLinkSync:c}=t3(),{createSymlink:a,createSymlinkSync:s}=i3();r.exports={createFile:t,createFileSync:n,ensureFile:t,ensureFileSync:n,createLink:i,createLinkSync:c,ensureLink:i,ensureLinkSync:c,createSymlink:a,createSymlinkSync:s,ensureSymlink:a,ensureSymlinkSync:s}}),gl=ee((e,r)=>{K();function t(i,{EOL:c=`
|
141
|
+
`,finalEOL:a=!0,replacer:s=null,spaces:o}={}){let f=a?c:"";return JSON.stringify(i,s,o).replace(/\n/g,c)+f}function n(i){return Buffer.isBuffer(i)&&(i=i.toString("utf8")),i.replace(/^\uFEFF/,"")}r.exports={stringify:t,stripBom:n}}),o3=ee((e,r)=>{K();var t;try{t=Le()}catch{t=le("fs")}var n=bt(),{stringify:i,stripBom:c}=gl();async function a(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0,_=await n.fromCallback(y.readFile)(d,p);_=c(_);let g;try{g=JSON.parse(_,p?p.reviver:null)}catch(S){if(b)throw S.message=`${d}: ${S.message}`,S;return null}return g}var s=n.fromPromise(a);function o(d,p={}){typeof p=="string"&&(p={encoding:p});let y=p.fs||t,b="throws"in p?p.throws:!0;try{let _=y.readFileSync(d,p);return _=c(_),JSON.parse(_,p.reviver)}catch(_){if(b)throw _.message=`${d}: ${_.message}`,_;return null}}async function f(d,p,y={}){let b=y.fs||t,_=i(p,y);await n.fromCallback(b.writeFile)(d,_,y)}var l=n.fromPromise(f);function h(d,p,y={}){let b=y.fs||t,_=i(p,y);return b.writeFileSync(d,_,y)}var u={readFile:s,readFileSync:o,writeFile:l,writeFileSync:h};r.exports=u}),a3=ee((e,r)=>{"use strict";K();var t=o3();r.exports={readJson:t.readFile,readJsonSync:t.readFileSync,writeJson:t.writeFile,writeJsonSync:t.writeFileSync}}),bl=ee((e,r)=>{"use strict";K();var t=bt().fromCallback,n=Le(),i=le("path"),c=Nt(),a=Fr().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),u3=ee((e,r)=>{"use strict";K();var{stringify:t}=gl(),{outputFile:n}=bl();async function i(c,a,s={}){let o=t(a,s);await n(c,o,s)}r.exports=i}),l3=ee((e,r)=>{"use strict";K();var{stringify:t}=gl(),{outputFileSync:n}=bl();function i(c,a,s){let o=t(a,s);n(c,o,s)}r.exports=i}),c3=ee((e,r)=>{"use strict";K();var t=bt().fromPromise,n=a3();n.outputJson=t(u3()),n.outputJsonSync=l3(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),h3=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=yl().copy,c=Ms().remove,a=Nt().mkdirp,s=Fr().pathExists,o=bn();function f(p,y,b,_){typeof b=="function"&&(_=b,b={}),b=b||{};let g=b.overwrite||b.clobber||!1;o.checkPaths(p,y,"move",b,(S,E)=>{if(S)return _(S);let{srcStat:v,isChangingCase:m=!1}=E;o.checkParentPaths(p,v,y,"move",w=>{if(w)return _(w);if(l(y))return h(p,y,g,m,_);a(n.dirname(y),A=>A?_(A):h(p,y,g,m,_))})})}function l(p){let y=n.dirname(p);return n.parse(y).root===y}function h(p,y,b,_,g){if(_)return u(p,y,b,g);if(b)return c(y,S=>S?g(S):u(p,y,b,g));s(y,(S,E)=>S?g(S):E?g(new Error("dest already exists.")):u(p,y,b,g))}function u(p,y,b,_){t.rename(p,y,g=>g?g.code!=="EXDEV"?_(g):d(p,y,b,_):_())}function d(p,y,b,_){i(p,y,{overwrite:b,errorOnExist:!0,preserveTimestamps:!0},g=>g?_(g):c(p,_))}r.exports=f}),f3=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=yl().copySync,c=Ms().removeSync,a=Nt().mkdirpSync,s=bn();function o(d,p,y){y=y||{};let b=y.overwrite||y.clobber||!1,{srcStat:_,isChangingCase:g=!1}=s.checkPathsSync(d,p,"move",y);return s.checkParentPathsSync(d,_,p,"move"),f(p)||a(n.dirname(p)),l(d,p,b,g)}function f(d){let p=n.dirname(d);return n.parse(p).root===p}function l(d,p,y,b){if(b)return h(d,p,y);if(y)return c(p),h(d,p,y);if(t.existsSync(p))throw new Error("dest already exists.");return h(d,p,y)}function h(d,p,y){try{t.renameSync(d,p)}catch(b){if(b.code!=="EXDEV")throw b;return u(d,p,y)}}function u(d,p,y){return i(d,p,{overwrite:y,errorOnExist:!0,preserveTimestamps:!0}),c(d)}r.exports=o}),p3=ee((e,r)=>{"use strict";K();var t=bt().fromCallback;r.exports={move:t(h3()),moveSync:f3()}}),fr=ee((e,r)=>{"use strict";K(),r.exports={...gn(),...yl(),...QF(),...s3(),...c3(),...Nt(),...p3(),...bl(),...Fr(),...Ms()}});K();var P7=je(fr());K();var M7=je(fr());var _3=ee((e,r)=>{K();function t(n,i){typeof i=="boolean"&&(i={forever:i}),this._originalTimeouts=JSON.parse(JSON.stringify(n)),this._timeouts=n,this._options=i||{},this._maxRetryTime=i&&i.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}r.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(n){if(this._timeout&&clearTimeout(this._timeout),!n)return!1;var i=new Date().getTime();if(n&&i-this._operationStart>=this._maxRetryTime)return this._errors.push(n),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(n);var c=this._timeouts.shift();if(c===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),c=this._cachedTimeouts.slice(-1);else return!1;var a=this;return this._timer=setTimeout(function(){a._attempts++,a._operationTimeoutCb&&(a._timeout=setTimeout(function(){a._operationTimeoutCb(a._attempts)},a._operationTimeout),a._options.unref&&a._timeout.unref()),a._fn(a._attempts)},c),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(n,i){this._fn=n,i&&(i.timeout&&(this._operationTimeout=i.timeout),i.cb&&(this._operationTimeoutCb=i.cb));var c=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){c._operationTimeoutCb()},c._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(n){console.log("Using RetryOperation.try() is deprecated"),this.attempt(n)},t.prototype.start=function(n){console.log("Using RetryOperation.start() is deprecated"),this.attempt(n)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(this._errors.length===0)return null;for(var n={},i=null,c=0,a=0;a<this._errors.length;a++){var s=this._errors[a],o=s.message,f=(n[o]||0)+1;n[o]=f,f>=c&&(i=s,c=f)}return i}}),w3=ee(e=>{K();var r=_3();e.operation=function(t){var n=e.timeouts(t);return new r(n,{forever:t&&(t.forever||t.retries===1/0),unref:t&&t.unref,maxRetryTime:t&&t.maxRetryTime})},e.timeouts=function(t){if(t instanceof Array)return[].concat(t);var n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var i in t)n[i]=t[i];if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var c=[],a=0;a<n.retries;a++)c.push(this.createTimeout(a,n));return t&&t.forever&&!c.length&&c.push(this.createTimeout(a,n)),c.sort(function(s,o){return s-o}),c},e.createTimeout=function(t,n){var i=n.randomize?Math.random()+1:1,c=Math.round(i*Math.max(n.minTimeout,1)*Math.pow(n.factor,t));return c=Math.min(c,n.maxTimeout),c},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i){i=[];for(var c in t)typeof t[c]=="function"&&i.push(c)}for(var a=0;a<i.length;a++){var s=i[a],o=t[s];t[s]=function(f){var l=e.operation(n),h=Array.prototype.slice.call(arguments,1),u=h.pop();h.push(function(d){l.retry(d)||(d&&(arguments[0]=l.mainError()),u.apply(this,arguments))}),l.attempt(function(){f.apply(t,h)})}.bind(t,o),t[s].options=n}}}),E3=ee((e,r)=>{K(),r.exports=w3()}),S3=ee((e,r)=>{K();var t=E3();function n(i,c){function a(s,o){var f=c||{},l;"randomize"in f||(f.randomize=!0),l=t.operation(f);function h(p){o(p||new Error("Aborted"))}function u(p,y){if(p.bail){h(p);return}l.retry(p)?f.onRetry&&f.onRetry(p,y):o(l.mainError())}function d(p){var y;try{y=i(h,p)}catch(b){u(b,p);return}Promise.resolve(y).then(s).catch(function(b){u(b,p)})}l.attempt(d)}return new Promise(a)}r.exports=n});K();K();var W7=je(S3()),V7=je(Tr()),Y7=je(fr());var y1=Pe(require("os"),1),A3=ee((e,r)=>{K(),r.exports=c,c.sync=a;var t=le("fs");function n(s,o){var f=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!f||(f=f.split(";"),f.indexOf("")!==-1))return!0;for(var l=0;l<f.length;l++){var h=f[l].toLowerCase();if(h&&s.substr(-h.length).toLowerCase()===h)return!0}return!1}function i(s,o,f){return!s.isSymbolicLink()&&!s.isFile()?!1:n(o,f)}function c(s,o,f){t.stat(s,function(l,h){f(l,l?!1:i(h,s,o))})}function a(s,o){return i(t.statSync(s),s,o)}}),x3=ee((e,r)=>{K(),r.exports=n,n.sync=i;var t=le("fs");function n(s,o,f){t.stat(s,function(l,h){f(l,l?!1:c(h,o))})}function i(s,o){return c(t.statSync(s),o)}function c(s,o){return s.isFile()&&a(s,o)}function a(s,o){var f=s.mode,l=s.uid,h=s.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),d=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),p=parseInt("100",8),y=parseInt("010",8),b=parseInt("001",8),_=p|y,g=f&b||f&y&&h===d||f&p&&l===u||f&_&&u===0;return g}}),C3=ee((e,r)=>{K();var t=le("fs"),n;process.platform==="win32"||global.TESTING_WINDOWS?n=A3():n=x3(),r.exports=i,i.sync=c;function i(a,s,o){if(typeof s=="function"&&(o=s,s={}),!o){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(f,l){i(a,s||{},function(h,u){h?l(h):f(u)})})}n(a,s||{},function(f,l){f&&(f.code==="EACCES"||s&&s.ignoreErrors)&&(f=null,l=!1),o(f,l)})}function c(a,s){try{return n.sync(a,s||{})}catch(o){if(s&&s.ignoreErrors||o.code==="EACCES")return!1;throw o}}}),k3=ee((e,r)=>{K();var t=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",n=le("path"),i=t?";":":",c=C3(),a=l=>Object.assign(new Error(`not found: ${l}`),{code:"ENOENT"}),s=(l,h)=>{let u=h.colon||i,d=l.match(/\//)||t&&l.match(/\\/)?[""]:[...t?[process.cwd()]:[],...(h.path||process.env.PATH||"").split(u)],p=t?h.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",y=t?p.split(u):[""];return t&&l.indexOf(".")!==-1&&y[0]!==""&&y.unshift(""),{pathEnv:d,pathExt:y,pathExtExe:p}},o=(l,h,u)=>{typeof h=="function"&&(u=h,h={}),h||(h={});let{pathEnv:d,pathExt:p,pathExtExe:y}=s(l,h),b=[],_=S=>new Promise((E,v)=>{if(S===d.length)return h.all&&b.length?E(b):v(a(l));let m=d[S],w=/^".*"$/.test(m)?m.slice(1,-1):m,A=n.join(w,l),x=!w&&/^\.[\\\/]/.test(l)?l.slice(0,2)+A:A;E(g(x,S,0))}),g=(S,E,v)=>new Promise((m,w)=>{if(v===p.length)return m(_(E+1));let A=p[v];c(S+A,{pathExt:y},(x,R)=>{if(!x&&R)if(h.all)b.push(S+A);else return m(S+A);return m(g(S,E,v+1))})});return u?_(0).then(S=>u(null,S),u):_(0)},f=(l,h)=>{h=h||{};let{pathEnv:u,pathExt:d,pathExtExe:p}=s(l,h),y=[];for(let b=0;b<u.length;b++){let _=u[b],g=/^".*"$/.test(_)?_.slice(1,-1):_,S=n.join(g,l),E=!g&&/^\.[\\\/]/.test(l)?l.slice(0,2)+S:S;for(let v=0;v<d.length;v++){let m=E+d[v];try{if(c.sync(m,{pathExt:p}))if(h.all)y.push(m);else return m}catch{}}}if(h.all&&y.length)return y;if(h.nothrow)return null;throw a(l)};r.exports=o,o.sync=f}),d1=ee((e,r)=>{"use strict";K();var t=(n={})=>{let i=n.env||process.env;return(n.platform||process.platform)!=="win32"?"PATH":Object.keys(i).reverse().find(c=>c.toUpperCase()==="PATH")||"Path"};r.exports=t,r.exports.default=t}),D3=ee((e,r)=>{"use strict";K();var t=le("path"),n=k3(),i=d1();function c(s,o){let f=s.options.env||process.env,l=process.cwd(),h=s.options.cwd!=null,u=h&&process.chdir!==void 0&&!process.chdir.disabled;if(u)try{process.chdir(s.options.cwd)}catch{}let d;try{d=n.sync(s.command,{path:f[i({env:f})],pathExt:o?t.delimiter:void 0})}catch{}finally{u&&process.chdir(l)}return d&&(d=t.resolve(h?s.options.cwd:"",d)),d}function a(s){return c(s)||c(s,!0)}r.exports=a}),R3=ee((e,r)=>{"use strict";K();var t=/([()\][%!^"`<>&|;, *?])/g;function n(c){return c=c.replace(t,"^$1"),c}function i(c,a){return c=`${c}`,c=c.replace(/(\\*)"/g,'$1$1\\"'),c=c.replace(/(\\*)$/,"$1$1"),c=`"${c}"`,c=c.replace(t,"^$1"),a&&(c=c.replace(t,"^$1")),c}r.exports.command=n,r.exports.argument=i}),O3=ee((e,r)=>{"use strict";K(),r.exports=/^#!(.*)/}),T3=ee((e,r)=>{"use strict";K();var t=O3();r.exports=(n="")=>{let i=n.match(t);if(!i)return null;let[c,a]=i[0].replace(/#! ?/,"").split(" "),s=c.split("/").pop();return s==="env"?a:a?`${s} ${a}`:s}}),F3=ee((e,r)=>{"use strict";K();var t=le("fs"),n=T3();function i(c){let a=Buffer.alloc(150),s;try{s=t.openSync(c,"r"),t.readSync(s,a,0,150,0),t.closeSync(s)}catch{}return n(a.toString())}r.exports=i}),P3=ee((e,r)=>{"use strict";K();var t=le("path"),n=D3(),i=R3(),c=F3(),a=process.platform==="win32",s=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function f(u){u.file=n(u);let d=u.file&&c(u.file);return d?(u.args.unshift(u.file),u.command=d,n(u)):u.file}function l(u){if(!a)return u;let d=f(u),p=!s.test(d);if(u.options.forceShell||p){let y=o.test(d);u.command=t.normalize(u.command),u.command=i.command(u.command),u.args=u.args.map(_=>i.argument(_,y));let b=[u.command].concat(u.args).join(" ");u.args=["/d","/s","/c",`"${b}"`],u.command=process.env.comspec||"cmd.exe",u.options.windowsVerbatimArguments=!0}return u}function h(u,d,p){d&&!Array.isArray(d)&&(p=d,d=null),d=d?d.slice(0):[],p=Object.assign({},p);let y={command:u,args:d,options:p,file:void 0,original:{command:u,args:d}};return p.shell?y:l(y)}r.exports=h}),B3=ee((e,r)=>{"use strict";K();var t=process.platform==="win32";function n(s,o){return Object.assign(new Error(`${o} ${s.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${s.command}`,path:s.command,spawnargs:s.args})}function i(s,o){if(!t)return;let f=s.emit;s.emit=function(l,h){if(l==="exit"){let u=c(h,o,"spawn");if(u)return f.call(s,"error",u)}return f.apply(s,arguments)}}function c(s,o){return t&&s===1&&!o.file?n(o.original,"spawn"):null}function a(s,o){return t&&s===1&&!o.file?n(o.original,"spawnSync"):null}r.exports={hookChildProcess:i,verifyENOENT:c,verifyENOENTSync:a,notFoundError:n}}),I3=ee((e,r)=>{"use strict";K();var t=le("child_process"),n=P3(),i=B3();function c(s,o,f){let l=n(s,o,f),h=t.spawn(l.command,l.args,l.options);return i.hookChildProcess(h,l),h}function a(s,o,f){let l=n(s,o,f),h=t.spawnSync(l.command,l.args,l.options);return h.error=h.error||i.verifyENOENTSync(h.status,l),h}r.exports=c,r.exports.spawn=c,r.exports.sync=a,r.exports._parse=n,r.exports._enoent=i}),L3=ee((e,r)=>{"use strict";K(),r.exports=t=>{let n=typeof t=="string"?`
|
142
|
+
`:`
|
143
|
+
`.charCodeAt(),i=typeof t=="string"?"\r":"\r".charCodeAt();return t[t.length-1]===n&&(t=t.slice(0,t.length-1)),t[t.length-1]===i&&(t=t.slice(0,t.length-1)),t}}),M3=ee((e,r)=>{"use strict";K();var t=le("path"),n=d1(),i=c=>{c={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...c};let a,s=t.resolve(c.cwd),o=[];for(;a!==s;)o.push(t.join(s,"node_modules/.bin")),a=s,s=t.resolve(s,"..");let f=t.resolve(c.cwd,c.execPath,"..");return o.push(f),o.concat(c.path).join(t.delimiter)};r.exports=i,r.exports.default=i,r.exports.env=c=>{c={env:process.env,...c};let a={...c.env},s=n({env:a});return c.path=a[s],a[s]=r.exports(c),a}}),N3=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGNALS=void 0;var r=[{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"}];e.SIGNALS=r}),m1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.SIGRTMAX=e.getRealtimeSignals=void 0;var r=function(){let c=i-n+1;return Array.from({length:c},t)};e.getRealtimeSignals=r;var t=function(c,a){return{name:`SIGRT${a+1}`,number:n+a,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},n=34,i=64;e.SIGRTMAX=i}),j3=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.getSignals=void 0;var r=le("os"),t=N3(),n=m1(),i=function(){let a=(0,n.getRealtimeSignals)();return[...t.SIGNALS,...a].map(c)};e.getSignals=i;var c=function({name:a,number:s,description:o,action:f,forced:l=!1,standard:h}){let{signals:{[a]:u}}=r.constants,d=u!==void 0;return{name:a,number:d?u:s,description:o,supported:d,action:f,forced:l,standard:h}}}),$3=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.signalsByNumber=e.signalsByName=void 0;var r=le("os"),t=j3(),n=m1(),i=function(){return(0,t.getSignals)().reduce(c,{})},c=function(h,{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}){return{...h,[u]:{name:u,number:d,description:p,supported:y,action:b,forced:_,standard:g}}},a=i();e.signalsByName=a;var s=function(){let h=(0,t.getSignals)(),u=n.SIGRTMAX+1,d=Array.from({length:u},(p,y)=>o(y,h));return Object.assign({},...d)},o=function(h,u){let d=f(h,u);if(d===void 0)return{};let{name:p,description:y,supported:b,action:_,forced:g,standard:S}=d;return{[h]:{name:p,number:h,description:y,supported:b,action:_,forced:g,standard:S}}},f=function(h,u){let d=u.find(({name:p})=>r.constants.signals[p]===h);return d!==void 0?d:u.find(p=>p.number===h)},l=s();e.signalsByNumber=l}),H3=ee((e,r)=>{"use strict";K();var{signalsByName:t}=$3(),n=({timedOut:c,timeout:a,errorCode:s,signal:o,signalDescription:f,exitCode:l,isCanceled:h})=>c?`timed out after ${a} milliseconds`:h?"was canceled":s!==void 0?`failed with ${s}`:o!==void 0?`was killed with ${o} (${f})`:l!==void 0?`failed with exit code ${l}`:"failed",i=({stdout:c,stderr:a,all:s,error:o,signal:f,exitCode:l,command:h,escapedCommand:u,timedOut:d,isCanceled:p,killed:y,parsed:{options:{timeout:b}}})=>{l=l===null?void 0:l,f=f===null?void 0:f;let _=f===void 0?void 0:t[f].description,g=o&&o.code,S=`Command ${n({timedOut:d,timeout:b,errorCode:g,signal:f,signalDescription:_,exitCode:l,isCanceled:p})}: ${h}`,E=Object.prototype.toString.call(o)==="[object Error]",v=E?`${S}
|
144
|
+
${o.message}`:S,m=[v,a,c].filter(Boolean).join(`
|
145
|
+
`);return E?(o.originalMessage=o.message,o.message=m):o=new Error(m),o.shortMessage=v,o.command=h,o.escapedCommand=u,o.exitCode=l,o.signal=f,o.signalDescription=_,o.stdout=c,o.stderr=a,s!==void 0&&(o.all=s),"bufferedData"in o&&delete o.bufferedData,o.failed=!0,o.timedOut=!!d,o.isCanceled=p,o.killed=y&&!d,o};r.exports=i}),U3=ee((e,r)=>{"use strict";K();var t=["stdin","stdout","stderr"],n=c=>t.some(a=>c[a]!==void 0),i=c=>{if(!c)return;let{stdio:a}=c;if(a===void 0)return t.map(o=>c[o]);if(n(c))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${t.map(o=>`\`${o}\``).join(", ")}`);if(typeof a=="string")return a;if(!Array.isArray(a))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof a}\``);let s=Math.max(a.length,t.length);return Array.from({length:s},(o,f)=>a[f])};r.exports=i,r.exports.node=c=>{let a=i(c);return a==="ipc"?"ipc":a===void 0||typeof a=="string"?[a,a,a,"ipc"]:a.includes("ipc")?a:[...a,"ipc"]}}),q3=ee((e,r)=>{"use strict";K();var t=le("os"),n=Ps(),i=1e3*5,c=(y,b="SIGTERM",_={})=>{let g=y(b);return a(y,b,_,g),g},a=(y,b,_,g)=>{if(!s(b,_,g))return;let S=f(_),E=setTimeout(()=>{y("SIGKILL")},S);E.unref&&E.unref()},s=(y,{forceKillAfterTimeout:b},_)=>o(y)&&b!==!1&&_,o=y=>y===t.constants.signals.SIGTERM||typeof y=="string"&&y.toUpperCase()==="SIGTERM",f=({forceKillAfterTimeout:y=!0})=>{if(y===!0)return i;if(!Number.isFinite(y)||y<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`);return y},l=(y,b)=>{y.kill()&&(b.isCanceled=!0)},h=(y,b,_)=>{y.kill(b),_(Object.assign(new Error("Timed out"),{timedOut:!0,signal:b}))},u=(y,{timeout:b,killSignal:_="SIGTERM"},g)=>{if(b===0||b===void 0)return g;let S,E=new Promise((m,w)=>{S=setTimeout(()=>{h(y,_,w)},b)}),v=g.finally(()=>{clearTimeout(S)});return Promise.race([E,v])},d=({timeout:y})=>{if(y!==void 0&&(!Number.isFinite(y)||y<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${y}\` (${typeof y})`)},p=async(y,{cleanup:b,detached:_},g)=>{if(!b||_)return g;let S=n(()=>{y.kill()});return g.finally(()=>{S()})};r.exports={spawnedKill:c,spawnedCancel:l,setupTimeout:u,validateTimeout:d,setExitHandler:p}}),G3=ee((e,r)=>{"use strict";K();var t=n=>n!==null&&typeof n=="object"&&typeof n.pipe=="function";t.writable=n=>t(n)&&n.writable!==!1&&typeof n._write=="function"&&typeof n._writableState=="object",t.readable=n=>t(n)&&n.readable!==!1&&typeof n._read=="function"&&typeof n._readableState=="object",t.duplex=n=>t.writable(n)&&t.readable(n),t.transform=n=>t.duplex(n)&&typeof n._transform=="function",r.exports=t}),z3=ee((e,r)=>{"use strict";K();var{PassThrough:t}=le("stream");r.exports=n=>{n={...n};let{array:i}=n,{encoding:c}=n,a=c==="buffer",s=!1;i?s=!(c||a):c=c||"utf8",a&&(c=null);let o=new t({objectMode:s});c&&o.setEncoding(c);let f=0,l=[];return o.on("data",h=>{l.push(h),s?f=l.length:f+=h.length}),o.getBufferedValue=()=>i?l:a?Buffer.concat(l,f):l.join(""),o.getBufferedLength=()=>f,o}}),W3=ee((e,r)=>{"use strict";K();var{constants:t}=le("buffer"),n=le("stream"),{promisify:i}=le("util"),c=z3(),a=i(n.pipeline),s=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function o(f,l){if(!f)throw new Error("Expected a stream");l={maxBuffer:1/0,...l};let{maxBuffer:h}=l,u=c(l);return await new Promise((d,p)=>{let y=b=>{b&&u.getBufferedLength()<=t.MAX_LENGTH&&(b.bufferedData=u.getBufferedValue()),p(b)};(async()=>{try{await a(f,u),d()}catch(b){y(b)}})(),u.on("data",()=>{u.getBufferedLength()>h&&y(new s)})}),u.getBufferedValue()}r.exports=o,r.exports.buffer=(f,l)=>o(f,{...l,encoding:"buffer"}),r.exports.array=(f,l)=>o(f,{...l,array:!0}),r.exports.MaxBufferError=s}),V3=ee((e,r)=>{"use strict";K();var{PassThrough:t}=le("stream");r.exports=function(){var n=[],i=new t({objectMode:!0});return i.setMaxListeners(0),i.add=c,i.isEmpty=a,i.on("unpipe",s),Array.prototype.slice.call(arguments).forEach(c),i;function c(o){return Array.isArray(o)?(o.forEach(c),this):(n.push(o),o.once("end",s.bind(null,o)),o.once("error",i.emit.bind(i,"error")),o.pipe(i,{end:!1}),this)}function a(){return n.length==0}function s(o){n=n.filter(function(f){return f!==o}),!n.length&&i.readable&&i.end()}}}),Y3=ee((e,r)=>{"use strict";K();var t=G3(),n=W3(),i=V3(),c=(h,u)=>{u===void 0||h.stdin===void 0||(t(u)?u.pipe(h.stdin):h.stdin.end(u))},a=(h,{all:u})=>{if(!u||!h.stdout&&!h.stderr)return;let d=i();return h.stdout&&d.add(h.stdout),h.stderr&&d.add(h.stderr),d},s=async(h,u)=>{if(h){h.destroy();try{return await u}catch(d){return d.bufferedData}}},o=(h,{encoding:u,buffer:d,maxBuffer:p})=>{if(!(!h||!d))return u?n(h,{encoding:u,maxBuffer:p}):n.buffer(h,{maxBuffer:p})},f=async({stdout:h,stderr:u,all:d},{encoding:p,buffer:y,maxBuffer:b},_)=>{let g=o(h,{encoding:p,buffer:y,maxBuffer:b}),S=o(u,{encoding:p,buffer:y,maxBuffer:b}),E=o(d,{encoding:p,buffer:y,maxBuffer:b*2});try{return await Promise.all([_,g,S,E])}catch(v){return Promise.all([{error:v,signal:v.signal,timedOut:v.timedOut},s(h,g),s(u,S),s(d,E)])}},l=({input:h})=>{if(t(h))throw new TypeError("The `input` option cannot be a stream in sync mode")};r.exports={handleInput:c,makeAllStream:a,getSpawnedResult:f,validateInputSync:l}}),K3=ee((e,r)=>{"use strict";K();var t=(async()=>{})().constructor.prototype,n=["then","catch","finally"].map(a=>[a,Reflect.getOwnPropertyDescriptor(t,a)]),i=(a,s)=>{for(let[o,f]of n){let l=typeof s=="function"?(...h)=>Reflect.apply(f.value,s(),h):f.value.bind(s);Reflect.defineProperty(a,o,{...f,value:l})}return a},c=a=>new Promise((s,o)=>{a.on("exit",(f,l)=>{s({exitCode:f,signal:l})}),a.on("error",f=>{o(f)}),a.stdin&&a.stdin.on("error",f=>{o(f)})});r.exports={mergePromise:i,getSpawnedPromise:c}}),X3=ee((e,r)=>{"use strict";K();var t=(l,h=[])=>Array.isArray(h)?[l,...h]:[l],n=/^[\w.-]+$/,i=/"/g,c=l=>typeof l!="string"||n.test(l)?l:`"${l.replace(i,'\\"')}"`,a=(l,h)=>t(l,h).join(" "),s=(l,h)=>t(l,h).map(u=>c(u)).join(" "),o=/ +/g,f=l=>{let h=[];for(let u of l.trim().split(o)){let d=h[h.length-1];d&&d.endsWith("\\")?h[h.length-1]=`${d.slice(0,-1)} ${u}`:h.push(u)}return h};r.exports={joinCommand:a,getEscapedCommand:s,parseCommand:f}}),Z3=ee((e,r)=>{"use strict";K();var t=le("path"),n=le("child_process"),i=I3(),c=L3(),a=M3(),s=Fs(),o=H3(),f=U3(),{spawnedKill:l,spawnedCancel:h,setupTimeout:u,validateTimeout:d,setExitHandler:p}=q3(),{handleInput:y,getSpawnedResult:b,makeAllStream:_,validateInputSync:g}=Y3(),{mergePromise:S,getSpawnedPromise:E}=K3(),{joinCommand:v,parseCommand:m,getEscapedCommand:w}=X3(),A=1e3*1e3*100,x=({env:O,extendEnv:D,preferLocal:k,localDir:L,execPath:I})=>{let H=D?{...process.env,...O}:O;return k?a.env({env:H,cwd:L,execPath:I}):H},R=(O,D,k={})=>{let L=i._parse(O,D,k);return O=L.command,D=L.args,k=L.options,k={maxBuffer:A,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:k.cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...k},k.env=x(k),k.stdio=f(k),process.platform==="win32"&&t.basename(O,".exe")==="cmd"&&D.unshift("/q"),{file:O,args:D,options:k,parsed:L}},P=(O,D,k)=>typeof D!="string"&&!Buffer.isBuffer(D)?k===void 0?void 0:"":O.stripFinalNewline?c(D):D,F=(O,D,k)=>{let L=R(O,D,k),I=v(O,D),H=w(O,D);d(L.options);let z;try{z=n.spawn(L.file,L.args,L.options)}catch(U){let Q=new n.ChildProcess,N=Promise.reject(o({error:U,stdout:"",stderr:"",all:"",command:I,escapedCommand:H,parsed:L,timedOut:!1,isCanceled:!1,killed:!1}));return S(Q,N)}let re=E(z),B=u(z,L.options,re),M=p(z,L.options,B),T={isCanceled:!1};z.kill=l.bind(null,z.kill.bind(z)),z.cancel=h.bind(null,z,T);let Y=s(async()=>{let[{error:U,exitCode:Q,signal:N,timedOut:W},J,ae,oe]=await b(z,L.options,M),de=P(L.options,J),pe=P(L.options,ae),j=P(L.options,oe);if(U||Q!==0||N!==null){let G=o({error:U,exitCode:Q,signal:N,stdout:de,stderr:pe,all:j,command:I,escapedCommand:H,parsed:L,timedOut:W,isCanceled:T.isCanceled,killed:z.killed});if(!L.options.reject)return G;throw G}return{command:I,escapedCommand:H,exitCode:0,stdout:de,stderr:pe,all:j,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return y(z,L.options.input),z.all=_(z,L.options),S(z,Y)};r.exports=F,r.exports.sync=(O,D,k)=>{let L=R(O,D,k),I=v(O,D),H=w(O,D);g(L.options);let z;try{z=n.spawnSync(L.file,L.args,L.options)}catch(M){throw o({error:M,stdout:"",stderr:"",all:"",command:I,escapedCommand:H,parsed:L,timedOut:!1,isCanceled:!1,killed:!1})}let re=P(L.options,z.stdout,z.error),B=P(L.options,z.stderr,z.error);if(z.error||z.status!==0||z.signal!==null){let M=o({stdout:re,stderr:B,error:z.error,signal:z.signal,exitCode:z.status,command:I,escapedCommand:H,parsed:L,timedOut:z.error&&z.error.code==="ETIMEDOUT",isCanceled:!1,killed:z.signal!==null});if(!L.options.reject)return M;throw M}return{command:I,escapedCommand:H,exitCode:0,stdout:re,stderr:B,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},r.exports.command=(O,D)=>{let[k,...L]=m(O);return F(k,L,D)},r.exports.commandSync=(O,D)=>{let[k,...L]=m(O);return F.sync(k,L,D)},r.exports.node=(O,D,k={})=>{D&&!Array.isArray(D)&&typeof D=="object"&&(k=D,D=[]);let L=f.node(k),I=process.execArgv.filter(re=>!re.startsWith("--inspect")),{nodePath:H=process.execPath,nodeOptions:z=I}=k;return F(H,[...z,O,...Array.isArray(D)?D:[]],{...k,stdin:void 0,stdout:void 0,stderr:void 0,stdio:L,shell:!1})}});K();var J3=je(Z3());async function vn(e,r=[],t){let n={cwd:y1.default.tmpdir(),env:{COREPACK_ENABLE_STRICT:"0"},...t};try{let{stdout:i}=await(0,J3.default)(e,r,n);return i.trim()}catch{return}}async function vl(){let[e,r,t]=await Promise.all([vn("yarnpkg",["--version"]),vn("npm",["--version"]),vn("pnpm",["--version"])]);return{yarn:e,pnpm:t,npm:r}}async function _l(){let[e,r,t]=await Promise.all([vn("yarnpkg",["global","bin"]),vn("npm",["config","get","prefix"]),vn("pnpm",["bin","--global"])]);return{yarn:e,pnpm:t,npm:r}}K();var i$=je(fr()),s$=je(Tr());K();K();var eP=ee((e,r)=>{K();function t(n){return r.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},r.exports.__esModule=!0,r.exports.default=r.exports,t(n)}r.exports=t,r.exports.__esModule=!0,r.exports.default=r.exports}),tP=ee((e,r)=>{K();var t=eP().default;function n(){"use strict";r.exports=n=function(){return i},r.exports.__esModule=!0,r.exports.default=r.exports;var i={},c=Object.prototype,a=c.hasOwnProperty,s=typeof Symbol=="function"?Symbol:{},o=s.iterator||"@@iterator",f=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(D,k,L){return Object.defineProperty(D,k,{value:L,enumerable:!0,configurable:!0,writable:!0}),D[k]}try{h({},"")}catch{h=function(D,k,L){return D[k]=L}}function u(D,k,L,I){var H=k&&k.prototype instanceof y?k:y,z=Object.create(H.prototype),re=new P(I||[]);return z._invoke=function(B,M,T){var Y="suspendedStart";return function(U,Q){if(Y==="executing")throw new Error("Generator is already running");if(Y==="completed"){if(U==="throw")throw Q;return O()}for(T.method=U,T.arg=Q;;){var N=T.delegate;if(N){var W=A(N,T);if(W){if(W===p)continue;return W}}if(T.method==="next")T.sent=T._sent=T.arg;else if(T.method==="throw"){if(Y==="suspendedStart")throw Y="completed",T.arg;T.dispatchException(T.arg)}else T.method==="return"&&T.abrupt("return",T.arg);Y="executing";var J=d(B,M,T);if(J.type==="normal"){if(Y=T.done?"completed":"suspendedYield",J.arg===p)continue;return{value:J.arg,done:T.done}}J.type==="throw"&&(Y="completed",T.method="throw",T.arg=J.arg)}}}(D,L,re),z}function d(D,k,L){try{return{type:"normal",arg:D.call(k,L)}}catch(I){return{type:"throw",arg:I}}}i.wrap=u;var p={};function y(){}function b(){}function _(){}var g={};h(g,o,function(){return this});var S=Object.getPrototypeOf,E=S&&S(S(F([])));E&&E!==c&&a.call(E,o)&&(g=E);var v=_.prototype=y.prototype=Object.create(g);function m(D){["next","throw","return"].forEach(function(k){h(D,k,function(L){return this._invoke(k,L)})})}function w(D,k){function L(H,z,re,B){var M=d(D[H],D,z);if(M.type!=="throw"){var T=M.arg,Y=T.value;return Y&&t(Y)=="object"&&a.call(Y,"__await")?k.resolve(Y.__await).then(function(U){L("next",U,re,B)},function(U){L("throw",U,re,B)}):k.resolve(Y).then(function(U){T.value=U,re(T)},function(U){return L("throw",U,re,B)})}B(M.arg)}var I;this._invoke=function(H,z){function re(){return new k(function(B,M){L(H,z,B,M)})}return I=I?I.then(re,re):re()}}function A(D,k){var L=D.iterator[k.method];if(L===void 0){if(k.delegate=null,k.method==="throw"){if(D.iterator.return&&(k.method="return",k.arg=void 0,A(D,k),k.method==="throw"))return p;k.method="throw",k.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var I=d(L,D.iterator,k.arg);if(I.type==="throw")return k.method="throw",k.arg=I.arg,k.delegate=null,p;var H=I.arg;return H?H.done?(k[D.resultName]=H.value,k.next=D.nextLoc,k.method!=="return"&&(k.method="next",k.arg=void 0),k.delegate=null,p):H:(k.method="throw",k.arg=new TypeError("iterator result is not an object"),k.delegate=null,p)}function x(D){var k={tryLoc:D[0]};1 in D&&(k.catchLoc=D[1]),2 in D&&(k.finallyLoc=D[2],k.afterLoc=D[3]),this.tryEntries.push(k)}function R(D){var k=D.completion||{};k.type="normal",delete k.arg,D.completion=k}function P(D){this.tryEntries=[{tryLoc:"root"}],D.forEach(x,this),this.reset(!0)}function F(D){if(D){var k=D[o];if(k)return k.call(D);if(typeof D.next=="function")return D;if(!isNaN(D.length)){var L=-1,I=function H(){for(;++L<D.length;)if(a.call(D,L))return H.value=D[L],H.done=!1,H;return H.value=void 0,H.done=!0,H};return I.next=I}}return{next:O}}function O(){return{value:void 0,done:!0}}return b.prototype=_,h(v,"constructor",_),h(_,"constructor",b),b.displayName=h(_,l,"GeneratorFunction"),i.isGeneratorFunction=function(D){var k=typeof D=="function"&&D.constructor;return!!k&&(k===b||(k.displayName||k.name)==="GeneratorFunction")},i.mark=function(D){return Object.setPrototypeOf?Object.setPrototypeOf(D,_):(D.__proto__=_,h(D,l,"GeneratorFunction")),D.prototype=Object.create(v),D},i.awrap=function(D){return{__await:D}},m(w.prototype),h(w.prototype,f,function(){return this}),i.AsyncIterator=w,i.async=function(D,k,L,I,H){H===void 0&&(H=Promise);var z=new w(u(D,k,L,I),H);return i.isGeneratorFunction(k)?z:z.next().then(function(re){return re.done?re.value:z.next()})},m(v),h(v,l,"Generator"),h(v,o,function(){return this}),h(v,"toString",function(){return"[object Generator]"}),i.keys=function(D){var k=[];for(var L in D)k.push(L);return k.reverse(),function I(){for(;k.length;){var H=k.pop();if(H in D)return I.value=H,I.done=!1,I}return I.done=!0,I}},i.values=F,P.prototype={constructor:P,reset:function(D){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(R),!D)for(var k in this)k.charAt(0)==="t"&&a.call(this,k)&&!isNaN(+k.slice(1))&&(this[k]=void 0)},stop:function(){this.done=!0;var D=this.tryEntries[0].completion;if(D.type==="throw")throw D.arg;return this.rval},dispatchException:function(D){if(this.done)throw D;var k=this;function L(M,T){return z.type="throw",z.arg=D,k.next=M,T&&(k.method="next",k.arg=void 0),!!T}for(var I=this.tryEntries.length-1;I>=0;--I){var H=this.tryEntries[I],z=H.completion;if(H.tryLoc==="root")return L("end");if(H.tryLoc<=this.prev){var re=a.call(H,"catchLoc"),B=a.call(H,"finallyLoc");if(re&&B){if(this.prev<H.catchLoc)return L(H.catchLoc,!0);if(this.prev<H.finallyLoc)return L(H.finallyLoc)}else if(re){if(this.prev<H.catchLoc)return L(H.catchLoc,!0)}else{if(!B)throw new Error("try statement without catch or finally");if(this.prev<H.finallyLoc)return L(H.finallyLoc)}}}},abrupt:function(D,k){for(var L=this.tryEntries.length-1;L>=0;--L){var I=this.tryEntries[L];if(I.tryLoc<=this.prev&&a.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var H=I;break}}H&&(D==="break"||D==="continue")&&H.tryLoc<=k&&k<=H.finallyLoc&&(H=null);var z=H?H.completion:{};return z.type=D,z.arg=k,H?(this.method="next",this.next=H.finallyLoc,p):this.complete(z)},complete:function(D,k){if(D.type==="throw")throw D.arg;return D.type==="break"||D.type==="continue"?this.next=D.arg:D.type==="return"?(this.rval=this.arg=D.arg,this.method="return",this.next="end"):D.type==="normal"&&k&&(this.next=k),p},finish:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var L=this.tryEntries[k];if(L.finallyLoc===D)return this.complete(L.completion,L.afterLoc),R(L),p}},catch:function(D){for(var k=this.tryEntries.length-1;k>=0;--k){var L=this.tryEntries[k];if(L.tryLoc===D){var I=L.completion;if(I.type==="throw"){var H=I.arg;R(L)}return H}}throw new Error("illegal catch attempt")},delegateYield:function(D,k,L){return this.delegate={iterator:F(D),resultName:k,nextLoc:L},this.method==="next"&&(this.arg=void 0),p}},i}r.exports=n,r.exports.__esModule=!0,r.exports.default=r.exports}),rP=ee((e,r)=>{K();var t=tP()();r.exports=t;try{regeneratorRuntime=t}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}),nP=ee((e,r)=>{"use strict";K();var t=(n,...i)=>new Promise(c=>{c(n(...i))});r.exports=t,r.exports.default=t}),iP=ee((e,r)=>{"use strict";K();var t=nP(),n=i=>{if(!((Number.isInteger(i)||i===1/0)&&i>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));let c=[],a=0,s=()=>{a--,c.length>0&&c.shift()()},o=(h,u,...d)=>{a++;let p=t(h,...d);u(p),p.then(s,s)},f=(h,u,...d)=>{a<i?o(h,u,...d):c.push(o.bind(null,h,u,...d))},l=(h,...u)=>new Promise(d=>f(h,d,...u));return Object.defineProperties(l,{activeCount:{get:()=>a},pendingCount:{get:()=>c.length},clearQueue:{value:()=>{c.length=0}}}),l};r.exports=n,r.exports.default=n}),sP=ee((e,r)=>{"use strict";K();var t=iP(),n=class extends Error{constructor(s){super(),this.value=s}},i=async(s,o)=>o(await s),c=async s=>{let o=await Promise.all(s);if(o[1]===!0)throw new n(o[0]);return!1},a=async(s,o,f)=>{f={concurrency:1/0,preserveOrder:!0,...f};let l=t(f.concurrency),h=[...s].map(d=>[d,l(i,d,o)]),u=t(f.preserveOrder?1:1/0);try{await Promise.all(h.map(d=>u(c,d)))}catch(d){if(d instanceof n)return d.value;throw d}};r.exports=a,r.exports.default=a}),oP=ee((e,r)=>{"use strict";K();var t=le("path"),n=le("fs"),{promisify:i}=le("util"),c=sP(),a=i(n.stat),s=i(n.lstat),o={directory:"isDirectory",file:"isFile"};function f({type:h}){if(!(h in o))throw new Error(`Invalid type specified: ${h}`)}var l=(h,u)=>h===void 0||u[o[h]]();r.exports=async(h,u)=>{u={cwd:process.cwd(),type:"file",allowSymlinks:!0,...u},f(u);let d=u.allowSymlinks?a:s;return c(h,async p=>{try{let y=await d(t.resolve(u.cwd,p));return l(u.type,y)}catch{return!1}},u)},r.exports.sync=(h,u)=>{u={cwd:process.cwd(),allowSymlinks:!0,type:"file",...u},f(u);let d=u.allowSymlinks?n.statSync:n.lstatSync;for(let p of h)try{let y=d(t.resolve(u.cwd,p));if(l(u.type,y))return p}catch{}}}),aP=ee((e,r)=>{"use strict";K();var t=le("fs"),{promisify:n}=le("util"),i=n(t.access);r.exports=async c=>{try{return await i(c),!0}catch{return!1}},r.exports.sync=c=>{try{return t.accessSync(c),!0}catch{return!1}}}),uP=ee((e,r)=>{"use strict";K();var t=le("path"),n=oP(),i=aP(),c=Symbol("findUp.stop");r.exports=async(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=async u=>{if(typeof a!="function")return n(l,u);let d=await a(u.cwd);return typeof d=="string"?n([d],u):d};for(;;){let u=await h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.sync=(a,s={})=>{let o=t.resolve(s.cwd||""),{root:f}=t.parse(o),l=[].concat(a),h=u=>{if(typeof a!="function")return n.sync(l,u);let d=a(u.cwd);return typeof d=="string"?n.sync([d],u):d};for(;;){let u=h({...s,cwd:o});if(u===c)return;if(u)return t.resolve(o,u);if(o===f)return;o=t.dirname(o)}},r.exports.exists=i,r.exports.sync.exists=i.sync,r.exports.stop=c}),vt=ee(e=>{"use strict";K(),e.fromCallback=function(r){return Object.defineProperty(function(){if(typeof arguments[arguments.length-1]=="function")r.apply(this,arguments);else return new Promise((t,n)=>{arguments[arguments.length]=(i,c)=>{if(i)return n(i);t(c)},arguments.length++,r.apply(this,arguments)})},"name",{value:r.name})},e.fromPromise=function(r){return Object.defineProperty(function(){let t=arguments[arguments.length-1];if(typeof t!="function")return r.apply(this,arguments);r.apply(this,arguments).then(n=>t(null,n),t)},"name",{value:r.name})}}),g1=ee(e=>{"use strict";K();var r=vt().fromCallback,t=Le(),n=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchown","lchmod","link","lstat","mkdir","mkdtemp","open","readFile","readdir","readlink","realpath","rename","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(i=>typeof t[i]=="function");Object.keys(t).forEach(i=>{i!=="promises"&&(e[i]=t[i])}),n.forEach(i=>{e[i]=r(t[i])}),e.exists=function(i,c){return typeof c=="function"?t.exists(i,c):new Promise(a=>t.exists(i,a))},e.read=function(i,c,a,s,o,f){return typeof f=="function"?t.read(i,c,a,s,o,f):new Promise((l,h)=>{t.read(i,c,a,s,o,(u,d,p)=>{if(u)return h(u);l({bytesRead:d,buffer:p})})})},e.write=function(i,c,...a){return typeof a[a.length-1]=="function"?t.write(i,c,...a):new Promise((s,o)=>{t.write(i,c,...a,(f,l,h)=>{if(f)return o(f);s({bytesWritten:l,buffer:h})})})},typeof t.realpath.native=="function"&&(e.realpath.native=r(t.realpath.native))}),b1=ee((e,r)=>{"use strict";K();var t=le("path");function n(a){return a=t.normalize(t.resolve(a)).split(t.sep),a.length>0?a[0]:null}var i=/[<>:"|?*]/;function c(a){let s=n(a);return a=a.replace(s,""),i.test(a)}r.exports={getRootPath:n,invalidWin32Path:c}}),lP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=b1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f,l){if(typeof o=="function"?(f=o,o={}):(!o||typeof o!="object")&&(o={mode:o}),process.platform==="win32"&&i(s)){let d=new Error(s+" contains invalid WIN32 path characters.");return d.code="EINVAL",f(d)}let h=o.mode,u=o.fs||t;h===void 0&&(h=c&~process.umask()),l||(l=null),f=f||function(){},s=n.resolve(s),u.mkdir(s,h,d=>{if(!d)return l=l||s,f(null,l);switch(d.code){case"ENOENT":if(n.dirname(s)===s)return f(d);a(n.dirname(s),o,(p,y)=>{p?f(p,y):a(s,o,f,y)});break;default:u.stat(s,(p,y)=>{p||!y.isDirectory()?f(d,l):f(null,l)});break}})}r.exports=a}),cP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=b1().invalidWin32Path,c=parseInt("0777",8);function a(s,o,f){(!o||typeof o!="object")&&(o={mode:o});let l=o.mode,h=o.fs||t;if(process.platform==="win32"&&i(s)){let u=new Error(s+" contains invalid WIN32 path characters.");throw u.code="EINVAL",u}l===void 0&&(l=c&~process.umask()),f||(f=null),s=n.resolve(s);try{h.mkdirSync(s,l),f=f||s}catch(u){if(u.code==="ENOENT"){if(n.dirname(s)===s)throw u;f=a(n.dirname(s),o,f),a(s,o,f)}else{let d;try{d=h.statSync(s)}catch{throw u}if(!d.isDirectory())throw u}}return f}r.exports=a}),St=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=t(lP()),i=cP();r.exports={mkdirs:n,mkdirsSync:i,mkdirp:n,mkdirpSync:i,ensureDir:n,ensureDirSync:i}}),v1=ee((e,r)=>{"use strict";K();var t=Le(),n=le("os"),i=le("path");function c(){let l=i.join("millis-test-sync"+Date.now().toString()+Math.random().toString().slice(2));l=i.join(n.tmpdir(),l);let h=new Date(1435410243862);t.writeFileSync(l,"https://github.com/jprichardson/node-fs-extra/pull/141");let u=t.openSync(l,"r+");return t.futimesSync(u,h,h),t.closeSync(u),t.statSync(l).mtime>1435410243e3}function a(l){let h=i.join("millis-test"+Date.now().toString()+Math.random().toString().slice(2));h=i.join(n.tmpdir(),h);let u=new Date(1435410243862);t.writeFile(h,"https://github.com/jprichardson/node-fs-extra/pull/141",d=>{if(d)return l(d);t.open(h,"r+",(p,y)=>{if(p)return l(p);t.futimes(y,u,u,b=>{if(b)return l(b);t.close(y,_=>{if(_)return l(_);t.stat(h,(g,S)=>{if(g)return l(g);l(null,S.mtime>1435410243e3)})})})})})}function s(l){if(typeof l=="number")return Math.floor(l/1e3)*1e3;if(l instanceof Date)return new Date(Math.floor(l.getTime()/1e3)*1e3);throw new Error("fs-extra: timeRemoveMillis() unknown parameter type")}function o(l,h,u,d){t.open(l,"r+",(p,y)=>{if(p)return d(p);t.futimes(y,h,u,b=>{t.close(y,_=>{d&&d(b||_)})})})}function f(l,h,u){let d=t.openSync(l,"r+");return t.futimesSync(d,h,u),t.closeSync(d)}r.exports={hasMillisRes:a,hasMillisResSync:c,timeRemoveMillis:s,utimesMillis:o,utimesMillisSync:f}}),$s=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=10,c=5,a=0,s=process.versions.node.split("."),o=Number.parseInt(s[0],10),f=Number.parseInt(s[1],10),l=Number.parseInt(s[2],10);function h(){return o>i||o===i&&(f>c||f===c&&l>=a)}function u(E,v,m){h()?t.stat(E,{bigint:!0},(w,A)=>{if(w)return m(w);t.stat(v,{bigint:!0},(x,R)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:R}))}):t.stat(E,(w,A)=>{if(w)return m(w);t.stat(v,(x,R)=>x?x.code==="ENOENT"?m(null,{srcStat:A,destStat:null}):m(x):m(null,{srcStat:A,destStat:R}))})}function d(E,v){let m,w;h()?m=t.statSync(E,{bigint:!0}):m=t.statSync(E);try{h()?w=t.statSync(v,{bigint:!0}):w=t.statSync(v)}catch(A){if(A.code==="ENOENT")return{srcStat:m,destStat:null};throw A}return{srcStat:m,destStat:w}}function p(E,v,m,w){u(E,v,(A,x)=>{if(A)return w(A);let{srcStat:R,destStat:P}=x;return P&&P.ino&&P.dev&&P.ino===R.ino&&P.dev===R.dev?w(new Error("Source and destination must not be the same.")):R.isDirectory()&&g(E,v)?w(new Error(S(E,v,m))):w(null,{srcStat:R,destStat:P})})}function y(E,v,m){let{srcStat:w,destStat:A}=d(E,v);if(A&&A.ino&&A.dev&&A.ino===w.ino&&A.dev===w.dev)throw new Error("Source and destination must not be the same.");if(w.isDirectory()&&g(E,v))throw new Error(S(E,v,m));return{srcStat:w,destStat:A}}function b(E,v,m,w,A){let x=n.resolve(n.dirname(E)),R=n.resolve(n.dirname(m));if(R===x||R===n.parse(R).root)return A();h()?t.stat(R,{bigint:!0},(P,F)=>P?P.code==="ENOENT"?A():A(P):F.ino&&F.dev&&F.ino===v.ino&&F.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,R,w,A)):t.stat(R,(P,F)=>P?P.code==="ENOENT"?A():A(P):F.ino&&F.dev&&F.ino===v.ino&&F.dev===v.dev?A(new Error(S(E,m,w))):b(E,v,R,w,A))}function _(E,v,m,w){let A=n.resolve(n.dirname(E)),x=n.resolve(n.dirname(m));if(x===A||x===n.parse(x).root)return;let R;try{h()?R=t.statSync(x,{bigint:!0}):R=t.statSync(x)}catch(P){if(P.code==="ENOENT")return;throw P}if(R.ino&&R.dev&&R.ino===v.ino&&R.dev===v.dev)throw new Error(S(E,m,w));return _(E,v,x,w)}function g(E,v){let m=n.resolve(E).split(n.sep).filter(A=>A),w=n.resolve(v).split(n.sep).filter(A=>A);return m.reduce((A,x,R)=>A&&w[R]===x,!0)}function S(E,v,m){return`Cannot ${m} '${E}' to a subdirectory of itself, '${v}'.`}r.exports={checkPaths:p,checkPathsSync:y,checkParentPaths:b,checkParentPathsSync:_,isSrcSubdir:g}}),hP=ee((e,r)=>{"use strict";K(),r.exports=function(t){if(typeof Buffer.allocUnsafe=="function")try{return Buffer.allocUnsafe(t)}catch{return new Buffer(t)}return new Buffer(t)}}),fP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=St().mkdirsSync,c=v1().utimesMillisSync,a=$s();function s(v,m,w){typeof w=="function"&&(w={filter:w}),w=w||{},w.clobber="clobber"in w?!!w.clobber:!0,w.overwrite="overwrite"in w?!!w.overwrite:w.clobber,w.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
146
|
+
|
147
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:A,destStat:x}=a.checkPathsSync(v,m,"copy");return a.checkParentPathsSync(v,A,m,"copy"),o(x,v,m,w)}function o(v,m,w,A){if(A.filter&&!A.filter(m,w))return;let x=n.dirname(w);return t.existsSync(x)||i(x),f(v,m,w,A)}function f(v,m,w,A){if(!(A.filter&&!A.filter(m,w)))return l(v,m,w,A)}function l(v,m,w,A){let x=(A.dereference?t.statSync:t.lstatSync)(m);if(x.isDirectory())return y(x,v,m,w,A);if(x.isFile()||x.isCharacterDevice()||x.isBlockDevice())return h(x,v,m,w,A);if(x.isSymbolicLink())return S(v,m,w,A)}function h(v,m,w,A,x){return m?u(v,w,A,x):d(v,w,A,x)}function u(v,m,w,A){if(A.overwrite)return t.unlinkSync(w),d(v,m,w,A);if(A.errorOnExist)throw new Error(`'${w}' already exists`)}function d(v,m,w,A){return typeof t.copyFileSync=="function"?(t.copyFileSync(m,w),t.chmodSync(w,v.mode),A.preserveTimestamps?c(w,v.atime,v.mtime):void 0):p(v,m,w,A)}function p(v,m,w,A){let x=hP()(65536),R=t.openSync(m,"r"),P=t.openSync(w,"w",v.mode),F=0;for(;F<v.size;){let O=t.readSync(R,x,0,65536,F);t.writeSync(P,x,0,O),F+=O}A.preserveTimestamps&&t.futimesSync(P,v.atime,v.mtime),t.closeSync(R),t.closeSync(P)}function y(v,m,w,A,x){if(!m)return b(v,w,A,x);if(m&&!m.isDirectory())throw new Error(`Cannot overwrite non-directory '${A}' with directory '${w}'.`);return _(w,A,x)}function b(v,m,w,A){return t.mkdirSync(w),_(m,w,A),t.chmodSync(w,v.mode)}function _(v,m,w){t.readdirSync(v).forEach(A=>g(A,v,m,w))}function g(v,m,w,A){let x=n.join(m,v),R=n.join(w,v),{destStat:P}=a.checkPathsSync(x,R,"copy");return f(P,x,R,A)}function S(v,m,w,A){let x=t.readlinkSync(m);if(A.dereference&&(x=n.resolve(process.cwd(),x)),v){let R;try{R=t.readlinkSync(w)}catch(P){if(P.code==="EINVAL"||P.code==="UNKNOWN")return t.symlinkSync(x,w);throw P}if(A.dereference&&(R=n.resolve(process.cwd(),R)),a.isSrcSubdir(x,R))throw new Error(`Cannot copy '${x}' to a subdirectory of itself, '${R}'.`);if(t.statSync(w).isDirectory()&&a.isSrcSubdir(R,x))throw new Error(`Cannot overwrite '${R}' with '${x}'.`);return E(x,w)}else return t.symlinkSync(x,w)}function E(v,m){return t.unlinkSync(m),t.symlinkSync(v,m)}r.exports=s}),_1=ee((e,r)=>{"use strict";K(),r.exports={copySync:fP()}}),Yt=ee((e,r)=>{"use strict";K();var t=vt().fromPromise,n=g1();function i(c){return n.access(c).then(()=>!0).catch(()=>!1)}r.exports={pathExists:t(i),pathExistsSync:n.existsSync}}),pP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=St().mkdirs,c=Yt().pathExists,a=v1().utimesMillis,s=$s();function o(x,R,P,F){typeof P=="function"&&!F?(F=P,P={}):typeof P=="function"&&(P={filter:P}),F=F||function(){},P=P||{},P.clobber="clobber"in P?!!P.clobber:!0,P.overwrite="overwrite"in P?!!P.overwrite:P.clobber,P.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
148
|
+
|
149
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),s.checkPaths(x,R,"copy",(O,D)=>{if(O)return F(O);let{srcStat:k,destStat:L}=D;s.checkParentPaths(x,k,R,"copy",I=>I?F(I):P.filter?l(f,L,x,R,P,F):f(L,x,R,P,F))})}function f(x,R,P,F,O){let D=n.dirname(P);c(D,(k,L)=>{if(k)return O(k);if(L)return h(x,R,P,F,O);i(D,I=>I?O(I):h(x,R,P,F,O))})}function l(x,R,P,F,O,D){Promise.resolve(O.filter(P,F)).then(k=>k?x(R,P,F,O,D):D(),k=>D(k))}function h(x,R,P,F,O){return F.filter?l(u,x,R,P,F,O):u(x,R,P,F,O)}function u(x,R,P,F,O){(F.dereference?t.stat:t.lstat)(R,(D,k)=>{if(D)return O(D);if(k.isDirectory())return g(k,x,R,P,F,O);if(k.isFile()||k.isCharacterDevice()||k.isBlockDevice())return d(k,x,R,P,F,O);if(k.isSymbolicLink())return w(x,R,P,F,O)})}function d(x,R,P,F,O,D){return R?p(x,P,F,O,D):y(x,P,F,O,D)}function p(x,R,P,F,O){if(F.overwrite)t.unlink(P,D=>D?O(D):y(x,R,P,F,O));else return F.errorOnExist?O(new Error(`'${P}' already exists`)):O()}function y(x,R,P,F,O){return typeof t.copyFile=="function"?t.copyFile(R,P,D=>D?O(D):_(x,P,F,O)):b(x,R,P,F,O)}function b(x,R,P,F,O){let D=t.createReadStream(R);D.on("error",k=>O(k)).once("open",()=>{let k=t.createWriteStream(P,{mode:x.mode});k.on("error",L=>O(L)).on("open",()=>D.pipe(k)).once("close",()=>_(x,P,F,O))})}function _(x,R,P,F){t.chmod(R,x.mode,O=>O?F(O):P.preserveTimestamps?a(R,x.atime,x.mtime,F):F())}function g(x,R,P,F,O,D){return R?R&&!R.isDirectory()?D(new Error(`Cannot overwrite non-directory '${F}' with directory '${P}'.`)):E(P,F,O,D):S(x,P,F,O,D)}function S(x,R,P,F,O){t.mkdir(P,D=>{if(D)return O(D);E(R,P,F,k=>k?O(k):t.chmod(P,x.mode,O))})}function E(x,R,P,F){t.readdir(x,(O,D)=>O?F(O):v(D,x,R,P,F))}function v(x,R,P,F,O){let D=x.pop();return D?m(x,D,R,P,F,O):O()}function m(x,R,P,F,O,D){let k=n.join(P,R),L=n.join(F,R);s.checkPaths(k,L,"copy",(I,H)=>{if(I)return D(I);let{destStat:z}=H;h(z,k,L,O,re=>re?D(re):v(x,P,F,O,D))})}function w(x,R,P,F,O){t.readlink(R,(D,k)=>{if(D)return O(D);if(F.dereference&&(k=n.resolve(process.cwd(),k)),x)t.readlink(P,(L,I)=>L?L.code==="EINVAL"||L.code==="UNKNOWN"?t.symlink(k,P,O):O(L):(F.dereference&&(I=n.resolve(process.cwd(),I)),s.isSrcSubdir(k,I)?O(new Error(`Cannot copy '${k}' to a subdirectory of itself, '${I}'.`)):x.isDirectory()&&s.isSrcSubdir(I,k)?O(new Error(`Cannot overwrite '${I}' with '${k}'.`)):A(k,P,O)));else return t.symlink(k,P,O)})}function A(x,R,P){t.unlink(R,F=>F?P(F):t.symlink(x,R,P))}r.exports=o}),w1=ee((e,r)=>{"use strict";K();var t=vt().fromCallback;r.exports={copy:t(pP())}}),dP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=le("assert"),c=process.platform==="win32";function a(b){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(_=>{b[_]=b[_]||t[_],_=_+"Sync",b[_]=b[_]||t[_]}),b.maxBusyTries=b.maxBusyTries||3}function s(b,_,g){let S=0;typeof _=="function"&&(g=_,_={}),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i.strictEqual(typeof g,"function","rimraf: callback function required"),i(_,"rimraf: invalid options argument provided"),i.strictEqual(typeof _,"object","rimraf: options should be object"),a(_),o(b,_,function E(v){if(v){if((v.code==="EBUSY"||v.code==="ENOTEMPTY"||v.code==="EPERM")&&S<_.maxBusyTries){S++;let m=S*100;return setTimeout(()=>o(b,_,E),m)}v.code==="ENOENT"&&(v=null)}g(v)})}function o(b,_,g){i(b),i(_),i(typeof g=="function"),_.lstat(b,(S,E)=>{if(S&&S.code==="ENOENT")return g(null);if(S&&S.code==="EPERM"&&c)return f(b,_,S,g);if(E&&E.isDirectory())return h(b,_,S,g);_.unlink(b,v=>{if(v){if(v.code==="ENOENT")return g(null);if(v.code==="EPERM")return c?f(b,_,v,g):h(b,_,v,g);if(v.code==="EISDIR")return h(b,_,v,g)}return g(v)})})}function f(b,_,g,S){i(b),i(_),i(typeof S=="function"),g&&i(g instanceof Error),_.chmod(b,438,E=>{E?S(E.code==="ENOENT"?null:g):_.stat(b,(v,m)=>{v?S(v.code==="ENOENT"?null:g):m.isDirectory()?h(b,_,g,S):_.unlink(b,S)})})}function l(b,_,g){let S;i(b),i(_),g&&i(g instanceof Error);try{_.chmodSync(b,438)}catch(E){if(E.code==="ENOENT")return;throw g}try{S=_.statSync(b)}catch(E){if(E.code==="ENOENT")return;throw g}S.isDirectory()?p(b,_,g):_.unlinkSync(b)}function h(b,_,g,S){i(b),i(_),g&&i(g instanceof Error),i(typeof S=="function"),_.rmdir(b,E=>{E&&(E.code==="ENOTEMPTY"||E.code==="EEXIST"||E.code==="EPERM")?u(b,_,S):E&&E.code==="ENOTDIR"?S(g):S(E)})}function u(b,_,g){i(b),i(_),i(typeof g=="function"),_.readdir(b,(S,E)=>{if(S)return g(S);let v=E.length,m;if(v===0)return _.rmdir(b,g);E.forEach(w=>{s(n.join(b,w),_,A=>{if(!m){if(A)return g(m=A);--v===0&&_.rmdir(b,g)}})})})}function d(b,_){let g;_=_||{},a(_),i(b,"rimraf: missing path"),i.strictEqual(typeof b,"string","rimraf: path should be a string"),i(_,"rimraf: missing options"),i.strictEqual(typeof _,"object","rimraf: options should be object");try{g=_.lstatSync(b)}catch(S){if(S.code==="ENOENT")return;S.code==="EPERM"&&c&&l(b,_,S)}try{g&&g.isDirectory()?p(b,_,null):_.unlinkSync(b)}catch(S){if(S.code==="ENOENT")return;if(S.code==="EPERM")return c?l(b,_,S):p(b,_,S);if(S.code!=="EISDIR")throw S;p(b,_,S)}}function p(b,_,g){i(b),i(_),g&&i(g instanceof Error);try{_.rmdirSync(b)}catch(S){if(S.code==="ENOTDIR")throw g;if(S.code==="ENOTEMPTY"||S.code==="EEXIST"||S.code==="EPERM")y(b,_);else if(S.code!=="ENOENT")throw S}}function y(b,_){if(i(b),i(_),_.readdirSync(b).forEach(g=>d(n.join(b,g),_)),c){let g=Date.now();do try{return _.rmdirSync(b,_)}catch{}while(Date.now()-g<500)}else return _.rmdirSync(b,_)}r.exports=s,s.sync=d}),Hs=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=dP();r.exports={remove:t(n),removeSync:n.sync}}),mP=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=Le(),i=le("path"),c=St(),a=Hs(),s=t(function(f,l){l=l||function(){},n.readdir(f,(h,u)=>{if(h)return c.mkdirs(f,l);u=u.map(p=>i.join(f,p)),d();function d(){let p=u.pop();if(!p)return l();a.remove(p,y=>{if(y)return l(y);d()})}})});function o(f){let l;try{l=n.readdirSync(f)}catch{return c.mkdirsSync(f)}l.forEach(h=>{h=i.join(f,h),a.removeSync(h)})}r.exports={emptyDirSync:o,emptydirSync:o,emptyDir:s,emptydir:s}}),yP=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=le("path"),i=Le(),c=St(),a=Yt().pathExists;function s(f,l){function h(){i.writeFile(f,"",u=>{if(u)return l(u);l()})}i.stat(f,(u,d)=>{if(!u&&d.isFile())return l();let p=n.dirname(f);a(p,(y,b)=>{if(y)return l(y);if(b)return h();c.mkdirs(p,_=>{if(_)return l(_);h()})})})}function o(f){let l;try{l=i.statSync(f)}catch{}if(l&&l.isFile())return;let h=n.dirname(f);i.existsSync(h)||c.mkdirsSync(h),i.writeFileSync(f,"")}r.exports={createFile:t(s),createFileSync:o}}),gP=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=le("path"),i=Le(),c=St(),a=Yt().pathExists;function s(f,l,h){function u(d,p){i.link(d,p,y=>{if(y)return h(y);h(null)})}a(l,(d,p)=>{if(d)return h(d);if(p)return h(null);i.lstat(f,y=>{if(y)return y.message=y.message.replace("lstat","ensureLink"),h(y);let b=n.dirname(l);a(b,(_,g)=>{if(_)return h(_);if(g)return u(f,l);c.mkdirs(b,S=>{if(S)return h(S);u(f,l)})})})})}function o(f,l){if(i.existsSync(l))return;try{i.lstatSync(f)}catch(u){throw u.message=u.message.replace("lstat","ensureLink"),u}let h=n.dirname(l);return i.existsSync(h)||c.mkdirsSync(h),i.linkSync(f,l)}r.exports={createLink:t(s),createLinkSync:o}}),bP=ee((e,r)=>{"use strict";K();var t=le("path"),n=Le(),i=Yt().pathExists;function c(s,o,f){if(t.isAbsolute(s))return n.lstat(s,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),f(l)):f(null,{toCwd:s,toDst:s}));{let l=t.dirname(o),h=t.join(l,s);return i(h,(u,d)=>u?f(u):d?f(null,{toCwd:h,toDst:s}):n.lstat(s,p=>p?(p.message=p.message.replace("lstat","ensureSymlink"),f(p)):f(null,{toCwd:s,toDst:t.relative(l,s)})))}}function a(s,o){let f;if(t.isAbsolute(s)){if(f=n.existsSync(s),!f)throw new Error("absolute srcpath does not exist");return{toCwd:s,toDst:s}}else{let l=t.dirname(o),h=t.join(l,s);if(f=n.existsSync(h),f)return{toCwd:h,toDst:s};if(f=n.existsSync(s),!f)throw new Error("relative srcpath does not exist");return{toCwd:s,toDst:t.relative(l,s)}}}r.exports={symlinkPaths:c,symlinkPathsSync:a}}),vP=ee((e,r)=>{"use strict";K();var t=Le();function n(c,a,s){if(s=typeof a=="function"?a:s,a=typeof a=="function"?!1:a,a)return s(null,a);t.lstat(c,(o,f)=>{if(o)return s(null,"file");a=f&&f.isDirectory()?"dir":"file",s(null,a)})}function i(c,a){let s;if(a)return a;try{s=t.lstatSync(c)}catch{return"file"}return s&&s.isDirectory()?"dir":"file"}r.exports={symlinkType:n,symlinkTypeSync:i}}),_P=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=le("path"),i=Le(),c=St(),a=c.mkdirs,s=c.mkdirsSync,o=bP(),f=o.symlinkPaths,l=o.symlinkPathsSync,h=vP(),u=h.symlinkType,d=h.symlinkTypeSync,p=Yt().pathExists;function y(_,g,S,E){E=typeof S=="function"?S:E,S=typeof S=="function"?!1:S,p(g,(v,m)=>{if(v)return E(v);if(m)return E(null);f(_,g,(w,A)=>{if(w)return E(w);_=A.toDst,u(A.toCwd,S,(x,R)=>{if(x)return E(x);let P=n.dirname(g);p(P,(F,O)=>{if(F)return E(F);if(O)return i.symlink(_,g,R,E);a(P,D=>{if(D)return E(D);i.symlink(_,g,R,E)})})})})})}function b(_,g,S){if(i.existsSync(g))return;let E=l(_,g);_=E.toDst,S=d(E.toCwd,S);let v=n.dirname(g);return i.existsSync(v)||s(v),i.symlinkSync(_,g,S)}r.exports={createSymlink:t(y),createSymlinkSync:b}}),wP=ee((e,r)=>{"use strict";K();var t=yP(),n=gP(),i=_P();r.exports={createFile:t.createFile,createFileSync:t.createFileSync,ensureFile:t.createFile,ensureFileSync:t.createFileSync,createLink:n.createLink,createLinkSync:n.createLinkSync,ensureLink:n.createLink,ensureLinkSync:n.createLinkSync,createSymlink:i.createSymlink,createSymlinkSync:i.createSymlinkSync,ensureSymlink:i.createSymlink,ensureSymlinkSync:i.createSymlinkSync}}),EP=ee((e,r)=>{K();var t;try{t=Le()}catch{t=le("fs")}function n(l,h,u){u==null&&(u=h,h={}),typeof h=="string"&&(h={encoding:h}),h=h||{};var d=h.fs||t,p=!0;"throws"in h&&(p=h.throws),d.readFile(l,h,function(y,b){if(y)return u(y);b=o(b);var _;try{_=JSON.parse(b,h?h.reviver:null)}catch(g){return p?(g.message=l+": "+g.message,u(g)):u(null,null)}u(null,_)})}function i(l,h){h=h||{},typeof h=="string"&&(h={encoding:h});var u=h.fs||t,d=!0;"throws"in h&&(d=h.throws);try{var p=u.readFileSync(l,h);return p=o(p),JSON.parse(p,h.reviver)}catch(y){if(d)throw y.message=l+": "+y.message,y;return null}}function c(l,h){var u,d=`
|
150
|
+
`;typeof h=="object"&&h!==null&&(h.spaces&&(u=h.spaces),h.EOL&&(d=h.EOL));var p=JSON.stringify(l,h?h.replacer:null,u);return p.replace(/\n/g,d)+d}function a(l,h,u,d){d==null&&(d=u,u={}),u=u||{};var p=u.fs||t,y="";try{y=c(h,u)}catch(b){d&&d(b,null);return}p.writeFile(l,y,u,d)}function s(l,h,u){u=u||{};var d=u.fs||t,p=c(h,u);return d.writeFileSync(l,p,u)}function o(l){return Buffer.isBuffer(l)&&(l=l.toString("utf8")),l=l.replace(/^\uFEFF/,""),l}var f={readFile:n,readFileSync:i,writeFile:a,writeFileSync:s};r.exports=f}),Sl=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=EP();r.exports={readJson:t(n.readFile),readJsonSync:n.readFileSync,writeJson:t(n.writeFile),writeJsonSync:n.writeFileSync}}),SP=ee((e,r)=>{"use strict";K();var t=le("path"),n=St(),i=Yt().pathExists,c=Sl();function a(s,o,f,l){typeof f=="function"&&(l=f,f={});let h=t.dirname(s);i(h,(u,d)=>{if(u)return l(u);if(d)return c.writeJson(s,o,f,l);n.mkdirs(h,p=>{if(p)return l(p);c.writeJson(s,o,f,l)})})}r.exports=a}),AP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=St(),c=Sl();function a(s,o,f){let l=n.dirname(s);t.existsSync(l)||i.mkdirsSync(l),c.writeJsonSync(s,o,f)}r.exports=a}),xP=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=Sl();n.outputJson=t(SP()),n.outputJsonSync=AP(),n.outputJSON=n.outputJson,n.outputJSONSync=n.outputJsonSync,n.writeJSON=n.writeJson,n.writeJSONSync=n.writeJsonSync,n.readJSON=n.readJson,n.readJSONSync=n.readJsonSync,r.exports=n}),CP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=_1().copySync,c=Hs().removeSync,a=St().mkdirpSync,s=$s();function o(u,d,p){p=p||{};let y=p.overwrite||p.clobber||!1,{srcStat:b}=s.checkPathsSync(u,d,"move");return s.checkParentPathsSync(u,b,d,"move"),a(n.dirname(d)),f(u,d,y)}function f(u,d,p){if(p)return c(d),l(u,d,p);if(t.existsSync(d))throw new Error("dest already exists.");return l(u,d,p)}function l(u,d,p){try{t.renameSync(u,d)}catch(y){if(y.code!=="EXDEV")throw y;return h(u,d,p)}}function h(u,d,p){return i(u,d,{overwrite:p,errorOnExist:!0}),c(u)}r.exports=o}),kP=ee((e,r)=>{"use strict";K(),r.exports={moveSync:CP()}}),DP=ee((e,r)=>{"use strict";K();var t=Le(),n=le("path"),i=w1().copy,c=Hs().remove,a=St().mkdirp,s=Yt().pathExists,o=$s();function f(d,p,y,b){typeof y=="function"&&(b=y,y={});let _=y.overwrite||y.clobber||!1;o.checkPaths(d,p,"move",(g,S)=>{if(g)return b(g);let{srcStat:E}=S;o.checkParentPaths(d,E,p,"move",v=>{if(v)return b(v);a(n.dirname(p),m=>m?b(m):l(d,p,_,b))})})}function l(d,p,y,b){if(y)return c(p,_=>_?b(_):h(d,p,y,b));s(p,(_,g)=>_?b(_):g?b(new Error("dest already exists.")):h(d,p,y,b))}function h(d,p,y,b){t.rename(d,p,_=>_?_.code!=="EXDEV"?b(_):u(d,p,y,b):b())}function u(d,p,y,b){i(d,p,{overwrite:y,errorOnExist:!0},_=>_?b(_):c(d,b))}r.exports=f}),RP=ee((e,r)=>{"use strict";K();var t=vt().fromCallback;r.exports={move:t(DP())}}),OP=ee((e,r)=>{"use strict";K();var t=vt().fromCallback,n=Le(),i=le("path"),c=St(),a=Yt().pathExists;function s(f,l,h,u){typeof h=="function"&&(u=h,h="utf8");let d=i.dirname(f);a(d,(p,y)=>{if(p)return u(p);if(y)return n.writeFile(f,l,h,u);c.mkdirs(d,b=>{if(b)return u(b);n.writeFile(f,l,h,u)})})}function o(f,...l){let h=i.dirname(f);if(n.existsSync(h))return n.writeFileSync(f,...l);c.mkdirsSync(h),n.writeFileSync(f,...l)}r.exports={outputFile:t(s),outputFileSync:o}}),TP=ee((e,r)=>{"use strict";K(),r.exports=Object.assign({},g1(),_1(),w1(),mP(),wP(),xP(),St(),kP(),RP(),OP(),Yt(),Hs());var t=le("fs");Object.getOwnPropertyDescriptor(t,"promises")&&Object.defineProperty(r.exports,"promises",{get(){return t.promises}})});K();K();var d$=je(rP());K();K();function FP(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}K();K();function wl(e){return wl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},wl(e)}K();function PP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BP(e,r){if(r&&(wl(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PP(e)}K();function js(e){return js=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},js(e)}K();K();function ui(e,r){return ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},ui(e,r)}function IP(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ui(e,r)}K();K();function LP(e){return Function.toString.call(e).indexOf("[native code]")!==-1}K();K();function MP(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ns(e,r,t){return MP()?Ns=Reflect.construct.bind():Ns=function(n,i,c){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(n,a),o=new s;return c&&ui(o,c.prototype),o},Ns.apply(null,arguments)}function El(e){var r=typeof Map=="function"?new Map:void 0;return El=function(t){if(t===null||!LP(t))return t;if(typeof t!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(t))return r.get(t);r.set(t,n)}function n(){return Ns(t,arguments,js(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),ui(n,t)},El(e)}var m$=je(uP()),y$=je(TP()),g$=function(e){IP(r,e);function r(t){var n;return FP(this,r),n=BP(this,js(r).call(this,"No package.json could be found upwards from the directory ".concat(t))),n.directory=t,n}return r}(El(Error));K();var jP=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.splitWhen=e.flatten=void 0;function r(n){return n.reduce((i,c)=>[].concat(i,c),[])}e.flatten=r;function t(n,i){let c=[[]],a=0;for(let s of n)i(s)?(a++,c[a]=[]):c[a].push(s);return c}e.splitWhen=t}),$P=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEnoentCodeError=void 0;function r(t){return t.code==="ENOENT"}e.isEnoentCodeError=r}),HP=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),UP=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeLeadingDotSegment=e.escape=e.makeAbsolute=e.unixify=void 0;var r=le("path"),t=2,n=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function i(o){return o.replace(/\\/g,"/")}e.unixify=i;function c(o,f){return r.resolve(o,f)}e.makeAbsolute=c;function a(o){return o.replace(n,"\\$2")}e.escape=a;function s(o){if(o.charAt(0)==="."){let f=o.charAt(1);if(f==="/"||f==="\\")return o.slice(t)}return o}e.removeLeadingDotSegment=s}),qP=ee((e,r)=>{K(),r.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var n;n=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(n[2])return!0;t=t.slice(n.index+n[0].length)}return!1}}),GP=ee((e,r)=>{K();var t=qP(),n={"{":"}","(":")","[":"]"},i=function(a){if(a[0]==="!")return!0;for(var s=0,o=-2,f=-2,l=-2,h=-2,u=-2;s<a.length;){if(a[s]==="*"||a[s+1]==="?"&&/[\].+)]/.test(a[s])||f!==-1&&a[s]==="["&&a[s+1]!=="]"&&(f<s&&(f=a.indexOf("]",s)),f>s&&(u===-1||u>f||(u=a.indexOf("\\",s),u===-1||u>f)))||l!==-1&&a[s]==="{"&&a[s+1]!=="}"&&(l=a.indexOf("}",s),l>s&&(u=a.indexOf("\\",s),u===-1||u>l))||h!==-1&&a[s]==="("&&a[s+1]==="?"&&/[:!=]/.test(a[s+2])&&a[s+3]!==")"&&(h=a.indexOf(")",s),h>s&&(u=a.indexOf("\\",s),u===-1||u>h))||o!==-1&&a[s]==="("&&a[s+1]!=="|"&&(o<s&&(o=a.indexOf("|",s)),o!==-1&&a[o+1]!==")"&&(h=a.indexOf(")",o),h>o&&(u=a.indexOf("\\",o),u===-1||u>h))))return!0;if(a[s]==="\\"){var d=a[s+1];s+=2;var p=n[d];if(p){var y=a.indexOf(p,s);y!==-1&&(s=y+1)}if(a[s]==="!")return!0}else s++}return!1},c=function(a){if(a[0]==="!")return!0;for(var s=0;s<a.length;){if(/[*?{}()[\]]/.test(a[s]))return!0;if(a[s]==="\\"){var o=a[s+1];s+=2;var f=n[o];if(f){var l=a.indexOf(f,s);l!==-1&&(s=l+1)}if(a[s]==="!")return!0}else s++}return!1};r.exports=function(a,s){if(typeof a!="string"||a==="")return!1;if(t(a))return!0;var o=i;return s&&s.strict===!1&&(o=c),o(a)}}),zP=ee((e,r)=>{"use strict";K();var t=GP(),n=le("path").posix.dirname,i=le("os").platform()==="win32",c="/",a=/\\/g,s=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,f=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function(l,h){var u=Object.assign({flipBackslashes:!0},h);u.flipBackslashes&&i&&l.indexOf(c)<0&&(l=l.replace(a,c)),s.test(l)&&(l+=c),l+="a";do l=n(l);while(t(l)||o.test(l));return l.replace(f,"$1")}}),Fl=ee(e=>{"use strict";K(),e.isInteger=r=>typeof r=="number"?Number.isInteger(r):typeof r=="string"&&r.trim()!==""?Number.isInteger(Number(r)):!1,e.find=(r,t)=>r.nodes.find(n=>n.type===t),e.exceedsLimit=(r,t,n=1,i)=>i===!1||!e.isInteger(r)||!e.isInteger(t)?!1:(Number(t)-Number(r))/Number(n)>=i,e.escapeNode=(r,t=0,n)=>{let i=r.nodes[t];!i||(n&&i.type===n||i.type==="open"||i.type==="close")&&i.escaped!==!0&&(i.value="\\"+i.value,i.escaped=!0)},e.encloseBrace=r=>r.type!=="brace"||r.commas>>0+r.ranges>>0?!1:(r.invalid=!0,!0),e.isInvalidBrace=r=>r.type!=="brace"?!1:r.invalid===!0||r.dollar?!0:!(r.commas>>0+r.ranges>>0)||r.open!==!0||r.close!==!0?(r.invalid=!0,!0):!1,e.isOpenOrClose=r=>r.type==="open"||r.type==="close"?!0:r.open===!0||r.close===!0,e.reduce=r=>r.reduce((t,n)=>(n.type==="text"&&t.push(n.value),n.type==="range"&&(n.type="text"),t),[]),e.flatten=(...r)=>{let t=[],n=i=>{for(let c=0;c<i.length;c++){let a=i[c];Array.isArray(a)?n(a,t):a!==void 0&&t.push(a)}return t};return n(r),t}}),Pl=ee((e,r)=>{"use strict";K();var t=Fl();r.exports=(n,i={})=>{let c=(a,s={})=>{let o=i.escapeInvalid&&t.isInvalidBrace(s),f=a.invalid===!0&&i.escapeInvalid===!0,l="";if(a.value)return(o||f)&&t.isOpenOrClose(a)?"\\"+a.value:a.value;if(a.value)return a.value;if(a.nodes)for(let h of a.nodes)l+=c(h);return l};return c(n)}}),WP=ee((e,r)=>{"use strict";K(),r.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}}),VP=ee((e,r)=>{"use strict";K();var t=WP(),n=(g,S,E)=>{if(t(g)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(S===void 0||g===S)return String(g);if(t(S)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let v={relaxZeros:!0,...E};typeof v.strictZeros=="boolean"&&(v.relaxZeros=v.strictZeros===!1);let m=String(v.relaxZeros),w=String(v.shorthand),A=String(v.capture),x=String(v.wrap),R=g+":"+S+"="+m+w+A+x;if(n.cache.hasOwnProperty(R))return n.cache[R].result;let P=Math.min(g,S),F=Math.max(g,S);if(Math.abs(P-F)===1){let I=g+"|"+S;return v.capture?`(${I})`:v.wrap===!1?I:`(?:${I})`}let O=b(g)||b(S),D={min:g,max:S,a:P,b:F},k=[],L=[];if(O&&(D.isPadded=O,D.maxLen=String(D.max).length),P<0){let I=F<0?Math.abs(F):1;L=s(I,Math.abs(P),D,v),P=D.a=0}return F>=0&&(k=s(P,F,D,v)),D.negatives=L,D.positives=k,D.result=i(L,k,v),v.capture===!0?D.result=`(${D.result})`:v.wrap!==!1&&k.length+L.length>1&&(D.result=`(?:${D.result})`),n.cache[R]=D,D.result};function i(g,S,E){let v=o(g,S,"-",!1,E)||[],m=o(S,g,"",!1,E)||[],w=o(g,S,"-?",!0,E)||[];return v.concat(w).concat(m).join("|")}function c(g,S){let E=1,v=1,m=u(g,E),w=new Set([S]);for(;g<=m&&m<=S;)w.add(m),E+=1,m=u(g,E);for(m=d(S+1,v)-1;g<m&&m<=S;)w.add(m),v+=1,m=d(S+1,v)-1;return w=[...w],w.sort(l),w}function a(g,S,E){if(g===S)return{pattern:g,count:[],digits:0};let v=f(g,S),m=v.length,w="",A=0;for(let x=0;x<m;x++){let[R,P]=v[x];R===P?w+=R:R!=="0"||P!=="9"?w+=y(R,P,E):A++}return A&&(w+=E.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[A],digits:m}}function s(g,S,E,v){let m=c(g,S),w=[],A=g,x;for(let R=0;R<m.length;R++){let P=m[R],F=a(String(A),String(P),v),O="";if(!E.isPadded&&x&&x.pattern===F.pattern){x.count.length>1&&x.count.pop(),x.count.push(F.count[0]),x.string=x.pattern+p(x.count),A=P+1;continue}E.isPadded&&(O=_(P,E,v)),F.string=O+F.pattern+p(F.count),w.push(F),A=P+1,x=F}return w}function o(g,S,E,v,m){let w=[];for(let A of g){let{string:x}=A;!v&&!h(S,"string",x)&&w.push(E+x),v&&h(S,"string",x)&&w.push(E+x)}return w}function f(g,S){let E=[];for(let v=0;v<g.length;v++)E.push([g[v],S[v]]);return E}function l(g,S){return g>S?1:S>g?-1:0}function h(g,S,E){return g.some(v=>v[S]===E)}function u(g,S){return Number(String(g).slice(0,-S)+"9".repeat(S))}function d(g,S){return g-g%Math.pow(10,S)}function p(g){let[S=0,E=""]=g;return E||S>1?`{${S+(E?","+E:"")}}`:""}function y(g,S,E){return`[${g}${S-g===1?"":"-"}${S}]`}function b(g){return/^-?(0+)\d/.test(g)}function _(g,S,E){if(!S.isPadded)return g;let v=Math.abs(S.maxLen-String(g).length),m=E.relaxZeros!==!1;switch(v){case 0:return"";case 1:return m?"0?":"0";case 2:return m?"0{0,2}":"00";default:return m?`0{0,${v}}`:`0{${v}}`}}n.cache={},n.clearCache=()=>n.cache={},r.exports=n}),M1=ee((e,r)=>{"use strict";K();var t=le("util"),n=VP(),i=v=>v!==null&&typeof v=="object"&&!Array.isArray(v),c=v=>m=>v===!0?Number(m):String(m),a=v=>typeof v=="number"||typeof v=="string"&&v!=="",s=v=>Number.isInteger(+v),o=v=>{let m=`${v}`,w=-1;if(m[0]==="-"&&(m=m.slice(1)),m==="0")return!1;for(;m[++w]==="0";);return w>0},f=(v,m,w)=>typeof v=="string"||typeof m=="string"?!0:w.stringify===!0,l=(v,m,w)=>{if(m>0){let A=v[0]==="-"?"-":"";A&&(v=v.slice(1)),v=A+v.padStart(A?m-1:m,"0")}return w===!1?String(v):v},h=(v,m)=>{let w=v[0]==="-"?"-":"";for(w&&(v=v.slice(1),m--);v.length<m;)v="0"+v;return w?"-"+v:v},u=(v,m)=>{v.negatives.sort((P,F)=>P<F?-1:P>F?1:0),v.positives.sort((P,F)=>P<F?-1:P>F?1:0);let w=m.capture?"":"?:",A="",x="",R;return v.positives.length&&(A=v.positives.join("|")),v.negatives.length&&(x=`-(${w}${v.negatives.join("|")})`),A&&x?R=`${A}|${x}`:R=A||x,m.wrap?`(${w}${R})`:R},d=(v,m,w,A)=>{if(w)return n(v,m,{wrap:!1,...A});let x=String.fromCharCode(v);if(v===m)return x;let R=String.fromCharCode(m);return`[${x}-${R}]`},p=(v,m,w)=>{if(Array.isArray(v)){let A=w.wrap===!0,x=w.capture?"":"?:";return A?`(${x}${v.join("|")})`:v.join("|")}return n(v,m,w)},y=(...v)=>new RangeError("Invalid range arguments: "+t.inspect(...v)),b=(v,m,w)=>{if(w.strictRanges===!0)throw y([v,m]);return[]},_=(v,m)=>{if(m.strictRanges===!0)throw new TypeError(`Expected step "${v}" to be a number`);return[]},g=(v,m,w=1,A={})=>{let x=Number(v),R=Number(m);if(!Number.isInteger(x)||!Number.isInteger(R)){if(A.strictRanges===!0)throw y([v,m]);return[]}x===0&&(x=0),R===0&&(R=0);let P=x>R,F=String(v),O=String(m),D=String(w);w=Math.max(Math.abs(w),1);let k=o(F)||o(O)||o(D),L=k?Math.max(F.length,O.length,D.length):0,I=k===!1&&f(v,m,A)===!1,H=A.transform||c(I);if(A.toRegex&&w===1)return d(h(v,L),h(m,L),!0,A);let z={negatives:[],positives:[]},re=T=>z[T<0?"negatives":"positives"].push(Math.abs(T)),B=[],M=0;for(;P?x>=R:x<=R;)A.toRegex===!0&&w>1?re(x):B.push(l(H(x,M),L,I)),x=P?x-w:x+w,M++;return A.toRegex===!0?w>1?u(z,A):p(B,null,{wrap:!1,...A}):B},S=(v,m,w=1,A={})=>{if(!s(v)&&v.length>1||!s(m)&&m.length>1)return b(v,m,A);let x=A.transform||(I=>String.fromCharCode(I)),R=`${v}`.charCodeAt(0),P=`${m}`.charCodeAt(0),F=R>P,O=Math.min(R,P),D=Math.max(R,P);if(A.toRegex&&w===1)return d(O,D,!1,A);let k=[],L=0;for(;F?R>=P:R<=P;)k.push(x(R,L)),R=F?R-w:R+w,L++;return A.toRegex===!0?p(k,null,{wrap:!1,options:A}):k},E=(v,m,w,A={})=>{if(m==null&&a(v))return[v];if(!a(v)||!a(m))return b(v,m,A);if(typeof w=="function")return E(v,m,1,{transform:w});if(i(w))return E(v,m,0,w);let x={...A};return x.capture===!0&&(x.wrap=!0),w=w||x.step||1,s(w)?s(v)&&s(m)?g(v,m,w,x):S(v,m,Math.max(Math.abs(w),1),x):w!=null&&!i(w)?_(w,x):E(v,m,1,w)};r.exports=E}),YP=ee((e,r)=>{"use strict";K();var t=M1(),n=Fl(),i=(c,a={})=>{let s=(o,f={})=>{let l=n.isInvalidBrace(f),h=o.invalid===!0&&a.escapeInvalid===!0,u=l===!0||h===!0,d=a.escapeInvalid===!0?"\\":"",p="";if(o.isOpen===!0||o.isClose===!0)return d+o.value;if(o.type==="open")return u?d+o.value:"(";if(o.type==="close")return u?d+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":u?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let y=n.reduce(o.nodes),b=t(...y,{...a,wrap:!1,toRegex:!0});if(b.length!==0)return y.length>1&&b.length>1?`(${b})`:b}if(o.nodes)for(let y of o.nodes)p+=s(y,o);return p};return s(c)};r.exports=i}),KP=ee((e,r)=>{"use strict";K();var t=M1(),n=Pl(),i=Fl(),c=(s="",o="",f=!1)=>{let l=[];if(s=[].concat(s),o=[].concat(o),!o.length)return s;if(!s.length)return f?i.flatten(o).map(h=>`{${h}}`):o;for(let h of s)if(Array.isArray(h))for(let u of h)l.push(c(u,o,f));else for(let u of o)f===!0&&typeof u=="string"&&(u=`{${u}}`),l.push(Array.isArray(u)?c(h,u,f):h+u);return i.flatten(l)},a=(s,o={})=>{let f=o.rangeLimit===void 0?1e3:o.rangeLimit,l=(h,u={})=>{h.queue=[];let d=u,p=u.queue;for(;d.type!=="brace"&&d.type!=="root"&&d.parent;)d=d.parent,p=d.queue;if(h.invalid||h.dollar){p.push(c(p.pop(),n(h,o)));return}if(h.type==="brace"&&h.invalid!==!0&&h.nodes.length===2){p.push(c(p.pop(),["{}"]));return}if(h.nodes&&h.ranges>0){let g=i.reduce(h.nodes);if(i.exceedsLimit(...g,o.step,f))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let S=t(...g,o);S.length===0&&(S=n(h,o)),p.push(c(p.pop(),S)),h.nodes=[];return}let y=i.encloseBrace(h),b=h.queue,_=h;for(;_.type!=="brace"&&_.type!=="root"&&_.parent;)_=_.parent,b=_.queue;for(let g=0;g<h.nodes.length;g++){let S=h.nodes[g];if(S.type==="comma"&&h.type==="brace"){g===1&&b.push(""),b.push("");continue}if(S.type==="close"){p.push(c(p.pop(),b,y));continue}if(S.value&&S.type!=="open"){b.push(c(b.pop(),S.value));continue}S.nodes&&l(S,h)}return b};return i.flatten(l(s))};r.exports=a}),XP=ee((e,r)=>{"use strict";K(),r.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
151
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}}),ZP=ee((e,r)=>{"use strict";K();var t=Pl(),{MAX_LENGTH:n,CHAR_BACKSLASH:i,CHAR_BACKTICK:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_RIGHT_CURLY_BRACE:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_RIGHT_SQUARE_BRACKET:d,CHAR_DOUBLE_QUOTE:p,CHAR_SINGLE_QUOTE:y,CHAR_NO_BREAK_SPACE:b,CHAR_ZERO_WIDTH_NOBREAK_SPACE:_}=XP(),g=(S,E={})=>{if(typeof S!="string")throw new TypeError("Expected a string");let v=E||{},m=typeof v.maxLength=="number"?Math.min(n,v.maxLength):n;if(S.length>m)throw new SyntaxError(`Input length (${S.length}), exceeds max characters (${m})`);let w={type:"root",input:S,nodes:[]},A=[w],x=w,R=w,P=0,F=S.length,O=0,D=0,k,L={},I=()=>S[O++],H=z=>{if(z.type==="text"&&R.type==="dot"&&(R.type="text"),R&&R.type==="text"&&z.type==="text"){R.value+=z.value;return}return x.nodes.push(z),z.parent=x,z.prev=R,R=z,z};for(H({type:"bos"});O<F;)if(x=A[A.length-1],k=I(),!(k===_||k===b)){if(k===i){H({type:"text",value:(E.keepEscaping?k:"")+I()});continue}if(k===d){H({type:"text",value:"\\"+k});continue}if(k===u){P++;let z=!0,re;for(;O<F&&(re=I());){if(k+=re,re===u){P++;continue}if(re===i){k+=I();continue}if(re===d&&(P--,P===0))break}H({type:"text",value:k});continue}if(k===o){x=H({type:"paren",nodes:[]}),A.push(x),H({type:"text",value:k});continue}if(k===f){if(x.type!=="paren"){H({type:"text",value:k});continue}x=A.pop(),H({type:"text",value:k}),x=A[A.length-1];continue}if(k===p||k===y||k===c){let z=k,re;for(E.keepQuotes!==!0&&(k="");O<F&&(re=I());){if(re===i){k+=re+I();continue}if(re===z){E.keepQuotes===!0&&(k+=re);break}k+=re}H({type:"text",value:k});continue}if(k===l){D++;let z=R.value&&R.value.slice(-1)==="$"||x.dollar===!0;x=H({type:"brace",open:!0,close:!1,dollar:z,depth:D,commas:0,ranges:0,nodes:[]}),A.push(x),H({type:"open",value:k});continue}if(k===h){if(x.type!=="brace"){H({type:"text",value:k});continue}let z="close";x=A.pop(),x.close=!0,H({type:z,value:k}),D--,x=A[A.length-1];continue}if(k===a&&D>0){if(x.ranges>0){x.ranges=0;let z=x.nodes.shift();x.nodes=[z,{type:"text",value:t(x)}]}H({type:"comma",value:k}),x.commas++;continue}if(k===s&&D>0&&x.commas===0){let z=x.nodes;if(D===0||z.length===0){H({type:"text",value:k});continue}if(R.type==="dot"){if(x.range=[],R.value+=k,R.type="range",x.nodes.length!==3&&x.nodes.length!==5){x.invalid=!0,x.ranges=0,R.type="text";continue}x.ranges++,x.args=[];continue}if(R.type==="range"){z.pop();let re=z[z.length-1];re.value+=R.value+k,R=re,x.ranges--;continue}H({type:"dot",value:k});continue}H({type:"text",value:k})}do if(x=A.pop(),x.type!=="root"){x.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let z=A[A.length-1],re=z.nodes.indexOf(x);z.nodes.splice(re,1,...x.nodes)}while(A.length>0);return H({type:"eos"}),w};r.exports=g}),JP=ee((e,r)=>{"use strict";K();var t=Pl(),n=YP(),i=KP(),c=ZP(),a=(s,o={})=>{let f=[];if(Array.isArray(s))for(let l of s){let h=a.create(l,o);Array.isArray(h)?f.push(...h):f.push(h)}else f=[].concat(a.create(s,o));return o&&o.expand===!0&&o.nodupes===!0&&(f=[...new Set(f)]),f};a.parse=(s,o={})=>c(s,o),a.stringify=(s,o={})=>t(typeof s=="string"?a.parse(s,o):s,o),a.compile=(s,o={})=>(typeof s=="string"&&(s=a.parse(s,o)),n(s,o)),a.expand=(s,o={})=>{typeof s=="string"&&(s=a.parse(s,o));let f=i(s,o);return o.noempty===!0&&(f=f.filter(Boolean)),o.nodupes===!0&&(f=[...new Set(f)]),f},a.create=(s,o={})=>s===""||s.length<3?[s]:o.expand!==!0?a.compile(s,o):a.expand(s,o),r.exports=a}),Vs=ee((e,r)=>{"use strict";K();var t=le("path"),n="\\\\/",i=`[^${n}]`,c="\\.",a="\\+",s="\\?",o="\\/",f="(?=.)",l="[^/]",h=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${c}{1,2}${h}`,p=`(?!${c})`,y=`(?!${u}${d})`,b=`(?!${c}{0,1}${h})`,_=`(?!${d})`,g=`[^.${o}]`,S=`${l}*?`,E={DOT_LITERAL:c,PLUS_LITERAL:a,QMARK_LITERAL:s,SLASH_LITERAL:o,ONE_CHAR:f,QMARK:l,END_ANCHOR:h,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:_,QMARK_NO_DOT:g,STAR:S,START_ANCHOR:u},v={...E,SLASH_LITERAL:`[${n}]`,QMARK:i,STAR:`${i}*?`,DOTS_SLASH:`${c}{1,2}(?:[${n}]|$)`,NO_DOT:`(?!${c})`,NO_DOTS:`(?!(?:^|[${n}])${c}{1,2}(?:[${n}]|$))`,NO_DOT_SLASH:`(?!${c}{0,1}(?:[${n}]|$))`,NO_DOTS_SLASH:`(?!${c}{1,2}(?:[${n}]|$))`,QMARK_NO_DOT:`[^.${n}]`,START_ANCHOR:`(?:^|[${n}])`,END_ANCHOR:`(?:[${n}]|$)`},m={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:m,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:t.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?v:E}}}),Ys=ee(e=>{"use strict";K();var r=le("path"),t=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:i,REGEX_SPECIAL_CHARS:c,REGEX_SPECIAL_CHARS_GLOBAL:a}=Vs();e.isObject=s=>s!==null&&typeof s=="object"&&!Array.isArray(s),e.hasRegexChars=s=>c.test(s),e.isRegexChar=s=>s.length===1&&e.hasRegexChars(s),e.escapeRegex=s=>s.replace(a,"\\$1"),e.toPosixSlashes=s=>s.replace(n,"/"),e.removeBackslashes=s=>s.replace(i,o=>o==="\\"?"":o),e.supportsLookbehinds=()=>{let s=process.version.slice(1).split(".").map(Number);return s.length===3&&s[0]>=9||s[0]===8&&s[1]>=10},e.isWindows=s=>s&&typeof s.windows=="boolean"?s.windows:t===!0||r.sep==="\\",e.escapeLast=(s,o,f)=>{let l=s.lastIndexOf(o,f);return l===-1?s:s[l-1]==="\\"?e.escapeLast(s,o,l-1):`${s.slice(0,l)}\\${s.slice(l)}`},e.removePrefix=(s,o={})=>{let f=s;return f.startsWith("./")&&(f=f.slice(2),o.prefix="./"),f},e.wrapOutput=(s,o={},f={})=>{let l=f.contains?"":"^",h=f.contains?"":"$",u=`${l}(?:${s})${h}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u}}),QP=ee((e,r)=>{"use strict";K();var t=Ys(),{CHAR_ASTERISK:n,CHAR_AT:i,CHAR_BACKWARD_SLASH:c,CHAR_COMMA:a,CHAR_DOT:s,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:f,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:h,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:p,CHAR_RIGHT_CURLY_BRACE:y,CHAR_RIGHT_PARENTHESES:b,CHAR_RIGHT_SQUARE_BRACKET:_}=Vs(),g=v=>v===f||v===c,S=v=>{v.isPrefix!==!0&&(v.depth=v.isGlobstar?1/0:1)},E=(v,m)=>{let w=m||{},A=v.length-1,x=w.parts===!0||w.scanToEnd===!0,R=[],P=[],F=[],O=v,D=-1,k=0,L=0,I=!1,H=!1,z=!1,re=!1,B=!1,M=!1,T=!1,Y=!1,U=!1,Q=!1,N=0,W,J,ae={value:"",depth:0,isGlob:!1},oe=()=>D>=A,de=()=>O.charCodeAt(D+1),pe=()=>(W=J,O.charCodeAt(++D));for(;D<A;){J=pe();let X;if(J===c){T=ae.backslashes=!0,J=pe(),J===l&&(M=!0);continue}if(M===!0||J===l){for(N++;oe()!==!0&&(J=pe());){if(J===c){T=ae.backslashes=!0,pe();continue}if(J===l){N++;continue}if(M!==!0&&J===s&&(J=pe())===s){if(I=ae.isBrace=!0,z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(M!==!0&&J===a){if(I=ae.isBrace=!0,z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(J===y&&(N--,N===0)){M=!1,I=ae.isBrace=!0,Q=!0;break}}if(x===!0)continue;break}if(J===f){if(R.push(D),P.push(ae),ae={value:"",depth:0,isGlob:!1},Q===!0)continue;if(W===s&&D===k+1){k+=2;continue}L=D+1;continue}if(w.noext!==!0&&(J===d||J===i||J===n||J===p||J===o)&&de()===h){if(z=ae.isGlob=!0,re=ae.isExtglob=!0,Q=!0,J===o&&D===k&&(U=!0),x===!0){for(;oe()!==!0&&(J=pe());){if(J===c){T=ae.backslashes=!0,J=pe();continue}if(J===b){z=ae.isGlob=!0,Q=!0;break}}continue}break}if(J===n){if(W===n&&(B=ae.isGlobstar=!0),z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(J===p){if(z=ae.isGlob=!0,Q=!0,x===!0)continue;break}if(J===u){for(;oe()!==!0&&(X=pe());){if(X===c){T=ae.backslashes=!0,pe();continue}if(X===_){H=ae.isBracket=!0,z=ae.isGlob=!0,Q=!0;break}}if(x===!0)continue;break}if(w.nonegate!==!0&&J===o&&D===k){Y=ae.negated=!0,k++;continue}if(w.noparen!==!0&&J===h){if(z=ae.isGlob=!0,x===!0){for(;oe()!==!0&&(J=pe());){if(J===h){T=ae.backslashes=!0,J=pe();continue}if(J===b){Q=!0;break}}continue}break}if(z===!0){if(Q=!0,x===!0)continue;break}}w.noext===!0&&(re=!1,z=!1);let j=O,G="",C="";k>0&&(G=O.slice(0,k),O=O.slice(k),L-=k),j&&z===!0&&L>0?(j=O.slice(0,L),C=O.slice(L)):z===!0?(j="",C=O):j=O,j&&j!==""&&j!=="/"&&j!==O&&g(j.charCodeAt(j.length-1))&&(j=j.slice(0,-1)),w.unescape===!0&&(C&&(C=t.removeBackslashes(C)),j&&T===!0&&(j=t.removeBackslashes(j)));let q={prefix:G,input:v,start:k,base:j,glob:C,isBrace:I,isBracket:H,isGlob:z,isExtglob:re,isGlobstar:B,negated:Y,negatedExtglob:U};if(w.tokens===!0&&(q.maxDepth=0,g(J)||P.push(ae),q.tokens=P),w.parts===!0||w.tokens===!0){let X;for(let ne=0;ne<R.length;ne++){let me=X?X+1:k,se=R[ne],fe=v.slice(me,se);w.tokens&&(ne===0&&k!==0?(P[ne].isPrefix=!0,P[ne].value=G):P[ne].value=fe,S(P[ne]),q.maxDepth+=P[ne].depth),(ne!==0||fe!=="")&&F.push(fe),X=se}if(X&&X+1<v.length){let ne=v.slice(X+1);F.push(ne),w.tokens&&(P[P.length-1].value=ne,S(P[P.length-1]),q.maxDepth+=P[P.length-1].depth)}q.slashes=R,q.parts=F}return q};r.exports=E}),eB=ee((e,r)=>{"use strict";K();var t=Vs(),n=Ys(),{MAX_LENGTH:i,POSIX_REGEX_SOURCE:c,REGEX_NON_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_BACKREF:s,REPLACEMENTS:o}=t,f=(u,d)=>{if(typeof d.expandRange=="function")return d.expandRange(...u,d);u.sort();let p=`[${u.join("-")}]`;try{new RegExp(p)}catch{return u.map(y=>n.escapeRegex(y)).join("..")}return p},l=(u,d)=>`Missing ${u}: "${d}" - use "\\\\${d}" to match literal characters`,h=(u,d)=>{if(typeof u!="string")throw new TypeError("Expected a string");u=o[u]||u;let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);let _={type:"bos",value:"",output:p.prepend||""},g=[_],S=p.capture?"":"?:",E=n.isWindows(d),v=t.globChars(E),m=t.extglobChars(v),{DOT_LITERAL:w,PLUS_LITERAL:A,SLASH_LITERAL:x,ONE_CHAR:R,DOTS_SLASH:P,NO_DOT:F,NO_DOT_SLASH:O,NO_DOTS_SLASH:D,QMARK:k,QMARK_NO_DOT:L,STAR:I,START_ANCHOR:H}=v,z=se=>`(${S}(?:(?!${H}${se.dot?P:w}).)*?)`,re=p.dot?"":F,B=p.dot?k:L,M=p.bash===!0?z(p):I;p.capture&&(M=`(${M})`),typeof p.noext=="boolean"&&(p.noextglob=p.noext);let T={input:u,index:-1,start:0,dot:p.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};u=n.removePrefix(u,T),b=u.length;let Y=[],U=[],Q=[],N=_,W,J=()=>T.index===b-1,ae=T.peek=(se=1)=>u[T.index+se],oe=T.advance=()=>u[++T.index]||"",de=()=>u.slice(T.index+1),pe=(se="",fe=0)=>{T.consumed+=se,T.index+=fe},j=se=>{T.output+=se.output!=null?se.output:se.value,pe(se.value)},G=()=>{let se=1;for(;ae()==="!"&&(ae(2)!=="("||ae(3)==="?");)oe(),T.start++,se++;return se%2===0?!1:(T.negated=!0,T.start++,!0)},C=se=>{T[se]++,Q.push(se)},q=se=>{T[se]--,Q.pop()},X=se=>{if(N.type==="globstar"){let fe=T.braces>0&&(se.type==="comma"||se.type==="brace"),ie=se.extglob===!0||Y.length&&(se.type==="pipe"||se.type==="paren");se.type!=="slash"&&se.type!=="paren"&&!fe&&!ie&&(T.output=T.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=M,T.output+=N.output)}if(Y.length&&se.type!=="paren"&&(Y[Y.length-1].inner+=se.value),(se.value||se.output)&&j(se),N&&N.type==="text"&&se.type==="text"){N.value+=se.value,N.output=(N.output||"")+se.value;return}se.prev=N,g.push(se),N=se},ne=(se,fe)=>{let ie={...m[fe],conditions:1,inner:""};ie.prev=N,ie.parens=T.parens,ie.output=T.output;let ye=(p.capture?"(":"")+ie.open;C("parens"),X({type:se,value:fe,output:T.output?"":R}),X({type:"paren",extglob:!0,value:oe(),output:ye}),Y.push(ie)},me=se=>{let fe=se.close+(p.capture?")":""),ie;if(se.type==="negate"){let ye=M;if(se.inner&&se.inner.length>1&&se.inner.includes("/")&&(ye=z(p)),(ye!==M||J()||/^\)+$/.test(de()))&&(fe=se.close=`)$))${ye}`),se.inner.includes("*")&&(ie=de())&&/^\.[^\\/.]+$/.test(ie)){let we=h(ie,{...d,fastpaths:!1}).output;fe=se.close=`)${we})${ye})`}se.prev.type==="bos"&&(T.negatedExtglob=!0)}X({type:"paren",extglob:!0,value:W,output:fe}),q("parens")};if(p.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(u)){let se=!1,fe=u.replace(s,(ie,ye,we,xe,V,$)=>xe==="\\"?(se=!0,ie):xe==="?"?ye?ye+xe+(V?k.repeat(V.length):""):$===0?B+(V?k.repeat(V.length):""):k.repeat(we.length):xe==="."?w.repeat(we.length):xe==="*"?ye?ye+xe+(V?M:""):M:ye?ie:`\\${ie}`);return se===!0&&(p.unescape===!0?fe=fe.replace(/\\/g,""):fe=fe.replace(/\\+/g,ie=>ie.length%2===0?"\\\\":ie?"\\":"")),fe===u&&p.contains===!0?(T.output=u,T):(T.output=n.wrapOutput(fe,T,d),T)}for(;!J();){if(W=oe(),W==="\0")continue;if(W==="\\"){let ie=ae();if(ie==="/"&&p.bash!==!0||ie==="."||ie===";")continue;if(!ie){W+="\\",X({type:"text",value:W});continue}let ye=/^\\+/.exec(de()),we=0;if(ye&&ye[0].length>2&&(we=ye[0].length,T.index+=we,we%2!==0&&(W+="\\")),p.unescape===!0?W=oe():W+=oe(),T.brackets===0){X({type:"text",value:W});continue}}if(T.brackets>0&&(W!=="]"||N.value==="["||N.value==="[^")){if(p.posix!==!1&&W===":"){let ie=N.value.slice(1);if(ie.includes("[")&&(N.posix=!0,ie.includes(":"))){let ye=N.value.lastIndexOf("["),we=N.value.slice(0,ye),xe=N.value.slice(ye+2),V=c[xe];if(V){N.value=we+V,T.backtrack=!0,oe(),!_.output&&g.indexOf(N)===1&&(_.output=R);continue}}}(W==="["&&ae()!==":"||W==="-"&&ae()==="]")&&(W=`\\${W}`),W==="]"&&(N.value==="["||N.value==="[^")&&(W=`\\${W}`),p.posix===!0&&W==="!"&&N.value==="["&&(W="^"),N.value+=W,j({value:W});continue}if(T.quotes===1&&W!=='"'){W=n.escapeRegex(W),N.value+=W,j({value:W});continue}if(W==='"'){T.quotes=T.quotes===1?0:1,p.keepQuotes===!0&&X({type:"text",value:W});continue}if(W==="("){C("parens"),X({type:"paren",value:W});continue}if(W===")"){if(T.parens===0&&p.strictBrackets===!0)throw new SyntaxError(l("opening","("));let ie=Y[Y.length-1];if(ie&&T.parens===ie.parens+1){me(Y.pop());continue}X({type:"paren",value:W,output:T.parens?")":"\\)"}),q("parens");continue}if(W==="["){if(p.nobracket===!0||!de().includes("]")){if(p.nobracket!==!0&&p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));W=`\\${W}`}else C("brackets");X({type:"bracket",value:W});continue}if(W==="]"){if(p.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){X({type:"text",value:W,output:`\\${W}`});continue}if(T.brackets===0){if(p.strictBrackets===!0)throw new SyntaxError(l("opening","["));X({type:"text",value:W,output:`\\${W}`});continue}q("brackets");let ie=N.value.slice(1);if(N.posix!==!0&&ie[0]==="^"&&!ie.includes("/")&&(W=`/${W}`),N.value+=W,j({value:W}),p.literalBrackets===!1||n.hasRegexChars(ie))continue;let ye=n.escapeRegex(N.value);if(T.output=T.output.slice(0,-N.value.length),p.literalBrackets===!0){T.output+=ye,N.value=ye;continue}N.value=`(${S}${ye}|${N.value})`,T.output+=N.value;continue}if(W==="{"&&p.nobrace!==!0){C("braces");let ie={type:"brace",value:W,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};U.push(ie),X(ie);continue}if(W==="}"){let ie=U[U.length-1];if(p.nobrace===!0||!ie){X({type:"text",value:W,output:W});continue}let ye=")";if(ie.dots===!0){let we=g.slice(),xe=[];for(let V=we.length-1;V>=0&&(g.pop(),we[V].type!=="brace");V--)we[V].type!=="dots"&&xe.unshift(we[V].value);ye=f(xe,p),T.backtrack=!0}if(ie.comma!==!0&&ie.dots!==!0){let we=T.output.slice(0,ie.outputIndex),xe=T.tokens.slice(ie.tokensIndex);ie.value=ie.output="\\{",W=ye="\\}",T.output=we;for(let V of xe)T.output+=V.output||V.value}X({type:"brace",value:W,output:ye}),q("braces"),U.pop();continue}if(W==="|"){Y.length>0&&Y[Y.length-1].conditions++,X({type:"text",value:W});continue}if(W===","){let ie=W,ye=U[U.length-1];ye&&Q[Q.length-1]==="braces"&&(ye.comma=!0,ie="|"),X({type:"comma",value:W,output:ie});continue}if(W==="/"){if(N.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",g.pop(),N=_;continue}X({type:"slash",value:W,output:x});continue}if(W==="."){if(T.braces>0&&N.type==="dot"){N.value==="."&&(N.output=w);let ie=U[U.length-1];N.type="dots",N.output+=W,N.value+=W,ie.dots=!0;continue}if(T.braces+T.parens===0&&N.type!=="bos"&&N.type!=="slash"){X({type:"text",value:W,output:w});continue}X({type:"dot",value:W,output:w});continue}if(W==="?"){if(!(N&&N.value==="(")&&p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("qmark",W);continue}if(N&&N.type==="paren"){let ie=ae(),ye=W;if(ie==="<"&&!n.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(N.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(de()))&&(ye=`\\${W}`),X({type:"text",value:W,output:ye});continue}if(p.dot!==!0&&(N.type==="slash"||N.type==="bos")){X({type:"qmark",value:W,output:L});continue}X({type:"qmark",value:W,output:k});continue}if(W==="!"){if(p.noextglob!==!0&&ae()==="("&&(ae(2)!=="?"||!/[!=<:]/.test(ae(3)))){ne("negate",W);continue}if(p.nonegate!==!0&&T.index===0){G();continue}}if(W==="+"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){ne("plus",W);continue}if(N&&N.value==="("||p.regex===!1){X({type:"plus",value:W,output:A});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||T.parens>0){X({type:"plus",value:W});continue}X({type:"plus",value:A});continue}if(W==="@"){if(p.noextglob!==!0&&ae()==="("&&ae(2)!=="?"){X({type:"at",extglob:!0,value:W,output:""});continue}X({type:"text",value:W});continue}if(W!=="*"){(W==="$"||W==="^")&&(W=`\\${W}`);let ie=a.exec(de());ie&&(W+=ie[0],T.index+=ie[0].length),X({type:"text",value:W});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=W,N.output=M,T.backtrack=!0,T.globstar=!0,pe(W);continue}let se=de();if(p.noextglob!==!0&&/^\([^?]/.test(se)){ne("star",W);continue}if(N.type==="star"){if(p.noglobstar===!0){pe(W);continue}let ie=N.prev,ye=ie.prev,we=ie.type==="slash"||ie.type==="bos",xe=ye&&(ye.type==="star"||ye.type==="globstar");if(p.bash===!0&&(!we||se[0]&&se[0]!=="/")){X({type:"star",value:W,output:""});continue}let V=T.braces>0&&(ie.type==="comma"||ie.type==="brace"),$=Y.length&&(ie.type==="pipe"||ie.type==="paren");if(!we&&ie.type!=="paren"&&!V&&!$){X({type:"star",value:W,output:""});continue}for(;se.slice(0,3)==="/**";){let ue=u[T.index+4];if(ue&&ue!=="/")break;se=se.slice(3),pe("/**",3)}if(ie.type==="bos"&&J()){N.type="globstar",N.value+=W,N.output=z(p),T.output=N.output,T.globstar=!0,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&!xe&&J()){T.output=T.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=z(p)+(p.strictSlashes?")":"|$)"),N.value+=W,T.globstar=!0,T.output+=ie.output+N.output,pe(W);continue}if(ie.type==="slash"&&ie.prev.type!=="bos"&&se[0]==="/"){let ue=se[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(ie.output+N.output).length),ie.output=`(?:${ie.output}`,N.type="globstar",N.output=`${z(p)}${x}|${x}${ue})`,N.value+=W,T.output+=ie.output+N.output,T.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}if(ie.type==="bos"&&se[0]==="/"){N.type="globstar",N.value+=W,N.output=`(?:^|${x}|${z(p)}${x})`,T.output=N.output,T.globstar=!0,pe(W+oe()),X({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-N.output.length),N.type="globstar",N.output=z(p),N.value+=W,T.output+=N.output,T.globstar=!0,pe(W);continue}let fe={type:"star",value:W,output:M};if(p.bash===!0){fe.output=".*?",(N.type==="bos"||N.type==="slash")&&(fe.output=re+fe.output),X(fe);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&p.regex===!0){fe.output=W,X(fe);continue}(T.index===T.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(T.output+=O,N.output+=O):p.dot===!0?(T.output+=D,N.output+=D):(T.output+=re,N.output+=re),ae()!=="*"&&(T.output+=R,N.output+=R)),X(fe)}for(;T.brackets>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","]"));T.output=n.escapeLast(T.output,"["),q("brackets")}for(;T.parens>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing",")"));T.output=n.escapeLast(T.output,"("),q("parens")}for(;T.braces>0;){if(p.strictBrackets===!0)throw new SyntaxError(l("closing","}"));T.output=n.escapeLast(T.output,"{"),q("braces")}if(p.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&X({type:"maybe_slash",value:"",output:`${x}?`}),T.backtrack===!0){T.output="";for(let se of T.tokens)T.output+=se.output!=null?se.output:se.value,se.suffix&&(T.output+=se.suffix)}return T};h.fastpaths=(u,d)=>{let p={...d},y=typeof p.maxLength=="number"?Math.min(i,p.maxLength):i,b=u.length;if(b>y)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${y}`);u=o[u]||u;let _=n.isWindows(d),{DOT_LITERAL:g,SLASH_LITERAL:S,ONE_CHAR:E,DOTS_SLASH:v,NO_DOT:m,NO_DOTS:w,NO_DOTS_SLASH:A,STAR:x,START_ANCHOR:R}=t.globChars(_),P=p.dot?w:m,F=p.dot?A:m,O=p.capture?"":"?:",D={negated:!1,prefix:""},k=p.bash===!0?".*?":x;p.capture&&(k=`(${k})`);let L=re=>re.noglobstar===!0?k:`(${O}(?:(?!${R}${re.dot?v:g}).)*?)`,I=re=>{switch(re){case"*":return`${P}${E}${k}`;case".*":return`${g}${E}${k}`;case"*.*":return`${P}${k}${g}${E}${k}`;case"*/*":return`${P}${k}${S}${E}${F}${k}`;case"**":return P+L(p);case"**/*":return`(?:${P}${L(p)}${S})?${F}${E}${k}`;case"**/*.*":return`(?:${P}${L(p)}${S})?${F}${k}${g}${E}${k}`;case"**/.*":return`(?:${P}${L(p)}${S})?${g}${E}${k}`;default:{let B=/^(.*?)\.(\w+)$/.exec(re);if(!B)return;let M=I(B[1]);return M?M+g+B[2]:void 0}}},H=n.removePrefix(u,D),z=I(H);return z&&p.strictSlashes!==!0&&(z+=`${S}?`),z},r.exports=h}),tB=ee((e,r)=>{"use strict";K();var t=le("path"),n=QP(),i=eB(),c=Ys(),a=Vs(),s=f=>f&&typeof f=="object"&&!Array.isArray(f),o=(f,l,h=!1)=>{if(Array.isArray(f)){let S=f.map(E=>o(E,l,h));return E=>{for(let v of S){let m=v(E);if(m)return m}return!1}}let u=s(f)&&f.tokens&&f.input;if(f===""||typeof f!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");let d=l||{},p=c.isWindows(l),y=u?o.compileRe(f,l):o.makeRe(f,l,!1,!0),b=y.state;delete y.state;let _=()=>!1;if(d.ignore){let S={...l,ignore:null,onMatch:null,onResult:null};_=o(d.ignore,S,h)}let g=(S,E=!1)=>{let{isMatch:v,match:m,output:w}=o.test(S,y,l,{glob:f,posix:p}),A={glob:f,state:b,regex:y,posix:p,input:S,output:w,match:m,isMatch:v};return typeof d.onResult=="function"&&d.onResult(A),v===!1?(A.isMatch=!1,E?A:!1):_(S)?(typeof d.onIgnore=="function"&&d.onIgnore(A),A.isMatch=!1,E?A:!1):(typeof d.onMatch=="function"&&d.onMatch(A),E?A:!0)};return h&&(g.state=b),g};o.test=(f,l,h,{glob:u,posix:d}={})=>{if(typeof f!="string")throw new TypeError("Expected input to be a string");if(f==="")return{isMatch:!1,output:""};let p=h||{},y=p.format||(d?c.toPosixSlashes:null),b=f===u,_=b&&y?y(f):f;return b===!1&&(_=y?y(f):f,b=_===u),(b===!1||p.capture===!0)&&(p.matchBase===!0||p.basename===!0?b=o.matchBase(f,l,h,d):b=l.exec(_)),{isMatch:!!b,match:b,output:_}},o.matchBase=(f,l,h,u=c.isWindows(h))=>(l instanceof RegExp?l:o.makeRe(l,h)).test(t.basename(f)),o.isMatch=(f,l,h)=>o(l,h)(f),o.parse=(f,l)=>Array.isArray(f)?f.map(h=>o.parse(h,l)):i(f,{...l,fastpaths:!1}),o.scan=(f,l)=>n(f,l),o.compileRe=(f,l,h=!1,u=!1)=>{if(h===!0)return f.output;let d=l||{},p=d.contains?"":"^",y=d.contains?"":"$",b=`${p}(?:${f.output})${y}`;f&&f.negated===!0&&(b=`^(?!${b}).*$`);let _=o.toRegex(b,l);return u===!0&&(_.state=f),_},o.makeRe=(f,l={},h=!1,u=!1)=>{if(!f||typeof f!="string")throw new TypeError("Expected a non-empty string");let d={negated:!1,fastpaths:!0};return l.fastpaths!==!1&&(f[0]==="."||f[0]==="*")&&(d.output=i.fastpaths(f,l)),d.output||(d=i(f,l)),o.compileRe(d,l,h,u)},o.toRegex=(f,l)=>{try{let h=l||{};return new RegExp(f,h.flags||(h.nocase?"i":""))}catch(h){if(l&&l.debug===!0)throw h;return/$^/}},o.constants=a,r.exports=o}),rB=ee((e,r)=>{"use strict";K(),r.exports=tB()}),nB=ee((e,r)=>{"use strict";K();var t=le("util"),n=JP(),i=rB(),c=Ys(),a=o=>o===""||o==="./",s=(o,f,l)=>{f=[].concat(f),o=[].concat(o);let h=new Set,u=new Set,d=new Set,p=0,y=_=>{d.add(_.output),l&&l.onResult&&l.onResult(_)};for(let _=0;_<f.length;_++){let g=i(String(f[_]),{...l,onResult:y},!0),S=g.state.negated||g.state.negatedExtglob;S&&p++;for(let E of o){let v=g(E,!0);!(S?!v.isMatch:v.isMatch)||(S?h.add(v.output):(h.delete(v.output),u.add(v.output)))}}let b=(p===f.length?[...d]:[...u]).filter(_=>!h.has(_));if(l&&b.length===0){if(l.failglob===!0)throw new Error(`No matches found for "${f.join(", ")}"`);if(l.nonull===!0||l.nullglob===!0)return l.unescape?f.map(_=>_.replace(/\\/g,"")):f}return b};s.match=s,s.matcher=(o,f)=>i(o,f),s.isMatch=(o,f,l)=>i(f,l)(o),s.any=s.isMatch,s.not=(o,f,l={})=>{f=[].concat(f).map(String);let h=new Set,u=[],d=y=>{l.onResult&&l.onResult(y),u.push(y.output)},p=new Set(s(o,f,{...l,onResult:d}));for(let y of u)p.has(y)||h.add(y);return[...h]},s.contains=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);if(Array.isArray(f))return f.some(h=>s.contains(o,h,l));if(typeof f=="string"){if(a(o)||a(f))return!1;if(o.includes(f)||o.startsWith("./")&&o.slice(2).includes(f))return!0}return s.isMatch(o,f,{...l,contains:!0})},s.matchKeys=(o,f,l)=>{if(!c.isObject(o))throw new TypeError("Expected the first argument to be an object");let h=s(Object.keys(o),f,l),u={};for(let d of h)u[d]=o[d];return u},s.some=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(h.some(p=>d(p)))return!0}return!1},s.every=(o,f,l)=>{let h=[].concat(o);for(let u of[].concat(f)){let d=i(String(u),l);if(!h.every(p=>d(p)))return!1}return!0},s.all=(o,f,l)=>{if(typeof o!="string")throw new TypeError(`Expected a string: "${t.inspect(o)}"`);return[].concat(f).every(h=>i(h,l)(o))},s.capture=(o,f,l)=>{let h=c.isWindows(l),u=i.makeRe(String(o),{...l,capture:!0}).exec(h?c.toPosixSlashes(f):f);if(u)return u.slice(1).map(d=>d===void 0?"":d)},s.makeRe=(...o)=>i.makeRe(...o),s.scan=(...o)=>i.scan(...o),s.parse=(o,f)=>{let l=[];for(let h of[].concat(o||[]))for(let u of n(String(h),f))l.push(i.parse(u,f));return l},s.braces=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return f&&f.nobrace===!0||!/\{.*\}/.test(o)?[o]:n(o,f)},s.braceExpand=(o,f)=>{if(typeof o!="string")throw new TypeError("Expected a string");return s.braces(o,{...f,expand:!0})},r.exports=s}),iB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.matchAny=e.convertPatternsToRe=e.makeRe=e.getPatternParts=e.expandBraceExpansion=e.expandPatternsWithBraceExpansion=e.isAffectDepthOfReadingPattern=e.endsWithSlashGlobStar=e.hasGlobStar=e.getBaseDirectory=e.isPatternRelatedToParentDirectory=e.getPatternsOutsideCurrentDirectory=e.getPatternsInsideCurrentDirectory=e.getPositivePatterns=e.getNegativePatterns=e.isPositivePattern=e.isNegativePattern=e.convertToNegativePattern=e.convertToPositivePattern=e.isDynamicPattern=e.isStaticPattern=void 0;var r=le("path"),t=zP(),n=nB(),i="**",c="\\",a=/[*?]|^!/,s=/\[[^[]*]/,o=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,f=/[!*+?@]\([^(]*\)/,l=/,|\.\./;function h(I,H={}){return!u(I,H)}e.isStaticPattern=h;function u(I,H={}){return I===""?!1:!!(H.caseSensitiveMatch===!1||I.includes(c)||a.test(I)||s.test(I)||o.test(I)||H.extglob!==!1&&f.test(I)||H.braceExpansion!==!1&&d(I))}e.isDynamicPattern=u;function d(I){let H=I.indexOf("{");if(H===-1)return!1;let z=I.indexOf("}",H+1);if(z===-1)return!1;let re=I.slice(H,z);return l.test(re)}function p(I){return b(I)?I.slice(1):I}e.convertToPositivePattern=p;function y(I){return"!"+I}e.convertToNegativePattern=y;function b(I){return I.startsWith("!")&&I[1]!=="("}e.isNegativePattern=b;function _(I){return!b(I)}e.isPositivePattern=_;function g(I){return I.filter(b)}e.getNegativePatterns=g;function S(I){return I.filter(_)}e.getPositivePatterns=S;function E(I){return I.filter(H=>!m(H))}e.getPatternsInsideCurrentDirectory=E;function v(I){return I.filter(m)}e.getPatternsOutsideCurrentDirectory=v;function m(I){return I.startsWith("..")||I.startsWith("./..")}e.isPatternRelatedToParentDirectory=m;function w(I){return t(I,{flipBackslashes:!1})}e.getBaseDirectory=w;function A(I){return I.includes(i)}e.hasGlobStar=A;function x(I){return I.endsWith("/"+i)}e.endsWithSlashGlobStar=x;function R(I){let H=r.basename(I);return x(I)||h(H)}e.isAffectDepthOfReadingPattern=R;function P(I){return I.reduce((H,z)=>H.concat(F(z)),[])}e.expandPatternsWithBraceExpansion=P;function F(I){return n.braces(I,{expand:!0,nodupes:!0})}e.expandBraceExpansion=F;function O(I,H){let{parts:z}=n.scan(I,Object.assign(Object.assign({},H),{parts:!0}));return z.length===0&&(z=[I]),z[0].startsWith("/")&&(z[0]=z[0].slice(1),z.unshift("")),z}e.getPatternParts=O;function D(I,H){return n.makeRe(I,H)}e.makeRe=D;function k(I,H){return I.map(z=>D(z,H))}e.convertPatternsToRe=k;function L(I,H){return H.some(z=>z.test(I))}e.matchAny=L}),sB=ee((e,r)=>{"use strict";K();var t=le("stream"),n=t.PassThrough,i=Array.prototype.slice;r.exports=c;function c(){let s=[],o=i.call(arguments),f=!1,l=o[o.length-1];l&&!Array.isArray(l)&&l.pipe==null?o.pop():l={};let h=l.end!==!1,u=l.pipeError===!0;l.objectMode==null&&(l.objectMode=!0),l.highWaterMark==null&&(l.highWaterMark=64*1024);let d=n(l);function p(){for(let _=0,g=arguments.length;_<g;_++)s.push(a(arguments[_],l));return y(),this}function y(){if(f)return;f=!0;let _=s.shift();if(!_){process.nextTick(b);return}Array.isArray(_)||(_=[_]);let g=_.length+1;function S(){--g>0||(f=!1,y())}function E(v){function m(){v.removeListener("merge2UnpipeEnd",m),v.removeListener("end",m),u&&v.removeListener("error",w),S()}function w(A){d.emit("error",A)}if(v._readableState.endEmitted)return S();v.on("merge2UnpipeEnd",m),v.on("end",m),u&&v.on("error",w),v.pipe(d,{end:!1}),v.resume()}for(let v=0;v<_.length;v++)E(_[v]);S()}function b(){f=!1,d.emit("queueDrain"),h&&d.end()}return d.setMaxListeners(0),d.add=p,d.on("unpipe",function(_){_.emit("merge2UnpipeEnd")}),o.length&&p.apply(null,o),d}function a(s,o){if(Array.isArray(s))for(let f=0,l=s.length;f<l;f++)s[f]=a(s[f],o);else{if(!s._readableState&&s.pipe&&(s=s.pipe(n(o))),!s._readableState||!s.pause||!s.pipe)throw new Error("Only readable stream can be merged.");s.pause()}return s}}),oB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.merge=void 0;var r=sB();function t(i){let c=r(i);return i.forEach(a=>{a.once("error",s=>c.emit("error",s))}),c.once("close",()=>n(i)),c.once("end",()=>n(i)),c}e.merge=t;function n(i){i.forEach(c=>c.emit("close"))}}),aB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.isEmpty=e.isString=void 0;function r(n){return typeof n=="string"}e.isString=r;function t(n){return n===""}e.isEmpty=t}),mr=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.string=e.stream=e.pattern=e.path=e.fs=e.errno=e.array=void 0;var r=jP();e.array=r;var t=$P();e.errno=t;var n=HP();e.fs=n;var i=UP();e.path=i;var c=iB();e.pattern=c;var a=oB();e.stream=a;var s=aB();e.string=s}),uB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.convertPatternGroupToTask=e.convertPatternGroupsToTasks=e.groupPatternsByBaseDirectory=e.getNegativePatternsAsPositive=e.getPositivePatterns=e.convertPatternsToTasks=e.generate=void 0;var r=mr();function t(f,l){let h=i(f),u=c(f,l.ignore),d=h.filter(_=>r.pattern.isStaticPattern(_,l)),p=h.filter(_=>r.pattern.isDynamicPattern(_,l)),y=n(d,u,!1),b=n(p,u,!0);return y.concat(b)}e.generate=t;function n(f,l,h){let u=[],d=r.pattern.getPatternsOutsideCurrentDirectory(f),p=r.pattern.getPatternsInsideCurrentDirectory(f),y=a(d),b=a(p);return u.push(...s(y,l,h)),"."in b?u.push(o(".",p,l,h)):u.push(...s(b,l,h)),u}e.convertPatternsToTasks=n;function i(f){return r.pattern.getPositivePatterns(f)}e.getPositivePatterns=i;function c(f,l){return r.pattern.getNegativePatterns(f).concat(l).map(r.pattern.convertToPositivePattern)}e.getNegativePatternsAsPositive=c;function a(f){let l={};return f.reduce((h,u)=>{let d=r.pattern.getBaseDirectory(u);return d in h?h[d].push(u):h[d]=[u],h},l)}e.groupPatternsByBaseDirectory=a;function s(f,l,h){return Object.keys(f).map(u=>o(u,f[u],l,h))}e.convertPatternGroupsToTasks=s;function o(f,l,h,u){return{dynamic:u,positive:l,negative:h,base:f,patterns:[].concat(l,h.map(r.pattern.convertToNegativePattern))}}e.convertPatternGroupToTask=o}),lB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.removeDuplicateSlashes=e.transform=void 0;var r=/(?!^)\/{2,}/g;function t(i){return i.map(c=>n(c))}e.transform=t;function n(i){return i.replace(r,"/")}e.removeDuplicateSlashes=n}),cB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(i,c,a){c.fs.lstat(i,(s,o)=>{if(s!==null){t(a,s);return}if(!o.isSymbolicLink()||!c.followSymbolicLink){n(a,o);return}c.fs.stat(i,(f,l)=>{if(f!==null){if(c.throwErrorOnBrokenSymbolicLink){t(a,f);return}n(a,o);return}c.markSymbolicLink&&(l.isSymbolicLink=()=>!0),n(a,l)})})}e.read=r;function t(i,c){i(c)}function n(i,c){i(null,c)}}),hB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.read=void 0;function r(t,n){let i=n.fs.lstatSync(t);if(!i.isSymbolicLink()||!n.followSymbolicLink)return i;try{let c=n.fs.statSync(t);return n.markSymbolicLink&&(c.isSymbolicLink=()=>!0),c}catch(c){if(!n.throwErrorOnBrokenSymbolicLink)return i;throw c}}e.read=r}),fB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),pB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=fB(),t=class{constructor(n={}){this._options=n,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=r.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(n,i){return n!=null?n:i}};e.default=t}),An=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.statSync=e.stat=e.Settings=void 0;var r=cB(),t=hB(),n=pB();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.stat=i;function c(s,o){let f=a(o);return t.read(s,f)}e.statSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),dB=ee((e,r)=>{K();var t;r.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):n=>(t||(t=Promise.resolve())).then(n).catch(i=>setTimeout(()=>{throw i},0))}),mB=ee((e,r)=>{K(),r.exports=n;var t=dB();function n(i,c){let a,s,o,f=!0;Array.isArray(i)?(a=[],s=i.length):(o=Object.keys(i),a={},s=o.length);function l(u){function d(){c&&c(u,a),c=null}f?t(d):d()}function h(u,d,p){a[u]=p,(--s===0||d)&&l(d)}s?o?o.forEach(function(u){i[u](function(d,p){h(u,d,p)})}):i.forEach(function(u,d){u(function(p,y){h(d,p,y)})}):l(null),f=!1}}),N1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var r=process.versions.node.split(".");if(r[0]===void 0||r[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var t=Number.parseInt(r[0],10),n=Number.parseInt(r[1],10),i=10,c=10,a=t>i,s=t===i&&n>=c;e.IS_SUPPORT_READDIR_WITH_FILE_TYPES=a||s}),yB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.createDirentFromStats=void 0;var r=class{constructor(n,i){this.name=n,this.isBlockDevice=i.isBlockDevice.bind(i),this.isCharacterDevice=i.isCharacterDevice.bind(i),this.isDirectory=i.isDirectory.bind(i),this.isFIFO=i.isFIFO.bind(i),this.isFile=i.isFile.bind(i),this.isSocket=i.isSocket.bind(i),this.isSymbolicLink=i.isSymbolicLink.bind(i)}};function t(n,i){return new r(n,i)}e.createDirentFromStats=t}),j1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.fs=void 0;var r=yB();e.fs=r}),$1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=void 0;function r(t,n,i){return t.endsWith(i)?t+n:t+i+n}e.joinPathSegments=r}),gB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=An(),t=mB(),n=N1(),i=j1(),c=$1();function a(u,d,p){if(!d.stats&&n.IS_SUPPORT_READDIR_WITH_FILE_TYPES){s(u,d,p);return}f(u,d,p)}e.read=a;function s(u,d,p){d.fs.readdir(u,{withFileTypes:!0},(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(S=>({dirent:S,name:S.name,path:c.joinPathSegments(u,S.name,d.pathSegmentSeparator)}));if(!d.followSymbolicLinks){h(p,_);return}let g=_.map(S=>o(S,d));t(g,(S,E)=>{if(S!==null){l(p,S);return}h(p,E)})})}e.readdirWithFileTypes=s;function o(u,d){return p=>{if(!u.dirent.isSymbolicLink()){p(null,u);return}d.fs.stat(u.path,(y,b)=>{if(y!==null){if(d.throwErrorOnBrokenSymbolicLink){p(y);return}p(null,u);return}u.dirent=i.fs.createDirentFromStats(u.name,b),p(null,u)})}}function f(u,d,p){d.fs.readdir(u,(y,b)=>{if(y!==null){l(p,y);return}let _=b.map(g=>{let S=c.joinPathSegments(u,g,d.pathSegmentSeparator);return E=>{r.stat(S,d.fsStatSettings,(v,m)=>{if(v!==null){E(v);return}let w={name:g,path:S,dirent:i.fs.createDirentFromStats(g,m)};d.stats&&(w.stats=m),E(null,w)})}});t(_,(g,S)=>{if(g!==null){l(p,g);return}h(p,S)})})}e.readdir=f;function l(u,d){u(d)}function h(u,d){u(null,d)}}),bB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.readdir=e.readdirWithFileTypes=e.read=void 0;var r=An(),t=N1(),n=j1(),i=$1();function c(o,f){return!f.stats&&t.IS_SUPPORT_READDIR_WITH_FILE_TYPES?a(o,f):s(o,f)}e.read=c;function a(o,f){return f.fs.readdirSync(o,{withFileTypes:!0}).map(l=>{let h={dirent:l,name:l.name,path:i.joinPathSegments(o,l.name,f.pathSegmentSeparator)};if(h.dirent.isSymbolicLink()&&f.followSymbolicLinks)try{let u=f.fs.statSync(h.path);h.dirent=n.fs.createDirentFromStats(h.name,u)}catch(u){if(f.throwErrorOnBrokenSymbolicLink)throw u}return h})}e.readdirWithFileTypes=a;function s(o,f){return f.fs.readdirSync(o).map(l=>{let h=i.joinPathSegments(o,l,f.pathSegmentSeparator),u=r.statSync(h,f.fsStatSettings),d={name:l,path:h,dirent:n.fs.createDirentFromStats(l,u)};return f.stats&&(d.stats=u),d})}e.readdir=s}),vB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.createFileSystemAdapter=e.FILE_SYSTEM_ADAPTER=void 0;var r=le("fs");e.FILE_SYSTEM_ADAPTER={lstat:r.lstat,stat:r.stat,lstatSync:r.lstatSync,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};function t(n){return n===void 0?e.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},e.FILE_SYSTEM_ADAPTER),n)}e.createFileSystemAdapter=t}),_B=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=An(),n=vB(),i=class{constructor(c={}){this._options=c,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=n.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new t.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(c,a){return c!=null?c:a}};e.default=i}),Bl=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.scandirSync=e.scandir=void 0;var r=gB(),t=bB(),n=_B();e.Settings=n.default;function i(s,o,f){if(typeof o=="function"){r.read(s,a(),o);return}r.read(s,a(o),f)}e.scandir=i;function c(s,o){let f=a(o);return t.read(s,f)}e.scandirSync=c;function a(s={}){return s instanceof n.default?s:new n.default(s)}}),wB=ee((e,r)=>{"use strict";K();function t(n){var i=new n,c=i;function a(){var o=i;return o.next?i=o.next:(i=new n,c=i),o.next=null,o}function s(o){c.next=o,c=o}return{get:a,release:s}}r.exports=t}),EB=ee((e,r)=>{"use strict";K();var t=wB();function n(s,o,f){if(typeof s=="function"&&(f=o,o=s,s=null),f<1)throw new Error("fastqueue concurrency must be greater than 1");var l=t(c),h=null,u=null,d=0,p=null,y={push:m,drain:i,saturated:i,pause:_,paused:!1,concurrency:f,running:b,resume:E,idle:v,length:g,getQueue:S,unshift:w,empty:i,kill:x,killAndDrain:R,error:P};return y;function b(){return d}function _(){y.paused=!0}function g(){for(var F=h,O=0;F;)F=F.next,O++;return O}function S(){for(var F=h,O=[];F;)O.push(F.value),F=F.next;return O}function E(){if(y.paused){y.paused=!1;for(var F=0;F<y.concurrency;F++)d++,A()}}function v(){return d===0&&y.length()===0}function m(F,O){var D=l.get();D.context=s,D.release=A,D.value=F,D.callback=O||i,D.errorHandler=p,d===y.concurrency||y.paused?u?(u.next=D,u=D):(h=D,u=D,y.saturated()):(d++,o.call(s,D.value,D.worked))}function w(F,O){var D=l.get();D.context=s,D.release=A,D.value=F,D.callback=O||i,d===y.concurrency||y.paused?h?(D.next=h,h=D):(h=D,u=D,y.saturated()):(d++,o.call(s,D.value,D.worked))}function A(F){F&&l.release(F);var O=h;O?y.paused?d--:(u===h&&(u=null),h=O.next,O.next=null,o.call(s,O.value,O.worked),u===null&&y.empty()):--d===0&&y.drain()}function x(){h=null,u=null,y.drain=i}function R(){h=null,u=null,y.drain(),y.drain=i}function P(F){p=F}}function i(){}function c(){this.value=null,this.callback=i,this.next=null,this.release=i,this.context=null,this.errorHandler=null;var s=this;this.worked=function(o,f){var l=s.callback,h=s.errorHandler,u=s.value;s.value=null,s.callback=i,s.errorHandler&&h(o,u),l.call(s.context,o,f),s.release(s)}}function a(s,o,f){typeof s=="function"&&(f=o,o=s,s=null);function l(_,g){o.call(this,_).then(function(S){g(null,S)},g)}var h=n(s,l,f),u=h.push,d=h.unshift;return h.push=p,h.unshift=y,h.drained=b,h;function p(_){var g=new Promise(function(S,E){u(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function y(_){var g=new Promise(function(S,E){d(_,function(v,m){if(v){E(v);return}S(m)})});return g.catch(i),g}function b(){var _=h.drain,g=new Promise(function(S){h.drain=function(){_(),S()}});return g}}r.exports=n,r.exports.promise=a}),Il=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.joinPathSegments=e.replacePathSegmentSeparator=e.isAppliedFilter=e.isFatalError=void 0;function r(c,a){return c.errorFilter===null?!0:!c.errorFilter(a)}e.isFatalError=r;function t(c,a){return c===null||c(a)}e.isAppliedFilter=t;function n(c,a){return c.split(/[/\\]/).join(a)}e.replacePathSegmentSeparator=n;function i(c,a,s){return c===""?a:c.endsWith(s)?c+a:c+s+a}e.joinPathSegments=i}),H1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=Il(),t=class{constructor(n,i){this._root=n,this._settings=i,this._root=r.replacePathSegmentSeparator(n,i.pathSegmentSeparator)}};e.default=t}),U1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("events"),t=Bl(),n=EB(),i=Il(),c=H1(),a=class extends c.default{constructor(s,o){super(s,o),this._settings=o,this._scandir=t.scandir,this._emitter=new r.EventEmitter,this._queue=n(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(s){this._emitter.on("entry",s)}onError(s){this._emitter.once("error",s)}onEnd(s){this._emitter.once("end",s)}_pushToQueue(s,o){let f={directory:s,base:o};this._queue.push(f,l=>{l!==null&&this._handleError(l)})}_worker(s,o){this._scandir(s.directory,this._settings.fsScandirSettings,(f,l)=>{if(f!==null){o(f,void 0);return}for(let h of l)this._handleEntry(h,s.base);o(null,void 0)})}_handleError(s){this._isDestroyed||!i.isFatalError(this._settings,s)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",s))}_handleEntry(s,o){if(this._isDestroyed||this._isFatalError)return;let f=s.path;o!==void 0&&(s.path=i.joinPathSegments(o,s.name,this._settings.pathSegmentSeparator)),i.isAppliedFilter(this._settings.entryFilter,s)&&this._emitEntry(s),s.dirent.isDirectory()&&i.isAppliedFilter(this._settings.deepFilter,s)&&this._pushToQueue(f,o===void 0?void 0:s.path)}_emitEntry(s){this._emitter.emit("entry",s)}};e.default=a}),SB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=U1(),t=class{constructor(c,a){this._root=c,this._settings=a,this._reader=new r.default(this._root,this._settings),this._storage=[]}read(c){this._reader.onError(a=>{n(c,a)}),this._reader.onEntry(a=>{this._storage.push(a)}),this._reader.onEnd(()=>{i(c,this._storage)}),this._reader.read()}};e.default=t;function n(c,a){c(a)}function i(c,a){c(null,a)}}),AB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=U1(),n=class{constructor(i,c){this._root=i,this._settings=c,this._reader=new t.default(this._root,this._settings),this._stream=new r.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(i=>{this._stream.emit("error",i)}),this._reader.onEntry(i=>{this._stream.push(i)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};e.default=n}),xB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=Bl(),t=Il(),n=H1(),i=class extends n.default{constructor(){super(...arguments),this._scandir=r.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(c,a){this._queue.add({directory:c,base:a})}_handleQueue(){for(let c of this._queue.values())this._handleDirectory(c.directory,c.base)}_handleDirectory(c,a){try{let s=this._scandir(c,this._settings.fsScandirSettings);for(let o of s)this._handleEntry(o,a)}catch(s){this._handleError(s)}}_handleError(c){if(t.isFatalError(this._settings,c))throw c}_handleEntry(c,a){let s=c.path;a!==void 0&&(c.path=t.joinPathSegments(a,c.name,this._settings.pathSegmentSeparator)),t.isAppliedFilter(this._settings.entryFilter,c)&&this._pushToStorage(c),c.dirent.isDirectory()&&t.isAppliedFilter(this._settings.deepFilter,c)&&this._pushToQueue(s,a===void 0?void 0:c.path)}_pushToStorage(c){this._storage.push(c)}};e.default=i}),CB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=xB(),t=class{constructor(n,i){this._root=n,this._settings=i,this._reader=new r.default(this._root,this._settings)}read(){return this._reader.read()}};e.default=t}),kB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=Bl(),n=class{constructor(i={}){this._options=i,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,r.sep),this.fsScandirSettings=new t.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(i,c){return i!=null?i:c}};e.default=n}),Ll=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.Settings=e.walkStream=e.walkSync=e.walk=void 0;var r=SB(),t=AB(),n=CB(),i=kB();e.Settings=i.default;function c(f,l,h){if(typeof l=="function"){new r.default(f,o()).read(l);return}new r.default(f,o(l)).read(h)}e.walk=c;function a(f,l){let h=o(l);return new n.default(f,h).read()}e.walkSync=a;function s(f,l){let h=o(l);return new t.default(f,h).read()}e.walkStream=s;function o(f={}){return f instanceof i.default?f:new i.default(f)}}),Ml=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=An(),n=mr(),i=class{constructor(c){this._settings=c,this._fsStatSettings=new t.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(c){return r.resolve(this._settings.cwd,c)}_makeEntry(c,a){let s={name:a,path:a,dirent:n.fs.createDirentFromStats(a,c)};return this._settings.stats&&(s.stats=c),s}_isFatalError(c){return!n.errno.isEnoentCodeError(c)&&!this._settings.suppressErrors}};e.default=i}),q1=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=An(),n=Ll(),i=Ml(),c=class extends i.default{constructor(){super(...arguments),this._walkStream=n.walkStream,this._stat=t.stat}dynamic(a,s){return this._walkStream(a,s)}static(a,s){let o=a.map(this._getFullEntryPath,this),f=new r.PassThrough({objectMode:!0});f._write=(l,h,u)=>this._getEntry(o[l],a[l],s).then(d=>{d!==null&&s.entryFilter(d)&&f.push(d),l===o.length-1&&f.end(),u()}).catch(u);for(let l=0;l<o.length;l++)f.write(l);return f}_getEntry(a,s,o){return this._getStat(a).then(f=>this._makeEntry(f,s)).catch(f=>{if(o.errorFilter(f))return null;throw f})}_getStat(a){return new Promise((s,o)=>{this._stat(a,this._fsStatSettings,(f,l)=>f===null?s(l):o(f))})}};e.default=c}),DB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=Ll(),t=Ml(),n=q1(),i=class extends t.default{constructor(){super(...arguments),this._walkAsync=r.walk,this._readerStream=new n.default(this._settings)}dynamic(c,a){return new Promise((s,o)=>{this._walkAsync(c,a,(f,l)=>{f===null?s(l):o(f)})})}async static(c,a){let s=[],o=this._readerStream.static(c,a);return new Promise((f,l)=>{o.once("error",l),o.on("data",h=>s.push(h)),o.once("end",()=>f(s))})}};e.default=i}),RB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr(),t=class{constructor(n,i,c){this._patterns=n,this._settings=i,this._micromatchOptions=c,this._storage=[],this._fillStorage()}_fillStorage(){let n=r.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let i of n){let c=this._getPatternSegments(i),a=this._splitSegmentsIntoSections(c);this._storage.push({complete:a.length<=1,pattern:i,segments:c,sections:a})}}_getPatternSegments(n){return r.pattern.getPatternParts(n,this._micromatchOptions).map(i=>r.pattern.isDynamicPattern(i,this._settings)?{dynamic:!0,pattern:i,patternRe:r.pattern.makeRe(i,this._micromatchOptions)}:{dynamic:!1,pattern:i})}_splitSegmentsIntoSections(n){return r.array.splitWhen(n,i=>i.dynamic&&r.pattern.hasGlobStar(i.pattern))}};e.default=t}),OB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=RB(),t=class extends r.default{match(n){let i=n.split("/"),c=i.length,a=this._storage.filter(s=>!s.complete||s.segments.length>c);for(let s of a){let o=s.sections[0];if(!s.complete&&c>o.length||i.every((f,l)=>{let h=s.segments[l];return!!(h.dynamic&&h.patternRe.test(f)||!h.dynamic&&h.pattern===f)}))return!0}return!1}};e.default=t}),TB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr(),t=OB(),n=class{constructor(i,c){this._settings=i,this._micromatchOptions=c}getFilter(i,c,a){let s=this._getMatcher(c),o=this._getNegativePatternsRe(a);return f=>this._filter(i,f,s,o)}_getMatcher(i){return new t.default(i,this._settings,this._micromatchOptions)}_getNegativePatternsRe(i){let c=i.filter(r.pattern.isAffectDepthOfReadingPattern);return r.pattern.convertPatternsToRe(c,this._micromatchOptions)}_filter(i,c,a,s){if(this._isSkippedByDeep(i,c.path)||this._isSkippedSymbolicLink(c))return!1;let o=r.path.removeLeadingDotSegment(c.path);return this._isSkippedByPositivePatterns(o,a)?!1:this._isSkippedByNegativePatterns(o,s)}_isSkippedByDeep(i,c){return this._settings.deep===1/0?!1:this._getEntryLevel(i,c)>=this._settings.deep}_getEntryLevel(i,c){let a=c.split("/").length;if(i==="")return a;let s=i.split("/").length;return a-s}_isSkippedSymbolicLink(i){return!this._settings.followSymbolicLinks&&i.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(i,c){return!this._settings.baseNameMatch&&!c.match(i)}_isSkippedByNegativePatterns(i,c){return!r.pattern.matchAny(i,c)}};e.default=n}),FB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr(),t=class{constructor(n,i){this._settings=n,this._micromatchOptions=i,this.index=new Map}getFilter(n,i){let c=r.pattern.convertPatternsToRe(n,this._micromatchOptions),a=r.pattern.convertPatternsToRe(i,this._micromatchOptions);return s=>this._filter(s,c,a)}_filter(n,i,c){if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(n)||this._onlyDirectoryFilter(n)||this._isSkippedByAbsoluteNegativePatterns(n.path,c))return!1;let a=this._settings.baseNameMatch?n.name:n.path,s=n.dirent.isDirectory(),o=this._isMatchToPatterns(a,i,s)&&!this._isMatchToPatterns(n.path,c,s);return this._settings.unique&&o&&this._createIndexRecord(n),o}_isDuplicateEntry(n){return this.index.has(n.path)}_createIndexRecord(n){this.index.set(n.path,void 0)}_onlyFileFilter(n){return this._settings.onlyFiles&&!n.dirent.isFile()}_onlyDirectoryFilter(n){return this._settings.onlyDirectories&&!n.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(n,i){if(!this._settings.absolute)return!1;let c=r.path.makeAbsolute(this._settings.cwd,n);return r.pattern.matchAny(c,i)}_isMatchToPatterns(n,i,c){let a=r.path.removeLeadingDotSegment(n),s=r.pattern.matchAny(a,i);return!s&&c?r.pattern.matchAny(a+"/",i):s}};e.default=t}),PB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr(),t=class{constructor(n){this._settings=n}getFilter(){return n=>this._isNonFatalError(n)}_isNonFatalError(n){return r.errno.isEnoentCodeError(n)||this._settings.suppressErrors}};e.default=t}),BB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=mr(),t=class{constructor(n){this._settings=n}getTransformer(){return n=>this._transform(n)}_transform(n){let i=n.path;return this._settings.absolute&&(i=r.path.makeAbsolute(this._settings.cwd,i),i=r.path.unixify(i)),this._settings.markDirectories&&n.dirent.isDirectory()&&(i+="/"),this._settings.objectMode?Object.assign(Object.assign({},n),{path:i}):i}};e.default=t}),Nl=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("path"),t=TB(),n=FB(),i=PB(),c=BB(),a=class{constructor(s){this._settings=s,this.errorFilter=new i.default(this._settings),this.entryFilter=new n.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new t.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new c.default(this._settings)}_getRootDirectory(s){return r.resolve(this._settings.cwd,s.base)}_getReaderOptions(s){let o=s.base==="."?"":s.base;return{basePath:o,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(o,s.positive,s.negative),entryFilter:this.entryFilter.getFilter(s.positive,s.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};e.default=a}),IB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=DB(),t=Nl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}async read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return(await this.api(c,i,a)).map(s=>a.transform(s))}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),LB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=le("stream"),t=q1(),n=Nl(),i=class extends n.default{constructor(){super(...arguments),this._reader=new t.default(this._settings)}read(c){let a=this._getRootDirectory(c),s=this._getReaderOptions(c),o=this.api(a,c,s),f=new r.Readable({objectMode:!0,read:()=>{}});return o.once("error",l=>f.emit("error",l)).on("data",l=>f.emit("data",s.transform(l))).once("end",()=>f.emit("end")),f.once("close",()=>o.destroy()),f}api(c,a,s){return a.dynamic?this._reader.dynamic(c,s):this._reader.static(a.patterns,s)}};e.default=i}),MB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=An(),t=Ll(),n=Ml(),i=class extends n.default{constructor(){super(...arguments),this._walkSync=t.walkSync,this._statSync=r.statSync}dynamic(c,a){return this._walkSync(c,a)}static(c,a){let s=[];for(let o of c){let f=this._getFullEntryPath(o),l=this._getEntry(f,o,a);l===null||!a.entryFilter(l)||s.push(l)}return s}_getEntry(c,a,s){try{let o=this._getStat(c);return this._makeEntry(o,a)}catch(o){if(s.errorFilter(o))return null;throw o}}_getStat(c){return this._statSync(c,this._fsStatSettings)}};e.default=i}),NB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0});var r=MB(),t=Nl(),n=class extends t.default{constructor(){super(...arguments),this._reader=new r.default(this._settings)}read(i){let c=this._getRootDirectory(i),a=this._getReaderOptions(i);return this.api(c,i,a).map(a.transform)}api(i,c,a){return c.dynamic?this._reader.dynamic(i,a):this._reader.static(c.patterns,a)}};e.default=n}),jB=ee(e=>{"use strict";K(),Object.defineProperty(e,"__esModule",{value:!0}),e.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var r=le("fs"),t=le("os"),n=Math.max(t.cpus().length,1);e.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:r.lstat,lstatSync:r.lstatSync,stat:r.stat,statSync:r.statSync,readdir:r.readdir,readdirSync:r.readdirSync};var i=class{constructor(c={}){this._options=c,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,n),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(c,a){return c===void 0?a:c}_getFileSystemMethods(c={}){return Object.assign(Object.assign({},e.DEFAULT_FILE_SYSTEM_ADAPTER),c)}};e.default=i}),$B=ee((e,r)=>{"use strict";K();var t=uB(),n=lB(),i=IB(),c=LB(),a=NB(),s=jB(),o=mr();async function f(u,d){h(u);let p=l(u,i.default,d),y=await Promise.all(p);return o.array.flatten(y)}(function(u){function d(g,S){h(g);let E=l(g,a.default,S);return o.array.flatten(E)}u.sync=d;function p(g,S){h(g);let E=l(g,c.default,S);return o.stream.merge(E)}u.stream=p;function y(g,S){h(g);let E=n.transform([].concat(g)),v=new s.default(S);return t.generate(E,v)}u.generateTasks=y;function b(g,S){h(g);let E=new s.default(S);return o.pattern.isDynamicPattern(g,E)}u.isDynamicPattern=b;function _(g){return h(g),o.path.escape(g)}u.escapePath=_})(f||(f={}));function l(u,d,p){let y=n.transform([].concat(u)),b=new s.default(p),_=t.generate(y,b),g=new d(b);return _.map(g.read,g)}function h(u){if(![].concat(u).every(d=>o.string.isString(d)&&!o.string.isEmpty(d)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}r.exports=f});K();K();function G1(e){return typeof e>"u"||e===null}function HB(e){return typeof e=="object"&&e!==null}function UB(e){return Array.isArray(e)?e:G1(e)?[]:[e]}function qB(e,r){var t,n,i,c;if(r)for(c=Object.keys(r),t=0,n=c.length;t<n;t+=1)i=c[t],e[i]=r[i];return e}function GB(e,r){var t="",n;for(n=0;n<r;n+=1)t+=e;return t}function zB(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var WB=G1,VB=HB,YB=UB,KB=GB,XB=zB,ZB=qB,Ye={isNothing:WB,isObject:VB,toArray:YB,repeat:KB,isNegativeZero:XB,extend:ZB};function z1(e,r){var t="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(t+=`
|
152
|
+
|
153
|
+
`+e.mark.snippet),n+" "+t):n}function ci(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=z1(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ci.prototype=Object.create(Error.prototype);ci.prototype.constructor=ci;ci.prototype.toString=function(e){return this.name+": "+z1(this,e)};var ht=ci;function Al(e,r,t,n,i){var c="",a="",s=Math.floor(i/2)-1;return n-r>s&&(c=" ... ",r=n-s+c.length),t-n>s&&(a=" ...",t=n+s-a.length),{str:c+e.slice(r,t).replace(/\t/g,"\u2192")+a,pos:n-r+c.length}}function xl(e,r){return Ye.repeat(" ",r-e.length)+e}function JB(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var t=/\r?\n|\r|\0/g,n=[0],i=[],c,a=-1;c=t.exec(e.buffer);)i.push(c.index),n.push(c.index+c[0].length),e.position<=c.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var s="",o,f,l=Math.min(e.line+r.linesAfter,i.length).toString().length,h=r.maxLength-(r.indent+l+3);for(o=1;o<=r.linesBefore&&!(a-o<0);o++)f=Al(e.buffer,n[a-o],i[a-o],e.position-(n[a]-n[a-o]),h),s=Ye.repeat(" ",r.indent)+xl((e.line-o+1).toString(),l)+" | "+f.str+`
|
154
|
+
`+s;for(f=Al(e.buffer,n[a],i[a],e.position,h),s+=Ye.repeat(" ",r.indent)+xl((e.line+1).toString(),l)+" | "+f.str+`
|
155
|
+
`,s+=Ye.repeat("-",r.indent+l+3+f.pos)+`^
|
156
|
+
`,o=1;o<=r.linesAfter&&!(a+o>=i.length);o++)f=Al(e.buffer,n[a+o],i[a+o],e.position-(n[a]-n[a+o]),h),s+=Ye.repeat(" ",r.indent)+xl((e.line+o+1).toString(),l)+" | "+f.str+`
|
157
|
+
`;return s.replace(/\n$/,"")}var QB=JB,e6=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],t6=["scalar","sequence","mapping"];function r6(e){var r={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(n){r[String(n)]=t})}),r}function n6(e,r){if(r=r||{},Object.keys(r).forEach(function(t){if(e6.indexOf(t)===-1)throw new ht('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(t){return t},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=r6(r.styleAliases||null),t6.indexOf(this.kind)===-1)throw new ht('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var it=n6;function E1(e,r){var t=[];return e[r].forEach(function(n){var i=t.length;t.forEach(function(c,a){c.tag===n.tag&&c.kind===n.kind&&c.multi===n.multi&&(i=a)}),t[i]=n}),t}function i6(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,t;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(r=0,t=arguments.length;r<t;r+=1)arguments[r].forEach(n);return e}function kl(e){return this.extend(e)}kl.prototype.extend=function(e){var r=[],t=[];if(e instanceof it)t.push(e);else if(Array.isArray(e))t=t.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(t=t.concat(e.explicit));else throw new ht("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(i){if(!(i instanceof it))throw new ht("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new ht("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new ht("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),t.forEach(function(i){if(!(i instanceof it))throw new ht("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var n=Object.create(kl.prototype);return n.implicit=(this.implicit||[]).concat(r),n.explicit=(this.explicit||[]).concat(t),n.compiledImplicit=E1(n,"implicit"),n.compiledExplicit=E1(n,"explicit"),n.compiledTypeMap=i6(n.compiledImplicit,n.compiledExplicit),n};var s6=kl,o6=new it("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),a6=new it("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),u6=new it("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),l6=new s6({explicit:[o6,a6,u6]});function c6(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function h6(){return null}function f6(e){return e===null}var p6=new it("tag:yaml.org,2002:null",{kind:"scalar",resolve:c6,construct:h6,predicate:f6,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function d6(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function m6(e){return e==="true"||e==="True"||e==="TRUE"}function y6(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var g6=new it("tag:yaml.org,2002:bool",{kind:"scalar",resolve:d6,construct:m6,predicate:y6,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function b6(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function v6(e){return 48<=e&&e<=55}function _6(e){return 48<=e&&e<=57}function w6(e){if(e===null)return!1;var r=e.length,t=0,n=!1,i;if(!r)return!1;if(i=e[t],(i==="-"||i==="+")&&(i=e[++t]),i==="0"){if(t+1===r)return!0;if(i=e[++t],i==="b"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!b6(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(t++;t<r;t++)if(i=e[t],i!=="_"){if(!v6(e.charCodeAt(t)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;t<r;t++)if(i=e[t],i!=="_"){if(!_6(e.charCodeAt(t)))return!1;n=!0}return!(!n||i==="_")}function E6(e){var r=e,t=1,n;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),n=r[0],(n==="-"||n==="+")&&(n==="-"&&(t=-1),r=r.slice(1),n=r[0]),r==="0")return 0;if(n==="0"){if(r[1]==="b")return t*parseInt(r.slice(2),2);if(r[1]==="x")return t*parseInt(r.slice(2),16);if(r[1]==="o")return t*parseInt(r.slice(2),8)}return t*parseInt(r,10)}function S6(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ye.isNegativeZero(e)}var A6=new it("tag:yaml.org,2002:int",{kind:"scalar",resolve:w6,construct:E6,predicate:S6,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),x6=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function C6(e){return!(e===null||!x6.test(e)||e[e.length-1]==="_")}function k6(e){var r,t;return r=e.replace(/_/g,"").toLowerCase(),t=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:t*parseFloat(r,10)}var D6=/^[-+]?[0-9]+e/;function R6(e,r){var t;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ye.isNegativeZero(e))return"-0.0";return t=e.toString(10),D6.test(t)?t.replace("e",".e"):t}function O6(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ye.isNegativeZero(e))}var T6=new it("tag:yaml.org,2002:float",{kind:"scalar",resolve:C6,construct:k6,predicate:O6,represent:R6,defaultStyle:"lowercase"}),F6=l6.extend({implicit:[p6,g6,A6,T6]}),P6=F6,W1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),V1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function B6(e){return e===null?!1:W1.exec(e)!==null||V1.exec(e)!==null}function I6(e){var r,t,n,i,c,a,s,o=0,f=null,l,h,u;if(r=W1.exec(e),r===null&&(r=V1.exec(e)),r===null)throw new Error("Date resolve error");if(t=+r[1],n=+r[2]-1,i=+r[3],!r[4])return new Date(Date.UTC(t,n,i));if(c=+r[4],a=+r[5],s=+r[6],r[7]){for(o=r[7].slice(0,3);o.length<3;)o+="0";o=+o}return r[9]&&(l=+r[10],h=+(r[11]||0),f=(l*60+h)*6e4,r[9]==="-"&&(f=-f)),u=new Date(Date.UTC(t,n,i,c,a,s,o)),f&&u.setTime(u.getTime()-f),u}function L6(e){return e.toISOString()}var M6=new it("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:B6,construct:I6,instanceOf:Date,represent:L6});function N6(e){return e==="<<"||e===null}var j6=new it("tag:yaml.org,2002:merge",{kind:"scalar",resolve:N6}),jl=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
158
|
+
\r`;function $6(e){if(e===null)return!1;var r,t,n=0,i=e.length,c=jl;for(t=0;t<i;t++)if(r=c.indexOf(e.charAt(t)),!(r>64)){if(r<0)return!1;n+=6}return n%8===0}function H6(e){var r,t,n=e.replace(/[\r\n=]/g,""),i=n.length,c=jl,a=0,s=[];for(r=0;r<i;r++)r%4===0&&r&&(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)),a=a<<6|c.indexOf(n.charAt(r));return t=i%4*6,t===0?(s.push(a>>16&255),s.push(a>>8&255),s.push(a&255)):t===18?(s.push(a>>10&255),s.push(a>>2&255)):t===12&&s.push(a>>4&255),new Uint8Array(s)}function U6(e){var r="",t=0,n,i,c=e.length,a=jl;for(n=0;n<c;n++)n%3===0&&n&&(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]),t=(t<<8)+e[n];return i=c%3,i===0?(r+=a[t>>18&63],r+=a[t>>12&63],r+=a[t>>6&63],r+=a[t&63]):i===2?(r+=a[t>>10&63],r+=a[t>>4&63],r+=a[t<<2&63],r+=a[64]):i===1&&(r+=a[t>>2&63],r+=a[t<<4&63],r+=a[64],r+=a[64]),r}function q6(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var G6=new it("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$6,construct:H6,predicate:q6,represent:U6}),z6=Object.prototype.hasOwnProperty,W6=Object.prototype.toString;function V6(e){if(e===null)return!0;var r=[],t,n,i,c,a,s=e;for(t=0,n=s.length;t<n;t+=1){if(i=s[t],a=!1,W6.call(i)!=="[object Object]")return!1;for(c in i)if(z6.call(i,c))if(!a)a=!0;else return!1;if(!a)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Y6(e){return e!==null?e:[]}var K6=new it("tag:yaml.org,2002:omap",{kind:"sequence",resolve:V6,construct:Y6}),X6=Object.prototype.toString;function Z6(e){if(e===null)return!0;var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1){if(n=a[r],X6.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;c[r]=[i[0],n[i[0]]]}return!0}function J6(e){if(e===null)return[];var r,t,n,i,c,a=e;for(c=new Array(a.length),r=0,t=a.length;r<t;r+=1)n=a[r],i=Object.keys(n),c[r]=[i[0],n[i[0]]];return c}var Q6=new it("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Z6,construct:J6}),eI=Object.prototype.hasOwnProperty;function tI(e){if(e===null)return!0;var r,t=e;for(r in t)if(eI.call(t,r)&&t[r]!==null)return!1;return!0}function rI(e){return e!==null?e:{}}var nI=new it("tag:yaml.org,2002:set",{kind:"mapping",resolve:tI,construct:rI}),Y1=P6.extend({implicit:[M6,j6],explicit:[G6,K6,Q6,nI]}),dr=Object.prototype.hasOwnProperty,Us=1,K1=2,X1=3,qs=4,Cl=1,iI=2,S1=3,sI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oI=/[\x85\u2028\u2029]/,aI=/[,\[\]\{\}]/,Z1=/^(?:!|!!|![a-z\-]+!)$/i,J1=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function A1(e){return Object.prototype.toString.call(e)}function jt(e){return e===10||e===13}function Br(e){return e===9||e===32}function ft(e){return e===9||e===32||e===10||e===13}function wn(e){return e===44||e===91||e===93||e===123||e===125}function uI(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function lI(e){return e===120?2:e===117?4:e===85?8:0}function cI(e){return 48<=e&&e<=57?e-48:-1}function x1(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
159
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function hI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Q1=new Array(256),ey=new Array(256);for(Pr=0;Pr<256;Pr++)Q1[Pr]=x1(Pr)?1:0,ey[Pr]=x1(Pr);var Pr;function fI(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||Y1,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ty(e,r){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=QB(t),new ht(r,t)}function Oe(e,r){throw ty(e,r)}function Gs(e,r){e.onWarning&&e.onWarning.call(null,ty(e,r))}var C1={YAML:function(e,r,t){var n,i,c;e.version!==null&&Oe(e,"duplication of %YAML directive"),t.length!==1&&Oe(e,"YAML directive accepts exactly one argument"),n=/^([0-9]+)\.([0-9]+)$/.exec(t[0]),n===null&&Oe(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),c=parseInt(n[2],10),i!==1&&Oe(e,"unacceptable YAML version of the document"),e.version=t[0],e.checkLineBreaks=c<2,c!==1&&c!==2&&Gs(e,"unsupported YAML version of the document")},TAG:function(e,r,t){var n,i;t.length!==2&&Oe(e,"TAG directive accepts exactly two arguments"),n=t[0],i=t[1],Z1.test(n)||Oe(e,"ill-formed tag handle (first argument) of the TAG directive"),dr.call(e.tagMap,n)&&Oe(e,'there is a previously declared suffix for "'+n+'" tag handle'),J1.test(i)||Oe(e,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{Oe(e,"tag prefix is malformed: "+i)}e.tagMap[n]=i}};function pr(e,r,t,n){var i,c,a,s;if(r<t){if(s=e.input.slice(r,t),n)for(i=0,c=s.length;i<c;i+=1)a=s.charCodeAt(i),a===9||32<=a&&a<=1114111||Oe(e,"expected valid JSON character");else sI.test(s)&&Oe(e,"the stream contains non-printable characters");e.result+=s}}function k1(e,r,t,n){var i,c,a,s;for(Ye.isObject(t)||Oe(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(t),a=0,s=i.length;a<s;a+=1)c=i[a],dr.call(r,c)||(r[c]=t[c],n[c]=!0)}function En(e,r,t,n,i,c,a,s,o){var f,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),f=0,l=i.length;f<l;f+=1)Array.isArray(i[f])&&Oe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&A1(i[f])==="[object Object]"&&(i[f]="[object Object]");if(typeof i=="object"&&A1(i)==="[object Object]"&&(i="[object Object]"),i=String(i),r===null&&(r={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(f=0,l=c.length;f<l;f+=1)k1(e,r,c[f],t);else k1(e,r,c,t);else!e.json&&!dr.call(t,i)&&dr.call(r,i)&&(e.line=a||e.line,e.lineStart=s||e.lineStart,e.position=o||e.position,Oe(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(r,i,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[i]=c,delete t[i];return r}function $l(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Oe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function ze(e,r,t){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Br(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(r&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(jt(i))for($l(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return t!==-1&&n!==0&&e.lineIndent<t&&Gs(e,"deficient indentation"),n}function Ks(e){var r=e.position,t;return t=e.input.charCodeAt(r),!!((t===45||t===46)&&t===e.input.charCodeAt(r+1)&&t===e.input.charCodeAt(r+2)&&(r+=3,t=e.input.charCodeAt(r),t===0||ft(t)))}function Hl(e,r){r===1?e.result+=" ":r>1&&(e.result+=Ye.repeat(`
|
160
|
+
`,r-1))}function pI(e,r,t){var n,i,c,a,s,o,f,l,h=e.kind,u=e.result,d;if(d=e.input.charCodeAt(e.position),ft(d)||wn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ft(i)||t&&wn(i)))return!1;for(e.kind="scalar",e.result="",c=a=e.position,s=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ft(i)||t&&wn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ft(n))break}else{if(e.position===e.lineStart&&Ks(e)||t&&wn(d))break;if(jt(d))if(o=e.line,f=e.lineStart,l=e.lineIndent,ze(e,!1,-1),e.lineIndent>=r){s=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=o,e.lineStart=f,e.lineIndent=l;break}}s&&(pr(e,c,a,!1),Hl(e,e.line-o),c=a=e.position,s=!1),Br(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return pr(e,c,a,!1),e.result?!0:(e.kind=h,e.result=u,!1)}function dI(e,r){var t,n,i;if(t=e.input.charCodeAt(e.position),t!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(pr(e,n,e.position,!0),t=e.input.charCodeAt(++e.position),t===39)n=e.position,e.position++,i=e.position;else return!0;else jt(t)?(pr(e,n,i,!0),Hl(e,ze(e,!1,r)),n=i=e.position):e.position===e.lineStart&&Ks(e)?Oe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Oe(e,"unexpected end of the stream within a single quoted scalar")}function mI(e,r){var t,n,i,c,a,s;if(s=e.input.charCodeAt(e.position),s!==34)return!1;for(e.kind="scalar",e.result="",e.position++,t=n=e.position;(s=e.input.charCodeAt(e.position))!==0;){if(s===34)return pr(e,t,e.position,!0),e.position++,!0;if(s===92){if(pr(e,t,e.position,!0),s=e.input.charCodeAt(++e.position),jt(s))ze(e,!1,r);else if(s<256&&Q1[s])e.result+=ey[s],e.position++;else if((a=lI(s))>0){for(i=a,c=0;i>0;i--)s=e.input.charCodeAt(++e.position),(a=uI(s))>=0?c=(c<<4)+a:Oe(e,"expected hexadecimal character");e.result+=hI(c),e.position++}else Oe(e,"unknown escape sequence");t=n=e.position}else jt(s)?(pr(e,t,n,!0),Hl(e,ze(e,!1,r)),t=n=e.position):e.position===e.lineStart&&Ks(e)?Oe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Oe(e,"unexpected end of the stream within a double quoted scalar")}function yI(e,r){var t=!0,n,i,c,a=e.tag,s,o=e.anchor,f,l,h,u,d,p=Object.create(null),y,b,_,g;if(g=e.input.charCodeAt(e.position),g===91)l=93,d=!1,s=[];else if(g===123)l=125,d=!0,s={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),g=e.input.charCodeAt(++e.position);g!==0;){if(ze(e,!0,r),g=e.input.charCodeAt(e.position),g===l)return e.position++,e.tag=a,e.anchor=o,e.kind=d?"mapping":"sequence",e.result=s,!0;t?g===44&&Oe(e,"expected the node content, but found ','"):Oe(e,"missed comma between flow collection entries"),b=y=_=null,h=u=!1,g===63&&(f=e.input.charCodeAt(e.position+1),ft(f)&&(h=u=!0,e.position++,ze(e,!0,r))),n=e.line,i=e.lineStart,c=e.position,Sn(e,r,Us,!1,!0),b=e.tag,y=e.result,ze(e,!0,r),g=e.input.charCodeAt(e.position),(u||e.line===n)&&g===58&&(h=!0,g=e.input.charCodeAt(++e.position),ze(e,!0,r),Sn(e,r,Us,!1,!0),_=e.result),d?En(e,s,p,b,y,_,n,i,c):h?s.push(En(e,null,p,b,y,_,n,i,c)):s.push(y),ze(e,!0,r),g=e.input.charCodeAt(e.position),g===44?(t=!0,g=e.input.charCodeAt(++e.position)):t=!1}Oe(e,"unexpected end of the stream within a flow collection")}function gI(e,r){var t,n,i=Cl,c=!1,a=!1,s=r,o=0,f=!1,l,h;if(h=e.input.charCodeAt(e.position),h===124)n=!1;else if(h===62)n=!0;else return!1;for(e.kind="scalar",e.result="";h!==0;)if(h=e.input.charCodeAt(++e.position),h===43||h===45)Cl===i?i=h===43?S1:iI:Oe(e,"repeat of a chomping mode identifier");else if((l=cI(h))>=0)l===0?Oe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Oe(e,"repeat of an indentation width identifier"):(s=r+l-1,a=!0);else break;if(Br(h)){do h=e.input.charCodeAt(++e.position);while(Br(h));if(h===35)do h=e.input.charCodeAt(++e.position);while(!jt(h)&&h!==0)}for(;h!==0;){for($l(e),e.lineIndent=0,h=e.input.charCodeAt(e.position);(!a||e.lineIndent<s)&&h===32;)e.lineIndent++,h=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>s&&(s=e.lineIndent),jt(h)){o++;continue}if(e.lineIndent<s){i===S1?e.result+=Ye.repeat(`
|
161
|
+
`,c?1+o:o):i===Cl&&c&&(e.result+=`
|
162
|
+
`);break}for(n?Br(h)?(f=!0,e.result+=Ye.repeat(`
|
163
|
+
`,c?1+o:o)):f?(f=!1,e.result+=Ye.repeat(`
|
164
|
+
`,o+1)):o===0?c&&(e.result+=" "):e.result+=Ye.repeat(`
|
165
|
+
`,o):e.result+=Ye.repeat(`
|
166
|
+
`,c?1+o:o),c=!0,a=!0,o=0,t=e.position;!jt(h)&&h!==0;)h=e.input.charCodeAt(++e.position);pr(e,t,e.position,!1)}return!0}function D1(e,r){var t,n=e.tag,i=e.anchor,c=[],a,s=!1,o;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),o=e.input.charCodeAt(e.position);o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),!(o!==45||(a=e.input.charCodeAt(e.position+1),!ft(a))));){if(s=!0,e.position++,ze(e,!0,-1)&&e.lineIndent<=r){c.push(null),o=e.input.charCodeAt(e.position);continue}if(t=e.line,Sn(e,r,X1,!1,!0),c.push(e.result),ze(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>r)&&o!==0)Oe(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return s?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=c,!0):!1}function bI(e,r,t){var n,i,c,a,s,o,f=e.tag,l=e.anchor,h={},u=Object.create(null),d=null,p=null,y=null,b=!1,_=!1,g;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=h),g=e.input.charCodeAt(e.position);g!==0;){if(!b&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Oe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),c=e.line,(g===63||g===58)&&ft(n))g===63?(b&&(En(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!0,i=!0):b?(b=!1,i=!0):Oe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,g=n;else{if(a=e.line,s=e.lineStart,o=e.position,!Sn(e,t,K1,!1,!0))break;if(e.line===c){for(g=e.input.charCodeAt(e.position);Br(g);)g=e.input.charCodeAt(++e.position);if(g===58)g=e.input.charCodeAt(++e.position),ft(g)||Oe(e,"a whitespace character is expected after the key-value separator within a block mapping"),b&&(En(e,h,u,d,p,null,a,s,o),d=p=y=null),_=!0,b=!1,i=!1,d=e.tag,p=e.result;else if(_)Oe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=f,e.anchor=l,!0}else if(_)Oe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=f,e.anchor=l,!0}if((e.line===c||e.lineIndent>r)&&(b&&(a=e.line,s=e.lineStart,o=e.position),Sn(e,r,qs,!0,i)&&(b?p=e.result:y=e.result),b||(En(e,h,u,d,p,y,a,s,o),d=p=y=null),ze(e,!0,-1),g=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&g!==0)Oe(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return b&&En(e,h,u,d,p,null,a,s,o),_&&(e.tag=f,e.anchor=l,e.kind="mapping",e.result=h),_}function vI(e){var r,t=!1,n=!1,i,c,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Oe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",r=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(c=e.input.slice(r,e.position),a=e.input.charCodeAt(++e.position)):Oe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!ft(a);)a===33&&(n?Oe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(r-1,e.position+1),Z1.test(i)||Oe(e,"named tag handle cannot contain such characters"),n=!0,r=e.position+1)),a=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),aI.test(c)&&Oe(e,"tag suffix cannot contain flow indicator characters")}c&&!J1.test(c)&&Oe(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch{Oe(e,"tag name is malformed: "+c)}return t?e.tag=c:dr.call(e.tagMap,i)?e.tag=e.tagMap[i]+c:i==="!"?e.tag="!"+c:i==="!!"?e.tag="tag:yaml.org,2002:"+c:Oe(e,'undeclared tag handle "'+i+'"'),!0}function _I(e){var r,t;if(t=e.input.charCodeAt(e.position),t!==38)return!1;for(e.anchor!==null&&Oe(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),r=e.position;t!==0&&!ft(t)&&!wn(t);)t=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function wI(e){var r,t,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!ft(n)&&!wn(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&Oe(e,"name of an alias node must contain at least one character"),t=e.input.slice(r,e.position),dr.call(e.anchorMap,t)||Oe(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],ze(e,!0,-1),!0}function Sn(e,r,t,n,i){var c,a,s,o=1,f=!1,l=!1,h,u,d,p,y,b;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=a=s=qs===t||X1===t,n&&ze(e,!0,-1)&&(f=!0,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)),o===1)for(;vI(e)||_I(e);)ze(e,!0,-1)?(f=!0,s=c,e.lineIndent>r?o=1:e.lineIndent===r?o=0:e.lineIndent<r&&(o=-1)):s=!1;if(s&&(s=f||i),(o===1||qs===t)&&(Us===t||K1===t?y=r:y=r+1,b=e.position-e.lineStart,o===1?s&&(D1(e,b)||bI(e,b,y))||yI(e,y)?l=!0:(a&&gI(e,y)||dI(e,y)||mI(e,y)?l=!0:wI(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Oe(e,"alias node should not have any properties")):pI(e,y,Us===t)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):o===0&&(l=s&&D1(e,b))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Oe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),h=0,u=e.implicitTypes.length;h<u;h+=1)if(p=e.implicitTypes[h],p.resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(dr.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,d=e.typeMap.multi[e.kind||"fallback"],h=0,u=d.length;h<u;h+=1)if(e.tag.slice(0,d[h].tag.length)===d[h].tag){p=d[h];break}p||Oe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&p.kind!==e.kind&&Oe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Oe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function EI(e){var r=e.position,t,n,i,c=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(ze(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(c=!0,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!ft(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&Oe(e,"directive name must not be less than one character in length");a!==0;){for(;Br(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!jt(a));break}if(jt(a))break;for(t=e.position;a!==0&&!ft(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}a!==0&&$l(e),dr.call(C1,n)?C1[n](e,n,i):Gs(e,'unknown document directive "'+n+'"')}if(ze(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,ze(e,!0,-1)):c&&Oe(e,"directives end mark is expected"),Sn(e,e.lineIndent-1,qs,!1,!0),ze(e,!0,-1),e.checkLineBreaks&&oI.test(e.input.slice(r,e.position))&&Gs(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ks(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,ze(e,!0,-1));return}if(e.position<e.length-1)Oe(e,"end of the stream or a document separator is expected");else return}function ry(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
167
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new fI(e,r),n=e.indexOf("\0");for(n!==-1&&(t.position=n,Oe(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)EI(t);return t.documents}function SI(e,r,t){r!==null&&typeof r=="object"&&typeof t>"u"&&(t=r,r=null);var n=ry(e,t);if(typeof r!="function")return n;for(var i=0,c=n.length;i<c;i+=1)r(n[i])}function AI(e,r){var t=ry(e,r);if(t.length!==0){if(t.length===1)return t[0];throw new ht("expected a single document in the stream, but found more")}}var xI=SI,CI=AI,ny={loadAll:xI,load:CI},iy=Object.prototype.toString,sy=Object.prototype.hasOwnProperty,Ul=65279,kI=9,hi=10,DI=13,RI=32,OI=33,TI=34,Dl=35,FI=37,PI=38,BI=39,II=42,oy=44,LI=45,zs=58,MI=61,NI=62,jI=63,$I=64,ay=91,uy=93,HI=96,ly=123,UI=124,cy=125,st={};st[0]="\\0";st[7]="\\a";st[8]="\\b";st[9]="\\t";st[10]="\\n";st[11]="\\v";st[12]="\\f";st[13]="\\r";st[27]="\\e";st[34]='\\"';st[92]="\\\\";st[133]="\\N";st[160]="\\_";st[8232]="\\L";st[8233]="\\P";var qI=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],GI=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function zI(e,r){var t,n,i,c,a,s,o;if(r===null)return{};for(t={},n=Object.keys(r),i=0,c=n.length;i<c;i+=1)a=n[i],s=String(r[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),o=e.compiledTypeMap.fallback[a],o&&sy.call(o.styleAliases,s)&&(s=o.styleAliases[s]),t[a]=s;return t}function WI(e){var r,t,n;if(r=e.toString(16).toUpperCase(),e<=255)t="x",n=2;else if(e<=65535)t="u",n=4;else if(e<=4294967295)t="U",n=8;else throw new ht("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+Ye.repeat("0",n-r.length)+r}var VI=1,fi=2;function YI(e){this.schema=e.schema||Y1,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ye.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=zI(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fi:VI,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function R1(e,r){for(var t=Ye.repeat(" ",r),n=0,i=-1,c="",a,s=e.length;n<s;)i=e.indexOf(`
|
168
|
+
`,n),i===-1?(a=e.slice(n),n=s):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
169
|
+
`&&(c+=t),c+=a;return c}function Rl(e,r){return`
|
170
|
+
`+Ye.repeat(" ",e.indent*r)}function KI(e,r){var t,n,i;for(t=0,n=e.implicitTypes.length;t<n;t+=1)if(i=e.implicitTypes[t],i.resolve(r))return!0;return!1}function Ws(e){return e===RI||e===kI}function pi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Ul||65536<=e&&e<=1114111}function O1(e){return pi(e)&&e!==Ul&&e!==DI&&e!==hi}function T1(e,r,t){var n=O1(e),i=n&&!Ws(e);return(t?n:n&&e!==oy&&e!==ay&&e!==uy&&e!==ly&&e!==cy)&&e!==Dl&&!(r===zs&&!i)||O1(r)&&!Ws(r)&&e===Dl||r===zs&&i}function XI(e){return pi(e)&&e!==Ul&&!Ws(e)&&e!==LI&&e!==jI&&e!==zs&&e!==oy&&e!==ay&&e!==uy&&e!==ly&&e!==cy&&e!==Dl&&e!==PI&&e!==II&&e!==OI&&e!==UI&&e!==MI&&e!==NI&&e!==BI&&e!==TI&&e!==FI&&e!==$I&&e!==HI}function ZI(e){return!Ws(e)&&e!==zs}function li(e,r){var t=e.charCodeAt(r),n;return t>=55296&&t<=56319&&r+1<e.length&&(n=e.charCodeAt(r+1),n>=56320&&n<=57343)?(t-55296)*1024+n-56320+65536:t}function hy(e){var r=/^\n* /;return r.test(e)}var fy=1,Ol=2,py=3,dy=4,_n=5;function JI(e,r,t,n,i,c,a,s){var o,f=0,l=null,h=!1,u=!1,d=n!==-1,p=-1,y=XI(li(e,0))&&ZI(li(e,e.length-1));if(r||a)for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=li(e,o),!pi(f))return _n;y=y&&T1(f,l,s),l=f}else{for(o=0;o<e.length;f>=65536?o+=2:o++){if(f=li(e,o),f===hi)h=!0,d&&(u=u||o-p-1>n&&e[p+1]!==" ",p=o);else if(!pi(f))return _n;y=y&&T1(f,l,s),l=f}u=u||d&&o-p-1>n&&e[p+1]!==" "}return!h&&!u?y&&!a&&!i(e)?fy:c===fi?_n:Ol:t>9&&hy(e)?_n:a?c===fi?_n:Ol:u?dy:py}function QI(e,r,t,n,i){e.dump=function(){if(r.length===0)return e.quotingType===fi?'""':"''";if(!e.noCompatMode&&(qI.indexOf(r)!==-1||GI.test(r)))return e.quotingType===fi?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),s=n||e.flowLevel>-1&&t>=e.flowLevel;function o(f){return KI(e,f)}switch(JI(r,s,e.indent,a,o,e.quotingType,e.forceQuotes&&!n,i)){case fy:return r;case Ol:return"'"+r.replace(/'/g,"''")+"'";case py:return"|"+F1(r,e.indent)+P1(R1(r,c));case dy:return">"+F1(r,e.indent)+P1(R1(e9(r,a),c));case _n:return'"'+t9(r)+'"';default:throw new ht("impossible error: invalid scalar style")}}()}function F1(e,r){var t=hy(e)?String(r):"",n=e[e.length-1]===`
|
171
|
+
`,i=n&&(e[e.length-2]===`
|
172
|
+
`||e===`
|
173
|
+
`),c=i?"+":n?"":"-";return t+c+`
|
174
|
+
`}function P1(e){return e[e.length-1]===`
|
175
|
+
`?e.slice(0,-1):e}function e9(e,r){for(var t=/(\n+)([^\n]*)/g,n=function(){var f=e.indexOf(`
|
176
|
+
`);return f=f!==-1?f:e.length,t.lastIndex=f,B1(e.slice(0,f),r)}(),i=e[0]===`
|
177
|
+
`||e[0]===" ",c,a;a=t.exec(e);){var s=a[1],o=a[2];c=o[0]===" ",n+=s+(!i&&!c&&o!==""?`
|
178
|
+
`:"")+B1(o,r),i=c}return n}function B1(e,r){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,n,i=0,c,a=0,s=0,o="";n=t.exec(e);)s=n.index,s-i>r&&(c=a>i?a:s,o+=`
|
179
|
+
`+e.slice(i,c),i=c+1),a=s;return o+=`
|
180
|
+
`,e.length-i>r&&a>i?o+=e.slice(i,a)+`
|
181
|
+
`+e.slice(a+1):o+=e.slice(i),o.slice(1)}function t9(e){for(var r="",t=0,n,i=0;i<e.length;t>=65536?i+=2:i++)t=li(e,i),n=st[t],!n&&pi(t)?(r+=e[i],t>=65536&&(r+=e[i+1])):r+=n||WI(t);return r}function r9(e,r,t){var n="",i=e.tag,c,a,s;for(c=0,a=t.length;c<a;c+=1)s=t[c],e.replacer&&(s=e.replacer.call(t,String(c),s)),(Kt(e,r,s,!1,!1)||typeof s>"u"&&Kt(e,r,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function I1(e,r,t,n){var i="",c=e.tag,a,s,o;for(a=0,s=t.length;a<s;a+=1)o=t[a],e.replacer&&(o=e.replacer.call(t,String(a),o)),(Kt(e,r+1,o,!0,!0,!1,!0)||typeof o>"u"&&Kt(e,r+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Rl(e,r)),e.dump&&hi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=c,e.dump=i||"[]"}function n9(e,r,t){var n="",i=e.tag,c=Object.keys(t),a,s,o,f,l;for(a=0,s=c.length;a<s;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),o=c[a],f=t[o],e.replacer&&(f=e.replacer.call(t,o,f)),Kt(e,r,o,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Kt(e,r,f,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function i9(e,r,t,n){var i="",c=e.tag,a=Object.keys(t),s,o,f,l,h,u;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ht("sortKeys must be a boolean or a function");for(s=0,o=a.length;s<o;s+=1)u="",(!n||i!=="")&&(u+=Rl(e,r)),f=a[s],l=t[f],e.replacer&&(l=e.replacer.call(t,f,l)),Kt(e,r+1,f,!0,!0,!0)&&(h=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,h&&(e.dump&&hi===e.dump.charCodeAt(0)?u+="?":u+="? "),u+=e.dump,h&&(u+=Rl(e,r)),Kt(e,r+1,l,!0,h)&&(e.dump&&hi===e.dump.charCodeAt(0)?u+=":":u+=": ",u+=e.dump,i+=u));e.tag=c,e.dump=i||"{}"}function L1(e,r,t){var n,i,c,a,s,o;for(i=t?e.explicitTypes:e.implicitTypes,c=0,a=i.length;c<a;c+=1)if(s=i[c],(s.instanceOf||s.predicate)&&(!s.instanceOf||typeof r=="object"&&r instanceof s.instanceOf)&&(!s.predicate||s.predicate(r))){if(t?s.multi&&s.representName?e.tag=s.representName(r):e.tag=s.tag:e.tag="?",s.represent){if(o=e.styleMap[s.tag]||s.defaultStyle,iy.call(s.represent)==="[object Function]")n=s.represent(r,o);else if(sy.call(s.represent,o))n=s.represent[o](r,o);else throw new ht("!<"+s.tag+'> tag resolver accepts not "'+o+'" style');e.dump=n}return!0}return!1}function Kt(e,r,t,n,i,c,a){e.tag=null,e.dump=t,L1(e,t,!1)||L1(e,t,!0);var s=iy.call(e.dump),o=n,f;n&&(n=e.flowLevel<0||e.flowLevel>r);var l=s==="[object Object]"||s==="[object Array]",h,u;if(l&&(h=e.duplicates.indexOf(t),u=h!==-1),(e.tag!==null&&e.tag!=="?"||u||e.indent!==2&&r>0)&&(i=!1),u&&e.usedDuplicates[h])e.dump="*ref_"+h;else{if(l&&u&&!e.usedDuplicates[h]&&(e.usedDuplicates[h]=!0),s==="[object Object]")n&&Object.keys(e.dump).length!==0?(i9(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(n9(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&r>0?I1(e,r-1,e.dump,i):I1(e,r,e.dump,i),u&&(e.dump="&ref_"+h+e.dump)):(r9(e,r,e.dump),u&&(e.dump="&ref_"+h+" "+e.dump));else if(s==="[object String]")e.tag!=="?"&&QI(e,e.dump,r,c,o);else{if(s==="[object Undefined]"||e.skipInvalid)return!1;throw new ht("unacceptable kind of an object to dump "+s)}e.tag!==null&&e.tag!=="?"&&(f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?f="!"+f:f.slice(0,18)==="tag:yaml.org,2002:"?f="!!"+f.slice(18):f="!<"+f+">",e.dump=f+" "+e.dump)}return!0}function s9(e,r){var t=[],n=[],i,c;for(Tl(e,t,n),i=0,c=n.length;i<c;i+=1)r.duplicates.push(t[n[i]]);r.usedDuplicates=new Array(c)}function Tl(e,r,t){var n,i,c;if(e!==null&&typeof e=="object")if(i=r.indexOf(e),i!==-1)t.indexOf(i)===-1&&t.push(i);else if(r.push(e),Array.isArray(e))for(i=0,c=e.length;i<c;i+=1)Tl(e[i],r,t);else for(n=Object.keys(e),i=0,c=n.length;i<c;i+=1)Tl(e[n[i]],r,t)}function o9(e,r){r=r||{};var t=new YI(r);t.noRefs||s9(e,t);var n=e;return t.replacer&&(n=t.replacer.call({"":n},"",n)),Kt(t,0,n,!0,!0)?t.dump+`
|
182
|
+
`:""}var a9=o9,u9={dump:a9};function ql(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var S$=ny.load,A$=ny.loadAll,x$=u9.dump;var C$=ql("safeLoad","load"),k$=ql("safeLoadAll","loadAll"),D$=ql("safeDump","dump");var R$=je($B());function l9(e,r="latest"){switch(e){case"yarn":return`yarn global add turbo@${r}`;case"npm":return`npm install turbo@${r} --global`;case"pnpm":return`pnpm add turbo@${r} --global`}}function c9({packageManager:e,packageManagerVersion:r,installType:t,isUsingWorkspaces:n,to:i="latest"}){let c=a=>a.filter(Boolean).join(" ");switch(e){case"yarn":return(0,yy.gte)(r,"2.0.0")?c(["yarn","add",`turbo@${i}`,t==="devDependencies"&&"--dev"]):c(["yarn","add",`turbo@${i}`,t==="devDependencies"&&"--dev",n&&"-W"]);case"npm":return c(["npm","install",`turbo@${i}`,t==="devDependencies"&&"--save-dev"]);case"pnpm":return c(["pnpm","add",`turbo@${i}`,t==="devDependencies"&&"--save-dev",n&&"-w"])}}function h9({root:e}){let r=my.default.join(e,"package.json");if(!Gl.default.existsSync(r)){console.error(`Unable to find package.json at ${r}`);return}let t=Gl.default.readJsonSync(r),n=t.devDependencies&&"turbo"in t.devDependencies,i=t.dependencies&&"turbo"in t.dependencies;if(i||n)return i?"dependencies":"devDependencies"}async function zl({project:e,to:r}){let t=Ct("turbo bin",{cwd:e.paths.root,stdio:"pipe"}),n=await _l(),i=Object.keys(n).find(c=>{let a=n[c];return a&&t?t.includes(a):!1});if(t&&i)return l9(i,r);{let{packageManager:c}=e,a=e.workspaceData.globs.length>0,s=h9({root:e.paths.root}),f=(await vl())[c];if(c&&f&&s)return c9({packageManager:c,packageManagerVersion:f,installType:s,isUsingWorkspaces:a,to:r})}}var gi=Pe(require("chalk"));var Xs=Pe(require("chalk")),Zs=require("diff"),di=Pe(require("fs-extra")),gy=Pe(require("os")),Wl=Pe(require("path")),mi=class{constructor(r){this.changes=[];if(this.filePath=r.filePath,this.rootPath=r.rootPath,this.after=r.after,this.error=r.error,r.before===void 0)try{Wl.default.extname(r.filePath)===".json"?this.before=di.default.readJsonSync(r.filePath):this.before=di.default.readFileSync(r.filePath)}catch{this.before=""}else r.before===null?this.before="":this.before=r.before;r.after?typeof this.before=="object"||typeof r.after=="object"?this.changes=(0,Zs.diffJson)(this.before,r.after):this.changes=(0,Zs.diffLines)(this.before,r.after):this.changes=[]}fileName(){return Wl.default.relative(this.rootPath,this.filePath)}write(){this.after&&(typeof this.after=="object"?di.default.writeJsonSync(this.filePath,this.after,{spaces:2}):di.default.writeFileSync(this.filePath,this.after))}additions(){return this.changes.filter(r=>r.added).length}deletions(){return this.changes.filter(r=>r.removed).length}hasChanges(){return this.additions()>0||this.deletions()>0}log(r){r.diff?(this.changes.forEach(t=>{t.added?process.stdout.write(Xs.default.green(t.value)):t.removed?process.stdout.write(Xs.default.red(t.value)):process.stdout.write(Xs.default.dim(t.value))}),console.log(gy.default.EOL)):console.log(this.after)}};var kt=Pe(require("chalk")),yi=class{constructor(r){this.transform=r.transformer,this.dry=r.dry}modified(...r){console.log(kt.default.green(" MODIFIED "),...r,this.dry?kt.default.dim("(dry run)"):"")}unchanged(...r){console.log(kt.default.gray(" UNCHANGED "),...r,this.dry?kt.default.dim("(dry run)"):"")}skipped(...r){console.log(kt.default.yellow(" SKIPPED "),...r,this.dry?kt.default.dim("(dry run)"):"")}error(...r){console.log(kt.default.red(" ERROR "),...r,this.dry?kt.default.dim("(dry run)"):"")}info(...r){console.log(kt.default.bold(" INFO "),...r,this.dry?kt.default.dim("(dry run)"):"")}};var Vl=class{constructor(r){this.modifications={};this.transform=r.transformer,this.rootPath=r.rootPath,this.dry=r.dry,this.print=r.print,this.logger=new yi(r)}abortTransform(r){return this.logger.error(r.reason),{fatalError:new Error(r.reason),changes:r.changes||{}}}modifyFile(r){this.modifications[r.filePath]=new mi({rootPath:this.rootPath,...r})}finish(){let r={changes:{}};return Object.keys(this.modifications).forEach(n=>{let i=this.modifications[n],c={action:"unchanged",additions:i.additions(),deletions:i.deletions()};if(i.hasChanges()){if(this.dry)c.action="skipped",this.logger.skipped(gi.default.dim(i.fileName()));else try{i.write(),c.action="modified",this.logger.modified(gi.default.bold(i.fileName()))}catch(a){let s="Unknown error";a instanceof Error&&(s=a.message),c.error=new Error(s),c.action="error",this.logger.error(i.fileName(),s)}this.print&&i.log({diff:!0})}else this.logger.unchanged(gi.default.dim(i.fileName()));r.changes[i.fileName()]=c}),Object.keys(r.changes).some(n=>r.changes[n].action==="error")?this.abortTransform({reason:"Encountered an error while transforming files",changes:r.changes}):r}static logResults(r){let t=Object.keys(r.changes);if(console.log(),t.length>0){console.log(gi.default.bold("Results:"));let n={};t.forEach(i=>{var a;let c=r.changes[i];n[i]={action:c.action,additions:c.additions,deletions:c.deletions,error:((a=c.error)==null?void 0:a.message)||"None"}}),console.table(n),console.log()}}},bi=Vl;var by=Pe(require("path")),vy=require("fs-extra"),f9=["package.json","turbo.json",".git"];function Yl({directory:e}){return f9.some(r=>(0,vy.existsSync)(by.default.join(e,r)))}function _y({project:e}){try{let r={cwd:e.paths.root,stdio:"ignore"};if(Ct("turbo bin",r))Ct("turbo daemon stop",r);else{let n=`${e.packageManager} turbo daemon stop`;e.packageManager==="npm"&&(n="npm exec -c 'turbo daemon stop'"),Ct(n,r)}}catch{}}var Ey=require("child_process");function Dt({message:e,success:r}){return r?(console.log(Xe.default.bold(Xe.default.green("Migration completed"))),e&&console.log(e),process.exit(0)):(console.log(Xe.default.bold(Xe.default.red("Migration failed"))),e&&console.log(e),process.exit(1))}async function Js(e,r){r.dry||ri({directory:e,force:r.force});let t=await wy.default.prompt([{type:"input",name:"directoryInput",message:"Where is the root of the repo to migrate?",when:!e,default:".",validate:d=>{let{exists:p,absolute:y}=Or({directory:d});return p?!0:`Directory ${Xe.default.dim(`(${y})`)} does not exist`},filter:d=>d.trim()}]),{directoryInput:n=e}=t,{exists:i,absolute:c}=Or({directory:n});if(!i)return Dt({success:!1,message:`Directory ${Xe.default.dim(`(${c})`)} does not exist`});if(!Yl({directory:c}))return Dt({success:!1,message:`Directory (${Xe.default.dim(c)}) does not appear to be a repository`});let a=await ei({root:c});if(!a)return Dt({success:!1,message:`Unable to read determine package manager details from ${Xe.default.dim(c)}`});let s=_2(a,r);if(!s)return Dt({success:!1,message:`Unable to infer the version of turbo being used by ${a.name}`});let o=r.to;try{o=await il(r)}catch(d){let p="UNKNOWN_ERROR";return d instanceof Error&&(p=d.message),Dt({success:!1,message:p})}if(!o)return Dt({success:!1,message:"Unable to fetch the latest version of turbo"});if(s===o)return Dt({success:!0,message:`Nothing to do, current version (${Xe.default.bold(s)}) is the same as the requested version (${Xe.default.bold(o)})`});let f=A2({fromVersion:s,toVersion:o});f.length===0&&console.log(`No codemods required to migrate from ${s} to ${o}`,xn.default.EOL),r.dry||_y({project:a}),console.log(`Upgrading turbo from ${Xe.default.bold(s)} to ${Xe.default.bold(o)} (${f.length===0?"no codemods required":`${f.length} required codemod${f.length===1?"":"s"}`})`,xn.default.EOL);let l=[];for(let[d,p]of f.entries()){console.log(`(${d+1}/${f.length}) ${Xe.default.bold(`Running ${p.name}`)}`);let y=await p.transformer({root:a.paths.root,options:r});bi.logResults(y),l.push(y)}if(l.some(d=>d.fatalError||Object.keys(d.changes).some(p=>d.changes[p].error)))return Dt({success:!1,message:"Could not complete migration due to codemod errors. Please fix the errors and try again."});let u=await zl({project:a,to:r.to});if(!u)return Dt({success:!1,message:"Unable to determine upgrade command"});if(r.install)if(r.dry)console.log(`Upgrading turbo with ${Xe.default.bold(u)} ${Xe.default.dim("(dry run)")}`,xn.default.EOL);else{console.log(`Upgrading turbo with ${Xe.default.bold(u)}`,xn.default.EOL);try{(0,Ey.execSync)(u,{stdio:"pipe",cwd:a.paths.root})}catch(d){return Dt({success:!1,message:`Unable to upgrade turbo: ${d}`})}}else console.log(`Upgrade turbo with ${Xe.default.bold(u)}`,xn.default.EOL);Dt({success:!0})}var yr=Pe(require("chalk")),Sy=Pe(require("inquirer"));async function Qs(e,r,t){let n=ti();if(t.list)return console.log(n.map(u=>`- ${yr.default.cyan(u.name)}`).join(`
|
183
|
+
`)),process.exit(0);t.dry||ri({directory:r,force:t.force});let i=await Sy.default.prompt([{type:"input",name:"directoryInput",message:"Where is the root of the repo where the transform should run?",when:!r,default:".",validate:u=>{let{exists:d,absolute:p}=Or({directory:u});return d?!0:`Directory ${yr.default.dim(`(${p})`)} does not exist`},filter:u=>u.trim()},{type:"list",name:"transformerInput",message:"Which transform would you like to apply?",when:!e,pageSize:n.length,choices:n.map(u=>({name:`${yr.default.bold(u.name)} - ${yr.default.gray(u.description)} ${yr.default.gray(`(${u.introducedIn})`)}`,value:u.name}))}]),{directoryInput:c=r,transformerInput:a=e}=i,{exists:s,absolute:o}=Or({directory:c});if(!s)return console.error(`Directory ${yr.default.dim(`(${o})`)} does not exist`),process.exit(1);let f=n.map(u=>u.name),l=n.find(u=>u.name===a);if(!l)return console.error(`Invalid transform choice ${yr.default.dim(`(${e})`)}, pick one of:`),console.error(f.map(u=>`- ${u}`).join(`
|
184
|
+
`)),process.exit(1);let h=await l.transformer({root:o,options:t});if(h.fatalError)return process.exit(1);bi.logResults(h)}var Kl=Pe(require("chalk")),Ay=Pe(require("update-check"));var eo={name:"@turbo/codemod",version:"1.10.13-canary.0",description:"Provides Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.",homepage:"https://turbo.build/repo",license:"MPL-2.0",repository:{type:"git",url:"https://github.com/vercel/turbo",directory:"packages/turbo-codemod"},bugs:{url:"https://github.com/vercel/turbo/issues"},bin:"dist/cli.js",scripts:{build:"tsup",test:"jest",lint:"eslint src/**/*.ts","check-types":"tsc --noEmit","add-transformer":"plop","lint:prettier":"prettier -c . --cache --ignore-path=../../.prettierignore"},dependencies:{axios:"0.27.2",chalk:"2.4.2",commander:"^9.5.0",diff:"^5.1.0","find-up":"4.1.0","fs-extra":"^10.0.0","gradient-string":"^2.0.0",inquirer:"^8.2.4","inquirer-file-tree-selection-prompt":"^1.0.19","is-git-clean":"^1.1.0",ora:"4.1.1",semver:"^7.3.7","update-check":"^1.5.4"},devDependencies:{"@turbo/gen":"workspace:*","@turbo/test-utils":"workspace:*","@turbo/tsconfig":"workspace:*","@turbo/types":"workspace:*","@turbo/utils":"workspace:*","@turbo/workspaces":"workspace:*","@types/chalk-animation":"^1.6.0","@types/diff":"^5.0.2","@types/fs-extra":"^9.0.13","@types/gradient-string":"^1.1.2","@types/inquirer":"^8.2.0","@types/jest":"^27.4.0","@types/node":"^16.11.12","@types/semver":"^7.3.9","@types/uuid":"^9.0.0",deepmerge:"^4.2.2",eslint:"^7.23.0",jest:"^27.4.3",plop:"^3.1.1",semver:"^7.3.5","ts-jest":"^27.1.1",tsup:"^6.7.0",typescript:"^4.5.5"},files:["dist"],publishConfig:{access:"public"}};var d9=(0,Ay.default)(eo).catch(()=>null);async function to(){try{let e=await d9;if(e!=null&&e.latest){let r=await ei({root:process.cwd()}),{packageManager:t}=r||{};console.log(),console.log(Kl.default.yellow.bold("A new version of `@turbo/codemod` is available!")),console.log("You can update by running: "+Kl.default.cyan(t==="yarn"?"yarn global add @turbo/codemod":t==="pnpm"?"pnpm i -g @turbo/codemod":"npm i -g @turbo/codemod")),console.log()}process.exit()}catch{}}var ro=new xy.Command;ro.name("@turbo/codemod").description("Codemod transformations to help upgrade your Turborepo codebase when a feature is deprecated.").version(eo.version,"-v, --version","output the current version");ro.command("migrate").aliases(["update","upgrade"]).description("Migrate a project to the latest version of Turborepo").argument("[path]","Directory where the transforms should be applied").option("--from <version>","Specify the version to migrate from (default: current version)").option("--to <version>","Specify the version to migrate to (default: latest)").option("--install","Install new version of turbo after migration",!0).option("--force","Bypass Git safety checks and forcibly run codemods",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--print","Print transformed files to your terminal",!1).action(Js);ro.command("transform",{isDefault:!0}).description("Apply a single code transformation to a project").argument("[transform]","The transformer to run").argument("[path]","Directory where the transforms should be applied").option("--force","Bypass Git safety checks and forcibly run codemods",!1).option("--list","List all available transforms",!1).option("--dry","Dry run (no changes are made to files)",!1).option("--print","Print transformed files to your terminal",!1).action(Qs);ro.parseAsync().then(to).catch(async e=>{console.log(),e.command?console.log(` ${Xl.default.cyan(e.command)} has failed.`):(console.log(Xl.default.red("Unexpected error. Please report it as a bug:")),console.log(e)),console.log(),await to(),process.exit(1)});
|
185
|
+
/*!
|
186
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
187
|
+
*
|
188
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
189
|
+
* Licensed under the MIT License.
|
190
|
+
*/
|
191
|
+
/*!
|
192
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
193
|
+
*
|
194
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
195
|
+
* Licensed under the MIT License.
|
196
|
+
*/
|
197
|
+
/*!
|
198
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
199
|
+
*
|
200
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
201
|
+
* Released under the MIT License.
|
202
|
+
*/
|
203
|
+
/*!
|
204
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
205
|
+
*
|
206
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
207
|
+
* Released under the MIT License.
|
208
|
+
*/
|
209
|
+
/*!
|
210
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
211
|
+
*
|
212
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
213
|
+
* Released under the MIT License.
|
214
|
+
*/
|
215
|
+
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
216
|
+
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
217
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
218
|
+
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
219
|
+
/*! Bundled license information:
|
220
|
+
|
221
|
+
is-extglob/index.js:
|
222
|
+
(*!
|
223
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
224
|
+
*
|
225
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
226
|
+
* Licensed under the MIT License.
|
227
|
+
*)
|
228
|
+
|
229
|
+
is-glob/index.js:
|
230
|
+
(*!
|
231
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
232
|
+
*
|
233
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
234
|
+
* Released under the MIT License.
|
235
|
+
*)
|
236
|
+
|
237
|
+
is-number/index.js:
|
238
|
+
(*!
|
239
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
240
|
+
*
|
241
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
242
|
+
* Released under the MIT License.
|
243
|
+
*)
|
244
|
+
|
245
|
+
to-regex-range/index.js:
|
246
|
+
(*!
|
247
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
248
|
+
*
|
249
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
250
|
+
* Released under the MIT License.
|
251
|
+
*)
|
252
|
+
|
253
|
+
fill-range/index.js:
|
254
|
+
(*!
|
255
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
256
|
+
*
|
257
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
258
|
+
* Licensed under the MIT License.
|
259
|
+
*)
|
260
|
+
|
261
|
+
queue-microtask/index.js:
|
262
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
263
|
+
|
264
|
+
run-parallel/index.js:
|
265
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
266
|
+
|
267
|
+
js-yaml/dist/js-yaml.mjs:
|
268
|
+
(*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
|
269
|
+
*/
|