@tsmodule/tsmodule 31.2.0 → 32.0.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/commands/build/index.d.ts +20 -0
- package/dist/commands/build/index.js +19 -20
- package/dist/commands/build/lib/emitTsDeclarations.d.ts +13 -0
- package/dist/commands/build/lib/emitTsDeclarations.js +9 -9
- package/dist/commands/create/index.d.ts +3 -0
- package/dist/commands/create/index.js +12 -18
- package/dist/commands/create/lib/createTemplate.d.ts +1 -0
- package/dist/commands/create/lib/createTemplate.js +7 -7
- package/dist/commands/create/lib/rewritePkgJson.d.ts +1 -0
- package/dist/commands/create/lib/rewritePkgJson.js +1 -1
- package/dist/commands/dev/index.d.ts +1 -0
- package/dist/commands/dev/index.js +23 -24
- package/dist/commands/execute/index.d.ts +1 -0
- package/dist/commands/execute/index.js +5 -5
- package/dist/commands/normalize/index.d.ts +14 -0
- package/dist/commands/normalize/index.js +13 -15
- package/dist/commands/normalize/lib/typescriptApi.d.ts +7 -0
- package/dist/commands/normalize/lib/typescriptApi.js +9 -10
- package/dist/constants.d.ts +10 -0
- package/dist/constants.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +36 -43
- package/dist/loader/index.d.ts +11 -0
- package/dist/loader/index.js +5 -5
- package/dist/loader/types.d.ts +22 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/cwd.d.ts +7 -0
- package/dist/utils/cwd.js +3 -3
- package/dist/utils/pkgJson.d.ts +2 -0
- package/dist/utils/pkgJson.js +1 -1
- package/dist/utils/require.d.ts +1 -0
- package/dist/utils/resolve.d.ts +28 -0
- package/dist/utils/resolve.js +1 -1
- package/dist/utils/stdin.d.ts +1 -0
- package/dist/utils/stdin.js +5 -5
- package/package.json +4 -5
@@ -1,24 +1,18 @@
|
|
1
1
|
|
2
2
|
await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
|
3
3
|
|
4
|
-
var iu=Object.create;var br=Object.defineProperty;var ou=Object.getOwnPropertyDescriptor;var su=Object.getOwnPropertyNames;var au=Object.getPrototypeOf,uu=Object.prototype.hasOwnProperty;var lu=e=>br(e,"__esModule",{value:!0});var S=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var fu=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var cu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of su(t))!uu.call(e,i)&&(r||i!=="default")&&br(e,i,{get:()=>t[i],enumerable:!(n=ou(t,i))||n.enumerable});return e},qe=(e,t)=>cu(lu(br(e!=null?iu(au(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var u=fu(()=>{});var si=m((Vd,Br)=>{"use strict";u();var oi=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Br.exports=oi;Br.exports.default=oi});var ui=m((Jd,Nt)=>{"use strict";u();var Xu=si(),Pt=new WeakMap,ai=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(Pt.set(o,++n),n===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return Xu(o,e),Pt.set(o,n),o};Nt.exports=ai;Nt.exports.default=ai;Nt.exports.callCount=e=>{if(!Pt.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Pt.get(e)}});var li=m((Kd,It)=>{u();It.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&It.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&It.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var pi=m((Xd,Ye)=>{u();var F=global.process,Re=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"};Re(F)?(fi=S("assert"),We=li(),ci=/^win/i.test(F.platform),ot=S("events"),typeof ot!="function"&&(ot=ot.EventEmitter),F.__signal_exit_emitter__?q=F.__signal_exit_emitter__:(q=F.__signal_exit_emitter__=new ot,q.count=0,q.emitted={}),q.infinite||(q.setMaxListeners(1/0),q.infinite=!0),Ye.exports=function(e,t){if(!Re(global.process))return function(){};fi.equal(typeof e,"function","a callback must be provided for exit handler"),Ge===!1&&Pr();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){q.removeListener(r,e),q.listeners("exit").length===0&&q.listeners("afterexit").length===0&&Mt()};return q.on(r,e),n},Mt=function(){!Ge||!Re(global.process)||(Ge=!1,We.forEach(function(t){try{F.removeListener(t,kt[t])}catch{}}),F.emit=qt,F.reallyExit=Nr,q.count-=1)},Ye.exports.unload=Mt,Oe=function(t,r,n){q.emitted[t]||(q.emitted[t]=!0,q.emit(t,r,n))},kt={},We.forEach(function(e){kt[e]=function(){if(!!Re(global.process)){var r=F.listeners(e);r.length===q.count&&(Mt(),Oe("exit",null,e),Oe("afterexit",null,e),ci&&e==="SIGHUP"&&(e="SIGINT"),F.kill(F.pid,e))}}}),Ye.exports.signals=function(){return We},Ge=!1,Pr=function(){Ge||!Re(global.process)||(Ge=!0,q.count+=1,We=We.filter(function(t){try{return F.on(t,kt[t]),!0}catch{return!1}}),F.emit=di,F.reallyExit=hi)},Ye.exports.load=Pr,Nr=F.reallyExit,hi=function(t){!Re(global.process)||(F.exitCode=t||0,Oe("exit",F.exitCode,null),Oe("afterexit",F.exitCode,null),Nr.call(F,F.exitCode))},qt=F.emit,di=function(t,r){if(t==="exit"&&Re(global.process)){r!==void 0&&(F.exitCode=r);var n=qt.apply(this,arguments);return Oe("exit",F.exitCode,null),Oe("afterexit",F.exitCode,null),n}else return qt.apply(this,arguments)}):Ye.exports=function(){return function(){}};var fi,We,ci,ot,q,Mt,Oe,kt,Ge,Pr,Nr,hi,qt,di});var vi=m((r0,zu)=>{zu.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var bi=m((n0,wi)=>{"use strict";u();var jt=Object.assign({},vi()),xi=Object.keys(jt);Object.defineProperty(jt,"random",{get(){let e=Math.floor(Math.random()*xi.length),t=xi[e];return jt[t]}});wi.exports=jt});var Si=m((c0,$t)=>{u();var nl=function(){"use strict";function e(s,a,l,p){var f;typeof a=="object"&&(l=a.depth,p=a.prototype,f=a.filter,a=a.circular);var h=[],y=[],d=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function _(g,x){if(g===null)return null;if(x==0)return g;var w,D;if(typeof g!="object")return g;if(e.__isArray(g))w=[];else if(e.__isRegExp(g))w=new RegExp(g.source,o(g)),g.lastIndex&&(w.lastIndex=g.lastIndex);else if(e.__isDate(g))w=new Date(g.getTime());else{if(d&&Buffer.isBuffer(g))return Buffer.allocUnsafe?w=Buffer.allocUnsafe(g.length):w=new Buffer(g.length),g.copy(w),w;typeof p>"u"?(D=Object.getPrototypeOf(g),w=Object.create(D)):(w=Object.create(p),D=p)}if(a){var de=h.indexOf(g);if(de!=-1)return y[de];h.push(g),y.push(w)}for(var pe in g){var ke;D&&(ke=Object.getOwnPropertyDescriptor(D,pe)),!(ke&&ke.set==null)&&(w[pe]=_(g[pe],x-1))}return w}return _(s,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};function t(s){return Object.prototype.toString.call(s)}e.__objToStr=t;function r(s){return typeof s=="object"&&t(s)==="[object Date]"}e.__isDate=r;function n(s){return typeof s=="object"&&t(s)==="[object Array]"}e.__isArray=n;function i(s){return typeof s=="object"&&t(s)==="[object RegExp]"}e.__isRegExp=i;function o(s){var a="";return s.global&&(a+="g"),s.ignoreCase&&(a+="i"),s.multiline&&(a+="m"),a}return e.__getRegExpFlags=o,e}();typeof $t=="object"&&$t.exports&&($t.exports=nl)});var Ti=m((h0,Ei)=>{u();var il=Si();Ei.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=il(t[r]))}),e}});var Oi=m((d0,Ri)=>{u();Ri.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]]});var Fi=m((p0,qr)=>{"use strict";u();var ol=Ti(),ut=Oi(),Ai={nul:0,control:0};qr.exports=function(t){return Di(t,Ai)};qr.exports.config=function(e){return e=ol(e||{},Ai),function(r){return Di(r,e)}};function Di(e,t){if(typeof e!="string")return Ci(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ci(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ci(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:sl(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function sl(e){var t=0,r=ut.length-1,n;if(e<ut[0][0]||e>ut[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>ut[n][1])t=n+1;else if(e<ut[n][0])r=n-1;else return!0;return!1}});var jr=m((m0,Bi)=>{u();Bi.exports=S("stream")});var Mi=m((_0,Ii)=>{"use strict";u();function Pi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function al(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pi(Object(r),!0).forEach(function(n){ul(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pi(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ul(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ni(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function fl(e,t,r){return t&&Ni(e.prototype,t),r&&Ni(e,r),e}var cl=S("buffer"),Ut=cl.Buffer,hl=S("util"),$r=hl.inspect,dl=$r&&$r.custom||"inspect";function pl(e,t,r){Ut.prototype.copy.call(e,t,r)}Ii.exports=function(){function e(){ll(this,e),this.head=null,this.tail=null,this.length=0}return fl(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Ut.alloc(0);for(var n=Ut.allocUnsafe(r>>>0),i=this.head,o=0;i;)pl(i.data,n,o),o+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,o=n.data;for(r-=o.length;n=n.next;){var s=n.data,a=r>s.length?s.length:r;if(a===s.length?o+=s:o+=s.slice(0,r),r-=a,r===0){a===s.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(a));break}++i}return this.length-=i,o}},{key:"_getBuffer",value:function(r){var n=Ut.allocUnsafe(r),i=this.head,o=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var s=i.data,a=r>s.length?s.length:r;if(s.copy(n,n.length-r,0,a),r-=a,r===0){a===s.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(a));break}++o}return this.length-=o,n}},{key:dl,value:function(r,n){return $r(this,al({},n,{depth:0,customInspect:!1}))}}]),e}()});var Wr=m((g0,qi)=>{"use strict";u();function yl(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Ur,this,e)):process.nextTick(Ur,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Wt,r):(r._writableState.errorEmitted=!0,process.nextTick(ki,r,o)):process.nextTick(ki,r,o):t?(process.nextTick(Wt,r),t(o)):process.nextTick(Wt,r)}),this)}function ki(e,t){Ur(e,t),Wt(e)}function Wt(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function ml(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Ur(e,t){e.emit("error",t)}function _l(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}qi.exports={destroy:yl,undestroy:ml,errorOrDestroy:_l}});var ye=m((v0,$i)=>{"use strict";u();var ji={};function re(e,t,r){r||(r=Error);function n(o,s,a){return typeof t=="string"?t:t(o,s,a)}class i extends r{constructor(s,a,l){super(n(s,a,l))}}i.prototype.name=r.name,i.prototype.code=e,ji[e]=i}function Li(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function gl(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function vl(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function xl(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}re("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);re("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&gl(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(vl(e," argument"))i=`The ${e} ${n} ${Li(t,"type")}`;else{let o=xl(e,".")?"property":"argument";i=`The "${e}" ${o} ${n} ${Li(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);re("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");re("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});re("ERR_STREAM_PREMATURE_CLOSE","Premature close");re("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});re("ERR_MULTIPLE_CALLBACK","Callback called multiple times");re("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");re("ERR_STREAM_WRITE_AFTER_END","write after end");re("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);re("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);re("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");$i.exports.codes=ji});var Gr=m((x0,Ui)=>{"use strict";u();var wl=ye().codes.ERR_INVALID_OPT_VALUE;function bl(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Sl(e,t,r,n){var i=bl(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var o=n?r:"highWaterMark";throw new wl(o,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Ui.exports={getHighWaterMark:Sl}});var Wi=m((w0,Yr)=>{u();typeof Object.create=="function"?Yr.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yr.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var Ce=m((b0,Vr)=>{u();try{if(Hr=S("util"),typeof Hr.inherits!="function")throw"";Vr.exports=Hr.inherits}catch{Vr.exports=Wi()}var Hr});var Yi=m((S0,Gi)=>{u();Gi.exports=S("util").deprecate});var Xr=m((E0,Qi)=>{"use strict";u();Qi.exports=P;function Vi(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Xl(t,e)}}var Ve;P.WritableState=ft;var El={deprecate:Yi()},Ji=jr(),Yt=S("buffer").Buffer,Tl=global.Uint8Array||function(){};function Rl(e){return Yt.from(e)}function Ol(e){return Yt.isBuffer(e)||e instanceof Tl}var Kr=Wr(),Cl=Gr(),Al=Cl.getHighWaterMark,me=ye().codes,Dl=me.ERR_INVALID_ARG_TYPE,Fl=me.ERR_METHOD_NOT_IMPLEMENTED,Bl=me.ERR_MULTIPLE_CALLBACK,Pl=me.ERR_STREAM_CANNOT_PIPE,Nl=me.ERR_STREAM_DESTROYED,Il=me.ERR_STREAM_NULL_VALUES,Ml=me.ERR_STREAM_WRITE_AFTER_END,kl=me.ERR_UNKNOWN_ENCODING,Je=Kr.errorOrDestroy;Ce()(P,Ji);function ql(){}function ft(e,t,r){Ve=Ve||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ve),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Al(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Yl(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Vi(this)}ft.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(ft.prototype,"buffer",{get:El.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Gt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Gt=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(t){return Gt.call(this,t)?!0:this!==P?!1:t&&t._writableState instanceof ft}})):Gt=function(t){return t instanceof this};function P(e){Ve=Ve||Ae();var t=this instanceof Ve;if(!t&&!Gt.call(P,this))return new P(e);this._writableState=new ft(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Ji.call(this)}P.prototype.pipe=function(){Je(this,new Pl)};function Ll(e,t){var r=new Ml;Je(e,r),process.nextTick(t,r)}function jl(e,t,r,n){var i;return r===null?i=new Il:typeof r!="string"&&!t.objectMode&&(i=new Dl("chunk",["string","Buffer"],r)),i?(Je(e,i),process.nextTick(n,i),!1):!0}P.prototype.write=function(e,t,r){var n=this._writableState,i=!1,o=!n.objectMode&&Ol(e);return o&&!Yt.isBuffer(e)&&(e=Rl(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=ql),n.ending?Ll(this,r):(o||jl(this,n,e,r))&&(n.pendingcb++,i=Ul(this,n,o,e,t,r)),i};P.prototype.cork=function(){this._writableState.corked++};P.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Ki(this,e))};P.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new kl(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function $l(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Yt.from(t,r)),t}Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ul(e,t,r,n,i,o){if(!r){var s=$l(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Jr(e,t,!1,a,n,i,o);return l}function Jr(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Nl("write")):r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function Wl(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(lt,e,t),e._writableState.errorEmitted=!0,Je(e,n)):(i(n),e._writableState.errorEmitted=!0,Je(e,n),lt(e,t))}function Gl(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Yl(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Bl;if(Gl(r),t)Wl(e,r,n,t,i);else{var o=Xi(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ki(e,r),n?process.nextTick(Hi,e,r,o,i):Hi(e,r,o,i)}}function Hi(e,t,r,n){r||Hl(e,t),t.pendingcb--,n(),lt(e,t)}function Hl(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Ki(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,a=!0;r;)i[s]=r,r.isBuf||(a=!1),r=r.next,s+=1;i.allBuffers=a,Jr(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new Vi(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,p=r.encoding,f=r.callback,h=t.objectMode?1:l.length;if(Jr(e,t,!1,h,l,p,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}P.prototype._write=function(e,t,r){r(new Fl("_write()"))};P.prototype._writev=null;P.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Kl(this,n,r),this};Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Xi(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Vl(e,t){e._final(function(r){t.pendingcb--,r&&Je(e,r),t.prefinished=!0,e.emit("prefinish"),lt(e,t)})}function Jl(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Vl,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function lt(e,t){var r=Xi(t);if(r&&(Jl(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Kl(e,t,r){t.ending=!0,lt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Xl(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});P.prototype.destroy=Kr.destroy;P.prototype._undestroy=Kr.undestroy;P.prototype._destroy=function(e,t){t(e)}});var Ae=m((T0,zi)=>{"use strict";u();var Ql=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};zi.exports=fe;var Zi=zr(),Zr=Xr();Ce()(fe,Zi);for(Qr=Ql(Zr.prototype),Ht=0;Ht<Qr.length;Ht++)Vt=Qr[Ht],fe.prototype[Vt]||(fe.prototype[Vt]=Zr.prototype[Vt]);var Qr,Vt,Ht;function fe(e){if(!(this instanceof fe))return new fe(e);Zi.call(this,e),Zr.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Zl)))}Object.defineProperty(fe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(fe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(fe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Zl(){this._writableState.ended||process.nextTick(zl,this)}function zl(e){e.end()}Object.defineProperty(fe.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var ro=m((en,to)=>{u();var Jt=S("buffer"),ce=Jt.Buffer;function eo(e,t){for(var r in e)t[r]=e[r]}ce.from&&ce.alloc&&ce.allocUnsafe&&ce.allocUnsafeSlow?to.exports=Jt:(eo(Jt,en),en.Buffer=De);function De(e,t,r){return ce(e,t,r)}De.prototype=Object.create(ce.prototype);eo(ce,De);De.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return ce(e,t,r)};De.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=ce(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};De.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ce(e)};De.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Jt.SlowBuffer(e)}});var nn=m(io=>{"use strict";u();var rn=ro().Buffer,no=rn.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function ef(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function tf(e){var t=ef(e);if(typeof t!="string"&&(rn.isEncoding===no||!no(e)))throw new Error("Unknown encoding: "+e);return t||e}io.StringDecoder=ct;function ct(e){this.encoding=tf(e);var t;switch(this.encoding){case"utf16le":this.text=uf,this.end=lf,t=4;break;case"utf8":this.fillLast=of,t=4;break;case"base64":this.text=ff,this.end=cf,t=3;break;default:this.write=hf,this.end=df;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=rn.allocUnsafe(t)}ct.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};ct.prototype.end=af;ct.prototype.text=sf;ct.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function tn(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function rf(e,t,r){var n=t.length-1;if(n<r)return 0;var i=tn(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=tn(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=tn(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function nf(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function of(e){var t=this.lastTotal-this.lastNeed,r=nf(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function sf(e,t){var r=rf(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function af(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function uf(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function lf(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function ff(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function cf(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function hf(e){return e.toString(this.encoding)}function df(e){return e&&e.length?this.write(e):""}});var Kt=m((O0,ao)=>{"use strict";u();var oo=ye().codes.ERR_STREAM_PREMATURE_CLOSE;function pf(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function yf(){}function mf(e){return e.setHeader&&typeof e.abort=="function"}function so(e,t,r){if(typeof t=="function")return so(e,null,t);t||(t={}),r=pf(r||yf);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||a()},s=e._writableState&&e._writableState.finished,a=function(){i=!1,s=!0,n||r.call(e)},l=e._readableState&&e._readableState.endEmitted,p=function(){n=!1,l=!0,i||r.call(e)},f=function(_){r.call(e,_)},h=function(){var _;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(_=new oo),r.call(e,_);if(i&&!s)return(!e._writableState||!e._writableState.ended)&&(_=new oo),r.call(e,_)},y=function(){e.req.on("finish",a)};return mf(e)?(e.on("complete",a),e.on("abort",h),e.req?y():e.on("request",y)):i&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",p),e.on("finish",a),t.error!==!1&&e.on("error",f),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",y),e.req&&e.req.removeListener("finish",a),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",a),e.removeListener("end",p),e.removeListener("error",f),e.removeListener("close",h)}}ao.exports=so});var lo=m((C0,uo)=>{"use strict";u();var Xt;function _e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _f=Kt(),ge=Symbol("lastResolve"),Fe=Symbol("lastReject"),ht=Symbol("error"),Qt=Symbol("ended"),Be=Symbol("lastPromise"),on=Symbol("handlePromise"),Pe=Symbol("stream");function ve(e,t){return{value:e,done:t}}function gf(e){var t=e[ge];if(t!==null){var r=e[Pe].read();r!==null&&(e[Be]=null,e[ge]=null,e[Fe]=null,t(ve(r,!1)))}}function vf(e){process.nextTick(gf,e)}function xf(e,t){return function(r,n){e.then(function(){if(t[Qt]){r(ve(void 0,!0));return}t[on](r,n)},n)}}var wf=Object.getPrototypeOf(function(){}),bf=Object.setPrototypeOf((Xt={get stream(){return this[Pe]},next:function(){var t=this,r=this[ht];if(r!==null)return Promise.reject(r);if(this[Qt])return Promise.resolve(ve(void 0,!0));if(this[Pe].destroyed)return new Promise(function(s,a){process.nextTick(function(){t[ht]?a(t[ht]):s(ve(void 0,!0))})});var n=this[Be],i;if(n)i=new Promise(xf(n,this));else{var o=this[Pe].read();if(o!==null)return Promise.resolve(ve(o,!1));i=new Promise(this[on])}return this[Be]=i,i}},_e(Xt,Symbol.asyncIterator,function(){return this}),_e(Xt,"return",function(){var t=this;return new Promise(function(r,n){t[Pe].destroy(null,function(i){if(i){n(i);return}r(ve(void 0,!0))})})}),Xt),wf),Sf=function(t){var r,n=Object.create(bf,(r={},_e(r,Pe,{value:t,writable:!0}),_e(r,ge,{value:null,writable:!0}),_e(r,Fe,{value:null,writable:!0}),_e(r,ht,{value:null,writable:!0}),_e(r,Qt,{value:t._readableState.endEmitted,writable:!0}),_e(r,on,{value:function(o,s){var a=n[Pe].read();a?(n[Be]=null,n[ge]=null,n[Fe]=null,o(ve(a,!1))):(n[ge]=o,n[Fe]=s)},writable:!0}),r));return n[Be]=null,_f(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=n[Fe];o!==null&&(n[Be]=null,n[ge]=null,n[Fe]=null,o(i)),n[ht]=i;return}var s=n[ge];s!==null&&(n[Be]=null,n[ge]=null,n[Fe]=null,s(ve(void 0,!0))),n[Qt]=!0}),t.on("readable",vf.bind(null,n)),n};uo.exports=Sf});var po=m((A0,ho)=>{"use strict";u();function fo(e,t,r,n,i,o,s){try{var a=e[o](s),l=a.value}catch(p){r(p);return}a.done?t(l):Promise.resolve(l).then(n,i)}function Ef(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var o=e.apply(t,r);function s(l){fo(o,n,i,s,a,"next",l)}function a(l){fo(o,n,i,s,a,"throw",l)}s(void 0)})}}function co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?co(Object(r),!0).forEach(function(n){Rf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):co(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Rf(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Of=ye().codes.ERR_INVALID_ARG_TYPE;function Cf(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new Of("iterable",["Iterable"],t);var i=new e(Tf({objectMode:!0},r)),o=!1;i._read=function(){o||(o=!0,s())};function s(){return a.apply(this,arguments)}function a(){return a=Ef(function*(){try{var l=yield n.next(),p=l.value,f=l.done;f?i.push(null):i.push(yield p)?s():o=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ho.exports=Cf});var zr=m((F0,Eo)=>{"use strict";u();Eo.exports=E;var Ke;E.ReadableState=go;var D0=S("events").EventEmitter,_o=function(t,r){return t.listeners(r).length},pt=jr(),Zt=S("buffer").Buffer,Af=global.Uint8Array||function(){};function Df(e){return Zt.from(e)}function Ff(e){return Zt.isBuffer(e)||e instanceof Af}var sn=S("util"),b;sn&&sn.debuglog?b=sn.debuglog("stream"):b=function(){};var Bf=Mi(),dn=Wr(),Pf=Gr(),Nf=Pf.getHighWaterMark,zt=ye().codes,If=zt.ERR_INVALID_ARG_TYPE,Mf=zt.ERR_STREAM_PUSH_AFTER_EOF,kf=zt.ERR_METHOD_NOT_IMPLEMENTED,qf=zt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Xe,an,un;Ce()(E,pt);var dt=dn.errorOrDestroy,ln=["error","close","destroy","pause","resume"];function Lf(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function go(e,t,r){Ke=Ke||Ae(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ke),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Nf(this,e,"readableHighWaterMark",r),this.buffer=new Bf,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Xe||(Xe=nn().StringDecoder),this.decoder=new Xe(e.encoding),this.encoding=e.encoding)}function E(e){if(Ke=Ke||Ae(),!(this instanceof E))return new E(e);var t=this instanceof Ke;this._readableState=new go(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),pt.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});E.prototype.destroy=dn.destroy;E.prototype._undestroy=dn.undestroy;E.prototype._destroy=function(e,t){t(e)};E.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Zt.from(e,t),t=""),n=!0),vo(this,e,t,!1,n)};E.prototype.unshift=function(e){return vo(this,e,null,!0,!1)};function vo(e,t,r,n,i){b("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,Uf(e,o);else{var s;if(i||(s=jf(o,t)),s)dt(e,s);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==Zt.prototype&&(t=Df(t)),n)o.endEmitted?dt(e,new qf):fn(e,o,t,!0);else if(o.ended)dt(e,new Mf);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?fn(e,o,t,!1):hn(e,o)):fn(e,o,t,!1)}else n||(o.reading=!1,hn(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function fn(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&er(e)),hn(e,t)}function jf(e,t){var r;return!Ff(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new If("chunk",["string","Buffer","Uint8Array"],t)),r}E.prototype.isPaused=function(){return this._readableState.flowing===!1};E.prototype.setEncoding=function(e){Xe||(Xe=nn().StringDecoder);var t=new Xe(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var yo=1073741824;function $f(e){return e>=yo?e=yo:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function mo(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=$f(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}E.prototype.read=function(e){b("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return b("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?cn(this):er(this),null;if(e=mo(e,t),e===0&&t.ended)return t.length===0&&cn(this),null;var n=t.needReadable;b("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,b("length less than watermark",n)),t.ended||t.reading?(n=!1,b("reading or ended",n)):n&&(b("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=mo(r,t)));var i;return e>0?i=bo(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&cn(this)),i!==null&&this.emit("data",i),i};function Uf(e,t){if(b("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?er(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,xo(e)))}}function er(e){var t=e._readableState;b("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(b("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(xo,e))}function xo(e){var t=e._readableState;b("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,pn(e)}function hn(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(Wf,e,t))}function Wf(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(b("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}E.prototype._read=function(e){dt(this,new kf("_read()"))};E.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,b("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=i?a:g;n.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(x,w){b("onunpipe"),x===r&&w&&w.hasUnpiped===!1&&(w.hasUnpiped=!0,f())}function a(){b("onend"),e.end()}var l=Gf(r);e.on("drain",l);var p=!1;function f(){b("cleanup"),e.removeListener("close",d),e.removeListener("finish",_),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",s),r.removeListener("end",a),r.removeListener("end",g),r.removeListener("data",h),p=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(x){b("ondata");var w=e.write(x);b("dest.write",w),w===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&So(n.pipes,e)!==-1)&&!p&&(b("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function y(x){b("onerror",x),g(),e.removeListener("error",y),_o(e,"error")===0&&dt(e,x)}Lf(e,"error",y);function d(){e.removeListener("finish",_),g()}e.once("close",d);function _(){b("onfinish"),e.removeListener("close",d),g()}e.once("finish",_);function g(){b("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(b("pipe resume"),r.resume()),e};function Gf(e){return function(){var r=e._readableState;b("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&_o(e,"data")&&(r.flowing=!0,pn(e))}}E.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=So(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};E.prototype.on=function(e,t){var r=pt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,b("on readable",n.length,n.reading),n.length?er(this):n.reading||process.nextTick(Yf,this)),r};E.prototype.addListener=E.prototype.on;E.prototype.removeListener=function(e,t){var r=pt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(wo,this),r};E.prototype.removeAllListeners=function(e){var t=pt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(wo,this),t};function wo(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function Yf(e){b("readable nexttick read 0"),e.read(0)}E.prototype.resume=function(){var e=this._readableState;return e.flowing||(b("resume"),e.flowing=!e.readableListening,Hf(this,e)),e.paused=!1,this};function Hf(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Vf,e,t))}function Vf(e,t){b("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),pn(e),t.flowing&&!t.reading&&e.read(0)}E.prototype.pause=function(){return b("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(b("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function pn(e){var t=e._readableState;for(b("flow",t.flowing);t.flowing&&e.read()!==null;);}E.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(b("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(b("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var a=t.push(s);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var o=0;o<ln.length;o++)e.on(ln[o],this.emit.bind(this,ln[o]));return this._read=function(s){b("wrapped _read",s),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return an===void 0&&(an=lo()),an(this)});Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});E._fromList=bo;Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function bo(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function cn(e){var t=e._readableState;b("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Jf,t,e))}function Jf(e,t){if(b("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(E.from=function(e,t){return un===void 0&&(un=po()),un(E,e,t)});function So(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var yn=m((B0,Ro)=>{"use strict";u();Ro.exports=he;var tr=ye().codes,Kf=tr.ERR_METHOD_NOT_IMPLEMENTED,Xf=tr.ERR_MULTIPLE_CALLBACK,Qf=tr.ERR_TRANSFORM_ALREADY_TRANSFORMING,Zf=tr.ERR_TRANSFORM_WITH_LENGTH_0,rr=Ae();Ce()(he,rr);function zf(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Xf);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function he(e){if(!(this instanceof he))return new he(e);rr.call(this,e),this._transformState={afterTransform:zf.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",ec)}function ec(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){To(e,t,r)}):To(this,null,null)}he.prototype.push=function(e,t){return this._transformState.needTransform=!1,rr.prototype.push.call(this,e,t)};he.prototype._transform=function(e,t,r){r(new Kf("_transform()"))};he.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};he.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};he.prototype._destroy=function(e,t){rr.prototype._destroy.call(this,e,function(r){t(r)})};function To(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Zf;if(e._transformState.transforming)throw new Qf;return e.push(null)}});var Ao=m((P0,Co)=>{"use strict";u();Co.exports=yt;var Oo=yn();Ce()(yt,Oo);function yt(e){if(!(this instanceof yt))return new yt(e);Oo.call(this,e)}yt.prototype._transform=function(e,t,r){r(null,e)}});var No=m((N0,Po)=>{"use strict";u();var mn;function tc(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Bo=ye().codes,rc=Bo.ERR_MISSING_ARGS,nc=Bo.ERR_STREAM_DESTROYED;function Do(e){if(e)throw e}function ic(e){return e.setHeader&&typeof e.abort=="function"}function oc(e,t,r,n){n=tc(n);var i=!1;e.on("close",function(){i=!0}),mn===void 0&&(mn=Kt()),mn(e,{readable:t,writable:r},function(s){if(s)return n(s);i=!0,n()});var o=!1;return function(s){if(!i&&!o){if(o=!0,ic(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(s||new nc("pipe"))}}}function Fo(e){e()}function sc(e,t){return e.pipe(t)}function ac(e){return!e.length||typeof e[e.length-1]!="function"?Do:e.pop()}function uc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ac(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new rc("streams");var i,o=t.map(function(s,a){var l=a<t.length-1,p=a>0;return oc(s,l,p,function(f){i||(i=f),f&&o.forEach(Fo),!l&&(o.forEach(Fo),n(i))})});return t.reduce(sc)}Po.exports=uc});var Io=m((ne,_t)=>{u();var mt=S("stream");process.env.READABLE_STREAM==="disable"&&mt?(_t.exports=mt.Readable,Object.assign(_t.exports,mt),_t.exports.Stream=mt):(ne=_t.exports=zr(),ne.Stream=mt||ne,ne.Readable=ne,ne.Writable=Xr(),ne.Duplex=Ae(),ne.Transform=yn(),ne.PassThrough=Ao(),ne.finished=Kt(),ne.pipeline=No())});var qo=m((I0,ko)=>{"use strict";u();var{Buffer:oe}=S("buffer"),Mo=Symbol.for("BufferList");function A(e){if(!(this instanceof A))return new A(e);A._init.call(this,e)}A._init=function(t){Object.defineProperty(this,Mo,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};A.prototype._new=function(t){return new A(t)};A.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};A.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};A.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};A.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};A.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||oe.alloc(0);let o=!!t,s=this._offset(n),a=i-n,l=a,p=o&&r||0,f=s[1];if(n===0&&i===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:oe.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,p),p+=this._bufs[h].length;return t}if(l<=this._bufs[s[0]].length-f)return o?this._bufs[s[0]].copy(t,r,f,f+l):this._bufs[s[0]].slice(f,f+l);o||(t=oe.allocUnsafe(a));for(let h=s[0];h<this._bufs.length;h++){let y=this._bufs[h].length-f;if(l>y)this._bufs[h].copy(t,p,f),p+=y;else{this._bufs[h].copy(t,p,f,f+l),p+=y;break}l-=y,f&&(f=0)}return t.length>p?t.slice(0,p):t};A.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),o=this._bufs.slice(n[0],i[0]+1);return i[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,i[1]),n[1]!==0&&(o[0]=o[0].slice(n[1])),this._new(o)};A.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};A.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};A.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};A.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(oe.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(oe.from(t));return this};A.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};A.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=oe.from([e]):typeof e=="string"?e=oe.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=oe.from(e.buffer,e.byteOffset,e.byteLength):oe.isBuffer(e)||(e=oe.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],o=n[1];for(;i<this._bufs.length;i++){let s=this._bufs[i];for(;o<s.length;)if(s.length-o>=e.length){let l=s.indexOf(e,o);if(l!==-1)return this._reverseOffset([i,l]);o=s.length-e.length+1}else{let l=this._reverseOffset([i,o]);if(this._match(l,e))return l;o++}o=0}return-1};A.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?A.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:A.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();A.prototype._isBufferList=function(t){return t instanceof A||A.isBufferList(t)};A.isBufferList=function(t){return t!=null&&t[Mo]};ko.exports=A});var Lo=m((M0,nr)=>{"use strict";u();var _n=Io().Duplex,lc=Ce(),gt=qo();function G(e){if(!(this instanceof G))return new G(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}gt._init.call(this,e),_n.call(this)}lc(G,_n);Object.assign(G.prototype,gt.prototype);G.prototype._new=function(t){return new G(t)};G.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};G.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};G.prototype.end=function(t){_n.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};G.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};G.prototype._isBufferList=function(t){return t instanceof G||t instanceof gt||G.isBufferList(t)};G.isBufferList=gt.isBufferList;nr.exports=G;nr.exports.BufferListStream=G;nr.exports.BufferList=gt});var K=m(wn=>{"use strict";u();wn.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,o)=>i!=null?n(i):r(o))})},"name",{value:e.name})};wn.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var Ho=m((z0,Yo)=>{u();var xe=S("constants"),yc=process.cwd,sr=null,mc=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return sr||(sr=yc.call(process)),sr};try{process.cwd()}catch{}typeof process.chdir=="function"&&(bn=process.chdir,process.chdir=function(e){sr=null,bn.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,bn));var bn;Yo.exports=_c;function _c(e){xe.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=o(e.chown),e.fchown=o(e.fchown),e.lchown=o(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=s(e.chownSync),e.fchownSync=s(e.fchownSync),e.lchownSync=s(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(f,h,y){y&&process.nextTick(y)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,h,y,d){d&&process.nextTick(d)},e.lchownSync=function(){}),mc==="win32"&&(e.rename=function(f){return function(h,y,d){var _=Date.now(),g=0;f(h,y,function x(w){if(w&&(w.code==="EACCES"||w.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(y,function(D,de){D&&D.code==="ENOENT"?f(h,y,x):d(w)})},g),g<100&&(g+=10);return}d&&d(w)})}}(e.rename)),e.read=function(f){function h(y,d,_,g,x,w){var D;if(w&&typeof w=="function"){var de=0;D=function(pe,ke,qn){if(pe&&pe.code==="EAGAIN"&&de<10)return de++,f.call(e,y,d,_,g,x,D);w.apply(this,arguments)}}return f.call(e,y,d,_,g,x,D)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,f),h}(e.read),e.readSync=function(f){return function(h,y,d,_,g){for(var x=0;;)try{return f.call(e,h,y,d,_,g)}catch(w){if(w.code==="EAGAIN"&&x<10){x++;continue}throw w}}}(e.readSync);function t(f){f.lchmod=function(h,y,d){f.open(h,xe.O_WRONLY|xe.O_SYMLINK,y,function(_,g){if(_){d&&d(_);return}f.fchmod(g,y,function(x){f.close(g,function(w){d&&d(x||w)})})})},f.lchmodSync=function(h,y){var d=f.openSync(h,xe.O_WRONLY|xe.O_SYMLINK,y),_=!0,g;try{g=f.fchmodSync(d,y),_=!1}finally{if(_)try{f.closeSync(d)}catch{}else f.closeSync(d)}return g}}function r(f){xe.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(h,y,d,_){f.open(h,xe.O_SYMLINK,function(g,x){if(g){_&&_(g);return}f.futimes(x,y,d,function(w){f.close(x,function(D){_&&_(w||D)})})})},f.lutimesSync=function(h,y,d){var _=f.openSync(h,xe.O_SYMLINK),g,x=!0;try{g=f.futimesSync(_,y,d),x=!1}finally{if(x)try{f.closeSync(_)}catch{}else f.closeSync(_)}return g}):(f.lutimes=function(h,y,d,_){_&&process.nextTick(_)},f.lutimesSync=function(){})}function n(f){return f&&function(h,y,d){return f.call(e,h,y,function(_){p(_)&&(_=null),d&&d.apply(this,arguments)})}}function i(f){return f&&function(h,y){try{return f.call(e,h,y)}catch(d){if(!p(d))throw d}}}function o(f){return f&&function(h,y,d,_){return f.call(e,h,y,d,function(g){p(g)&&(g=null),_&&_.apply(this,arguments)})}}function s(f){return f&&function(h,y,d){try{return f.call(e,h,y,d)}catch(_){if(!p(_))throw _}}}function a(f){return f&&function(h,y,d){typeof y=="function"&&(d=y,y=null);function _(g,x){x&&(x.uid<0&&(x.uid+=4294967296),x.gid<0&&(x.gid+=4294967296)),d&&d.apply(this,arguments)}return y?f.call(e,h,y,_):f.call(e,h,_)}}function l(f){return f&&function(h,y){var d=y?f.call(e,h,y):f.call(e,h);return d&&(d.uid<0&&(d.uid+=4294967296),d.gid<0&&(d.gid+=4294967296)),d}}function p(f){if(!f||f.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var Ko=m((ep,Jo)=>{u();var Vo=S("stream").Stream;Jo.exports=gc;function gc(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);Vo.call(this);var o=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var p=s[a];this[p]=i[p]}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(){o._read()});return}e.open(this.path,this.flags,this.mode,function(f,h){if(f){o.emit("error",f),o.readable=!1;return}o.fd=h,o.emit("open",h),o._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);Vo.call(this),this.path=n,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var o=Object.keys(i),s=0,a=o.length;s<a;s++){var l=o[s];this[l]=i[l]}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=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var Qo=m((tp,Xo)=>{"use strict";u();Xo.exports=xc;var vc=Object.getPrototypeOf||function(e){return e.__proto__};function xc(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:vc(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var V=m((rp,Tn)=>{u();var B=S("fs"),wc=Ho(),bc=Ko(),Sc=Qo(),ar=S("util"),W,lr;typeof Symbol=="function"&&typeof Symbol.for=="function"?(W=Symbol.for("graceful-fs.queue"),lr=Symbol.for("graceful-fs.previous")):(W="___graceful-fs.queue",lr="___graceful-fs.previous");function Ec(){}function es(e,t){Object.defineProperty(e,W,{get:function(){return t}})}var Ne=Ec;ar.debuglog?Ne=ar.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ne=function(){var e=ar.format.apply(ar,arguments);e="GFS4: "+e.split(/\n/).join(`
|
5
|
-
GFS4: `),console.error(e)});B[W]||(Zo=global[W]||[],es(B,Zo),B.close=function(e){function t(r,n){return e.call(B,r,function(i){i||zo(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,lr,{value:e}),t}(B.close),B.closeSync=function(e){function t(r){e.apply(B,arguments),zo()}return Object.defineProperty(t,lr,{value:e}),t}(B.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ne(B[W]),S("assert").equal(B[W].length,0)}));var Zo;global[W]||es(global,B[W]);Tn.exports=Sn(Sc(B));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!B.__patched&&(Tn.exports=Sn(B),B.__patched=!0);function Sn(e){wc(e),e.gracefulify=Sn,e.createReadStream=pe,e.createWriteStream=ke;var t=e.readFile;e.readFile=r;function r(v,R,T){return typeof R=="function"&&(T=R,R=null),j(v,R,T);function j($,U,M,H){return t($,U,function(C){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Qe([j,[$,U,M],C,H||Date.now(),Date.now()]):typeof M=="function"&&M.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return n(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var o=e.appendFile;o&&(e.appendFile=s);function s(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return o(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=l);function l(v,R,T,j){return typeof T=="function"&&(j=T,T=0),$(v,R,T,j);function $(U,M,H,C,z){return a(U,M,H,function(k){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}var p=e.readdir;e.readdir=f;function f(v,R,T){return typeof R=="function"&&(T=R,R=null),j(v,R,T);function j($,U,M,H){return p($,U,function(C,z){C&&(C.code==="EMFILE"||C.code==="ENFILE")?Qe([j,[$,U,M],C,H||Date.now(),Date.now()]):(z&&z.sort&&z.sort(),typeof M=="function"&&M.call(this,C,z))})}}if(process.version.substr(0,4)==="v0.8"){var h=bc(e);x=h.ReadStream,D=h.WriteStream}var y=e.ReadStream;y&&(x.prototype=Object.create(y.prototype),x.prototype.open=w);var d=e.WriteStream;d&&(D.prototype=Object.create(d.prototype),D.prototype.open=de),Object.defineProperty(e,"ReadStream",{get:function(){return x},set:function(v){x=v},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return D},set:function(v){D=v},enumerable:!0,configurable:!0});var _=x;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(v){_=v},enumerable:!0,configurable:!0});var g=D;Object.defineProperty(e,"FileWriteStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});function x(v,R){return this instanceof x?(y.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function w(){var v=this;wr(v.path,v.flags,v.mode,function(R,T){R?(v.autoClose&&v.destroy(),v.emit("error",R)):(v.fd=T,v.emit("open",T),v.read())})}function D(v,R){return this instanceof D?(d.apply(this,arguments),this):D.apply(Object.create(D.prototype),arguments)}function de(){var v=this;wr(v.path,v.flags,v.mode,function(R,T){R?(v.destroy(),v.emit("error",R)):(v.fd=T,v.emit("open",T))})}function pe(v,R){return new e.ReadStream(v,R)}function ke(v,R){return new e.WriteStream(v,R)}var qn=e.open;e.open=wr;function wr(v,R,T,j){return typeof T=="function"&&(j=T,T=null),$(v,R,T,j);function $(U,M,H,C,z){return qn(U,M,H,function(k,Rd){k&&(k.code==="EMFILE"||k.code==="ENFILE")?Qe([$,[U,M,H,C],k,z||Date.now(),Date.now()]):typeof C=="function"&&C.apply(this,arguments)})}}return e}function Qe(e){Ne("ENQUEUE",e[0].name,e[1]),B[W].push(e),En()}var ur;function zo(){for(var e=Date.now(),t=0;t<B[W].length;++t)B[W][t].length>2&&(B[W][t][3]=e,B[W][t][4]=e);En()}function En(){if(clearTimeout(ur),ur=void 0,B[W].length!==0){var e=B[W].shift(),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4];if(i===void 0)Ne("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){Ne("TIMEOUT",t.name,r);var s=r.pop();typeof s=="function"&&s.call(null,n)}else{var a=Date.now()-o,l=Math.max(o-i,1),p=Math.min(l*1.2,100);a>=p?(Ne("RETRY",t.name,r),t.apply(null,r.concat([i]))):B[W].push(e)}ur===void 0&&(ur=setTimeout(En,0))}}});var Ie=m(we=>{"use strict";u();var ts=K().fromCallback,Z=V(),Tc=["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(e=>typeof Z[e]=="function");Object.assign(we,Z);Tc.forEach(e=>{we[e]=ts(Z[e])});we.realpath.native=ts(Z.realpath.native);we.exists=function(e,t){return typeof t=="function"?Z.exists(e,t):new Promise(r=>Z.exists(e,r))};we.read=function(e,t,r,n,i,o){return typeof o=="function"?Z.read(e,t,r,n,i,o):new Promise((s,a)=>{Z.read(e,t,r,n,i,(l,p,f)=>{if(l)return a(l);s({bytesRead:p,buffer:f})})})};we.write=function(e,t,...r){return typeof r[r.length-1]=="function"?Z.write(e,t,...r):new Promise((n,i)=>{Z.write(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffer:a})})})};typeof Z.writev=="function"&&(we.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?Z.writev(e,t,...r):new Promise((n,i)=>{Z.writev(e,t,...r,(o,s,a)=>{if(o)return i(o);n({bytesWritten:s,buffers:a})})})})});var ns=m((ip,rs)=>{"use strict";u();var Rc=S("path");rs.exports.checkPath=function(t){if(process.platform==="win32"&&/[<>:"|?*]/.test(t.replace(Rc.parse(t).root,""))){let n=new Error(`Path contains invalid characters: ${t}`);throw n.code="EINVAL",n}}});var as=m((op,Rn)=>{"use strict";u();var is=Ie(),{checkPath:os}=ns(),ss=e=>{let t={mode:511};return typeof e=="number"?e:{...t,...e}.mode};Rn.exports.makeDir=async(e,t)=>(os(e),is.mkdir(e,{mode:ss(t),recursive:!0}));Rn.exports.makeDirSync=(e,t)=>(os(e),is.mkdirSync(e,{mode:ss(t),recursive:!0}))});var ae=m((sp,us)=>{"use strict";u();var Oc=K().fromPromise,{makeDir:Cc,makeDirSync:On}=as(),Cn=Oc(Cc);us.exports={mkdirs:Cn,mkdirsSync:On,mkdirp:Cn,mkdirpSync:On,ensureDir:Cn,ensureDirSync:On}});var be=m((ap,fs)=>{"use strict";u();var Ac=K().fromPromise,ls=Ie();function Dc(e){return ls.access(e).then(()=>!0).catch(()=>!1)}fs.exports={pathExists:Ac(Dc),pathExistsSync:ls.existsSync}});var An=m((up,cs)=>{"use strict";u();var Ze=V();function Fc(e,t,r,n){Ze.open(e,"r+",(i,o)=>{if(i)return n(i);Ze.futimes(o,t,r,s=>{Ze.close(o,a=>{n&&n(s||a)})})})}function Bc(e,t,r){let n=Ze.openSync(e,"r+");return Ze.futimesSync(n,t,r),Ze.closeSync(n)}cs.exports={utimesMillis:Fc,utimesMillisSync:Bc}});var Me=m((lp,ps)=>{"use strict";u();var ze=Ie(),L=S("path"),Pc=S("util");function Nc(e,t,r){let n=r.dereference?i=>ze.stat(i,{bigint:!0}):i=>ze.lstat(i,{bigint:!0});return Promise.all([n(e),n(t).catch(i=>{if(i.code==="ENOENT")return null;throw i})]).then(([i,o])=>({srcStat:i,destStat:o}))}function Ic(e,t,r){let n,i=r.dereference?s=>ze.statSync(s,{bigint:!0}):s=>ze.lstatSync(s,{bigint:!0}),o=i(e);try{n=i(t)}catch(s){if(s.code==="ENOENT")return{srcStat:o,destStat:null};throw s}return{srcStat:o,destStat:n}}function Mc(e,t,r,n,i){Pc.callbackify(Nc)(e,t,n,(o,s)=>{if(o)return i(o);let{srcStat:a,destStat:l}=s;if(l){if(xt(a,l)){let p=L.basename(e),f=L.basename(t);return r==="move"&&p!==f&&p.toLowerCase()===f.toLowerCase()?i(null,{srcStat:a,destStat:l,isChangingCase:!0}):i(new Error("Source and destination must not be the same."))}if(a.isDirectory()&&!l.isDirectory())return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));if(!a.isDirectory()&&l.isDirectory())return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`))}return a.isDirectory()&&Dn(e,t)?i(new Error(fr(e,t,r))):i(null,{srcStat:a,destStat:l})})}function kc(e,t,r,n){let{srcStat:i,destStat:o}=Ic(e,t,n);if(o){if(xt(i,o)){let s=L.basename(e),a=L.basename(t);if(r==="move"&&s!==a&&s.toLowerCase()===a.toLowerCase())return{srcStat:i,destStat:o,isChangingCase:!0};throw new Error("Source and destination must not be the same.")}if(i.isDirectory()&&!o.isDirectory())throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);if(!i.isDirectory()&&o.isDirectory())throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`)}if(i.isDirectory()&&Dn(e,t))throw new Error(fr(e,t,r));return{srcStat:i,destStat:o}}function hs(e,t,r,n,i){let o=L.resolve(L.dirname(e)),s=L.resolve(L.dirname(r));if(s===o||s===L.parse(s).root)return i();ze.stat(s,{bigint:!0},(a,l)=>a?a.code==="ENOENT"?i():i(a):xt(t,l)?i(new Error(fr(e,r,n))):hs(e,t,s,n,i))}function ds(e,t,r,n){let i=L.resolve(L.dirname(e)),o=L.resolve(L.dirname(r));if(o===i||o===L.parse(o).root)return;let s;try{s=ze.statSync(o,{bigint:!0})}catch(a){if(a.code==="ENOENT")return;throw a}if(xt(t,s))throw new Error(fr(e,r,n));return ds(e,t,o,n)}function xt(e,t){return t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev}function Dn(e,t){let r=L.resolve(e).split(L.sep).filter(i=>i),n=L.resolve(t).split(L.sep).filter(i=>i);return r.reduce((i,o,s)=>i&&n[s]===o,!0)}function fr(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}ps.exports={checkPaths:Mc,checkPathsSync:kc,checkParentPaths:hs,checkParentPathsSync:ds,isSrcSubdir:Dn,areIdentical:xt}});var bs=m((fp,ws)=>{"use strict";u();var X=V(),wt=S("path"),qc=ae().mkdirs,Lc=be().pathExists,jc=An().utimesMillis,bt=Me();function $c(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
6
|
-
|
7
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),bt.checkPaths(e,t,"copy",r,(i,o)=>{if(i)return n(i);let{srcStat:s,destStat:a}=o;bt.checkParentPaths(e,s,t,"copy",l=>l?n(l):r.filter?_s(ys,a,e,t,r,n):ys(a,e,t,r,n))})}function ys(e,t,r,n,i){let o=wt.dirname(r);Lc(o,(s,a)=>{if(s)return i(s);if(a)return cr(e,t,r,n,i);qc(o,l=>l?i(l):cr(e,t,r,n,i))})}function _s(e,t,r,n,i,o){Promise.resolve(i.filter(r,n)).then(s=>s?e(t,r,n,i,o):o(),s=>o(s))}function Uc(e,t,r,n,i){return n.filter?_s(cr,e,t,r,n,i):cr(e,t,r,n,i)}function cr(e,t,r,n,i){(n.dereference?X.stat:X.lstat)(t,(s,a)=>s?i(s):a.isDirectory()?Kc(a,e,t,r,n,i):a.isFile()||a.isCharacterDevice()||a.isBlockDevice()?Wc(a,e,t,r,n,i):a.isSymbolicLink()?Zc(e,t,r,n,i):a.isSocket()?i(new Error(`Cannot copy a socket file: ${t}`)):a.isFIFO()?i(new Error(`Cannot copy a FIFO pipe: ${t}`)):i(new Error(`Unknown file: ${t}`)))}function Wc(e,t,r,n,i,o){return t?Gc(e,r,n,i,o):gs(e,r,n,i,o)}function Gc(e,t,r,n,i){if(n.overwrite)X.unlink(r,o=>o?i(o):gs(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function gs(e,t,r,n,i){X.copyFile(t,r,o=>o?i(o):n.preserveTimestamps?Yc(e.mode,t,r,i):hr(r,e.mode,i))}function Yc(e,t,r,n){return Hc(e)?Vc(r,e,i=>i?n(i):ms(e,t,r,n)):ms(e,t,r,n)}function Hc(e){return(e&128)===0}function Vc(e,t,r){return hr(e,t|128,r)}function ms(e,t,r,n){Jc(t,r,i=>i?n(i):hr(r,e,n))}function hr(e,t,r){return X.chmod(e,t,r)}function Jc(e,t,r){X.stat(e,(n,i)=>n?r(n):jc(t,i.atime,i.mtime,r))}function Kc(e,t,r,n,i,o){return t?vs(r,n,i,o):Xc(e.mode,r,n,i,o)}function Xc(e,t,r,n,i){X.mkdir(r,o=>{if(o)return i(o);vs(t,r,n,s=>s?i(s):hr(r,e,i))})}function vs(e,t,r,n){X.readdir(e,(i,o)=>i?n(i):xs(o,e,t,r,n))}function xs(e,t,r,n,i){let o=e.pop();return o?Qc(e,o,t,r,n,i):i()}function Qc(e,t,r,n,i,o){let s=wt.join(r,t),a=wt.join(n,t);bt.checkPaths(s,a,"copy",i,(l,p)=>{if(l)return o(l);let{destStat:f}=p;Uc(f,s,a,i,h=>h?o(h):xs(e,r,n,i,o))})}function Zc(e,t,r,n,i){X.readlink(t,(o,s)=>{if(o)return i(o);if(n.dereference&&(s=wt.resolve(process.cwd(),s)),e)X.readlink(r,(a,l)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?X.symlink(s,r,i):i(a):(n.dereference&&(l=wt.resolve(process.cwd(),l)),bt.isSrcSubdir(s,l)?i(new Error(`Cannot copy '${s}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&bt.isSrcSubdir(l,s)?i(new Error(`Cannot overwrite '${l}' with '${s}'.`)):zc(s,r,i)));else return X.symlink(s,r,i)})}function zc(e,t,r){X.unlink(t,n=>n?r(n):X.symlink(e,t,r))}ws.exports=$c});var Os=m((cp,Rs)=>{"use strict";u();var Y=V(),St=S("path"),eh=ae().mkdirsSync,th=An().utimesMillisSync,Et=Me();function rh(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
8
|
-
|
9
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=Et.checkPathsSync(e,t,"copy",r);return Et.checkParentPathsSync(e,n,t,"copy"),nh(i,e,t,r)}function nh(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=St.dirname(r);return Y.existsSync(i)||eh(i),Ss(e,t,r,n)}function ih(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return Ss(e,t,r,n)}function Ss(e,t,r,n){let o=(n.dereference?Y.statSync:Y.lstatSync)(t);if(o.isDirectory())return ch(o,e,t,r,n);if(o.isFile()||o.isCharacterDevice()||o.isBlockDevice())return oh(o,e,t,r,n);if(o.isSymbolicLink())return ph(e,t,r,n);throw o.isSocket()?new Error(`Cannot copy a socket file: ${t}`):o.isFIFO()?new Error(`Cannot copy a FIFO pipe: ${t}`):new Error(`Unknown file: ${t}`)}function oh(e,t,r,n,i){return t?sh(e,r,n,i):Es(e,r,n,i)}function sh(e,t,r,n){if(n.overwrite)return Y.unlinkSync(r),Es(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function Es(e,t,r,n){return Y.copyFileSync(t,r),n.preserveTimestamps&&ah(e.mode,t,r),Fn(r,e.mode)}function ah(e,t,r){return uh(e)&&lh(r,e),fh(t,r)}function uh(e){return(e&128)===0}function lh(e,t){return Fn(e,t|128)}function Fn(e,t){return Y.chmodSync(e,t)}function fh(e,t){let r=Y.statSync(e);return th(t,r.atime,r.mtime)}function ch(e,t,r,n,i){return t?Ts(r,n,i):hh(e.mode,r,n,i)}function hh(e,t,r,n){return Y.mkdirSync(r),Ts(t,r,n),Fn(r,e)}function Ts(e,t,r){Y.readdirSync(e).forEach(n=>dh(n,e,t,r))}function dh(e,t,r,n){let i=St.join(t,e),o=St.join(r,e),{destStat:s}=Et.checkPathsSync(i,o,"copy",n);return ih(s,i,o,n)}function ph(e,t,r,n){let i=Y.readlinkSync(t);if(n.dereference&&(i=St.resolve(process.cwd(),i)),e){let o;try{o=Y.readlinkSync(r)}catch(s){if(s.code==="EINVAL"||s.code==="UNKNOWN")return Y.symlinkSync(i,r);throw s}if(n.dereference&&(o=St.resolve(process.cwd(),o)),Et.isSrcSubdir(i,o))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);if(Y.statSync(r).isDirectory()&&Et.isSrcSubdir(o,i))throw new Error(`Cannot overwrite '${o}' with '${i}'.`);return yh(i,r)}else return Y.symlinkSync(i,r)}function yh(e,t){return Y.unlinkSync(t),Y.symlinkSync(e,t)}Rs.exports=rh});var dr=m((hp,Cs)=>{"use strict";u();var mh=K().fromCallback;Cs.exports={copy:mh(bs()),copySync:Os()}});var ks=m((dp,Ms)=>{"use strict";u();var As=V(),Ps=S("path"),O=S("assert"),Tt=process.platform==="win32";function Ns(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||As[r],r=r+"Sync",e[r]=e[r]||As[r]}),e.maxBusyTries=e.maxBusyTries||3}function Bn(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),O(e,"rimraf: missing path"),O.strictEqual(typeof e,"string","rimraf: path should be a string"),O.strictEqual(typeof r,"function","rimraf: callback function required"),O(t,"rimraf: invalid options argument provided"),O.strictEqual(typeof t,"object","rimraf: options should be object"),Ns(t),Ds(e,t,function i(o){if(o){if((o.code==="EBUSY"||o.code==="ENOTEMPTY"||o.code==="EPERM")&&n<t.maxBusyTries){n++;let s=n*100;return setTimeout(()=>Ds(e,t,i),s)}o.code==="ENOENT"&&(o=null)}r(o)})}function Ds(e,t,r){O(e),O(t),O(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Tt)return Fs(e,t,n,r);if(i&&i.isDirectory())return pr(e,t,n,r);t.unlink(e,o=>{if(o){if(o.code==="ENOENT")return r(null);if(o.code==="EPERM")return Tt?Fs(e,t,o,r):pr(e,t,o,r);if(o.code==="EISDIR")return pr(e,t,o,r)}return r(o)})})}function Fs(e,t,r,n){O(e),O(t),O(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(o,s)=>{o?n(o.code==="ENOENT"?null:r):s.isDirectory()?pr(e,t,r,n):t.unlink(e,n)})})}function Bs(e,t,r){let n;O(e),O(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?yr(e,t,r):t.unlinkSync(e)}function pr(e,t,r,n){O(e),O(t),O(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?_h(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function _h(e,t,r){O(e),O(t),O(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let o=i.length,s;if(o===0)return t.rmdir(e,r);i.forEach(a=>{Bn(Ps.join(e,a),t,l=>{if(!s){if(l)return r(s=l);--o===0&&t.rmdir(e,r)}})})})}function Is(e,t){let r;t=t||{},Ns(t),O(e,"rimraf: missing path"),O.strictEqual(typeof e,"string","rimraf: path should be a string"),O(t,"rimraf: missing options"),O.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Tt&&Bs(e,t,n)}try{r&&r.isDirectory()?yr(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Tt?Bs(e,t,n):yr(e,t,n);if(n.code!=="EISDIR")throw n;yr(e,t,n)}}function yr(e,t,r){O(e),O(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")gh(e,t);else if(n.code!=="ENOENT")throw n}}function gh(e,t){if(O(e),O(t),t.readdirSync(e).forEach(r=>Is(Ps.join(e,r),t)),Tt){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}Ms.exports=Bn;Bn.sync=Is});var Rt=m((pp,Ls)=>{"use strict";u();var mr=V(),vh=K().fromCallback,qs=ks();function xh(e,t){if(mr.rm)return mr.rm(e,{recursive:!0,force:!0},t);qs(e,t)}function wh(e){if(mr.rmSync)return mr.rmSync(e,{recursive:!0,force:!0});qs.sync(e)}Ls.exports={remove:vh(xh),removeSync:wh}});var Vs=m((yp,Hs)=>{"use strict";u();var bh=K().fromPromise,Us=Ie(),Ws=S("path"),Gs=ae(),Ys=Rt(),js=bh(async function(t){let r;try{r=await Us.readdir(t)}catch{return Gs.mkdirs(t)}return Promise.all(r.map(n=>Ys.remove(Ws.join(t,n))))});function $s(e){let t;try{t=Us.readdirSync(e)}catch{return Gs.mkdirsSync(e)}t.forEach(r=>{r=Ws.join(e,r),Ys.removeSync(r)})}Hs.exports={emptyDirSync:$s,emptydirSync:$s,emptyDir:js,emptydir:js}});var Qs=m((mp,Xs)=>{"use strict";u();var Sh=K().fromCallback,Js=S("path"),Se=V(),Ks=ae();function Eh(e,t){function r(){Se.writeFile(e,"",n=>{if(n)return t(n);t()})}Se.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let o=Js.dirname(e);Se.stat(o,(s,a)=>{if(s)return s.code==="ENOENT"?Ks.mkdirs(o,l=>{if(l)return t(l);r()}):t(s);a.isDirectory()?r():Se.readdir(o,l=>{if(l)return t(l)})})})}function Th(e){let t;try{t=Se.statSync(e)}catch{}if(t&&t.isFile())return;let r=Js.dirname(e);try{Se.statSync(r).isDirectory()||Se.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")Ks.mkdirsSync(r);else throw n}Se.writeFileSync(e,"")}Xs.exports={createFile:Sh(Eh),createFileSync:Th}});var ra=m((_p,ta)=>{"use strict";u();var Rh=K().fromCallback,Zs=S("path"),Ee=V(),zs=ae(),Oh=be().pathExists,{areIdentical:ea}=Me();function Ch(e,t,r){function n(i,o){Ee.link(i,o,s=>{if(s)return r(s);r(null)})}Ee.lstat(t,(i,o)=>{Ee.lstat(e,(s,a)=>{if(s)return s.message=s.message.replace("lstat","ensureLink"),r(s);if(o&&ea(a,o))return r(null);let l=Zs.dirname(t);Oh(l,(p,f)=>{if(p)return r(p);if(f)return n(e,t);zs.mkdirs(l,h=>{if(h)return r(h);n(e,t)})})})})}function Ah(e,t){let r;try{r=Ee.lstatSync(t)}catch{}try{let o=Ee.lstatSync(e);if(r&&ea(o,r))return}catch(o){throw o.message=o.message.replace("lstat","ensureLink"),o}let n=Zs.dirname(t);return Ee.existsSync(n)||zs.mkdirsSync(n),Ee.linkSync(e,t)}ta.exports={createLink:Rh(Ch),createLinkSync:Ah}});var ia=m((gp,na)=>{"use strict";u();var Te=S("path"),Ot=V(),Dh=be().pathExists;function Fh(e,t,r){if(Te.isAbsolute(e))return Ot.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=Te.dirname(t),i=Te.join(n,e);return Dh(i,(o,s)=>o?r(o):s?r(null,{toCwd:i,toDst:e}):Ot.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:Te.relative(n,e)})))}}function Bh(e,t){let r;if(Te.isAbsolute(e)){if(r=Ot.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=Te.dirname(t),i=Te.join(n,e);if(r=Ot.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Ot.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Te.relative(n,e)}}}na.exports={symlinkPaths:Fh,symlinkPathsSync:Bh}});var aa=m((vp,sa)=>{"use strict";u();var oa=V();function Ph(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);oa.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function Nh(e,t){let r;if(t)return t;try{r=oa.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}sa.exports={symlinkType:Ph,symlinkTypeSync:Nh}});var ya=m((xp,pa)=>{"use strict";u();var Ih=K().fromCallback,la=S("path"),ue=Ie(),fa=ae(),Mh=fa.mkdirs,kh=fa.mkdirsSync,ca=ia(),qh=ca.symlinkPaths,Lh=ca.symlinkPathsSync,ha=aa(),jh=ha.symlinkType,$h=ha.symlinkTypeSync,Uh=be().pathExists,{areIdentical:da}=Me();function Wh(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,ue.lstat(t,(i,o)=>{!i&&o.isSymbolicLink()?Promise.all([ue.stat(e),ue.stat(t)]).then(([s,a])=>{if(da(s,a))return n(null);ua(e,t,r,n)}):ua(e,t,r,n)})}function ua(e,t,r,n){qh(e,t,(i,o)=>{if(i)return n(i);e=o.toDst,jh(o.toCwd,r,(s,a)=>{if(s)return n(s);let l=la.dirname(t);Uh(l,(p,f)=>{if(p)return n(p);if(f)return ue.symlink(e,t,a,n);Mh(l,h=>{if(h)return n(h);ue.symlink(e,t,a,n)})})})})}function Gh(e,t,r){let n;try{n=ue.lstatSync(t)}catch{}if(n&&n.isSymbolicLink()){let a=ue.statSync(e),l=ue.statSync(t);if(da(a,l))return}let i=Lh(e,t);e=i.toDst,r=$h(i.toCwd,r);let o=la.dirname(t);return ue.existsSync(o)||kh(o),ue.symlinkSync(e,t,r)}pa.exports={createSymlink:Ih(Wh),createSymlinkSync:Gh}});var Sa=m((wp,ba)=>{"use strict";u();var{createFile:ma,createFileSync:_a}=Qs(),{createLink:ga,createLinkSync:va}=ra(),{createSymlink:xa,createSymlinkSync:wa}=ya();ba.exports={createFile:ma,createFileSync:_a,ensureFile:ma,ensureFileSync:_a,createLink:ga,createLinkSync:va,ensureLink:ga,ensureLinkSync:va,createSymlink:xa,createSymlinkSync:wa,ensureSymlink:xa,ensureSymlinkSync:wa}});var _r=m((bp,Ea)=>{u();function Yh(e,{EOL:t=`
|
10
|
-
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let o=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+o}function Hh(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}Ea.exports={stringify:Yh,stripBom:Hh}});var Ca=m((Sp,Oa)=>{u();var et;try{et=V()}catch{et=S("fs")}var gr=K(),{stringify:Ta,stripBom:Ra}=_r();async function Vh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0,i=await gr.fromCallback(r.readFile)(e,t);i=Ra(i);let o;try{o=JSON.parse(i,t?t.reviver:null)}catch(s){if(n)throw s.message=`${e}: ${s.message}`,s;return null}return o}var Jh=gr.fromPromise(Vh);function Kh(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||et,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=Ra(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Xh(e,t,r={}){let n=r.fs||et,i=Ta(t,r);await gr.fromCallback(n.writeFile)(e,i,r)}var Qh=gr.fromPromise(Xh);function Zh(e,t,r={}){let n=r.fs||et,i=Ta(t,r);return n.writeFileSync(e,i,r)}var zh={readFile:Jh,readFileSync:Kh,writeFile:Qh,writeFileSync:Zh};Oa.exports=zh});var Da=m((Ep,Aa)=>{"use strict";u();var vr=Ca();Aa.exports={readJson:vr.readFile,readJsonSync:vr.readFileSync,writeJson:vr.writeFile,writeJsonSync:vr.writeFileSync}});var xr=m((Tp,Pa)=>{"use strict";u();var ed=K().fromCallback,Ct=V(),Fa=S("path"),Ba=ae(),td=be().pathExists;function rd(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=Fa.dirname(e);td(i,(o,s)=>{if(o)return n(o);if(s)return Ct.writeFile(e,t,r,n);Ba.mkdirs(i,a=>{if(a)return n(a);Ct.writeFile(e,t,r,n)})})}function nd(e,...t){let r=Fa.dirname(e);if(Ct.existsSync(r))return Ct.writeFileSync(e,...t);Ba.mkdirsSync(r),Ct.writeFileSync(e,...t)}Pa.exports={outputFile:ed(rd),outputFileSync:nd}});var Ia=m((Rp,Na)=>{"use strict";u();var{stringify:id}=_r(),{outputFile:od}=xr();async function sd(e,t,r={}){let n=id(t,r);await od(e,n,r)}Na.exports=sd});var ka=m((Op,Ma)=>{"use strict";u();var{stringify:ad}=_r(),{outputFileSync:ud}=xr();function ld(e,t,r){let n=ad(t,r);ud(e,n,r)}Ma.exports=ld});var La=m((Cp,qa)=>{"use strict";u();var fd=K().fromPromise,J=Da();J.outputJson=fd(Ia());J.outputJsonSync=ka();J.outputJSON=J.outputJson;J.outputJSONSync=J.outputJsonSync;J.writeJSON=J.writeJson;J.writeJSONSync=J.writeJsonSync;J.readJSON=J.readJson;J.readJSONSync=J.readJsonSync;qa.exports=J});var Ga=m((Ap,Wa)=>{"use strict";u();var cd=V(),Nn=S("path"),hd=dr().copy,Ua=Rt().remove,dd=ae().mkdirp,pd=be().pathExists,ja=Me();function yd(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;ja.checkPaths(e,t,"move",r,(o,s)=>{if(o)return n(o);let{srcStat:a,isChangingCase:l=!1}=s;ja.checkParentPaths(e,a,t,"move",p=>{if(p)return n(p);if(md(t))return $a(e,t,i,l,n);dd(Nn.dirname(t),f=>f?n(f):$a(e,t,i,l,n))})})}function md(e){let t=Nn.dirname(e);return Nn.parse(t).root===t}function $a(e,t,r,n,i){if(n)return Pn(e,t,r,i);if(r)return Ua(t,o=>o?i(o):Pn(e,t,r,i));pd(t,(o,s)=>o?i(o):s?i(new Error("dest already exists.")):Pn(e,t,r,i))}function Pn(e,t,r,n){cd.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):_d(e,t,r,n):n())}function _d(e,t,r,n){hd(e,t,{overwrite:r,errorOnExist:!0},o=>o?n(o):Ua(e,n))}Wa.exports=yd});var Ka=m((Dp,Ja)=>{"use strict";u();var Ha=V(),Mn=S("path"),gd=dr().copySync,Va=Rt().removeSync,vd=ae().mkdirpSync,Ya=Me();function xd(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i,isChangingCase:o=!1}=Ya.checkPathsSync(e,t,"move",r);return Ya.checkParentPathsSync(e,i,t,"move"),wd(t)||vd(Mn.dirname(t)),bd(e,t,n,o)}function wd(e){let t=Mn.dirname(e);return Mn.parse(t).root===t}function bd(e,t,r,n){if(n)return In(e,t,r);if(r)return Va(t),In(e,t,r);if(Ha.existsSync(t))throw new Error("dest already exists.");return In(e,t,r)}function In(e,t,r){try{Ha.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Sd(e,t,r)}}function Sd(e,t,r){return gd(e,t,{overwrite:r,errorOnExist:!0}),Va(e)}Ja.exports=xd});var Qa=m((Fp,Xa)=>{"use strict";u();var Ed=K().fromCallback;Xa.exports={move:Ed(Ga()),moveSync:Ka()}});var za=m((Bp,Za)=>{"use strict";u();Za.exports={...Ie(),...dr(),...Vs(),...Sa(),...La(),...ae(),...Qa(),...xr(),...be(),...Rt()}});u();u();u();var Ln=(e=0)=>t=>`\x1B[${t+e}m`,jn=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,$n=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function hu(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,o]of Object.entries(n))t[i]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[i]=t[i],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Ln(),t.color.ansi256=jn(),t.color.ansi16m=$n(),t.bgColor.ansi=Ln(10),t.bgColor.ansi256=jn(10),t.bgColor.ansi16m=$n(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(s=>s+s).join(""));let o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,o;if(r>=232)n=((r-232)*10+8)/255,i=n,o=n;else{r-=16;let l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,o=l%6/5}let s=Math.max(n,i,o)*2;if(s===0)return 30;let a=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(n));return s===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var du=hu(),ie=du;u();import Sr from"node:process";import pu from"node:os";import Un from"node:tty";function ee(e,t=Sr.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:N}=Sr,At;ee("no-color")||ee("no-colors")||ee("color=false")||ee("color=never")?At=0:(ee("color")||ee("colors")||ee("color=true")||ee("color=always"))&&(At=1);function yu(){if("FORCE_COLOR"in N)return N.FORCE_COLOR==="true"?1:N.FORCE_COLOR==="false"?0:N.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(N.FORCE_COLOR,10),3)}function mu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _u(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=yu();n!==void 0&&(At=n);let i=r?At:n;if(i===0)return 0;if(r){if(ee("color=16m")||ee("color=full")||ee("color=truecolor"))return 3;if(ee("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let o=i||0;if(N.TERM==="dumb")return o;if(Sr.platform==="win32"){let s=pu.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in N)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in N)||N.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in N)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(N.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in N&&"AGENT_NAME"in N)return 1;if(N.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in N){let s=Number.parseInt((N.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(N.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(N.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(N.TERM)||"COLORTERM"in N?1:o}function Wn(e,t={}){let r=_u(e,{streamIsTTY:e&&e.isTTY,...t});return mu(r)}var gu={stdout:Wn({isTTY:Un.isatty(1)}),stderr:Wn({isTTY:Un.isatty(2)})},Gn=gu;u();function Yn(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,o=0,s="";do s+=e.substr(o,n-o)+t+r,o=n+i,n=e.indexOf(t,o);while(n!==-1);return s+=e.slice(o),s}function Hn(e,t,r,n){let i=0,o="";do{let s=e[n-1]==="\r";o+=e.substr(i,(s?n-1:n)-i)+t+(s?`\r
|
4
|
+
var vn=Object.create;var cr=Object.defineProperty;var wn=Object.getOwnPropertyDescriptor;var En=Object.getOwnPropertyNames;var Rn=Object.getPrototypeOf,Sn=Object.prototype.hasOwnProperty;var O=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tn=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of En(t))!Sn.call(e,n)&&n!==r&&cr(e,n,{get:()=>t[n],enumerable:!(i=wn(t,n))||i.enumerable});return e};var de=(e,t,r)=>(r=e!=null?vn(Rn(e)):{},Tn(t||!e||!e.__esModule?cr(r,"default",{value:e,enumerable:!0}):r,e));var Dr=p((Zl,wt)=>{"use strict";var Ir=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};wt.exports=Ir;wt.exports.default=Ir});var Nr=p((Xl,ke)=>{"use strict";var ho=Dr(),je=new WeakMap,Lr=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,i=0,n=e.displayName||e.name||"<anonymous>",o=function(...s){if(je.set(o,++i),i===1)r=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${n}\` can only be called once`);return r};return ho(o,e),je.set(o,i),o};ke.exports=Lr;ke.exports.default=Lr;ke.exports.callCount=e=>{if(!je.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return je.get(e)}});var Pr=p((Ql,qe)=>{qe.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&qe.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&qe.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Ur=p((zl,se)=>{var b=global.process,Y=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"};Y(b)?(Fr=O("assert"),ne=Pr(),jr=/^win/i.test(b.platform),ye=O("events"),typeof ye!="function"&&(ye=ye.EventEmitter),b.__signal_exit_emitter__?R=b.__signal_exit_emitter__:(R=b.__signal_exit_emitter__=new ye,R.count=0,R.emitted={}),R.infinite||(R.setMaxListeners(1/0),R.infinite=!0),se.exports=function(e,t){if(!Y(global.process))return function(){};Fr.equal(typeof e,"function","a callback must be provided for exit handler"),oe===!1&&Et();var r="exit";t&&t.alwaysLast&&(r="afterexit");var i=function(){R.removeListener(r,e),R.listeners("exit").length===0&&R.listeners("afterexit").length===0&&Ue()};return R.on(r,e),i},Ue=function(){!oe||!Y(global.process)||(oe=!1,ne.forEach(function(t){try{b.removeListener(t,Ge[t])}catch{}}),b.emit=We,b.reallyExit=Rt,R.count-=1)},se.exports.unload=Ue,V=function(t,r,i){R.emitted[t]||(R.emitted[t]=!0,R.emit(t,r,i))},Ge={},ne.forEach(function(e){Ge[e]=function(){if(!!Y(global.process)){var r=b.listeners(e);r.length===R.count&&(Ue(),V("exit",null,e),V("afterexit",null,e),jr&&e==="SIGHUP"&&(e="SIGINT"),b.kill(b.pid,e))}}}),se.exports.signals=function(){return ne},oe=!1,Et=function(){oe||!Y(global.process)||(oe=!0,R.count+=1,ne=ne.filter(function(t){try{return b.on(t,Ge[t]),!0}catch{return!1}}),b.emit=qr,b.reallyExit=kr)},se.exports.load=Et,Rt=b.reallyExit,kr=function(t){!Y(global.process)||(b.exitCode=t||0,V("exit",b.exitCode,null),V("afterexit",b.exitCode,null),Rt.call(b,b.exitCode))},We=b.emit,qr=function(t,r){if(t==="exit"&&Y(global.process)){r!==void 0&&(b.exitCode=r);var i=We.apply(this,arguments);return V("exit",b.exitCode,null),V("afterexit",b.exitCode,null),i}else return We.apply(this,arguments)}):se.exports=function(){return function(){}};var Fr,ne,jr,ye,R,Ue,V,Ge,oe,Et,Rt,kr,We,qr});var Yr=p((oa,_o)=>{_o.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var Jr=p((sa,Kr)=>{"use strict";var He=Object.assign({},Yr()),Vr=Object.keys(He);Object.defineProperty(He,"random",{get(){let e=Math.floor(Math.random()*Vr.length),t=Vr[e];return He[t]}});Kr.exports=He});var Zr=p((pa,Ye)=>{var xo=function(){"use strict";function e(s,l,a,f){var c;typeof l=="object"&&(a=l.depth,f=l.prototype,c=l.filter,l=l.circular);var d=[],y=[],m=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof a>"u"&&(a=1/0);function S(_,k){if(_===null)return null;if(k==0)return _;var v,ce;if(typeof _!="object")return _;if(e.__isArray(_))v=[];else if(e.__isRegExp(_))v=new RegExp(_.source,o(_)),_.lastIndex&&(v.lastIndex=_.lastIndex);else if(e.__isDate(_))v=new Date(_.getTime());else{if(m&&Buffer.isBuffer(_))return Buffer.allocUnsafe?v=Buffer.allocUnsafe(_.length):v=new Buffer(_.length),_.copy(v),v;typeof f>"u"?(ce=Object.getPrototypeOf(_),v=Object.create(ce)):(v=Object.create(f),ce=f)}if(l){var hr=d.indexOf(_);if(hr!=-1)return y[hr];d.push(_),y.push(v)}for(var ht in _){var ct;ce&&(ct=Object.getOwnPropertyDescriptor(ce,ht)),!(ct&&ct.set==null)&&(v[ht]=S(_[ht],k-1))}return v}return S(s,a)}e.clonePrototype=function(l){if(l===null)return null;var a=function(){};return a.prototype=l,new a};function t(s){return Object.prototype.toString.call(s)}e.__objToStr=t;function r(s){return typeof s=="object"&&t(s)==="[object Date]"}e.__isDate=r;function i(s){return typeof s=="object"&&t(s)==="[object Array]"}e.__isArray=i;function n(s){return typeof s=="object"&&t(s)==="[object RegExp]"}e.__isRegExp=n;function o(s){var l="";return s.global&&(l+="g"),s.ignoreCase&&(l+="i"),s.multiline&&(l+="m"),l}return e.__getRegExpFlags=o,e}();typeof Ye=="object"&&Ye.exports&&(Ye.exports=xo)});var Qr=p((_a,Xr)=>{var mo=Zr();Xr.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=mo(t[r]))}),e}});var ei=p((ga,zr)=>{zr.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]]});var ni=p((ba,At)=>{"use strict";var vo=Qr(),ve=ei(),ri={nul:0,control:0};At.exports=function(t){return ii(t,ri)};At.exports.config=function(e){return e=vo(e||{},ri),function(r){return ii(r,e)}};function ii(e,t){if(typeof e!="string")return ti(e,t);for(var r=0,i=0;i<e.length;i++){var n=ti(e.charCodeAt(i),t);if(n<0)return-1;r+=n}return r}function ti(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:wo(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function wo(e){var t=0,r=ve.length-1,i;if(e<ve[0][0]||e>ve[r][1])return!1;for(;r>=t;)if(i=Math.floor((t+r)/2),e>ve[i][1])t=i+1;else if(e<ve[i][0])r=i-1;else return!0;return!1}});var Bt=p((xa,oi)=>{oi.exports=O("stream")});var fi=p((ma,ai)=>{"use strict";function si(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?si(Object(r),!0).forEach(function(i){Ro(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):si(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Ro(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function So(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function To(e,t,r){return t&&li(e.prototype,t),r&&li(e,r),e}var Oo=O("buffer"),Ve=Oo.Buffer,Ao=O("util"),Mt=Ao.inspect,Co=Mt&&Mt.custom||"inspect";function Bo(e,t,r){Ve.prototype.copy.call(e,t,r)}ai.exports=function(){function e(){So(this,e),this.head=null,this.tail=null,this.length=0}return To(e,[{key:"push",value:function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,n=""+i.data;i=i.next;)n+=r+i.data;return n}},{key:"concat",value:function(r){if(this.length===0)return Ve.alloc(0);for(var i=Ve.allocUnsafe(r>>>0),n=this.head,o=0;n;)Bo(n.data,i,o),o+=n.data.length,n=n.next;return i}},{key:"consume",value:function(r,i){var n;return r<this.head.data.length?(n=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?n=this.shift():n=i?this._getString(r):this._getBuffer(r),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var i=this.head,n=1,o=i.data;for(r-=o.length;i=i.next;){var s=i.data,l=r>s.length?s.length:r;if(l===s.length?o+=s:o+=s.slice(0,r),r-=l,r===0){l===s.length?(++n,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=s.slice(l));break}++n}return this.length-=n,o}},{key:"_getBuffer",value:function(r){var i=Ve.allocUnsafe(r),n=this.head,o=1;for(n.data.copy(i),r-=n.data.length;n=n.next;){var s=n.data,l=r>s.length?s.length:r;if(s.copy(i,i.length-r,0,l),r-=l,r===0){l===s.length?(++o,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=s.slice(l));break}++o}return this.length-=o,i}},{key:Co,value:function(r,i){return Mt(this,Eo({},i,{depth:0,customInspect:!1}))}}]),e}()});var Dt=p((va,hi)=>{"use strict";function Mo(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,n=this._writableState&&this._writableState.destroyed;return i||n?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(It,this,e)):process.nextTick(It,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(o){!t&&o?r._writableState?r._writableState.errorEmitted?process.nextTick(Ke,r):(r._writableState.errorEmitted=!0,process.nextTick(ui,r,o)):process.nextTick(ui,r,o):t?(process.nextTick(Ke,r),t(o)):process.nextTick(Ke,r)}),this)}function ui(e,t){It(e,t),Ke(e)}function Ke(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Io(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function It(e,t){e.emit("error",t)}function Do(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}hi.exports={destroy:Mo,undestroy:Io,errorOrDestroy:Do}});var U=p((wa,pi)=>{"use strict";var di={};function M(e,t,r){r||(r=Error);function i(o,s,l){return typeof t=="string"?t:t(o,s,l)}class n extends r{constructor(s,l,a){super(i(s,l,a))}}n.prototype.name=r.name,n.prototype.code=e,di[e]=n}function ci(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function Lo(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function No(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Po(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}M("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);M("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;typeof t=="string"&&Lo(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let n;if(No(e," argument"))n=`The ${e} ${i} ${ci(t,"type")}`;else{let o=Po(e,".")?"property":"argument";n=`The "${e}" ${o} ${i} ${ci(t,"type")}`}return n+=`. Received type ${typeof r}`,n},TypeError);M("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");M("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});M("ERR_STREAM_PREMATURE_CLOSE","Premature close");M("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});M("ERR_MULTIPLE_CALLBACK","Callback called multiple times");M("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");M("ERR_STREAM_WRITE_AFTER_END","write after end");M("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);M("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);M("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");pi.exports.codes=di});var Lt=p((Ea,_i)=>{"use strict";var Fo=U().codes.ERR_INVALID_OPT_VALUE;function jo(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function ko(e,t,r,i){var n=jo(t,i,r);if(n!=null){if(!(isFinite(n)&&Math.floor(n)===n)||n<0){var o=i?r:"highWaterMark";throw new Fo(o,n)}return Math.floor(n)}return e.objectMode?16:16*1024}_i.exports={getHighWaterMark:ko}});var gi=p((Ra,Nt)=>{typeof Object.create=="function"?Nt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var K=p((Sa,Ft)=>{try{if(Pt=O("util"),typeof Pt.inherits!="function")throw"";Ft.exports=Pt.inherits}catch{Ft.exports=gi()}var Pt});var yi=p((Ta,bi)=>{bi.exports=O("util").deprecate});var qt=p((Oa,Ri)=>{"use strict";Ri.exports=x;function mi(e){var t=this;this.next=null,this.entry=null,this.finish=function(){cs(t,e)}}var ae;x.WritableState=Ee;var qo={deprecate:yi()},vi=Bt(),Ze=O("buffer").Buffer,Uo=global.Uint8Array||function(){};function Go(e){return Ze.from(e)}function Wo(e){return Ze.isBuffer(e)||e instanceof Uo}var kt=Dt(),$o=Lt(),Ho=$o.getHighWaterMark,G=U().codes,Yo=G.ERR_INVALID_ARG_TYPE,Vo=G.ERR_METHOD_NOT_IMPLEMENTED,Ko=G.ERR_MULTIPLE_CALLBACK,Jo=G.ERR_STREAM_CANNOT_PIPE,Zo=G.ERR_STREAM_DESTROYED,Xo=G.ERR_STREAM_NULL_VALUES,Qo=G.ERR_STREAM_WRITE_AFTER_END,zo=G.ERR_UNKNOWN_ENCODING,fe=kt.errorOrDestroy;K()(x,vi);function es(){}function Ee(e,t,r){ae=ae||J(),e=e||{},typeof r!="boolean"&&(r=t instanceof ae),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Ho(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(n){ls(t,n)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new mi(this)}Ee.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Ee.prototype,"buffer",{get:qo.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Je;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Je=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(t){return Je.call(this,t)?!0:this!==x?!1:t&&t._writableState instanceof Ee}})):Je=function(t){return t instanceof this};function x(e){ae=ae||J();var t=this instanceof ae;if(!t&&!Je.call(x,this))return new x(e);this._writableState=new Ee(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),vi.call(this)}x.prototype.pipe=function(){fe(this,new Jo)};function ts(e,t){var r=new Qo;fe(e,r),process.nextTick(t,r)}function rs(e,t,r,i){var n;return r===null?n=new Xo:typeof r!="string"&&!t.objectMode&&(n=new Yo("chunk",["string","Buffer"],r)),n?(fe(e,n),process.nextTick(i,n),!1):!0}x.prototype.write=function(e,t,r){var i=this._writableState,n=!1,o=!i.objectMode&&Wo(e);return o&&!Ze.isBuffer(e)&&(e=Go(e)),typeof t=="function"&&(r=t,t=null),o?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=es),i.ending?ts(this,r):(o||rs(this,i,e,r))&&(i.pendingcb++,n=ns(this,i,o,e,t,r)),n};x.prototype.cork=function(){this._writableState.corked++};x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&wi(this,e))};x.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new zo(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function is(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Ze.from(t,r)),t}Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ns(e,t,r,i,n,o){if(!r){var s=is(t,i,n);i!==s&&(r=!0,n="buffer",i=s)}var l=t.objectMode?1:i.length;t.length+=l;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:n,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else jt(e,t,!1,l,i,n,o);return a}function jt(e,t,r,i,n,o,s){t.writelen=i,t.writecb=s,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new Zo("write")):r?e._writev(n,t.onwrite):e._write(n,o,t.onwrite),t.sync=!1}function os(e,t,r,i,n){--t.pendingcb,r?(process.nextTick(n,i),process.nextTick(we,e,t),e._writableState.errorEmitted=!0,fe(e,i)):(n(i),e._writableState.errorEmitted=!0,fe(e,i),we(e,t))}function ss(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function ls(e,t){var r=e._writableState,i=r.sync,n=r.writecb;if(typeof n!="function")throw new Ko;if(ss(r),t)os(e,r,i,t,n);else{var o=Ei(r)||e.destroyed;!o&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&wi(e,r),i?process.nextTick(xi,e,r,o,n):xi(e,r,o,n)}}function xi(e,t,r,i){r||as(e,t),t.pendingcb--,i(),we(e,t)}function as(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function wi(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,n=new Array(i),o=t.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)n[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;n.allBuffers=l,jt(e,t,!0,t.length,n,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new mi(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,f=r.encoding,c=r.callback,d=t.objectMode?1:a.length;if(jt(e,t,!1,d,a,f,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}x.prototype._write=function(e,t,r){r(new Vo("_write()"))};x.prototype._writev=null;x.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||hs(this,i,r),this};Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ei(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function fs(e,t){e._final(function(r){t.pendingcb--,r&&fe(e,r),t.prefinished=!0,e.emit("prefinish"),we(e,t)})}function us(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(fs,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function we(e,t){var r=Ei(t);if(r&&(us(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}function hs(e,t,r){t.ending=!0,we(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function cs(e,t,r){var i=e.entry;for(e.entry=null;i;){var n=i.callback;t.pendingcb--,n(r),i=i.next}t.corkedRequestsFree.next=e}Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});x.prototype.destroy=kt.destroy;x.prototype._undestroy=kt.undestroy;x.prototype._destroy=function(e,t){t(e)}});var J=p((Aa,Ti)=>{"use strict";var ds=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Ti.exports=F;var Si=Wt(),Gt=qt();K()(F,Si);for(Ut=ds(Gt.prototype),Xe=0;Xe<Ut.length;Xe++)Qe=Ut[Xe],F.prototype[Qe]||(F.prototype[Qe]=Gt.prototype[Qe]);var Ut,Qe,Xe;function F(e){if(!(this instanceof F))return new F(e);Si.call(this,e),Gt.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",ps)))}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(F.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(F.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ps(){this._writableState.ended||process.nextTick(_s,this)}function _s(e){e.end()}Object.defineProperty(F.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var Ci=p(($t,Ai)=>{var ze=O("buffer"),j=ze.Buffer;function Oi(e,t){for(var r in e)t[r]=e[r]}j.from&&j.alloc&&j.allocUnsafe&&j.allocUnsafeSlow?Ai.exports=ze:(Oi(ze,$t),$t.Buffer=Z);function Z(e,t,r){return j(e,t,r)}Z.prototype=Object.create(j.prototype);Oi(j,Z);Z.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return j(e,t,r)};Z.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=j(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Z.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return j(e)};Z.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ze.SlowBuffer(e)}});var Vt=p(Mi=>{"use strict";var Yt=Ci().Buffer,Bi=Yt.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function gs(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function bs(e){var t=gs(e);if(typeof t!="string"&&(Yt.isEncoding===Bi||!Bi(e)))throw new Error("Unknown encoding: "+e);return t||e}Mi.StringDecoder=Re;function Re(e){this.encoding=bs(e);var t;switch(this.encoding){case"utf16le":this.text=Es,this.end=Rs,t=4;break;case"utf8":this.fillLast=ms,t=4;break;case"base64":this.text=Ss,this.end=Ts,t=3;break;default:this.write=Os,this.end=As;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Yt.allocUnsafe(t)}Re.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Re.prototype.end=ws;Re.prototype.text=vs;Re.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Ht(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function ys(e,t,r){var i=t.length-1;if(i<r)return 0;var n=Ht(t[i]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--i<r||n===-2?0:(n=Ht(t[i]),n>=0?(n>0&&(e.lastNeed=n-2),n):--i<r||n===-2?0:(n=Ht(t[i]),n>=0?(n>0&&(n===2?n=0:e.lastNeed=n-3),n):0))}function xs(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function ms(e){var t=this.lastTotal-this.lastNeed,r=xs(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function vs(e,t){var r=ys(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function ws(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function Es(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Rs(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Ss(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Ts(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Os(e){return e.toString(this.encoding)}function As(e){return e&&e.length?this.write(e):""}});var et=p((Ba,Li)=>{"use strict";var Ii=U().codes.ERR_STREAM_PREMATURE_CLOSE;function Cs(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];e.apply(this,i)}}}function Bs(){}function Ms(e){return e.setHeader&&typeof e.abort=="function"}function Di(e,t,r){if(typeof t=="function")return Di(e,null,t);t||(t={}),r=Cs(r||Bs);var i=t.readable||t.readable!==!1&&e.readable,n=t.writable||t.writable!==!1&&e.writable,o=function(){e.writable||l()},s=e._writableState&&e._writableState.finished,l=function(){n=!1,s=!0,i||r.call(e)},a=e._readableState&&e._readableState.endEmitted,f=function(){i=!1,a=!0,n||r.call(e)},c=function(S){r.call(e,S)},d=function(){var S;if(i&&!a)return(!e._readableState||!e._readableState.ended)&&(S=new Ii),r.call(e,S);if(n&&!s)return(!e._writableState||!e._writableState.ended)&&(S=new Ii),r.call(e,S)},y=function(){e.req.on("finish",l)};return Ms(e)?(e.on("complete",l),e.on("abort",d),e.req?y():e.on("request",y)):n&&!e._writableState&&(e.on("end",o),e.on("close",o)),e.on("end",f),e.on("finish",l),t.error!==!1&&e.on("error",c),e.on("close",d),function(){e.removeListener("complete",l),e.removeListener("abort",d),e.removeListener("request",y),e.req&&e.req.removeListener("finish",l),e.removeListener("end",o),e.removeListener("close",o),e.removeListener("finish",l),e.removeListener("end",f),e.removeListener("error",c),e.removeListener("close",d)}}Li.exports=Di});var Pi=p((Ma,Ni)=>{"use strict";var tt;function W(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Is=et(),$=Symbol("lastResolve"),X=Symbol("lastReject"),Se=Symbol("error"),rt=Symbol("ended"),Q=Symbol("lastPromise"),Kt=Symbol("handlePromise"),z=Symbol("stream");function H(e,t){return{value:e,done:t}}function Ds(e){var t=e[$];if(t!==null){var r=e[z].read();r!==null&&(e[Q]=null,e[$]=null,e[X]=null,t(H(r,!1)))}}function Ls(e){process.nextTick(Ds,e)}function Ns(e,t){return function(r,i){e.then(function(){if(t[rt]){r(H(void 0,!0));return}t[Kt](r,i)},i)}}var Ps=Object.getPrototypeOf(function(){}),Fs=Object.setPrototypeOf((tt={get stream(){return this[z]},next:function(){var t=this,r=this[Se];if(r!==null)return Promise.reject(r);if(this[rt])return Promise.resolve(H(void 0,!0));if(this[z].destroyed)return new Promise(function(s,l){process.nextTick(function(){t[Se]?l(t[Se]):s(H(void 0,!0))})});var i=this[Q],n;if(i)n=new Promise(Ns(i,this));else{var o=this[z].read();if(o!==null)return Promise.resolve(H(o,!1));n=new Promise(this[Kt])}return this[Q]=n,n}},W(tt,Symbol.asyncIterator,function(){return this}),W(tt,"return",function(){var t=this;return new Promise(function(r,i){t[z].destroy(null,function(n){if(n){i(n);return}r(H(void 0,!0))})})}),tt),Ps),js=function(t){var r,i=Object.create(Fs,(r={},W(r,z,{value:t,writable:!0}),W(r,$,{value:null,writable:!0}),W(r,X,{value:null,writable:!0}),W(r,Se,{value:null,writable:!0}),W(r,rt,{value:t._readableState.endEmitted,writable:!0}),W(r,Kt,{value:function(o,s){var l=i[z].read();l?(i[Q]=null,i[$]=null,i[X]=null,o(H(l,!1))):(i[$]=o,i[X]=s)},writable:!0}),r));return i[Q]=null,Is(t,function(n){if(n&&n.code!=="ERR_STREAM_PREMATURE_CLOSE"){var o=i[X];o!==null&&(i[Q]=null,i[$]=null,i[X]=null,o(n)),i[Se]=n;return}var s=i[$];s!==null&&(i[Q]=null,i[$]=null,i[X]=null,s(H(void 0,!0))),i[rt]=!0}),t.on("readable",Ls.bind(null,i)),i};Ni.exports=js});var qi=p((Ia,ki)=>{"use strict";function Fi(e,t,r,i,n,o,s){try{var l=e[o](s),a=l.value}catch(f){r(f);return}l.done?t(a):Promise.resolve(a).then(i,n)}function ks(e){return function(){var t=this,r=arguments;return new Promise(function(i,n){var o=e.apply(t,r);function s(a){Fi(o,i,n,s,l,"next",a)}function l(a){Fi(o,i,n,s,l,"throw",a)}s(void 0)})}}function ji(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function qs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ji(Object(r),!0).forEach(function(i){Us(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ji(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function Us(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Gs=U().codes.ERR_INVALID_ARG_TYPE;function Ws(e,t,r){var i;if(t&&typeof t.next=="function")i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new Gs("iterable",["Iterable"],t);var n=new e(qs({objectMode:!0},r)),o=!1;n._read=function(){o||(o=!0,s())};function s(){return l.apply(this,arguments)}function l(){return l=ks(function*(){try{var a=yield i.next(),f=a.value,c=a.done;c?n.push(null):n.push(yield f)?s():o=!1}catch(d){n.destroy(d)}}),l.apply(this,arguments)}return n}ki.exports=Ws});var Wt=p((La,Zi)=>{"use strict";Zi.exports=h;var ue;h.ReadableState=$i;var Da=O("events").EventEmitter,Wi=function(t,r){return t.listeners(r).length},Oe=Bt(),it=O("buffer").Buffer,$s=global.Uint8Array||function(){};function Hs(e){return it.from(e)}function Ys(e){return it.isBuffer(e)||e instanceof $s}var Jt=O("util"),u;Jt&&Jt.debuglog?u=Jt.debuglog("stream"):u=function(){};var Vs=fi(),rr=Dt(),Ks=Lt(),Js=Ks.getHighWaterMark,nt=U().codes,Zs=nt.ERR_INVALID_ARG_TYPE,Xs=nt.ERR_STREAM_PUSH_AFTER_EOF,Qs=nt.ERR_METHOD_NOT_IMPLEMENTED,zs=nt.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,he,Zt,Xt;K()(h,Oe);var Te=rr.errorOrDestroy,Qt=["error","close","destroy","pause","resume"];function el(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function $i(e,t,r){ue=ue||J(),e=e||{},typeof r!="boolean"&&(r=t instanceof ue),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Js(this,e,"readableHighWaterMark",r),this.buffer=new Vs,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(he||(he=Vt().StringDecoder),this.decoder=new he(e.encoding),this.encoding=e.encoding)}function h(e){if(ue=ue||J(),!(this instanceof h))return new h(e);var t=this instanceof ue;this._readableState=new $i(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Oe.call(this)}Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});h.prototype.destroy=rr.destroy;h.prototype._undestroy=rr.undestroy;h.prototype._destroy=function(e,t){t(e)};h.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=it.from(e,t),t=""),i=!0),Hi(this,e,t,!1,i)};h.prototype.unshift=function(e){return Hi(this,e,null,!0,!1)};function Hi(e,t,r,i,n){u("readableAddChunk",t);var o=e._readableState;if(t===null)o.reading=!1,il(e,o);else{var s;if(n||(s=tl(o,t)),s)Te(e,s);else if(o.objectMode||t&&t.length>0)if(typeof t!="string"&&!o.objectMode&&Object.getPrototypeOf(t)!==it.prototype&&(t=Hs(t)),i)o.endEmitted?Te(e,new zs):zt(e,o,t,!0);else if(o.ended)Te(e,new Xs);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||t.length!==0?zt(e,o,t,!1):tr(e,o)):zt(e,o,t,!1)}else i||(o.reading=!1,tr(e,o))}return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function zt(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&ot(e)),tr(e,t)}function tl(e,t){var r;return!Ys(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new Zs("chunk",["string","Buffer","Uint8Array"],t)),r}h.prototype.isPaused=function(){return this._readableState.flowing===!1};h.prototype.setEncoding=function(e){he||(he=Vt().StringDecoder);var t=new he(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var Ui=1073741824;function rl(e){return e>=Ui?e=Ui:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Gi(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=rl(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}h.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?er(this):ot(this),null;if(e=Gi(e,t),e===0&&t.ended)return t.length===0&&er(this),null;var i=t.needReadable;u("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,u("length less than watermark",i)),t.ended||t.reading?(i=!1,u("reading or ended",i)):i&&(u("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Gi(r,t)));var n;return e>0?n=Ki(e,t):n=null,n===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&er(this)),n!==null&&this.emit("data",n),n};function il(e,t){if(u("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?ot(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Yi(e)))}}function ot(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Yi,e))}function Yi(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ir(e)}function tr(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(nl,e,t))}function nl(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}h.prototype._read=function(e){Te(this,new Qs("_read()"))};h.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var n=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,o=n?l:_;i.endEmitted?process.nextTick(o):r.once("end",o),e.on("unpipe",s);function s(k,v){u("onunpipe"),k===r&&v&&v.hasUnpiped===!1&&(v.hasUnpiped=!0,c())}function l(){u("onend"),e.end()}var a=ol(r);e.on("drain",a);var f=!1;function c(){u("cleanup"),e.removeListener("close",m),e.removeListener("finish",S),e.removeListener("drain",a),e.removeListener("error",y),e.removeListener("unpipe",s),r.removeListener("end",l),r.removeListener("end",_),r.removeListener("data",d),f=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a()}r.on("data",d);function d(k){u("ondata");var v=e.write(k);u("dest.write",v),v===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&Ji(i.pipes,e)!==-1)&&!f&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function y(k){u("onerror",k),_(),e.removeListener("error",y),Wi(e,"error")===0&&Te(e,k)}el(e,"error",y);function m(){e.removeListener("finish",S),_()}e.once("close",m);function S(){u("onfinish"),e.removeListener("close",m),_()}e.once("finish",S);function _(){u("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),e};function ol(e){return function(){var r=e._readableState;u("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Wi(e,"data")&&(r.flowing=!0,ir(e))}}h.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<n;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=Ji(t.pipes,e);return s===-1?this:(t.pipes.splice(s,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};h.prototype.on=function(e,t){var r=Oe.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?ot(this):i.reading||process.nextTick(sl,this)),r};h.prototype.addListener=h.prototype.on;h.prototype.removeListener=function(e,t){var r=Oe.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(Vi,this),r};h.prototype.removeAllListeners=function(e){var t=Oe.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Vi,this),t};function Vi(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function sl(e){u("readable nexttick read 0"),e.read(0)}h.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,ll(this,e)),e.paused=!1,this};function ll(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(al,e,t))}function al(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ir(e),t.flowing&&!t.reading&&e.read(0)}h.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ir(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&e.read()!==null;);}h.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var s=r.decoder.end();s&&s.length&&t.push(s)}t.push(null)}),e.on("data",function(s){if(u("wrapped data"),r.decoder&&(s=r.decoder.write(s)),!(r.objectMode&&s==null)&&!(!r.objectMode&&(!s||!s.length))){var l=t.push(s);l||(i=!0,e.pause())}});for(var n in e)this[n]===void 0&&typeof e[n]=="function"&&(this[n]=function(l){return function(){return e[l].apply(e,arguments)}}(n));for(var o=0;o<Qt.length;o++)e.on(Qt[o],this.emit.bind(this,Qt[o]));return this._read=function(s){u("wrapped _read",s),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(h.prototype[Symbol.asyncIterator]=function(){return Zt===void 0&&(Zt=Pi()),Zt(this)});Object.defineProperty(h.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(h.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(h.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});h._fromList=Ki;Object.defineProperty(h.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Ki(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function er(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(fl,t,e))}function fl(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(h.from=function(e,t){return Xt===void 0&&(Xt=qi()),Xt(h,e,t)});function Ji(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}});var nr=p((Na,Qi)=>{"use strict";Qi.exports=q;var st=U().codes,ul=st.ERR_METHOD_NOT_IMPLEMENTED,hl=st.ERR_MULTIPLE_CALLBACK,cl=st.ERR_TRANSFORM_ALREADY_TRANSFORMING,dl=st.ERR_TRANSFORM_WITH_LENGTH_0,lt=J();K()(q,lt);function pl(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new hl);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function q(e){if(!(this instanceof q))return new q(e);lt.call(this,e),this._transformState={afterTransform:pl.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",_l)}function _l(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Xi(e,t,r)}):Xi(this,null,null)}q.prototype.push=function(e,t){return this._transformState.needTransform=!1,lt.prototype.push.call(this,e,t)};q.prototype._transform=function(e,t,r){r(new ul("_transform()"))};q.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var n=this._readableState;(i.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}};q.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};q.prototype._destroy=function(e,t){lt.prototype._destroy.call(this,e,function(r){t(r)})};function Xi(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new dl;if(e._transformState.transforming)throw new cl;return e.push(null)}});var tn=p((Pa,en)=>{"use strict";en.exports=Ae;var zi=nr();K()(Ae,zi);function Ae(e){if(!(this instanceof Ae))return new Ae(e);zi.call(this,e)}Ae.prototype._transform=function(e,t,r){r(null,e)}});var ln=p((Fa,sn)=>{"use strict";var or;function gl(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var on=U().codes,bl=on.ERR_MISSING_ARGS,yl=on.ERR_STREAM_DESTROYED;function rn(e){if(e)throw e}function xl(e){return e.setHeader&&typeof e.abort=="function"}function ml(e,t,r,i){i=gl(i);var n=!1;e.on("close",function(){n=!0}),or===void 0&&(or=et()),or(e,{readable:t,writable:r},function(s){if(s)return i(s);n=!0,i()});var o=!1;return function(s){if(!n&&!o){if(o=!0,xl(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(s||new yl("pipe"))}}}function nn(e){e()}function vl(e,t){return e.pipe(t)}function wl(e){return!e.length||typeof e[e.length-1]!="function"?rn:e.pop()}function El(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=wl(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new bl("streams");var n,o=t.map(function(s,l){var a=l<t.length-1,f=l>0;return ml(s,a,f,function(c){n||(n=c),c&&o.forEach(nn),!a&&(o.forEach(nn),i(n))})});return t.reduce(vl)}sn.exports=El});var an=p((I,Be)=>{var Ce=O("stream");process.env.READABLE_STREAM==="disable"&&Ce?(Be.exports=Ce.Readable,Object.assign(Be.exports,Ce),Be.exports.Stream=Ce):(I=Be.exports=Wt(),I.Stream=Ce||I,I.Readable=I,I.Writable=qt(),I.Duplex=J(),I.Transform=nr(),I.PassThrough=tn(),I.finished=et(),I.pipeline=ln())});var hn=p((ja,un)=>{"use strict";var{Buffer:L}=O("buffer"),fn=Symbol.for("BufferList");function g(e){if(!(this instanceof g))return new g(e);g._init.call(this,e)}g._init=function(t){Object.defineProperty(this,fn,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};g.prototype._new=function(t){return new g(t)};g.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let n=r+this._bufs[i].length;if(t<n||i===this._bufs.length-1)return[i,t-r];r=n}};g.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let i=0;i<t;i++)r+=this._bufs[i].length;return r};g.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};g.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};g.prototype.copy=function(t,r,i,n){if((typeof i!="number"||i<0)&&(i=0),(typeof n!="number"||n>this.length)&&(n=this.length),i>=this.length||n<=0)return t||L.alloc(0);let o=!!t,s=this._offset(i),l=n-i,a=l,f=o&&r||0,c=s[1];if(i===0&&n===this.length){if(!o)return this._bufs.length===1?this._bufs[0]:L.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(t,f),f+=this._bufs[d].length;return t}if(a<=this._bufs[s[0]].length-c)return o?this._bufs[s[0]].copy(t,r,c,c+a):this._bufs[s[0]].slice(c,c+a);o||(t=L.allocUnsafe(l));for(let d=s[0];d<this._bufs.length;d++){let y=this._bufs[d].length-c;if(a>y)this._bufs[d].copy(t,f,c),f+=y;else{this._bufs[d].copy(t,f,c,c+a),f+=y;break}a-=y,c&&(c=0)}return t.length>f?t.slice(0,f):t};g.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let i=this._offset(t),n=this._offset(r),o=this._bufs.slice(i[0],n[0]+1);return n[1]===0?o.pop():o[o.length-1]=o[o.length-1].slice(0,n[1]),i[1]!==0&&(o[0]=o[0].slice(i[1])),this._new(o)};g.prototype.toString=function(t,r,i){return this.slice(r,i).toString(t)};g.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};g.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};g.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(L.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(L.from(t));return this};g.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};g.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=L.from([e]):typeof e=="string"?e=L.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=L.from(e.buffer,e.byteOffset,e.byteLength):L.isBuffer(e)||(e=L.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let i=this._offset(t),n=i[0],o=i[1];for(;n<this._bufs.length;n++){let s=this._bufs[n];for(;o<s.length;)if(s.length-o>=e.length){let a=s.indexOf(e,o);if(a!==-1)return this._reverseOffset([n,a]);o=s.length-e.length+1}else{let a=this._reverseOffset([n,o]);if(this._match(a,e))return a;o++}o=0}return-1};g.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?g.prototype[r]=function(i,n){return this.slice(i,i+n)[r](0,n)}:g.prototype[r]=function(i=0){return this.slice(i,i+e[r])[r](0)}})(t)})();g.prototype._isBufferList=function(t){return t instanceof g||g.isBufferList(t)};g.isBufferList=function(t){return t!=null&&t[fn]};un.exports=g});var cn=p((ka,at)=>{"use strict";var sr=an().Duplex,Rl=K(),Me=hn();function T(e){if(!(this instanceof T))return new T(e);if(typeof e=="function"){this._callback=e;let t=function(i){this._callback&&(this._callback(i),this._callback=null)}.bind(this);this.on("pipe",function(i){i.on("error",t)}),this.on("unpipe",function(i){i.removeListener("error",t)}),e=null}Me._init.call(this,e),sr.call(this)}Rl(T,sr);Object.assign(T.prototype,Me.prototype);T.prototype._new=function(t){return new T(t)};T.prototype._write=function(t,r,i){this._appendBuffer(t),typeof i=="function"&&i()};T.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};T.prototype.end=function(t){sr.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};T.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};T.prototype._isBufferList=function(t){return t instanceof T||t instanceof Me||T.isBufferList(t)};T.isBufferList=Me.isBufferList;at.exports=T;at.exports.BufferListStream=T;at.exports.BufferList=Me});var dr=(e=0)=>t=>`\x1B[${t+e}m`,pr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,_r=(e=0)=>(t,r,i)=>`\x1B[${38+e};2;${t};${r};${i}m`;function On(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,i]of Object.entries(t)){for(let[n,o]of Object.entries(i))t[n]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[n]=t[n],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=dr(),t.color.ansi256=pr(),t.color.ansi16m=_r(),t.bgColor.ansi=dr(10),t.bgColor.ansi256=pr(10),t.bgColor.ansi16m=_r(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,i,n)=>r===i&&i===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:r=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!i)return[0,0,0];let{colorString:n}=i.groups;n.length===3&&(n=[...n].map(s=>s+s).join(""));let o=Number.parseInt(n,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let i,n,o;if(r>=232)i=((r-232)*10+8)/255,n=i,o=i;else{r-=16;let a=r%36;i=Math.floor(r/36)/5,n=Math.floor(a/6)/5,o=a%6/5}let s=Math.max(i,n,o)*2;if(s===0)return 30;let l=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(i));return s===2&&(l+=60),l},enumerable:!1},rgbToAnsi:{value:(r,i,n)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,i,n)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var An=On(),D=An;import dt from"node:process";import Cn from"node:os";import gr from"node:tty";function C(e,t=dt.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:w}=dt,De;C("no-color")||C("no-colors")||C("color=false")||C("color=never")?De=0:(C("color")||C("colors")||C("color=true")||C("color=always"))&&(De=1);function Bn(){if("FORCE_COLOR"in w)return w.FORCE_COLOR==="true"?1:w.FORCE_COLOR==="false"?0:w.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(w.FORCE_COLOR,10),3)}function Mn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function In(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let i=Bn();i!==void 0&&(De=i);let n=r?De:i;if(n===0)return 0;if(r){if(C("color=16m")||C("color=full")||C("color=truecolor"))return 3;if(C("color=256"))return 2}if(e&&!t&&n===void 0)return 0;let o=n||0;if(w.TERM==="dumb")return o;if(dt.platform==="win32"){let s=Cn.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in w)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in w)||w.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in w)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(w.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in w&&"AGENT_NAME"in w)return 1;if(w.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in w){let s=Number.parseInt((w.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(w.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(w.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(w.TERM)||"COLORTERM"in w?1:o}function br(e,t={}){let r=In(e,{streamIsTTY:e&&e.isTTY,...t});return Mn(r)}var Dn={stdout:br({isTTY:gr.isatty(1)}),stderr:br({isTTY:gr.isatty(2)})},yr=Dn;function xr(e,t,r){let i=e.indexOf(t);if(i===-1)return e;let n=t.length,o=0,s="";do s+=e.substr(o,i-o)+t+r,o=i+n,i=e.indexOf(t,o);while(i!==-1);return s+=e.slice(o),s}function mr(e,t,r,i){let n=0,o="";do{let s=e[i-1]==="\r";o+=e.substr(n,(s?i-1:i)-n)+t+(s?`\r
|
11
5
|
`:`
|
12
|
-
`)+r,i
|
13
|
-
`,
|
14
|
-
`);return o!==-1&&(t=
|
6
|
+
`)+r,n=i+1,i=e.indexOf(`
|
7
|
+
`,n)}while(i!==-1);return o+=e.slice(n),o}var{stdout:vr,stderr:wr}=yr,pt=Symbol("GENERATOR"),ee=Symbol("STYLER"),pe=Symbol("IS_EMPTY"),Er=["ansi","ansi","ansi256","ansi16m"],te=Object.create(null),Ln=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=vr?vr.level:0;e.level=t.level===void 0?r:t.level};var Nn=e=>{let t=(...r)=>r.join(" ");return Ln(t,e),Object.setPrototypeOf(t,_e.prototype),t};function _e(e){return Nn(e)}Object.setPrototypeOf(_e.prototype,Function.prototype);for(let[e,t]of Object.entries(D))te[e]={get(){let r=Le(this,gt(t.open,t.close,this[ee]),this[pe]);return Object.defineProperty(this,e,{value:r}),r}};te.visible={get(){let e=Le(this,this[ee],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var _t=(e,t,r,...i)=>e==="rgb"?t==="ansi16m"?D[r].ansi16m(...i):t==="ansi256"?D[r].ansi256(D.rgbToAnsi256(...i)):D[r].ansi(D.rgbToAnsi(...i)):e==="hex"?_t("rgb",t,r,...D.hexToRgb(...i)):D[r][e](...i),Pn=["rgb","hex","ansi256"];for(let e of Pn){te[e]={get(){let{level:r}=this;return function(...i){let n=gt(_t(e,Er[r],"color",...i),D.color.close,this[ee]);return Le(this,n,this[pe])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);te[t]={get(){let{level:r}=this;return function(...i){let n=gt(_t(e,Er[r],"bgColor",...i),D.bgColor.close,this[ee]);return Le(this,n,this[pe])}}}}var Fn=Object.defineProperties(()=>{},{...te,level:{enumerable:!0,get(){return this[pt].level},set(e){this[pt].level=e}}}),gt=(e,t,r)=>{let i,n;return r===void 0?(i=e,n=t):(i=r.openAll+e,n=t+r.closeAll),{open:e,close:t,openAll:i,closeAll:n,parent:r}},Le=(e,t,r)=>{let i=(...n)=>jn(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,Fn),i[pt]=e,i[ee]=t,i[pe]=r,i},jn=(e,t)=>{if(e.level<=0||!t)return e[pe]?"":t;let r=e[ee];if(r===void 0)return t;let{openAll:i,closeAll:n}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=xr(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
8
|
+
`);return o!==-1&&(t=mr(t,n,i,o)),i+t+n};Object.defineProperties(_e.prototype,te);var kn=_e(),Gl=_e({level:wr?wr.level:0});var A=kn;import{spawn as qn,execSync as Un}from"child_process";import vt from"node:process";import $n from"node:os";import Or from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var Rr=(e=0)=>t=>`\x1B[${t+e}m`,Sr=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Tr=(e=0)=>(t,r,i)=>`\x1B[${38+e};2;${t};${r};${i}m`;function Gn(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,i]of Object.entries(t)){for(let[n,o]of Object.entries(i))t[n]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},i[n]=t[n],e.set(o[0],o[1]);Object.defineProperty(t,r,{value:i,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Rr(),t.color.ansi256=Sr(),t.color.ansi16m=Tr(),t.bgColor.ansi=Rr(10),t.bgColor.ansi256=Sr(10),t.bgColor.ansi16m=Tr(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,i,n)=>r===i&&i===n?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:r=>{let i=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!i)return[0,0,0];let{colorString:n}=i.groups;n.length===3&&(n=[...n].map(s=>s+s).join(""));let o=Number.parseInt(n,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let i,n,o;if(r>=232)i=((r-232)*10+8)/255,n=i,o=i;else{r-=16;let a=r%36;i=Math.floor(r/36)/5,n=Math.floor(a/6)/5,o=a%6/5}let s=Math.max(i,n,o)*2;if(s===0)return 30;let l=30+(Math.round(o)<<2|Math.round(n)<<1|Math.round(i));return s===2&&(l+=60),l},enumerable:!1},rgbToAnsi:{value:(r,i,n)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,i,n)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var Wn=Gn(),P=Wn;function B(e,t=vt.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),n=t.indexOf("--");return i!==-1&&(n===-1||i<n)}var{env:E}=vt,Ne;B("no-color")||B("no-colors")||B("color=false")||B("color=never")?Ne=0:(B("color")||B("colors")||B("color=true")||B("color=always"))&&(Ne=1);function Hn(){if("FORCE_COLOR"in E)return E.FORCE_COLOR==="true"?1:E.FORCE_COLOR==="false"?0:E.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(E.FORCE_COLOR,10),3)}function Yn(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Vn(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let i=Hn();i!==void 0&&(Ne=i);let n=r?Ne:i;if(n===0)return 0;if(r){if(B("color=16m")||B("color=full")||B("color=truecolor"))return 3;if(B("color=256"))return 2}if(e&&!t&&n===void 0)return 0;let o=n||0;if(E.TERM==="dumb")return o;if(vt.platform==="win32"){let s=$n.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in E)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(s=>s in E)||E.CI_NAME==="codeship"?1:o;if("TEAMCITY_VERSION"in E)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(E.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in E&&"AGENT_NAME"in E)return 1;if(E.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in E){let s=Number.parseInt((E.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(E.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(E.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(E.TERM)||"COLORTERM"in E?1:o}function Ar(e,t={}){let r=Vn(e,{streamIsTTY:e&&e.isTTY,...t});return Yn(r)}var Kn={stdout:Ar({isTTY:Or.isatty(1)}),stderr:Ar({isTTY:Or.isatty(2)})},Jn=Kn;function Zn(e,t,r){let i=e.indexOf(t);if(i===-1)return e;let n=t.length,o=0,s="";do s+=e.substr(o,i-o)+t+r,o=i+n,i=e.indexOf(t,o);while(i!==-1);return s+=e.slice(o),s}function Xn(e,t,r,i){let n=0,o="";do{let s=e[i-1]==="\r";o+=e.substr(n,(s?i-1:i)-n)+t+(s?`\r
|
15
9
|
`:`
|
16
|
-
`)+r,i
|
17
|
-
`,
|
18
|
-
`);return o!==-1&&(t=
|
19
|
-
$ ${
|
20
|
-
`)),await new Promise((
|
21
|
-
`))this.#
|
22
|
-
`),this)}stop(){return this.#
|
23
|
-
`),this}};function
|
10
|
+
`)+r,n=i+1,i=e.indexOf(`
|
11
|
+
`,n)}while(i!==-1);return o+=e.slice(n),o}var{stdout:Cr,stderr:Br}=Jn,bt=Symbol("GENERATOR"),re=Symbol("STYLER"),ge=Symbol("IS_EMPTY"),Mr=["ansi","ansi","ansi256","ansi16m"],ie=Object.create(null),Qn=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Cr?Cr.level:0;e.level=t.level===void 0?r:t.level},zn=e=>{let t=(...r)=>r.join(" ");return Qn(t,e),Object.setPrototypeOf(t,be.prototype),t};function be(e){return zn(e)}Object.setPrototypeOf(be.prototype,Function.prototype);for(let[e,t]of Object.entries(P))ie[e]={get(){let r=Pe(this,xt(t.open,t.close,this[re]),this[ge]);return Object.defineProperty(this,e,{value:r}),r}};ie.visible={get(){let e=Pe(this,this[re],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var yt=(e,t,r,...i)=>e==="rgb"?t==="ansi16m"?P[r].ansi16m(...i):t==="ansi256"?P[r].ansi256(P.rgbToAnsi256(...i)):P[r].ansi(P.rgbToAnsi(...i)):e==="hex"?yt("rgb",t,r,...P.hexToRgb(...i)):P[r][e](...i),eo=["rgb","hex","ansi256"];for(let e of eo){ie[e]={get(){let{level:r}=this;return function(...i){let n=xt(yt(e,Mr[r],"color",...i),P.color.close,this[re]);return Pe(this,n,this[ge])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);ie[t]={get(){let{level:r}=this;return function(...i){let n=xt(yt(e,Mr[r],"bgColor",...i),P.bgColor.close,this[re]);return Pe(this,n,this[ge])}}}}var to=Object.defineProperties(()=>{},{...ie,level:{enumerable:!0,get(){return this[bt].level},set(e){this[bt].level=e}}}),xt=(e,t,r)=>{let i,n;return r===void 0?(i=e,n=t):(i=r.openAll+e,n=t+r.closeAll),{open:e,close:t,openAll:i,closeAll:n,parent:r}},Pe=(e,t,r)=>{let i=(...n)=>ro(i,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(i,to),i[bt]=e,i[re]=t,i[ge]=r,i},ro=(e,t)=>{if(e.level<=0||!t)return e[ge]?"":t;let r=e[re];if(r===void 0)return t;let{openAll:i,closeAll:n}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Zn(t,r.close,r.open),r=r.parent;let o=t.indexOf(`
|
12
|
+
`);return o!==-1&&(t=Xn(t,n,i,o)),i+t+n};Object.defineProperties(be.prototype,ie);var io=be(),Kl=be({level:Br?Br.level:0}),no=io,oo={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},so={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(i=>i.endsWith("\\")?i:`${i}\\`).map(i=>i.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},lo=(e,t,r)=>{let i={...oo,...t},n={...so,...r},o=l=>{let a=process.platform,f=i[a];if(f)return f(l);let[c,...d]=l.split(" ");return{cmd:c,args:d}},s=(l=>{let a=Object.entries(n);for(let[f,c]of a)if(l.startsWith(f)){let d=process.platform,y=c[d];if(!y)break;let m=l.slice(f.length).trim().split(" ");return y(m)}return l})(e);return o(s)},ao=process.platform==="linux"||process.platform==="darwin",mt=process.platform==="win32",fo={stdio:"pipe",shell:!0,detached:!mt,env:process.env},uo={log:!0,commandTranslations:{},shellTranslations:{},...fo},Fe=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...i}=uo)=>{let n=null;return{childProcess:n,async run(o){if(n)throw new Error("Only one command per shell.");if(typeof o=="object"){let a=process.platform;o.posix&&ao&&(a="posix");let f=o[a];if(!f)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:o}));o=f}let{cmd:s,args:l}=lo(o,r,t);return e&&console.log(no.dim(`
|
13
|
+
$ ${s} ${l.join(" ")}
|
14
|
+
`)),await new Promise((a,f)=>{n=qn(s,l,i);let c="",d="";if(!n)throw new Error("Child process was not set.");let y=m=>{n=null;let S={code:m,stdout:c,stderr:d};m===0||m===1&&!mt?a(S):f(S)};n.stdout?.on("data",m=>{c+=m.toString()}),n.stderr?.on("data",m=>{d+=m.toString()}),n.on("close",y),n.on("exit",y),n.on("error",y),n.stdout?.pipe(process.stdout),n.stderr?.pipe(process.stderr)})},kill(o="SIGKILL"){if(n?.pid)if(mt)Un(`taskkill /t /f /pid ${n.pid}`);else return process.kill(-n.pid,o);return!0}}};import ft from"node:process";import Hr from"node:process";var Gr=de(Nr(),1),Wr=de(Ur(),1);import co from"node:process";var po=(0,Gr.default)(()=>{(0,Wr.default)(()=>{co.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),$r=po;var $e=!1,le={};le.show=(e=Hr.stderr)=>{!e.isTTY||($e=!1,e.write("\x1B[?25h"))};le.hide=(e=Hr.stderr)=>{!e.isTTY||($r(),$e=!0,e.write("\x1B[?25l"))};le.toggle=(e,t)=>{e!==void 0&&($e=e),$e?le.show(t):le.hide(t)};var St=le;var Ie=de(Jr(),1);function xe(){return process.platform!=="win32"?process.env.TERM!=="linux":Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"}var go={info:A.blue("ℹ"),success:A.green("✔"),warning:A.yellow("⚠"),error:A.red("✖")},bo={info:A.blue("i"),success:A.green("√"),warning:A.yellow("‼"),error:A.red("×")},yo=xe()?go:bo,me=yo;function Tt({onlyFirst:e=!1}={}){let t=["[\\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(t,e?void 0:"g")}function Ot(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Tt(),"")}var pn=de(ni(),1);function Ct({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var dn=de(cn(),1);import N from"node:process";import Sl from"node:readline";var Tl=3,lr=class{#r=0;#u=new dn.BufferListStream;#n;#i;constructor(){this.#u.pipe(N.stdout);let t=this;this.#n=function(r,i,...n){let{stdin:o}=N;if(t.#r>0||o.emit===t.#n){if(r==="keypress")return;r==="data"&&i.includes(Tl)&&N.emit("SIGINT"),Reflect.apply(t.#n,this,[r,i,...n])}else Reflect.apply(N.stdin.emit,this,[r,i,...n])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){N.platform!=="win32"&&(this.#i=Sl.createInterface({input:N.stdin,output:this.#u}),this.#i.on("SIGINT",()=>{N.listenerCount("SIGINT")===0?N.emit("SIGINT"):(this.#i.close(),N.kill(N.pid,"SIGINT"))}))}_realStop(){N.platform!=="win32"&&(this.#i.close(),this.#i=void 0)}};var ut,_n=class{#r=0;#u=!1;#n=0;#i=0;#e;#s;#t;#h;#c;#l;#a;#f;#d;#o;color;constructor(t){ut||(ut=new lr),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:ft.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#c=this.#e.interval,this.#t=this.#e.stream,this.#l=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Ct({stream:this.#t}),this.#a=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,ft.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#l,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#i}}),Object.defineProperty(this,"_lineCount",{get(){return this.#n}}))}get indent(){return this.#f}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#f=t,this.updateLineCount()}get interval(){return this.#c||this.#s.interval||100}get spinner(){return this.#s}set spinner(t){if(this.#i=0,this.#c=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#s=t}else if(!xe())this.#s=Ie.default.line;else if(t===void 0)this.#s=Ie.default.dots;else if(t!=="default"&&Ie.default[t])this.#s=Ie.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#d}set text(t){this.#d=t||"",this.updateLineCount()}get prefixText(){return this.#o}set prefixText(t){this.#o=t||"",this.updateLineCount()}get isSpinning(){return this.#h!==void 0}getFullPrefixText(t=this.#o,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#o,"-");this.#n=0;for(let i of Ot(" ".repeat(this.#f)+r+"--"+this.#d).split(`
|
15
|
+
`))this.#n+=Math.max(1,Math.ceil((0,pn.default)(i)/t))}get isEnabled(){return this.#l&&!this.#a}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#l=t}get isSilent(){return this.#a}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#a=t}frame(){let{frames:t}=this.#s,r=t[this.#i];this.color&&(r=A[this.color](r)),this.#i=++this.#i%t.length;let i=typeof this.#o=="string"&&this.#o!==""?this.#o+" ":"",n=typeof this.text=="string"?" "+this.text:"";return i+r+n}clear(){if(!this.#l||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#f||this.lastIndent!==this.#f)&&this.#t.cursorTo(this.#f),this.lastIndent=this.#f,this.#r=0,this}render(){return this.#a?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#n,this)}start(t){return t&&(this.text=t),this.#a?this:this.#l?this.isSpinning?this:(this.#e.hideCursor&&St.hide(this.#t),this.#e.discardStdin&&ft.stdin.isTTY&&(this.#u=!0,ut.start()),this.render(),this.#h=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
|
16
|
+
`),this)}stop(){return this.#l?(clearInterval(this.#h),this.#h=void 0,this.#i=0,this.clear(),this.#e.hideCursor&&St.show(this.#t),this.#e.discardStdin&&ft.stdin.isTTY&&this.#u&&(ut.stop(),this.#u=!1),this):this}succeed(t){return this.stopAndPersist({symbol:me.success,text:t})}fail(t){return this.stopAndPersist({symbol:me.error,text:t})}warn(t){return this.stopAndPersist({symbol:me.warning,text:t})}info(t){return this.stopAndPersist({symbol:me.info,text:t})}stopAndPersist(t={}){if(this.#a)return this;let r=t.prefixText||this.#o,i=t.text||this.text,n=typeof i=="string"?" "+i:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${n}
|
17
|
+
`),this}};function ar(e){return new _n(e)}import{dirname as Ol,resolve as Al}from"path";import{fileURLToPath as Cl}from"url";var gn={default:[],react:["@tsmodule/react","react","react-dom"]},fr={default:["@types/node"],react:["next","@types/node","@types/react","@types/react-dom","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},bn=Al(Ol(Cl(import.meta.url)),"..");import{mkdir as Bl}from"fs/promises";import{resolve as yn}from"path";var ur=async(e,t)=>{let r=Fe(),i=yn(bn,`./templates/${e}`,"*"),n=yn(t);await Bl(n,{recursive:!0}),await r.run(`cp -rf ${i} ${n}`)};import xn from"fs/promises";import{resolve as Ml}from"path";var mn=async e=>{let t=Ml(process.cwd(),e,"package.json"),r=await xn.readFile(t,"utf-8"),i=JSON.parse(r);i.name=e,await xn.writeFile(t,JSON.stringify(i,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var gf=async(e,{react:t=!1})=>{let r=Fe(),i=ar(`Creating new module ${A.blueBright(e)}.`).start();await ur("default",e),t&&await ur("react",e),await mn(e),i.succeed("Project created."),process.chdir(e);let n=[],o=["@tsmodule/tsmodule"];t?(n.push(...gn.react),o.push(...fr.react)):o.push(...fr.default),n.length&&await r.run(`yarn add ${n.join(" ")}`),o.length&&await r.run(`yarn add -D ${o.join(" ")}`),i.succeed("Dependencies installed."),await r.run("git init"),i.succeed("Git initialized.")};export{gf as create};
|
24
18
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|