tsx 4.23.13 → 4.23.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/index.cjs +2 -1
- package/dist/cjs/api/index.d.cts +3 -3
- package/dist/cjs/api/index.d.mts +3 -3
- package/dist/cjs/api/index.mjs +2 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cli.mjs +28 -28
- package/dist/client-XItNFmsq.cjs +1 -0
- package/dist/esm/api/index.cjs +2 -1
- package/dist/esm/api/index.d.cts +5 -3
- package/dist/esm/api/index.d.mts +5 -3
- package/dist/esm/api/index.mjs +2 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/index-Bqjv9TxC.mjs +1 -0
- package/dist/index-DE3OBZuV.mjs +14 -0
- package/dist/{lexer-DgIbo0BU.cjs → lexer-CGfpMDSb.cjs} +2 -2
- package/dist/{lexer-DQCqS3nf.mjs → lexer-CanA6ArK.mjs} +2 -2
- package/dist/loader.mjs +2 -1
- package/dist/package-Dj0mHsMt.mjs +1 -0
- package/dist/patch-repl.cjs +0 -0
- package/dist/preflight.cjs +1 -1
- package/dist/register-B1c7OH6V.cjs +23 -0
- package/dist/register-nyXW-TH3.mjs +2 -0
- package/dist/repl.mjs +4 -3
- package/dist/require-CBjy4Foe.mjs +10 -0
- package/dist/require-CVaYn9z3.cjs +1 -0
- package/dist/suppress-warnings.cjs +0 -0
- package/dist/temporary-directory-Du7LpLp9.mjs +1 -0
- package/package.json +4 -1
- package/dist/cjs/index.mjs +0 -1
- package/dist/cli.cjs +0 -54
- package/dist/client-D3mGB526.cjs +0 -1
- package/dist/client-D_mPDF5S.mjs +0 -1
- package/dist/esm/index.cjs +0 -1
- package/dist/get-pipe-path-D4YM6rQt.cjs +0 -1
- package/dist/get-pipe-path-_tAJyU_v.mjs +0 -1
- package/dist/index-BWFBUo6r.cjs +0 -1
- package/dist/index-D1vYaNWZ.cjs +0 -14
- package/dist/index-DCefr8NP.mjs +0 -14
- package/dist/index-gbaejti9.mjs +0 -1
- package/dist/loader.cjs +0 -1
- package/dist/node-features-CEjg7cMX.cjs +0 -1
- package/dist/node-features-JeyyvQz6.mjs +0 -1
- package/dist/package-B1lIY_Tn.cjs +0 -1
- package/dist/package-BL7Whz21.mjs +0 -1
- package/dist/patch-repl.mjs +0 -1
- package/dist/preflight.mjs +0 -1
- package/dist/register-DHgpdRjs.mjs +0 -10
- package/dist/register-DjPW2kSr.cjs +0 -2
- package/dist/register-OY9cqBEN.cjs +0 -10
- package/dist/register-SoqaU4rg.mjs +0 -2
- package/dist/repl.cjs +0 -3
- package/dist/require-Blr_8TcJ.cjs +0 -1
- package/dist/require-Cuv-0BLU.mjs +0 -1
- package/dist/suppress-warnings.mjs +0 -1
- package/dist/temporary-directory-B83uKxJF.cjs +0 -1
- package/dist/temporary-directory-BDDVQOvU.mjs +0 -1
- package/dist/types-Cxp8y2TL.d.ts +0 -5
package/dist/cli.mjs
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var Bn=Object.defineProperty;var a=(t,e)=>Bn(t,"name",{value:e,configurable:!0});import{constants as ft}from"node:os";import $n from"tty";import{v as Tn}from"./package-BL7Whz21.mjs";import{r as Ie,g as xn,i as On}from"./get-pipe-path-_tAJyU_v.mjs";import{pathToFileURL as Nn,fileURLToPath as Pn}from"node:url";import Hn from"child_process";import q from"path";import oe from"fs";import{i as yu,a as Ln,t as In}from"./node-features-JeyyvQz6.mjs";import ke from"node:path";import Me from"node:fs";import kn from"events";import ge from"util";import Mn from"stream";import wu from"os";import{g as Wn,l as Gn,y as me,e as jn,f as Un}from"./index-gbaejti9.mjs";import Kn from"node:net";import{t as Vn}from"./temporary-directory-BDDVQOvU.mjs";import"module";const zn="known-flag",Yn="unknown-flag",qn="argument",{stringify:_e}=JSON,Xn=/\B([A-Z])/g,Qn=a(t=>t.replace(Xn,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Zn}=Object.prototype,Ae=a((t,e)=>Zn.call(t,e),"w$2"),Jn=a(t=>Array.isArray(t),"L$2"),Ru=a(t=>typeof t=="function"?[t,!1]:Jn(t)?[t[0],!0]:Ru(t.type),"b$2"),er=a((t,e)=>t===Boolean?e!=="false":e,"d$2"),tr=a((t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),"m$1"),ur=/[\s.:=]/,sr=a(t=>{const e=`Flag name ${_e(t)}`;if(t.length===0)throw new Error(`${e} cannot be empty`);if(t.length===1)throw new Error(`${e} must be longer than a character`);const u=t.match(ur);if(u)throw new Error(`${e} cannot contain ${_e(u?.[0])}`)},"B"),nr=a(t=>{const e={},u=a((s,n)=>{if(Ae(e,s))throw new Error(`Duplicate flags named ${_e(s)}`);e[s]=n},"r");for(const s in t){if(!Ae(t,s))continue;sr(s);const n=t[s],r=[[],...Ru(n),n];u(s,r);const i=Qn(s);if(s!==i&&u(i,r),"alias"in n&&typeof n.alias=="string"){const{alias:o}=n,D=`Flag alias ${_e(o)} for flag ${_e(s)}`;if(o.length===0)throw new Error(`${D} cannot be empty`);if(o.length>1)throw new Error(`${D} must be a single character`);u(o,r)}}return e},"K$1"),rr=a((t,e)=>{const u={};for(const s in t){if(!Ae(t,s))continue;const[n,,r,i]=e[s];if(n.length===0&&"default"in i){let{default:o}=i;typeof o=="function"&&(o=o()),u[s]=o}else u[s]=r?n:n.pop()}return u},"_$2"),We="--",ir=/[.:=]/,or=/^-{1,2}\w/,Dr=a(t=>{if(!or.test(t))return;const e=!t.startsWith(We);let u=t.slice(e?1:2),s;const n=u.match(ir);if(n){const{index:r}=n;s=u.slice(r+1),u=u.slice(0,r)}return[u,s,e]},"N"),ar=a((t,{onFlag:e,onArgument:u})=>{let s;const n=a((r,i)=>{if(typeof s!="function")return!0;s(r,i),s=void 0},"o");for(let r=0;r<t.length;r+=1){const i=t[r];if(i===We){n();const D=t.slice(r+1);u?.(D,[r],!0);break}const o=Dr(i);if(o){if(n(),!e)continue;const[D,l,f]=o;if(f)for(let h=0;h<D.length;h+=1){n();const c=h===D.length-1;s=e(D[h],c?l:void 0,[r,h+1,c])}else s=e(D,l,[r])}else n(i,[r])&&u?.([i],[r])}n()},"$$1"),lr=a((t,e)=>{for(const[u,s,n]of e.reverse()){if(s){const r=t[u];let i=r.slice(0,s);if(n||(i+=r.slice(s+1)),i!=="-"){t[u]=i;continue}}t.splice(u,1)}},"E"),bu=a((t,e=process.argv.slice(2),{ignore:u}={})=>{const s=[],n=nr(t),r={},i=[];return i[We]=[],ar(e,{onFlag(o,D,l){const f=Ae(n,o);if(!u?.(f?zn:Yn,o,D)){if(f){const[h,c]=n[o],C=er(c,D),F=a((m,R)=>{s.push(l),R&&s.push(R),h.push(tr(c,m||""))},"p");return C===void 0?F:F(C)}Ae(r,o)||(r[o]=[]),r[o].push(D===void 0?!0:D),s.push(l)}},onArgument(o,D,l){u?.(qn,e[D[0]])||(i.push(...o),l?(i[We]=o,e.splice(D[0])):s.push(D))}}),lr(e,s),{flags:rr(t,n),unknownFlags:r,_:i}},"U$2");var cr=Object.create,Ge=Object.defineProperty,fr=Object.defineProperties,hr=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyDescriptors,Er=Object.getOwnPropertyNames,vu=Object.getOwnPropertySymbols,pr=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable,Bu=a((t,e,u)=>e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,"W$1"),je=a((t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Bu(t,u,e[u]);if(vu)for(var u of vu(e))Cr.call(e,u)&&Bu(t,u,e[u]);return t},"p"),ht=a((t,e)=>fr(t,dr(e)),"c"),Fr=a(t=>Ge(t,"__esModule",{value:!0}),"nD"),gr=a((t,e)=>()=>(t&&(e=t(t=0)),e),"rD"),mr=a((t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),"iD"),_r=a((t,e,u,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Er(e))!Su.call(t,n)&&n!=="default"&&Ge(t,n,{get:a(()=>e[n],"get"),enumerable:!(s=hr(e,n))||s.enumerable});return t},"oD"),Ar=a((t,e)=>_r(Fr(Ge(t!=null?cr(pr(t)):{},"default",{value:t,enumerable:!0})),t),"BD"),V=gr(()=>{}),yr=mr((t,e)=>{V(),e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});V(),V(),V();var wr=a(t=>{var e,u,s;let n=(e=process.stdout.columns)!=null?e:Number.POSITIVE_INFINITY;return typeof t=="function"&&(t=t(n)),t||(t={}),Array.isArray(t)?{columns:t,stdoutColumns:n}:{columns:(u=t.columns)!=null?u:[],stdoutColumns:(s=t.stdoutColumns)!=null?s:n}},"v");V(),V(),V(),V(),V();function Rr({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}a(Rr,"w$1");function $u(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(Rr(),"")}a($u,"d$1"),V();function br(t){return Number.isInteger(t)?t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141):!1}a(br,"y$1");var vr=Ar(yr());function De(t){if(typeof t!="string"||t.length===0||(t=$u(t),t.length===0))return 0;t=t.replace((0,vr.default)()," ");let e=0;for(let u=0;u<t.length;u++){let s=t.codePointAt(u);s<=31||s>=127&&s<=159||s>=768&&s<=879||(s>65535&&u++,e+=br(s)?2:1)}return e}a(De,"g");var Tu=a(t=>Math.max(...t.split(`
|
|
3
|
-
`).map(
|
|
4
|
-
`)];for(let[l,f]of D.entries()){if(
|
|
5
|
-
`?(r&&(
|
|
6
|
-
`&&(
|
|
2
|
+
var Dr=Object.defineProperty;var i=(e,t)=>Dr(e,"name",{value:t,configurable:!0});import{createRequire as lr}from"node:module";const Te=lr(import.meta.url);import{constants as Ue}from"node:os";import cr from"tty";import{v as fr}from"./package-Dj0mHsMt.mjs";import{pathToFileURL as hr,fileURLToPath as dr}from"node:url";import pr from"child_process";import ge from"path";import ye from"fs";import{i as Wt,a as Er,t as Cr,d as Fr}from"./temporary-directory-Du7LpLp9.mjs";import $e from"node:path";import Oe from"node:fs";import gr from"events";import ve from"util";import mr from"stream";import Gt from"os";import{g as _r,i as Ar,e as yr,l as wr,y as be,f as Rr,h as vr}from"./index-Bqjv9TxC.mjs";import br from"node:net";var Br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}i(jt,"getDefaultExportFromCjs");const Sr="known-flag",xr="unknown-flag",Tr="argument",{stringify:Be}=JSON,$r=/\B([A-Z])/g,Or=i(e=>e.replace($r,"-$1").toLowerCase(),"v$1"),{hasOwnProperty:Pr}=Object.prototype,Se=i((e,t)=>Pr.call(e,t),"w$2"),Nr=i(e=>Array.isArray(e),"L$2"),qt=i(e=>typeof e=="function"?[e,!1]:Nr(e)?[e[0],!0]:qt(e.type),"b$2"),Ir=i((e,t)=>e===Boolean?t!=="false":t,"d$2"),Hr=i((e,t)=>typeof t=="boolean"?t:e===Number&&t===""?Number.NaN:e(t),"m$1"),Lr=/[\s.:=]/,kr=i(e=>{const t=`Flag name ${Be(e)}`;if(e.length===0)throw new Error(`${t} cannot be empty`);if(e.length===1)throw new Error(`${t} must be longer than a character`);const u=e.match(Lr);if(u)throw new Error(`${t} cannot contain ${Be(u?.[0])}`)},"B"),Mr=i(e=>{const t={},u=i((n,s)=>{if(Se(t,n))throw new Error(`Duplicate flags named ${Be(n)}`);t[n]=s},"r");for(const n in e){if(!Se(e,n))continue;kr(n);const s=e[n],r=[[],...qt(s),s];u(n,r);const o=Or(n);if(n!==o&&u(o,r),"alias"in s&&typeof s.alias=="string"){const{alias:a}=s,D=`Flag alias ${Be(a)} for flag ${Be(n)}`;if(a.length===0)throw new Error(`${D} cannot be empty`);if(a.length>1)throw new Error(`${D} must be a single character`);u(a,r)}}return t},"K$1"),Wr=i((e,t)=>{const u={};for(const n in e){if(!Se(e,n))continue;const[s,,r,o]=t[n];if(s.length===0&&"default"in o){let{default:a}=o;typeof a=="function"&&(a=a()),u[n]=a}else u[n]=r?s:s.pop()}return u},"_$2"),Pe="--",Gr=/[.:=]/,jr=/^-{1,2}\w/,qr=i(e=>{if(!jr.test(e))return;const t=!e.startsWith(Pe);let u=e.slice(t?1:2),n;const s=u.match(Gr);if(s){const{index:r}=s;n=u.slice(r+1),u=u.slice(0,r)}return[u,n,t]},"N"),Ur=i((e,{onFlag:t,onArgument:u})=>{let n;const s=i((r,o)=>{if(typeof n!="function")return!0;n(r,o),n=void 0},"o");for(let r=0;r<e.length;r+=1){const o=e[r];if(o===Pe){s();const D=e.slice(r+1);u?.(D,[r],!0);break}const a=qr(o);if(a){if(s(),!t)continue;const[D,l,f]=a;if(f)for(let C=0;C<D.length;C+=1){s();const h=C===D.length-1;n=t(D[C],h?l:void 0,[r,C+1,h])}else n=t(D,l,[r])}else s(o,[r])&&u?.([o],[r])}s()},"$$1"),Kr=i((e,t)=>{for(const[u,n,s]of t.reverse()){if(n){const r=e[u];let o=r.slice(0,n);if(s||(o+=r.slice(n+1)),o!=="-"){e[u]=o;continue}}e.splice(u,1)}},"E"),Ut=i((e,t=process.argv.slice(2),{ignore:u}={})=>{const n=[],s=Mr(e),r={},o=[];return o[Pe]=[],Ur(t,{onFlag(a,D,l){const f=Se(s,a);if(!u?.(f?Sr:xr,a,D)){if(f){const[C,h]=s[a],P=Ir(h,D),$=i((U,_)=>{n.push(l),_&&n.push(_),C.push(Hr(h,U||""))},"p");return P===void 0?$:$(P)}Se(r,a)||(r[a]=[]),r[a].push(D===void 0?!0:D),n.push(l)}},onArgument(a,D,l){u?.(Tr,t[D[0]])||(o.push(...a),l?(o[Pe]=a,t.splice(D[0])):n.push(D))}}),Kr(t,n),{flags:Wr(e,s),unknownFlags:r,_:o}},"U$2");var zr=Object.create,Ne=Object.defineProperty,Vr=Object.defineProperties,Yr=Object.getOwnPropertyDescriptor,Xr=Object.getOwnPropertyDescriptors,Qr=Object.getOwnPropertyNames,Kt=Object.getOwnPropertySymbols,Zr=Object.getPrototypeOf,zt=Object.prototype.hasOwnProperty,Jr=Object.prototype.propertyIsEnumerable,Vt=i((e,t,u)=>t in e?Ne(e,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):e[t]=u,"W$1"),Ie=i((e,t)=>{for(var u in t||(t={}))zt.call(t,u)&&Vt(e,u,t[u]);if(Kt)for(var u of Kt(t))Jr.call(t,u)&&Vt(e,u,t[u]);return e},"p"),Ke=i((e,t)=>Vr(e,Xr(t)),"c"),en=i(e=>Ne(e,"__esModule",{value:!0}),"nD"),tn=i((e,t)=>()=>(e&&(t=e(e=0)),t),"rD"),un=i((e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),"iD"),rn=i((e,t,u,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Qr(t))!zt.call(e,s)&&s!=="default"&&Ne(e,s,{get:i(()=>t[s],"get"),enumerable:!(n=Yr(t,s))||n.enumerable});return e},"oD"),nn=i((e,t)=>rn(en(Ne(e!=null?zr(Zr(e)):{},"default",{value:e,enumerable:!0})),e),"BD"),Ce=tn(()=>{}),sn=un((e,t)=>{Ce(),t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});Ce(),Ce(),Ce();var on=i(e=>{var t,u,n;let s=(t=process.stdout.columns)!=null?t:Number.POSITIVE_INFINITY;return typeof e=="function"&&(e=e(s)),e||(e={}),Array.isArray(e)?{columns:e,stdoutColumns:s}:{columns:(u=e.columns)!=null?u:[],stdoutColumns:(n=e.stdoutColumns)!=null?n:s}},"v");Ce(),Ce(),Ce(),Ce(),Ce();function an({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}i(an,"w$1");function Yt(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(an(),"")}i(Yt,"d$1"),Ce();function Dn(e){return Number.isInteger(e)?e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141):!1}i(Dn,"y$1");var ln=nn(sn());function we(e){if(typeof e!="string"||e.length===0||(e=Yt(e),e.length===0))return 0;e=e.replace((0,ln.default)()," ");let t=0;for(let u=0;u<e.length;u++){let n=e.codePointAt(u);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&u++,t+=Dn(n)?2:1)}return t}i(we,"g");var Xt=i(e=>Math.max(...e.split(`
|
|
3
|
+
`).map(we)),"b$1"),cn=i(e=>{let t=[];for(let u of e){let{length:n}=u,s=n-t.length;for(let r=0;r<s;r+=1)t.push(0);for(let r=0;r<n;r+=1){let o=Xt(u[r]);o>t[r]&&(t[r]=o)}}return t},"k$1");Ce();var Qt=/^\d+%$/,Zt={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},fn=i((e,t)=>{var u;let n=[];for(let s=0;s<e.length;s+=1){let r=(u=t[s])!=null?u:"auto";if(typeof r=="number"||r==="auto"||r==="content-width"||typeof r=="string"&&Qt.test(r)){n.push(Ke(Ie({},Zt),{width:r,contentWidth:e[s]}));continue}if(r&&typeof r=="object"){let o=Ke(Ie(Ie({},Zt),r),{contentWidth:e[s]});o.horizontalPadding=o.paddingLeft+o.paddingRight,n.push(o);continue}throw new Error(`Invalid column width: ${JSON.stringify(r)}`)}return n},"sD");function hn(e,t){for(let u of e){let{width:n}=u;if(n==="content-width"&&(u.width=u.contentWidth),n==="auto"){let D=Math.min(20,u.contentWidth);u.width=D,u.autoOverflow=u.contentWidth-D}if(typeof n=="string"&&Qt.test(n)){let D=Number.parseFloat(n.slice(0,-1))/100;u.width=Math.floor(t*D)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:s}=u,r=1,o=r+s;if(o>=t){let D=o-t,l=Math.ceil(u.paddingLeft/s*D),f=D-l;u.paddingLeft-=l,u.paddingRight-=f,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let a=t-u.horizontalPadding;u.width=Math.max(Math.min(u.width,a),r)}}i(hn,"aD");var Jt=i(()=>Object.assign([],{columns:0}),"G$1");function dn(e,t){let u=[Jt()],[n]=u;for(let s of e){let r=s.width+s.horizontalPadding;n.columns+r>t&&(n=Jt(),u.push(n)),n.push(s),n.columns+=r}for(let s of u){let r=s.reduce((h,P)=>h+P.width+P.horizontalPadding,0),o=t-r;if(o===0)continue;let a=s.filter(h=>"autoOverflow"in h),D=a.filter(h=>h.autoOverflow>0),l=D.reduce((h,P)=>h+P.autoOverflow,0),f=Math.min(l,o);for(let h of D){let P=Math.floor(h.autoOverflow/l*f);h.width+=P,o-=P}let C=Math.floor(o/a.length);for(let h=0;h<a.length;h+=1){let P=a[h];h===a.length-1?P.width+=o:P.width+=C,o-=C}}return u}i(dn,"lD");function pn(e,t,u){let n=fn(u,t);return hn(n,e),dn(n,e)}i(pn,"Z$1"),Ce(),Ce(),Ce();var ze=10,eu=i((e=0)=>t=>`\x1B[${t+e}m`,"U$1"),tu=i((e=0)=>t=>`\x1B[${38+e};5;${t}m`,"V$1"),uu=i((e=0)=>(t,u,n)=>`\x1B[${38+e};2;${t};${u};${n}m`,"Y");function En(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[u,n]of Object.entries(t)){for(let[s,r]of Object.entries(n))t[s]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},n[s]=t[s],e.set(r[0],r[1]);Object.defineProperty(t,u,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=eu(),t.color.ansi256=tu(),t.color.ansi16m=uu(),t.bgColor.ansi=eu(ze),t.bgColor.ansi256=tu(ze),t.bgColor.ansi16m=uu(ze),Object.defineProperties(t,{rgbToAnsi256:{value:i((u,n,s)=>u===n&&n===s?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(n/255*5)+Math.round(s/255*5),"value"),enumerable:!1},hexToRgb:{value:i(u=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!n)return[0,0,0];let{colorString:s}=n.groups;s.length===3&&(s=s.split("").map(o=>o+o).join(""));let r=Number.parseInt(s,16);return[r>>16&255,r>>8&255,r&255]},"value"),enumerable:!1},hexToAnsi256:{value:i(u=>t.rgbToAnsi256(...t.hexToRgb(u)),"value"),enumerable:!1},ansi256ToAnsi:{value:i(u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let n,s,r;if(u>=232)n=((u-232)*10+8)/255,s=n,r=n;else{u-=16;let D=u%36;n=Math.floor(u/36)/5,s=Math.floor(D/6)/5,r=D%6/5}let o=Math.max(n,s,r)*2;if(o===0)return 30;let a=30+(Math.round(r)<<2|Math.round(s)<<1|Math.round(n));return o===2&&(a+=60),a},"value"),enumerable:!1},rgbToAnsi:{value:i((u,n,s)=>t.ansi256ToAnsi(t.rgbToAnsi256(u,n,s)),"value"),enumerable:!1},hexToAnsi:{value:i(u=>t.ansi256ToAnsi(t.hexToAnsi256(u)),"value"),enumerable:!1}}),t}i(En,"AD");var Cn=En(),Fn=Cn,He=new Set(["\x1B","\x9B"]),gn=39,Ve="\x07",ru="[",mn="]",nu="m",Ye=`${mn}8;;`,su=i(e=>`${He.values().next().value}${ru}${e}${nu}`,"J$1"),iu=i(e=>`${He.values().next().value}${Ye}${e}${Ve}`,"Q"),_n=i(e=>e.split(" ").map(t=>we(t)),"hD"),Xe=i((e,t,u)=>{let n=[...t],s=!1,r=!1,o=we(Yt(e[e.length-1]));for(let[a,D]of n.entries()){let l=we(D);if(o+l<=u?e[e.length-1]+=D:(e.push(D),o=0),He.has(D)&&(s=!0,r=n.slice(a+1).join("").startsWith(Ye)),s){r?D===Ve&&(s=!1,r=!1):D===nu&&(s=!1);continue}o+=l,o===u&&a<n.length-1&&(e.push(""),o=0)}!o&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},"S$1"),An=i(e=>{let t=e.split(" "),u=t.length;for(;u>0&&!(we(t[u-1])>0);)u--;return u===t.length?e:t.slice(0,u).join(" ")+t.slice(u).join("")},"cD"),yn=i((e,t,u={})=>{if(u.trim!==!1&&e.trim()==="")return"";let n="",s,r,o=_n(e),a=[""];for(let[l,f]of e.split(" ").entries()){u.trim!==!1&&(a[a.length-1]=a[a.length-1].trimStart());let C=we(a[a.length-1]);if(l!==0&&(C>=t&&(u.wordWrap===!1||u.trim===!1)&&(a.push(""),C=0),(C>0||u.trim===!1)&&(a[a.length-1]+=" ",C++)),u.hard&&o[l]>t){let h=t-C,P=1+Math.floor((o[l]-h-1)/t);Math.floor((o[l]-1)/t)<P&&a.push(""),Xe(a,f,t);continue}if(C+o[l]>t&&C>0&&o[l]>0){if(u.wordWrap===!1&&C<t){Xe(a,f,t);continue}a.push("")}if(C+o[l]>t&&u.wordWrap===!1){Xe(a,f,t);continue}a[a.length-1]+=f}u.trim!==!1&&(a=a.map(l=>An(l)));let D=[...a.join(`
|
|
4
|
+
`)];for(let[l,f]of D.entries()){if(n+=f,He.has(f)){let{groups:h}=new RegExp(`(?:\\${ru}(?<code>\\d+)m|\\${Ye}(?<uri>.*)${Ve})`).exec(D.slice(l).join(""))||{groups:{}};if(h.code!==void 0){let P=Number.parseFloat(h.code);s=P===gn?void 0:P}else h.uri!==void 0&&(r=h.uri.length===0?void 0:h.uri)}let C=Fn.codes.get(Number(s));D[l+1]===`
|
|
5
|
+
`?(r&&(n+=iu("")),s&&C&&(n+=su(C))):f===`
|
|
6
|
+
`&&(s&&C&&(n+=su(s)),r&&(n+=iu(r)))}return n},"dD");function wn(e,t,u){return String(e).normalize().replace(/\r\n/g,`
|
|
7
7
|
`).split(`
|
|
8
|
-
`).map(
|
|
9
|
-
`)}
|
|
10
|
-
`);if(D.postprocess){let{postprocess:
|
|
8
|
+
`).map(n=>yn(n,t,u)).join(`
|
|
9
|
+
`)}i(wn,"T$1");var ou=i(e=>Array.from({length:e}).fill(""),"X");function Rn(e,t){let u=[],n=0;for(let s of e){let r=0,o=s.map(D=>{var l;let f=(l=t[n])!=null?l:"";n+=1,D.preprocess&&(f=D.preprocess(f)),Xt(f)>D.width&&(f=wn(f,D.width,{hard:!0}));let C=f.split(`
|
|
10
|
+
`);if(D.postprocess){let{postprocess:h}=D;C=C.map((P,$)=>h.call(D,P,$))}return D.paddingTop&&C.unshift(...ou(D.paddingTop)),D.paddingBottom&&C.push(...ou(D.paddingBottom)),C.length>r&&(r=C.length),Ke(Ie({},D),{lines:C})}),a=[];for(let D=0;D<r;D+=1){let l=o.map(f=>{var C;let h=(C=f.lines[D])!=null?C:"",P=Number.isFinite(f.width)?" ".repeat(f.width-we(h)):"",$=f.paddingLeftString;return f.align==="right"&&($+=P),$+=h,f.align==="left"&&($+=P),$+f.paddingRightString}).join("");a.push(l)}u.push(a.join(`
|
|
11
11
|
`))}return u.join(`
|
|
12
|
-
`)}
|
|
13
|
-
`)}
|
|
14
|
-
`}}
|
|
15
|
-
`}}
|
|
16
|
-
`):
|
|
17
|
-
`)}}}}
|
|
18
|
-
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}
|
|
19
|
-
`:"")+(u?this.indentText({text:this.render(u),spaces:
|
|
20
|
-
`}table({tableData:
|
|
21
|
-
`);if("type"in
|
|
22
|
-
`),s(),process.exit(1);t[D]=l}}a(mt,"b");function Di(t){return t===void 0||t!==!1}a(Di,"W");function Ku(t,e,u,s){const n={...e.flags},r=e.version;r&&(n.version={type:Boolean,description:"Show version"});const{help:i}=e,o=Di(i);o&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const D=bu(n,s,{ignore:e.ignoreArgv}),l=a(()=>{console.log(e.version)},"f");if(r&&D.flags.version===!0)return l(),process.exit(0);const f=new ii,h=o&&i?.render?i.render:F=>f.render(F),c=a(F=>{const m=ni({...e,...F?{help:F}:{},flags:n});console.log(h(m,f))},"u");if(o&&D.flags.help===!0)return c(),process.exit(0);if(e.parameters){let{parameters:F}=e,m=D._;const R=F.indexOf("--"),T=F.slice(R+1),H=Object.create(null);if(R>-1&&T.length>0){F=F.slice(0,R);const O=D._["--"];m=m.slice(0,-O.length||void 0),mt(H,gt(F),m,c),mt(H,gt(T),O,c)}else mt(H,gt(F),m,c);Object.assign(D._,H)}const C={...D,showVersion:l,showHelp:c};return typeof u=="function"&&u(C),{command:t,...C}}a(Ku,"x");function ai(t,e){const u=new Map;for(const s of e){const n=[s.options.name],{alias:r}=s.options;r&&(Array.isArray(r)?n.push(...r):n.push(r));for(const i of n){if(u.has(i))throw new Error(`Duplicate command name found: ${ue(i)}`);u.set(i,s)}}return u.get(t)}a(ai,"z");function Vu(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!Ft.test(t.name)))throw new Error(`Invalid script name: ${ue(t.name)}`);const s=u[0];if(t.commands&&Ft.test(s)){const n=ai(s,t.commands);if(n)return Ku(n.options.name,{...n.options,parent:t},n.callback,u.slice(1))}return Ku(void 0,t,e,u)}a(Vu,"Z");function li(t,e){if(!t)throw new Error("Command options are required");const{name:u}=t;if(t.name===void 0)throw new Error("Command name is required");if(!Ft.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}a(li,"G");var ci=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function zu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}a(zu,"getDefaultExportFromCjs");var fe={exports:{}},_t,Yu;function fi(){if(Yu)return _t;Yu=1,_t=s,s.sync=n;var t=oe;function e(r,i){var o=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!o||(o=o.split(";"),o.indexOf("")!==-1))return!0;for(var D=0;D<o.length;D++){var l=o[D].toLowerCase();if(l&&r.substr(-l.length).toLowerCase()===l)return!0}return!1}a(e,"checkPathExt");function u(r,i,o){return!r.isSymbolicLink()&&!r.isFile()?!1:e(i,o)}a(u,"checkStat");function s(r,i,o){t.stat(r,function(D,l){o(D,D?!1:u(l,r,i))})}a(s,"isexe");function n(r,i){return u(t.statSync(r),r,i)}return a(n,"sync"),_t}a(fi,"requireWindows");var At,qu;function hi(){if(qu)return At;qu=1,At=e,e.sync=u;var t=oe;function e(r,i,o){t.stat(r,function(D,l){o(D,D?!1:s(l,i))})}a(e,"isexe");function u(r,i){return s(t.statSync(r),i)}a(u,"sync");function s(r,i){return r.isFile()&&n(r,i)}a(s,"checkStat");function n(r,i){var o=r.mode,D=r.uid,l=r.gid,f=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),h=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),c=parseInt("100",8),C=parseInt("010",8),F=parseInt("001",8),m=c|C,R=o&F||o&C&&l===h||o&c&&D===f||o&m&&f===0;return R}return a(n,"checkMode"),At}a(hi,"requireMode");var Ke;process.platform==="win32"||ci.TESTING_WINDOWS?Ke=fi():Ke=hi();var di=yt;yt.sync=Ei;function yt(t,e,u){if(typeof e=="function"&&(u=e,e={}),!u){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(s,n){yt(t,e||{},function(r,i){r?n(r):s(i)})})}Ke(t,e||{},function(s,n){s&&(s.code==="EACCES"||e&&e.ignoreErrors)&&(s=null,n=!1),u(s,n)})}a(yt,"isexe$1");function Ei(t,e){try{return Ke.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}a(Ei,"sync");const he=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Xu=q,pi=he?";":":",Qu=di,Zu=a(t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),"getNotFoundError"),Ju=a((t,e)=>{const u=e.colon||pi,s=t.match(/\//)||he&&t.match(/\\/)?[""]:[...he?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=he?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",r=he?n.split(u):[""];return he&&t.indexOf(".")!==-1&&r[0]!==""&&r.unshift(""),{pathEnv:s,pathExt:r,pathExtExe:n}},"getPathInfo"),es=a((t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:s,pathExt:n,pathExtExe:r}=Ju(t,e),i=[],o=a(l=>new Promise((f,h)=>{if(l===s.length)return e.all&&i.length?f(i):h(Zu(t));const c=s[l],C=/^".*"$/.test(c)?c.slice(1,-1):c,F=Xu.join(C,t),m=!C&&/^\.[\\\/]/.test(t)?t.slice(0,2)+F:F;f(D(m,l,0))}),"step"),D=a((l,f,h)=>new Promise((c,C)=>{if(h===n.length)return c(o(f+1));const F=n[h];Qu(l+F,{pathExt:r},(m,R)=>{if(!m&&R)if(e.all)i.push(l+F);else return c(l+F);return c(D(l,f,h+1))})}),"subStep");return u?o(0).then(l=>u(null,l),u):o(0)},"which$1"),Ci=a((t,e)=>{e=e||{};const{pathEnv:u,pathExt:s,pathExtExe:n}=Ju(t,e),r=[];for(let i=0;i<u.length;i++){const o=u[i],D=/^".*"$/.test(o)?o.slice(1,-1):o,l=Xu.join(D,t),f=!D&&/^\.[\\\/]/.test(t)?t.slice(0,2)+l:l;for(let h=0;h<s.length;h++){const c=f+s[h];try{if(Qu.sync(c,{pathExt:n}))if(e.all)r.push(c);else return c}catch{}}}if(e.all&&r.length)return r;if(e.nothrow)return null;throw Zu(t)},"whichSync");var Fi=es;es.sync=Ci;var wt={exports:{}};const ts=a((t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"},"pathKey");wt.exports=ts,wt.exports.default=ts;var gi=wt.exports;const us=q,mi=Fi,_i=gi;function ss(t,e){const u=t.options.env||process.env,s=process.cwd(),n=t.options.cwd!=null,r=n&&process.chdir!==void 0&&!process.chdir.disabled;if(r)try{process.chdir(t.options.cwd)}catch{}let i;try{i=mi.sync(t.command,{path:u[_i({env:u})],pathExt:e?us.delimiter:void 0})}catch{}finally{r&&process.chdir(s)}return i&&(i=us.resolve(n?t.options.cwd:"",i)),i}a(ss,"resolveCommandAttempt");function Ai(t){return ss(t)||ss(t,!0)}a(Ai,"resolveCommand$1");var yi=Ai,Rt={};const bt=/([()\][%!^"`<>&|;, *?])/g;function wi(t){return t=t.replace(bt,"^$1"),t}a(wi,"escapeCommand");function Ri(t,e){return t=`${t}`,t=t.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),t=t.replace(/(?=(\\+?)?)\1$/,"$1$1"),t=`"${t}"`,t=t.replace(bt,"^$1"),e&&(t=t.replace(bt,"^$1")),t}a(Ri,"escapeArgument"),Rt.command=wi,Rt.argument=Ri;var bi=/^#!(.*)/;const vi=bi;var Si=a((t="")=>{const e=t.match(vi);if(!e)return null;const[u,s]=e[0].replace(/#! ?/,"").split(" "),n=u.split("/").pop();return n==="env"?s:s?`${n} ${s}`:n},"shebangCommand$1");const vt=oe,Bi=Si;function $i(t){const u=Buffer.alloc(150);let s;try{s=vt.openSync(t,"r"),vt.readSync(s,u,0,150,0),vt.closeSync(s)}catch{}return Bi(u.toString())}a($i,"readShebang$1");var Ti=$i;const xi=q,ns=yi,rs=Rt,Oi=Ti,Ni=process.platform==="win32",Pi=/\.(?:com|exe)$/i,Hi=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Li(t){t.file=ns(t);const e=t.file&&Oi(t.file);return e?(t.args.unshift(t.file),t.command=e,ns(t)):t.file}a(Li,"detectShebang");function Ii(t){if(!Ni)return t;const e=Li(t),u=!Pi.test(e);if(t.options.forceShell||u){const s=Hi.test(e);t.command=xi.normalize(t.command),t.command=rs.command(t.command),t.args=t.args.map(r=>rs.argument(r,s));const n=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${n}"`],t.command=process.env.comspec||"cmd.exe",t.options.windowsVerbatimArguments=!0}return t}a(Ii,"parseNonShell");function ki(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const s={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?s:Ii(s)}a(ki,"parse$5");var Mi=ki;const St=process.platform==="win32";function Bt(t,e){return Object.assign(new Error(`${e} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${t.command}`,path:t.command,spawnargs:t.args})}a(Bt,"notFoundError");function Wi(t,e){if(!St)return;const u=t.emit;t.emit=function(s,n){if(s==="exit"){const r=is(n,e);if(r)return u.call(t,"error",r)}return u.apply(t,arguments)}}a(Wi,"hookChildProcess");function is(t,e){return St&&t===1&&!e.file?Bt(e.original,"spawn"):null}a(is,"verifyENOENT");function Gi(t,e){return St&&t===1&&!e.file?Bt(e.original,"spawnSync"):null}a(Gi,"verifyENOENTSync");var ji={hookChildProcess:Wi,verifyENOENT:is,verifyENOENTSync:Gi,notFoundError:Bt};const os=Hn,$t=Mi,Tt=ji;function Ds(t,e,u){const s=$t(t,e,u),n=os.spawn(s.command,s.args,s.options);return Tt.hookChildProcess(n,s),n}a(Ds,"spawn");function Ui(t,e,u){const s=$t(t,e,u),n=os.spawnSync(s.command,s.args,s.options);return n.error=n.error||Tt.verifyENOENTSync(n.status,s),n}a(Ui,"spawnSync"),fe.exports=Ds,fe.exports.spawn=Ds,fe.exports.sync=Ui,fe.exports._parse=$t,fe.exports._enoent=Tt;var Ki=fe.exports,Vi=zu(Ki);const as=a((t,e)=>{const u={...process.env},s=["inherit","inherit","inherit"];process.send&&s.push("ipc"),e&&(e.noCache&&(u.TSX_DISABLE_CACHE="1"),e.tsconfigPath&&(u.TSX_TSCONFIG_PATH=e.tsconfigPath));const n=t.filter(r=>r!=="-i"&&r!=="--interactive").length===0;return Vi(process.execPath,["--require",Ie.resolve("./preflight.cjs"),...n?["--require",Ie.resolve("./patch-repl.cjs")]:[],yu(Ln)?"--import":"--loader",Nn(Ie.resolve("./loader.mjs")).toString(),...t],{stdio:s,env:u})},"run");var Ve={};const zi=q,se="\\\\/",ls=`[^${se}]`,ne="\\.",Yi="\\+",qi="\\?",ze="\\/",Xi="(?=.)",cs="[^/]",xt=`(?:${ze}|$)`,fs=`(?:^|${ze})`,Ot=`${ne}{1,2}${xt}`,Qi=`(?!${ne})`,Zi=`(?!${fs}${Ot})`,Ji=`(?!${ne}{0,1}${xt})`,eo=`(?!${Ot})`,to=`[^.${ze}]`,uo=`${cs}*?`,hs={DOT_LITERAL:ne,PLUS_LITERAL:Yi,QMARK_LITERAL:qi,SLASH_LITERAL:ze,ONE_CHAR:Xi,QMARK:cs,END_ANCHOR:xt,DOTS_SLASH:Ot,NO_DOT:Qi,NO_DOTS:Zi,NO_DOT_SLASH:Ji,NO_DOTS_SLASH:eo,QMARK_NO_DOT:to,STAR:uo,START_ANCHOR:fs},so={...hs,SLASH_LITERAL:`[${se}]`,QMARK:ls,STAR:`${ls}*?`,DOTS_SLASH:`${ne}{1,2}(?:[${se}]|$)`,NO_DOT:`(?!${ne})`,NO_DOTS:`(?!(?:^|[${se}])${ne}{1,2}(?:[${se}]|$))`,NO_DOT_SLASH:`(?!${ne}{0,1}(?:[${se}]|$))`,NO_DOTS_SLASH:`(?!${ne}{1,2}(?:[${se}]|$))`,QMARK_NO_DOT:`[^.${se}]`,START_ANCHOR:`(?:^|[${se}])`,END_ANCHOR:`(?:[${se}]|$)`},no={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};var Ye={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:no,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:zi.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?so:hs}};(function(t){const e=q,u=process.platform==="win32",{REGEX_BACKSLASH:s,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ye;t.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),t.hasRegexChars=o=>r.test(o),t.isRegexChar=o=>o.length===1&&t.hasRegexChars(o),t.escapeRegex=o=>o.replace(i,"\\$1"),t.toPosixSlashes=o=>o.replace(s,"/"),t.removeBackslashes=o=>o.replace(n,D=>D==="\\"?"":D),t.supportsLookbehinds=()=>{const o=process.version.slice(1).split(".").map(Number);return o.length===3&&o[0]>=9||o[0]===8&&o[1]>=10},t.isWindows=o=>o&&typeof o.windows=="boolean"?o.windows:u===!0||e.sep==="\\",t.escapeLast=(o,D,l)=>{const f=o.lastIndexOf(D,l);return f===-1?o:o[f-1]==="\\"?t.escapeLast(o,D,f-1):`${o.slice(0,f)}\\${o.slice(f)}`},t.removePrefix=(o,D={})=>{let l=o;return l.startsWith("./")&&(l=l.slice(2),D.prefix="./"),l},t.wrapOutput=(o,D={},l={})=>{const f=l.contains?"":"^",h=l.contains?"":"$";let c=`${f}(?:${o})${h}`;return D.negated===!0&&(c=`(?:^(?!${c}).*$)`),c}})(Ve);const ds=Ve,{CHAR_ASTERISK:Nt,CHAR_AT:ro,CHAR_BACKWARD_SLASH:ye,CHAR_COMMA:io,CHAR_DOT:Pt,CHAR_EXCLAMATION_MARK:Ht,CHAR_FORWARD_SLASH:Es,CHAR_LEFT_CURLY_BRACE:Lt,CHAR_LEFT_PARENTHESES:It,CHAR_LEFT_SQUARE_BRACKET:oo,CHAR_PLUS:Do,CHAR_QUESTION_MARK:ps,CHAR_RIGHT_CURLY_BRACE:ao,CHAR_RIGHT_PARENTHESES:Cs,CHAR_RIGHT_SQUARE_BRACKET:lo}=Ye,Fs=a(t=>t===Es||t===ye,"isPathSeparator"),gs=a(t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},"depth"),co=a((t,e)=>{const u=e||{},s=t.length-1,n=u.parts===!0||u.scanToEnd===!0,r=[],i=[],o=[];let D=t,l=-1,f=0,h=0,c=!1,C=!1,F=!1,m=!1,R=!1,T=!1,H=!1,O=!1,z=!1,I=!1,Z=0,M,y,g={value:"",depth:0,isGlob:!1};const w=a(()=>l>=s,"eos"),d=a(()=>D.charCodeAt(l+1),"peek"),b=a(()=>(M=y,D.charCodeAt(++l)),"advance");for(;l<s;){y=b();let U;if(y===ye){H=g.backslashes=!0,y=b(),y===Lt&&(T=!0);continue}if(T===!0||y===Lt){for(Z++;w()!==!0&&(y=b());){if(y===ye){H=g.backslashes=!0,b();continue}if(y===Lt){Z++;continue}if(T!==!0&&y===Pt&&(y=b())===Pt){if(c=g.isBrace=!0,F=g.isGlob=!0,I=!0,n===!0)continue;break}if(T!==!0&&y===io){if(c=g.isBrace=!0,F=g.isGlob=!0,I=!0,n===!0)continue;break}if(y===ao&&(Z--,Z===0)){T=!1,c=g.isBrace=!0,I=!0;break}}if(n===!0)continue;break}if(y===Es){if(r.push(l),i.push(g),g={value:"",depth:0,isGlob:!1},I===!0)continue;if(M===Pt&&l===f+1){f+=2;continue}h=l+1;continue}if(u.noext!==!0&&(y===Do||y===ro||y===Nt||y===ps||y===Ht)===!0&&d()===It){if(F=g.isGlob=!0,m=g.isExtglob=!0,I=!0,y===Ht&&l===f&&(z=!0),n===!0){for(;w()!==!0&&(y=b());){if(y===ye){H=g.backslashes=!0,y=b();continue}if(y===Cs){F=g.isGlob=!0,I=!0;break}}continue}break}if(y===Nt){if(M===Nt&&(R=g.isGlobstar=!0),F=g.isGlob=!0,I=!0,n===!0)continue;break}if(y===ps){if(F=g.isGlob=!0,I=!0,n===!0)continue;break}if(y===oo){for(;w()!==!0&&(U=b());){if(U===ye){H=g.backslashes=!0,b();continue}if(U===lo){C=g.isBracket=!0,F=g.isGlob=!0,I=!0;break}}if(n===!0)continue;break}if(u.nonegate!==!0&&y===Ht&&l===f){O=g.negated=!0,f++;continue}if(u.noparen!==!0&&y===It){if(F=g.isGlob=!0,n===!0){for(;w()!==!0&&(y=b());){if(y===It){H=g.backslashes=!0,y=b();continue}if(y===Cs){I=!0;break}}continue}break}if(F===!0){if(I=!0,n===!0)continue;break}}u.noext===!0&&(m=!1,F=!1);let v=D,W="",E="";f>0&&(W=D.slice(0,f),D=D.slice(f),h-=f),v&&F===!0&&h>0?(v=D.slice(0,h),E=D.slice(h)):F===!0?(v="",E=D):v=D,v&&v!==""&&v!=="/"&&v!==D&&Fs(v.charCodeAt(v.length-1))&&(v=v.slice(0,-1)),u.unescape===!0&&(E&&(E=ds.removeBackslashes(E)),v&&H===!0&&(v=ds.removeBackslashes(v)));const p={prefix:W,input:t,start:f,base:v,glob:E,isBrace:c,isBracket:C,isGlob:F,isExtglob:m,isGlobstar:R,negated:O,negatedExtglob:z};if(u.tokens===!0&&(p.maxDepth=0,Fs(y)||i.push(g),p.tokens=i),u.parts===!0||u.tokens===!0){let U;for(let $=0;$<r.length;$++){const ee=U?U+1:f,te=r[$],Y=t.slice(ee,te);u.tokens&&($===0&&f!==0?(i[$].isPrefix=!0,i[$].value=W):i[$].value=Y,gs(i[$]),p.maxDepth+=i[$].depth),($!==0||Y!=="")&&o.push(Y),U=te}if(U&&U+1<t.length){const $=t.slice(U+1);o.push($),u.tokens&&(i[i.length-1].value=$,gs(i[i.length-1]),p.maxDepth+=i[i.length-1].depth)}p.slashes=r,p.parts=o}return p},"scan$1");var fo=co;const qe=Ye,X=Ve,{MAX_LENGTH:Xe,POSIX_REGEX_SOURCE:ho,REGEX_NON_SPECIAL_CHARS:Eo,REGEX_SPECIAL_CHARS_BACKREF:po,REPLACEMENTS:ms}=qe,Co=a((t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();const u=`[${t.join("-")}]`;try{new RegExp(u)}catch{return t.map(n=>X.escapeRegex(n)).join("..")}return u},"expandRange"),de=a((t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,"syntaxError"),kt=a((t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=ms[t]||t;const u={...e},s=typeof u.maxLength=="number"?Math.min(Xe,u.maxLength):Xe;let n=t.length;if(n>s)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${s}`);const r={type:"bos",value:"",output:u.prepend||""},i=[r],o=u.capture?"":"?:",D=X.isWindows(e),l=qe.globChars(D),f=qe.extglobChars(l),{DOT_LITERAL:h,PLUS_LITERAL:c,SLASH_LITERAL:C,ONE_CHAR:F,DOTS_SLASH:m,NO_DOT:R,NO_DOT_SLASH:T,NO_DOTS_SLASH:H,QMARK:O,QMARK_NO_DOT:z,STAR:I,START_ANCHOR:Z}=l,M=a(A=>`(${o}(?:(?!${Z}${A.dot?m:h}).)*?)`,"globstar"),y=u.dot?"":R,g=u.dot?O:z;let w=u.bash===!0?M(u):I;u.capture&&(w=`(${w})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const d={input:t,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:i};t=X.removePrefix(t,d),n=t.length;const b=[],v=[],W=[];let E=r,p;const U=a(()=>d.index===n-1,"eos"),$=d.peek=(A=1)=>t[d.index+A],ee=d.advance=()=>t[++d.index]||"",te=a(()=>t.slice(d.index+1),"remaining"),Y=a((A="",N=0)=>{d.consumed+=A,d.index+=N},"consume"),Ne=a(A=>{d.output+=A.output!=null?A.output:A.value,Y(A.value)},"append"),vn=a(()=>{let A=1;for(;$()==="!"&&($(2)!=="("||$(3)==="?");)ee(),d.start++,A++;return A%2===0?!1:(d.negated=!0,d.start++,!0)},"negate"),Pe=a(A=>{d[A]++,W.push(A)},"increment"),ie=a(A=>{d[A]--,W.pop()},"decrement"),B=a(A=>{if(E.type==="globstar"){const N=d.braces>0&&(A.type==="comma"||A.type==="brace"),_=A.extglob===!0||b.length&&(A.type==="pipe"||A.type==="paren");A.type!=="slash"&&A.type!=="paren"&&!N&&!_&&(d.output=d.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=w,d.output+=E.output)}if(b.length&&A.type!=="paren"&&(b[b.length-1].inner+=A.value),(A.value||A.output)&&Ne(A),E&&E.type==="text"&&A.type==="text"){E.value+=A.value,E.output=(E.output||"")+A.value;return}A.prev=E,i.push(A),E=A},"push"),He=a((A,N)=>{const _={...f[N],conditions:1,inner:""};_.prev=E,_.parens=d.parens,_.output=d.output;const S=(u.capture?"(":"")+_.open;Pe("parens"),B({type:A,value:N,output:d.output?"":F}),B({type:"paren",extglob:!0,value:ee(),output:S}),b.push(_)},"extglobOpen"),Sn=a(A=>{let N=A.close+(u.capture?")":""),_;if(A.type==="negate"){let S=w;if(A.inner&&A.inner.length>1&&A.inner.includes("/")&&(S=M(u)),(S!==w||U()||/^\)+$/.test(te()))&&(N=A.close=`)$))${S}`),A.inner.includes("*")&&(_=te())&&/^\.[^\\/.]+$/.test(_)){const P=kt(_,{...e,fastpaths:!1}).output;N=A.close=`)${P})${S})`}A.prev.type==="bos"&&(d.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:p,output:N}),ie("parens")},"extglobClose");if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let A=!1,N=t.replace(po,(_,S,P,K,k,ct)=>K==="\\"?(A=!0,_):K==="?"?S?S+K+(k?O.repeat(k.length):""):ct===0?g+(k?O.repeat(k.length):""):O.repeat(P.length):K==="."?h.repeat(P.length):K==="*"?S?S+K+(k?w:""):w:S?_:`\\${_}`);return A===!0&&(u.unescape===!0?N=N.replace(/\\/g,""):N=N.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),N===t&&u.contains===!0?(d.output=t,d):(d.output=X.wrapOutput(N,d,e),d)}for(;!U();){if(p=ee(),p==="\0")continue;if(p==="\\"){const _=$();if(_==="/"&&u.bash!==!0||_==="."||_===";")continue;if(!_){p+="\\",B({type:"text",value:p});continue}const S=/^\\+/.exec(te());let P=0;if(S&&S[0].length>2&&(P=S[0].length,d.index+=P,P%2!==0&&(p+="\\")),u.unescape===!0?p=ee():p+=ee(),d.brackets===0){B({type:"text",value:p});continue}}if(d.brackets>0&&(p!=="]"||E.value==="["||E.value==="[^")){if(u.posix!==!1&&p===":"){const _=E.value.slice(1);if(_.includes("[")&&(E.posix=!0,_.includes(":"))){const S=E.value.lastIndexOf("["),P=E.value.slice(0,S),K=E.value.slice(S+2),k=ho[K];if(k){E.value=P+k,d.backtrack=!0,ee(),!r.output&&i.indexOf(E)===1&&(r.output=F);continue}}}(p==="["&&$()!==":"||p==="-"&&$()==="]")&&(p=`\\${p}`),p==="]"&&(E.value==="["||E.value==="[^")&&(p=`\\${p}`),u.posix===!0&&p==="!"&&E.value==="["&&(p="^"),E.value+=p,Ne({value:p});continue}if(d.quotes===1&&p!=='"'){p=X.escapeRegex(p),E.value+=p,Ne({value:p});continue}if(p==='"'){d.quotes=d.quotes===1?0:1,u.keepQuotes===!0&&B({type:"text",value:p});continue}if(p==="("){Pe("parens"),B({type:"paren",value:p});continue}if(p===")"){if(d.parens===0&&u.strictBrackets===!0)throw new SyntaxError(de("opening","("));const _=b[b.length-1];if(_&&d.parens===_.parens+1){Sn(b.pop());continue}B({type:"paren",value:p,output:d.parens?")":"\\)"}),ie("parens");continue}if(p==="["){if(u.nobracket===!0||!te().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(de("closing","]"));p=`\\${p}`}else Pe("brackets");B({type:"bracket",value:p});continue}if(p==="]"){if(u.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){B({type:"text",value:p,output:`\\${p}`});continue}if(d.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(de("opening","["));B({type:"text",value:p,output:`\\${p}`});continue}ie("brackets");const _=E.value.slice(1);if(E.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(p=`/${p}`),E.value+=p,Ne({value:p}),u.literalBrackets===!1||X.hasRegexChars(_))continue;const S=X.escapeRegex(E.value);if(d.output=d.output.slice(0,-E.value.length),u.literalBrackets===!0){d.output+=S,E.value=S;continue}E.value=`(${o}${S}|${E.value})`,d.output+=E.value;continue}if(p==="{"&&u.nobrace!==!0){Pe("braces");const _={type:"brace",value:p,output:"(",outputIndex:d.output.length,tokensIndex:d.tokens.length};v.push(_),B(_);continue}if(p==="}"){const _=v[v.length-1];if(u.nobrace===!0||!_){B({type:"text",value:p,output:p});continue}let S=")";if(_.dots===!0){const P=i.slice(),K=[];for(let k=P.length-1;k>=0&&(i.pop(),P[k].type!=="brace");k--)P[k].type!=="dots"&&K.unshift(P[k].value);S=Co(K,u),d.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){const P=d.output.slice(0,_.outputIndex),K=d.tokens.slice(_.tokensIndex);_.value=_.output="\\{",p=S="\\}",d.output=P;for(const k of K)d.output+=k.output||k.value}B({type:"brace",value:p,output:S}),ie("braces"),v.pop();continue}if(p==="|"){b.length>0&&b[b.length-1].conditions++,B({type:"text",value:p});continue}if(p===","){let _=p;const S=v[v.length-1];S&&W[W.length-1]==="braces"&&(S.comma=!0,_="|"),B({type:"comma",value:p,output:_});continue}if(p==="/"){if(E.type==="dot"&&d.index===d.start+1){d.start=d.index+1,d.consumed="",d.output="",i.pop(),E=r;continue}B({type:"slash",value:p,output:C});continue}if(p==="."){if(d.braces>0&&E.type==="dot"){E.value==="."&&(E.output=h);const _=v[v.length-1];E.type="dots",E.output+=p,E.value+=p,_.dots=!0;continue}if(d.braces+d.parens===0&&E.type!=="bos"&&E.type!=="slash"){B({type:"text",value:p,output:h});continue}B({type:"dot",value:p,output:h});continue}if(p==="?"){if(!(E&&E.value==="(")&&u.noextglob!==!0&&$()==="("&&$(2)!=="?"){He("qmark",p);continue}if(E&&E.type==="paren"){const S=$();let P=p;if(S==="<"&&!X.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(S)||S==="<"&&!/<([!=]|\w+>)/.test(te()))&&(P=`\\${p}`),B({type:"text",value:p,output:P});continue}if(u.dot!==!0&&(E.type==="slash"||E.type==="bos")){B({type:"qmark",value:p,output:z});continue}B({type:"qmark",value:p,output:O});continue}if(p==="!"){if(u.noextglob!==!0&&$()==="("&&($(2)!=="?"||!/[!=<:]/.test($(3)))){He("negate",p);continue}if(u.nonegate!==!0&&d.index===0){vn();continue}}if(p==="+"){if(u.noextglob!==!0&&$()==="("&&$(2)!=="?"){He("plus",p);continue}if(E&&E.value==="("||u.regex===!1){B({type:"plus",value:p,output:c});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||d.parens>0){B({type:"plus",value:p});continue}B({type:"plus",value:c});continue}if(p==="@"){if(u.noextglob!==!0&&$()==="("&&$(2)!=="?"){B({type:"at",extglob:!0,value:p,output:""});continue}B({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);const _=Eo.exec(te());_&&(p+=_[0],d.index+=_[0].length),B({type:"text",value:p});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=p,E.output=w,d.backtrack=!0,d.globstar=!0,Y(p);continue}let A=te();if(u.noextglob!==!0&&/^\([^?]/.test(A)){He("star",p);continue}if(E.type==="star"){if(u.noglobstar===!0){Y(p);continue}const _=E.prev,S=_.prev,P=_.type==="slash"||_.type==="bos",K=S&&(S.type==="star"||S.type==="globstar");if(u.bash===!0&&(!P||A[0]&&A[0]!=="/")){B({type:"star",value:p,output:""});continue}const k=d.braces>0&&(_.type==="comma"||_.type==="brace"),ct=b.length&&(_.type==="pipe"||_.type==="paren");if(!P&&_.type!=="paren"&&!k&&!ct){B({type:"star",value:p,output:""});continue}for(;A.slice(0,3)==="/**";){const Le=t[d.index+4];if(Le&&Le!=="/")break;A=A.slice(3),Y("/**",3)}if(_.type==="bos"&&U()){E.type="globstar",E.value+=p,E.output=M(u),d.output=E.output,d.globstar=!0,Y(p);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!K&&U()){d.output=d.output.slice(0,-(_.output+E.output).length),_.output=`(?:${_.output}`,E.type="globstar",E.output=M(u)+(u.strictSlashes?")":"|$)"),E.value+=p,d.globstar=!0,d.output+=_.output+E.output,Y(p);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&A[0]==="/"){const Le=A[1]!==void 0?"|$":"";d.output=d.output.slice(0,-(_.output+E.output).length),_.output=`(?:${_.output}`,E.type="globstar",E.output=`${M(u)}${C}|${C}${Le})`,E.value+=p,d.output+=_.output+E.output,d.globstar=!0,Y(p+ee()),B({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&A[0]==="/"){E.type="globstar",E.value+=p,E.output=`(?:^|${C}|${M(u)}${C})`,d.output=E.output,d.globstar=!0,Y(p+ee()),B({type:"slash",value:"/",output:""});continue}d.output=d.output.slice(0,-E.output.length),E.type="globstar",E.output=M(u),E.value+=p,d.output+=E.output,d.globstar=!0,Y(p);continue}const N={type:"star",value:p,output:w};if(u.bash===!0){N.output=".*?",(E.type==="bos"||E.type==="slash")&&(N.output=y+N.output),B(N);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&u.regex===!0){N.output=p,B(N);continue}(d.index===d.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(d.output+=T,E.output+=T):u.dot===!0?(d.output+=H,E.output+=H):(d.output+=y,E.output+=y),$()!=="*"&&(d.output+=F,E.output+=F)),B(N)}for(;d.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing","]"));d.output=X.escapeLast(d.output,"["),ie("brackets")}for(;d.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing",")"));d.output=X.escapeLast(d.output,"("),ie("parens")}for(;d.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(de("closing","}"));d.output=X.escapeLast(d.output,"{"),ie("braces")}if(u.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&B({type:"maybe_slash",value:"",output:`${C}?`}),d.backtrack===!0){d.output="";for(const A of d.tokens)d.output+=A.output!=null?A.output:A.value,A.suffix&&(d.output+=A.suffix)}return d},"parse$3");kt.fastpaths=(t,e)=>{const u={...e},s=typeof u.maxLength=="number"?Math.min(Xe,u.maxLength):Xe,n=t.length;if(n>s)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${s}`);t=ms[t]||t;const r=X.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:D,DOTS_SLASH:l,NO_DOT:f,NO_DOTS:h,NO_DOTS_SLASH:c,STAR:C,START_ANCHOR:F}=qe.globChars(r),m=u.dot?h:f,R=u.dot?c:f,T=u.capture?"":"?:",H={negated:!1,prefix:""};let O=u.bash===!0?".*?":C;u.capture&&(O=`(${O})`);const z=a(y=>y.noglobstar===!0?O:`(${T}(?:(?!${F}${y.dot?l:i}).)*?)`,"globstar"),I=a(y=>{switch(y){case"*":return`${m}${D}${O}`;case".*":return`${i}${D}${O}`;case"*.*":return`${m}${O}${i}${D}${O}`;case"*/*":return`${m}${O}${o}${D}${R}${O}`;case"**":return m+z(u);case"**/*":return`(?:${m}${z(u)}${o})?${R}${D}${O}`;case"**/*.*":return`(?:${m}${z(u)}${o})?${R}${O}${i}${D}${O}`;case"**/.*":return`(?:${m}${z(u)}${o})?${i}${D}${O}`;default:{const g=/^(.*?)\.(\w+)$/.exec(y);if(!g)return;const w=I(g[1]);return w?w+i+g[2]:void 0}}},"create"),Z=X.removePrefix(t,H);let M=I(Z);return M&&u.strictSlashes!==!0&&(M+=`${o}?`),M};var Fo=kt;const go=q,mo=fo,Mt=Fo,Wt=Ve,_o=Ye,Ao=a(t=>t&&typeof t=="object"&&!Array.isArray(t),"isObject$1"),L=a((t,e,u=!1)=>{if(Array.isArray(t)){const f=t.map(c=>L(c,e,u));return a(c=>{for(const C of f){const F=C(c);if(F)return F}return!1},"arrayMatcher")}const s=Ao(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!s)throw new TypeError("Expected pattern to be a non-empty string");const n=e||{},r=Wt.isWindows(e),i=s?L.compileRe(t,e):L.makeRe(t,e,!1,!0),o=i.state;delete i.state;let D=a(()=>!1,"isIgnored");if(n.ignore){const f={...e,ignore:null,onMatch:null,onResult:null};D=L(n.ignore,f,u)}const l=a((f,h=!1)=>{const{isMatch:c,match:C,output:F}=L.test(f,i,e,{glob:t,posix:r}),m={glob:t,state:o,regex:i,posix:r,input:f,output:F,match:C,isMatch:c};return typeof n.onResult=="function"&&n.onResult(m),c===!1?(m.isMatch=!1,h?m:!1):D(f)?(typeof n.onIgnore=="function"&&n.onIgnore(m),m.isMatch=!1,h?m:!1):(typeof n.onMatch=="function"&&n.onMatch(m),h?m:!0)},"matcher");return u&&(l.state=o),l},"picomatch$3");L.test=(t,e,u,{glob:s,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const r=u||{},i=r.format||(n?Wt.toPosixSlashes:null);let o=t===s,D=o&&i?i(t):t;return o===!1&&(D=i?i(t):t,o=D===s),(o===!1||r.capture===!0)&&(r.matchBase===!0||r.basename===!0?o=L.matchBase(t,e,u,n):o=e.exec(D)),{isMatch:!!o,match:o,output:D}},L.matchBase=(t,e,u,s=Wt.isWindows(u))=>(e instanceof RegExp?e:L.makeRe(e,u)).test(go.basename(t)),L.isMatch=(t,e,u)=>L(e,u)(t),L.parse=(t,e)=>Array.isArray(t)?t.map(u=>L.parse(u,e)):Mt(t,{...e,fastpaths:!1}),L.scan=(t,e)=>mo(t,e),L.compileRe=(t,e,u=!1,s=!1)=>{if(u===!0)return t.output;const n=e||{},r=n.contains?"":"^",i=n.contains?"":"$";let o=`${r}(?:${t.output})${i}`;t&&t.negated===!0&&(o=`^(?!${o}).*$`);const D=L.toRegex(o,e);return s===!0&&(D.state=t),D},L.makeRe=(t,e={},u=!1,s=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let n={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(n.output=Mt.fastpaths(t,e)),n.output||(n=Mt(t,e)),L.compileRe(n,e,u,s)},L.toRegex=(t,e)=>{try{const u=e||{};return new RegExp(t,u.flags||(u.nocase?"i":""))}catch(u){if(e&&e.debug===!0)throw u;return/$^/}},L.constants=_o;var yo=L,_s=yo;const we=oe,{Readable:wo}=Mn,Re=q,{promisify:Qe}=ge,Gt=_s,Ro=Qe(we.readdir),bo=Qe(we.stat),As=Qe(we.lstat),vo=Qe(we.realpath),So="!",ys="READDIRP_RECURSIVE_ERROR",Bo=new Set(["ENOENT","EPERM","EACCES","ELOOP",ys]),jt="files",ws="directories",Ze="files_directories",Je="all",Rs=[jt,ws,Ze,Je],$o=a(t=>Bo.has(t.code),"isNormalFlowError"),[bs,To]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),xo=process.platform==="win32"&&(bs>10||bs===10&&To>=5),vs=a(t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=Gt(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const s of t){const n=s.trim();n.charAt(0)===So?u.push(Gt(n.slice(1))):e.push(Gt(n))}return u.length>0?e.length>0?s=>e.some(n=>n(s.basename))&&!u.some(n=>n(s.basename)):s=>!u.some(n=>n(s.basename)):s=>e.some(n=>n(s.basename))}}},"normalizeFilter");class lt extends wo{static{a(this,"ReaddirpStream")}static get defaultOptions(){return{root:".",fileFilter:a(e=>!0,"fileFilter"),directoryFilter:a(e=>!0,"directoryFilter"),type:jt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u={...lt.defaultOptions,...e},{root:s,type:n}=u;this._fileFilter=vs(u.fileFilter),this._directoryFilter=vs(u.directoryFilter);const r=u.lstat?As:bo;xo?this._stat=i=>r(i,{bigint:!0}):this._stat=r,this._maxDepth=u.depth,this._wantsDir=[ws,Ze,Je].includes(n),this._wantsFile=[jt,Ze,Je].includes(n),this._wantsEverything=n===Je,this._root=Re.resolve(s),this._isDirent="Dirent"in we&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(s,1)],this.reading=!1,this.parent=void 0}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){const{path:u,depth:s,files:n=[]}=this.parent||{};if(n.length>0){const r=n.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(r)){if(this.destroyed)return;const o=await this._getEntryType(i);o==="directory"&&this._directoryFilter(i)?(s<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,s+1)),this._wantsDir&&(this.push(i),e--)):(o==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const r=this.parents.pop();if(!r){this.push(null);break}if(this.parent=await r,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let s;try{s=await Ro(e,this._rdOptions)}catch(n){this._onError(n)}return{files:s,depth:u,path:e}}async _formatEntry(e,u){let s;try{const n=this._isDirent?e.name:e,r=Re.resolve(Re.join(u,n));s={path:Re.relative(this._root,r),fullPath:r,basename:n},s[this._statsProp]=this._isDirent?e:await this._stat(r)}catch(n){this._onError(n)}return s}_onError(e){$o(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e)}async _getEntryType(e){const u=e&&e[this._statsProp];if(u){if(u.isFile())return"file";if(u.isDirectory())return"directory";if(u&&u.isSymbolicLink()){const s=e.fullPath;try{const n=await vo(s),r=await As(n);if(r.isFile())return"file";if(r.isDirectory()){const i=n.length;if(s.startsWith(n)&&s.substr(i,1)===Re.sep){const o=new Error(`Circular symlink detected: "${s}" points to "${n}"`);return o.code=ys,this._onError(o)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Ee=a((t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Ze),u&&(e.type=u),t){if(typeof t!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(u&&!Rs.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${Rs.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new lt(e)},"readdirp$1"),Oo=a((t,e={})=>new Promise((u,s)=>{const n=[];Ee(t,e).on("data",r=>n.push(r)).on("end",()=>u(n)).on("error",r=>s(r))}),"readdirpPromise");Ee.promise=Oo,Ee.ReaddirpStream=lt,Ee.default=Ee;var No=Ee,Ut={exports:{}};/*!
|
|
12
|
+
`)}i(Rn,"P");function vn(e,t){if(!e||e.length===0)return"";let u=cn(e),n=u.length;if(n===0)return"";let{stdoutColumns:s,columns:r}=on(t);if(r.length>n)throw new Error(`${r.length} columns defined, but only ${n} columns found`);let o=pn(s,r,u);return e.map(a=>Rn(o,a)).join(`
|
|
13
|
+
`)}i(vn,"mD"),Ce();var bn=["<",">","=",">=","<="];function Bn(e){if(!bn.includes(e))throw new TypeError(`Invalid breakpoint operator: ${e}`)}i(Bn,"xD");function Sn(e){let t=Object.keys(e).map(u=>{let[n,s]=u.split(" ");Bn(n);let r=Number.parseInt(s,10);if(Number.isNaN(r))throw new TypeError(`Invalid breakpoint value: ${s}`);let o=e[u];return{operator:n,breakpoint:r,value:o}}).sort((u,n)=>n.breakpoint-u.breakpoint);return u=>{var n;return(n=t.find(({operator:s,breakpoint:r})=>s==="="&&u===r||s===">"&&u>r||s==="<"&&u<r||s===">="&&u>=r||s==="<="&&u<=r))==null?void 0:n.value}}i(Sn,"wD");const xn=i(e=>e.replace(/[\W_]([a-z\d])?/gi,(t,u)=>u?u.toUpperCase():""),"S"),Tn=i(e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),"q"),$n={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:i(e=>e.trim(),"preprocess")},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function On(e){let t=!1;return{type:"table",data:{tableData:Object.keys(e).sort((u,n)=>u.localeCompare(n)).map(u=>{const n=e[u],s="alias"in n;return s&&(t=!0),{name:u,flag:n,flagFormatted:`--${Tn(u)}`,aliasesEnabled:t,aliasFormatted:s?`-${n.alias}`:void 0}}).map(u=>(u.aliasesEnabled=t,[{type:"flagName",data:u},{type:"flagDescription",data:u}])),tableBreakpoints:$n}}}i(On,"D");const au=i(e=>!e||(e.version??(e.help?e.help.version:void 0)),"A"),Du=i(e=>{const t="parent"in e&&e.parent?.name;return(t?`${t} `:"")+e.name},"C");function Pn(e){const t=[];e.name&&t.push(Du(e));const u=au(e)??("parent"in e&&au(e.parent));if(u&&t.push(`v${u}`),t.length!==0)return{id:"name",type:"text",data:`${t.join(" ")}
|
|
14
|
+
`}}i(Pn,"R");function Nn(e){const{help:t}=e;if(!(!t||!t.description))return{id:"description",type:"text",data:`${t.description}
|
|
15
|
+
`}}i(Nn,"L");function In(e){const t=e.help||{};if("usage"in t)return t.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(t.usage)?t.usage.join(`
|
|
16
|
+
`):t.usage}}:void 0;if(e.name){const u=[],n=[Du(e)];if(e.flags&&Object.keys(e.flags).length>0&&n.push("[flags...]"),e.parameters&&e.parameters.length>0){const{parameters:s}=e,r=s.indexOf("--"),o=r>-1&&s.slice(r+1).some(a=>a.startsWith("<"));n.push(s.map(a=>a!=="--"?a:o?"--":"[--]").join(" "))}if(n.length>1&&u.push(n.join(" ")),"commands"in e&&e.commands?.length&&u.push(`${e.name} <command>`),u.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:u.join(`
|
|
17
|
+
`)}}}}i(In,"T");function Hn(e){return!("commands"in e)||!e.commands?.length?void 0:{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:e.commands.map(t=>[t.options.name,t.options.help?t.options.help.description:""]),tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}i(Hn,"_");function Ln(e){if(!(!e.flags||Object.keys(e.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:On(e.flags),indentBody:0}}}i(Ln,"k");function kn(e){const{help:t}=e;if(!t||!t.examples||t.examples.length===0)return;let{examples:u}=t;if(Array.isArray(u)&&(u=u.join(`
|
|
18
|
+
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}i(kn,"F");function Mn(e){if(!("alias"in e)||!e.alias)return;const{alias:t}=e;return{id:"aliases",type:"section",data:{title:"Aliases:",body:Array.isArray(t)?t.join(", "):t}}}i(Mn,"H");const Wn=i(e=>[Pn,Nn,In,Hn,Ln,kn,Mn].map(t=>t(e)).filter(Boolean),"U"),Gn=cr.WriteStream.prototype.hasColors();class jn{static{i(this,"M")}text(t){return t}bold(t){return Gn?`\x1B[1m${t}\x1B[22m`:t.toLocaleUpperCase()}indentText({text:t,spaces:u}){return t.replace(/^/gm," ".repeat(u))}heading(t){return this.bold(t)}section({title:t,body:u,indentBody:n=2}){return`${(t?`${this.heading(t)}
|
|
19
|
+
`:"")+(u?this.indentText({text:this.render(u),spaces:n}):"")}
|
|
20
|
+
`}table({tableData:t,tableOptions:u,tableBreakpoints:n}){return vn(t.map(s=>s.map(r=>this.render(r))),n?Sn(n):u)}flagParameter(t){return t===Boolean?"":t===String?"<string>":t===Number?"<number>":Array.isArray(t)?this.flagParameter(t[0]):"<value>"}flagOperator(t){return" "}flagName(t){const{flag:u,flagFormatted:n,aliasesEnabled:s,aliasFormatted:r}=t;let o="";if(r?o+=`${r}, `:s&&(o+=" "),o+=n,"placeholder"in u&&typeof u.placeholder=="string")o+=`${this.flagOperator(t)}${u.placeholder}`;else{const a=this.flagParameter("type"in u?u.type:u);a&&(o+=`${this.flagOperator(t)}${a}`)}return o}flagDefault(t){return JSON.stringify(t)}flagDescription({flag:t}){let u="description"in t?t.description??"":"";if("default"in t){let{default:n}=t;typeof n=="function"&&(n=n()),n&&(u+=` (default: ${this.flagDefault(n)})`)}return u}render(t){if(typeof t=="string")return t;if(Array.isArray(t))return t.map(u=>this.render(u)).join(`
|
|
21
|
+
`);if("type"in t&&this[t.type]){const u=this[t.type];if(typeof u=="function")return u.call(this,t.data)}throw new Error(`Invalid node type: ${JSON.stringify(t)}`)}}const Qe=/^[\w.-]+$/,{stringify:Ae}=JSON,qn=/[|\\{}()[\]^$+*?.]/;function Ze(e){const t=[];let u,n;for(const s of e){if(n)throw new Error(`Invalid parameter: Spread parameter ${Ae(n)} must be last`);const r=s[0],o=s[s.length-1];let a;if(r==="<"&&o===">"&&(a=!0,u))throw new Error(`Invalid parameter: Required parameter ${Ae(s)} cannot come after optional parameter ${Ae(u)}`);if(r==="["&&o==="]"&&(a=!1,u=s),a===void 0)throw new Error(`Invalid parameter: ${Ae(s)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let D=s.slice(1,-1);const l=D.slice(-3)==="...";l&&(n=s,D=D.slice(0,-3));const f=D.match(qn);if(f)throw new Error(`Invalid parameter: ${Ae(s)}. Invalid character found ${Ae(f[0])}`);t.push({name:D,required:a,spread:l})}return t}i(Ze,"w");function Je(e,t,u,n){for(let s=0;s<t.length;s+=1){const{name:r,required:o,spread:a}=t[s],D=xn(r);if(D in e)throw new Error(`Invalid parameter: ${Ae(r)} is used more than once.`);const l=a?u.slice(s):u[s];if(a&&(s=t.length),o&&(!l||a&&l.length===0))return console.error(`Error: Missing required parameter ${Ae(r)}
|
|
22
|
+
`),n(),process.exit(1);e[D]=l}}i(Je,"b");function Un(e){return e===void 0||e!==!1}i(Un,"W");function lu(e,t,u,n){const s={...t.flags},r=t.version;r&&(s.version={type:Boolean,description:"Show version"});const{help:o}=t,a=Un(o);a&&!("help"in s)&&(s.help={type:Boolean,alias:"h",description:"Show help"});const D=Ut(s,n,{ignore:t.ignoreArgv}),l=i(()=>{console.log(t.version)},"f");if(r&&D.flags.version===!0)return l(),process.exit(0);const f=new jn,C=a&&o?.render?o.render:$=>f.render($),h=i($=>{const U=Wn({...t,...$?{help:$}:{},flags:s});console.log(C(U,f))},"u");if(a&&D.flags.help===!0)return h(),process.exit(0);if(t.parameters){let{parameters:$}=t,U=D._;const _=$.indexOf("--"),A=$.slice(_+1),W=Object.create(null);if(_>-1&&A.length>0){$=$.slice(0,_);const p=D._["--"];U=U.slice(0,-p.length||void 0),Je(W,Ze($),U,h),Je(W,Ze(A),p,h)}else Je(W,Ze($),U,h);Object.assign(D._,W)}const P={...D,showVersion:l,showHelp:h};return typeof u=="function"&&u(P),{command:e,...P}}i(lu,"x");function Kn(e,t){const u=new Map;for(const n of t){const s=[n.options.name],{alias:r}=n.options;r&&(Array.isArray(r)?s.push(...r):s.push(r));for(const o of s){if(u.has(o))throw new Error(`Duplicate command name found: ${Ae(o)}`);u.set(o,n)}}return u.get(e)}i(Kn,"z");function cu(e,t,u=process.argv.slice(2)){if(!e)throw new Error("Options is required");if("name"in e&&(!e.name||!Qe.test(e.name)))throw new Error(`Invalid script name: ${Ae(e.name)}`);const n=u[0];if(e.commands&&Qe.test(n)){const s=Kn(n,e.commands);if(s)return lu(s.options.name,{...s.options,parent:e},s.callback,u.slice(1))}return lu(void 0,e,t,u)}i(cu,"Z");function zn(e,t){if(!e)throw new Error("Command options are required");const{name:u}=e;if(e.name===void 0)throw new Error("Command name is required");if(!Qe.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:e,callback:t}}i(zn,"G");var Re={exports:{}},et,fu;function Vn(){if(fu)return et;fu=1,et=n,n.sync=s;var e=ye;function t(r,o){var a=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!a||(a=a.split(";"),a.indexOf("")!==-1))return!0;for(var D=0;D<a.length;D++){var l=a[D].toLowerCase();if(l&&r.substr(-l.length).toLowerCase()===l)return!0}return!1}i(t,"checkPathExt");function u(r,o,a){return!r.isSymbolicLink()&&!r.isFile()?!1:t(o,a)}i(u,"checkStat");function n(r,o,a){e.stat(r,function(D,l){a(D,D?!1:u(l,r,o))})}i(n,"isexe");function s(r,o){return u(e.statSync(r),r,o)}return i(s,"sync"),et}i(Vn,"requireWindows");var tt,hu;function Yn(){if(hu)return tt;hu=1,tt=t,t.sync=u;var e=ye;function t(r,o,a){e.stat(r,function(D,l){a(D,D?!1:n(l,o))})}i(t,"isexe");function u(r,o){return n(e.statSync(r),o)}i(u,"sync");function n(r,o){return r.isFile()&&s(r,o)}i(n,"checkStat");function s(r,o){var a=r.mode,D=r.uid,l=r.gid,f=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),C=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),h=parseInt("100",8),P=parseInt("010",8),$=parseInt("001",8),U=h|P,_=a&$||a&P&&l===C||a&h&&D===f||a&U&&f===0;return _}return i(s,"checkMode"),tt}i(Yn,"requireMode");var ut,du;function Xn(){if(du)return ut;du=1;var e;process.platform==="win32"||Br.TESTING_WINDOWS?e=Vn():e=Yn(),ut=t,t.sync=u;function t(n,s,r){if(typeof s=="function"&&(r=s,s={}),!r){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(o,a){t(n,s||{},function(D,l){D?a(D):o(l)})})}e(n,s||{},function(o,a){o&&(o.code==="EACCES"||s&&s.ignoreErrors)&&(o=null,a=!1),r(o,a)})}i(t,"isexe");function u(n,s){try{return e.sync(n,s||{})}catch(r){if(s&&s.ignoreErrors||r.code==="EACCES")return!1;throw r}}return i(u,"sync"),ut}i(Xn,"requireIsexe");var rt,pu;function Qn(){if(pu)return rt;pu=1;const e=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",t=ge,u=e?";":":",n=Xn(),s=i(D=>Object.assign(new Error(`not found: ${D}`),{code:"ENOENT"}),"getNotFoundError"),r=i((D,l)=>{const f=l.colon||u,C=D.match(/\//)||e&&D.match(/\\/)?[""]:[...e?[process.cwd()]:[],...(l.path||process.env.PATH||"").split(f)],h=e?l.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",P=e?h.split(f):[""];return e&&D.indexOf(".")!==-1&&P[0]!==""&&P.unshift(""),{pathEnv:C,pathExt:P,pathExtExe:h}},"getPathInfo"),o=i((D,l,f)=>{typeof l=="function"&&(f=l,l={}),l||(l={});const{pathEnv:C,pathExt:h,pathExtExe:P}=r(D,l),$=[],U=i(A=>new Promise((W,p)=>{if(A===C.length)return l.all&&$.length?W($):p(s(D));const B=C[A],w=/^".*"$/.test(B)?B.slice(1,-1):B,I=t.join(w,D),y=!w&&/^\.[\\\/]/.test(D)?D.slice(0,2)+I:I;W(_(y,A,0))}),"step"),_=i((A,W,p)=>new Promise((B,w)=>{if(p===h.length)return B(U(W+1));const I=h[p];n(A+I,{pathExt:P},(y,q)=>{if(!y&&q)if(l.all)$.push(A+I);else return B(A+I);return B(_(A,W,p+1))})}),"subStep");return f?U(0).then(A=>f(null,A),f):U(0)},"which"),a=i((D,l)=>{l=l||{};const{pathEnv:f,pathExt:C,pathExtExe:h}=r(D,l),P=[];for(let $=0;$<f.length;$++){const U=f[$],_=/^".*"$/.test(U)?U.slice(1,-1):U,A=t.join(_,D),W=!_&&/^\.[\\\/]/.test(D)?D.slice(0,2)+A:A;for(let p=0;p<C.length;p++){const B=W+C[p];try{if(n.sync(B,{pathExt:h}))if(l.all)P.push(B);else return B}catch{}}}if(l.all&&P.length)return P;if(l.nothrow)return null;throw s(D)},"whichSync");return rt=o,o.sync=a,rt}i(Qn,"requireWhich");var Le={exports:{}},Eu;function Zn(){if(Eu)return Le.exports;Eu=1;const e=i((t={})=>{const u=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(u).reverse().find(s=>s.toUpperCase()==="PATH")||"Path"},"pathKey$1");return Le.exports=e,Le.exports.default=e,Le.exports}i(Zn,"requirePathKey");var nt,Cu;function Jn(){if(Cu)return nt;Cu=1;const e=ge,t=Qn(),u=Zn();function n(r,o){const a=r.options.env||process.env,D=process.cwd(),l=r.options.cwd!=null,f=l&&process.chdir!==void 0&&!process.chdir.disabled;if(f)try{process.chdir(r.options.cwd)}catch{}let C;try{C=t.sync(r.command,{path:a[u({env:a})],pathExt:o?e.delimiter:void 0})}catch{}finally{f&&process.chdir(D)}return C&&(C=e.resolve(l?r.options.cwd:"",C)),C}i(n,"resolveCommandAttempt");function s(r){return n(r)||n(r,!0)}return i(s,"resolveCommand"),nt=s,nt}i(Jn,"requireResolveCommand");var ke={},Fu;function es(){if(Fu)return ke;Fu=1;const e=/([()\][%!^"`<>&|;, *?])/g;function t(n){return n=n.replace(e,"^$1"),n}i(t,"escapeCommand");function u(n,s){return n=`${n}`,n=n.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"'),n=n.replace(/(?=(\\+?)?)\1$/,"$1$1"),n=`"${n}"`,n=n.replace(e,"^$1"),s&&(n=n.replace(e,"^$1")),n}return i(u,"escapeArgument"),ke.command=t,ke.argument=u,ke}i(es,"require_escape");var st,gu;function ts(){return gu||(gu=1,st=/^#!(.*)/),st}i(ts,"requireShebangRegex");var it,mu;function us(){if(mu)return it;mu=1;const e=ts();return it=i((t="")=>{const u=t.match(e);if(!u)return null;const[n,s]=u[0].replace(/#! ?/,"").split(" "),r=n.split("/").pop();return r==="env"?s:s?`${r} ${s}`:r},"shebangCommand"),it}i(us,"requireShebangCommand");var ot,_u;function rs(){if(_u)return ot;_u=1;const e=ye,t=us();function u(n){const r=Buffer.alloc(150);let o;try{o=e.openSync(n,"r"),e.readSync(o,r,0,150,0),e.closeSync(o)}catch{}return t(r.toString())}return i(u,"readShebang"),ot=u,ot}i(rs,"requireReadShebang");var at,Au;function ns(){if(Au)return at;Au=1;const e=ge,t=Jn(),u=es(),n=rs(),s=process.platform==="win32",r=/\.(?:com|exe)$/i,o=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function a(f){f.file=t(f);const C=f.file&&n(f.file);return C?(f.args.unshift(f.file),f.command=C,t(f)):f.file}i(a,"detectShebang");function D(f){if(!s)return f;const C=a(f),h=!r.test(C);if(f.options.forceShell||h){const P=o.test(C);f.command=e.normalize(f.command),f.command=u.command(f.command),f.args=f.args.map(U=>u.argument(U,P));const $=[f.command].concat(f.args).join(" ");f.args=["/d","/s","/c",`"${$}"`],f.command=process.env.comspec||"cmd.exe",f.options.windowsVerbatimArguments=!0}return f}i(D,"parseNonShell");function l(f,C,h){C&&!Array.isArray(C)&&(h=C,C=null),C=C?C.slice(0):[],h=Object.assign({},h);const P={command:f,args:C,options:h,file:void 0,original:{command:f,args:C}};return h.shell?P:D(P)}return i(l,"parse"),at=l,at}i(ns,"requireParse$2");var Dt,yu;function ss(){if(yu)return Dt;yu=1;const e=process.platform==="win32";function t(r,o){return Object.assign(new Error(`${o} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${o} ${r.command}`,path:r.command,spawnargs:r.args})}i(t,"notFoundError");function u(r,o){if(!e)return;const a=r.emit;r.emit=function(D,l){if(D==="exit"){const f=n(l,o);if(f)return a.call(r,"error",f)}return a.apply(r,arguments)}}i(u,"hookChildProcess");function n(r,o){return e&&r===1&&!o.file?t(o.original,"spawn"):null}i(n,"verifyENOENT");function s(r,o){return e&&r===1&&!o.file?t(o.original,"spawnSync"):null}return i(s,"verifyENOENTSync"),Dt={hookChildProcess:u,verifyENOENT:n,verifyENOENTSync:s,notFoundError:t},Dt}i(ss,"requireEnoent");var wu;function is(){if(wu)return Re.exports;wu=1;const e=pr,t=ns(),u=ss();function n(r,o,a){const D=t(r,o,a),l=e.spawn(D.command,D.args,D.options);return u.hookChildProcess(l,D),l}i(n,"spawn");function s(r,o,a){const D=t(r,o,a),l=e.spawnSync(D.command,D.args,D.options);return l.error=l.error||u.verifyENOENTSync(l.status,D),l}return i(s,"spawnSync"),Re.exports=n,Re.exports.spawn=n,Re.exports.sync=s,Re.exports._parse=t,Re.exports._enoent=u,Re.exports}i(is,"requireCrossSpawn");var os=is(),as=jt(os);const Ru=i((e,t)=>{const u={...process.env},n=["inherit","inherit","inherit"];process.send&&n.push("ipc"),t&&(t.noCache&&(u.TSX_DISABLE_CACHE="1"),t.tsconfigPath&&(u.TSX_TSCONFIG_PATH=t.tsconfigPath));const s=e.filter(r=>r!=="-i"&&r!=="--interactive").length===0;return as(process.execPath,["--require",Te.resolve("./preflight.cjs"),...s?["--require",Te.resolve("./patch-repl.cjs")]:[],Wt(Er)?"--import":"--loader",hr(Te.resolve("./loader.mjs")).toString(),...e],{stdio:n,env:u})},"run");var Me={},lt={},ct,vu;function We(){if(vu)return ct;vu=1;const e=ge,t="\\\\/",u=`[^${t}]`,n="\\.",s="\\+",r="\\?",o="\\/",a="(?=.)",D="[^/]",l=`(?:${o}|$)`,f=`(?:^|${o})`,C=`${n}{1,2}${l}`,h=`(?!${n})`,P=`(?!${f}${C})`,$=`(?!${n}{0,1}${l})`,U=`(?!${C})`,_=`[^.${o}]`,A=`${D}*?`,W={DOT_LITERAL:n,PLUS_LITERAL:s,QMARK_LITERAL:r,SLASH_LITERAL:o,ONE_CHAR:a,QMARK:D,END_ANCHOR:l,DOTS_SLASH:C,NO_DOT:h,NO_DOTS:P,NO_DOT_SLASH:$,NO_DOTS_SLASH:U,QMARK_NO_DOT:_,STAR:A,START_ANCHOR:f},p={...W,SLASH_LITERAL:`[${t}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${n}{1,2}(?:[${t}]|$)`,NO_DOT:`(?!${n})`,NO_DOTS:`(?!(?:^|[${t}])${n}{1,2}(?:[${t}]|$))`,NO_DOT_SLASH:`(?!${n}{0,1}(?:[${t}]|$))`,NO_DOTS_SLASH:`(?!${n}{1,2}(?:[${t}]|$))`,QMARK_NO_DOT:`[^.${t}]`,START_ANCHOR:`(?:^|[${t}])`,END_ANCHOR:`(?:[${t}]|$)`},B={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return ct={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:B,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:e.sep,extglobChars(w){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${w.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(w){return w===!0?p:W}},ct}i(We,"requireConstants$2");var bu;function ft(){return bu||(bu=1,(function(e){const t=ge,u=process.platform==="win32",{REGEX_BACKSLASH:n,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:o}=We();e.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),e.hasRegexChars=a=>r.test(a),e.isRegexChar=a=>a.length===1&&e.hasRegexChars(a),e.escapeRegex=a=>a.replace(o,"\\$1"),e.toPosixSlashes=a=>a.replace(n,"/"),e.removeBackslashes=a=>a.replace(s,D=>D==="\\"?"":D),e.supportsLookbehinds=()=>{const a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},e.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:u===!0||t.sep==="\\",e.escapeLast=(a,D,l)=>{const f=a.lastIndexOf(D,l);return f===-1?a:a[f-1]==="\\"?e.escapeLast(a,D,f-1):`${a.slice(0,f)}\\${a.slice(f)}`},e.removePrefix=(a,D={})=>{let l=a;return l.startsWith("./")&&(l=l.slice(2),D.prefix="./"),l},e.wrapOutput=(a,D={},l={})=>{const f=l.contains?"":"^",C=l.contains?"":"$";let h=`${f}(?:${a})${C}`;return D.negated===!0&&(h=`(?:^(?!${h}).*$)`),h}})(lt)),lt}i(ft,"requireUtils$1");var ht,Bu;function Ds(){if(Bu)return ht;Bu=1;const e=ft(),{CHAR_ASTERISK:t,CHAR_AT:u,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:s,CHAR_DOT:r,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:D,CHAR_LEFT_PARENTHESES:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_PLUS:C,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:P,CHAR_RIGHT_PARENTHESES:$,CHAR_RIGHT_SQUARE_BRACKET:U}=We(),_=i(p=>p===a||p===n,"isPathSeparator"),A=i(p=>{p.isPrefix!==!0&&(p.depth=p.isGlobstar?1/0:1)},"depth");return ht=i((p,B)=>{const w=B||{},I=p.length-1,y=w.parts===!0||w.scanToEnd===!0,q=[],m=[],S=[];let N=p,L=-1,g=0,z=0,Y=!1,J=!1,ue=!1,De=!1,de=!1,le=!1,R=!1,he=!1,te=!1,T=!1,d=0,c,v,x={value:"",depth:0,isGlob:!1};const k=i(()=>L>=I,"eos"),b=i(()=>N.charCodeAt(L+1),"peek"),O=i(()=>(c=v,N.charCodeAt(++L)),"advance");for(;L<I;){v=O();let H;if(v===n){R=x.backslashes=!0,v=O(),v===D&&(le=!0);continue}if(le===!0||v===D){for(d++;k()!==!0&&(v=O());){if(v===n){R=x.backslashes=!0,O();continue}if(v===D){d++;continue}if(le!==!0&&v===r&&(v=O())===r){if(Y=x.isBrace=!0,ue=x.isGlob=!0,T=!0,y===!0)continue;break}if(le!==!0&&v===s){if(Y=x.isBrace=!0,ue=x.isGlob=!0,T=!0,y===!0)continue;break}if(v===P&&(d--,d===0)){le=!1,Y=x.isBrace=!0,T=!0;break}}if(y===!0)continue;break}if(v===a){if(q.push(L),m.push(x),x={value:"",depth:0,isGlob:!1},T===!0)continue;if(c===r&&L===g+1){g+=2;continue}z=L+1;continue}if(w.noext!==!0&&(v===C||v===u||v===t||v===h||v===o)===!0&&b()===l){if(ue=x.isGlob=!0,De=x.isExtglob=!0,T=!0,v===o&&L===g&&(te=!0),y===!0){for(;k()!==!0&&(v=O());){if(v===n){R=x.backslashes=!0,v=O();continue}if(v===$){ue=x.isGlob=!0,T=!0;break}}continue}break}if(v===t){if(c===t&&(de=x.isGlobstar=!0),ue=x.isGlob=!0,T=!0,y===!0)continue;break}if(v===h){if(ue=x.isGlob=!0,T=!0,y===!0)continue;break}if(v===f){for(;k()!==!0&&(H=O());){if(H===n){R=x.backslashes=!0,O();continue}if(H===U){J=x.isBracket=!0,ue=x.isGlob=!0,T=!0;break}}if(y===!0)continue;break}if(w.nonegate!==!0&&v===o&&L===g){he=x.negated=!0,g++;continue}if(w.noparen!==!0&&v===l){if(ue=x.isGlob=!0,y===!0){for(;k()!==!0&&(v=O());){if(v===l){R=x.backslashes=!0,v=O();continue}if(v===$){T=!0;break}}continue}break}if(ue===!0){if(T=!0,y===!0)continue;break}}w.noext===!0&&(De=!1,ue=!1);let M=N,Q="",K="";g>0&&(Q=N.slice(0,g),N=N.slice(g),z-=g),M&&ue===!0&&z>0?(M=N.slice(0,z),K=N.slice(z)):ue===!0?(M="",K=N):M=N,M&&M!==""&&M!=="/"&&M!==N&&_(M.charCodeAt(M.length-1))&&(M=M.slice(0,-1)),w.unescape===!0&&(K&&(K=e.removeBackslashes(K)),M&&R===!0&&(M=e.removeBackslashes(M)));const V={prefix:Q,input:p,start:g,base:M,glob:K,isBrace:Y,isBracket:J,isGlob:ue,isExtglob:De,isGlobstar:de,negated:he,negatedExtglob:te};if(w.tokens===!0&&(V.maxDepth=0,_(v)||m.push(x),V.tokens=m),w.parts===!0||w.tokens===!0){let H;for(let ee=0;ee<q.length;ee++){const Ee=H?H+1:g,G=q[ee],ae=p.slice(Ee,G);w.tokens&&(ee===0&&g!==0?(m[ee].isPrefix=!0,m[ee].value=Q):m[ee].value=ae,A(m[ee]),V.maxDepth+=m[ee].depth),(ee!==0||ae!=="")&&S.push(ae),H=G}if(H&&H+1<p.length){const ee=p.slice(H+1);S.push(ee),w.tokens&&(m[m.length-1].value=ee,A(m[m.length-1]),V.maxDepth+=m[m.length-1].depth)}V.slashes=q,V.parts=S}return V},"scan"),ht}i(Ds,"requireScan");var dt,Su;function ls(){if(Su)return dt;Su=1;const e=We(),t=ft(),{MAX_LENGTH:u,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_BACKREF:r,REPLACEMENTS:o}=e,a=i((f,C)=>{if(typeof C.expandRange=="function")return C.expandRange(...f,C);f.sort();const h=`[${f.join("-")}]`;try{new RegExp(h)}catch{return f.map($=>t.escapeRegex($)).join("..")}return h},"expandRange"),D=i((f,C)=>`Missing ${f}: "${C}" - use "\\\\${C}" to match literal characters`,"syntaxError"),l=i((f,C)=>{if(typeof f!="string")throw new TypeError("Expected a string");f=o[f]||f;const h={...C},P=typeof h.maxLength=="number"?Math.min(u,h.maxLength):u;let $=f.length;if($>P)throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${P}`);const U={type:"bos",value:"",output:h.prepend||""},_=[U],A=h.capture?"":"?:",W=t.isWindows(C),p=e.globChars(W),B=e.extglobChars(p),{DOT_LITERAL:w,PLUS_LITERAL:I,SLASH_LITERAL:y,ONE_CHAR:q,DOTS_SLASH:m,NO_DOT:S,NO_DOT_SLASH:N,NO_DOTS_SLASH:L,QMARK:g,QMARK_NO_DOT:z,STAR:Y,START_ANCHOR:J}=p,ue=i(G=>`(${A}(?:(?!${J}${G.dot?m:w}).)*?)`,"globstar"),De=h.dot?"":S,de=h.dot?g:z;let le=h.bash===!0?ue(h):Y;h.capture&&(le=`(${le})`),typeof h.noext=="boolean"&&(h.noextglob=h.noext);const R={input:f,index:-1,start:0,dot:h.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:_};f=t.removePrefix(f,R),$=f.length;const he=[],te=[],T=[];let d=U,c;const v=i(()=>R.index===$-1,"eos"),x=R.peek=(G=1)=>f[R.index+G],k=R.advance=()=>f[++R.index]||"",b=i(()=>f.slice(R.index+1),"remaining"),O=i((G="",ae=0)=>{R.consumed+=G,R.index+=ae},"consume"),M=i(G=>{R.output+=G.output!=null?G.output:G.value,O(G.value)},"append"),Q=i(()=>{let G=1;for(;x()==="!"&&(x(2)!=="("||x(3)==="?");)k(),R.start++,G++;return G%2===0?!1:(R.negated=!0,R.start++,!0)},"negate"),K=i(G=>{R[G]++,T.push(G)},"increment"),V=i(G=>{R[G]--,T.pop()},"decrement"),H=i(G=>{if(d.type==="globstar"){const ae=R.braces>0&&(G.type==="comma"||G.type==="brace"),j=G.extglob===!0||he.length&&(G.type==="pipe"||G.type==="paren");G.type!=="slash"&&G.type!=="paren"&&!ae&&!j&&(R.output=R.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=le,R.output+=d.output)}if(he.length&&G.type!=="paren"&&(he[he.length-1].inner+=G.value),(G.value||G.output)&&M(G),d&&d.type==="text"&&G.type==="text"){d.value+=G.value,d.output=(d.output||"")+G.value;return}G.prev=d,_.push(G),d=G},"push"),ee=i((G,ae)=>{const j={...B[ae],conditions:1,inner:""};j.prev=d,j.parens=R.parens,j.output=R.output;const ne=(h.capture?"(":"")+j.open;K("parens"),H({type:G,value:ae,output:R.output?"":q}),H({type:"paren",extglob:!0,value:k(),output:ne}),he.push(j)},"extglobOpen"),Ee=i(G=>{let ae=G.close+(h.capture?")":""),j;if(G.type==="negate"){let ne=le;if(G.inner&&G.inner.length>1&&G.inner.includes("/")&&(ne=ue(h)),(ne!==le||v()||/^\)+$/.test(b()))&&(ae=G.close=`)$))${ne}`),G.inner.includes("*")&&(j=b())&&/^\.[^\\/.]+$/.test(j)){const fe=l(j,{...C,fastpaths:!1}).output;ae=G.close=`)${fe})${ne})`}G.prev.type==="bos"&&(R.negatedExtglob=!0)}H({type:"paren",extglob:!0,value:c,output:ae}),V("parens")},"extglobClose");if(h.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(f)){let G=!1,ae=f.replace(r,(j,ne,fe,re,E,F)=>re==="\\"?(G=!0,j):re==="?"?ne?ne+re+(E?g.repeat(E.length):""):F===0?de+(E?g.repeat(E.length):""):g.repeat(fe.length):re==="."?w.repeat(fe.length):re==="*"?ne?ne+re+(E?le:""):le:ne?j:`\\${j}`);return G===!0&&(h.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,j=>j.length%2===0?"\\\\":j?"\\":"")),ae===f&&h.contains===!0?(R.output=f,R):(R.output=t.wrapOutput(ae,R,C),R)}for(;!v();){if(c=k(),c==="\0")continue;if(c==="\\"){const j=x();if(j==="/"&&h.bash!==!0||j==="."||j===";")continue;if(!j){c+="\\",H({type:"text",value:c});continue}const ne=/^\\+/.exec(b());let fe=0;if(ne&&ne[0].length>2&&(fe=ne[0].length,R.index+=fe,fe%2!==0&&(c+="\\")),h.unescape===!0?c=k():c+=k(),R.brackets===0){H({type:"text",value:c});continue}}if(R.brackets>0&&(c!=="]"||d.value==="["||d.value==="[^")){if(h.posix!==!1&&c===":"){const j=d.value.slice(1);if(j.includes("[")&&(d.posix=!0,j.includes(":"))){const ne=d.value.lastIndexOf("["),fe=d.value.slice(0,ne),re=d.value.slice(ne+2),E=n[re];if(E){d.value=fe+E,R.backtrack=!0,k(),!U.output&&_.indexOf(d)===1&&(U.output=q);continue}}}(c==="["&&x()!==":"||c==="-"&&x()==="]")&&(c=`\\${c}`),c==="]"&&(d.value==="["||d.value==="[^")&&(c=`\\${c}`),h.posix===!0&&c==="!"&&d.value==="["&&(c="^"),d.value+=c,M({value:c});continue}if(R.quotes===1&&c!=='"'){c=t.escapeRegex(c),d.value+=c,M({value:c});continue}if(c==='"'){R.quotes=R.quotes===1?0:1,h.keepQuotes===!0&&H({type:"text",value:c});continue}if(c==="("){K("parens"),H({type:"paren",value:c});continue}if(c===")"){if(R.parens===0&&h.strictBrackets===!0)throw new SyntaxError(D("opening","("));const j=he[he.length-1];if(j&&R.parens===j.parens+1){Ee(he.pop());continue}H({type:"paren",value:c,output:R.parens?")":"\\)"}),V("parens");continue}if(c==="["){if(h.nobracket===!0||!b().includes("]")){if(h.nobracket!==!0&&h.strictBrackets===!0)throw new SyntaxError(D("closing","]"));c=`\\${c}`}else K("brackets");H({type:"bracket",value:c});continue}if(c==="]"){if(h.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){H({type:"text",value:c,output:`\\${c}`});continue}if(R.brackets===0){if(h.strictBrackets===!0)throw new SyntaxError(D("opening","["));H({type:"text",value:c,output:`\\${c}`});continue}V("brackets");const j=d.value.slice(1);if(d.posix!==!0&&j[0]==="^"&&!j.includes("/")&&(c=`/${c}`),d.value+=c,M({value:c}),h.literalBrackets===!1||t.hasRegexChars(j))continue;const ne=t.escapeRegex(d.value);if(R.output=R.output.slice(0,-d.value.length),h.literalBrackets===!0){R.output+=ne,d.value=ne;continue}d.value=`(${A}${ne}|${d.value})`,R.output+=d.value;continue}if(c==="{"&&h.nobrace!==!0){K("braces");const j={type:"brace",value:c,output:"(",outputIndex:R.output.length,tokensIndex:R.tokens.length};te.push(j),H(j);continue}if(c==="}"){const j=te[te.length-1];if(h.nobrace===!0||!j){H({type:"text",value:c,output:c});continue}let ne=")";if(j.dots===!0){const fe=_.slice(),re=[];for(let E=fe.length-1;E>=0&&(_.pop(),fe[E].type!=="brace");E--)fe[E].type!=="dots"&&re.unshift(fe[E].value);ne=a(re,h),R.backtrack=!0}if(j.comma!==!0&&j.dots!==!0){const fe=R.output.slice(0,j.outputIndex),re=R.tokens.slice(j.tokensIndex);j.value=j.output="\\{",c=ne="\\}",R.output=fe;for(const E of re)R.output+=E.output||E.value}H({type:"brace",value:c,output:ne}),V("braces"),te.pop();continue}if(c==="|"){he.length>0&&he[he.length-1].conditions++,H({type:"text",value:c});continue}if(c===","){let j=c;const ne=te[te.length-1];ne&&T[T.length-1]==="braces"&&(ne.comma=!0,j="|"),H({type:"comma",value:c,output:j});continue}if(c==="/"){if(d.type==="dot"&&R.index===R.start+1){R.start=R.index+1,R.consumed="",R.output="",_.pop(),d=U;continue}H({type:"slash",value:c,output:y});continue}if(c==="."){if(R.braces>0&&d.type==="dot"){d.value==="."&&(d.output=w);const j=te[te.length-1];d.type="dots",d.output+=c,d.value+=c,j.dots=!0;continue}if(R.braces+R.parens===0&&d.type!=="bos"&&d.type!=="slash"){H({type:"text",value:c,output:w});continue}H({type:"dot",value:c,output:w});continue}if(c==="?"){if(!(d&&d.value==="(")&&h.noextglob!==!0&&x()==="("&&x(2)!=="?"){ee("qmark",c);continue}if(d&&d.type==="paren"){const ne=x();let fe=c;if(ne==="<"&&!t.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(d.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test(b()))&&(fe=`\\${c}`),H({type:"text",value:c,output:fe});continue}if(h.dot!==!0&&(d.type==="slash"||d.type==="bos")){H({type:"qmark",value:c,output:z});continue}H({type:"qmark",value:c,output:g});continue}if(c==="!"){if(h.noextglob!==!0&&x()==="("&&(x(2)!=="?"||!/[!=<:]/.test(x(3)))){ee("negate",c);continue}if(h.nonegate!==!0&&R.index===0){Q();continue}}if(c==="+"){if(h.noextglob!==!0&&x()==="("&&x(2)!=="?"){ee("plus",c);continue}if(d&&d.value==="("||h.regex===!1){H({type:"plus",value:c,output:I});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||R.parens>0){H({type:"plus",value:c});continue}H({type:"plus",value:I});continue}if(c==="@"){if(h.noextglob!==!0&&x()==="("&&x(2)!=="?"){H({type:"at",extglob:!0,value:c,output:""});continue}H({type:"text",value:c});continue}if(c!=="*"){(c==="$"||c==="^")&&(c=`\\${c}`);const j=s.exec(b());j&&(c+=j[0],R.index+=j[0].length),H({type:"text",value:c});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=c,d.output=le,R.backtrack=!0,R.globstar=!0,O(c);continue}let G=b();if(h.noextglob!==!0&&/^\([^?]/.test(G)){ee("star",c);continue}if(d.type==="star"){if(h.noglobstar===!0){O(c);continue}const j=d.prev,ne=j.prev,fe=j.type==="slash"||j.type==="bos",re=ne&&(ne.type==="star"||ne.type==="globstar");if(h.bash===!0&&(!fe||G[0]&&G[0]!=="/")){H({type:"star",value:c,output:""});continue}const E=R.braces>0&&(j.type==="comma"||j.type==="brace"),F=he.length&&(j.type==="pipe"||j.type==="paren");if(!fe&&j.type!=="paren"&&!E&&!F){H({type:"star",value:c,output:""});continue}for(;G.slice(0,3)==="/**";){const Z=f[R.index+4];if(Z&&Z!=="/")break;G=G.slice(3),O("/**",3)}if(j.type==="bos"&&v()){d.type="globstar",d.value+=c,d.output=ue(h),R.output=d.output,R.globstar=!0,O(c);continue}if(j.type==="slash"&&j.prev.type!=="bos"&&!re&&v()){R.output=R.output.slice(0,-(j.output+d.output).length),j.output=`(?:${j.output}`,d.type="globstar",d.output=ue(h)+(h.strictSlashes?")":"|$)"),d.value+=c,R.globstar=!0,R.output+=j.output+d.output,O(c);continue}if(j.type==="slash"&&j.prev.type!=="bos"&&G[0]==="/"){const Z=G[1]!==void 0?"|$":"";R.output=R.output.slice(0,-(j.output+d.output).length),j.output=`(?:${j.output}`,d.type="globstar",d.output=`${ue(h)}${y}|${y}${Z})`,d.value+=c,R.output+=j.output+d.output,R.globstar=!0,O(c+k()),H({type:"slash",value:"/",output:""});continue}if(j.type==="bos"&&G[0]==="/"){d.type="globstar",d.value+=c,d.output=`(?:^|${y}|${ue(h)}${y})`,R.output=d.output,R.globstar=!0,O(c+k()),H({type:"slash",value:"/",output:""});continue}R.output=R.output.slice(0,-d.output.length),d.type="globstar",d.output=ue(h),d.value+=c,R.output+=d.output,R.globstar=!0,O(c);continue}const ae={type:"star",value:c,output:le};if(h.bash===!0){ae.output=".*?",(d.type==="bos"||d.type==="slash")&&(ae.output=De+ae.output),H(ae);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&h.regex===!0){ae.output=c,H(ae);continue}(R.index===R.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(R.output+=N,d.output+=N):h.dot===!0?(R.output+=L,d.output+=L):(R.output+=De,d.output+=De),x()!=="*"&&(R.output+=q,d.output+=q)),H(ae)}for(;R.brackets>0;){if(h.strictBrackets===!0)throw new SyntaxError(D("closing","]"));R.output=t.escapeLast(R.output,"["),V("brackets")}for(;R.parens>0;){if(h.strictBrackets===!0)throw new SyntaxError(D("closing",")"));R.output=t.escapeLast(R.output,"("),V("parens")}for(;R.braces>0;){if(h.strictBrackets===!0)throw new SyntaxError(D("closing","}"));R.output=t.escapeLast(R.output,"{"),V("braces")}if(h.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&H({type:"maybe_slash",value:"",output:`${y}?`}),R.backtrack===!0){R.output="";for(const G of R.tokens)R.output+=G.output!=null?G.output:G.value,G.suffix&&(R.output+=G.suffix)}return R},"parse");return l.fastpaths=(f,C)=>{const h={...C},P=typeof h.maxLength=="number"?Math.min(u,h.maxLength):u,$=f.length;if($>P)throw new SyntaxError(`Input length: ${$}, exceeds maximum allowed length: ${P}`);f=o[f]||f;const U=t.isWindows(C),{DOT_LITERAL:_,SLASH_LITERAL:A,ONE_CHAR:W,DOTS_SLASH:p,NO_DOT:B,NO_DOTS:w,NO_DOTS_SLASH:I,STAR:y,START_ANCHOR:q}=e.globChars(U),m=h.dot?w:B,S=h.dot?I:B,N=h.capture?"":"?:",L={negated:!1,prefix:""};let g=h.bash===!0?".*?":y;h.capture&&(g=`(${g})`);const z=i(De=>De.noglobstar===!0?g:`(${N}(?:(?!${q}${De.dot?p:_}).)*?)`,"globstar"),Y=i(De=>{switch(De){case"*":return`${m}${W}${g}`;case".*":return`${_}${W}${g}`;case"*.*":return`${m}${g}${_}${W}${g}`;case"*/*":return`${m}${g}${A}${W}${S}${g}`;case"**":return m+z(h);case"**/*":return`(?:${m}${z(h)}${A})?${S}${W}${g}`;case"**/*.*":return`(?:${m}${z(h)}${A})?${S}${g}${_}${W}${g}`;case"**/.*":return`(?:${m}${z(h)}${A})?${_}${W}${g}`;default:{const de=/^(.*?)\.(\w+)$/.exec(De);if(!de)return;const le=Y(de[1]);return le?le+_+de[2]:void 0}}},"create"),J=t.removePrefix(f,L);let ue=Y(J);return ue&&h.strictSlashes!==!0&&(ue+=`${A}?`),ue},dt=l,dt}i(ls,"requireParse$1");var pt,xu;function cs(){if(xu)return pt;xu=1;const e=ge,t=Ds(),u=ls(),n=ft(),s=We(),r=i(a=>a&&typeof a=="object"&&!Array.isArray(a),"isObject"),o=i((a,D,l=!1)=>{if(Array.isArray(a)){const A=a.map(p=>o(p,D,l));return i(p=>{for(const B of A){const w=B(p);if(w)return w}return!1},"arrayMatcher")}const f=r(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");const C=D||{},h=n.isWindows(D),P=f?o.compileRe(a,D):o.makeRe(a,D,!1,!0),$=P.state;delete P.state;let U=i(()=>!1,"isIgnored");if(C.ignore){const A={...D,ignore:null,onMatch:null,onResult:null};U=o(C.ignore,A,l)}const _=i((A,W=!1)=>{const{isMatch:p,match:B,output:w}=o.test(A,P,D,{glob:a,posix:h}),I={glob:a,state:$,regex:P,posix:h,input:A,output:w,match:B,isMatch:p};return typeof C.onResult=="function"&&C.onResult(I),p===!1?(I.isMatch=!1,W?I:!1):U(A)?(typeof C.onIgnore=="function"&&C.onIgnore(I),I.isMatch=!1,W?I:!1):(typeof C.onMatch=="function"&&C.onMatch(I),W?I:!0)},"matcher");return l&&(_.state=$),_},"picomatch");return o.test=(a,D,l,{glob:f,posix:C}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const h=l||{},P=h.format||(C?n.toPosixSlashes:null);let $=a===f,U=$&&P?P(a):a;return $===!1&&(U=P?P(a):a,$=U===f),($===!1||h.capture===!0)&&(h.matchBase===!0||h.basename===!0?$=o.matchBase(a,D,l,C):$=D.exec(U)),{isMatch:!!$,match:$,output:U}},o.matchBase=(a,D,l,f=n.isWindows(l))=>(D instanceof RegExp?D:o.makeRe(D,l)).test(e.basename(a)),o.isMatch=(a,D,l)=>o(D,l)(a),o.parse=(a,D)=>Array.isArray(a)?a.map(l=>o.parse(l,D)):u(a,{...D,fastpaths:!1}),o.scan=(a,D)=>t(a,D),o.compileRe=(a,D,l=!1,f=!1)=>{if(l===!0)return a.output;const C=D||{},h=C.contains?"":"^",P=C.contains?"":"$";let $=`${h}(?:${a.output})${P}`;a&&a.negated===!0&&($=`^(?!${$}).*$`);const U=o.toRegex($,D);return f===!0&&(U.state=a),U},o.makeRe=(a,D={},l=!1,f=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let C={negated:!1,fastpaths:!0};return D.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(C.output=u.fastpaths(a,D)),C.output||(C=u(a,D)),o.compileRe(C,D,l,f)},o.toRegex=(a,D)=>{try{const l=D||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(D&&D.debug===!0)throw l;return/$^/}},o.constants=s,pt=o,pt}i(cs,"requirePicomatch$1");var Et,Tu;function $u(){return Tu||(Tu=1,Et=cs()),Et}i($u,"requirePicomatch");var Ct,Ou;function fs(){if(Ou)return Ct;Ou=1;const e=ye,{Readable:t}=mr,u=ge,{promisify:n}=ve,s=$u(),r=n(e.readdir),o=n(e.stat),a=n(e.lstat),D=n(e.realpath),l="!",f="READDIRP_RECURSIVE_ERROR",C=new Set(["ENOENT","EPERM","EACCES","ELOOP",f]),h="files",P="directories",$="files_directories",U="all",_=[h,P,$,U],A=i(m=>C.has(m.code),"isNormalFlowError"),[W,p]=process.versions.node.split(".").slice(0,2).map(m=>Number.parseInt(m,10)),B=process.platform==="win32"&&(W>10||W===10&&p>=5),w=i(m=>{if(m!==void 0){if(typeof m=="function")return m;if(typeof m=="string"){const S=s(m.trim());return N=>S(N.basename)}if(Array.isArray(m)){const S=[],N=[];for(const L of m){const g=L.trim();g.charAt(0)===l?N.push(s(g.slice(1))):S.push(s(g))}return N.length>0?S.length>0?L=>S.some(g=>g(L.basename))&&!N.some(g=>g(L.basename)):L=>!N.some(g=>g(L.basename)):L=>S.some(g=>g(L.basename))}}},"normalizeFilter");class I extends t{static{i(this,"ReaddirpStream")}static get defaultOptions(){return{root:".",fileFilter:i(S=>!0,"fileFilter"),directoryFilter:i(S=>!0,"directoryFilter"),type:h,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(S={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:S.highWaterMark||4096});const N={...I.defaultOptions,...S},{root:L,type:g}=N;this._fileFilter=w(N.fileFilter),this._directoryFilter=w(N.directoryFilter);const z=N.lstat?a:o;B?this._stat=Y=>z(Y,{bigint:!0}):this._stat=z,this._maxDepth=N.depth,this._wantsDir=[P,$,U].includes(g),this._wantsFile=[h,$,U].includes(g),this._wantsEverything=g===U,this._root=u.resolve(L),this._isDirent="Dirent"in e&&!N.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(L,1)],this.reading=!1,this.parent=void 0}async _read(S){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&S>0;){const{path:N,depth:L,files:g=[]}=this.parent||{};if(g.length>0){const z=g.splice(0,S).map(Y=>this._formatEntry(Y,N));for(const Y of await Promise.all(z)){if(this.destroyed)return;const J=await this._getEntryType(Y);J==="directory"&&this._directoryFilter(Y)?(L<=this._maxDepth&&this.parents.push(this._exploreDir(Y.fullPath,L+1)),this._wantsDir&&(this.push(Y),S--)):(J==="file"||this._includeAsFile(Y))&&this._fileFilter(Y)&&this._wantsFile&&(this.push(Y),S--)}}else{const z=this.parents.pop();if(!z){this.push(null);break}if(this.parent=await z,this.destroyed)return}}}catch(N){this.destroy(N)}finally{this.reading=!1}}}async _exploreDir(S,N){let L;try{L=await r(S,this._rdOptions)}catch(g){this._onError(g)}return{files:L,depth:N,path:S}}async _formatEntry(S,N){let L;try{const g=this._isDirent?S.name:S,z=u.resolve(u.join(N,g));L={path:u.relative(this._root,z),fullPath:z,basename:g},L[this._statsProp]=this._isDirent?S:await this._stat(z)}catch(g){this._onError(g)}return L}_onError(S){A(S)&&!this.destroyed?this.emit("warn",S):this.destroy(S)}async _getEntryType(S){const N=S&&S[this._statsProp];if(N){if(N.isFile())return"file";if(N.isDirectory())return"directory";if(N&&N.isSymbolicLink()){const L=S.fullPath;try{const g=await D(L),z=await a(g);if(z.isFile())return"file";if(z.isDirectory()){const Y=g.length;if(L.startsWith(g)&&L.substr(Y,1)===u.sep){const J=new Error(`Circular symlink detected: "${L}" points to "${g}"`);return J.code=f,this._onError(J)}return"directory"}}catch(g){this._onError(g)}}}}_includeAsFile(S){const N=S&&S[this._statsProp];return N&&this._wantsEverything&&!N.isDirectory()}}const y=i((m,S={})=>{let N=S.entryType||S.type;if(N==="both"&&(N=$),N&&(S.type=N),m){if(typeof m!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(N&&!_.includes(N))throw new Error(`readdirp: Invalid type passed. Use one of ${_.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return S.root=m,new I(S)},"readdirp"),q=i((m,S={})=>new Promise((N,L)=>{const g=[];y(m,S).on("data",z=>g.push(z)).on("end",()=>N(g)).on("error",z=>L(z))}),"readdirpPromise");return y.promise=q,y.ReaddirpStream=I,y.default=y,Ct=y,Ct}i(fs,"requireReaddirp");var Ge={exports:{}},Ft,Pu;function Nu(){if(Pu)return Ft;Pu=1;/*!
|
|
23
23
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
24
24
|
*
|
|
25
25
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
26
26
|
* Released under the MIT License.
|
|
27
|
-
*/
|
|
27
|
+
*/return Ft=i(function(e,t){if(typeof e!="string")throw new TypeError("expected path to be a string");if(e==="\\"||e==="/")return"/";var u=e.length;if(u<=1)return e;var n="";if(u>4&&e[3]==="\\"){var s=e[2];(s==="?"||s===".")&&e.slice(0,2)==="\\\\"&&(e=e.slice(2),n="//")}var r=e.split(/[/\\]+/);return t!==!1&&r[r.length-1]===""&&r.pop(),n+r.join("/")},"normalizePath"),Ft}i(Nu,"requireNormalizePath");var hs=Ge.exports,Iu;function ds(){if(Iu)return Ge.exports;Iu=1,Object.defineProperty(hs,"__esModule",{value:!0});const e=$u(),t=Nu(),u="!",n={returnIndex:!1},s=i(D=>Array.isArray(D)?D:[D],"arrify"),r=i((D,l)=>{if(typeof D=="function")return D;if(typeof D=="string"){const f=e(D,l);return C=>D===C||f(C)}return D instanceof RegExp?f=>D.test(f):f=>!1},"createPattern"),o=i((D,l,f,C)=>{const h=Array.isArray(f),P=h?f[0]:f;if(!h&&typeof P!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(P));const $=t(P,!1);for(let _=0;_<l.length;_++){const A=l[_];if(A($))return C?-1:!1}const U=h&&[$].concat(f.slice(1));for(let _=0;_<D.length;_++){const A=D[_];if(h?A(...U):A($))return C?_:!0}return C?-1:!1},"matchPatterns"),a=i((D,l,f=n)=>{if(D==null)throw new TypeError("anymatch: specify first argument");const C=typeof f=="boolean"?{returnIndex:f}:f,h=C.returnIndex||!1,P=s(D),$=P.filter(_=>typeof _=="string"&&_.charAt(0)===u).map(_=>_.slice(1)).map(_=>e(_,C)),U=P.filter(_=>typeof _!="string"||typeof _=="string"&&_.charAt(0)!==u).map(_=>r(_,C));return l==null?(_,A=!1)=>o(U,$,_,typeof A=="boolean"?A:!1):o(U,$,l,h)},"anymatch$1");return a.default=a,Ge.exports=a,Ge.exports}i(ds,"requireAnymatch");var gt,Hu;function ps(){if(Hu)return gt;Hu=1;/*!
|
|
28
28
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
31
31
|
* Licensed under the MIT License.
|
|
32
|
-
*/
|
|
32
|
+
*/return gt=i(function(t){if(typeof t!="string"||t==="")return!1;for(var u;u=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(u[2])return!0;t=t.slice(u.index+u[0].length)}return!1},"isExtglob"),gt}i(ps,"requireIsExtglob");var mt,Lu;function _t(){if(Lu)return mt;Lu=1;/*!
|
|
33
33
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
34
34
|
*
|
|
35
35
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
36
36
|
* Released under the MIT License.
|
|
37
|
-
*/var
|
|
37
|
+
*/var e=ps(),t={"{":"}","(":")","[":"]"},u=i(function(s){if(s[0]==="!")return!0;for(var r=0,o=-2,a=-2,D=-2,l=-2,f=-2;r<s.length;){if(s[r]==="*"||s[r+1]==="?"&&/[\].+)]/.test(s[r])||a!==-1&&s[r]==="["&&s[r+1]!=="]"&&(a<r&&(a=s.indexOf("]",r)),a>r&&(f===-1||f>a||(f=s.indexOf("\\",r),f===-1||f>a)))||D!==-1&&s[r]==="{"&&s[r+1]!=="}"&&(D=s.indexOf("}",r),D>r&&(f=s.indexOf("\\",r),f===-1||f>D))||l!==-1&&s[r]==="("&&s[r+1]==="?"&&/[:!=]/.test(s[r+2])&&s[r+3]!==")"&&(l=s.indexOf(")",r),l>r&&(f=s.indexOf("\\",r),f===-1||f>l))||o!==-1&&s[r]==="("&&s[r+1]!=="|"&&(o<r&&(o=s.indexOf("|",r)),o!==-1&&s[o+1]!==")"&&(l=s.indexOf(")",o),l>o&&(f=s.indexOf("\\",o),f===-1||f>l))))return!0;if(s[r]==="\\"){var C=s[r+1];r+=2;var h=t[C];if(h){var P=s.indexOf(h,r);P!==-1&&(r=P+1)}if(s[r]==="!")return!0}else r++}return!1},"strictCheck"),n=i(function(s){if(s[0]==="!")return!0;for(var r=0;r<s.length;){if(/[*?{}()[\]]/.test(s[r]))return!0;if(s[r]==="\\"){var o=s[r+1];r+=2;var a=t[o];if(a){var D=s.indexOf(a,r);D!==-1&&(r=D+1)}if(s[r]==="!")return!0}else r++}return!1},"relaxedCheck");return mt=i(function(r,o){if(typeof r!="string"||r==="")return!1;if(e(r))return!0;var a=u;return o&&o.strict===!1&&(a=n),a(r)},"isGlob"),mt}i(_t,"requireIsGlob");var At,ku;function Es(){if(ku)return At;ku=1;var e=_t(),t=ge.posix.dirname,u=Gt.platform()==="win32",n="/",s=/\\/g,r=/[\{\[].*[\}\]]$/,o=/(^|[^\\])([\{\[]|\([^\)]+$)/,a=/\\([\!\*\?\|\[\]\(\)\{\}])/g;return At=i(function(l,f){var C=Object.assign({flipBackslashes:!0},f);C.flipBackslashes&&u&&l.indexOf(n)<0&&(l=l.replace(s,n)),r.test(l)&&(l+=n),l+="a";do l=t(l);while(e(l)||o.test(l));return l.replace(a,"$1")},"globParent"),At}i(Es,"requireGlobParent");var yt={},Mu;function wt(){return Mu||(Mu=1,(function(e){e.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1,e.find=(t,u)=>t.nodes.find(n=>n.type===u),e.exceedsLimit=(t,u,n=1,s)=>s===!1||!e.isInteger(t)||!e.isInteger(u)?!1:(Number(u)-Number(t))/Number(n)>=s,e.escapeNode=(t,u=0,n)=>{let s=t.nodes[u];s&&(n&&s.type===n||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0)},e.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1,e.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,e.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0,e.reduce=t=>t.reduce((u,n)=>(n.type==="text"&&u.push(n.value),n.type==="range"&&(n.type="text"),u),[]),e.flatten=(...t)=>{const u=[],n=i(s=>{for(let r=0;r<s.length;r++){let o=s[r];Array.isArray(o)?n(o):o!==void 0&&u.push(o)}return u},"flat");return n(t),u}})(yt)),yt}i(wt,"requireUtils");var Rt,Wu;function vt(){if(Wu)return Rt;Wu=1;const e=wt();return Rt=i((t,u={})=>{let n=i((s,r={})=>{let o=u.escapeInvalid&&e.isInvalidBrace(r),a=s.invalid===!0&&u.escapeInvalid===!0,D="";if(s.value)return(o||a)&&e.isOpenOrClose(s)?"\\"+s.value:s.value;if(s.value)return s.value;if(s.nodes)for(let l of s.nodes)D+=n(l);return D},"stringify");return n(t)},"stringify"),Rt}i(vt,"requireStringify");var bt,Gu;function Cs(){if(Gu)return bt;Gu=1;/*!
|
|
38
38
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
39
39
|
*
|
|
40
40
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
41
41
|
* Released under the MIT License.
|
|
42
|
-
*/
|
|
42
|
+
*/return bt=i(function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1},"isNumber"),bt}i(Cs,"requireIsNumber");var Bt,ju;function Fs(){if(ju)return Bt;ju=1;/*!
|
|
43
43
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
44
44
|
*
|
|
45
45
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
46
46
|
* Released under the MIT License.
|
|
47
|
-
*/const
|
|
47
|
+
*/const e=Cs(),t=i((_,A,W)=>{if(e(_)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(A===void 0||_===A)return String(_);if(e(A)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let p={relaxZeros:!0,...W};typeof p.strictZeros=="boolean"&&(p.relaxZeros=p.strictZeros===!1);let B=String(p.relaxZeros),w=String(p.shorthand),I=String(p.capture),y=String(p.wrap),q=_+":"+A+"="+B+w+I+y;if(t.cache.hasOwnProperty(q))return t.cache[q].result;let m=Math.min(_,A),S=Math.max(_,A);if(Math.abs(m-S)===1){let Y=_+"|"+A;return p.capture?`(${Y})`:p.wrap===!1?Y:`(?:${Y})`}let N=$(_)||$(A),L={min:_,max:A,a:m,b:S},g=[],z=[];if(N&&(L.isPadded=N,L.maxLen=String(L.max).length),m<0){let Y=S<0?Math.abs(S):1;z=r(Y,Math.abs(m),L,p),m=L.a=0}return S>=0&&(g=r(m,S,L,p)),L.negatives=z,L.positives=g,L.result=u(z,g),p.capture===!0?L.result=`(${L.result})`:p.wrap!==!1&&g.length+z.length>1&&(L.result=`(?:${L.result})`),t.cache[q]=L,L.result},"toRegexRange");function u(_,A,W){let p=o(_,A,"-",!1)||[],B=o(A,_,"",!1)||[],w=o(_,A,"-?",!0)||[];return p.concat(w).concat(B).join("|")}i(u,"collatePatterns");function n(_,A){let W=1,p=1,B=f(_,W),w=new Set([A]);for(;_<=B&&B<=A;)w.add(B),W+=1,B=f(_,W);for(B=C(A+1,p)-1;_<B&&B<=A;)w.add(B),p+=1,B=C(A+1,p)-1;return w=[...w],w.sort(D),w}i(n,"splitToRanges");function s(_,A,W){if(_===A)return{pattern:_,count:[],digits:0};let p=a(_,A),B=p.length,w="",I=0;for(let y=0;y<B;y++){let[q,m]=p[y];q===m?w+=q:q!=="0"||m!=="9"?w+=P(q,m):I++}return I&&(w+=W.shorthand===!0?"\\d":"[0-9]"),{pattern:w,count:[I],digits:B}}i(s,"rangeToPattern");function r(_,A,W,p){let B=n(_,A),w=[],I=_,y;for(let q=0;q<B.length;q++){let m=B[q],S=s(String(I),String(m),p),N="";if(!W.isPadded&&y&&y.pattern===S.pattern){y.count.length>1&&y.count.pop(),y.count.push(S.count[0]),y.string=y.pattern+h(y.count),I=m+1;continue}W.isPadded&&(N=U(m,W,p)),S.string=N+S.pattern+h(S.count),w.push(S),I=m+1,y=S}return w}i(r,"splitToPatterns");function o(_,A,W,p,B){let w=[];for(let I of _){let{string:y}=I;!p&&!l(A,"string",y)&&w.push(W+y),p&&l(A,"string",y)&&w.push(W+y)}return w}i(o,"filterPatterns");function a(_,A){let W=[];for(let p=0;p<_.length;p++)W.push([_[p],A[p]]);return W}i(a,"zip");function D(_,A){return _>A?1:A>_?-1:0}i(D,"compare");function l(_,A,W){return _.some(p=>p[A]===W)}i(l,"contains");function f(_,A){return Number(String(_).slice(0,-A)+"9".repeat(A))}i(f,"countNines");function C(_,A){return _-_%Math.pow(10,A)}i(C,"countZeros");function h(_){let[A=0,W=""]=_;return W||A>1?`{${A+(W?","+W:"")}}`:""}i(h,"toQuantifier");function P(_,A,W){return`[${_}${A-_===1?"":"-"}${A}]`}i(P,"toCharacterClass");function $(_){return/^-?(0+)\d/.test(_)}i($,"hasPadding");function U(_,A,W){if(!A.isPadded)return _;let p=Math.abs(A.maxLen-String(_).length),B=W.relaxZeros!==!1;switch(p){case 0:return"";case 1:return B?"0?":"0";case 2:return B?"0{0,2}":"00";default:return B?`0{0,${p}}`:`0{${p}}`}}return i(U,"padZeros"),t.cache={},t.clearCache=()=>t.cache={},Bt=t,Bt}i(Fs,"requireToRegexRange");var St,qu;function Uu(){if(qu)return St;qu=1;/*!
|
|
48
48
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
49
49
|
*
|
|
50
50
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
51
51
|
* Licensed under the MIT License.
|
|
52
|
-
*/const
|
|
53
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"};const yD=Yt,{MAX_LENGTH:Zs,CHAR_BACKSLASH:Zt,CHAR_BACKTICK:wD,CHAR_COMMA:RD,CHAR_DOT:bD,CHAR_LEFT_PARENTHESES:vD,CHAR_RIGHT_PARENTHESES:SD,CHAR_LEFT_CURLY_BRACE:BD,CHAR_RIGHT_CURLY_BRACE:$D,CHAR_LEFT_SQUARE_BRACKET:Js,CHAR_RIGHT_SQUARE_BRACKET:en,CHAR_DOUBLE_QUOTE:TD,CHAR_SINGLE_QUOTE:xD,CHAR_NO_BREAK_SPACE:OD,CHAR_ZERO_WIDTH_NOBREAK_SPACE:ND}=AD,PD=a((t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},s=typeof u.maxLength=="number"?Math.min(Zs,u.maxLength):Zs;if(t.length>s)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${s})`);let n={type:"root",input:t,nodes:[]},r=[n],i=n,o=n,D=0,l=t.length,f=0,h=0,c;const C=a(()=>t[f++],"advance"),F=a(m=>{if(m.type==="text"&&o.type==="dot"&&(o.type="text"),o&&o.type==="text"&&m.type==="text"){o.value+=m.value;return}return i.nodes.push(m),m.parent=i,m.prev=o,o=m,m},"push");for(F({type:"bos"});f<l;)if(i=r[r.length-1],c=C(),!(c===ND||c===OD)){if(c===Zt){F({type:"text",value:(e.keepEscaping?c:"")+C()});continue}if(c===en){F({type:"text",value:"\\"+c});continue}if(c===Js){D++;let m;for(;f<l&&(m=C());){if(c+=m,m===Js){D++;continue}if(m===Zt){c+=C();continue}if(m===en&&(D--,D===0))break}F({type:"text",value:c});continue}if(c===vD){i=F({type:"paren",nodes:[]}),r.push(i),F({type:"text",value:c});continue}if(c===SD){if(i.type!=="paren"){F({type:"text",value:c});continue}i=r.pop(),F({type:"text",value:c}),i=r[r.length-1];continue}if(c===TD||c===xD||c===wD){let m=c,R;for(e.keepQuotes!==!0&&(c="");f<l&&(R=C());){if(R===Zt){c+=R+C();continue}if(R===m){e.keepQuotes===!0&&(c+=R);break}c+=R}F({type:"text",value:c});continue}if(c===BD){h++;let R={type:"brace",open:!0,close:!1,dollar:o.value&&o.value.slice(-1)==="$"||i.dollar===!0,depth:h,commas:0,ranges:0,nodes:[]};i=F(R),r.push(i),F({type:"open",value:c});continue}if(c===$D){if(i.type!=="brace"){F({type:"text",value:c});continue}let m="close";i=r.pop(),i.close=!0,F({type:m,value:c}),h--,i=r[r.length-1];continue}if(c===RD&&h>0){if(i.ranges>0){i.ranges=0;let m=i.nodes.shift();i.nodes=[m,{type:"text",value:yD(i)}]}F({type:"comma",value:c}),i.commas++;continue}if(c===bD&&h>0&&i.commas===0){let m=i.nodes;if(h===0||m.length===0){F({type:"text",value:c});continue}if(o.type==="dot"){if(i.range=[],o.value+=c,o.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,o.type="text";continue}i.ranges++,i.args=[];continue}if(o.type==="range"){m.pop();let R=m[m.length-1];R.value+=o.value+c,o=R,i.ranges--;continue}F({type:"dot",value:c});continue}F({type:"text",value:c})}do if(i=r.pop(),i.type!=="root"){i.nodes.forEach(T=>{T.nodes||(T.type==="open"&&(T.isOpen=!0),T.type==="close"&&(T.isClose=!0),T.nodes||(T.type="text"),T.invalid=!0)});let m=r[r.length-1],R=m.nodes.indexOf(i);m.nodes.splice(R,1,...i.nodes)}while(r.length>0);return F({type:"eos"}),n},"parse$1");var HD=PD;const tn=Yt,LD=FD,ID=_D,kD=HD,Q=a((t,e={})=>{let u=[];if(Array.isArray(t))for(let s of t){let n=Q.create(s,e);Array.isArray(n)?u.push(...n):u.push(n)}else u=[].concat(Q.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(u=[...new Set(u)]),u},"braces$1");Q.parse=(t,e={})=>kD(t,e),Q.stringify=(t,e={})=>tn(typeof t=="string"?Q.parse(t,e):t,e),Q.compile=(t,e={})=>(typeof t=="string"&&(t=Q.parse(t,e)),LD(t,e)),Q.expand=(t,e={})=>{typeof t=="string"&&(t=Q.parse(t,e));let u=ID(t,e);return e.noempty===!0&&(u=u.filter(Boolean)),e.nodupes===!0&&(u=[...new Set(u)]),u},Q.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?Q.compile(t,e):Q.expand(t,e);var MD=Q,WD=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],GD=WD;const jD=q,UD=GD,KD=new Set(UD);var VD=a(t=>KD.has(jD.extname(t).slice(1).toLowerCase()),"isBinaryPath$1"),ut={};(function(t){const{sep:e}=q,{platform:u}=process,s=wu;t.EV_ALL="all",t.EV_READY="ready",t.EV_ADD="add",t.EV_CHANGE="change",t.EV_ADD_DIR="addDir",t.EV_UNLINK="unlink",t.EV_UNLINK_DIR="unlinkDir",t.EV_RAW="raw",t.EV_ERROR="error",t.STR_DATA="data",t.STR_END="end",t.STR_CLOSE="close",t.FSEVENT_CREATED="created",t.FSEVENT_MODIFIED="modified",t.FSEVENT_DELETED="deleted",t.FSEVENT_MOVED="moved",t.FSEVENT_CLONED="cloned",t.FSEVENT_UNKNOWN="unknown",t.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,t.FSEVENT_TYPE_FILE="file",t.FSEVENT_TYPE_DIRECTORY="directory",t.FSEVENT_TYPE_SYMLINK="symlink",t.KEY_LISTENERS="listeners",t.KEY_ERR="errHandlers",t.KEY_RAW="rawEmitters",t.HANDLER_KEYS=[t.KEY_LISTENERS,t.KEY_ERR,t.KEY_RAW],t.DOT_SLASH=`.${e}`,t.BACK_SLASH_RE=/\\/g,t.DOUBLE_SLASH_RE=/\/\//,t.SLASH_OR_BACK_SLASH_RE=/[/\\]/,t.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,t.REPLACER_RE=/^\.[/\\]/,t.SLASH="/",t.SLASH_SLASH="//",t.BRACE_START="{",t.BANG="!",t.ONE_DOT=".",t.TWO_DOTS="..",t.STAR="*",t.GLOBSTAR="**",t.ROOT_GLOBSTAR="/**/*",t.SLASH_GLOBSTAR="/**",t.DIR_SUFFIX="Dir",t.ANYMATCH_OPTS={dot:!0},t.STRING_TYPE="string",t.FUNCTION_TYPE="function",t.EMPTY_STR="",t.EMPTY_FN=()=>{},t.IDENTITY_FN=n=>n,t.isWindows=u==="win32",t.isMacos=u==="darwin",t.isLinux=u==="linux",t.isIBMi=s.type()==="OS400"})(ut);const re=oe,G=q,{promisify:ve}=ge,zD=VD,{isWindows:YD,isLinux:qD,EMPTY_FN:XD,EMPTY_STR:QD,KEY_LISTENERS:Ce,KEY_ERR:Jt,KEY_RAW:Se,HANDLER_KEYS:ZD,EV_CHANGE:st,EV_ADD:nt,EV_ADD_DIR:JD,EV_ERROR:un,STR_DATA:ea,STR_END:ta,BRACE_START:ua,STAR:sa}=ut,na="watch",ra=ve(re.open),sn=ve(re.stat),ia=ve(re.lstat),oa=ve(re.close),eu=ve(re.realpath),Da={lstat:ia,stat:sn},tu=a((t,e)=>{t instanceof Set?t.forEach(e):e(t)},"foreach"),Be=a((t,e,u)=>{let s=t[e];s instanceof Set||(t[e]=s=new Set([s])),s.add(u)},"addAndConvert"),aa=a(t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},"clearItem"),$e=a((t,e,u)=>{const s=t[e];s instanceof Set?s.delete(u):s===u&&delete t[e]},"delFromSet"),nn=a(t=>t instanceof Set?t.size===0:!t,"isEmptySet"),rt=new Map;function rn(t,e,u,s,n){const r=a((i,o)=>{u(t),n(i,o,{watchedPath:t}),o&&t!==o&&it(G.resolve(t,o),Ce,G.join(t,o))},"handleEvent");try{return re.watch(t,e,r)}catch(i){s(i)}}a(rn,"createFsWatchInstance");const it=a((t,e,u,s,n)=>{const r=rt.get(t);r&&tu(r[e],i=>{i(u,s,n)})},"fsWatchBroadcast"),la=a((t,e,u,s)=>{const{listener:n,errHandler:r,rawEmitter:i}=s;let o=rt.get(e),D;if(!u.persistent)return D=rn(t,u,n,r,i),D.close.bind(D);if(o)Be(o,Ce,n),Be(o,Jt,r),Be(o,Se,i);else{if(D=rn(t,u,it.bind(null,e,Ce),r,it.bind(null,e,Se)),!D)return;D.on(un,async l=>{const f=it.bind(null,e,Jt);if(o.watcherUnusable=!0,YD&&l.code==="EPERM")try{const h=await ra(t,"r");await oa(h),f(l)}catch{}else f(l)}),o={listeners:n,errHandlers:r,rawEmitters:i,watcher:D},rt.set(e,o)}return()=>{$e(o,Ce,n),$e(o,Jt,r),$e(o,Se,i),nn(o.listeners)&&(o.watcher.close(),rt.delete(e),ZD.forEach(aa(o)),o.watcher=void 0,Object.freeze(o))}},"setFsWatchListener"),uu=new Map,ca=a((t,e,u,s)=>{const{listener:n,rawEmitter:r}=s;let i=uu.get(e);const o=i&&i.options;return o&&(o.persistent<u.persistent||o.interval>u.interval)&&(i.listeners,i.rawEmitters,re.unwatchFile(e),i=void 0),i?(Be(i,Ce,n),Be(i,Se,r)):(i={listeners:n,rawEmitters:r,options:u,watcher:re.watchFile(e,u,(D,l)=>{tu(i.rawEmitters,h=>{h(st,e,{curr:D,prev:l})});const f=D.mtimeMs;(D.size!==l.size||f>l.mtimeMs||f===0)&&tu(i.listeners,h=>h(t,D))})},uu.set(e,i)),()=>{$e(i,Ce,n),$e(i,Se,r),nn(i.listeners)&&(uu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}},"setFsWatchFileListener");let fa=class{static{a(this,"NodeFsHandler")}constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const s=this.fsw.options,n=G.dirname(e),r=G.basename(e);this.fsw._getWatchedDir(n).add(r);const o=G.resolve(e),D={persistent:s.persistent};u||(u=XD);let l;return s.usePolling?(D.interval=s.enableBinaryInterval&&zD(r)?s.binaryInterval:s.interval,l=ca(e,o,D,{listener:u,rawEmitter:this.fsw._emitRaw})):l=la(e,o,D,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),l}_handleFile(e,u,s){if(this.fsw.closed)return;const n=G.dirname(e),r=G.basename(e),i=this.fsw._getWatchedDir(n);let o=u;if(i.has(r))return;const D=a(async(f,h)=>{if(this.fsw._throttle(na,e,5)){if(!h||h.mtimeMs===0)try{const c=await sn(e);if(this.fsw.closed)return;const C=c.atimeMs,F=c.mtimeMs;(!C||C<=F||F!==o.mtimeMs)&&this.fsw._emit(st,e,c),qD&&o.ino!==c.ino?(this.fsw._closeFile(f),o=c,this.fsw._addPathCloser(f,this._watchWithNodeFs(e,D))):o=c}catch{this.fsw._remove(n,r)}else if(i.has(r)){const c=h.atimeMs,C=h.mtimeMs;(!c||c<=C||C!==o.mtimeMs)&&this.fsw._emit(st,e,h),o=h}}},"listener"),l=this._watchWithNodeFs(e,D);if(!(s&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(nt,e,0))return;this.fsw._emit(nt,e,u)}return l}async _handleSymlink(e,u,s,n){if(this.fsw.closed)return;const r=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let o;try{o=await eu(s)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(r)!==o&&(this.fsw._symlinkPaths.set(r,o),this.fsw._emit(st,s,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(r,o),this.fsw._emit(nt,s,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(r))return!0;this.fsw._symlinkPaths.set(r,!0)}_handleRead(e,u,s,n,r,i,o){if(e=G.join(e,QD),!s.hasGlob&&(o=this.fsw._throttle("readdir",e,1e3),!o))return;const D=this.fsw._getWatchedDir(s.path),l=new Set;let f=this.fsw._readdirp(e,{fileFilter:a(h=>s.filterPath(h),"fileFilter"),directoryFilter:a(h=>s.filterDir(h),"directoryFilter"),depth:0}).on(ea,async h=>{if(this.fsw.closed){f=void 0;return}const c=h.path;let C=G.join(e,c);if(l.add(c),!(h.stats.isSymbolicLink()&&await this._handleSymlink(h,e,C,c))){if(this.fsw.closed){f=void 0;return}(c===n||!n&&!D.has(c))&&(this.fsw._incrReadyCount(),C=G.join(r,G.relative(r,C)),this._addToNodeFs(C,u,s,i+1))}}).on(un,this._boundHandleError);return new Promise(h=>f.once(ta,()=>{if(this.fsw.closed){f=void 0;return}const c=o?o.clear():!1;h(),D.getChildren().filter(C=>C!==e&&!l.has(C)&&(!s.hasGlob||s.filterPath({fullPath:G.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),f=void 0,c&&this._handleRead(e,!1,s,n,r,i,o)}))}async _handleDir(e,u,s,n,r,i,o){const D=this.fsw._getWatchedDir(G.dirname(e)),l=D.has(G.basename(e));!(s&&this.fsw.options.ignoreInitial)&&!r&&!l&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(JD,e,u),D.add(G.basename(e)),this.fsw._getWatchedDir(e);let f,h;const c=this.fsw.options.depth;if((c==null||n<=c)&&!this.fsw._symlinkPaths.has(o)){if(!r&&(await this._handleRead(e,s,i,r,e,n,f),this.fsw.closed))return;h=this._watchWithNodeFs(e,(C,F)=>{F&&F.mtimeMs===0||this._handleRead(C,!1,i,r,e,n,f)})}return h}async _addToNodeFs(e,u,s,n,r){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const o=this.fsw._getWatchHelpers(e,n);!o.hasGlob&&s&&(o.hasGlob=s.hasGlob,o.globFilter=s.globFilter,o.filterPath=D=>s.filterPath(D),o.filterDir=D=>s.filterDir(D));try{const D=await Da[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))return i(),!1;const l=this.fsw.options.followSymlinks&&!e.includes(sa)&&!e.includes(ua);let f;if(D.isDirectory()){const h=G.resolve(e),c=l?await eu(e):e;if(this.fsw.closed||(f=await this._handleDir(o.watchPath,D,u,n,r,o,c),this.fsw.closed))return;h!==c&&c!==void 0&&this.fsw._symlinkPaths.set(h,c)}else if(D.isSymbolicLink()){const h=l?await eu(e):e;if(this.fsw.closed)return;const c=G.dirname(o.watchPath);if(this.fsw._getWatchedDir(c).add(o.watchPath),this.fsw._emit(nt,o.watchPath,D),f=await this._handleDir(c,D,u,n,e,o,h),this.fsw.closed)return;h!==void 0&&this.fsw._symlinkPaths.set(G.resolve(e),h)}else f=this._handleFile(o.watchPath,D,u);return i(),this.fsw._addPathCloser(e,f),!1}catch(D){if(this.fsw._handleError(D))return i(),e}}};var ha=fa,su={exports:{}};const nu=oe,j=q,{promisify:ru}=ge;let Fe;try{Fe=Ie("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(Fe){const t=process.version.match(/v(\d+)\.(\d+)/);if(t&&t[1]&&t[2]){const e=Number.parseInt(t[1],10),u=Number.parseInt(t[2],10);e===8&&u<16&&(Fe=void 0)}}const{EV_ADD:iu,EV_CHANGE:da,EV_ADD_DIR:on,EV_UNLINK:ot,EV_ERROR:Ea,STR_DATA:pa,STR_END:Ca,FSEVENT_CREATED:Fa,FSEVENT_MODIFIED:ga,FSEVENT_DELETED:ma,FSEVENT_MOVED:_a,FSEVENT_UNKNOWN:Aa,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:ya,FSEVENT_TYPE_FILE:wa,FSEVENT_TYPE_DIRECTORY:Te,FSEVENT_TYPE_SYMLINK:Dn,ROOT_GLOBSTAR:an,DIR_SUFFIX:Ra,DOT_SLASH:ln,FUNCTION_TYPE:ou,EMPTY_FN:ba,IDENTITY_FN:va}=ut,Sa=a(t=>isNaN(t)?{}:{depth:t},"Depth"),Du=ru(nu.stat),Ba=ru(nu.lstat),cn=ru(nu.realpath),$a={stat:Du,lstat:Ba},ce=new Map,Ta=10,xa=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),Oa=a((t,e)=>({stop:Fe.watch(t,e)}),"createFSEventsInstance");function Na(t,e,u,s){let n=j.extname(e)?j.dirname(e):e;const r=j.dirname(n);let i=ce.get(n);Pa(r)&&(n=r);const o=j.resolve(t),D=o!==e,l=a((h,c,C)=>{D&&(h=h.replace(e,o)),(h===o||!h.indexOf(o+j.sep))&&u(h,c,C)},"filteredListener");let f=!1;for(const h of ce.keys())if(e.indexOf(j.resolve(h)+j.sep)===0){n=h,i=ce.get(n),f=!0;break}return i||f?i.listeners.add(l):(i={listeners:new Set([l]),rawEmitter:s,watcher:Oa(n,(h,c)=>{if(!i.listeners.size||c&ya)return;const C=Fe.getInfo(h,c);i.listeners.forEach(F=>{F(h,c,C)}),i.rawEmitter(C.event,h,C)})},ce.set(n,i)),()=>{const h=i.listeners;if(h.delete(l),!h.size&&(ce.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}a(Na,"setFSEventsListener");const Pa=a(t=>{let e=0;for(const u of ce.keys())if(u.indexOf(t)===0&&(e++,e>=Ta))return!0;return!1},"couldConsolidate"),Ha=a(()=>Fe&&ce.size<128,"canUse"),au=a((t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=j.dirname(t))!==e;)u++;return u},"calcDepth"),fn=a((t,e)=>t.type===Te&&e.isDirectory()||t.type===Dn&&e.isSymbolicLink()||t.type===wa&&e.isFile(),"sameTypes");let La=class{static{a(this,"FsEventsHandler")}constructor(e){this.fsw=e}checkIgnored(e,u){const s=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return s.add(e),u&&u.isDirectory()&&s.add(e+an),!0;s.delete(e),s.delete(e+an)}addOrChange(e,u,s,n,r,i,o,D){const l=r.has(i)?da:iu;this.handleEvent(l,e,u,s,n,r,i,o,D)}async checkExists(e,u,s,n,r,i,o,D){try{const l=await Du(e);if(this.fsw.closed)return;fn(o,l)?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}catch(l){l.code==="EACCES"?this.addOrChange(e,u,s,n,r,i,o,D):this.handleEvent(ot,e,u,s,n,r,i,o,D)}}handleEvent(e,u,s,n,r,i,o,D,l){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===ot){const f=D.type===Te;(f||i.has(o))&&this.fsw._remove(r,o,f)}else{if(e===iu){if(D.type===Te&&this.fsw._getWatchedDir(u),D.type===Dn&&l.followSymlinks){const h=l.depth===void 0?void 0:au(s,n)+1;return this._addToFsEvents(u,!1,!0,h)}this.fsw._getWatchedDir(r).add(o)}const f=D.type===Te?e+Ra:e;this.fsw._emit(f,u),f===on&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,s,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const r=this.fsw.options,o=Na(e,u,a(async(D,l,f)=>{if(this.fsw.closed||r.depth!==void 0&&au(D,u)>r.depth)return;const h=s(j.join(e,j.relative(e,D)));if(n&&!n(h))return;const c=j.dirname(h),C=j.basename(h),F=this.fsw._getWatchedDir(f.type===Te?h:c);if(xa.has(l)||f.event===Aa)if(typeof r.ignored===ou){let m;try{m=await Du(h)}catch{}if(this.fsw.closed||this.checkIgnored(h,m))return;fn(f,m)?this.addOrChange(h,D,u,c,F,C,f,r):this.handleEvent(ot,h,D,u,c,F,C,f,r)}else this.checkExists(h,D,u,c,F,C,f,r);else switch(f.event){case Fa:case ga:return this.addOrChange(h,D,u,c,F,C,f,r);case ma:case _a:return this.checkExists(h,D,u,c,F,C,f,r)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),o}async _handleFsEventsSymlink(e,u,s,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const r=await cn(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(r))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(r||e,i=>{let o=e;return r&&r!==ln?o=i.replace(r,e):i!==ln&&(o=j.join(e,i)),s(o)},!1,n)}catch(r){if(this.fsw._handleError(r))return this.fsw._emitReady()}}}emitAdd(e,u,s,n,r){const i=s(e),o=u.isDirectory(),D=this.fsw._getWatchedDir(j.dirname(i)),l=j.basename(i);o&&this.fsw._getWatchedDir(i),!D.has(l)&&(D.add(l),(!n.ignoreInitial||r===!0)&&this.fsw._emit(o?on:iu,i,u))}initWatch(e,u,s,n){if(this.fsw.closed)return;const r=this._watchWithFsEvents(s.watchPath,j.resolve(e||s.watchPath),n,s.globFilter);this.fsw._addPathCloser(u,r)}async _addToFsEvents(e,u,s,n){if(this.fsw.closed)return;const r=this.fsw.options,i=typeof u===ou?u:va,o=this.fsw._getWatchHelpers(e);try{const D=await $a[o.statMethod](o.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(o.watchPath,D))throw null;if(D.isDirectory()){if(o.globFilter||this.emitAdd(i(e),D,i,r,s),n&&n>r.depth)return;this.fsw._readdirp(o.watchPath,{fileFilter:a(l=>o.filterPath(l),"fileFilter"),directoryFilter:a(l=>o.filterDir(l),"directoryFilter"),...Sa(r.depth-(n||0))}).on(pa,l=>{if(this.fsw.closed||l.stats.isDirectory()&&!o.filterPath(l))return;const f=j.join(o.watchPath,l.path),{fullPath:h}=l;if(o.followSymlinks&&l.stats.isSymbolicLink()){const c=r.depth===void 0?void 0:au(f,j.resolve(o.watchPath))+1;this._handleFsEventsSymlink(f,h,i,c)}else this.emitAdd(f,l.stats,i,r,s)}).on(Ea,ba).on(Ca,()=>{this.fsw._emitReady()})}else this.emitAdd(o.watchPath,D,i,r,s),this.fsw._emitReady()}catch(D){(!D||this.fsw._handleError(D))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(r.persistent&&s!==!0)if(typeof u===ou)this.initWatch(void 0,e,o,i);else{let D;try{D=await cn(o.watchPath)}catch{}this.initWatch(D,e,o,i)}}};su.exports=La,su.exports.canUse=Ha;var Ia=su.exports;const{EventEmitter:ka}=kn,lu=oe,x=q,{promisify:hn}=ge,Ma=No,cu=Mo.default,Wa=Zo,fu=Vt,Ga=MD,ja=Ss,Ua=ha,dn=Ia,{EV_ALL:hu,EV_READY:Ka,EV_ADD:Dt,EV_CHANGE:xe,EV_UNLINK:En,EV_ADD_DIR:Va,EV_UNLINK_DIR:za,EV_RAW:Ya,EV_ERROR:du,STR_CLOSE:qa,STR_END:Xa,BACK_SLASH_RE:Qa,DOUBLE_SLASH_RE:pn,SLASH_OR_BACK_SLASH_RE:Za,DOT_RE:Ja,REPLACER_RE:el,SLASH:Eu,SLASH_SLASH:tl,BRACE_START:ul,BANG:pu,ONE_DOT:Cn,TWO_DOTS:sl,GLOBSTAR:nl,SLASH_GLOBSTAR:Cu,ANYMATCH_OPTS:Fu,STRING_TYPE:gu,FUNCTION_TYPE:rl,EMPTY_STR:mu,EMPTY_FN:il,isWindows:ol,isMacos:Dl,isIBMi:al}=ut,ll=hn(lu.stat),cl=hn(lu.readdir),_u=a((t=[])=>Array.isArray(t)?t:[t],"arrify"),Fn=a((t,e=[])=>(t.forEach(u=>{Array.isArray(u)?Fn(u,e):e.push(u)}),e),"flatten"),gn=a(t=>{const e=Fn(_u(t));if(!e.every(u=>typeof u===gu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(_n)},"unifyPaths"),mn=a(t=>{let e=t.replace(Qa,Eu),u=!1;for(e.startsWith(tl)&&(u=!0);e.match(pn);)e=e.replace(pn,Eu);return u&&(e=Eu+e),e},"toUnix"),_n=a(t=>mn(x.normalize(mn(t))),"normalizePathToUnix"),An=a((t=mu)=>e=>typeof e!==gu?e:_n(x.isAbsolute(e)?e:x.join(t,e)),"normalizeIgnored"),fl=a((t,e)=>x.isAbsolute(t)?t:t.startsWith(pu)?pu+x.join(e,t.slice(1)):x.join(e,t),"getAbsolutePath"),J=a((t,e)=>t[e]===void 0,"undef");class hl{static{a(this,"DirEntry")}constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;u&&e!==Cn&&e!==sl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const s=this.path;try{await cl(s)}catch{this._removeWatcher&&this._removeWatcher(x.dirname(s),x.basename(s))}}has(e){const{items:u}=this;if(u)return u.has(e)}getChildren(){const{items:e}=this;if(e)return[...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const dl="stat",El="lstat";class pl{static{a(this,"WatchHelper")}constructor(e,u,s,n){this.fsw=n,this.path=e=e.replace(el,mu),this.watchPath=u,this.fullWatchPath=x.resolve(u),this.hasGlob=u!==e,e===mu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&s?void 0:!1,this.globFilter=this.hasGlob?cu(e,void 0,Fu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(r=>{r.length>1&&r.pop()}),this.followSymlinks=s,this.statMethod=s?dl:El}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return x.join(this.watchPath,x.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const s=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(s):!0)&&this.fsw._isntIgnored(s,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(ul)?Ga.expand(e):[e]).forEach(n=>{u.push(x.relative(this.watchPath,n).split(Za))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let s=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((r,i)=>(r===nl&&(s=!0),s||!u[0][i]||cu(r,u[0][i],Fu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class Cl extends ka{static{a(this,"FSWatcher")}constructor(e){super();const u={};e&&Object.assign(u,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,J(u,"persistent")&&(u.persistent=!0),J(u,"ignoreInitial")&&(u.ignoreInitial=!1),J(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),J(u,"interval")&&(u.interval=100),J(u,"binaryInterval")&&(u.binaryInterval=300),J(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,J(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),dn.canUse()||(u.useFsEvents=!1),J(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=Dl),al&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const D=n.toLowerCase();D==="false"||D==="0"?u.usePolling=!1:D==="true"||D==="1"?u.usePolling=!0:u.usePolling=!!D}const r=process.env.CHOKIDAR_INTERVAL;r&&(u.interval=Number.parseInt(r,10)),J(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),J(u,"followSymlinks")&&(u.followSymlinks=!0),J(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const i=u.awaitWriteFinish;i&&(i.stabilityThreshold||(i.stabilityThreshold=2e3),i.pollInterval||(i.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=_u(u.ignored));let o=0;this._emitReady=()=>{o++,o>=this._readyCount&&(this._emitReady=il,this._readyEmitted=!0,process.nextTick(()=>this.emit(Ka)))},this._emitRaw=(...D)=>this.emit(Ya,...D),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new dn(this):this._nodeFsHandler=new Ua(this),Object.freeze(u)}add(e,u,s){const{cwd:n,disableGlobbing:r}=this.options;this.closed=!1;let i=gn(e);return n&&(i=i.map(o=>{const D=fl(o,n);return r||!fu(o)?D:ja(D)})),i=i.filter(o=>o.startsWith(pu)?(this._ignoredPaths.add(o.slice(1)),!1):(this._ignoredPaths.delete(o),this._ignoredPaths.delete(o+Cu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount+=i.length),i.forEach(o=>this._fsEventsHandler._addToFsEvents(o))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async o=>{const D=await this._nodeFsHandler._addToNodeFs(o,!s,0,0,u);return D&&this._emitReady(),D})).then(o=>{this.closed||o.filter(D=>D).forEach(D=>{this.add(x.dirname(D),x.basename(u||D))})})),this}unwatch(e){if(this.closed)return this;const u=gn(e),{cwd:s}=this.options;return u.forEach(n=>{!x.isAbsolute(n)&&!this._closers.has(n)&&(s&&(n=x.join(s,n)),n=x.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+Cu),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const e=[];return this._closers.forEach(u=>u.forEach(s=>{const n=s();n instanceof Promise&&e.push(n)})),this._streams.forEach(u=>u.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(u=>u.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(u=>{this[`_${u}`].clear()}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const e={};return this._watched.forEach((u,s)=>{const n=this.options.cwd?x.relative(this.options.cwd,s):s;e[n||Cn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==du&&this.emit(hu,...u)}async _emit(e,u,s,n,r){if(this.closed)return;const i=this.options;ol&&(u=x.normalize(u)),i.cwd&&(u=x.relative(i.cwd,u));const o=[e,u];r!==void 0?o.push(s,n,r):n!==void 0?o.push(s,n):s!==void 0&&o.push(s);const D=i.awaitWriteFinish;let l;if(D&&(l=this._pendingWrites.get(u)))return l.lastChange=new Date,this;if(i.atomic){if(e===En)return this._pendingUnlinks.set(u,o),setTimeout(()=>{this._pendingUnlinks.forEach((f,h)=>{this.emit(...f),this.emit(hu,...f),this._pendingUnlinks.delete(h)})},typeof i.atomic=="number"?i.atomic:100),this;e===Dt&&this._pendingUnlinks.has(u)&&(e=o[0]=xe,this._pendingUnlinks.delete(u))}if(D&&(e===Dt||e===xe)&&this._readyEmitted){const f=a((h,c)=>{h?(e=o[0]=du,o[1]=h,this.emitWithAll(e,o)):c&&(o.length>2?o[2]=c:o.push(c),this.emitWithAll(e,o))},"awfEmit");return this._awaitWriteFinish(u,D.stabilityThreshold,e,f),this}if(e===xe&&!this._throttle(xe,u,50))return this;if(i.alwaysStat&&s===void 0&&(e===Dt||e===Va||e===xe)){const f=i.cwd?x.join(i.cwd,u):u;let h;try{h=await ll(f)}catch{}if(!h||this.closed)return;o.push(h)}return this.emitWithAll(e,o),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(du,e),e||this.closed}_throttle(e,u,s){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),r=n.get(u);if(r)return r.count++,!1;let i;const o=a(()=>{const l=n.get(u),f=l?l.count:0;return n.delete(u),clearTimeout(i),l&&clearTimeout(l.timeoutObject),f},"clear");i=setTimeout(o,s);const D={timeoutObject:i,clear:o,count:0};return n.set(u,D),D}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,s,n){let r,i=e;this.options.cwd&&!x.isAbsolute(e)&&(i=x.join(this.options.cwd,e));const o=new Date,D=a(l=>{lu.stat(i,(f,h)=>{if(f||!this._pendingWrites.has(e)){f&&f.code!=="ENOENT"&&n(f);return}const c=Number(new Date);l&&h.size!==l.size&&(this._pendingWrites.get(e).lastChange=c);const C=this._pendingWrites.get(e);c-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,h)):r=setTimeout(D,this.options.awaitWriteFinish.pollInterval,h)})},"awaitWriteFinish");this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:o,cancelWait:a(()=>(this._pendingWrites.delete(e),clearTimeout(r),s),"cancelWait")}),r=setTimeout(D,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Ja.test(e))return!0;if(!this._userIgnored){const{cwd:s}=this.options,n=this.options.ignored,r=n&&n.map(An(s)),i=_u(r).filter(D=>typeof D===gu&&!fu(D)).map(D=>D+Cu),o=this._getGlobIgnored().map(An(s)).concat(r,i);this._userIgnored=cu(o,void 0,Fu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const s=u||this.options.disableGlobbing||!fu(e)?e:Wa(e),n=this.options.followSymlinks;return new pl(e,s,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=x.resolve(e);return this._watched.has(u)||this._watched.set(u,new hl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const s=(e&&Number.parseInt(e.mode,10))&511;return!!(4&Number.parseInt(s.toString(8)[0],10))}_remove(e,u,s){const n=x.join(e,u),r=x.resolve(n);if(s=s??(this._watched.has(n)||this._watched.has(r)),!this._throttle("remove",n,100))return;!s&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(c=>this._remove(n,c));const D=this._getWatchedDir(e),l=D.has(u);D.remove(u),this._symlinkPaths.has(r)&&this._symlinkPaths.delete(r);let f=n;if(this.options.cwd&&(f=x.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(f)&&this._pendingWrites.get(f).cancelWait()===Dt)return;this._watched.delete(n),this._watched.delete(r);const h=s?za:En;l&&!this._isIgnored(n)&&this._emit(h,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=x.dirname(e);this._getWatchedDir(u).remove(x.basename(e))}_closeFile(e){const u=this._closers.get(e);u&&(u.forEach(s=>s()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let s=this._closers.get(e);s||(s=[],this._closers.set(e,s)),s.push(u)}_readdirp(e,u){if(this.closed)return;const s={type:hu,alwaysStat:!0,lstat:!0,...u};let n=Ma(e,s);return this._streams.add(n),n.once(qa,()=>{n=void 0}),n.once(Xa,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}var Au=Cl;const at=a((t=!0)=>{let e=!1;return u=>{if(e||u==="unknown-flag")return!0;if(u==="argument")return e=!0,t}},"ignoreAfterArgument"),yn=a((t,e=process.argv.slice(2))=>(bu(t,e,{ignore:at()}),e),"removeArgvFlags"),Fl=a(t=>{let e=Buffer.alloc(0);return u=>{for(e=Buffer.concat([e,u]);e.length>4;){const s=e.readInt32BE(0);if(e.length>=4+s){const n=e.slice(4,4+s);t(n),e=e.slice(4+s)}else break}}},"bufferData"),wn=a(async()=>{const t=Kn.createServer(u=>{u.on("data",Fl(s=>{const n=JSON.parse(s.toString());t.emit("data",n)}))}),e=xn(process.pid);return await Me.promises.mkdir(Vn,{recursive:!0}),await Me.promises.rm(e,{force:!0}),await new Promise((u,s)=>{t.listen(e,u),t.on("error",s)}),t.unref(),process.on("exit",()=>{if(t.close(),!On)try{Me.rmSync(e)}catch{}}),t},"createIpcServer"),gl=a(()=>new Date().toLocaleTimeString(),"currentTime"),Oe=a((...t)=>console.log(Wn(gl()),Gn("[tsx]"),...t),"log"),ml="\x1Bc",_l=a((t,e)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(t,this,arguments),e)}},"debounce"),Rn={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},Al=li({name:"watch",parameters:["<script path>"],flags:Rn,help:{description:"Run the script and watch for changes"},ignoreArgv:at(!1)},async t=>{const e=yn(Rn,process.argv.slice(3)),u={noCache:t.flags.noCache,tsconfigPath:t.flags.tsconfig,clearScreen:t.flags.clearScreen,include:t.flags.include,exclude:[...t.flags.ignore,...t.flags.exclude],ipc:!0};let s,n=!1;const r=process.cwd(),i=new Map,o=a((g,w)=>{const d=ke.resolve(w),b=i.get(d);if(g==="add"||g==="addDir"||g==="unlink"||g==="unlinkDir")b&&(clearTimeout(b.expiration),i.delete(d));else if(b)return`${g}:${b.path}`;let v;try{v=Me.realpathSync.native(d)}catch{v=d}const W={path:v,expiration:setTimeout(()=>{i.get(d)===W&&i.delete(d)},1e3)};return W.expiration.unref(),i.set(d,W),`${g}:${v}`},"getEventKey"),D=t._.map(g=>ke.resolve(g));let l,f,h=!1;const c=new Map,C=a(g=>{const w=ke.resolve(g);return process.platform==="win32"?w.toLowerCase():w},"getPathKey"),F=new Set;for(const g of u.include)if(g.startsWith("!")){const w=g.slice(1);Os(w)||F.add(C(w))}else Os(g)||F.delete(C(g));(await wn()).on("data",g=>{if(g&&typeof g=="object"&&"type"in g&&g.type==="dependency"&&"path"in g&&typeof g.path=="string"){const w=g.path.startsWith("file:")?Pn(g.path):g.path;ke.isAbsolute(w)&&(F.has(C(w))?(f||(f=new Au({...I,disableGlobbing:!0}),f.on("all",(d,b)=>{Z("literal",d,b)})),f.add(w)):l.add(w))}});const R=a(()=>{if(!n)return as(e,u)},"spawnProcess");let T=!1;const H=a(async(g,w="SIGTERM",d=5e3)=>{let b=!1;const v=new Promise(W=>{g.on("exit",E=>{b=!0,T=!1,W(E)})});return T=!0,g.kill(w),setTimeout(()=>{b||(Oe(me(`Process didn't exit in ${Math.floor(d/1e3)}s. Force killing...`)),g.kill("SIGKILL"))},d),await v},"killProcess"),O=_l(async(g,w)=>{const d=g?`${g?jn(g):""}${w?` in ${Un(`./${w}`)}`:""}`:"";if(T){Oe(d,me("Process hasn't exited. Killing process...")),s.kill("SIGKILL");return}s&&(s.exitCode===null?(Oe(d,me("Restarting...")),await H(s)):Oe(d,me("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(ml)),s=R()},100),z=a(g=>{n=!0,s?.exitCode===null?(T&&Oe(me("Previous process hasn't exited yet. Force killing...")),H(s,T?"SIGKILL":g).then(w=>{process.exit(w??0)},()=>{})):process.exit(128+ft.signals[g])},"relaySignal");process.on("SIGINT",z),process.on("SIGTERM",z);const I={cwd:r,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},Z=a((g,w,d)=>{if(!h)return;const b=o(w,d),v=c.get(b);if(v&&v.source!==g){clearTimeout(v.expiration),c.delete(b);return}v&&clearTimeout(v.expiration);const W={source:g,expiration:setTimeout(()=>{c.get(b)===W&&c.delete(b)},1e3)};W.expiration.unref(),c.set(b,W),O(w,d)},"handleWatchEvent");l=new Au({...I,disableGlobbing:!0}),l.on("all",(g,w)=>{Z("literal",g,w)});const M=a(g=>new Promise(w=>{g.once("ready",w)}),"waitForReady"),y=[M(l)];if(l.add(D),u.include.some(g=>!g.startsWith("!"))){const g=new Au(I);g.on("all",(w,d)=>{Z("include",w,d)}),y.push(M(g)),g.add(u.include)}await Promise.all(y),l.add(u.include.filter(g=>g.startsWith("!"))),h=!0,s=R(),process.stdin.on("data",()=>O("Return key"))}),yl=a((t,e)=>{let u;e.on("data",r=>{r&&r.type==="signal"&&u&&u(r.signal)});const s=a(()=>{const r=new Promise(i=>{setTimeout(()=>i(void 0),30),u=i});return r.then(()=>{u=void 0},()=>{}),r},"waitForSignalFromChild"),n=a(async r=>{await s()!==r&&(t.kill(r),await s()!==r&&(t.on("exit",()=>{const D=ft.signals[r];process.exit(128+D)}),t.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",n),process.on("SIGTERM",n)},"relaySignals"),bn={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};Vu({name:"tsx",parameters:["[script path]"],commands:[Al],flags:{...bn,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:at()},async t=>{t.flags.version?process.stdout.write(`tsx v${Tn}
|
|
54
|
-
node `):
|
|
55
|
-
`));const
|
|
52
|
+
*/const e=ve,t=Fs(),u=i(p=>p!==null&&typeof p=="object"&&!Array.isArray(p),"isObject"),n=i(p=>B=>p===!0?Number(B):String(B),"transform"),s=i(p=>typeof p=="number"||typeof p=="string"&&p!=="","isValidValue"),r=i(p=>Number.isInteger(+p),"isNumber"),o=i(p=>{let B=`${p}`,w=-1;if(B[0]==="-"&&(B=B.slice(1)),B==="0")return!1;for(;B[++w]==="0";);return w>0},"zeros"),a=i((p,B,w)=>typeof p=="string"||typeof B=="string"?!0:w.stringify===!0,"stringify"),D=i((p,B,w)=>{if(B>0){let I=p[0]==="-"?"-":"";I&&(p=p.slice(1)),p=I+p.padStart(I?B-1:B,"0")}return w===!1?String(p):p},"pad"),l=i((p,B)=>{let w=p[0]==="-"?"-":"";for(w&&(p=p.slice(1),B--);p.length<B;)p="0"+p;return w?"-"+p:p},"toMaxLen"),f=i((p,B)=>{p.negatives.sort((m,S)=>m<S?-1:m>S?1:0),p.positives.sort((m,S)=>m<S?-1:m>S?1:0);let w=B.capture?"":"?:",I="",y="",q;return p.positives.length&&(I=p.positives.join("|")),p.negatives.length&&(y=`-(${w}${p.negatives.join("|")})`),I&&y?q=`${I}|${y}`:q=I||y,B.wrap?`(${w}${q})`:q},"toSequence"),C=i((p,B,w,I)=>{if(w)return t(p,B,{wrap:!1,...I});let y=String.fromCharCode(p);if(p===B)return y;let q=String.fromCharCode(B);return`[${y}-${q}]`},"toRange"),h=i((p,B,w)=>{if(Array.isArray(p)){let I=w.wrap===!0,y=w.capture?"":"?:";return I?`(${y}${p.join("|")})`:p.join("|")}return t(p,B,w)},"toRegex"),P=i((...p)=>new RangeError("Invalid range arguments: "+e.inspect(...p)),"rangeError"),$=i((p,B,w)=>{if(w.strictRanges===!0)throw P([p,B]);return[]},"invalidRange"),U=i((p,B)=>{if(B.strictRanges===!0)throw new TypeError(`Expected step "${p}" to be a number`);return[]},"invalidStep"),_=i((p,B,w=1,I={})=>{let y=Number(p),q=Number(B);if(!Number.isInteger(y)||!Number.isInteger(q)){if(I.strictRanges===!0)throw P([p,B]);return[]}y===0&&(y=0),q===0&&(q=0);let m=y>q,S=String(p),N=String(B),L=String(w);w=Math.max(Math.abs(w),1);let g=o(S)||o(N)||o(L),z=g?Math.max(S.length,N.length,L.length):0,Y=g===!1&&a(p,B,I)===!1,J=I.transform||n(Y);if(I.toRegex&&w===1)return C(l(p,z),l(B,z),!0,I);let ue={negatives:[],positives:[]},De=i(R=>ue[R<0?"negatives":"positives"].push(Math.abs(R)),"push"),de=[],le=0;for(;m?y>=q:y<=q;)I.toRegex===!0&&w>1?De(y):de.push(D(J(y,le),z,Y)),y=m?y-w:y+w,le++;return I.toRegex===!0?w>1?f(ue,I):h(de,null,{wrap:!1,...I}):de},"fillNumbers"),A=i((p,B,w=1,I={})=>{if(!r(p)&&p.length>1||!r(B)&&B.length>1)return $(p,B,I);let y=I.transform||(Y=>String.fromCharCode(Y)),q=`${p}`.charCodeAt(0),m=`${B}`.charCodeAt(0),S=q>m,N=Math.min(q,m),L=Math.max(q,m);if(I.toRegex&&w===1)return C(N,L,!1,I);let g=[],z=0;for(;S?q>=m:q<=m;)g.push(y(q,z)),q=S?q-w:q+w,z++;return I.toRegex===!0?h(g,null,{wrap:!1,options:I}):g},"fillLetters"),W=i((p,B,w,I={})=>{if(B==null&&s(p))return[p];if(!s(p)||!s(B))return $(p,B,I);if(typeof w=="function")return W(p,B,1,{transform:w});if(u(w))return W(p,B,0,w);let y={...I};return y.capture===!0&&(y.wrap=!0),w=w||y.step||1,r(w)?r(p)&&r(B)?_(p,B,w,y):A(p,B,Math.max(Math.abs(w),1),y):w!=null&&!u(w)?U(w,y):W(p,B,1,w)},"fill");return St=W,St}i(Uu,"requireFillRange");var xt,Ku;function gs(){if(Ku)return xt;Ku=1;const e=Uu(),t=wt();return xt=i((n,s={})=>{let r=i((o,a={})=>{let D=t.isInvalidBrace(a),l=o.invalid===!0&&s.escapeInvalid===!0,f=D===!0||l===!0,C=s.escapeInvalid===!0?"\\":"",h="";if(o.isOpen===!0||o.isClose===!0)return C+o.value;if(o.type==="open")return f?C+o.value:"(";if(o.type==="close")return f?C+o.value:")";if(o.type==="comma")return o.prev.type==="comma"?"":f?o.value:"|";if(o.value)return o.value;if(o.nodes&&o.ranges>0){let P=t.reduce(o.nodes),$=e(...P,{...s,wrap:!1,toRegex:!0});if($.length!==0)return P.length>1&&$.length>1?`(${$})`:$}if(o.nodes)for(let P of o.nodes)h+=r(P,o);return h},"walk");return r(n)},"compile"),xt}i(gs,"requireCompile");var Tt,zu;function ms(){if(zu)return Tt;zu=1;const e=Uu(),t=vt(),u=wt(),n=i((r="",o="",a=!1)=>{let D=[];if(r=[].concat(r),o=[].concat(o),!o.length)return r;if(!r.length)return a?u.flatten(o).map(l=>`{${l}}`):o;for(let l of r)if(Array.isArray(l))for(let f of l)D.push(n(f,o,a));else for(let f of o)a===!0&&typeof f=="string"&&(f=`{${f}}`),D.push(Array.isArray(f)?n(l,f,a):l+f);return u.flatten(D)},"append");return Tt=i((r,o={})=>{let a=o.rangeLimit===void 0?1e3:o.rangeLimit,D=i((l,f={})=>{l.queue=[];let C=f,h=f.queue;for(;C.type!=="brace"&&C.type!=="root"&&C.parent;)C=C.parent,h=C.queue;if(l.invalid||l.dollar){h.push(n(h.pop(),t(l,o)));return}if(l.type==="brace"&&l.invalid!==!0&&l.nodes.length===2){h.push(n(h.pop(),["{}"]));return}if(l.nodes&&l.ranges>0){let _=u.reduce(l.nodes);if(u.exceedsLimit(..._,o.step,a))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=e(..._,o);A.length===0&&(A=t(l,o)),h.push(n(h.pop(),A)),l.nodes=[];return}let P=u.encloseBrace(l),$=l.queue,U=l;for(;U.type!=="brace"&&U.type!=="root"&&U.parent;)U=U.parent,$=U.queue;for(let _=0;_<l.nodes.length;_++){let A=l.nodes[_];if(A.type==="comma"&&l.type==="brace"){_===1&&$.push(""),$.push("");continue}if(A.type==="close"){h.push(n(h.pop(),$,P));continue}if(A.value&&A.type!=="open"){$.push(n($.pop(),A.value));continue}A.nodes&&D(A,l)}return $},"walk");return u.flatten(D(r))},"expand"),Tt}i(ms,"requireExpand");var $t,Vu;function _s(){return Vu||(Vu=1,$t={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:`
|
|
53
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}),$t}i(_s,"requireConstants$1");var Ot,Yu;function As(){if(Yu)return Ot;Yu=1;const e=vt(),{MAX_LENGTH:t,CHAR_BACKSLASH:u,CHAR_BACKTICK:n,CHAR_COMMA:s,CHAR_DOT:r,CHAR_LEFT_PARENTHESES:o,CHAR_RIGHT_PARENTHESES:a,CHAR_LEFT_CURLY_BRACE:D,CHAR_RIGHT_CURLY_BRACE:l,CHAR_LEFT_SQUARE_BRACKET:f,CHAR_RIGHT_SQUARE_BRACKET:C,CHAR_DOUBLE_QUOTE:h,CHAR_SINGLE_QUOTE:P,CHAR_NO_BREAK_SPACE:$,CHAR_ZERO_WIDTH_NOBREAK_SPACE:U}=_s();return Ot=i((A,W={})=>{if(typeof A!="string")throw new TypeError("Expected a string");let p=W||{},B=typeof p.maxLength=="number"?Math.min(t,p.maxLength):t;if(A.length>B)throw new SyntaxError(`Input length (${A.length}), exceeds max characters (${B})`);let w={type:"root",input:A,nodes:[]},I=[w],y=w,q=w,m=0,S=A.length,N=0,L=0,g;const z=i(()=>A[N++],"advance"),Y=i(J=>{if(J.type==="text"&&q.type==="dot"&&(q.type="text"),q&&q.type==="text"&&J.type==="text"){q.value+=J.value;return}return y.nodes.push(J),J.parent=y,J.prev=q,q=J,J},"push");for(Y({type:"bos"});N<S;)if(y=I[I.length-1],g=z(),!(g===U||g===$)){if(g===u){Y({type:"text",value:(W.keepEscaping?g:"")+z()});continue}if(g===C){Y({type:"text",value:"\\"+g});continue}if(g===f){m++;let J;for(;N<S&&(J=z());){if(g+=J,J===f){m++;continue}if(J===u){g+=z();continue}if(J===C&&(m--,m===0))break}Y({type:"text",value:g});continue}if(g===o){y=Y({type:"paren",nodes:[]}),I.push(y),Y({type:"text",value:g});continue}if(g===a){if(y.type!=="paren"){Y({type:"text",value:g});continue}y=I.pop(),Y({type:"text",value:g}),y=I[I.length-1];continue}if(g===h||g===P||g===n){let J=g,ue;for(W.keepQuotes!==!0&&(g="");N<S&&(ue=z());){if(ue===u){g+=ue+z();continue}if(ue===J){W.keepQuotes===!0&&(g+=ue);break}g+=ue}Y({type:"text",value:g});continue}if(g===D){L++;let ue={type:"brace",open:!0,close:!1,dollar:q.value&&q.value.slice(-1)==="$"||y.dollar===!0,depth:L,commas:0,ranges:0,nodes:[]};y=Y(ue),I.push(y),Y({type:"open",value:g});continue}if(g===l){if(y.type!=="brace"){Y({type:"text",value:g});continue}let J="close";y=I.pop(),y.close=!0,Y({type:J,value:g}),L--,y=I[I.length-1];continue}if(g===s&&L>0){if(y.ranges>0){y.ranges=0;let J=y.nodes.shift();y.nodes=[J,{type:"text",value:e(y)}]}Y({type:"comma",value:g}),y.commas++;continue}if(g===r&&L>0&&y.commas===0){let J=y.nodes;if(L===0||J.length===0){Y({type:"text",value:g});continue}if(q.type==="dot"){if(y.range=[],q.value+=g,q.type="range",y.nodes.length!==3&&y.nodes.length!==5){y.invalid=!0,y.ranges=0,q.type="text";continue}y.ranges++,y.args=[];continue}if(q.type==="range"){J.pop();let ue=J[J.length-1];ue.value+=q.value+g,q=ue,y.ranges--;continue}Y({type:"dot",value:g});continue}Y({type:"text",value:g})}do if(y=I.pop(),y.type!=="root"){y.nodes.forEach(De=>{De.nodes||(De.type==="open"&&(De.isOpen=!0),De.type==="close"&&(De.isClose=!0),De.nodes||(De.type="text"),De.invalid=!0)});let J=I[I.length-1],ue=J.nodes.indexOf(y);J.nodes.splice(ue,1,...y.nodes)}while(I.length>0);return Y({type:"eos"}),w},"parse"),Ot}i(As,"requireParse");var Pt,Xu;function ys(){if(Xu)return Pt;Xu=1;const e=vt(),t=gs(),u=ms(),n=As(),s=i((r,o={})=>{let a=[];if(Array.isArray(r))for(let D of r){let l=s.create(D,o);Array.isArray(l)?a.push(...l):a.push(l)}else a=[].concat(s.create(r,o));return o&&o.expand===!0&&o.nodupes===!0&&(a=[...new Set(a)]),a},"braces");return s.parse=(r,o={})=>n(r,o),s.stringify=(r,o={})=>e(typeof r=="string"?s.parse(r,o):r,o),s.compile=(r,o={})=>(typeof r=="string"&&(r=s.parse(r,o)),t(r,o)),s.expand=(r,o={})=>{typeof r=="string"&&(r=s.parse(r,o));let a=u(r,o);return o.noempty===!0&&(a=a.filter(Boolean)),o.nodupes===!0&&(a=[...new Set(a)]),a},s.create=(r,o={})=>r===""||r.length<3?[r]:o.expand!==!0?s.compile(r,o):s.expand(r,o),Pt=s,Pt}i(ys,"requireBraces");var ws=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],Nt,Qu;function Rs(){return Qu||(Qu=1,Nt=ws),Nt}i(Rs,"requireBinaryExtensions");var It,Zu;function vs(){if(Zu)return It;Zu=1;const e=ge,t=Rs(),u=new Set(t);return It=i(n=>u.has(e.extname(n).slice(1).toLowerCase()),"isBinaryPath"),It}i(vs,"requireIsBinaryPath");var Ht={},Ju;function Lt(){return Ju||(Ju=1,(function(e){const{sep:t}=ge,{platform:u}=process,n=Gt;e.EV_ALL="all",e.EV_READY="ready",e.EV_ADD="add",e.EV_CHANGE="change",e.EV_ADD_DIR="addDir",e.EV_UNLINK="unlink",e.EV_UNLINK_DIR="unlinkDir",e.EV_RAW="raw",e.EV_ERROR="error",e.STR_DATA="data",e.STR_END="end",e.STR_CLOSE="close",e.FSEVENT_CREATED="created",e.FSEVENT_MODIFIED="modified",e.FSEVENT_DELETED="deleted",e.FSEVENT_MOVED="moved",e.FSEVENT_CLONED="cloned",e.FSEVENT_UNKNOWN="unknown",e.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,e.FSEVENT_TYPE_FILE="file",e.FSEVENT_TYPE_DIRECTORY="directory",e.FSEVENT_TYPE_SYMLINK="symlink",e.KEY_LISTENERS="listeners",e.KEY_ERR="errHandlers",e.KEY_RAW="rawEmitters",e.HANDLER_KEYS=[e.KEY_LISTENERS,e.KEY_ERR,e.KEY_RAW],e.DOT_SLASH=`.${t}`,e.BACK_SLASH_RE=/\\/g,e.DOUBLE_SLASH_RE=/\/\//,e.SLASH_OR_BACK_SLASH_RE=/[/\\]/,e.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,e.REPLACER_RE=/^\.[/\\]/,e.SLASH="/",e.SLASH_SLASH="//",e.BRACE_START="{",e.BANG="!",e.ONE_DOT=".",e.TWO_DOTS="..",e.STAR="*",e.GLOBSTAR="**",e.ROOT_GLOBSTAR="/**/*",e.SLASH_GLOBSTAR="/**",e.DIR_SUFFIX="Dir",e.ANYMATCH_OPTS={dot:!0},e.STRING_TYPE="string",e.FUNCTION_TYPE="function",e.EMPTY_STR="",e.EMPTY_FN=()=>{},e.IDENTITY_FN=s=>s,e.isWindows=u==="win32",e.isMacos=u==="darwin",e.isLinux=u==="linux",e.isIBMi=n.type()==="OS400"})(Ht)),Ht}i(Lt,"requireConstants");var kt,er;function bs(){if(er)return kt;er=1;const e=ye,t=ge,{promisify:u}=ve,n=vs(),{isWindows:s,isLinux:r,EMPTY_FN:o,EMPTY_STR:a,KEY_LISTENERS:D,KEY_ERR:l,KEY_RAW:f,HANDLER_KEYS:C,EV_CHANGE:h,EV_ADD:P,EV_ADD_DIR:$,EV_ERROR:U,STR_DATA:_,STR_END:A,BRACE_START:W,STAR:p}=Lt(),B="watch",w=u(e.open),I=u(e.stat),y=u(e.lstat),q=u(e.close),m=u(e.realpath),S={lstat:y,stat:I},N=i((te,T)=>{te instanceof Set?te.forEach(T):T(te)},"foreach"),L=i((te,T,d)=>{let c=te[T];c instanceof Set||(te[T]=c=new Set([c])),c.add(d)},"addAndConvert"),g=i(te=>T=>{const d=te[T];d instanceof Set?d.clear():delete te[T]},"clearItem"),z=i((te,T,d)=>{const c=te[T];c instanceof Set?c.delete(d):c===d&&delete te[T]},"delFromSet"),Y=i(te=>te instanceof Set?te.size===0:!te,"isEmptySet"),J=new Map;function ue(te,T,d,c,v){const x=i((k,b)=>{d(te),v(k,b,{watchedPath:te}),b&&te!==b&&De(t.resolve(te,b),D,t.join(te,b))},"handleEvent");try{return e.watch(te,T,x)}catch(k){c(k)}}i(ue,"createFsWatchInstance");const De=i((te,T,d,c,v)=>{const x=J.get(te);x&&N(x[T],k=>{k(d,c,v)})},"fsWatchBroadcast"),de=i((te,T,d,c)=>{const{listener:v,errHandler:x,rawEmitter:k}=c;let b=J.get(T),O;if(!d.persistent)return O=ue(te,d,v,x,k),O.close.bind(O);if(b)L(b,D,v),L(b,l,x),L(b,f,k);else{if(O=ue(te,d,De.bind(null,T,D),x,De.bind(null,T,f)),!O)return;O.on(U,async M=>{const Q=De.bind(null,T,l);if(b.watcherUnusable=!0,s&&M.code==="EPERM")try{const K=await w(te,"r");await q(K),Q(M)}catch{}else Q(M)}),b={listeners:v,errHandlers:x,rawEmitters:k,watcher:O},J.set(T,b)}return()=>{z(b,D,v),z(b,l,x),z(b,f,k),Y(b.listeners)&&(b.watcher.close(),J.delete(T),C.forEach(g(b)),b.watcher=void 0,Object.freeze(b))}},"setFsWatchListener"),le=new Map,R=i((te,T,d,c)=>{const{listener:v,rawEmitter:x}=c;let k=le.get(T);const b=k&&k.options;return b&&(b.persistent<d.persistent||b.interval>d.interval)&&(k.listeners,k.rawEmitters,e.unwatchFile(T),k=void 0),k?(L(k,D,v),L(k,f,x)):(k={listeners:v,rawEmitters:x,options:d,watcher:e.watchFile(T,d,(O,M)=>{N(k.rawEmitters,K=>{K(h,T,{curr:O,prev:M})});const Q=O.mtimeMs;(O.size!==M.size||Q>M.mtimeMs||Q===0)&&N(k.listeners,K=>K(te,O))})},le.set(T,k)),()=>{z(k,D,v),z(k,f,x),Y(k.listeners)&&(le.delete(T),e.unwatchFile(T),k.options=k.watcher=void 0,Object.freeze(k))}},"setFsWatchFileListener");class he{static{i(this,"NodeFsHandler")}constructor(T){this.fsw=T,this._boundHandleError=d=>T._handleError(d)}_watchWithNodeFs(T,d){const c=this.fsw.options,v=t.dirname(T),x=t.basename(T);this.fsw._getWatchedDir(v).add(x);const b=t.resolve(T),O={persistent:c.persistent};d||(d=o);let M;return c.usePolling?(O.interval=c.enableBinaryInterval&&n(x)?c.binaryInterval:c.interval,M=R(T,b,O,{listener:d,rawEmitter:this.fsw._emitRaw})):M=de(T,b,O,{listener:d,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),M}_handleFile(T,d,c){if(this.fsw.closed)return;const v=t.dirname(T),x=t.basename(T),k=this.fsw._getWatchedDir(v);let b=d;if(k.has(x))return;const O=i(async(Q,K)=>{if(this.fsw._throttle(B,T,5)){if(!K||K.mtimeMs===0)try{const V=await I(T);if(this.fsw.closed)return;const H=V.atimeMs,ee=V.mtimeMs;(!H||H<=ee||ee!==b.mtimeMs)&&this.fsw._emit(h,T,V),r&&b.ino!==V.ino?(this.fsw._closeFile(Q),b=V,this.fsw._addPathCloser(Q,this._watchWithNodeFs(T,O))):b=V}catch{this.fsw._remove(v,x)}else if(k.has(x)){const V=K.atimeMs,H=K.mtimeMs;(!V||V<=H||H!==b.mtimeMs)&&this.fsw._emit(h,T,K),b=K}}},"listener"),M=this._watchWithNodeFs(T,O);if(!(c&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(T)){if(!this.fsw._throttle(P,T,0))return;this.fsw._emit(P,T,d)}return M}async _handleSymlink(T,d,c,v){if(this.fsw.closed)return;const x=T.fullPath,k=this.fsw._getWatchedDir(d);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let b;try{b=await m(c)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(k.has(v)?this.fsw._symlinkPaths.get(x)!==b&&(this.fsw._symlinkPaths.set(x,b),this.fsw._emit(h,c,T.stats)):(k.add(v),this.fsw._symlinkPaths.set(x,b),this.fsw._emit(P,c,T.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(x))return!0;this.fsw._symlinkPaths.set(x,!0)}_handleRead(T,d,c,v,x,k,b){if(T=t.join(T,a),!c.hasGlob&&(b=this.fsw._throttle("readdir",T,1e3),!b))return;const O=this.fsw._getWatchedDir(c.path),M=new Set;let Q=this.fsw._readdirp(T,{fileFilter:i(K=>c.filterPath(K),"fileFilter"),directoryFilter:i(K=>c.filterDir(K),"directoryFilter"),depth:0}).on(_,async K=>{if(this.fsw.closed){Q=void 0;return}const V=K.path;let H=t.join(T,V);if(M.add(V),!(K.stats.isSymbolicLink()&&await this._handleSymlink(K,T,H,V))){if(this.fsw.closed){Q=void 0;return}(V===v||!v&&!O.has(V))&&(this.fsw._incrReadyCount(),H=t.join(x,t.relative(x,H)),this._addToNodeFs(H,d,c,k+1))}}).on(U,this._boundHandleError);return new Promise(K=>Q.once(A,()=>{if(this.fsw.closed){Q=void 0;return}const V=b?b.clear():!1;K(),O.getChildren().filter(H=>H!==T&&!M.has(H)&&(!c.hasGlob||c.filterPath({fullPath:t.resolve(T,H)}))).forEach(H=>{this.fsw._remove(T,H)}),Q=void 0,V&&this._handleRead(T,!1,c,v,x,k,b)}))}async _handleDir(T,d,c,v,x,k,b){const O=this.fsw._getWatchedDir(t.dirname(T)),M=O.has(t.basename(T));!(c&&this.fsw.options.ignoreInitial)&&!x&&!M&&(!k.hasGlob||k.globFilter(T))&&this.fsw._emit($,T,d),O.add(t.basename(T)),this.fsw._getWatchedDir(T);let Q,K;const V=this.fsw.options.depth;if((V==null||v<=V)&&!this.fsw._symlinkPaths.has(b)){if(!x&&(await this._handleRead(T,c,k,x,T,v,Q),this.fsw.closed))return;K=this._watchWithNodeFs(T,(H,ee)=>{ee&&ee.mtimeMs===0||this._handleRead(H,!1,k,x,T,v,Q)})}return K}async _addToNodeFs(T,d,c,v,x){const k=this.fsw._emitReady;if(this.fsw._isIgnored(T)||this.fsw.closed)return k(),!1;const b=this.fsw._getWatchHelpers(T,v);!b.hasGlob&&c&&(b.hasGlob=c.hasGlob,b.globFilter=c.globFilter,b.filterPath=O=>c.filterPath(O),b.filterDir=O=>c.filterDir(O));try{const O=await S[b.statMethod](b.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(b.watchPath,O))return k(),!1;const M=this.fsw.options.followSymlinks&&!T.includes(p)&&!T.includes(W);let Q;if(O.isDirectory()){const K=t.resolve(T),V=M?await m(T):T;if(this.fsw.closed||(Q=await this._handleDir(b.watchPath,O,d,v,x,b,V),this.fsw.closed))return;K!==V&&V!==void 0&&this.fsw._symlinkPaths.set(K,V)}else if(O.isSymbolicLink()){const K=M?await m(T):T;if(this.fsw.closed)return;const V=t.dirname(b.watchPath);if(this.fsw._getWatchedDir(V).add(b.watchPath),this.fsw._emit(P,b.watchPath,O),Q=await this._handleDir(V,O,d,v,T,b,K),this.fsw.closed)return;K!==void 0&&this.fsw._symlinkPaths.set(t.resolve(T),K)}else Q=this._handleFile(b.watchPath,O,d);return k(),this.fsw._addPathCloser(T,Q),!1}catch(O){if(this.fsw._handleError(O))return k(),T}}}return kt=he,kt}i(bs,"requireNodefsHandler");var je={exports:{}},tr;function Bs(){if(tr)return je.exports;tr=1;const e=ye,t=ge,{promisify:u}=ve;let n;try{n=Te("fsevents")}catch(d){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(d)}if(n){const d=process.version.match(/v(\d+)\.(\d+)/);if(d&&d[1]&&d[2]){const c=Number.parseInt(d[1],10),v=Number.parseInt(d[2],10);c===8&&v<16&&(n=void 0)}}const{EV_ADD:s,EV_CHANGE:r,EV_ADD_DIR:o,EV_UNLINK:a,EV_ERROR:D,STR_DATA:l,STR_END:f,FSEVENT_CREATED:C,FSEVENT_MODIFIED:h,FSEVENT_DELETED:P,FSEVENT_MOVED:$,FSEVENT_UNKNOWN:U,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:_,FSEVENT_TYPE_FILE:A,FSEVENT_TYPE_DIRECTORY:W,FSEVENT_TYPE_SYMLINK:p,ROOT_GLOBSTAR:B,DIR_SUFFIX:w,DOT_SLASH:I,FUNCTION_TYPE:y,EMPTY_FN:q,IDENTITY_FN:m}=Lt(),S=i(d=>isNaN(d)?{}:{depth:d},"Depth"),N=u(e.stat),L=u(e.lstat),g=u(e.realpath),z={stat:N,lstat:L},Y=new Map,J=10,ue=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),De=i((d,c)=>({stop:n.watch(d,c)}),"createFSEventsInstance");function de(d,c,v,x){let k=t.extname(c)?t.dirname(c):c;const b=t.dirname(k);let O=Y.get(k);le(b)&&(k=b);const M=t.resolve(d),Q=M!==c,K=i((H,ee,Ee)=>{Q&&(H=H.replace(c,M)),(H===M||!H.indexOf(M+t.sep))&&v(H,ee,Ee)},"filteredListener");let V=!1;for(const H of Y.keys())if(c.indexOf(t.resolve(H)+t.sep)===0){k=H,O=Y.get(k),V=!0;break}return O||V?O.listeners.add(K):(O={listeners:new Set([K]),rawEmitter:x,watcher:De(k,(H,ee)=>{if(!O.listeners.size||ee&_)return;const Ee=n.getInfo(H,ee);O.listeners.forEach(G=>{G(H,ee,Ee)}),O.rawEmitter(Ee.event,H,Ee)})},Y.set(k,O)),()=>{const H=O.listeners;if(H.delete(K),!H.size&&(Y.delete(k),O.watcher))return O.watcher.stop().then(()=>{O.rawEmitter=O.watcher=void 0,Object.freeze(O)})}}i(de,"setFSEventsListener");const le=i(d=>{let c=0;for(const v of Y.keys())if(v.indexOf(d)===0&&(c++,c>=J))return!0;return!1},"couldConsolidate"),R=i(()=>n&&Y.size<128,"canUse"),he=i((d,c)=>{let v=0;for(;!d.indexOf(c)&&(d=t.dirname(d))!==c;)v++;return v},"calcDepth"),te=i((d,c)=>d.type===W&&c.isDirectory()||d.type===p&&c.isSymbolicLink()||d.type===A&&c.isFile(),"sameTypes");class T{static{i(this,"FsEventsHandler")}constructor(c){this.fsw=c}checkIgnored(c,v){const x=this.fsw._ignoredPaths;if(this.fsw._isIgnored(c,v))return x.add(c),v&&v.isDirectory()&&x.add(c+B),!0;x.delete(c),x.delete(c+B)}addOrChange(c,v,x,k,b,O,M,Q){const K=b.has(O)?r:s;this.handleEvent(K,c,v,x,k,b,O,M,Q)}async checkExists(c,v,x,k,b,O,M,Q){try{const K=await N(c);if(this.fsw.closed)return;te(M,K)?this.addOrChange(c,v,x,k,b,O,M,Q):this.handleEvent(a,c,v,x,k,b,O,M,Q)}catch(K){K.code==="EACCES"?this.addOrChange(c,v,x,k,b,O,M,Q):this.handleEvent(a,c,v,x,k,b,O,M,Q)}}handleEvent(c,v,x,k,b,O,M,Q,K){if(!(this.fsw.closed||this.checkIgnored(v)))if(c===a){const V=Q.type===W;(V||O.has(M))&&this.fsw._remove(b,M,V)}else{if(c===s){if(Q.type===W&&this.fsw._getWatchedDir(v),Q.type===p&&K.followSymlinks){const H=K.depth===void 0?void 0:he(x,k)+1;return this._addToFsEvents(v,!1,!0,H)}this.fsw._getWatchedDir(b).add(M)}const V=Q.type===W?c+w:c;this.fsw._emit(V,v),V===o&&this._addToFsEvents(v,!1,!0)}}_watchWithFsEvents(c,v,x,k){if(this.fsw.closed||this.fsw._isIgnored(c))return;const b=this.fsw.options,M=de(c,v,i(async(Q,K,V)=>{if(this.fsw.closed||b.depth!==void 0&&he(Q,v)>b.depth)return;const H=x(t.join(c,t.relative(c,Q)));if(k&&!k(H))return;const ee=t.dirname(H),Ee=t.basename(H),G=this.fsw._getWatchedDir(V.type===W?H:ee);if(ue.has(K)||V.event===U)if(typeof b.ignored===y){let ae;try{ae=await N(H)}catch{}if(this.fsw.closed||this.checkIgnored(H,ae))return;te(V,ae)?this.addOrChange(H,Q,v,ee,G,Ee,V,b):this.handleEvent(a,H,Q,v,ee,G,Ee,V,b)}else this.checkExists(H,Q,v,ee,G,Ee,V,b);else switch(V.event){case C:case h:return this.addOrChange(H,Q,v,ee,G,Ee,V,b);case P:case $:return this.checkExists(H,Q,v,ee,G,Ee,V,b)}},"watchCallback"),this.fsw._emitRaw);return this.fsw._emitReady(),M}async _handleFsEventsSymlink(c,v,x,k){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(v))){this.fsw._symlinkPaths.set(v,!0),this.fsw._incrReadyCount();try{const b=await g(c);if(this.fsw.closed)return;if(this.fsw._isIgnored(b))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(b||c,O=>{let M=c;return b&&b!==I?M=O.replace(b,c):O!==I&&(M=t.join(c,O)),x(M)},!1,k)}catch(b){if(this.fsw._handleError(b))return this.fsw._emitReady()}}}emitAdd(c,v,x,k,b){const O=x(c),M=v.isDirectory(),Q=this.fsw._getWatchedDir(t.dirname(O)),K=t.basename(O);M&&this.fsw._getWatchedDir(O),!Q.has(K)&&(Q.add(K),(!k.ignoreInitial||b===!0)&&this.fsw._emit(M?o:s,O,v))}initWatch(c,v,x,k){if(this.fsw.closed)return;const b=this._watchWithFsEvents(x.watchPath,t.resolve(c||x.watchPath),k,x.globFilter);this.fsw._addPathCloser(v,b)}async _addToFsEvents(c,v,x,k){if(this.fsw.closed)return;const b=this.fsw.options,O=typeof v===y?v:m,M=this.fsw._getWatchHelpers(c);try{const Q=await z[M.statMethod](M.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(M.watchPath,Q))throw null;if(Q.isDirectory()){if(M.globFilter||this.emitAdd(O(c),Q,O,b,x),k&&k>b.depth)return;this.fsw._readdirp(M.watchPath,{fileFilter:i(K=>M.filterPath(K),"fileFilter"),directoryFilter:i(K=>M.filterDir(K),"directoryFilter"),...S(b.depth-(k||0))}).on(l,K=>{if(this.fsw.closed||K.stats.isDirectory()&&!M.filterPath(K))return;const V=t.join(M.watchPath,K.path),{fullPath:H}=K;if(M.followSymlinks&&K.stats.isSymbolicLink()){const ee=b.depth===void 0?void 0:he(V,t.resolve(M.watchPath))+1;this._handleFsEventsSymlink(V,H,O,ee)}else this.emitAdd(V,K.stats,O,b,x)}).on(D,q).on(f,()=>{this.fsw._emitReady()})}else this.emitAdd(M.watchPath,Q,O,b,x),this.fsw._emitReady()}catch(Q){(!Q||this.fsw._handleError(Q))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(b.persistent&&x!==!0)if(typeof v===y)this.initWatch(void 0,c,M,O);else{let Q;try{Q=await g(M.watchPath)}catch{}this.initWatch(Q,c,M,O)}}}return je.exports=T,je.exports.canUse=R,je.exports}i(Bs,"requireFseventsHandler");var ur;function Ss(){if(ur)return Me;ur=1;const{EventEmitter:e}=gr,t=ye,u=ge,{promisify:n}=ve,s=fs(),r=ds().default,o=Es(),a=_t(),D=ys(),l=Nu(),f=bs(),C=Bs(),{EV_ALL:h,EV_READY:P,EV_ADD:$,EV_CHANGE:U,EV_UNLINK:_,EV_ADD_DIR:A,EV_UNLINK_DIR:W,EV_RAW:p,EV_ERROR:B,STR_CLOSE:w,STR_END:I,BACK_SLASH_RE:y,DOUBLE_SLASH_RE:q,SLASH_OR_BACK_SLASH_RE:m,DOT_RE:S,REPLACER_RE:N,SLASH:L,SLASH_SLASH:g,BRACE_START:z,BANG:Y,ONE_DOT:J,TWO_DOTS:ue,GLOBSTAR:De,SLASH_GLOBSTAR:de,ANYMATCH_OPTS:le,STRING_TYPE:R,FUNCTION_TYPE:he,EMPTY_STR:te,EMPTY_FN:T,isWindows:d,isMacos:c,isIBMi:v}=Lt(),x=n(t.stat),k=n(t.readdir),b=i((re=[])=>Array.isArray(re)?re:[re],"arrify"),O=i((re,E=[])=>(re.forEach(F=>{Array.isArray(F)?O(F,E):E.push(F)}),E),"flatten"),M=i(re=>{const E=O(b(re));if(!E.every(F=>typeof F===R))throw new TypeError(`Non-string provided as watch path: ${E}`);return E.map(K)},"unifyPaths"),Q=i(re=>{let E=re.replace(y,L),F=!1;for(E.startsWith(g)&&(F=!0);E.match(q);)E=E.replace(q,L);return F&&(E=L+E),E},"toUnix"),K=i(re=>Q(u.normalize(Q(re))),"normalizePathToUnix"),V=i((re=te)=>E=>typeof E!==R?E:K(u.isAbsolute(E)?E:u.join(re,E)),"normalizeIgnored"),H=i((re,E)=>u.isAbsolute(re)?re:re.startsWith(Y)?Y+u.join(E,re.slice(1)):u.join(E,re),"getAbsolutePath"),ee=i((re,E)=>re[E]===void 0,"undef");class Ee{static{i(this,"DirEntry")}constructor(E,F){this.path=E,this._removeWatcher=F,this.items=new Set}add(E){const{items:F}=this;F&&E!==J&&E!==ue&&F.add(E)}async remove(E){const{items:F}=this;if(!F||(F.delete(E),F.size>0))return;const Z=this.path;try{await k(Z)}catch{this._removeWatcher&&this._removeWatcher(u.dirname(Z),u.basename(Z))}}has(E){const{items:F}=this;if(F)return F.has(E)}getChildren(){const{items:E}=this;if(E)return[...E.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}const G="stat",ae="lstat";class j{static{i(this,"WatchHelper")}constructor(E,F,Z,X){this.fsw=X,this.path=E=E.replace(N,te),this.watchPath=F,this.fullWatchPath=u.resolve(F),this.hasGlob=F!==E,E===te&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&Z?void 0:!1,this.globFilter=this.hasGlob?r(E,void 0,le):!1,this.dirParts=this.getDirParts(E),this.dirParts.forEach(ce=>{ce.length>1&&ce.pop()}),this.followSymlinks=Z,this.statMethod=Z?G:ae}checkGlobSymlink(E){return this.globSymlink===void 0&&(this.globSymlink=E.fullParentDir===this.fullWatchPath?!1:{realPath:E.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?E.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):E.fullPath}entryPath(E){return u.join(this.watchPath,u.relative(this.watchPath,this.checkGlobSymlink(E)))}filterPath(E){const{stats:F}=E;if(F&&F.isSymbolicLink())return this.filterDir(E);const Z=this.entryPath(E);return(this.hasGlob&&typeof this.globFilter===he?this.globFilter(Z):!0)&&this.fsw._isntIgnored(Z,F)&&this.fsw._hasReadPermissions(F)}getDirParts(E){if(!this.hasGlob)return[];const F=[];return(E.includes(z)?D.expand(E):[E]).forEach(X=>{F.push(u.relative(this.watchPath,X).split(m))}),F}filterDir(E){if(this.hasGlob){const F=this.getDirParts(this.checkGlobSymlink(E));let Z=!1;this.unmatchedGlob=!this.dirParts.some(X=>X.every((ce,ie)=>(ce===De&&(Z=!0),Z||!F[0][ie]||r(ce,F[0][ie],le))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(E),E.stats)}}class ne extends e{static{i(this,"FSWatcher")}constructor(E){super();const F={};E&&Object.assign(F,E),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,ee(F,"persistent")&&(F.persistent=!0),ee(F,"ignoreInitial")&&(F.ignoreInitial=!1),ee(F,"ignorePermissionErrors")&&(F.ignorePermissionErrors=!1),ee(F,"interval")&&(F.interval=100),ee(F,"binaryInterval")&&(F.binaryInterval=300),ee(F,"disableGlobbing")&&(F.disableGlobbing=!1),F.enableBinaryInterval=F.binaryInterval!==F.interval,ee(F,"useFsEvents")&&(F.useFsEvents=!F.usePolling),C.canUse()||(F.useFsEvents=!1),ee(F,"usePolling")&&!F.useFsEvents&&(F.usePolling=c),v&&(F.usePolling=!0);const X=process.env.CHOKIDAR_USEPOLLING;if(X!==void 0){const oe=X.toLowerCase();oe==="false"||oe==="0"?F.usePolling=!1:oe==="true"||oe==="1"?F.usePolling=!0:F.usePolling=!!oe}const ce=process.env.CHOKIDAR_INTERVAL;ce&&(F.interval=Number.parseInt(ce,10)),ee(F,"atomic")&&(F.atomic=!F.usePolling&&!F.useFsEvents),F.atomic&&(this._pendingUnlinks=new Map),ee(F,"followSymlinks")&&(F.followSymlinks=!0),ee(F,"awaitWriteFinish")&&(F.awaitWriteFinish=!1),F.awaitWriteFinish===!0&&(F.awaitWriteFinish={});const ie=F.awaitWriteFinish;ie&&(ie.stabilityThreshold||(ie.stabilityThreshold=2e3),ie.pollInterval||(ie.pollInterval=100),this._pendingWrites=new Map),F.ignored&&(F.ignored=b(F.ignored));let se=0;this._emitReady=()=>{se++,se>=this._readyCount&&(this._emitReady=T,this._readyEmitted=!0,process.nextTick(()=>this.emit(P)))},this._emitRaw=(...oe)=>this.emit(p,...oe),this._readyEmitted=!1,this.options=F,F.useFsEvents?this._fsEventsHandler=new C(this):this._nodeFsHandler=new f(this),Object.freeze(F)}add(E,F,Z){const{cwd:X,disableGlobbing:ce}=this.options;this.closed=!1;let ie=M(E);return X&&(ie=ie.map(se=>{const oe=H(se,X);return ce||!a(se)?oe:l(oe)})),ie=ie.filter(se=>se.startsWith(Y)?(this._ignoredPaths.add(se.slice(1)),!1):(this._ignoredPaths.delete(se),this._ignoredPaths.delete(se+de),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=ie.length),this.options.persistent&&(this._readyCount+=ie.length),ie.forEach(se=>this._fsEventsHandler._addToFsEvents(se))):(this._readyCount||(this._readyCount=0),this._readyCount+=ie.length,Promise.all(ie.map(async se=>{const oe=await this._nodeFsHandler._addToNodeFs(se,!Z,0,0,F);return oe&&this._emitReady(),oe})).then(se=>{this.closed||se.filter(oe=>oe).forEach(oe=>{this.add(u.dirname(oe),u.basename(F||oe))})})),this}unwatch(E){if(this.closed)return this;const F=M(E),{cwd:Z}=this.options;return F.forEach(X=>{!u.isAbsolute(X)&&!this._closers.has(X)&&(Z&&(X=u.join(Z,X)),X=u.resolve(X)),this._closePath(X),this._ignoredPaths.add(X),this._watched.has(X)&&this._ignoredPaths.add(X+de),this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();const E=[];return this._closers.forEach(F=>F.forEach(Z=>{const X=Z();X instanceof Promise&&E.push(X)})),this._streams.forEach(F=>F.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(F=>F.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(F=>{this[`_${F}`].clear()}),this._closePromise=E.length?Promise.all(E).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){const E={};return this._watched.forEach((F,Z)=>{const X=this.options.cwd?u.relative(this.options.cwd,Z):Z;E[X||J]=F.getChildren().sort()}),E}emitWithAll(E,F){this.emit(...F),E!==B&&this.emit(h,...F)}async _emit(E,F,Z,X,ce){if(this.closed)return;const ie=this.options;d&&(F=u.normalize(F)),ie.cwd&&(F=u.relative(ie.cwd,F));const se=[E,F];ce!==void 0?se.push(Z,X,ce):X!==void 0?se.push(Z,X):Z!==void 0&&se.push(Z);const oe=ie.awaitWriteFinish;let me;if(oe&&(me=this._pendingWrites.get(F)))return me.lastChange=new Date,this;if(ie.atomic){if(E===_)return this._pendingUnlinks.set(F,se),setTimeout(()=>{this._pendingUnlinks.forEach((pe,Fe)=>{this.emit(...pe),this.emit(h,...pe),this._pendingUnlinks.delete(Fe)})},typeof ie.atomic=="number"?ie.atomic:100),this;E===$&&this._pendingUnlinks.has(F)&&(E=se[0]=U,this._pendingUnlinks.delete(F))}if(oe&&(E===$||E===U)&&this._readyEmitted){const pe=i((Fe,_e)=>{Fe?(E=se[0]=B,se[1]=Fe,this.emitWithAll(E,se)):_e&&(se.length>2?se[2]=_e:se.push(_e),this.emitWithAll(E,se))},"awfEmit");return this._awaitWriteFinish(F,oe.stabilityThreshold,E,pe),this}if(E===U&&!this._throttle(U,F,50))return this;if(ie.alwaysStat&&Z===void 0&&(E===$||E===A||E===U)){const pe=ie.cwd?u.join(ie.cwd,F):F;let Fe;try{Fe=await x(pe)}catch{}if(!Fe||this.closed)return;se.push(Fe)}return this.emitWithAll(E,se),this}_handleError(E){const F=E&&E.code;return E&&F!=="ENOENT"&&F!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||F!=="EPERM"&&F!=="EACCES")&&this.emit(B,E),E||this.closed}_throttle(E,F,Z){this._throttled.has(E)||this._throttled.set(E,new Map);const X=this._throttled.get(E),ce=X.get(F);if(ce)return ce.count++,!1;let ie;const se=i(()=>{const me=X.get(F),pe=me?me.count:0;return X.delete(F),clearTimeout(ie),me&&clearTimeout(me.timeoutObject),pe},"clear");ie=setTimeout(se,Z);const oe={timeoutObject:ie,clear:se,count:0};return X.set(F,oe),oe}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(E,F,Z,X){let ce,ie=E;this.options.cwd&&!u.isAbsolute(E)&&(ie=u.join(this.options.cwd,E));const se=new Date,oe=i(me=>{t.stat(ie,(pe,Fe)=>{if(pe||!this._pendingWrites.has(E)){pe&&pe.code!=="ENOENT"&&X(pe);return}const _e=Number(new Date);me&&Fe.size!==me.size&&(this._pendingWrites.get(E).lastChange=_e);const ar=this._pendingWrites.get(E);_e-ar.lastChange>=F?(this._pendingWrites.delete(E),X(void 0,Fe)):ce=setTimeout(oe,this.options.awaitWriteFinish.pollInterval,Fe)})},"awaitWriteFinish");this._pendingWrites.has(E)||(this._pendingWrites.set(E,{lastChange:se,cancelWait:i(()=>(this._pendingWrites.delete(E),clearTimeout(ce),Z),"cancelWait")}),ce=setTimeout(oe,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(E,F){if(this.options.atomic&&S.test(E))return!0;if(!this._userIgnored){const{cwd:Z}=this.options,X=this.options.ignored,ce=X&&X.map(V(Z)),ie=b(ce).filter(oe=>typeof oe===R&&!a(oe)).map(oe=>oe+de),se=this._getGlobIgnored().map(V(Z)).concat(ce,ie);this._userIgnored=r(se,void 0,le)}return this._userIgnored([E,F])}_isntIgnored(E,F){return!this._isIgnored(E,F)}_getWatchHelpers(E,F){const Z=F||this.options.disableGlobbing||!a(E)?E:o(E),X=this.options.followSymlinks;return new j(E,Z,X,this)}_getWatchedDir(E){this._boundRemove||(this._boundRemove=this._remove.bind(this));const F=u.resolve(E);return this._watched.has(F)||this._watched.set(F,new Ee(F,this._boundRemove)),this._watched.get(F)}_hasReadPermissions(E){if(this.options.ignorePermissionErrors)return!0;const Z=(E&&Number.parseInt(E.mode,10))&511;return!!(4&Number.parseInt(Z.toString(8)[0],10))}_remove(E,F,Z){const X=u.join(E,F),ce=u.resolve(X);if(Z=Z??(this._watched.has(X)||this._watched.has(ce)),!this._throttle("remove",X,100))return;!Z&&!this.options.useFsEvents&&this._watched.size===1&&this.add(E,F,!0),this._getWatchedDir(X).getChildren().forEach(_e=>this._remove(X,_e));const oe=this._getWatchedDir(E),me=oe.has(F);oe.remove(F),this._symlinkPaths.has(ce)&&this._symlinkPaths.delete(ce);let pe=X;if(this.options.cwd&&(pe=u.relative(this.options.cwd,X)),this.options.awaitWriteFinish&&this._pendingWrites.has(pe)&&this._pendingWrites.get(pe).cancelWait()===$)return;this._watched.delete(X),this._watched.delete(ce);const Fe=Z?W:_;me&&!this._isIgnored(X)&&this._emit(Fe,X),this.options.useFsEvents||this._closePath(X)}_closePath(E){this._closeFile(E);const F=u.dirname(E);this._getWatchedDir(F).remove(u.basename(E))}_closeFile(E){const F=this._closers.get(E);F&&(F.forEach(Z=>Z()),this._closers.delete(E))}_addPathCloser(E,F){if(!F)return;let Z=this._closers.get(E);Z||(Z=[],this._closers.set(E,Z)),Z.push(F)}_readdirp(E,F){if(this.closed)return;const Z={type:h,alwaysStat:!0,lstat:!0,...F};let X=s(E,Z);return this._streams.add(X),X.once(w,()=>{X=void 0}),X.once(I,()=>{X&&(this._streams.delete(X),X=void 0)}),X}}Me.FSWatcher=ne;const fe=i((re,E)=>{const F=new ne(E);return F.add(re),F},"watch");return Me.watch=fe,Me}i(Ss,"requireChokidar");var Mt=Ss(),xs=_t(),rr=jt(xs);const qe=i((e=!0)=>{let t=!1;return u=>{if(t||u==="unknown-flag")return!0;if(u==="argument")return t=!0,e}},"ignoreAfterArgument"),nr=i((e,t=process.argv.slice(2))=>(Ut(e,t,{ignore:qe()}),t),"removeArgvFlags"),Ts=i(e=>{let t=Buffer.alloc(0);return u=>{for(t=Buffer.concat([t,u]);t.length>4;){const n=t.readInt32BE(0);if(t.length>=4+n){const s=t.slice(4,4+n);e(s),t=t.slice(4+n)}else break}}},"bufferData"),sr=i(async()=>{const e=br.createServer(u=>{u.on("data",Ts(n=>{const s=JSON.parse(n.toString());e.emit("data",s)}))}),t=_r(process.pid);return await Oe.promises.mkdir(Cr,{recursive:!0}),await Oe.promises.rm(t,{force:!0}),await new Promise((u,n)=>{e.listen(t,u),e.on("error",n)}),e.unref(),process.on("exit",()=>{if(e.close(),!Ar)try{Oe.rmSync(t)}catch{}}),e},"createIpcServer"),$s=i(()=>new Date().toLocaleTimeString(),"currentTime"),xe=i((...e)=>console.log(yr($s()),wr("[tsx]"),...e),"log"),Os="\x1Bc",Ps=i((e,t)=>{let u;return function(){u&&clearTimeout(u),u=setTimeout(()=>Reflect.apply(e,this,arguments),t)}},"debounce"),ir={noCache:{type:Boolean,description:"Disable caching",default:!1},tsconfig:{type:String,description:"Custom tsconfig.json path"},clearScreen:{type:Boolean,description:"Clearing the screen on rerun",default:!0},ignore:{type:[String],description:"Paths & globs to exclude from being watched (Deprecated: use --exclude)"},include:{type:[String],description:"Additional paths & globs to watch"},exclude:{type:[String],description:"Paths & globs to exclude from being watched"}},Ns=zn({name:"watch",parameters:["<script path>"],flags:ir,help:{description:"Run the script and watch for changes"},ignoreArgv:qe(!1)},async e=>{const t=nr(ir,process.argv.slice(3)),u={noCache:e.flags.noCache,tsconfigPath:e.flags.tsconfig,clearScreen:e.flags.clearScreen,include:e.flags.include,exclude:[...e.flags.ignore,...e.flags.exclude]};let n,s=!1;const r=process.cwd(),o=new Map,a=i((m,S)=>{const N=$e.resolve(S),L=o.get(N);if(m==="add"||m==="addDir"||m==="unlink"||m==="unlinkDir")L&&(clearTimeout(L.expiration),o.delete(N));else if(L)return`${m}:${L.path}`;let g;try{g=Oe.realpathSync.native(N)}catch{g=N}const z={path:g,expiration:setTimeout(()=>{o.get(N)===z&&o.delete(N)},1e3)};return z.expiration.unref(),o.set(N,z),`${m}:${g}`},"getEventKey"),D=e._.map(m=>$e.resolve(m));let l,f,C=!1;const h=new Map,P=i(m=>{const S=$e.resolve(m);return process.platform==="win32"?S.toLowerCase():S},"getPathKey"),$=new Set;for(const m of u.include)if(m.startsWith("!")){const S=m.slice(1);rr(S)||$.add(P(S))}else rr(m)||$.delete(P(m));(await sr()).on("data",m=>{if(m&&typeof m=="object"&&"type"in m&&m.type==="dependency"&&"path"in m&&typeof m.path=="string"){const S=m.path.startsWith("file:")?dr(m.path):m.path;$e.isAbsolute(S)&&($.has(P(S))?(f||(f=new Mt.FSWatcher({...w,disableGlobbing:!0}),f.on("all",(N,L)=>{I("literal",N,L)})),f.add(S)):l.add(S))}});const _=i(()=>{if(!s)return Ru(t,u)},"spawnProcess");let A=!1;const W=i(async(m,S="SIGTERM",N=5e3)=>{let L=!1;const g=new Promise(z=>{m.on("exit",Y=>{L=!0,A=!1,z(Y)})});return A=!0,m.kill(S),setTimeout(()=>{L||(xe(be(`Process didn't exit in ${Math.floor(N/1e3)}s. Force killing...`)),m.kill("SIGKILL"))},N),await g},"killProcess"),p=Ps(async(m,S)=>{const N=m?`${m?Rr(m):""}${S?` in ${vr(`./${S}`)}`:""}`:"";if(A){xe(N,be("Process hasn't exited. Killing process...")),n.kill("SIGKILL");return}n&&(n.exitCode===null?(xe(N,be("Restarting...")),await W(n)):xe(N,be("Rerunning...")),u.clearScreen&&process.stdout.isTTY&&process.stdout.write(Os)),n=_()},100),B=i(m=>{s=!0,n?.exitCode===null?(A&&xe(be("Previous process hasn't exited yet. Force killing...")),W(n,A?"SIGKILL":m).then(S=>{process.exit(S??0)},()=>{})):process.exit(128+Ue.signals[m])},"relaySignal");process.on("SIGINT",B),process.on("SIGTERM",B);const w={cwd:r,ignoreInitial:!0,ignored:["**/.*/**","**/.*","**/{node_modules,bower_components,vendor}/**",...u.exclude],ignorePermissionErrors:!0},I=i((m,S,N)=>{if(!C)return;const L=a(S,N),g=h.get(L);if(g&&g.source!==m){clearTimeout(g.expiration),h.delete(L);return}g&&clearTimeout(g.expiration);const z={source:m,expiration:setTimeout(()=>{h.get(L)===z&&h.delete(L)},1e3)};z.expiration.unref(),h.set(L,z),p(S,N)},"handleWatchEvent");l=new Mt.FSWatcher({...w,disableGlobbing:!0}),l.on("all",(m,S)=>{I("literal",m,S)});const y=i(m=>new Promise(S=>{m.once("ready",S)}),"waitForReady"),q=[y(l)];if(l.add(D),u.include.some(m=>!m.startsWith("!"))){const m=new Mt.FSWatcher(w);m.on("all",(S,N)=>{I("include",S,N)}),q.push(y(m)),m.add(u.include)}await Promise.all(q),l.add(u.include.filter(m=>m.startsWith("!"))),C=!0,n=_(),process.stdin.on("data",()=>p("Return key"))}),Is=i((e,t)=>{let u;t.on("data",r=>{r&&r.type==="signal"&&u&&u(r.signal)});const n=i(()=>{const r=new Promise(o=>{setTimeout(()=>o(void 0),30),u=o});return r.then(()=>{u=void 0},()=>{}),r},"waitForSignalFromChild"),s=i(async r=>{await n()!==r&&(e.kill(r),await n()!==r&&(e.on("exit",()=>{const D=Ue.signals[r];process.exit(128+D)}),e.kill("SIGKILL")))},"relaySignalToChild");process.on("SIGINT",s),process.on("SIGTERM",s)},"relaySignals"),or={noCache:{type:Boolean,description:"Disable caching"},tsconfig:{type:String,description:"Custom tsconfig.json path"}};cu({name:"tsx",parameters:["[script path]"],commands:[Ns],flags:{...or,version:{type:Boolean,alias:"v",description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1,ignoreArgv:qe()},async e=>{e.flags.version?process.stdout.write(`tsx v${fr}
|
|
54
|
+
node `):e.flags.help&&(e.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"}),console.log(`${"-".repeat(45)}
|
|
55
|
+
`));const t={eval:{type:String,alias:"e"},print:{type:String,alias:"p"}},{_:u,flags:n}=cu({flags:{...t,inputType:String,test:Boolean},help:!1,ignoreArgv:qe(!1)}),s=nr({...or,...t}),o=["print","eval"].find(l=>!!n[l]);if(o){const{inputType:l}=n,f=n[o],{transformSync:C}=await import("esbuild"),h=C(f,{loader:"default",sourcefile:"/eval.ts",format:l==="module"?"esm":"cjs"});s.unshift(`--${o}`,h.code)}Wt(Fr)&&n.test&&u.length===0&&s.push("**/{test,test/**/*,test-*,*[.-_]test}.?(c|m)@(t|j)s"),n.test&&s.unshift("--enable-source-maps");const a=await sr(),D=Ru(s,{noCache:!!e.flags.noCache,tsconfigPath:e.flags.tsconfig});Is(D,a),process.send&&D.on("message",l=>{process.send(l)}),D.send&&process.on("message",l=>{D.send(l)}),D.on("close",l=>{l===null&&(l=Ue.signals[D.signalCode]+128),process.exit(l)})});
|