@tsmodule/tsmodule 40.0.8 → 40.0.11
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/README.md +24 -14
- package/dist/commands/build/index.js +1 -1
- package/dist/commands/build/lib/emitTsDeclarations.js +1 -1
- package/dist/commands/convert/index.js +2 -2
- package/dist/commands/create/index.js +2 -2
- package/dist/commands/create/lib/templates.js +2 -2
- package/dist/commands/dev/index.js +1 -1
- package/dist/commands/execute/index.js +1 -1
- package/dist/commands/index.js +2 -2
- package/dist/commands/normalize/index.js +1 -1
- package/dist/commands/normalize/lib/typescriptApi.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +29 -29
- package/dist/loader/index.js +1 -1
- package/dist/loader/types.js +1 -1
- package/dist/specification/index.js +2 -2
- package/dist/specification/types.js +1 -1
- package/dist/types/index.js +2 -2
- package/dist/utils/cwd.js +1 -1
- package/dist/utils/packageJson.js +1 -1
- package/dist/utils/require.js +1 -1
- package/dist/utils/resolve.js +1 -1
- package/dist/utils/stdin.js +1 -1
- package/package.json +14 -14
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
typeof document>"u"&&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
4
|
var Xc=Object.create;var Ro=Object.defineProperty;var Zc=Object.getOwnPropertyDescriptor;var zc=Object.getOwnPropertyNames;var eA=Object.getPrototypeOf,tA=Object.prototype.hasOwnProperty;var B=(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 g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var rA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of zc(t))!tA.call(e,i)&&i!==r&&Ro(e,i,{get:()=>t[i],enumerable:!(n=Zc(t,i))||n.enumerable});return e};var qe=(e,t,r)=>(r=e!=null?Xc(eA(e)):{},rA(t||!e||!e.__esModule?Ro(r,"default",{value:e,enumerable:!0}):r,e));var Vo=g((Bm,Mn)=>{"use strict";var Wo=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Mn.exports=Wo;Mn.exports.default=Wo});var Zo=g((xm,Cr)=>{"use strict";var jA=Vo(),yr=new WeakMap,Xo=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(yr.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return jA(s,e),yr.set(s,n),s};Cr.exports=Xo;Cr.exports.default=Xo;Cr.exports.callCount=e=>{if(!yr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return yr.get(e)}});var zo=g((wm,br)=>{br.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&br.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&br.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var ia=g((Rm,Ct)=>{var K=global.process,et=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"};et(K)?(ea=B("assert"),mt=zo(),ta=/^win/i.test(K.platform),$t=B("events"),typeof $t!="function"&&($t=$t.EventEmitter),K.__signal_exit_emitter__?te=K.__signal_exit_emitter__:(te=K.__signal_exit_emitter__=new $t,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),Ct.exports=function(e,t){if(!et(global.process))return function(){};ea.equal(typeof e,"function","a callback must be provided for exit handler"),yt===!1&&Fn();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){te.removeListener(r,e),te.listeners("exit").length===0&&te.listeners("afterexit").length===0&&vr()};return te.on(r,e),n},vr=function(){!yt||!et(global.process)||(yt=!1,mt.forEach(function(t){try{K.removeListener(t,Sr[t])}catch{}}),K.emit=Br,K.reallyExit=qn,te.count-=1)},Ct.exports.unload=vr,tt=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Sr={},mt.forEach(function(e){Sr[e]=function(){if(!!et(global.process)){var r=K.listeners(e);r.length===te.count&&(vr(),tt("exit",null,e),tt("afterexit",null,e),ta&&e==="SIGHUP"&&(e="SIGINT"),K.kill(K.pid,e))}}}),Ct.exports.signals=function(){return mt},yt=!1,Fn=function(){yt||!et(global.process)||(yt=!0,te.count+=1,mt=mt.filter(function(t){try{return K.on(t,Sr[t]),!0}catch{return!1}}),K.emit=na,K.reallyExit=ra)},Ct.exports.load=Fn,qn=K.reallyExit,ra=function(t){!et(global.process)||(K.exitCode=t||0,tt("exit",K.exitCode,null),tt("afterexit",K.exitCode,null),qn.call(K,K.exitCode))},Br=K.emit,na=function(t,r){if(t==="exit"&&et(global.process)){r!==void 0&&(K.exitCode=r);var n=Br.apply(this,arguments);return tt("exit",K.exitCode,null),tt("afterexit",K.exitCode,null),n}else return Br.apply(this,arguments)}):Ct.exports=function(){return function(){}};var ea,mt,ta,$t,te,vr,tt,Sr,yt,Fn,qn,ra,Br,na});var la=g((km,UA)=>{UA.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 Aa=g((Lm,ca)=>{"use strict";var wr=Object.assign({},la()),fa=Object.keys(wr);Object.defineProperty(wr,"random",{get(){let e=Math.floor(Math.random()*fa.length),t=fa[e];return wr[t]}});ca.exports=wr});var ha=g((Gm,Rr)=>{var WA=function(){"use strict";function e(o,a,u,f){var l;typeof a=="object"&&(u=a.depth,f=a.prototype,l=a.filter,a=a.circular);var h=[],A=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof u>"u"&&(u=1/0);function E(_,v){if(_===null)return null;if(v==0)return _;var b,O;if(typeof _!="object")return _;if(e.__isArray(_))b=[];else if(e.__isRegExp(_))b=new RegExp(_.source,s(_)),_.lastIndex&&(b.lastIndex=_.lastIndex);else if(e.__isDate(_))b=new Date(_.getTime());else{if(C&&Buffer.isBuffer(_))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(_.length):b=new Buffer(_.length),_.copy(b),b;typeof f>"u"?(O=Object.getPrototypeOf(_),b=Object.create(O)):(b=Object.create(f),O=f)}if(a){var P=h.indexOf(_);if(P!=-1)return A[P];h.push(_),A.push(b)}for(var U in _){var x;O&&(x=Object.getOwnPropertyDescriptor(O,U)),!(x&&x.set==null)&&(b[U]=E(_[U],v-1))}return b}return E(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Rr=="object"&&Rr.exports&&(Rr.exports=WA)});var da=g((Um,pa)=>{var VA=ha();pa.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=VA(t[r]))}),e}});var _a=g((Km,ga)=>{ga.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 Ca=g((Jm,Gn)=>{"use strict";var XA=da(),Kt=_a(),ma={nul:0,control:0};Gn.exports=function(t){return ya(t,ma)};Gn.exports.config=function(e){return e=XA(e||{},ma),function(r){return ya(r,e)}};function ya(e,t){if(typeof e!="string")return Ea(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ea(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ea(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:ZA(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 ZA(e){var t=0,r=Kt.length-1,n;if(e<Kt[0][0]||e>Kt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Kt[n][1])t=n+1;else if(e<Kt[n][0])r=n-1;else return!0;return!1}});var Kn=g((Wm,ba)=>{ba.exports=B("stream")});var xa=g((Vm,Ba)=>{"use strict";function va(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 zA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?va(Object(r),!0).forEach(function(n){eh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eh(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function th(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sa(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 rh(e,t,r){return t&&Sa(e.prototype,t),r&&Sa(e,r),e}var nh=B("buffer"),Qr=nh.Buffer,ih=B("util"),Jn=ih.inspect,sh=Jn&&Jn.custom||"inspect";function oh(e,t,r){Qr.prototype.copy.call(e,t,r)}Ba.exports=function(){function e(){th(this,e),this.head=null,this.tail=null,this.length=0}return rh(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 Qr.alloc(0);for(var n=Qr.allocUnsafe(r>>>0),i=this.head,s=0;i;)oh(i.data,n,s),s+=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,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Qr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:sh,value:function(r,n){return Jn(this,zA({},n,{depth:0,customInspect:!1}))}}]),e}()});var Wn=g((Xm,Ra)=>{"use strict";function ah(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(Yn,this,e)):process.nextTick(Yn,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Ir,r):(r._writableState.errorEmitted=!0,process.nextTick(wa,r,s)):process.nextTick(wa,r,s):t?(process.nextTick(Ir,r),t(s)):process.nextTick(Ir,r)}),this)}function wa(e,t){Yn(e,t),Ir(e)}function Ir(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function uh(){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 Yn(e,t){e.emit("error",t)}function lh(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Ra.exports={destroy:ah,undestroy:uh,errorOrDestroy:lh}});var He=g((Zm,Ta)=>{"use strict";var Ia={};function pe(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=e,Ia[e]=i}function Qa(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 fh(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ch(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Ah(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}pe("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);pe("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&fh(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(ch(e," argument"))i=`The ${e} ${n} ${Qa(t,"type")}`;else{let s=Ah(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${Qa(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);pe("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");pe("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});pe("ERR_STREAM_PREMATURE_CLOSE","Premature close");pe("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});pe("ERR_MULTIPLE_CALLBACK","Callback called multiple times");pe("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");pe("ERR_STREAM_WRITE_AFTER_END","write after end");pe("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);pe("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);pe("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Ta.exports.codes=Ia});var Vn=g((zm,Oa)=>{"use strict";var hh=He().codes.ERR_INVALID_OPT_VALUE;function ph(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function dh(e,t,r,n){var i=ph(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new hh(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Oa.exports={getHighWaterMark:dh}});var Da=g((ey,Xn)=>{typeof Object.create=="function"?Xn.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xn.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 rt=g((ty,zn)=>{try{if(Zn=B("util"),typeof Zn.inherits!="function")throw"";zn.exports=Zn.inherits}catch{zn.exports=Da()}var Zn});var La=g((ry,ka)=>{ka.exports=B("util").deprecate});var ri=g((ny,Ha)=>{"use strict";Ha.exports=W;function Na(e){var t=this;this.next=null,this.entry=null,this.finish=function(){jh(t,e)}}var vt;W.WritableState=Yt;var gh={deprecate:La()},Ma=Kn(),Or=B("buffer").Buffer,_h=global.Uint8Array||function(){};function Eh(e){return Or.from(e)}function mh(e){return Or.isBuffer(e)||e instanceof _h}var ti=Wn(),yh=Vn(),Ch=yh.getHighWaterMark,je=He().codes,bh=je.ERR_INVALID_ARG_TYPE,vh=je.ERR_METHOD_NOT_IMPLEMENTED,Sh=je.ERR_MULTIPLE_CALLBACK,Bh=je.ERR_STREAM_CANNOT_PIPE,xh=je.ERR_STREAM_DESTROYED,wh=je.ERR_STREAM_NULL_VALUES,Rh=je.ERR_STREAM_WRITE_AFTER_END,Qh=je.ERR_UNKNOWN_ENCODING,St=ti.errorOrDestroy;rt()(W,Ma);function Ih(){}function Yt(e,t,r){vt=vt||nt(),e=e||{},typeof r!="boolean"&&(r=t instanceof vt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=Ch(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){Nh(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 Na(this)}Yt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Yt.prototype,"buffer",{get:gh.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Tr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Tr=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return Tr.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof Yt}})):Tr=function(t){return t instanceof this};function W(e){vt=vt||nt();var t=this instanceof vt;if(!t&&!Tr.call(W,this))return new W(e);this._writableState=new Yt(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)),Ma.call(this)}W.prototype.pipe=function(){St(this,new Bh)};function Th(e,t){var r=new Rh;St(e,r),process.nextTick(t,r)}function Oh(e,t,r,n){var i;return r===null?i=new wh:typeof r!="string"&&!t.objectMode&&(i=new bh("chunk",["string","Buffer"],r)),i?(St(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&mh(e);return s&&!Or.isBuffer(e)&&(e=Eh(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=Ih),n.ending?Th(this,r):(s||Oh(this,n,e,r))&&(n.pendingcb++,i=kh(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Fa(this,e))};W.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 Qh(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Dh(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Or.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function kh(e,t,r,n,i,s){if(!r){var o=Dh(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else ei(e,t,!1,a,n,i,s);return u}function ei(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new xh("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Lh(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Jt,e,t),e._writableState.errorEmitted=!0,St(e,n)):(i(n),e._writableState.errorEmitted=!0,St(e,n),Jt(e,t))}function Ph(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Nh(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new Sh;if(Ph(r),t)Lh(e,r,n,t,i);else{var s=qa(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Fa(e,r),n?process.nextTick(Pa,e,r,s,i):Pa(e,r,s,i)}}function Pa(e,t,r,n){r||Mh(e,t),t.pendingcb--,n(),Jt(e,t)}function Mh(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Fa(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,ei(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Na(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,f=r.encoding,l=r.callback,h=t.objectMode?1:u.length;if(ei(e,t,!1,h,u,f,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new vh("_write()"))};W.prototype._writev=null;W.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||Hh(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function qa(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Fh(e,t){e._final(function(r){t.pendingcb--,r&&St(e,r),t.prefinished=!0,e.emit("prefinish"),Jt(e,t)})}function qh(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Fh,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Jt(e,t){var r=qa(t);if(r&&(qh(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 Hh(e,t,r){t.ending=!0,Jt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function jh(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(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=ti.destroy;W.prototype._undestroy=ti.undestroy;W.prototype._destroy=function(e,t){t(e)}});var nt=g((iy,$a)=>{"use strict";var $h=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};$a.exports=xe;var ja=si(),ii=ri();rt()(xe,ja);for(ni=$h(ii.prototype),Dr=0;Dr<ni.length;Dr++)kr=ni[Dr],xe.prototype[kr]||(xe.prototype[kr]=ii.prototype[kr]);var ni,kr,Dr;function xe(e){if(!(this instanceof xe))return new xe(e);ja.call(this,e),ii.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",Gh)))}Object.defineProperty(xe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(xe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(xe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Gh(){this._writableState.ended||process.nextTick(Uh,this)}function Uh(e){e.end()}Object.defineProperty(xe.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 Ka=g((oi,Ua)=>{var Lr=B("buffer"),we=Lr.Buffer;function Ga(e,t){for(var r in e)t[r]=e[r]}we.from&&we.alloc&&we.allocUnsafe&&we.allocUnsafeSlow?Ua.exports=Lr:(Ga(Lr,oi),oi.Buffer=it);function it(e,t,r){return we(e,t,r)}it.prototype=Object.create(we.prototype);Ga(we,it);it.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return we(e,t,r)};it.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=we(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};it.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return we(e)};it.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Lr.SlowBuffer(e)}});var li=g(Ya=>{"use strict";var ui=Ka().Buffer,Ja=ui.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 Kh(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 Jh(e){var t=Kh(e);if(typeof t!="string"&&(ui.isEncoding===Ja||!Ja(e)))throw new Error("Unknown encoding: "+e);return t||e}Ya.StringDecoder=Wt;function Wt(e){this.encoding=Jh(e);var t;switch(this.encoding){case"utf16le":this.text=zh,this.end=ep,t=4;break;case"utf8":this.fillLast=Vh,t=4;break;case"base64":this.text=tp,this.end=rp,t=3;break;default:this.write=np,this.end=ip;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ui.allocUnsafe(t)}Wt.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||""};Wt.prototype.end=Zh;Wt.prototype.text=Xh;Wt.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 ai(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function Yh(e,t,r){var n=t.length-1;if(n<r)return 0;var i=ai(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=ai(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=ai(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Wh(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 Vh(e){var t=this.lastTotal-this.lastNeed,r=Wh(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 Xh(e,t){var r=Yh(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 Zh(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function zh(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 ep(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 tp(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 rp(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function np(e){return e.toString(this.encoding)}function ip(e){return e&&e.length?this.write(e):""}});var Pr=g((oy,Xa)=>{"use strict";var Wa=He().codes.ERR_STREAM_PREMATURE_CLOSE;function sp(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 op(){}function ap(e){return e.setHeader&&typeof e.abort=="function"}function Va(e,t,r){if(typeof t=="function")return Va(e,null,t);t||(t={}),r=sp(r||op);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},u=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,u=!0,i||r.call(e)},l=function(E){r.call(e,E)},h=function(){var E;if(n&&!u)return(!e._readableState||!e._readableState.ended)&&(E=new Wa),r.call(e,E);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(E=new Wa),r.call(e,E)},A=function(){e.req.on("finish",a)};return ap(e)?(e.on("complete",a),e.on("abort",h),e.req?A():e.on("request",A)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",l),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",A),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",l),e.removeListener("close",h)}}Xa.exports=Va});var za=g((ay,Za)=>{"use strict";var Nr;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 up=Pr(),Ge=Symbol("lastResolve"),st=Symbol("lastReject"),Vt=Symbol("error"),Mr=Symbol("ended"),ot=Symbol("lastPromise"),fi=Symbol("handlePromise"),at=Symbol("stream");function Ue(e,t){return{value:e,done:t}}function lp(e){var t=e[Ge];if(t!==null){var r=e[at].read();r!==null&&(e[ot]=null,e[Ge]=null,e[st]=null,t(Ue(r,!1)))}}function fp(e){process.nextTick(lp,e)}function cp(e,t){return function(r,n){e.then(function(){if(t[Mr]){r(Ue(void 0,!0));return}t[fi](r,n)},n)}}var Ap=Object.getPrototypeOf(function(){}),hp=Object.setPrototypeOf((Nr={get stream(){return this[at]},next:function(){var t=this,r=this[Vt];if(r!==null)return Promise.reject(r);if(this[Mr])return Promise.resolve(Ue(void 0,!0));if(this[at].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Vt]?a(t[Vt]):o(Ue(void 0,!0))})});var n=this[ot],i;if(n)i=new Promise(cp(n,this));else{var s=this[at].read();if(s!==null)return Promise.resolve(Ue(s,!1));i=new Promise(this[fi])}return this[ot]=i,i}},$e(Nr,Symbol.asyncIterator,function(){return this}),$e(Nr,"return",function(){var t=this;return new Promise(function(r,n){t[at].destroy(null,function(i){if(i){n(i);return}r(Ue(void 0,!0))})})}),Nr),Ap),pp=function(t){var r,n=Object.create(hp,(r={},$e(r,at,{value:t,writable:!0}),$e(r,Ge,{value:null,writable:!0}),$e(r,st,{value:null,writable:!0}),$e(r,Vt,{value:null,writable:!0}),$e(r,Mr,{value:t._readableState.endEmitted,writable:!0}),$e(r,fi,{value:function(s,o){var a=n[at].read();a?(n[ot]=null,n[Ge]=null,n[st]=null,s(Ue(a,!1))):(n[Ge]=s,n[st]=o)},writable:!0}),r));return n[ot]=null,up(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[st];s!==null&&(n[ot]=null,n[Ge]=null,n[st]=null,s(i)),n[Vt]=i;return}var o=n[Ge];o!==null&&(n[ot]=null,n[Ge]=null,n[st]=null,o(Ue(void 0,!0))),n[Mr]=!0}),t.on("readable",fp.bind(null,n)),n};Za.exports=pp});var nu=g((uy,ru)=>{"use strict";function eu(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(f){r(f);return}a.done?t(u):Promise.resolve(u).then(n,i)}function dp(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){eu(s,n,i,o,a,"next",u)}function a(u){eu(s,n,i,o,a,"throw",u)}o(void 0)})}}function tu(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 gp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tu(Object(r),!0).forEach(function(n){_p(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ep=He().codes.ERR_INVALID_ARG_TYPE;function mp(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 Ep("iterable",["Iterable"],t);var i=new e(gp({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=dp(function*(){try{var u=yield n.next(),f=u.value,l=u.done;l?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}ru.exports=mp});var si=g((fy,hu)=>{"use strict";hu.exports=L;var Bt;L.ReadableState=au;var ly=B("events").EventEmitter,ou=function(t,r){return t.listeners(r).length},Zt=Kn(),Fr=B("buffer").Buffer,yp=global.Uint8Array||function(){};function Cp(e){return Fr.from(e)}function bp(e){return Fr.isBuffer(e)||e instanceof yp}var ci=B("util"),I;ci&&ci.debuglog?I=ci.debuglog("stream"):I=function(){};var vp=xa(),Ei=Wn(),Sp=Vn(),Bp=Sp.getHighWaterMark,qr=He().codes,xp=qr.ERR_INVALID_ARG_TYPE,wp=qr.ERR_STREAM_PUSH_AFTER_EOF,Rp=qr.ERR_METHOD_NOT_IMPLEMENTED,Qp=qr.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,xt,Ai,hi;rt()(L,Zt);var Xt=Ei.errorOrDestroy,pi=["error","close","destroy","pause","resume"];function Ip(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 au(e,t,r){Bt=Bt||nt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Bt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=Bp(this,e,"readableHighWaterMark",r),this.buffer=new vp,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&&(xt||(xt=li().StringDecoder),this.decoder=new xt(e.encoding),this.encoding=e.encoding)}function L(e){if(Bt=Bt||nt(),!(this instanceof L))return new L(e);var t=this instanceof Bt;this._readableState=new au(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Zt.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});L.prototype.destroy=Ei.destroy;L.prototype._undestroy=Ei.undestroy;L.prototype._destroy=function(e,t){t(e)};L.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=Fr.from(e,t),t=""),n=!0),uu(this,e,t,!1,n)};L.prototype.unshift=function(e){return uu(this,e,null,!0,!1)};function uu(e,t,r,n,i){I("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,Dp(e,s);else{var o;if(i||(o=Tp(s,t)),o)Xt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==Fr.prototype&&(t=Cp(t)),n)s.endEmitted?Xt(e,new Qp):di(e,s,t,!0);else if(s.ended)Xt(e,new wp);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?di(e,s,t,!1):_i(e,s)):di(e,s,t,!1)}else n||(s.reading=!1,_i(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function di(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&&Hr(e)),_i(e,t)}function Tp(e,t){var r;return!bp(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new xp("chunk",["string","Buffer","Uint8Array"],t)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(e){xt||(xt=li().StringDecoder);var t=new xt(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 iu=1073741824;function Op(e){return e>=iu?e=iu:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function su(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=Op(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}L.prototype.read=function(e){I("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 I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?gi(this):Hr(this),null;if(e=su(e,t),e===0&&t.ended)return t.length===0&&gi(this),null;var n=t.needReadable;I("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,I("length less than watermark",n)),t.ended||t.reading?(n=!1,I("reading or ended",n)):n&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=su(r,t)));var i;return e>0?i=cu(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&&gi(this)),i!==null&&this.emit("data",i),i};function Dp(e,t){if(I("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?Hr(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,lu(e)))}}function Hr(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(lu,e))}function lu(e){var t=e._readableState;I("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,mi(e)}function _i(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(kp,e,t))}function kp(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(I("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}L.prototype._read=function(e){Xt(this,new Rp("_read()"))};L.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,I("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:_;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(v,b){I("onunpipe"),v===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,l())}function a(){I("onend"),e.end()}var u=Lp(r);e.on("drain",u);var f=!1;function l(){I("cleanup"),e.removeListener("close",C),e.removeListener("finish",E),e.removeListener("drain",u),e.removeListener("error",A),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",h);function h(v){I("ondata");var b=e.write(v);I("dest.write",b),b===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Au(n.pipes,e)!==-1)&&!f&&(I("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function A(v){I("onerror",v),_(),e.removeListener("error",A),ou(e,"error")===0&&Xt(e,v)}Ip(e,"error",A);function C(){e.removeListener("finish",E),_()}e.once("close",C);function E(){I("onfinish"),e.removeListener("close",C),_()}e.once("finish",E);function _(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(I("pipe resume"),r.resume()),e};function Lp(e){return function(){var r=e._readableState;I("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&ou(e,"data")&&(r.flowing=!0,mi(e))}}L.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 s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Au(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};L.prototype.on=function(e,t){var r=Zt.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,I("on readable",n.length,n.reading),n.length?Hr(this):n.reading||process.nextTick(Pp,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(e,t){var r=Zt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(fu,this),r};L.prototype.removeAllListeners=function(e){var t=Zt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(fu,this),t};function fu(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 Pp(e){I("readable nexttick read 0"),e.read(0)}L.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,Np(this,e)),e.paused=!1,this};function Np(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(Mp,e,t))}function Mp(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),mi(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function mi(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(I("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);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 s=0;s<pi.length;s++)e.on(pi[s],this.emit.bind(this,pi[s]));return this._read=function(o){I("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return Ai===void 0&&(Ai=za()),Ai(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});L._fromList=cu;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function cu(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 gi(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(Fp,t,e))}function Fp(e,t){if(I("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"&&(L.from=function(e,t){return hi===void 0&&(hi=nu()),hi(L,e,t)});function Au(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var yi=g((cy,du)=>{"use strict";du.exports=Pe;var jr=He().codes,qp=jr.ERR_METHOD_NOT_IMPLEMENTED,Hp=jr.ERR_MULTIPLE_CALLBACK,jp=jr.ERR_TRANSFORM_ALREADY_TRANSFORMING,$p=jr.ERR_TRANSFORM_WITH_LENGTH_0,$r=nt();rt()(Pe,$r);function Gp(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Hp);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 Pe(e){if(!(this instanceof Pe))return new Pe(e);$r.call(this,e),this._transformState={afterTransform:Gp.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",Up)}function Up(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){pu(e,t,r)}):pu(this,null,null)}Pe.prototype.push=function(e,t){return this._transformState.needTransform=!1,$r.prototype.push.call(this,e,t)};Pe.prototype._transform=function(e,t,r){r(new qp("_transform()"))};Pe.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)}};Pe.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};Pe.prototype._destroy=function(e,t){$r.prototype._destroy.call(this,e,function(r){t(r)})};function pu(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new $p;if(e._transformState.transforming)throw new jp;return e.push(null)}});var Eu=g((Ay,_u)=>{"use strict";_u.exports=zt;var gu=yi();rt()(zt,gu);function zt(e){if(!(this instanceof zt))return new zt(e);gu.call(this,e)}zt.prototype._transform=function(e,t,r){r(null,e)}});var vu=g((hy,bu)=>{"use strict";var Ci;function Kp(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Cu=He().codes,Jp=Cu.ERR_MISSING_ARGS,Yp=Cu.ERR_STREAM_DESTROYED;function mu(e){if(e)throw e}function Wp(e){return e.setHeader&&typeof e.abort=="function"}function Vp(e,t,r,n){n=Kp(n);var i=!1;e.on("close",function(){i=!0}),Ci===void 0&&(Ci=Pr()),Ci(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,Wp(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new Yp("pipe"))}}}function yu(e){e()}function Xp(e,t){return e.pipe(t)}function Zp(e){return!e.length||typeof e[e.length-1]!="function"?mu:e.pop()}function zp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Zp(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Jp("streams");var i,s=t.map(function(o,a){var u=a<t.length-1,f=a>0;return Vp(o,u,f,function(l){i||(i=l),l&&s.forEach(yu),!u&&(s.forEach(yu),n(i))})});return t.reduce(Xp)}bu.exports=zp});var Su=g((de,tr)=>{var er=B("stream");process.env.READABLE_STREAM==="disable"&&er?(tr.exports=er.Readable,Object.assign(tr.exports,er),tr.exports.Stream=er):(de=tr.exports=si(),de.Stream=er||de,de.Readable=de,de.Writable=ri(),de.Duplex=nt(),de.Transform=yi(),de.PassThrough=Eu(),de.finished=Pr(),de.pipeline=vu())});var wu=g((py,xu)=>{"use strict";var{Buffer:Ce}=B("buffer"),Bu=Symbol.for("BufferList");function j(e){if(!(this instanceof j))return new j(e);j._init.call(this,e)}j._init=function(t){Object.defineProperty(this,Bu,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};j.prototype._new=function(t){return new j(t)};j.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}};j.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};j.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};j.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)};j.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||Ce.alloc(0);let s=!!t,o=this._offset(n),a=i-n,u=a,f=s&&r||0,l=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Ce.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(u<=this._bufs[o[0]].length-l)return s?this._bufs[o[0]].copy(t,r,l,l+u):this._bufs[o[0]].slice(l,l+u);s||(t=Ce.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let A=this._bufs[h].length-l;if(u>A)this._bufs[h].copy(t,f,l),f+=A;else{this._bufs[h].copy(t,f,l,l+u),f+=A;break}u-=A,l&&(l=0)}return t.length>f?t.slice(0,f):t};j.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),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};j.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};j.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};j.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};j.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Ce.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(Ce.from(t));return this};j.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};j.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=Ce.from([e]):typeof e=="string"?e=Ce.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ce.from(e.buffer,e.byteOffset,e.byteLength):Ce.isBuffer(e)||(e=Ce.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],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let u=o.indexOf(e,s);if(u!==-1)return this._reverseOffset([i,u]);s=o.length-e.length+1}else{let u=this._reverseOffset([i,s]);if(this._match(u,e))return u;s++}s=0}return-1};j.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?j.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:j.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();j.prototype._isBufferList=function(t){return t instanceof j||j.isBufferList(t)};j.isBufferList=function(t){return t!=null&&t[Bu]};xu.exports=j});var Ru=g((dy,Gr)=>{"use strict";var bi=Su().Duplex,ed=rt(),rr=wu();function re(e){if(!(this instanceof re))return new re(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}rr._init.call(this,e),bi.call(this)}ed(re,bi);Object.assign(re.prototype,rr.prototype);re.prototype._new=function(t){return new re(t)};re.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};re.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)};re.prototype.end=function(t){bi.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};re.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};re.prototype._isBufferList=function(t){return t instanceof re||t instanceof rr||re.isBufferList(t)};re.isBufferList=rr.isBufferList;Gr.exports=re;Gr.exports.BufferListStream=re;Gr.exports.BufferList=rr});var xi=g((Ry,Ou)=>{var Yr=B("fs"),Tu=B("path"),nd=B("os");function Si(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Bi(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var id={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Si(e,"RegExp")},string:function(e){return Si(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Si(e,"Number")},exists:function(e){return Yr.existsSync(e)},file:function(e){return Bi(e,function(t){return Yr.statSync(t).isFile()})},samePath:function(e,t){return Tu.resolve(e)===Tu.resolve(t)},directory:function(e){return Bi(e,function(t){return Yr.statSync(t).isDirectory()})},symbolicLink:function(e){return Bi(e,function(t){return Yr.lstatSync(t).isSymbolicLink()})},windows:function(){return nd.platform()==="win32"}};Ou.exports=id});var Nu=g((Qy,Pu)=>{var sr=B("fs"),Du=B("os"),wi=B("path"),Wr=xi(),ir,sd=Du.tmpdir&&Du.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Lu(){this.stack=[]}Lu.prototype={create:function(e,t){var r=wi.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)sr.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)sr.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&Wr.file(n)?sr.unlinkSync(n):r==="dir"&&Wr.directory(n)&&sr.rmdirSync(n)}}finally{Wr.func(e)&&e()}}};var ku=!1;Pu.exports=function e(t){if(!Wr.func(t))return!1;if(ir!==void 0)return t(ir);if(!ku)ku=!0;else return setTimeout(function(){e(t)},300);var r=new Lu,n=r.create("dir",sd),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=sr.watch(n,o)}catch(f){if(f.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(ir=!1);throw f}if(!a)return!1;var u=setTimeout(function(){a.close(),r.cleanup(function(){t(ir=!1)})},200);a.on("change",function(f,l){wi.basename(s)===wi.basename(l)&&(a.close(),clearTimeout(u),r.cleanup(function(){t(ir=!0)}))}),r.write(s)}});var Yu=g((Iy,Ti)=>{var Qi=B("fs"),or=B("path"),Fu=B("util"),qu=B("events"),Hu=Nu(),q=xi(),od="update",ju="remove",Mu=Symbol("skip");function ad(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function Ii(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function ud(e){return e.reduce(function(t,r){return t.concat(r)},[])}function ld(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function fd(e){return q.func(e)?function(t,r){e(t,!1)&&r()}:q.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function cd(e){return e.map(function(t){return q.exists(t)?[od,t]:[ju,t]})}function Ad(e){var t=Ii(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=ad(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return q.exists(s)}))}return cd(t)}function hd(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;q.number(s)||(s=200);function o(){Ad(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,u){n.push(u),r||(r=setTimeout(o,s))}}function $u(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function Gu(e,t,r=function(){}){q.directory(e)?Qi.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=or.join(e,s);q.directory(o)&&t(o)}),r()}):r()}function pd(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function dd(){return function(){}}function Uu(e,t){return!q.func(t)||t(e,Mu)!==Mu}var Ku=Fu.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Qe(){qu.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Fu.inherits(Qe,qu.EventEmitter);Qe.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Qe.prototype.isClosed=function(){return this._isClosed};Qe.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),Gu(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};q.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Ju,this)))};Qe.prototype.getWatchedPaths=function(e){if(q.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function Ri(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function Ju(e){e.emit("close")}Qe.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=or.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var u=a;q.nil(u)&&(u=""),u=or.join(t.fpath,u),t.options.recursive&&Hu(function(f){if(!f){var l=or.resolve(u);if(!q.exists(u))r.close(l);else{var h=q.directory(u)&&!r.watchers[l]&&Uu(u,t.options.filter);h&&r.watchDirectory(u,t.options)}}}),s(o,u)}},s=hd(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var u=fd(t.options.filter);u(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(q.windows()&&o.code==="EPERM"?(e.emit("change",ju,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Qe.prototype.watchFile=function(e,t,r){var n=or.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=Qi.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return q.samePath(o,e)}}),q.func(r)&&(r.length===1&&Ku(),this.on("change",r))};Qe.prototype.watchDirectory=function(e,t,r,n=dd){var i=this,s=n();Hu(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var u=Qi.watch(e,a);i.add(u,{type:"dir",fpath:e,options:t}),q.func(r)&&(r.length===1&&Ku(),i.on("change",r)),t.recursive&&!o&&Gu(e,function(f){Uu(f,t.filter)&&i.watchDirectory(f,t,null,n)},n()),s()})};function gd(e){var t=new Qe,r=$u(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||Ri(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(Ju,t)},t.getWatchedPaths=function(i){if(q.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Ii(ud(o));i(a)})}},t.expose()}function Vr(e,t,r){var n=new Qe;if(q.buffer(e)&&(e=e.toString()),!q.array(e)&&!q.exists(e)&&n.emit("error",new Error(e+" does not exist.")),q.string(t)&&(t={encoding:t}),q.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?ld(t.encoding):t.encoding="utf8",q.array(e)){if(e.length===1)return Vr(e[0],t,r);var i=$u();return gd(Ii(e).map(function(o){var a=Vr(o,t);return q.func(r)&&a.on("change",i(r)),a}))}if(q.file(e))n.watchFile(e,t,r),Ri(n);else if(q.directory(e)){var s=pd(function(){Ri(n)});n.watchDirectory(e,t,r,s)}return n.expose()}Ti.exports=Vr;Ti.exports.default=Vr});var Wu=g(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.splitWhen=wt.flatten=void 0;function _d(e){return e.reduce((t,r)=>[].concat(t,r),[])}wt.flatten=_d;function Ed(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}wt.splitWhen=Ed});var Vu=g(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.isEnoentCodeError=void 0;function md(e){return e.code==="ENOENT"}Xr.isEnoentCodeError=md});var Xu=g(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.createDirentFromStats=void 0;var Oi=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function yd(e,t){return new Oi(e,t)}Zr.createDirentFromStats=yd});var Zu=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.removeLeadingDotSegment=Ie.escape=Ie.makeAbsolute=Ie.unixify=void 0;var Cd=B("path"),bd=2,vd=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Sd(e){return e.replace(/\\/g,"/")}Ie.unixify=Sd;function Bd(e,t){return Cd.resolve(e,t)}Ie.makeAbsolute=Bd;function xd(e){return e.replace(vd,"\\$2")}Ie.escape=xd;function wd(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(bd)}return e}Ie.removeLeadingDotSegment=wd});var el=g((Ly,zu)=>{zu.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var nl=g((Py,rl)=>{var Rd=el(),tl={"{":"}","(":")","[":"]"},Qd=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=tl[a];if(u){var f=e.indexOf(u,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},Id=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=tl[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};rl.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Rd(t))return!0;var n=Qd;return r&&r.strict===!1&&(n=Id),n(t)}});var sl=g((Ny,il)=>{"use strict";var Td=nl(),Od=B("path").posix.dirname,Dd=B("os").platform()==="win32",Di="/",kd=/\\/g,Ld=/[\{\[].*[\}\]]$/,Pd=/(^|[^\\])([\{\[]|\([^\)]+$)/,Nd=/\\([\!\*\?\|\[\]\(\)\{\}])/g;il.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Dd&&t.indexOf(Di)<0&&(t=t.replace(kd,Di)),Ld.test(t)&&(t+=Di),t+="a";do t=Od(t);while(Td(t)||Pd.test(t));return t.replace(Nd,"$1")}});var zr=g(ge=>{"use strict";ge.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;ge.find=(e,t)=>e.nodes.find(r=>r.type===t);ge.exceedsLimit=(e,t,r=1,n)=>n===!1||!ge.isInteger(e)||!ge.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;ge.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};ge.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;ge.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;ge.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;ge.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);ge.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var en=g((Fy,al)=>{"use strict";var ol=zr();al.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&ol.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&ol.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var ll=g((qy,ul)=>{"use strict";ul.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var El=g((Hy,_l)=>{"use strict";var fl=ll(),ut=(e,t,r)=>{if(fl(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(fl(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(ut.cache.hasOwnProperty(u))return ut.cache[u].result;let f=Math.min(e,t),l=Math.max(e,t);if(Math.abs(f-l)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let h=gl(e)||gl(t),A={min:e,max:t,a:f,b:l},C=[],E=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),f<0){let _=l<0?Math.abs(l):1;E=cl(_,Math.abs(f),A,n),f=A.a=0}return l>=0&&(C=cl(f,l,A,n)),A.negatives=E,A.positives=C,A.result=Md(E,C,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&C.length+E.length>1&&(A.result=`(?:${A.result})`),ut.cache[u]=A,A.result};function Md(e,t,r){let n=ki(e,t,"-",!1,r)||[],i=ki(t,e,"",!1,r)||[],s=ki(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function Fd(e,t){let r=1,n=1,i=hl(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=hl(e,r);for(i=pl(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=pl(t+1,n)-1;return s=[...s],s.sort(jd),s}function qd(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=Hd(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,f]=n[a];u===f?s+=u:u!=="0"||f!=="9"?s+=$d(u,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function cl(e,t,r,n){let i=Fd(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let f=i[u],l=qd(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===l.pattern){a.count.length>1&&a.count.pop(),a.count.push(l.count[0]),a.string=a.pattern+dl(a.count),o=f+1;continue}r.isPadded&&(h=Gd(f,r,n)),l.string=h+l.pattern+dl(l.count),s.push(l),o=f+1,a=l}return s}function ki(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Al(t,"string",a)&&s.push(r+a),n&&Al(t,"string",a)&&s.push(r+a)}return s}function Hd(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function jd(e,t){return e>t?1:t>e?-1:0}function Al(e,t,r){return e.some(n=>n[t]===r)}function hl(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function pl(e,t){return e-e%Math.pow(10,t)}function dl(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function $d(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function gl(e){return/^-?(0+)\d/.test(e)}function Gd(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}ut.cache={};ut.clearCache=()=>ut.cache={};_l.exports=ut});var Ni=g((jy,xl)=>{"use strict";var Ud=B("util"),Cl=El(),ml=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Kd=e=>t=>e===!0?Number(t):String(t),Li=e=>typeof e=="number"||typeof e=="string"&&e!=="",ar=e=>Number.isInteger(+e),Pi=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},Jd=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,Yd=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},yl=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},Wd=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},bl=(e,t,r,n)=>{if(r)return Cl(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},vl=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Cl(e,t,r)},Sl=(...e)=>new RangeError("Invalid range arguments: "+Ud.inspect(...e)),Bl=(e,t,r)=>{if(r.strictRanges===!0)throw Sl([e,t]);return[]},Vd=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},Xd=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Sl([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),f=String(r);r=Math.max(Math.abs(r),1);let l=Pi(a)||Pi(u)||Pi(f),h=l?Math.max(a.length,u.length,f.length):0,A=l===!1&&Jd(e,t,n)===!1,C=n.transform||Kd(A);if(n.toRegex&&r===1)return bl(yl(e,h),yl(t,h),!0,n);let E={negatives:[],positives:[]},_=O=>E[O<0?"negatives":"positives"].push(Math.abs(O)),v=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(Yd(C(i,b),h,A)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?Wd(E,n):vl(v,null,{wrap:!1,...n}):v},Zd=(e,t,r=1,n={})=>{if(!ar(e)&&e.length>1||!ar(t)&&t.length>1)return Bl(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return bl(u,f,!1,n);let l=[],h=0;for(;a?s>=o:s<=o;)l.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?vl(l,null,{wrap:!1,options:n}):l},tn=(e,t,r,n={})=>{if(t==null&&Li(e))return[e];if(!Li(e)||!Li(t))return Bl(e,t,n);if(typeof r=="function")return tn(e,t,1,{transform:r});if(ml(r))return tn(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,ar(r)?ar(e)&&ar(t)?Xd(e,t,r,i):Zd(e,t,Math.max(Math.abs(r),1),i):r!=null&&!ml(r)?Vd(r,i):tn(e,t,1,r)};xl.exports=tn});var Ql=g(($y,Rl)=>{"use strict";var zd=Ni(),wl=zr(),eg=(e,t={})=>{let r=(n,i={})=>{let s=wl.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let l=wl.reduce(n.nodes),h=zd(...l,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return l.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let l of n.nodes)f+=r(l,n);return f};return r(e)};Rl.exports=eg});var Ol=g((Gy,Tl)=>{"use strict";var tg=Ni(),Il=en(),Rt=zr(),lt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Rt.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(lt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?lt(i,s,r):i+s);return Rt.flatten(n)},rg=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(lt(a.pop(),Il(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(lt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Rt.reduce(i.nodes);if(Rt.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=tg(...h,t);A.length===0&&(A=Il(i,t)),a.push(lt(a.pop(),A)),i.nodes=[];return}let u=Rt.encloseBrace(i),f=i.queue,l=i;for(;l.type!=="brace"&&l.type!=="root"&&l.parent;)l=l.parent,f=l.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(A.type==="close"){a.push(lt(a.pop(),f,u));continue}if(A.value&&A.type!=="open"){f.push(lt(f.pop(),A.value));continue}A.nodes&&n(A,i)}return f};return Rt.flatten(n(e))};Tl.exports=rg});var kl=g((Uy,Dl)=>{"use strict";Dl.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
typeof document>"u"&&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
4
|
import{spawn as G,execSync as Y}from"child_process";import A from"node:process";import V from"node:os";import I from"node:tty";await(async()=>{let{dirname:r}=await import("path"),{fileURLToPath:e}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=e(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=r(globalThis.__filename)),typeof globalThis.require>"u"){let{default:t}=await import("module");globalThis.require=t.createRequire(import.meta.url)}})();var M=(r=0)=>e=>`\x1B[${e+r}m`,_=(r=0)=>e=>`\x1B[${38+r};5;${e}m`,j=(r=0)=>(e,t,o)=>`\x1B[${38+r};2;${e};${t};${o}m`;function F(){let r=new Map,e={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]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[t,o]of Object.entries(e)){for(let[l,i]of Object.entries(o))e[l]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},o[l]=e[l],r.set(i[0],i[1]);Object.defineProperty(e,t,{value:o,enumerable:!1})}return Object.defineProperty(e,"codes",{value:r,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=M(),e.color.ansi256=_(),e.color.ansi16m=j(),e.bgColor.ansi=M(10),e.bgColor.ansi256=_(10),e.bgColor.ansi16m=j(10),Object.defineProperties(e,{rgbToAnsi256:{value:(t,o,l)=>t===o&&o===l?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(o/255*5)+Math.round(l/255*5),enumerable:!1},hexToRgb:{value:t=>{let o=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(t.toString(16));if(!o)return[0,0,0];let{colorString:l}=o.groups;l.length===3&&(l=[...l].map(n=>n+n).join(""));let i=Number.parseInt(l,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:t=>e.rgbToAnsi256(...e.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{if(t<8)return 30+t;if(t<16)return 90+(t-8);let o,l,i;if(t>=232)o=((t-232)*10+8)/255,l=o,i=o;else{t-=16;let u=t%36;o=Math.floor(t/36)/5,l=Math.floor(u/6)/5,i=u%6/5}let n=Math.max(o,l,i)*2;if(n===0)return 30;let a=30+(Math.round(i)<<2|Math.round(l)<<1|Math.round(o));return n===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(t,o,l)=>e.ansi256ToAnsi(e.rgbToAnsi256(t,o,l)),enumerable:!1},hexToAnsi:{value:t=>e.ansi256ToAnsi(e.hexToAnsi256(t)),enumerable:!1}}),e}var U=F(),p=U;function c(r,e=A.argv){let t=r.startsWith("-")?"":r.length===1?"-":"--",o=e.indexOf(t+r),l=e.indexOf("--");return o!==-1&&(l===-1||o<l)}var{env:s}=A,R;c("no-color")||c("no-colors")||c("color=false")||c("color=never")?R=0:(c("color")||c("colors")||c("color=true")||c("color=always"))&&(R=1);function W(){if("FORCE_COLOR"in s)return s.FORCE_COLOR==="true"?1:s.FORCE_COLOR==="false"?0:s.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(s.FORCE_COLOR,10),3)}function D(r){return r===0?!1:{level:r,hasBasic:!0,has256:r>=2,has16m:r>=3}}function J(r,{streamIsTTY:e,sniffFlags:t=!0}={}){let o=W();o!==void 0&&(R=o);let l=t?R:o;if(l===0)return 0;if(t){if(c("color=16m")||c("color=full")||c("color=truecolor"))return 3;if(c("color=256"))return 2}if(r&&!e&&l===void 0)return 0;let i=l||0;if(s.TERM==="dumb")return i;if(A.platform==="win32"){let n=V.release().split(".");return Number(n[0])>=10&&Number(n[2])>=10586?Number(n[2])>=14931?3:2:1}if("CI"in s)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(n=>n in s)||s.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in s)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in s&&"AGENT_NAME"in s)return 1;if(s.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in s){let n=Number.parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return n>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(s.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)||"COLORTERM"in s?1:i}function P(r,e={}){let t=J(r,{streamIsTTY:r&&r.isTTY,...e});return D(t)}var K={stdout:P({isTTY:I.isatty(1)}),stderr:P({isTTY:I.isatty(2)})},q=K;function H(r,e,t){let o=r.indexOf(e);if(o===-1)return r;let l=e.length,i=0,n="";do n+=r.substr(i,o-i)+e+t,i=o+l,o=r.indexOf(e,i);while(o!==-1);return n+=r.slice(i),n}function Q(r,e,t,o){let l=0,i="";do{let n=r[o-1]==="\r";i+=r.substr(l,(n?o-1:o)-l)+e+(n?`\r
|
package/dist/commands/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
typeof document>"u"&&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
4
|
var oA=Object.create;var Po=Object.defineProperty;var aA=Object.getOwnPropertyDescriptor;var lA=Object.getOwnPropertyNames;var uA=Object.getPrototypeOf,cA=Object.prototype.hasOwnProperty;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 g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lA(t))!cA.call(e,i)&&i!==r&&Po(e,i,{get:()=>t[i],enumerable:!(n=aA(t,i))||n.enumerable});return e};var Pe=(e,t,r)=>(r=e!=null?oA(uA(e)):{},fA(t||!e||!e.__esModule?Po(r,"default",{value:e,enumerable:!0}):r,e));var Yo=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.splitWhen=_t.flatten=void 0;function SA(e){return e.reduce((t,r)=>[].concat(t,r),[])}_t.flatten=SA;function BA(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}_t.splitWhen=BA});var Wo=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.isEnoentCodeError=void 0;function wA(e){return e.code==="ENOENT"}mr.isEnoentCodeError=wA});var Vo=g(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.createDirentFromStats=void 0;var Pn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function RA(e,t){return new Pn(e,t)}yr.createDirentFromStats=RA});var Xo=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var QA=S("path"),IA=2,TA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function OA(e){return e.replace(/\\/g,"/")}we.unixify=OA;function DA(e,t){return QA.resolve(e,t)}we.makeAbsolute=DA;function kA(e){return e.replace(TA,"\\$2")}we.escape=kA;function LA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(IA)}return e}we.removeLeadingDotSegment=LA});var zo=g((Dm,Zo)=>{Zo.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var ra=g((km,ta)=>{var PA=zo(),ea={"{":"}","(":")","[":"]"},NA=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=ea[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},MA=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=ea[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};ta.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(PA(t))return!0;var n=NA;return r&&r.strict===!1&&(n=MA),n(t)}});var ia=g((Lm,na)=>{"use strict";var FA=ra(),qA=S("path").posix.dirname,jA=S("os").platform()==="win32",Nn="/",HA=/\\/g,$A=/[\{\[].*[\}\]]$/,GA=/(^|[^\\])([\{\[]|\([^\)]+$)/,UA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;na.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&jA&&t.indexOf(Nn)<0&&(t=t.replace(HA,Nn)),$A.test(t)&&(t+=Nn),t+="a";do t=qA(t);while(FA(t)||GA.test(t));return t.replace(UA,"$1")}});var Cr=g(pe=>{"use strict";pe.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;pe.find=(e,t)=>e.nodes.find(r=>r.type===t);pe.exceedsLimit=(e,t,r=1,n)=>n===!1||!pe.isInteger(e)||!pe.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;pe.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};pe.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;pe.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;pe.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;pe.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);pe.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var br=g((Nm,oa)=>{"use strict";var sa=Cr();oa.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&sa.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&sa.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var la=g((Mm,aa)=>{"use strict";aa.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var _a=g((Fm,ga)=>{"use strict";var ua=la(),et=(e,t,r)=>{if(ua(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ua(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(et.cache.hasOwnProperty(l))return et.cache[l].result;let c=Math.min(e,t),u=Math.max(e,t);if(Math.abs(c-u)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let h=da(e)||da(t),A={min:e,max:t,a:c,b:u},C=[],E=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),c<0){let _=u<0?Math.abs(u):1;E=ca(_,Math.abs(c),A,n),c=A.a=0}return u>=0&&(C=ca(c,u,A,n)),A.negatives=E,A.positives=C,A.result=KA(E,C,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&C.length+E.length>1&&(A.result=`(?:${A.result})`),et.cache[l]=A,A.result};function KA(e,t,r){let n=Mn(e,t,"-",!1,r)||[],i=Mn(t,e,"",!1,r)||[],s=Mn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function JA(e,t){let r=1,n=1,i=Aa(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Aa(e,r);for(i=ha(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=ha(t+1,n)-1;return s=[...s],s.sort(VA),s}function YA(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=WA(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?s+=l:l!=="0"||c!=="9"?s+=XA(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ca(e,t,r,n){let i=JA(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let c=i[l],u=YA(String(o),String(c),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+pa(a.count),o=c+1;continue}r.isPadded&&(h=ZA(c,r,n)),u.string=h+u.pattern+pa(u.count),s.push(u),o=c+1,a=u}return s}function Mn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!fa(t,"string",a)&&s.push(r+a),n&&fa(t,"string",a)&&s.push(r+a)}return s}function WA(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function VA(e,t){return e>t?1:t>e?-1:0}function fa(e,t,r){return e.some(n=>n[t]===r)}function Aa(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ha(e,t){return e-e%Math.pow(10,t)}function pa(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function XA(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function da(e){return/^-?(0+)\d/.test(e)}function ZA(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}et.cache={};et.clearCache=()=>et.cache={};ga.exports=et});var jn=g((qm,Sa)=>{"use strict";var zA=S("util"),ya=_a(),Ea=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),eh=e=>t=>e===!0?Number(t):String(t),Fn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ht=e=>Number.isInteger(+e),qn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},th=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,rh=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},ma=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},nh=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Ca=(e,t,r,n)=>{if(r)return ya(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},ba=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return ya(e,t,r)},va=(...e)=>new RangeError("Invalid range arguments: "+zA.inspect(...e)),xa=(e,t,r)=>{if(r.strictRanges===!0)throw va([e,t]);return[]},ih=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},sh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw va([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let u=qn(a)||qn(l)||qn(c),h=u?Math.max(a.length,l.length,c.length):0,A=u===!1&&th(e,t,n)===!1,C=n.transform||eh(A);if(n.toRegex&&r===1)return Ca(ma(e,h),ma(t,h),!0,n);let E={negatives:[],positives:[]},_=D=>E[D<0?"negatives":"positives"].push(Math.abs(D)),v=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(rh(C(i,b),h,A)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?nh(E,n):ba(v,null,{wrap:!1,...n}):v},oh=(e,t,r=1,n={})=>{if(!Ht(e)&&e.length>1||!Ht(t)&&t.length>1)return xa(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Ca(l,c,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?ba(u,null,{wrap:!1,options:n}):u},vr=(e,t,r,n={})=>{if(t==null&&Fn(e))return[e];if(!Fn(e)||!Fn(t))return xa(e,t,n);if(typeof r=="function")return vr(e,t,1,{transform:r});if(Ea(r))return vr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ht(r)?Ht(e)&&Ht(t)?sh(e,t,r,i):oh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Ea(r)?ih(r,i):vr(e,t,1,r)};Sa.exports=vr});var Ra=g((jm,wa)=>{"use strict";var ah=jn(),Ba=Cr(),lh=(e,t={})=>{let r=(n,i={})=>{let s=Ba.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Ba.reduce(n.nodes),h=ah(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(e)};wa.exports=lh});var Ta=g((Hm,Ia)=>{"use strict";var uh=jn(),Qa=br(),Et=Cr(),tt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Et.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(tt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?tt(i,s,r):i+s);return Et.flatten(n)},ch=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(tt(a.pop(),Qa(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(tt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Et.reduce(i.nodes);if(Et.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=uh(...h,t);A.length===0&&(A=Qa(i,t)),a.push(tt(a.pop(),A)),i.nodes=[];return}let l=Et.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&c.push(""),c.push("");continue}if(A.type==="close"){a.push(tt(a.pop(),c,l));continue}if(A.value&&A.type!=="open"){c.push(tt(c.pop(),A.value));continue}A.nodes&&n(A,i)}return c};return Et.flatten(n(e))};Ia.exports=ch});var Da=g(($m,Oa)=>{"use strict";Oa.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
@@ -28,7 +28,7 @@ import ReactDOM from "react-dom";
|
|
28
28
|
\rError: ${u+h}`)},$E=`
|
29
29
|
typeof document>"u"&&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)}})();
|
30
30
|
`,Bn=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:c=void 0})=>{If.NODE_ENV=n?"development":"production";let u=me(Bn);n&&(s=!0);let{cwd:h,srcDir:A,outDir:C}=co(),E=await ho(),_=JSON.parse(E),v={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},b=["esbuild","*.png"],D={...v,bundle:i,absWorkingDir:h,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:_?.platform??"node",write:!a,external:i?b:void 0,banner:i?{js:$E}:void 0},P="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:c,noWrite:a}),c||(xe(T.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?P=l:P=await yo();let f={...v,sourcefile:c,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await qE(P,f)).code;{let k=Of(P,c,"tsx");await Co({...D,...k}),xe(T.green("Successfully built stdin file to dist/.")),xe(T.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),Tf(`${T.bold("TS Module")} [${If.NODE_ENV}]`);let U=bo.default.sync(e,{cwd:h}).filter(f=>NE(f)!==".d.ts").map(f=>ur(f));if(ME(e)){U.length||U.push(e);let f=e.replace(A,C).replace(Mt,".js").replace(pt,".js");u.log("Cleaning emitted file:",{outfile:f}),await Qf(f,{force:!0})}else u.log("Cleaning old output:",{outDir:C}),await Qf(C,{force:!0,recursive:!0});let B=U.filter(f=>pt.test(f));u.log("Compiling TSX files:",{tsxJsxInput:B});let j=B.filter(f=>!f.endsWith(".d.ts"));await Promise.all(j.map(async f=>{let k=await kf(f,"utf-8"),F=jE+k,le=Of(F,f,"tsx");await Co({...D,...le})})),Ee("Built TSX files.").succeed();let R=U.filter(f=>Mt.test(f)).filter(f=>!pt.test(f));u.log("Compiling TS files:",{tsJsInput:R}),await Co({...D,entryPoints:R.filter(f=>!f.endsWith(".d.ts"))}),Ee("Built TS files.").succeed();let x=U.filter(f=>!Sf.test(f));u.log("Copying non-JS/TS files.",{allFiles:U,nonTsJsInput:x});for(let f of x){let k=fo(f);u.log("Copying non-source file:",{file:f,emittedFile:k}),await LE(Lf(k),{recursive:!0}),await kE(f,k,DE.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let f=e.replace(A,C).replace(/^(\.\/)?src\//,"dist/").replace(Mt,".js").replace(pt,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:f}),await mo(f.endsWith(".js")?f:`${f}.js`),Ee("Normalized import specifiers.").succeed()}if(await HE()&&Ee('Forced "type": "module" in output.').succeed(),s)return;if(!o)if(vo(FE(t))){u.log("Building styles for production.");let{style:f="./dist/bundle.css"}=_;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:f,dev:n}),await Df(t,f,n),i){u.log("Bundling all styles.");let k=bo.default.sync("dist/**/*.css"),F=Ee("Bundling emitted styles.").start();await Promise.all(k.map(async le=>await Df(le,le,n))),F.succeed(`Bundled all styles to ${T.bold(f)}.`)}}else xe(T.grey(`Bundle styles not found for this project.
|
31
|
-
\rChecked: `+T.bold(t)));Tf("Running post-build setup.");let z=Ee("Generating type declarations.").start();await Ao(),z.succeed(`Generated delcarations for ${U.length} files.`),xe(T.green("Build complete."))};import{resolve as VE}from"path";var JE=Pe(Ur(),1);import{copyFile as pv,mkdir as YE}from"fs/promises";import{dirname as gv,resolve as xo}from"path";var Pf={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:
|
31
|
+
\rChecked: `+T.bold(t)));Tf("Running post-build setup.");let z=Ee("Generating type declarations.").start();await Ao(),z.succeed(`Generated delcarations for ${U.length} files.`),xe(T.green("Build complete."))};import{resolve as VE}from"path";var JE=Pe(Ur(),1);import{copyFile as pv,mkdir as YE}from"fs/promises";import{dirname as gv,resolve as xo}from"path";var Pf={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:"10m",files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Ft={default:Pf,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...Pf.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as GE,resolve as UE}from"path";import{fileURLToPath as KE}from"url";var wn=UE(GE(KE(import.meta.url)),"..");var WE=e=>xo(wn,`./templates/${e}`),So=async({template:e,targetDir:t=process.cwd()})=>{let r=Ae(),n=WE(e),i=xo(t);await YE(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};var Bo=async({template:e,targetDir:t=process.cwd()})=>{let r=xo(t),n=Ft[e].packageJson;return await vn(r,n)},wo=async({template:e,targetDir:t=process.cwd()})=>{let r=Ae({cwd:t}),n=[...Ft.default.dependencies],i=[...Ft.default.devDependencies];switch(e){case"react":n.push(...Ft.react.dependencies),i.push(...Ft.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Tv=async(e,{react:t=!1})=>{let r=Ae(),n=Ee(`Creating new module ${T.blueBright(e)}.`).start(),i={template:"default",targetDir:e};if(await So(i),await Bo(i),t){let s={template:"react",targetDir:e};await So(s),await Bo(s)}await vn(VE(process.cwd(),e),{name:e}),n.succeed("Project created."),await wo({template:"default",targetDir:e}),t&&await wo({template:"react",targetDir:e}),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};import{relative as fm,resolve as Am}from"path";import{existsSync as hm}from"fs";import{lstat as pm}from"fs/promises";var nA=Pe(eA(),1);var tA=()=>{console.clear()},rA=e=>{xe(`
|
32
32
|
`,T.gray(`Built ${T.bold(e)}.`),`
|
33
33
|
`,T.blue(new Date().toLocaleString()))},Gv=async()=>{let e=process.cwd(),t=Ae();process.platform!=="win32"&&await t.run("clear"),tA(),await Bn({dev:!0}),rA("src/**/*"),(0,nA.default)(Am(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!hm(n)||(await pm(n)).isDirectory())return;tA();let a=Date.now();await Bn({dev:!0,runtimeOnly:!0,input:n});let l=Date.now()-a;Ee(T.blueBright(`Dev refresh finished in ${T.bold(`${l}ms`)}.`)).succeed(),rA(fm(e,n))})};import{pathToFileURL as dm}from"url";import{resolve as gm}from"path";var Vv=async()=>{let e=gm(wn,"dist/loader/index.js"),t=["--no-warnings","--loader",dm(e).href,...process.argv.slice(2)];await Ae().run(`node ${t.join(" ")}`)};export{Tf as bannerLog,Bn as build,Tv as create,Gv as dev,Vv as execute,mo as normalizeImportSpecifiers};
|
34
34
|
/*!
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
typeof document>"u"&&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
4
|
var Io=Object.create;var Bn=Object.defineProperty;var Ro=Object.getOwnPropertyDescriptor;var bo=Object.getOwnPropertyNames;var vo=Object.getPrototypeOf,wo=Object.prototype.hasOwnProperty;var q=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')});var d=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var ko=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of bo(e))!wo.call(t,s)&&s!==r&&Bn(t,s,{get:()=>e[s],enumerable:!(n=Ro(e,s))||n.enumerable});return t};var xo=(t,e,r)=>(r=t!=null?Io(vo(t)):{},ko(e||!t||!t.__esModule?Bn(r,"default",{value:t,enumerable:!0}):r,t));var yn=d(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.splitWhen=we.flatten=void 0;function Do(t){return t.reduce((e,r)=>[].concat(e,r),[])}we.flatten=Do;function Lo(t,e){let r=[[]],n=0;for(let s of t)e(s)?(n++,r[n]=[]):r[n].push(s);return r}we.splitWhen=Lo});var Sn=d(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.isEnoentCodeError=void 0;function Oo(t){return t.code==="ENOENT"}Ze.isEnoentCodeError=Oo});var mn=d(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.createDirentFromStats=void 0;var wt=class{constructor(e,r){this.name=e,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function Po(t,e){return new wt(t,e)}ze.createDirentFromStats=Po});var In=d(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.removeLeadingDotSegment=ae.escape=ae.makeAbsolute=ae.unixify=void 0;var To=q("path"),No=2,Ho=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Mo(t){return t.replace(/\\/g,"/")}ae.unixify=Mo;function Fo(t,e){return To.resolve(t,e)}ae.makeAbsolute=Fo;function qo(t){return t.replace(Ho,"\\$2")}ae.escape=qo;function Ko(t){if(t.charAt(0)==="."){let e=t.charAt(1);if(e==="/"||e==="\\")return t.slice(No)}return t}ae.removeLeadingDotSegment=Ko});var bn=d((fl,Rn)=>{Rn.exports=function(e){if(typeof e!="string"||e==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(r[2])return!0;e=e.slice(r.index+r[0].length)}return!1}});var kn=d((gl,wn)=>{var Go=bn(),vn={"{":"}","(":")","[":"]"},$o=function(t){if(t[0]==="!")return!0;for(var e=0,r=-2,n=-2,s=-2,i=-2,o=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||n!==-1&&t[e]==="["&&t[e+1]!=="]"&&(n<e&&(n=t.indexOf("]",e)),n>e&&(o===-1||o>n||(o=t.indexOf("\\",e),o===-1||o>n)))||s!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(s=t.indexOf("}",e),s>e&&(o=t.indexOf("\\",e),o===-1||o>s))||i!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(i=t.indexOf(")",e),i>e&&(o=t.indexOf("\\",e),o===-1||o>i))||r!==-1&&t[e]==="("&&t[e+1]!=="|"&&(r<e&&(r=t.indexOf("|",e)),r!==-1&&t[r+1]!==")"&&(i=t.indexOf(")",r),i>r&&(o=t.indexOf("\\",r),o===-1||o>i))))return!0;if(t[e]==="\\"){var a=t[e+1];e+=2;var A=vn[a];if(A){var p=t.indexOf(A,e);p!==-1&&(e=p+1)}if(t[e]==="!")return!0}else e++}return!1},Jo=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var r=t[e+1];e+=2;var n=vn[r];if(n){var s=t.indexOf(n,e);s!==-1&&(e=s+1)}if(t[e]==="!")return!0}else e++}return!1};wn.exports=function(e,r){if(typeof e!="string"||e==="")return!1;if(Go(e))return!0;var n=$o;return r&&r.strict===!1&&(n=Jo),n(e)}});var Dn=d((pl,xn)=>{"use strict";var jo=kn(),Uo=q("path").posix.dirname,Yo=q("os").platform()==="win32",kt="/",Xo=/\\/g,Vo=/[\{\[].*[\}\]]$/,Wo=/(^|[^\\])([\{\[]|\([^\)]+$)/,Zo=/\\([\!\*\?\|\[\]\(\)\{\}])/g;xn.exports=function(e,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Yo&&e.indexOf(kt)<0&&(e=e.replace(Xo,kt)),Vo.test(e)&&(e+=kt),e+="a";do e=Uo(e);while(jo(e)||Wo.test(e));return e.replace(Zo,"$1")}});var et=d(te=>{"use strict";te.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;te.find=(t,e)=>t.nodes.find(r=>r.type===e);te.exceedsLimit=(t,e,r=1,n)=>n===!1||!te.isInteger(t)||!te.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;te.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};te.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;te.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;te.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;te.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);te.flatten=(...t)=>{let e=[],r=n=>{for(let s=0;s<n.length;s++){let i=n[s];Array.isArray(i)?r(i,e):i!==void 0&&e.push(i)}return e};return r(t),e}});var tt=d((El,On)=>{"use strict";var Ln=et();On.exports=(t,e={})=>{let r=(n,s={})=>{let i=e.escapeInvalid&&Ln.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a="";if(n.value)return(i||o)&&Ln.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let A of n.nodes)a+=r(A);return a};return r(t)}});var Tn=d((dl,Pn)=>{"use strict";Pn.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var Jn=d((Cl,$n)=>{"use strict";var Nn=Tn(),Se=(t,e,r)=>{if(Nn(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Nn(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let s=String(n.relaxZeros),i=String(n.shorthand),o=String(n.capture),a=String(n.wrap),A=t+":"+e+"="+s+i+o+a;if(Se.cache.hasOwnProperty(A))return Se.cache[A].result;let p=Math.min(t,e),u=Math.max(t,e);if(Math.abs(p-u)===1){let Q=t+"|"+e;return n.capture?`(${Q})`:n.wrap===!1?Q:`(?:${Q})`}let h=Gn(t)||Gn(e),f={min:t,max:e,a:p,b:u},w=[],C=[];if(h&&(f.isPadded=h,f.maxLen=String(f.max).length),p<0){let Q=u<0?Math.abs(u):1;C=Hn(Q,Math.abs(p),f,n),p=f.a=0}return u>=0&&(w=Hn(p,u,f,n)),f.negatives=C,f.positives=w,f.result=zo(C,w,n),n.capture===!0?f.result=`(${f.result})`:n.wrap!==!1&&w.length+C.length>1&&(f.result=`(?:${f.result})`),Se.cache[A]=f,f.result};function zo(t,e,r){let n=xt(t,e,"-",!1,r)||[],s=xt(e,t,"",!1,r)||[],i=xt(t,e,"-?",!0,r)||[];return n.concat(i).concat(s).join("|")}function ea(t,e){let r=1,n=1,s=Fn(t,r),i=new Set([e]);for(;t<=s&&s<=e;)i.add(s),r+=1,s=Fn(t,r);for(s=qn(e+1,n)-1;t<s&&s<=e;)i.add(s),n+=1,s=qn(e+1,n)-1;return i=[...i],i.sort(na),i}function ta(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=ra(t,e),s=n.length,i="",o=0;for(let a=0;a<s;a++){let[A,p]=n[a];A===p?i+=A:A!=="0"||p!=="9"?i+=sa(A,p,r):o++}return o&&(i+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function Hn(t,e,r,n){let s=ea(t,e),i=[],o=t,a;for(let A=0;A<s.length;A++){let p=s[A],u=ta(String(o),String(p),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+Kn(a.count),o=p+1;continue}r.isPadded&&(h=ia(p,r,n)),u.string=h+u.pattern+Kn(u.count),i.push(u),o=p+1,a=u}return i}function xt(t,e,r,n,s){let i=[];for(let o of t){let{string:a}=o;!n&&!Mn(e,"string",a)&&i.push(r+a),n&&Mn(e,"string",a)&&i.push(r+a)}return i}function ra(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function na(t,e){return t>e?1:e>t?-1:0}function Mn(t,e,r){return t.some(n=>n[e]===r)}function Fn(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function qn(t,e){return t-t%Math.pow(10,e)}function Kn(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function sa(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function Gn(t){return/^-?(0+)\d/.test(t)}function ia(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),s=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${n}}`:`0{${n}}`}}Se.cache={};Se.clearCache=()=>Se.cache={};$n.exports=Se});var Ot=d((_l,zn)=>{"use strict";var oa=q("util"),Yn=Jn(),jn=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),aa=t=>e=>t===!0?Number(e):String(e),Dt=t=>typeof t=="number"||typeof t=="string"&&t!=="",qe=t=>Number.isInteger(+t),Lt=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},Aa=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,ua=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Un=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},ca=(t,e)=>{t.negatives.sort((o,a)=>o<a?-1:o>a?1:0),t.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=e.capture?"":"?:",n="",s="",i;return t.positives.length&&(n=t.positives.join("|")),t.negatives.length&&(s=`-(${r}${t.negatives.join("|")})`),n&&s?i=`${n}|${s}`:i=n||s,e.wrap?`(${r}${i})`:i},Xn=(t,e,r,n)=>{if(r)return Yn(t,e,{wrap:!1,...n});let s=String.fromCharCode(t);if(t===e)return s;let i=String.fromCharCode(e);return`[${s}-${i}]`},Vn=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,s=r.capture?"":"?:";return n?`(${s}${t.join("|")})`:t.join("|")}return Yn(t,e,r)},Wn=(...t)=>new RangeError("Invalid range arguments: "+oa.inspect(...t)),Zn=(t,e,r)=>{if(r.strictRanges===!0)throw Wn([t,e]);return[]},la=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},fa=(t,e,r=1,n={})=>{let s=Number(t),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(n.strictRanges===!0)throw Wn([t,e]);return[]}s===0&&(s=0),i===0&&(i=0);let o=s>i,a=String(t),A=String(e),p=String(r);r=Math.max(Math.abs(r),1);let u=Lt(a)||Lt(A)||Lt(p),h=u?Math.max(a.length,A.length,p.length):0,f=u===!1&&Aa(t,e,n)===!1,w=n.transform||aa(f);if(n.toRegex&&r===1)return Xn(Un(t,h),Un(e,h),!0,n);let C={negatives:[],positives:[]},Q=D=>C[D<0?"negatives":"positives"].push(Math.abs(D)),S=[],m=0;for(;o?s>=i:s<=i;)n.toRegex===!0&&r>1?Q(s):S.push(ua(w(s,m),h,f)),s=o?s-r:s+r,m++;return n.toRegex===!0?r>1?ca(C,n):Vn(S,null,{wrap:!1,...n}):S},ga=(t,e,r=1,n={})=>{if(!qe(t)&&t.length>1||!qe(e)&&e.length>1)return Zn(t,e,n);let s=n.transform||(f=>String.fromCharCode(f)),i=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=i>o,A=Math.min(i,o),p=Math.max(i,o);if(n.toRegex&&r===1)return Xn(A,p,!1,n);let u=[],h=0;for(;a?i>=o:i<=o;)u.push(s(i,h)),i=a?i-r:i+r,h++;return n.toRegex===!0?Vn(u,null,{wrap:!1,options:n}):u},rt=(t,e,r,n={})=>{if(e==null&&Dt(t))return[t];if(!Dt(t)||!Dt(e))return Zn(t,e,n);if(typeof r=="function")return rt(t,e,1,{transform:r});if(jn(r))return rt(t,e,0,r);let s={...n};return s.capture===!0&&(s.wrap=!0),r=r||s.step||1,qe(r)?qe(t)&&qe(e)?fa(t,e,r,s):ga(t,e,Math.max(Math.abs(r),1),s):r!=null&&!jn(r)?la(r,s):rt(t,e,1,r)};zn.exports=rt});var rs=d((Ql,ts)=>{"use strict";var pa=Ot(),es=et(),ha=(t,e={})=>{let r=(n,s={})=>{let i=es.isInvalidBrace(s),o=n.invalid===!0&&e.escapeInvalid===!0,a=i===!0||o===!0,A=e.escapeInvalid===!0?"\\":"",p="";if(n.isOpen===!0||n.isClose===!0)return A+n.value;if(n.type==="open")return a?A+n.value:"(";if(n.type==="close")return a?A+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=es.reduce(n.nodes),h=pa(...u,{...e,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)p+=r(u,n);return p};return r(t)};ts.exports=ha});var is=d((Bl,ss)=>{"use strict";var Ea=Ot(),ns=tt(),ke=et(),me=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?ke.flatten(e).map(s=>`{${s}}`):e;for(let s of t)if(Array.isArray(s))for(let i of s)n.push(me(i,e,r));else for(let i of e)r===!0&&typeof i=="string"&&(i=`{${i}}`),n.push(Array.isArray(i)?me(s,i,r):s+i);return ke.flatten(n)},da=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(s,i={})=>{s.queue=[];let o=i,a=i.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(me(a.pop(),ns(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(me(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let h=ke.reduce(s.nodes);if(ke.exceedsLimit(...h,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let f=Ea(...h,e);f.length===0&&(f=ns(s,e)),a.push(me(a.pop(),f)),s.nodes=[];return}let A=ke.encloseBrace(s),p=s.queue,u=s;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,p=u.queue;for(let h=0;h<s.nodes.length;h++){let f=s.nodes[h];if(f.type==="comma"&&s.type==="brace"){h===1&&p.push(""),p.push("");continue}if(f.type==="close"){a.push(me(a.pop(),p,A));continue}if(f.value&&f.type!=="open"){p.push(me(p.pop(),f.value));continue}f.nodes&&n(f,s)}return p};return ke.flatten(n(t))};ss.exports=da});var as=d((yl,os)=>{"use strict";os.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
typeof document>"u"&&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
4
|
import{dirname as lA,normalize as cA,posix as J,resolve as aA}from"path";import{existsSync as V}from"fs";import{readFile as fA}from"fs/promises";var W=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function N(A,Q="@"){if(!g)return m.then(()=>N(A));let o=A.length+1,B=(g.__heap_base.value||g.__heap_base)+4*o-g.memory.buffer.byteLength;B>0&&g.memory.grow(Math.ceil(B/65536));let C=g.sa(o-1);if((W?z:Z)(A,new Uint16Array(g.memory.buffer,C,o)),!g.parse())throw Object.assign(new Error(`Parse error ${Q}:${A.slice(0,g.e()).split(`
|
package/dist/constants.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
"use strict";
|
2
2
|
typeof document>"u"&&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
4
|
import{dirname as t,resolve as o}from"path";import{fileURLToPath as a}from"url";import{readFile as e}from"fs/promises";var m=o(t(a(import.meta.url)),".."),i=async()=>{let r=await e(o(m,"package.json"),"utf-8");return JSON.parse(r)};export{m as PACKAGE_ROOT,i as localPackageJson};
|