tsx 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -18
- package/dist/cli.cjs +15 -15
- package/dist/cli.js +15 -15
- package/dist/loader.cjs +1 -1
- package/dist/loader.js +1 -1
- package/dist/package-81a89caf.js +1 -0
- package/dist/package-b612df74.cjs +1 -0
- package/dist/{pkgroll_create-require-91c05cc3.js → pkgroll_create-require-12c8685c.js} +0 -0
- package/dist/{pkgroll_create-require-d7ed1b4a.cjs → pkgroll_create-require-fad3c606.cjs} +0 -0
- package/dist/repl.cjs +3 -3
- package/dist/repl.js +1 -1
- package/package.json +11 -10
- package/dist/package-80b512a7.cjs +0 -1
- package/dist/package-f202b71b.js +0 -1
package/dist/cli.cjs
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
"use strict";var $n=Object.defineProperty,Sn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var mu=Object.getOwnPropertySymbols;var xn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable;var Au=(t,e,u)=>e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))xn.call(e,u)&&Au(t,u,e[u]);if(mu)for(var u of mu(e))On.call(e,u)&&Au(t,u,e[u]);return t},ae=(t,e)=>Sn(t,Tn(e));var Ie=require("./pkgroll_create-require-d7ed1b4a.cjs"),Nn=require("tty"),Hn=require("./package-80b512a7.cjs"),yu=require("url"),Pn=require("child_process"),Ln=require("path"),In=require("fs"),kn=require("events"),Mn=require("util"),Wn=require("stream"),jn=require("os");require("module");function ie(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Gn=ie(Nn),Un=ie(Pn),z=ie(Ln),oe=ie(In),Kn=ie(kn),Ae=ie(Mn),Vn=ie(Wn),wu=ie(jn),Ru=/-(\w)/g,bu=t=>t.replace(Ru,(e,u)=>u.toUpperCase()),vu=/\B([A-Z])/g,zn=t=>t.replace(vu,"-$1").toLowerCase(),{stringify:ye}=JSON,{hasOwnProperty:Yn}=Object.prototype,ke=(t,e)=>Yn.call(t,e),qn=/^--?/,Xn=/[.:=]/,Qn=t=>{let e=t.replace(qn,""),u,r=e.match(Xn);if(r!=null&&r.index){let n=r.index;u=e.slice(n+1),e=e.slice(0,n)}return{flagName:e,flagValue:u}},Zn=/[\s.:=]/,Jn=(t,e)=>{let u=`Invalid flag name ${ye(e)}:`;if(e.length===0)throw new Error(`${u} flag name cannot be empty}`);if(e.length===1)throw new Error(`${u} single characters are reserved for aliases`);let r=e.match(Zn);if(r)throw new Error(`${u} flag name cannot contain the character ${ye(r==null?void 0:r[0])}`);let n;if(Ru.test(e)?n=bu(e):vu.test(e)&&(n=zn(e)),n&&ke(t,n))throw new Error(`${u} collides with flag ${ye(n)}`)};function es(t){let e=new Map;for(let u in t){if(!ke(t,u))continue;Jn(t,u);let r=t[u];if(r&&typeof r=="object"){let{alias:n}=r;if(typeof n=="string"){if(n.length===0)throw new Error(`Invalid flag alias ${ye(u)}: flag alias cannot be empty`);if(n.length>1)throw new Error(`Invalid flag alias ${ye(u)}: flag aliases can only be a single-character`);if(e.has(n))throw new Error(`Flag collision: Alias "${n}" is already used`);e.set(n,{name:u,schema:r})}}}return e}var ts=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),us=t=>{let e={};for(let u in t)ke(t,u)&&(e[u]=ts(t[u])?[]:void 0);return e},ot=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,rs=(t,e)=>{for(let u in t){if(!ke(t,u))continue;let r=t[u];if(!r)continue;let n=e[u];if(!(n!==void 0&&!(Array.isArray(n)&&n.length===0))&&"default"in r){let s=r.default;typeof s=="function"&&(s=s()),e[u]=s}}},Bu=(t,e)=>{if(!e)throw new Error(`Missing type on flag "${t}"`);return typeof e=="function"?e:Array.isArray(e)?e[0]:Bu(t,e.type)},ns=/^-[\da-z]+/i,ss=/^--[\w-]{2,}/,lt="--";function is(t,e=process.argv.slice(2)){let u=es(t),r={flags:us(t),unknownFlags:{},_:Object.assign([],{[lt]:[]})},n,s=(D,a,o)=>{let c=Bu(D,a);o=ot(c,o),o!==void 0&&!Number.isNaN(o)?Array.isArray(r.flags[D])?r.flags[D].push(c(o)):r.flags[D]=c(o):n=f=>{Array.isArray(r.flags[D])?r.flags[D].push(c(ot(c,f||""))):r.flags[D]=c(ot(c,f||"")),n=void 0}},i=(D,a)=>{D in r.unknownFlags||(r.unknownFlags[D]=[]),a!==void 0?r.unknownFlags[D].push(a):n=(o=!0)=>{r.unknownFlags[D].push(o),n=void 0}};for(let D=0;D<e.length;D+=1){let a=e[D];if(a===lt){let c=e.slice(D+1);r._[lt]=c,r._.push(...c);break}let o=ns.test(a);if(ss.test(a)||o){n&&n();let c=Qn(a),{flagValue:f}=c,{flagName:l}=c;if(o){for(let p=0;p<l.length;p+=1){let F=l[p],A=u.get(F),B=p===l.length-1;A?s(A.name,A.schema,B?f:!0):i(F,B?f:!0)}continue}let C=t[l];if(!C){let p=bu(l);C=t[p],C&&(l=p)}if(!C){i(l,f);continue}s(l,C,f)}else n?n(a):r._.push(a)}return n&&n(),rs(t,r.flags),r}var Ds=Object.create,Me=Object.defineProperty,as=Object.defineProperties,os=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertyNames,$u=Object.getOwnPropertySymbols,fs=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Tu=(t,e,u)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,We=(t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Tu(t,u,e[u]);if($u)for(var u of $u(e))hs.call(e,u)&&Tu(t,u,e[u]);return t},ct=(t,e)=>as(t,ls(e)),ds=t=>Me(t,"__esModule",{value:!0}),Es=(t,e)=>()=>(t&&(e=t(t=0)),e),ps=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cs=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of cs(e))!Su.call(t,n)&&(u||n!=="default")&&Me(t,n,{get:()=>e[n],enumerable:!(r=os(e,n))||r.enumerable});return t},Fs=(t,e)=>Cs(ds(Me(t!=null?Ds(fs(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=Es(()=>{}),gs=ps((t,e)=>{K(),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}});K(),K(),K();var _s=t=>{var e,u,r;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:(r=t.stdoutColumns)!=null?r:n}};K(),K(),K(),K(),K();function ms({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")}function xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ms(),"")}K();function As(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}var ys=Fs(gs(),1);function le(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,ys.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=As(r)?2:1)}return e}var Ou=t=>Math.max(...t.split(`
|
|
2
|
-
`).map(le)),ws=t=>{let e=[];for(let u of t){let{length:r}=u,n=r-e.length;for(let s=0;s<n;s+=1)e.push(0);for(let s=0;s<r;s+=1){let
|
|
1
|
+
"use strict";var $n=Object.defineProperty,Sn=Object.defineProperties;var Tn=Object.getOwnPropertyDescriptors;var mu=Object.getOwnPropertySymbols;var xn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable;var Au=(t,e,u)=>e in t?$n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,M=(t,e)=>{for(var u in e||(e={}))xn.call(e,u)&&Au(t,u,e[u]);if(mu)for(var u of mu(e))On.call(e,u)&&Au(t,u,e[u]);return t},ae=(t,e)=>Sn(t,Tn(e));var Ie=require("./pkgroll_create-require-fad3c606.cjs"),Nn=require("tty"),Hn=require("./package-b612df74.cjs"),yu=require("url"),Pn=require("child_process"),Ln=require("path"),In=require("fs"),kn=require("events"),Mn=require("util"),Wn=require("stream"),jn=require("os");require("module");function ie(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var Gn=ie(Nn),Un=ie(Pn),z=ie(Ln),oe=ie(In),Kn=ie(kn),Ae=ie(Mn),Vn=ie(Wn),wu=ie(jn),Ru=/-(\w)/g,bu=t=>t.replace(Ru,(e,u)=>u.toUpperCase()),vu=/\B([A-Z])/g,zn=t=>t.replace(vu,"-$1").toLowerCase(),{stringify:ye}=JSON,{hasOwnProperty:Yn}=Object.prototype,ke=(t,e)=>Yn.call(t,e),qn=/^--?/,Xn=/[.:=]/,Qn=t=>{let e=t.replace(qn,""),u,r=e.match(Xn);if(r!=null&&r.index){let n=r.index;u=e.slice(n+1),e=e.slice(0,n)}return{flagName:e,flagValue:u}},Zn=/[\s.:=]/,Jn=(t,e)=>{let u=`Invalid flag name ${ye(e)}:`;if(e.length===0)throw new Error(`${u} flag name cannot be empty}`);if(e.length===1)throw new Error(`${u} single characters are reserved for aliases`);let r=e.match(Zn);if(r)throw new Error(`${u} flag name cannot contain the character ${ye(r==null?void 0:r[0])}`);let n;if(Ru.test(e)?n=bu(e):vu.test(e)&&(n=zn(e)),n&&ke(t,n))throw new Error(`${u} collides with flag ${ye(n)}`)};function es(t){let e=new Map;for(let u in t){if(!ke(t,u))continue;Jn(t,u);let r=t[u];if(r&&typeof r=="object"){let{alias:n}=r;if(typeof n=="string"){if(n.length===0)throw new Error(`Invalid flag alias ${ye(u)}: flag alias cannot be empty`);if(n.length>1)throw new Error(`Invalid flag alias ${ye(u)}: flag aliases can only be a single-character`);if(e.has(n))throw new Error(`Flag collision: Alias "${n}" is already used`);e.set(n,{name:u,schema:r})}}}return e}var ts=t=>!t||typeof t=="function"?!1:Array.isArray(t)||Array.isArray(t.type),us=t=>{let e={};for(let u in t)ke(t,u)&&(e[u]=ts(t[u])?[]:void 0);return e},ot=(t,e)=>t===Number&&e===""?Number.NaN:t===Boolean?e!=="false":e,rs=(t,e)=>{for(let u in t){if(!ke(t,u))continue;let r=t[u];if(!r)continue;let n=e[u];if(!(n!==void 0&&!(Array.isArray(n)&&n.length===0))&&"default"in r){let s=r.default;typeof s=="function"&&(s=s()),e[u]=s}}},Bu=(t,e)=>{if(!e)throw new Error(`Missing type on flag "${t}"`);return typeof e=="function"?e:Array.isArray(e)?e[0]:Bu(t,e.type)},ns=/^-[\da-z]+/i,ss=/^--[\w-]{2,}/,lt="--";function is(t,e=process.argv.slice(2)){let u=es(t),r={flags:us(t),unknownFlags:{},_:Object.assign([],{[lt]:[]})},n,s=(i,a,o)=>{let c=Bu(i,a);o=ot(c,o),o!==void 0&&!Number.isNaN(o)?Array.isArray(r.flags[i])?r.flags[i].push(c(o)):r.flags[i]=c(o):n=f=>{Array.isArray(r.flags[i])?r.flags[i].push(c(ot(c,f||""))):r.flags[i]=c(ot(c,f||"")),n=void 0}},D=(i,a)=>{i in r.unknownFlags||(r.unknownFlags[i]=[]),a!==void 0?r.unknownFlags[i].push(a):n=(o=!0)=>{r.unknownFlags[i].push(o),n=void 0}};for(let i=0;i<e.length;i+=1){let a=e[i];if(a===lt){let c=e.slice(i+1);r._[lt]=c,r._.push(...c);break}let o=ns.test(a);if(ss.test(a)||o){n&&n();let c=Qn(a),{flagValue:f}=c,{flagName:l}=c;if(o){for(let p=0;p<l.length;p+=1){let F=l[p],A=u.get(F),B=p===l.length-1;A?s(A.name,A.schema,B?f:!0):D(F,B?f:!0)}continue}let C=t[l];if(!C){let p=bu(l);C=t[p],C&&(l=p)}if(!C){D(l,f);continue}s(l,C,f)}else n?n(a):r._.push(a)}return n&&n(),rs(t,r.flags),r}var Ds=Object.create,Me=Object.defineProperty,as=Object.defineProperties,os=Object.getOwnPropertyDescriptor,ls=Object.getOwnPropertyDescriptors,cs=Object.getOwnPropertyNames,$u=Object.getOwnPropertySymbols,fs=Object.getPrototypeOf,Su=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Tu=(t,e,u)=>e in t?Me(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,We=(t,e)=>{for(var u in e||(e={}))Su.call(e,u)&&Tu(t,u,e[u]);if($u)for(var u of $u(e))hs.call(e,u)&&Tu(t,u,e[u]);return t},ct=(t,e)=>as(t,ls(e)),ds=t=>Me(t,"__esModule",{value:!0}),Es=(t,e)=>()=>(t&&(e=t(t=0)),e),ps=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Cs=(t,e,u,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of cs(e))!Su.call(t,n)&&(u||n!=="default")&&Me(t,n,{get:()=>e[n],enumerable:!(r=os(e,n))||r.enumerable});return t},Fs=(t,e)=>Cs(ds(Me(t!=null?Ds(fs(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),K=Es(()=>{}),gs=ps((t,e)=>{K(),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}});K(),K(),K();var _s=t=>{var e,u,r;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:(r=t.stdoutColumns)!=null?r:n}};K(),K(),K(),K(),K();function ms({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")}function xu(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(ms(),"")}K();function As(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}var ys=Fs(gs(),1);function le(t){if(typeof t!="string"||t.length===0||(t=xu(t),t.length===0))return 0;t=t.replace((0,ys.default)()," ");let e=0;for(let u=0;u<t.length;u++){let r=t.codePointAt(u);r<=31||r>=127&&r<=159||r>=768&&r<=879||(r>65535&&u++,e+=As(r)?2:1)}return e}var Ou=t=>Math.max(...t.split(`
|
|
2
|
+
`).map(le)),ws=t=>{let e=[];for(let u of t){let{length:r}=u,n=r-e.length;for(let s=0;s<n;s+=1)e.push(0);for(let s=0;s<r;s+=1){let D=Ou(u[s]);D>e[s]&&(e[s]=D)}}return e};K();var Nu=/^\d+%$/,Hu={width:"auto",align:"left",contentWidth:0,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,horizontalPadding:0,paddingLeftString:"",paddingRightString:""},Rs=(t,e)=>{var u;let r=[];for(let n=0;n<t.length;n+=1){let s=(u=e[n])!=null?u:"auto";if(typeof s=="number"||s==="auto"||s==="content-width"||typeof s=="string"&&Nu.test(s)){r.push(ct(We({},Hu),{width:s,contentWidth:t[n]}));continue}if(s&&typeof s=="object"){let D=ct(We(We({},Hu),s),{contentWidth:t[n]});D.horizontalPadding=D.paddingLeft+D.paddingRight,r.push(D);continue}throw new Error(`Invalid column width: ${JSON.stringify(s)}`)}return r};function bs(t,e){for(let u of t){let{width:r}=u;if(r==="content-width"&&(u.width=u.contentWidth),r==="auto"){let a=Math.min(20,u.contentWidth);u.width=a,u.autoOverflow=u.contentWidth-a}if(typeof r=="string"&&Nu.test(r)){let a=Number.parseFloat(r.slice(0,-1))/100;u.width=Math.floor(e*a)-(u.paddingLeft+u.paddingRight)}let{horizontalPadding:n}=u,s=1,D=s+n;if(D>=e){let a=D-e,o=Math.ceil(u.paddingLeft/n*a),c=a-o;u.paddingLeft-=o,u.paddingRight-=c,u.horizontalPadding=u.paddingLeft+u.paddingRight}u.paddingLeftString=u.paddingLeft?" ".repeat(u.paddingLeft):"",u.paddingRightString=u.paddingRight?" ".repeat(u.paddingRight):"";let i=e-u.horizontalPadding;u.width=Math.max(Math.min(u.width,i),s)}}var Pu=()=>Object.assign([],{columns:0});function vs(t,e){let u=[Pu()],[r]=u;for(let n of t){let s=n.width+n.horizontalPadding;r.columns+s>e&&(r=Pu(),u.push(r)),r.push(n),r.columns+=s}for(let n of u){let s=n.reduce((l,C)=>l+C.width+C.horizontalPadding,0),D=e-s;if(D===0)continue;let i=n.filter(l=>"autoOverflow"in l),a=i.filter(l=>l.autoOverflow>0),o=a.reduce((l,C)=>l+C.autoOverflow,0),c=Math.min(o,D);for(let l of a){let C=Math.floor(l.autoOverflow/o*c);l.width+=C,D-=C}let f=Math.floor(D/i.length);for(let l=0;l<i.length;l+=1){let C=i[l];l===i.length-1?C.width+=D:C.width+=f,D-=f}}return u}function Bs(t,e,u){let r=Rs(u,e);return bs(r,t),vs(r,t)}K(),K(),K();var ft=10,Lu=(t=0)=>e=>`\x1B[${e+t}m`,Iu=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,ku=(t=0)=>(e,u,r)=>`\x1B[${38+t};2;${e};${u};${r}m`;function $s(){let t=new Map,e={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};e.color.gray=e.color.blackBright,e.bgColor.bgGray=e.bgColor.bgBlackBright,e.color.grey=e.color.blackBright,e.bgColor.bgGrey=e.bgColor.bgBlackBright;for(let[u,r]of Object.entries(e)){for(let[n,s]of Object.entries(r))e[n]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},r[n]=e[n],t.set(s[0],s[1]);Object.defineProperty(e,u,{value:r,enumerable:!1})}return Object.defineProperty(e,"codes",{value:t,enumerable:!1}),e.color.close="\x1B[39m",e.bgColor.close="\x1B[49m",e.color.ansi=Lu(),e.color.ansi256=Iu(),e.color.ansi16m=ku(),e.bgColor.ansi=Lu(ft),e.bgColor.ansi256=Iu(ft),e.bgColor.ansi16m=ku(ft),Object.defineProperties(e,{rgbToAnsi256:{value:(u,r,n)=>u===r&&r===n?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:u=>{let r=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(u.toString(16));if(!r)return[0,0,0];let{colorString:n}=r.groups;n.length===3&&(n=n.split("").map(D=>D+D).join(""));let s=Number.parseInt(n,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>e.rgbToAnsi256(...e.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let r,n,s;if(u>=232)r=((u-232)*10+8)/255,n=r,s=r;else{u-=16;let a=u%36;r=Math.floor(u/36)/5,n=Math.floor(a/6)/5,s=a%6/5}let D=Math.max(r,n,s)*2;if(D===0)return 30;let i=30+(Math.round(s)<<2|Math.round(n)<<1|Math.round(r));return D===2&&(i+=60),i},enumerable:!1},rgbToAnsi:{value:(u,r,n)=>e.ansi256ToAnsi(e.rgbToAnsi256(u,r,n)),enumerable:!1},hexToAnsi:{value:u=>e.ansi256ToAnsi(e.hexToAnsi256(u)),enumerable:!1}}),e}var Ss=$s(),Ts=Ss,je=new Set(["\x1B","\x9B"]),xs=39,ht="\x07",Mu="[",Os="]",Wu="m",dt=`${Os}8;;`,ju=t=>`${je.values().next().value}${Mu}${t}${Wu}`,Gu=t=>`${je.values().next().value}${dt}${t}${ht}`,Ns=t=>t.split(" ").map(e=>le(e)),Et=(t,e,u)=>{let r=[...e],n=!1,s=!1,D=le(xu(t[t.length-1]));for(let[i,a]of r.entries()){let o=le(a);if(D+o<=u?t[t.length-1]+=a:(t.push(a),D=0),je.has(a)&&(n=!0,s=r.slice(i+1).join("").startsWith(dt)),n){s?a===ht&&(n=!1,s=!1):a===Wu&&(n=!1);continue}D+=o,D===u&&i<r.length-1&&(t.push(""),D=0)}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())},Hs=t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(le(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")},Ps=(t,e,u={})=>{if(u.trim!==!1&&t.trim()==="")return"";let r="",n,s,D=Ns(t),i=[""];for(let[o,c]of t.split(" ").entries()){u.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let f=le(i[i.length-1]);if(o!==0&&(f>=e&&(u.wordWrap===!1||u.trim===!1)&&(i.push(""),f=0),(f>0||u.trim===!1)&&(i[i.length-1]+=" ",f++)),u.hard&&D[o]>e){let l=e-f,C=1+Math.floor((D[o]-l-1)/e);Math.floor((D[o]-1)/e)<C&&i.push(""),Et(i,c,e);continue}if(f+D[o]>e&&f>0&&D[o]>0){if(u.wordWrap===!1&&f<e){Et(i,c,e);continue}i.push("")}if(f+D[o]>e&&u.wordWrap===!1){Et(i,c,e);continue}i[i.length-1]+=c}u.trim!==!1&&(i=i.map(o=>Hs(o)));let a=[...i.join(`
|
|
3
3
|
`)];for(let[o,c]of a.entries()){if(r+=c,je.has(c)){let{groups:l}=new RegExp(`(?:\\${Mu}(?<code>\\d+)m|\\${dt}(?<uri>.*)${ht})`).exec(a.slice(o).join(""))||{groups:{}};if(l.code!==void 0){let C=Number.parseFloat(l.code);n=C===xs?void 0:C}else l.uri!==void 0&&(s=l.uri.length===0?void 0:l.uri)}let f=Ts.codes.get(Number(n));a[o+1]===`
|
|
4
4
|
`?(s&&(r+=Gu("")),n&&f&&(r+=ju(f))):c===`
|
|
5
5
|
`&&(n&&f&&(r+=ju(n)),s&&(r+=Gu(s)))}return r};function Ls(t,e,u){return String(t).normalize().replace(/\r\n/g,`
|
|
6
6
|
`).split(`
|
|
7
7
|
`).map(r=>Ps(r,e,u)).join(`
|
|
8
|
-
`)}var Uu=t=>Array.from({length:t}).fill("");function Is(t,e){let u=[],r=0;for(let n of t){let s=0,
|
|
9
|
-
`);if(a.postprocess){let{postprocess:l}=a;f=f.map((C,p)=>l.call(a,C,p))}return a.paddingTop&&f.unshift(...Uu(a.paddingTop)),a.paddingBottom&&f.push(...Uu(a.paddingBottom)),f.length>s&&(s=f.length),ct(We({},a),{lines:f})}),
|
|
8
|
+
`)}var Uu=t=>Array.from({length:t}).fill("");function Is(t,e){let u=[],r=0;for(let n of t){let s=0,D=n.map(a=>{var o;let c=(o=e[r])!=null?o:"";r+=1,a.preprocess&&(c=a.preprocess(c)),Ou(c)>a.width&&(c=Ls(c,a.width,{hard:!0}));let f=c.split(`
|
|
9
|
+
`);if(a.postprocess){let{postprocess:l}=a;f=f.map((C,p)=>l.call(a,C,p))}return a.paddingTop&&f.unshift(...Uu(a.paddingTop)),a.paddingBottom&&f.push(...Uu(a.paddingBottom)),f.length>s&&(s=f.length),ct(We({},a),{lines:f})}),i=[];for(let a=0;a<s;a+=1){let o=D.map(c=>{var f;let l=(f=c.lines[a])!=null?f:"",C=Number.isFinite(c.width)?" ".repeat(c.width-le(l)):"",p=c.paddingLeftString;return c.align==="right"&&(p+=C),p+=l,c.align==="left"&&(p+=C),p+c.paddingRightString}).join("");i.push(o)}u.push(i.join(`
|
|
10
10
|
`))}return u.join(`
|
|
11
|
-
`)}function ks(t,e){if(!t||t.length===0)return"";let u=ws(t),r=u.length;if(r===0)return"";let{stdoutColumns:n,columns:s}=_s(e);if(s.length>r)throw new Error(`${s.length} columns defined, but only ${r} columns found`);let
|
|
12
|
-
`)}K();var Ms=["<",">","=",">=","<="];function Ws(t){if(!Ms.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function js(t){let e=Object.keys(t).map(u=>{let[r,n]=u.split(" ");Ws(r);let s=Number.parseInt(n,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${n}`);let
|
|
11
|
+
`)}function ks(t,e){if(!t||t.length===0)return"";let u=ws(t),r=u.length;if(r===0)return"";let{stdoutColumns:n,columns:s}=_s(e);if(s.length>r)throw new Error(`${s.length} columns defined, but only ${r} columns found`);let D=Bs(n,s,u);return t.map(i=>Is(D,i)).join(`
|
|
12
|
+
`)}K();var Ms=["<",">","=",">=","<="];function Ws(t){if(!Ms.includes(t))throw new TypeError(`Invalid breakpoint operator: ${t}`)}function js(t){let e=Object.keys(t).map(u=>{let[r,n]=u.split(" ");Ws(r);let s=Number.parseInt(n,10);if(Number.isNaN(s))throw new TypeError(`Invalid breakpoint value: ${n}`);let D=t[u];return{operator:r,breakpoint:s,value:D}}).sort((u,r)=>r.breakpoint-u.breakpoint);return u=>{var r;return(r=e.find(({operator:n,breakpoint:s})=>n==="="&&u===s||n===">"&&u>s||n==="<"&&u<s||n===">="&&u>=s||n==="<="&&u<=s))==null?void 0:r.value}}const Gs=t=>t.replace(/[-_ ](\w)/g,(e,u)=>u.toUpperCase()),Us=t=>t.replace(/\B([A-Z])/g,"-$1").toLowerCase(),Ks={"> 80":[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"auto"}],"> 40":[{width:"auto",paddingLeft:2,paddingRight:8,preprocess:t=>t.trim()},{width:"100%",paddingLeft:2,paddingBottom:1}],"> 0":{stdoutColumns:1e3,columns:[{width:"content-width",paddingLeft:2,paddingRight:8},{width:"content-width"}]}};function Vs(t){let e=!1;const u=Object.keys(t).sort((r,n)=>r.localeCompare(n)).map(r=>{const n=t[r],s="alias"in n;return s&&(e=!0),{name:r,flag:n,flagFormatted:`--${Us(r)}`,aliasesEnabled:e,aliasFormatted:s?`-${n.alias}`:void 0}}).map(r=>(r.aliasesEnabled=e,[{type:"flagName",data:r},{type:"flagDescription",data:r}]));return{type:"table",data:{tableData:u,tableBreakpoints:Ks}}}const Ku=t=>{var e;return!t||((e=t.version)!=null?e:t.help?t.help.version:void 0)},Vu=t=>{var e;const u="parent"in t&&((e=t.parent)==null?void 0:e.name);return(u?`${u} `:"")+t.name};function zs(t){var e;const u=[];t.name&&u.push(Vu(t));const r=(e=Ku(t))!=null?e:"parent"in t&&Ku(t.parent);if(r&&u.push(`v${r}`),u.length!==0)return{id:"name",type:"text",data:`${u.join(" ")}
|
|
13
13
|
`}}function Ys(t){const{help:e}=t;if(!(!e||!e.description))return{id:"description",type:"text",data:`${e.description}
|
|
14
14
|
`}}function qs(t){var e;const u=t.help||{};if("usage"in u)return u.usage?{id:"usage",type:"section",data:{title:"Usage:",body:Array.isArray(u.usage)?u.usage.join(`
|
|
15
|
-
`):u.usage}}:void 0;if(t.name){const r=[],n=[Vu(t)];if(t.flags&&Object.keys(t.flags).length>0&&n.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:s}=t,
|
|
15
|
+
`):u.usage}}:void 0;if(t.name){const r=[],n=[Vu(t)];if(t.flags&&Object.keys(t.flags).length>0&&n.push("[flags...]"),t.parameters&&t.parameters.length>0){const{parameters:s}=t,D=s.indexOf("--"),i=D>-1&&s.slice(D+1).some(a=>a.startsWith("<"));n.push(s.map(a=>a!=="--"?a:i?"--":"[--]").join(" "))}if(n.length>1&&r.push(n.join(" ")),"commands"in t&&((e=t.commands)==null?void 0:e.length)&&r.push(`${t.name} <command>`),r.length>0)return{id:"usage",type:"section",data:{title:"Usage:",body:r.join(`
|
|
16
16
|
`)}}}}function Xs(t){var e;if(!("commands"in t)||!((e=t.commands)!=null&&e.length))return;const u=t.commands.map(r=>[r.options.name,r.options.help?r.options.help.description:""]);return{id:"commands",type:"section",data:{title:"Commands:",body:{type:"table",data:{tableData:u,tableOptions:[{width:"content-width",paddingLeft:2,paddingRight:8}]}},indentBody:0}}}function Qs(t){if(!(!t.flags||Object.keys(t.flags).length===0))return{id:"flags",type:"section",data:{title:"Flags:",body:Vs(t.flags),indentBody:0}}}function Zs(t){const{help:e}=t;if(!e||!e.examples||e.examples.length===0)return;let{examples:u}=e;if(Array.isArray(u)&&(u=u.join(`
|
|
17
17
|
`)),u)return{id:"examples",type:"section",data:{title:"Examples:",body:u}}}function Js(t){if(!("alias"in t)||!t.alias)return;const{alias:e}=t,u=Array.isArray(e)?e.join(", "):e;return{id:"aliases",type:"section",data:{title:"Aliases:",body:u}}}const ei=t=>[zs,Ys,qs,Xs,Qs,Zs,Js].map(e=>e(t)).filter(e=>Boolean(e)),ti=Gn.default.WriteStream.prototype.hasColors();class ui{text(e){return e}bold(e){return ti?`\x1B[1m${e}\x1B[22m`:e.toLocaleUpperCase()}indentText({text:e,spaces:u}){return e.replace(/^/gm," ".repeat(u))}heading(e){return this.bold(e)}section({title:e,body:u,indentBody:r=2}){return`${(e?`${this.heading(e)}
|
|
18
18
|
`:"")+(u?this.indentText({text:this.render(u),spaces:r}):"")}
|
|
19
|
-
`}table({tableData:e,tableOptions:u,tableBreakpoints:r}){return ks(e.map(n=>n.map(s=>this.render(s))),r?js(r):u)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:u,flagFormatted:r,aliasesEnabled:n,aliasFormatted:s}=e;let
|
|
20
|
-
`);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const pt=/^[\w.-]+$/;var ri=Object.defineProperty,ni=Object.defineProperties,si=Object.getOwnPropertyDescriptors,zu=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Yu=(t,e,u)=>e in t?ri(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,de=(t,e)=>{for(var u in e||(e={}))ii.call(e,u)&&Yu(t,u,e[u]);if(zu)for(var u of zu(e))Di.call(e,u)&&Yu(t,u,e[u]);return t},Ct=(t,e)=>ni(t,si(e));const{stringify:ee}=JSON,ai=/[|\\{}()[\]^$+*?.]/;function Ft(t){const e=[];let u,r;for(const n of t){if(r)throw new Error(`Invalid parameter: Spread parameter ${ee(r)} must be last`);const s=n[0],
|
|
21
|
-
`),r(),process.exit(1);t[a]=o}}function oi(t){return t===void 0||t!==!1}function qu(t,e,u,r){const n=de({},e.flags),s=e.version;s&&(n.version={type:Boolean,description:"Show version"});const{help:i}=e,D=oi(i);D&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const a=is(n,r),o=()=>{console.log(e.version)};if(s&&a.flags.version===!0)return o(),process.exit(0);const c=new ui,f=D&&(i==null?void 0:i.render)?i.render:p=>c.render(p),l=p=>{const F=ei(Ct(de(de({},e),p?{help:p}:{}),{flags:n}));console.log(f(F,c))};if(D&&a.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:p}=e,F=a._;const A=p.indexOf("--"),B=p.slice(A+1),H=Object.create(null);if(A>-1&&B.length>0){p=p.slice(0,A);const $=a._["--"];F=F.slice(0,-$.length||void 0),gt(H,Ft(p),F,l),gt(H,Ft(B),$,l)}else gt(H,Ft(p),F,l);Object.assign(a._,H)}const C=Ct(de({},a),{showVersion:o,showHelp:l});return typeof u=="function"&&u(C),de({command:t},C)}function li(t,e){const u=new Map;for(const r of e){const n=[r.options.name],{alias:s}=r.options;s&&(Array.isArray(s)?n.push(...s):n.push(s));for(const i of n){if(u.has(i))throw new Error(`Duplicate command name found: ${ee(i)}`);u.set(i,r)}}return u.get(t)}function ci(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!pt.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const r=u[0];if(t.commands&&pt.test(r)){const n=li(r,t.commands);if(n)return qu(n.options.name,Ct(de({},n.options),{parent:t}),n.callback,u.slice(1))}return qu(void 0,t,e,u)}function fi(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(!pt.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ee={exports:{}},_t,Xu;function di(){if(Xu)return _t;Xu=1,_t=r,r.sync=n;var t=oe.default;function e(s,i){var D=i.pathExt!==void 0?i.pathExt:process.env.PATHEXT;if(!D||(D=D.split(";"),D.indexOf("")!==-1))return!0;for(var a=0;a<D.length;a++){var o=D[a].toLowerCase();if(o&&s.substr(-o.length).toLowerCase()===o)return!0}return!1}function u(s,i,D){return!s.isSymbolicLink()&&!s.isFile()?!1:e(i,D)}function r(s,i,D){t.stat(s,function(a,o){D(a,a?!1:u(o,s,i))})}function n(s,i){return u(t.statSync(s),s,i)}return _t}var mt,Qu;function Ei(){if(Qu)return mt;Qu=1,mt=e,e.sync=u;var t=oe.default;function e(s,i,D){t.stat(s,function(a,o){D(a,a?!1:r(o,i))})}function u(s,i){return r(t.statSync(s),i)}function r(s,i){return s.isFile()&&n(s,i)}function n(s,i){var D=s.mode,a=s.uid,o=s.gid,c=i.uid!==void 0?i.uid:process.getuid&&process.getuid(),f=i.gid!==void 0?i.gid:process.getgid&&process.getgid(),l=parseInt("100",8),C=parseInt("010",8),p=parseInt("001",8),F=l|C,A=D&p||D&C&&o===f||D&l&&a===c||D&F&&c===0;return A}return mt}var Ge;process.platform==="win32"||hi.TESTING_WINDOWS?Ge=di():Ge=Ei();var pi=At;At.sync=Ci;function At(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(r,n){At(t,e||{},function(s,i){s?n(s):r(i)})})}Ge(t,e||{},function(r,n){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,n=!1),u(r,n)})}function Ci(t,e){try{return Ge.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const pe=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Zu=z.default,Fi=pe?";":":",Ju=pi,er=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),tr=(t,e)=>{const u=e.colon||Fi,r=t.match(/\//)||pe&&t.match(/\\/)?[""]:[...pe?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=pe?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=pe?n.split(u):[""];return pe&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:n}},ur=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:r,pathExt:n,pathExtExe:s}=tr(t,e),i=[],D=o=>new Promise((c,f)=>{if(o===r.length)return e.all&&i.length?c(i):f(er(t));const l=r[o],C=/^".*"$/.test(l)?l.slice(1,-1):l,p=Zu.join(C,t),F=!C&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;c(a(F,o,0))}),a=(o,c,f)=>new Promise((l,C)=>{if(f===n.length)return l(D(c+1));const p=n[f];Ju(o+p,{pathExt:s},(F,A)=>{if(!F&&A)if(e.all)i.push(o+p);else return l(o+p);return l(a(o,c,f+1))})});return u?D(0).then(o=>u(null,o),u):D(0)},gi=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,pathExtExe:n}=tr(t,e),s=[];for(let i=0;i<u.length;i++){const D=u[i],a=/^".*"$/.test(D)?D.slice(1,-1):D,o=Zu.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+o:o;for(let f=0;f<r.length;f++){const l=c+r[f];try{if(Ju.sync(l,{pathExt:n}))if(e.all)s.push(l);else return l}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw er(t)};var _i=ur;ur.sync=gi;var yt={exports:{}};const rr=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};yt.exports=rr,yt.exports.default=rr;const nr=z.default,mi=_i,Ai=yt.exports;function sr(t,e){const u=t.options.env||process.env,r=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let i;try{i=mi.sync(t.command,{path:u[Ai({env:u})],pathExt:e?nr.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return i&&(i=nr.resolve(n?t.options.cwd:"",i)),i}function yi(t){return sr(t)||sr(t,!0)}var wi=yi,wt={};const Rt=/([()\][%!^"`<>&|;, *?])/g;function Ri(t){return t=t.replace(Rt,"^$1"),t}function bi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Rt,"^$1"),e&&(t=t.replace(Rt,"^$1")),t}wt.command=Ri,wt.argument=bi;var vi=/^#!(.*)/;const Bi=vi;var $i=(t="")=>{const e=t.match(Bi);if(!e)return null;const[u,r]=e[0].replace(/#! ?/,"").split(" "),n=u.split("/").pop();return n==="env"?r:r?`${n} ${r}`:n};const bt=oe.default,Si=$i;function Ti(t){const u=Buffer.alloc(150);let r;try{r=bt.openSync(t,"r"),bt.readSync(r,u,0,150,0),bt.closeSync(r)}catch{}return Si(u.toString())}var xi=Ti;const Oi=z.default,ir=wi,Dr=wt,Ni=xi,Hi=process.platform==="win32",Pi=/\.(?:com|exe)$/i,Li=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ii(t){t.file=ir(t);const e=t.file&&Ni(t.file);return e?(t.args.unshift(t.file),t.command=e,ir(t)):t.file}function ki(t){if(!Hi)return t;const e=Ii(t),u=!Pi.test(e);if(t.options.forceShell||u){const r=Li.test(e);t.command=Oi.normalize(t.command),t.command=Dr.command(t.command),t.args=t.args.map(s=>Dr.argument(s,r));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}function Mi(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const r={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?r:ki(r)}var Wi=Mi;const vt=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})}function ji(t,e){if(!vt)return;const u=t.emit;t.emit=function(r,n){if(r==="exit"){const s=ar(n,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function ar(t,e){return vt&&t===1&&!e.file?Bt(e.original,"spawn"):null}function Gi(t,e){return vt&&t===1&&!e.file?Bt(e.original,"spawnSync"):null}var Ui={hookChildProcess:ji,verifyENOENT:ar,verifyENOENTSync:Gi,notFoundError:Bt};const or=Un.default,$t=Wi,St=Ui;function lr(t,e,u){const r=$t(t,e,u),n=or.spawn(r.command,r.args,r.options);return St.hookChildProcess(n,r),n}function Ki(t,e,u){const r=$t(t,e,u),n=or.spawnSync(r.command,r.args,r.options);return n.error=n.error||St.verifyENOENTSync(n.status,r),n}Ee.exports=lr,Ee.exports.spawn=lr,Ee.exports.sync=Ki,Ee.exports._parse=$t,Ee.exports._enoent=St;var Vi=Object.defineProperty,cr=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,fr=(t,e,u)=>e in t?Vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,qi=(t,e)=>{for(var u in e||(e={}))zi.call(e,u)&&fr(t,u,e[u]);if(cr)for(var u of cr(e))Yi.call(e,u)&&fr(t,u,e[u]);return t};function hr(t,e){const u=qi({},process.env);e!=null&&e.noCache&&(u.ESBK_DISABLE_CACHE="1");const r=["inherit","inherit","inherit"];return e!=null&&e.ipc&&r.push("ipc"),Ee.exports(process.execPath,["--require",Ie.require.resolve("./suppress-warnings.cjs"),"--loader",yu.pathToFileURL(Ie.require.resolve("./loader.js")).toString(),...t],{stdio:r,env:u})}var Tt={exports:{}},Ue={};const Xi=z.default,te="\\\\/",dr=`[^${te}]`,ue="\\.",Qi="\\+",Zi="\\?",Ke="\\/",Ji="(?=.)",Er="[^/]",xt=`(?:${Ke}|$)`,pr=`(?:^|${Ke})`,Ot=`${ue}{1,2}${xt}`,eD=`(?!${ue})`,tD=`(?!${pr}${Ot})`,uD=`(?!${ue}{0,1}${xt})`,rD=`(?!${Ot})`,nD=`[^.${Ke}]`,sD=`${Er}*?`,Cr={DOT_LITERAL:ue,PLUS_LITERAL:Qi,QMARK_LITERAL:Zi,SLASH_LITERAL:Ke,ONE_CHAR:Ji,QMARK:Er,END_ANCHOR:xt,DOTS_SLASH:Ot,NO_DOT:eD,NO_DOTS:tD,NO_DOT_SLASH:uD,NO_DOTS_SLASH:rD,QMARK_NO_DOT:nD,STAR:sD,START_ANCHOR:pr},iD=ae(M({},Cr),{SLASH_LITERAL:`[${te}]`,QMARK:dr,STAR:`${dr}*?`,DOTS_SLASH:`${ue}{1,2}(?:[${te}]|$)`,NO_DOT:`(?!${ue})`,NO_DOTS:`(?!(?:^|[${te}])${ue}{1,2}(?:[${te}]|$))`,NO_DOT_SLASH:`(?!${ue}{0,1}(?:[${te}]|$))`,NO_DOTS_SLASH:`(?!${ue}{1,2}(?:[${te}]|$))`,QMARK_NO_DOT:`[^.${te}]`,START_ANCHOR:`(?:^|[${te}])`,END_ANCHOR:`(?:[${te}]|$)`}),DD={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 Ve={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:DD,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:Xi.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?iD:Cr}};(function(t){const e=z.default,u=process.platform==="win32",{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=Ve;t.isObject=D=>D!==null&&typeof D=="object"&&!Array.isArray(D),t.hasRegexChars=D=>s.test(D),t.isRegexChar=D=>D.length===1&&t.hasRegexChars(D),t.escapeRegex=D=>D.replace(i,"\\$1"),t.toPosixSlashes=D=>D.replace(r,"/"),t.removeBackslashes=D=>D.replace(n,a=>a==="\\"?"":a),t.supportsLookbehinds=()=>{const D=process.version.slice(1).split(".").map(Number);return D.length===3&&D[0]>=9||D[0]===8&&D[1]>=10},t.isWindows=D=>D&&typeof D.windows=="boolean"?D.windows:u===!0||e.sep==="\\",t.escapeLast=(D,a,o)=>{const c=D.lastIndexOf(a,o);return c===-1?D:D[c-1]==="\\"?t.escapeLast(D,a,c-1):`${D.slice(0,c)}\\${D.slice(c)}`},t.removePrefix=(D,a={})=>{let o=D;return o.startsWith("./")&&(o=o.slice(2),a.prefix="./"),o},t.wrapOutput=(D,a={},o={})=>{const c=o.contains?"":"^",f=o.contains?"":"$";let l=`${c}(?:${D})${f}`;return a.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(Ue);const Fr=Ue,{CHAR_ASTERISK:Nt,CHAR_AT:aD,CHAR_BACKWARD_SLASH:we,CHAR_COMMA:oD,CHAR_DOT:Ht,CHAR_EXCLAMATION_MARK:Pt,CHAR_FORWARD_SLASH:gr,CHAR_LEFT_CURLY_BRACE:Lt,CHAR_LEFT_PARENTHESES:It,CHAR_LEFT_SQUARE_BRACKET:lD,CHAR_PLUS:cD,CHAR_QUESTION_MARK:_r,CHAR_RIGHT_CURLY_BRACE:fD,CHAR_RIGHT_PARENTHESES:mr,CHAR_RIGHT_SQUARE_BRACKET:hD}=Ve,Ar=t=>t===gr||t===we,yr=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},dD=(t,e)=>{const u=e||{},r=t.length-1,n=u.parts===!0||u.scanToEnd===!0,s=[],i=[],D=[];let a=t,o=-1,c=0,f=0,l=!1,C=!1,p=!1,F=!1,A=!1,B=!1,H=!1,$=!1,Q=!1,W=!1,ne=0,j,m,b={value:"",depth:0,isGlob:!1};const k=()=>o>=r,E=()=>a.charCodeAt(o+1),x=()=>(j=m,a.charCodeAt(++o));for(;o<r;){m=x();let G;if(m===we){H=b.backslashes=!0,m=x(),m===Lt&&(B=!0);continue}if(B===!0||m===Lt){for(ne++;k()!==!0&&(m=x());){if(m===we){H=b.backslashes=!0,x();continue}if(m===Lt){ne++;continue}if(B!==!0&&m===Ht&&(m=x())===Ht){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(B!==!0&&m===oD){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===fD&&(ne--,ne===0)){B=!1,l=b.isBrace=!0,W=!0;break}}if(n===!0)continue;break}if(m===gr){if(s.push(o),i.push(b),b={value:"",depth:0,isGlob:!1},W===!0)continue;if(j===Ht&&o===c+1){c+=2;continue}f=o+1;continue}if(u.noext!==!0&&(m===cD||m===aD||m===Nt||m===_r||m===Pt)===!0&&E()===It){if(p=b.isGlob=!0,F=b.isExtglob=!0,W=!0,m===Pt&&o===c&&(Q=!0),n===!0){for(;k()!==!0&&(m=x());){if(m===we){H=b.backslashes=!0,m=x();continue}if(m===mr){p=b.isGlob=!0,W=!0;break}}continue}break}if(m===Nt){if(j===Nt&&(A=b.isGlobstar=!0),p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===_r){if(p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===lD){for(;k()!==!0&&(G=x());){if(G===we){H=b.backslashes=!0,x();continue}if(G===hD){C=b.isBracket=!0,p=b.isGlob=!0,W=!0;break}}if(n===!0)continue;break}if(u.nonegate!==!0&&m===Pt&&o===c){$=b.negated=!0,c++;continue}if(u.noparen!==!0&&m===It){if(p=b.isGlob=!0,n===!0){for(;k()!==!0&&(m=x());){if(m===It){H=b.backslashes=!0,m=x();continue}if(m===mr){W=!0;break}}continue}break}if(p===!0){if(W=!0,n===!0)continue;break}}u.noext===!0&&(F=!1,p=!1);let S=a,se="",h="";c>0&&(se=a.slice(0,c),a=a.slice(c),f-=c),S&&p===!0&&f>0?(S=a.slice(0,f),h=a.slice(f)):p===!0?(S="",h=a):S=a,S&&S!==""&&S!=="/"&&S!==a&&Ar(S.charCodeAt(S.length-1))&&(S=S.slice(0,-1)),u.unescape===!0&&(h&&(h=Fr.removeBackslashes(h)),S&&H===!0&&(S=Fr.removeBackslashes(S)));const d={prefix:se,input:t,start:c,base:S,glob:h,isBrace:l,isBracket:C,isGlob:p,isExtglob:F,isGlobstar:A,negated:$,negatedExtglob:Q};if(u.tokens===!0&&(d.maxDepth=0,Ar(m)||i.push(b),d.tokens=i),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<s.length;R++){const Z=G?G+1:c,J=s[R],V=t.slice(Z,J);u.tokens&&(R===0&&c!==0?(i[R].isPrefix=!0,i[R].value=se):i[R].value=V,yr(i[R]),d.maxDepth+=i[R].depth),(R!==0||V!=="")&&D.push(V),G=J}if(G&&G+1<t.length){const R=t.slice(G+1);D.push(R),u.tokens&&(i[i.length-1].value=R,yr(i[i.length-1]),d.maxDepth+=i[i.length-1].depth)}d.slashes=s,d.parts=D}return d};var ED=dD;const ze=Ve,Y=Ue,{MAX_LENGTH:Ye,POSIX_REGEX_SOURCE:pD,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:FD,REPLACEMENTS:wr}=ze,gD=(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=>Y.escapeRegex(n)).join("..")}return u},Ce=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,kt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=wr[t]||t;const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye;let n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:u.prepend||""},i=[s],D=u.capture?"":"?:",a=Y.isWindows(e),o=ze.globChars(a),c=ze.extglobChars(o),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:C,ONE_CHAR:p,DOTS_SLASH:F,NO_DOT:A,NO_DOT_SLASH:B,NO_DOTS_SLASH:H,QMARK:$,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:ne}=o,j=_=>`(${D}(?:(?!${ne}${_.dot?F:f}).)*?)`,m=u.dot?"":A,b=u.dot?$:Q;let k=u.bash===!0?j(u):W;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={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=Y.removePrefix(t,E),n=t.length;const x=[],S=[],se=[];let h=s,d;const G=()=>E.index===n-1,R=E.peek=(_=1)=>t[E.index+_],Z=E.advance=()=>t[++E.index]||"",J=()=>t.slice(E.index+1),V=(_="",T=0)=>{E.consumed+=_,E.index+=T},Ne=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},vn=()=>{let _=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Z(),E.start++,_++;return _%2===0?!1:(E.negated=!0,E.start++,!0)},He=_=>{E[_]++,se.push(_)},De=_=>{E[_]--,se.pop()},w=_=>{if(h.type==="globstar"){const T=E.braces>0&&(_.type==="comma"||_.type==="brace"),g=_.extglob===!0||x.length&&(_.type==="pipe"||_.type==="paren");_.type!=="slash"&&_.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&_.type!=="paren"&&(x[x.length-1].inner+=_.value),(_.value||_.output)&&Ne(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,i.push(_),h=_},Pe=(_,T)=>{const g=ae(M({},c[T]),{conditions:1,inner:""});g.prev=h,g.parens=E.parens,g.output=E.output;const y=(u.capture?"(":"")+g.open;He("parens"),w({type:_,value:T,output:E.output?"":p}),w({type:"paren",extglob:!0,value:Z(),output:y}),x.push(g)},Bn=_=>{let T=_.close+(u.capture?")":""),g;if(_.type==="negate"){let y=k;if(_.inner&&_.inner.length>1&&_.inner.includes("/")&&(y=j(u)),(y!==k||G()||/^\)+$/.test(J()))&&(T=_.close=`)$))${y}`),_.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=kt(g,ae(M({},e),{fastpaths:!1})).output;T=_.close=`)${O})${y})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),De("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(FD,(g,y,O,U,P,at)=>U==="\\"?(_=!0,g):U==="?"?y?y+U+(P?$.repeat(P.length):""):at===0?b+(P?$.repeat(P.length):""):$.repeat(O.length):U==="."?f.repeat(O.length):U==="*"?y?y+U+(P?k:""):k:y?g:`\\${g}`);return _===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=Y.wrapOutput(T,E,e),E)}for(;!G();){if(d=Z(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const y=/^\\+/.exec(J());let O=0;if(y&&y[0].length>2&&(O=y[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Z():d+=Z(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const y=h.value.lastIndexOf("["),O=h.value.slice(0,y),U=h.value.slice(y+2),P=pD[U];if(P){h.value=O+P,E.backtrack=!0,Z(),!s.output&&i.indexOf(h)===1&&(s.output=p);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Ne({value:d});continue}if(E.quotes===1&&d!=='"'){d=Y.escapeRegex(d),h.value+=d,Ne({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){He("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(Ce("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){Bn(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),De("parens");continue}if(d==="["){if(u.nobracket===!0||!J().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(Ce("closing","]"));d=`\\${d}`}else He("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(Ce("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}De("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Ne({value:d}),u.literalBrackets===!1||Y.hasRegexChars(g))continue;const y=Y.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=y,h.value=y;continue}h.value=`(${D}${y}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){He("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};S.push(g),w(g);continue}if(d==="}"){const g=S[S.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let y=")";if(g.dots===!0){const O=i.slice(),U=[];for(let P=O.length-1;P>=0&&(i.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&U.unshift(O[P].value);y=gD(U,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),U=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=y="\\}",E.output=O;for(const P of U)E.output+=P.output||P.value}w({type:"brace",value:d,output:y}),De("braces"),S.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const y=S[S.length-1];y&&se[se.length-1]==="braces"&&(y.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",i.pop(),h=s;continue}w({type:"slash",value:d,output:C});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=S[S.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("qmark",d);continue}if(h&&h.type==="paren"){const y=R();let O=d;if(y==="<"&&!Y.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(J()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:Q});continue}w({type:"qmark",value:d,output:$});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){vn();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=CD.exec(J());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let _=J();if(u.noextglob!==!0&&/^\([^?]/.test(_)){Pe("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,y=g.prev,O=g.type==="slash"||g.type==="bos",U=y&&(y.type==="star"||y.type==="globstar");if(u.bash===!0&&(!O||_[0]&&_[0]!=="/")){w({type:"star",value:d,output:""});continue}const P=E.braces>0&&(g.type==="comma"||g.type==="brace"),at=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!at){w({type:"star",value:d,output:""});continue}for(;_.slice(0,3)==="/**";){const Le=t[E.index+4];if(Le&&Le!=="/")break;_=_.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=j(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!U&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=j(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&_[0]==="/"){const Le=_[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${j(u)}${C}|${C}${Le})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&_[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${C}|${j(u)}${C})`,E.output=h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=j(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=m+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=B,h.output+=B):u.dot===!0?(E.output+=H,h.output+=H):(E.output+=m,h.output+=m),R()!=="*"&&(E.output+=p,h.output+=p)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","]"));E.output=Y.escapeLast(E.output,"["),De("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing",")"));E.output=Y.escapeLast(E.output,"("),De("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","}"));E.output=Y.escapeLast(E.output,"{"),De("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${C}?`}),E.backtrack===!0){E.output="";for(const _ of E.tokens)E.output+=_.output!=null?_.output:_.value,_.suffix&&(E.output+=_.suffix)}return E};kt.fastpaths=(t,e)=>{const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=wr[t]||t;const s=Y.isWindows(e),{DOT_LITERAL:i,SLASH_LITERAL:D,ONE_CHAR:a,DOTS_SLASH:o,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:C,START_ANCHOR:p}=ze.globChars(s),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",H={negated:!1,prefix:""};let $=u.bash===!0?".*?":C;u.capture&&($=`(${$})`);const Q=m=>m.noglobstar===!0?$:`(${B}(?:(?!${p}${m.dot?o:i}).)*?)`,W=m=>{switch(m){case"*":return`${F}${a}${$}`;case".*":return`${i}${a}${$}`;case"*.*":return`${F}${$}${i}${a}${$}`;case"*/*":return`${F}${$}${D}${a}${A}${$}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${D})?${A}${a}${$}`;case"**/*.*":return`(?:${F}${Q(u)}${D})?${A}${$}${i}${a}${$}`;case"**/.*":return`(?:${F}${Q(u)}${D})?${i}${a}${$}`;default:{const b=/^(.*?)\.(\w+)$/.exec(m);if(!b)return;const k=W(b[1]);return k?k+i+b[2]:void 0}}},ne=Y.removePrefix(t,H);let j=W(ne);return j&&u.strictSlashes!==!0&&(j+=`${D}?`),j};var _D=kt;const mD=z.default,AD=ED,Mt=_D,Wt=Ue,yD=Ve,wD=t=>t&&typeof t=="object"&&!Array.isArray(t),N=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>N(l,e,u));return l=>{for(const C of c){const p=C(l);if(p)return p}return!1}}const r=wD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const n=e||{},s=Wt.isWindows(e),i=r?N.compileRe(t,e):N.makeRe(t,e,!1,!0),D=i.state;delete i.state;let a=()=>!1;if(n.ignore){const c=ae(M({},e),{ignore:null,onMatch:null,onResult:null});a=N(n.ignore,c,u)}const o=(c,f=!1)=>{const{isMatch:l,match:C,output:p}=N.test(c,i,e,{glob:t,posix:s}),F={glob:t,state:D,regex:i,posix:s,input:c,output:p,match:C,isMatch:l};return typeof n.onResult=="function"&&n.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):a(c)?(typeof n.onIgnore=="function"&&n.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof n.onMatch=="function"&&n.onMatch(F),f?F:!0)};return u&&(o.state=D),o};N.test=(t,e,u,{glob:r,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const s=u||{},i=s.format||(n?Wt.toPosixSlashes:null);let D=t===r,a=D&&i?i(t):t;return D===!1&&(a=i?i(t):t,D=a===r),(D===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?D=N.matchBase(t,e,u,n):D=e.exec(a)),{isMatch:Boolean(D),match:D,output:a}},N.matchBase=(t,e,u,r=Wt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(mD.basename(t)),N.isMatch=(t,e,u)=>N(e,u)(t),N.parse=(t,e)=>Array.isArray(t)?t.map(u=>N.parse(u,e)):Mt(t,ae(M({},e),{fastpaths:!1})),N.scan=(t,e)=>AD(t,e),N.compileRe=(t,e,u=!1,r=!1)=>{if(u===!0)return t.output;const n=e||{},s=n.contains?"":"^",i=n.contains?"":"$";let D=`${s}(?:${t.output})${i}`;t&&t.negated===!0&&(D=`^(?!${D}).*$`);const a=N.toRegex(D,e);return r===!0&&(a.state=t),a},N.makeRe=(t,e={},u=!1,r=!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)),N.compileRe(n,e,u,r)},N.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/$^/}},N.constants=yD;var RD=N;(function(t){t.exports=RD})(Tt);const Re=oe.default,{Readable:bD}=Vn.default,be=z.default,{promisify:qe}=Ae.default,jt=Tt.exports,vD=qe(Re.readdir),BD=qe(Re.stat),Rr=qe(Re.lstat),$D=qe(Re.realpath),SD="!",br="READDIRP_RECURSIVE_ERROR",TD=new Set(["ENOENT","EPERM","EACCES","ELOOP",br]),Gt="files",vr="directories",Xe="files_directories",Qe="all",Br=[Gt,vr,Xe,Qe],xD=t=>TD.has(t.code),[$r,OD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),ND=process.platform==="win32"&&($r>10||$r===10&&OD>=5),Sr=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=jt(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const r of t){const n=r.trim();n.charAt(0)===SD?u.push(jt(n.slice(1))):e.push(jt(n))}return u.length>0?e.length>0?r=>e.some(n=>n(r.basename))&&!u.some(n=>n(r.basename)):r=>!u.some(n=>n(r.basename)):r=>e.some(n=>n(r.basename))}}};class Dt extends bD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Gt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u=M(M({},Dt.defaultOptions),e),{root:r,type:n}=u;this._fileFilter=Sr(u.fileFilter),this._directoryFilter=Sr(u.directoryFilter);const s=u.lstat?Rr:BD;ND?this._stat=i=>s(i,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[vr,Xe,Qe].includes(n),this._wantsFile=[Gt,Xe,Qe].includes(n),this._wantsEverything=n===Qe,this._root=be.resolve(r),this._isDirent="Dirent"in Re&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,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:r,files:n=[]}=this.parent||{};if(n.length>0){const s=n.splice(0,e).map(i=>this._formatEntry(i,u));for(const i of await Promise.all(s)){if(this.destroyed)return;const D=await this._getEntryType(i);D==="directory"&&this._directoryFilter(i)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(i.fullPath,r+1)),this._wantsDir&&(this.push(i),e--)):(D==="file"||this._includeAsFile(i))&&this._fileFilter(i)&&this._wantsFile&&(this.push(i),e--)}}else{const s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let r;try{r=await vD(e,this._rdOptions)}catch(n){this._onError(n)}return{files:r,depth:u,path:e}}async _formatEntry(e,u){let r;try{const n=this._isDirent?e.name:e,s=be.resolve(be.join(u,n));r={path:be.relative(this._root,s),fullPath:s,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(n){this._onError(n)}return r}_onError(e){xD(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 r=e.fullPath;try{const n=await $D(r),s=await Rr(n);if(s.isFile())return"file";if(s.isDirectory()){const i=n.length;if(r.startsWith(n)&&r.substr(i,1)===be.sep){const D=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return D.code=br,this._onError(D)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Fe=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Xe),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&&!Br.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${Br.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Dt(e)},HD=(t,e={})=>new Promise((u,r)=>{const n=[];Fe(t,e).on("data",s=>n.push(s)).on("end",()=>u(n)).on("error",s=>r(s))});Fe.promise=HD,Fe.ReaddirpStream=Dt,Fe.default=Fe;var PD=Fe,Ut={exports:{}};/*!
|
|
19
|
+
`}table({tableData:e,tableOptions:u,tableBreakpoints:r}){return ks(e.map(n=>n.map(s=>this.render(s))),r?js(r):u)}flagParameter(e){return e===Boolean?"":e===String?"<string>":e===Number?"<number>":Array.isArray(e)?this.flagParameter(e[0]):"<value>"}flagOperator(e){return" "}flagName(e){const{flag:u,flagFormatted:r,aliasesEnabled:n,aliasFormatted:s}=e;let D="";if(s?D+=`${s}, `:n&&(D+=" "),D+=r,"placeholder"in u&&typeof u.placeholder=="string")D+=`${this.flagOperator(e)}${u.placeholder}`;else{const i=this.flagParameter("type"in u?u.type:u);i&&(D+=`${this.flagOperator(e)}${i}`)}return D}flagDefault(e){return JSON.stringify(e)}flagDescription({flag:e}){var u;let r="description"in e&&(u=e.description)!=null?u:"";if("default"in e){let{default:n}=e;typeof n=="function"&&(n=n()),n&&(r+=` (default: ${this.flagDefault(n)})`)}return r}render(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(u=>this.render(u)).join(`
|
|
20
|
+
`);if("type"in e&&this[e.type]){const u=this[e.type];if(typeof u=="function")return u.call(this,e.data)}throw new Error(`Invalid node type: ${JSON.stringify(e)}`)}}const pt=/^[\w.-]+$/;var ri=Object.defineProperty,ni=Object.defineProperties,si=Object.getOwnPropertyDescriptors,zu=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Yu=(t,e,u)=>e in t?ri(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,de=(t,e)=>{for(var u in e||(e={}))ii.call(e,u)&&Yu(t,u,e[u]);if(zu)for(var u of zu(e))Di.call(e,u)&&Yu(t,u,e[u]);return t},Ct=(t,e)=>ni(t,si(e));const{stringify:ee}=JSON,ai=/[|\\{}()[\]^$+*?.]/;function Ft(t){const e=[];let u,r;for(const n of t){if(r)throw new Error(`Invalid parameter: Spread parameter ${ee(r)} must be last`);const s=n[0],D=n[n.length-1];let i;if(s==="<"&&D===">"&&(i=!0,u))throw new Error(`Invalid parameter: Required parameter ${ee(n)} cannot come after optional parameter ${ee(u)}`);if(s==="["&&D==="]"&&(i=!1,u=n),i===void 0)throw new Error(`Invalid parameter: ${ee(n)}. Must be wrapped in <> (required parameter) or [] (optional parameter)`);let a=n.slice(1,-1);const o=a.slice(-3)==="...";o&&(r=n,a=a.slice(0,-3));const c=a.match(ai);if(c)throw new Error(`Invalid parameter: ${ee(n)}. Invalid character found ${ee(c[0])}`);e.push({name:a,required:i,spread:o})}return e}function gt(t,e,u,r){for(let n=0;n<e.length;n+=1){const{name:s,required:D,spread:i}=e[n],a=Gs(s);if(a in t)throw new Error(`Invalid parameter: ${ee(s)} is used more than once.`);const o=i?u.slice(n):u[n];if(i&&(n=e.length),D&&(!o||i&&o.length===0))return console.error(`Error: Missing required parameter ${ee(s)}
|
|
21
|
+
`),r(),process.exit(1);t[a]=o}}function oi(t){return t===void 0||t!==!1}function qu(t,e,u,r){const n=de({},e.flags),s=e.version;s&&(n.version={type:Boolean,description:"Show version"});const{help:D}=e,i=oi(D);i&&!("help"in n)&&(n.help={type:Boolean,alias:"h",description:"Show help"});const a=is(n,r),o=()=>{console.log(e.version)};if(s&&a.flags.version===!0)return o(),process.exit(0);const c=new ui,f=i&&(D==null?void 0:D.render)?D.render:p=>c.render(p),l=p=>{const F=ei(Ct(de(de({},e),p?{help:p}:{}),{flags:n}));console.log(f(F,c))};if(i&&a.flags.help===!0)return l(),process.exit(0);if(e.parameters){let{parameters:p}=e,F=a._;const A=p.indexOf("--"),B=p.slice(A+1),H=Object.create(null);if(A>-1&&B.length>0){p=p.slice(0,A);const $=a._["--"];F=F.slice(0,-$.length||void 0),gt(H,Ft(p),F,l),gt(H,Ft(B),$,l)}else gt(H,Ft(p),F,l);Object.assign(a._,H)}const C=Ct(de({},a),{showVersion:o,showHelp:l});return typeof u=="function"&&u(C),de({command:t},C)}function li(t,e){const u=new Map;for(const r of e){const n=[r.options.name],{alias:s}=r.options;s&&(Array.isArray(s)?n.push(...s):n.push(s));for(const D of n){if(u.has(D))throw new Error(`Duplicate command name found: ${ee(D)}`);u.set(D,r)}}return u.get(t)}function ci(t,e,u=process.argv.slice(2)){if(!t)throw new Error("Options is required");if("name"in t&&(!t.name||!pt.test(t.name)))throw new Error(`Invalid script name: ${ee(t.name)}`);const r=u[0];if(t.commands&&pt.test(r)){const n=li(r,t.commands);if(n)return qu(n.options.name,Ct(de({},n.options),{parent:t}),n.callback,u.slice(1))}return qu(void 0,t,e,u)}function fi(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(!pt.test(u))throw new Error(`Invalid command name ${JSON.stringify(u)}. Command names must be one word.`);return{options:t,callback:e}}var hi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ee={exports:{}},_t,Xu;function di(){if(Xu)return _t;Xu=1,_t=r,r.sync=n;var t=oe.default;function e(s,D){var i=D.pathExt!==void 0?D.pathExt:process.env.PATHEXT;if(!i||(i=i.split(";"),i.indexOf("")!==-1))return!0;for(var a=0;a<i.length;a++){var o=i[a].toLowerCase();if(o&&s.substr(-o.length).toLowerCase()===o)return!0}return!1}function u(s,D,i){return!s.isSymbolicLink()&&!s.isFile()?!1:e(D,i)}function r(s,D,i){t.stat(s,function(a,o){i(a,a?!1:u(o,s,D))})}function n(s,D){return u(t.statSync(s),s,D)}return _t}var mt,Qu;function Ei(){if(Qu)return mt;Qu=1,mt=e,e.sync=u;var t=oe.default;function e(s,D,i){t.stat(s,function(a,o){i(a,a?!1:r(o,D))})}function u(s,D){return r(t.statSync(s),D)}function r(s,D){return s.isFile()&&n(s,D)}function n(s,D){var i=s.mode,a=s.uid,o=s.gid,c=D.uid!==void 0?D.uid:process.getuid&&process.getuid(),f=D.gid!==void 0?D.gid:process.getgid&&process.getgid(),l=parseInt("100",8),C=parseInt("010",8),p=parseInt("001",8),F=l|C,A=i&p||i&C&&o===f||i&l&&a===c||i&F&&c===0;return A}return mt}var Ge;process.platform==="win32"||hi.TESTING_WINDOWS?Ge=di():Ge=Ei();var pi=At;At.sync=Ci;function At(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(r,n){At(t,e||{},function(s,D){s?n(s):r(D)})})}Ge(t,e||{},function(r,n){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,n=!1),u(r,n)})}function Ci(t,e){try{return Ge.sync(t,e||{})}catch(u){if(e&&e.ignoreErrors||u.code==="EACCES")return!1;throw u}}const pe=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Zu=z.default,Fi=pe?";":":",Ju=pi,er=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),tr=(t,e)=>{const u=e.colon||Fi,r=t.match(/\//)||pe&&t.match(/\\/)?[""]:[...pe?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(u)],n=pe?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=pe?n.split(u):[""];return pe&&t.indexOf(".")!==-1&&s[0]!==""&&s.unshift(""),{pathEnv:r,pathExt:s,pathExtExe:n}},ur=(t,e,u)=>{typeof e=="function"&&(u=e,e={}),e||(e={});const{pathEnv:r,pathExt:n,pathExtExe:s}=tr(t,e),D=[],i=o=>new Promise((c,f)=>{if(o===r.length)return e.all&&D.length?c(D):f(er(t));const l=r[o],C=/^".*"$/.test(l)?l.slice(1,-1):l,p=Zu.join(C,t),F=!C&&/^\.[\\\/]/.test(t)?t.slice(0,2)+p:p;c(a(F,o,0))}),a=(o,c,f)=>new Promise((l,C)=>{if(f===n.length)return l(i(c+1));const p=n[f];Ju(o+p,{pathExt:s},(F,A)=>{if(!F&&A)if(e.all)D.push(o+p);else return l(o+p);return l(a(o,c,f+1))})});return u?i(0).then(o=>u(null,o),u):i(0)},gi=(t,e)=>{e=e||{};const{pathEnv:u,pathExt:r,pathExtExe:n}=tr(t,e),s=[];for(let D=0;D<u.length;D++){const i=u[D],a=/^".*"$/.test(i)?i.slice(1,-1):i,o=Zu.join(a,t),c=!a&&/^\.[\\\/]/.test(t)?t.slice(0,2)+o:o;for(let f=0;f<r.length;f++){const l=c+r[f];try{if(Ju.sync(l,{pathExt:n}))if(e.all)s.push(l);else return l}catch{}}}if(e.all&&s.length)return s;if(e.nothrow)return null;throw er(t)};var _i=ur;ur.sync=gi;var yt={exports:{}};const rr=(t={})=>{const e=t.env||process.env;return(t.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};yt.exports=rr,yt.exports.default=rr;const nr=z.default,mi=_i,Ai=yt.exports;function sr(t,e){const u=t.options.env||process.env,r=process.cwd(),n=t.options.cwd!=null,s=n&&process.chdir!==void 0&&!process.chdir.disabled;if(s)try{process.chdir(t.options.cwd)}catch{}let D;try{D=mi.sync(t.command,{path:u[Ai({env:u})],pathExt:e?nr.delimiter:void 0})}catch{}finally{s&&process.chdir(r)}return D&&(D=nr.resolve(n?t.options.cwd:"",D)),D}function yi(t){return sr(t)||sr(t,!0)}var wi=yi,wt={};const Rt=/([()\][%!^"`<>&|;, *?])/g;function Ri(t){return t=t.replace(Rt,"^$1"),t}function bi(t,e){return t=`${t}`,t=t.replace(/(\\*)"/g,'$1$1\\"'),t=t.replace(/(\\*)$/,"$1$1"),t=`"${t}"`,t=t.replace(Rt,"^$1"),e&&(t=t.replace(Rt,"^$1")),t}wt.command=Ri,wt.argument=bi;var vi=/^#!(.*)/;const Bi=vi;var $i=(t="")=>{const e=t.match(Bi);if(!e)return null;const[u,r]=e[0].replace(/#! ?/,"").split(" "),n=u.split("/").pop();return n==="env"?r:r?`${n} ${r}`:n};const bt=oe.default,Si=$i;function Ti(t){const u=Buffer.alloc(150);let r;try{r=bt.openSync(t,"r"),bt.readSync(r,u,0,150,0),bt.closeSync(r)}catch{}return Si(u.toString())}var xi=Ti;const Oi=z.default,ir=wi,Dr=wt,Ni=xi,Hi=process.platform==="win32",Pi=/\.(?:com|exe)$/i,Li=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ii(t){t.file=ir(t);const e=t.file&&Ni(t.file);return e?(t.args.unshift(t.file),t.command=e,ir(t)):t.file}function ki(t){if(!Hi)return t;const e=Ii(t),u=!Pi.test(e);if(t.options.forceShell||u){const r=Li.test(e);t.command=Oi.normalize(t.command),t.command=Dr.command(t.command),t.args=t.args.map(s=>Dr.argument(s,r));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}function Mi(t,e,u){e&&!Array.isArray(e)&&(u=e,e=null),e=e?e.slice(0):[],u=Object.assign({},u);const r={command:t,args:e,options:u,file:void 0,original:{command:t,args:e}};return u.shell?r:ki(r)}var Wi=Mi;const vt=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})}function ji(t,e){if(!vt)return;const u=t.emit;t.emit=function(r,n){if(r==="exit"){const s=ar(n,e);if(s)return u.call(t,"error",s)}return u.apply(t,arguments)}}function ar(t,e){return vt&&t===1&&!e.file?Bt(e.original,"spawn"):null}function Gi(t,e){return vt&&t===1&&!e.file?Bt(e.original,"spawnSync"):null}var Ui={hookChildProcess:ji,verifyENOENT:ar,verifyENOENTSync:Gi,notFoundError:Bt};const or=Un.default,$t=Wi,St=Ui;function lr(t,e,u){const r=$t(t,e,u),n=or.spawn(r.command,r.args,r.options);return St.hookChildProcess(n,r),n}function Ki(t,e,u){const r=$t(t,e,u),n=or.spawnSync(r.command,r.args,r.options);return n.error=n.error||St.verifyENOENTSync(n.status,r),n}Ee.exports=lr,Ee.exports.spawn=lr,Ee.exports.sync=Ki,Ee.exports._parse=$t,Ee.exports._enoent=St;var Vi=Object.defineProperty,cr=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,Yi=Object.prototype.propertyIsEnumerable,fr=(t,e,u)=>e in t?Vi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,qi=(t,e)=>{for(var u in e||(e={}))zi.call(e,u)&&fr(t,u,e[u]);if(cr)for(var u of cr(e))Yi.call(e,u)&&fr(t,u,e[u]);return t};function hr(t,e){const u=qi({},process.env);e!=null&&e.noCache&&(u.ESBK_DISABLE_CACHE="1");const r=["inherit","inherit","inherit"];return e!=null&&e.ipc&&r.push("ipc"),Ee.exports(process.execPath,["--require",Ie.require.resolve("./suppress-warnings.cjs"),"--loader",yu.pathToFileURL(Ie.require.resolve("./loader.js")).toString(),...t],{stdio:r,env:u})}var Tt={exports:{}},Ue={};const Xi=z.default,te="\\\\/",dr=`[^${te}]`,ue="\\.",Qi="\\+",Zi="\\?",Ke="\\/",Ji="(?=.)",Er="[^/]",xt=`(?:${Ke}|$)`,pr=`(?:^|${Ke})`,Ot=`${ue}{1,2}${xt}`,eD=`(?!${ue})`,tD=`(?!${pr}${Ot})`,uD=`(?!${ue}{0,1}${xt})`,rD=`(?!${Ot})`,nD=`[^.${Ke}]`,sD=`${Er}*?`,Cr={DOT_LITERAL:ue,PLUS_LITERAL:Qi,QMARK_LITERAL:Zi,SLASH_LITERAL:Ke,ONE_CHAR:Ji,QMARK:Er,END_ANCHOR:xt,DOTS_SLASH:Ot,NO_DOT:eD,NO_DOTS:tD,NO_DOT_SLASH:uD,NO_DOTS_SLASH:rD,QMARK_NO_DOT:nD,STAR:sD,START_ANCHOR:pr},iD=ae(M({},Cr),{SLASH_LITERAL:`[${te}]`,QMARK:dr,STAR:`${dr}*?`,DOTS_SLASH:`${ue}{1,2}(?:[${te}]|$)`,NO_DOT:`(?!${ue})`,NO_DOTS:`(?!(?:^|[${te}])${ue}{1,2}(?:[${te}]|$))`,NO_DOT_SLASH:`(?!${ue}{0,1}(?:[${te}]|$))`,NO_DOTS_SLASH:`(?!${ue}{1,2}(?:[${te}]|$))`,QMARK_NO_DOT:`[^.${te}]`,START_ANCHOR:`(?:^|[${te}])`,END_ANCHOR:`(?:[${te}]|$)`}),DD={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 Ve={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:DD,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:Xi.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?iD:Cr}};(function(t){const e=z.default,u=process.platform==="win32",{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:D}=Ve;t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>s.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(D,"\\$1"),t.toPosixSlashes=i=>i.replace(r,"/"),t.removeBackslashes=i=>i.replace(n,a=>a==="\\"?"":a),t.supportsLookbehinds=()=>{const i=process.version.slice(1).split(".").map(Number);return i.length===3&&i[0]>=9||i[0]===8&&i[1]>=10},t.isWindows=i=>i&&typeof i.windows=="boolean"?i.windows:u===!0||e.sep==="\\",t.escapeLast=(i,a,o)=>{const c=i.lastIndexOf(a,o);return c===-1?i:i[c-1]==="\\"?t.escapeLast(i,a,c-1):`${i.slice(0,c)}\\${i.slice(c)}`},t.removePrefix=(i,a={})=>{let o=i;return o.startsWith("./")&&(o=o.slice(2),a.prefix="./"),o},t.wrapOutput=(i,a={},o={})=>{const c=o.contains?"":"^",f=o.contains?"":"$";let l=`${c}(?:${i})${f}`;return a.negated===!0&&(l=`(?:^(?!${l}).*$)`),l}})(Ue);const Fr=Ue,{CHAR_ASTERISK:Nt,CHAR_AT:aD,CHAR_BACKWARD_SLASH:we,CHAR_COMMA:oD,CHAR_DOT:Ht,CHAR_EXCLAMATION_MARK:Pt,CHAR_FORWARD_SLASH:gr,CHAR_LEFT_CURLY_BRACE:Lt,CHAR_LEFT_PARENTHESES:It,CHAR_LEFT_SQUARE_BRACKET:lD,CHAR_PLUS:cD,CHAR_QUESTION_MARK:_r,CHAR_RIGHT_CURLY_BRACE:fD,CHAR_RIGHT_PARENTHESES:mr,CHAR_RIGHT_SQUARE_BRACKET:hD}=Ve,Ar=t=>t===gr||t===we,yr=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},dD=(t,e)=>{const u=e||{},r=t.length-1,n=u.parts===!0||u.scanToEnd===!0,s=[],D=[],i=[];let a=t,o=-1,c=0,f=0,l=!1,C=!1,p=!1,F=!1,A=!1,B=!1,H=!1,$=!1,Q=!1,W=!1,ne=0,j,m,b={value:"",depth:0,isGlob:!1};const k=()=>o>=r,E=()=>a.charCodeAt(o+1),x=()=>(j=m,a.charCodeAt(++o));for(;o<r;){m=x();let G;if(m===we){H=b.backslashes=!0,m=x(),m===Lt&&(B=!0);continue}if(B===!0||m===Lt){for(ne++;k()!==!0&&(m=x());){if(m===we){H=b.backslashes=!0,x();continue}if(m===Lt){ne++;continue}if(B!==!0&&m===Ht&&(m=x())===Ht){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(B!==!0&&m===oD){if(l=b.isBrace=!0,p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===fD&&(ne--,ne===0)){B=!1,l=b.isBrace=!0,W=!0;break}}if(n===!0)continue;break}if(m===gr){if(s.push(o),D.push(b),b={value:"",depth:0,isGlob:!1},W===!0)continue;if(j===Ht&&o===c+1){c+=2;continue}f=o+1;continue}if(u.noext!==!0&&(m===cD||m===aD||m===Nt||m===_r||m===Pt)===!0&&E()===It){if(p=b.isGlob=!0,F=b.isExtglob=!0,W=!0,m===Pt&&o===c&&(Q=!0),n===!0){for(;k()!==!0&&(m=x());){if(m===we){H=b.backslashes=!0,m=x();continue}if(m===mr){p=b.isGlob=!0,W=!0;break}}continue}break}if(m===Nt){if(j===Nt&&(A=b.isGlobstar=!0),p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===_r){if(p=b.isGlob=!0,W=!0,n===!0)continue;break}if(m===lD){for(;k()!==!0&&(G=x());){if(G===we){H=b.backslashes=!0,x();continue}if(G===hD){C=b.isBracket=!0,p=b.isGlob=!0,W=!0;break}}if(n===!0)continue;break}if(u.nonegate!==!0&&m===Pt&&o===c){$=b.negated=!0,c++;continue}if(u.noparen!==!0&&m===It){if(p=b.isGlob=!0,n===!0){for(;k()!==!0&&(m=x());){if(m===It){H=b.backslashes=!0,m=x();continue}if(m===mr){W=!0;break}}continue}break}if(p===!0){if(W=!0,n===!0)continue;break}}u.noext===!0&&(F=!1,p=!1);let S=a,se="",h="";c>0&&(se=a.slice(0,c),a=a.slice(c),f-=c),S&&p===!0&&f>0?(S=a.slice(0,f),h=a.slice(f)):p===!0?(S="",h=a):S=a,S&&S!==""&&S!=="/"&&S!==a&&Ar(S.charCodeAt(S.length-1))&&(S=S.slice(0,-1)),u.unescape===!0&&(h&&(h=Fr.removeBackslashes(h)),S&&H===!0&&(S=Fr.removeBackslashes(S)));const d={prefix:se,input:t,start:c,base:S,glob:h,isBrace:l,isBracket:C,isGlob:p,isExtglob:F,isGlobstar:A,negated:$,negatedExtglob:Q};if(u.tokens===!0&&(d.maxDepth=0,Ar(m)||D.push(b),d.tokens=D),u.parts===!0||u.tokens===!0){let G;for(let R=0;R<s.length;R++){const Z=G?G+1:c,J=s[R],V=t.slice(Z,J);u.tokens&&(R===0&&c!==0?(D[R].isPrefix=!0,D[R].value=se):D[R].value=V,yr(D[R]),d.maxDepth+=D[R].depth),(R!==0||V!=="")&&i.push(V),G=J}if(G&&G+1<t.length){const R=t.slice(G+1);i.push(R),u.tokens&&(D[D.length-1].value=R,yr(D[D.length-1]),d.maxDepth+=D[D.length-1].depth)}d.slashes=s,d.parts=i}return d};var ED=dD;const ze=Ve,Y=Ue,{MAX_LENGTH:Ye,POSIX_REGEX_SOURCE:pD,REGEX_NON_SPECIAL_CHARS:CD,REGEX_SPECIAL_CHARS_BACKREF:FD,REPLACEMENTS:wr}=ze,gD=(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=>Y.escapeRegex(n)).join("..")}return u},Ce=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,kt=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=wr[t]||t;const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye;let n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);const s={type:"bos",value:"",output:u.prepend||""},D=[s],i=u.capture?"":"?:",a=Y.isWindows(e),o=ze.globChars(a),c=ze.extglobChars(o),{DOT_LITERAL:f,PLUS_LITERAL:l,SLASH_LITERAL:C,ONE_CHAR:p,DOTS_SLASH:F,NO_DOT:A,NO_DOT_SLASH:B,NO_DOTS_SLASH:H,QMARK:$,QMARK_NO_DOT:Q,STAR:W,START_ANCHOR:ne}=o,j=_=>`(${i}(?:(?!${ne}${_.dot?F:f}).)*?)`,m=u.dot?"":A,b=u.dot?$:Q;let k=u.bash===!0?j(u):W;u.capture&&(k=`(${k})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const E={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:D};t=Y.removePrefix(t,E),n=t.length;const x=[],S=[],se=[];let h=s,d;const G=()=>E.index===n-1,R=E.peek=(_=1)=>t[E.index+_],Z=E.advance=()=>t[++E.index]||"",J=()=>t.slice(E.index+1),V=(_="",T=0)=>{E.consumed+=_,E.index+=T},Ne=_=>{E.output+=_.output!=null?_.output:_.value,V(_.value)},vn=()=>{let _=1;for(;R()==="!"&&(R(2)!=="("||R(3)==="?");)Z(),E.start++,_++;return _%2===0?!1:(E.negated=!0,E.start++,!0)},He=_=>{E[_]++,se.push(_)},De=_=>{E[_]--,se.pop()},w=_=>{if(h.type==="globstar"){const T=E.braces>0&&(_.type==="comma"||_.type==="brace"),g=_.extglob===!0||x.length&&(_.type==="pipe"||_.type==="paren");_.type!=="slash"&&_.type!=="paren"&&!T&&!g&&(E.output=E.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=k,E.output+=h.output)}if(x.length&&_.type!=="paren"&&(x[x.length-1].inner+=_.value),(_.value||_.output)&&Ne(_),h&&h.type==="text"&&_.type==="text"){h.value+=_.value,h.output=(h.output||"")+_.value;return}_.prev=h,D.push(_),h=_},Pe=(_,T)=>{const g=ae(M({},c[T]),{conditions:1,inner:""});g.prev=h,g.parens=E.parens,g.output=E.output;const y=(u.capture?"(":"")+g.open;He("parens"),w({type:_,value:T,output:E.output?"":p}),w({type:"paren",extglob:!0,value:Z(),output:y}),x.push(g)},Bn=_=>{let T=_.close+(u.capture?")":""),g;if(_.type==="negate"){let y=k;if(_.inner&&_.inner.length>1&&_.inner.includes("/")&&(y=j(u)),(y!==k||G()||/^\)+$/.test(J()))&&(T=_.close=`)$))${y}`),_.inner.includes("*")&&(g=J())&&/^\.[^\\/.]+$/.test(g)){const O=kt(g,ae(M({},e),{fastpaths:!1})).output;T=_.close=`)${O})${y})`}_.prev.type==="bos"&&(E.negatedExtglob=!0)}w({type:"paren",extglob:!0,value:d,output:T}),De("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let _=!1,T=t.replace(FD,(g,y,O,U,P,at)=>U==="\\"?(_=!0,g):U==="?"?y?y+U+(P?$.repeat(P.length):""):at===0?b+(P?$.repeat(P.length):""):$.repeat(O.length):U==="."?f.repeat(O.length):U==="*"?y?y+U+(P?k:""):k:y?g:`\\${g}`);return _===!0&&(u.unescape===!0?T=T.replace(/\\/g,""):T=T.replace(/\\+/g,g=>g.length%2===0?"\\\\":g?"\\":"")),T===t&&u.contains===!0?(E.output=t,E):(E.output=Y.wrapOutput(T,E,e),E)}for(;!G();){if(d=Z(),d==="\0")continue;if(d==="\\"){const g=R();if(g==="/"&&u.bash!==!0||g==="."||g===";")continue;if(!g){d+="\\",w({type:"text",value:d});continue}const y=/^\\+/.exec(J());let O=0;if(y&&y[0].length>2&&(O=y[0].length,E.index+=O,O%2!==0&&(d+="\\")),u.unescape===!0?d=Z():d+=Z(),E.brackets===0){w({type:"text",value:d});continue}}if(E.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const g=h.value.slice(1);if(g.includes("[")&&(h.posix=!0,g.includes(":"))){const y=h.value.lastIndexOf("["),O=h.value.slice(0,y),U=h.value.slice(y+2),P=pD[U];if(P){h.value=O+P,E.backtrack=!0,Z(),!s.output&&D.indexOf(h)===1&&(s.output=p);continue}}}(d==="["&&R()!==":"||d==="-"&&R()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Ne({value:d});continue}if(E.quotes===1&&d!=='"'){d=Y.escapeRegex(d),h.value+=d,Ne({value:d});continue}if(d==='"'){E.quotes=E.quotes===1?0:1,u.keepQuotes===!0&&w({type:"text",value:d});continue}if(d==="("){He("parens"),w({type:"paren",value:d});continue}if(d===")"){if(E.parens===0&&u.strictBrackets===!0)throw new SyntaxError(Ce("opening","("));const g=x[x.length-1];if(g&&E.parens===g.parens+1){Bn(x.pop());continue}w({type:"paren",value:d,output:E.parens?")":"\\)"}),De("parens");continue}if(d==="["){if(u.nobracket===!0||!J().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(Ce("closing","]"));d=`\\${d}`}else He("brackets");w({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){w({type:"text",value:d,output:`\\${d}`});continue}if(E.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(Ce("opening","["));w({type:"text",value:d,output:`\\${d}`});continue}De("brackets");const g=h.value.slice(1);if(h.posix!==!0&&g[0]==="^"&&!g.includes("/")&&(d=`/${d}`),h.value+=d,Ne({value:d}),u.literalBrackets===!1||Y.hasRegexChars(g))continue;const y=Y.escapeRegex(h.value);if(E.output=E.output.slice(0,-h.value.length),u.literalBrackets===!0){E.output+=y,h.value=y;continue}h.value=`(${i}${y}|${h.value})`,E.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){He("braces");const g={type:"brace",value:d,output:"(",outputIndex:E.output.length,tokensIndex:E.tokens.length};S.push(g),w(g);continue}if(d==="}"){const g=S[S.length-1];if(u.nobrace===!0||!g){w({type:"text",value:d,output:d});continue}let y=")";if(g.dots===!0){const O=D.slice(),U=[];for(let P=O.length-1;P>=0&&(D.pop(),O[P].type!=="brace");P--)O[P].type!=="dots"&&U.unshift(O[P].value);y=gD(U,u),E.backtrack=!0}if(g.comma!==!0&&g.dots!==!0){const O=E.output.slice(0,g.outputIndex),U=E.tokens.slice(g.tokensIndex);g.value=g.output="\\{",d=y="\\}",E.output=O;for(const P of U)E.output+=P.output||P.value}w({type:"brace",value:d,output:y}),De("braces"),S.pop();continue}if(d==="|"){x.length>0&&x[x.length-1].conditions++,w({type:"text",value:d});continue}if(d===","){let g=d;const y=S[S.length-1];y&&se[se.length-1]==="braces"&&(y.comma=!0,g="|"),w({type:"comma",value:d,output:g});continue}if(d==="/"){if(h.type==="dot"&&E.index===E.start+1){E.start=E.index+1,E.consumed="",E.output="",D.pop(),h=s;continue}w({type:"slash",value:d,output:C});continue}if(d==="."){if(E.braces>0&&h.type==="dot"){h.value==="."&&(h.output=f);const g=S[S.length-1];h.type="dots",h.output+=d,h.value+=d,g.dots=!0;continue}if(E.braces+E.parens===0&&h.type!=="bos"&&h.type!=="slash"){w({type:"text",value:d,output:f});continue}w({type:"dot",value:d,output:f});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("qmark",d);continue}if(h&&h.type==="paren"){const y=R();let O=d;if(y==="<"&&!Y.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(h.value==="("&&!/[!=<:]/.test(y)||y==="<"&&!/<([!=]|\w+>)/.test(J()))&&(O=`\\${d}`),w({type:"text",value:d,output:O});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){w({type:"qmark",value:d,output:Q});continue}w({type:"qmark",value:d,output:$});continue}if(d==="!"){if(u.noextglob!==!0&&R()==="("&&(R(2)!=="?"||!/[!=<:]/.test(R(3)))){Pe("negate",d);continue}if(u.nonegate!==!0&&E.index===0){vn();continue}}if(d==="+"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){Pe("plus",d);continue}if(h&&h.value==="("||u.regex===!1){w({type:"plus",value:d,output:l});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||E.parens>0){w({type:"plus",value:d});continue}w({type:"plus",value:l});continue}if(d==="@"){if(u.noextglob!==!0&&R()==="("&&R(2)!=="?"){w({type:"at",extglob:!0,value:d,output:""});continue}w({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const g=CD.exec(J());g&&(d+=g[0],E.index+=g[0].length),w({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=k,E.backtrack=!0,E.globstar=!0,V(d);continue}let _=J();if(u.noextglob!==!0&&/^\([^?]/.test(_)){Pe("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){V(d);continue}const g=h.prev,y=g.prev,O=g.type==="slash"||g.type==="bos",U=y&&(y.type==="star"||y.type==="globstar");if(u.bash===!0&&(!O||_[0]&&_[0]!=="/")){w({type:"star",value:d,output:""});continue}const P=E.braces>0&&(g.type==="comma"||g.type==="brace"),at=x.length&&(g.type==="pipe"||g.type==="paren");if(!O&&g.type!=="paren"&&!P&&!at){w({type:"star",value:d,output:""});continue}for(;_.slice(0,3)==="/**";){const Le=t[E.index+4];if(Le&&Le!=="/")break;_=_.slice(3),V("/**",3)}if(g.type==="bos"&&G()){h.type="globstar",h.value+=d,h.output=j(u),E.output=h.output,E.globstar=!0,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&!U&&G()){E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=j(u)+(u.strictSlashes?")":"|$)"),h.value+=d,E.globstar=!0,E.output+=g.output+h.output,V(d);continue}if(g.type==="slash"&&g.prev.type!=="bos"&&_[0]==="/"){const Le=_[1]!==void 0?"|$":"";E.output=E.output.slice(0,-(g.output+h.output).length),g.output=`(?:${g.output}`,h.type="globstar",h.output=`${j(u)}${C}|${C}${Le})`,h.value+=d,E.output+=g.output+h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}if(g.type==="bos"&&_[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${C}|${j(u)}${C})`,E.output=h.output,E.globstar=!0,V(d+Z()),w({type:"slash",value:"/",output:""});continue}E.output=E.output.slice(0,-h.output.length),h.type="globstar",h.output=j(u),h.value+=d,E.output+=h.output,E.globstar=!0,V(d);continue}const T={type:"star",value:d,output:k};if(u.bash===!0){T.output=".*?",(h.type==="bos"||h.type==="slash")&&(T.output=m+T.output),w(T);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){T.output=d,w(T);continue}(E.index===E.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(E.output+=B,h.output+=B):u.dot===!0?(E.output+=H,h.output+=H):(E.output+=m,h.output+=m),R()!=="*"&&(E.output+=p,h.output+=p)),w(T)}for(;E.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","]"));E.output=Y.escapeLast(E.output,"["),De("brackets")}for(;E.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing",")"));E.output=Y.escapeLast(E.output,"("),De("parens")}for(;E.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(Ce("closing","}"));E.output=Y.escapeLast(E.output,"{"),De("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&w({type:"maybe_slash",value:"",output:`${C}?`}),E.backtrack===!0){E.output="";for(const _ of E.tokens)E.output+=_.output!=null?_.output:_.value,_.suffix&&(E.output+=_.suffix)}return E};kt.fastpaths=(t,e)=>{const u=M({},e),r=typeof u.maxLength=="number"?Math.min(Ye,u.maxLength):Ye,n=t.length;if(n>r)throw new SyntaxError(`Input length: ${n}, exceeds maximum allowed length: ${r}`);t=wr[t]||t;const s=Y.isWindows(e),{DOT_LITERAL:D,SLASH_LITERAL:i,ONE_CHAR:a,DOTS_SLASH:o,NO_DOT:c,NO_DOTS:f,NO_DOTS_SLASH:l,STAR:C,START_ANCHOR:p}=ze.globChars(s),F=u.dot?f:c,A=u.dot?l:c,B=u.capture?"":"?:",H={negated:!1,prefix:""};let $=u.bash===!0?".*?":C;u.capture&&($=`(${$})`);const Q=m=>m.noglobstar===!0?$:`(${B}(?:(?!${p}${m.dot?o:D}).)*?)`,W=m=>{switch(m){case"*":return`${F}${a}${$}`;case".*":return`${D}${a}${$}`;case"*.*":return`${F}${$}${D}${a}${$}`;case"*/*":return`${F}${$}${i}${a}${A}${$}`;case"**":return F+Q(u);case"**/*":return`(?:${F}${Q(u)}${i})?${A}${a}${$}`;case"**/*.*":return`(?:${F}${Q(u)}${i})?${A}${$}${D}${a}${$}`;case"**/.*":return`(?:${F}${Q(u)}${i})?${D}${a}${$}`;default:{const b=/^(.*?)\.(\w+)$/.exec(m);if(!b)return;const k=W(b[1]);return k?k+D+b[2]:void 0}}},ne=Y.removePrefix(t,H);let j=W(ne);return j&&u.strictSlashes!==!0&&(j+=`${i}?`),j};var _D=kt;const mD=z.default,AD=ED,Mt=_D,Wt=Ue,yD=Ve,wD=t=>t&&typeof t=="object"&&!Array.isArray(t),N=(t,e,u=!1)=>{if(Array.isArray(t)){const c=t.map(l=>N(l,e,u));return l=>{for(const C of c){const p=C(l);if(p)return p}return!1}}const r=wD(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");const n=e||{},s=Wt.isWindows(e),D=r?N.compileRe(t,e):N.makeRe(t,e,!1,!0),i=D.state;delete D.state;let a=()=>!1;if(n.ignore){const c=ae(M({},e),{ignore:null,onMatch:null,onResult:null});a=N(n.ignore,c,u)}const o=(c,f=!1)=>{const{isMatch:l,match:C,output:p}=N.test(c,D,e,{glob:t,posix:s}),F={glob:t,state:i,regex:D,posix:s,input:c,output:p,match:C,isMatch:l};return typeof n.onResult=="function"&&n.onResult(F),l===!1?(F.isMatch=!1,f?F:!1):a(c)?(typeof n.onIgnore=="function"&&n.onIgnore(F),F.isMatch=!1,f?F:!1):(typeof n.onMatch=="function"&&n.onMatch(F),f?F:!0)};return u&&(o.state=i),o};N.test=(t,e,u,{glob:r,posix:n}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};const s=u||{},D=s.format||(n?Wt.toPosixSlashes:null);let i=t===r,a=i&&D?D(t):t;return i===!1&&(a=D?D(t):t,i=a===r),(i===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?i=N.matchBase(t,e,u,n):i=e.exec(a)),{isMatch:Boolean(i),match:i,output:a}},N.matchBase=(t,e,u,r=Wt.isWindows(u))=>(e instanceof RegExp?e:N.makeRe(e,u)).test(mD.basename(t)),N.isMatch=(t,e,u)=>N(e,u)(t),N.parse=(t,e)=>Array.isArray(t)?t.map(u=>N.parse(u,e)):Mt(t,ae(M({},e),{fastpaths:!1})),N.scan=(t,e)=>AD(t,e),N.compileRe=(t,e,u=!1,r=!1)=>{if(u===!0)return t.output;const n=e||{},s=n.contains?"":"^",D=n.contains?"":"$";let i=`${s}(?:${t.output})${D}`;t&&t.negated===!0&&(i=`^(?!${i}).*$`);const a=N.toRegex(i,e);return r===!0&&(a.state=t),a},N.makeRe=(t,e={},u=!1,r=!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)),N.compileRe(n,e,u,r)},N.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/$^/}},N.constants=yD;var RD=N;(function(t){t.exports=RD})(Tt);const Re=oe.default,{Readable:bD}=Vn.default,be=z.default,{promisify:qe}=Ae.default,jt=Tt.exports,vD=qe(Re.readdir),BD=qe(Re.stat),Rr=qe(Re.lstat),$D=qe(Re.realpath),SD="!",br="READDIRP_RECURSIVE_ERROR",TD=new Set(["ENOENT","EPERM","EACCES","ELOOP",br]),Gt="files",vr="directories",Xe="files_directories",Qe="all",Br=[Gt,vr,Xe,Qe],xD=t=>TD.has(t.code),[$r,OD]=process.versions.node.split(".").slice(0,2).map(t=>Number.parseInt(t,10)),ND=process.platform==="win32"&&($r>10||$r===10&&OD>=5),Sr=t=>{if(t!==void 0){if(typeof t=="function")return t;if(typeof t=="string"){const e=jt(t.trim());return u=>e(u.basename)}if(Array.isArray(t)){const e=[],u=[];for(const r of t){const n=r.trim();n.charAt(0)===SD?u.push(jt(n.slice(1))):e.push(jt(n))}return u.length>0?e.length>0?r=>e.some(n=>n(r.basename))&&!u.some(n=>n(r.basename)):r=>!u.some(n=>n(r.basename)):r=>e.some(n=>n(r.basename))}}};class Dt extends bD{static get defaultOptions(){return{root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:Gt,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});const u=M(M({},Dt.defaultOptions),e),{root:r,type:n}=u;this._fileFilter=Sr(u.fileFilter),this._directoryFilter=Sr(u.directoryFilter);const s=u.lstat?Rr:BD;ND?this._stat=D=>s(D,{bigint:!0}):this._stat=s,this._maxDepth=u.depth,this._wantsDir=[vr,Xe,Qe].includes(n),this._wantsFile=[Gt,Xe,Qe].includes(n),this._wantsEverything=n===Qe,this._root=be.resolve(r),this._isDirent="Dirent"in Re&&!u.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,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:r,files:n=[]}=this.parent||{};if(n.length>0){const s=n.splice(0,e).map(D=>this._formatEntry(D,u));for(const D of await Promise.all(s)){if(this.destroyed)return;const i=await this._getEntryType(D);i==="directory"&&this._directoryFilter(D)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(D.fullPath,r+1)),this._wantsDir&&(this.push(D),e--)):(i==="file"||this._includeAsFile(D))&&this._fileFilter(D)&&this._wantsFile&&(this.push(D),e--)}}else{const s=this.parents.pop();if(!s){this.push(null);break}if(this.parent=await s,this.destroyed)return}}}catch(u){this.destroy(u)}finally{this.reading=!1}}}async _exploreDir(e,u){let r;try{r=await vD(e,this._rdOptions)}catch(n){this._onError(n)}return{files:r,depth:u,path:e}}async _formatEntry(e,u){let r;try{const n=this._isDirent?e.name:e,s=be.resolve(be.join(u,n));r={path:be.relative(this._root,s),fullPath:s,basename:n},r[this._statsProp]=this._isDirent?e:await this._stat(s)}catch(n){this._onError(n)}return r}_onError(e){xD(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 r=e.fullPath;try{const n=await $D(r),s=await Rr(n);if(s.isFile())return"file";if(s.isDirectory()){const D=n.length;if(r.startsWith(n)&&r.substr(D,1)===be.sep){const i=new Error(`Circular symlink detected: "${r}" points to "${n}"`);return i.code=br,this._onError(i)}return"directory"}}catch(n){this._onError(n)}}}}_includeAsFile(e){const u=e&&e[this._statsProp];return u&&this._wantsEverything&&!u.isDirectory()}}const Fe=(t,e={})=>{let u=e.entryType||e.type;if(u==="both"&&(u=Xe),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&&!Br.includes(u))throw new Error(`readdirp: Invalid type passed. Use one of ${Br.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=t,new Dt(e)},HD=(t,e={})=>new Promise((u,r)=>{const n=[];Fe(t,e).on("data",s=>n.push(s)).on("end",()=>u(n)).on("error",s=>r(s))});Fe.promise=HD,Fe.ReaddirpStream=Dt,Fe.default=Fe;var PD=Fe,Ut={exports:{}};/*!
|
|
22
22
|
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
23
23
|
*
|
|
24
24
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
25
25
|
* Released under the MIT License.
|
|
26
|
-
*/var Tr=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var u=t.length;if(u<=1)return t;var r="";if(u>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),r+s.join("/")};Object.defineProperty(Ut.exports,"__esModule",{value:!0});const xr=Tt.exports,LD=Tr,Or="!",ID={returnIndex:!1},kD=t=>Array.isArray(t)?t:[t],MD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=xr(t,e);return r=>t===r||u(r)}return t instanceof RegExp?u=>t.test(u):u=>!1},Nr=(t,e,u,r)=>{const n=Array.isArray(u),s=n?u[0]:u;if(!n&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const
|
|
26
|
+
*/var Tr=function(t,e){if(typeof t!="string")throw new TypeError("expected path to be a string");if(t==="\\"||t==="/")return"/";var u=t.length;if(u<=1)return t;var r="";if(u>4&&t[3]==="\\"){var n=t[2];(n==="?"||n===".")&&t.slice(0,2)==="\\\\"&&(t=t.slice(2),r="//")}var s=t.split(/[/\\]+/);return e!==!1&&s[s.length-1]===""&&s.pop(),r+s.join("/")};Object.defineProperty(Ut.exports,"__esModule",{value:!0});const xr=Tt.exports,LD=Tr,Or="!",ID={returnIndex:!1},kD=t=>Array.isArray(t)?t:[t],MD=(t,e)=>{if(typeof t=="function")return t;if(typeof t=="string"){const u=xr(t,e);return r=>t===r||u(r)}return t instanceof RegExp?u=>t.test(u):u=>!1},Nr=(t,e,u,r)=>{const n=Array.isArray(u),s=n?u[0]:u;if(!n&&typeof s!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(s));const D=LD(s);for(let a=0;a<e.length;a++)if(e[a](D))return r?-1:!1;const i=n&&[D].concat(u.slice(1));for(let a=0;a<t.length;a++){const o=t[a];if(n?o(...i):o(D))return r?a:!0}return r?-1:!1},Kt=(t,e,u=ID)=>{if(t==null)throw new TypeError("anymatch: specify first argument");const r=typeof u=="boolean"?{returnIndex:u}:u,n=r.returnIndex||!1,s=kD(t),D=s.filter(a=>typeof a=="string"&&a.charAt(0)===Or).map(a=>a.slice(1)).map(a=>xr(a,r)),i=s.filter(a=>typeof a!="string"||typeof a=="string"&&a.charAt(0)!==Or).map(a=>MD(a,r));return e==null?(a,o=!1)=>Nr(i,D,a,typeof o=="boolean"?o:!1):Nr(i,D,e,n)};Kt.default=Kt,Ut.exports=Kt;/*!
|
|
27
27
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
28
28
|
*
|
|
29
29
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
*
|
|
34
34
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
35
35
|
* Released under the MIT License.
|
|
36
|
-
*/var jD=WD,Hr={"{":"}","(":")","[":"]"},GD=function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,r=-2,n=-2,s=-2,
|
|
36
|
+
*/var jD=WD,Hr={"{":"}","(":")","[":"]"},GD=function(t){if(t[0]==="!")return!0;for(var e=0,u=-2,r=-2,n=-2,s=-2,D=-2;e<t.length;){if(t[e]==="*"||t[e+1]==="?"&&/[\].+)]/.test(t[e])||r!==-1&&t[e]==="["&&t[e+1]!=="]"&&(r<e&&(r=t.indexOf("]",e)),r>e&&(D===-1||D>r||(D=t.indexOf("\\",e),D===-1||D>r)))||n!==-1&&t[e]==="{"&&t[e+1]!=="}"&&(n=t.indexOf("}",e),n>e&&(D=t.indexOf("\\",e),D===-1||D>n))||s!==-1&&t[e]==="("&&t[e+1]==="?"&&/[:!=]/.test(t[e+2])&&t[e+3]!==")"&&(s=t.indexOf(")",e),s>e&&(D=t.indexOf("\\",e),D===-1||D>s))||u!==-1&&t[e]==="("&&t[e+1]!=="|"&&(u<e&&(u=t.indexOf("|",e)),u!==-1&&t[u+1]!==")"&&(s=t.indexOf(")",u),s>u&&(D=t.indexOf("\\",u),D===-1||D>s))))return!0;if(t[e]==="\\"){var i=t[e+1];e+=2;var a=Hr[i];if(a){var o=t.indexOf(a,e);o!==-1&&(e=o+1)}if(t[e]==="!")return!0}else e++}return!1},UD=function(t){if(t[0]==="!")return!0;for(var e=0;e<t.length;){if(/[*?{}()[\]]/.test(t[e]))return!0;if(t[e]==="\\"){var u=t[e+1];e+=2;var r=Hr[u];if(r){var n=t.indexOf(r,e);n!==-1&&(e=n+1)}if(t[e]==="!")return!0}else e++}return!1},Pr=function(e,u){if(typeof e!="string"||e==="")return!1;if(jD(e))return!0;var r=GD;return u&&u.strict===!1&&(r=UD),r(e)},KD=Pr,VD=z.default.posix.dirname,zD=wu.default.platform()==="win32",Vt="/",YD=/\\/g,qD=/[\{\[].*[\}\]]$/,XD=/(^|[^\\])([\{\[]|\([^\)]+$)/,QD=/\\([\!\*\?\|\[\]\(\)\{\}])/g,ZD=function(e,u){var r=Object.assign({flipBackslashes:!0},u);r.flipBackslashes&&zD&&e.indexOf(Vt)<0&&(e=e.replace(YD,Vt)),qD.test(e)&&(e+=Vt),e+="a";do e=VD(e);while(KD(e)||XD.test(e));return e.replace(QD,"$1")},Ze={};(function(t){t.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,t.find=(e,u)=>e.nodes.find(r=>r.type===u),t.exceedsLimit=(e,u,r=1,n)=>n===!1||!t.isInteger(e)||!t.isInteger(u)?!1:(Number(u)-Number(e))/Number(r)>=n,t.escapeNode=(e,u=0,r)=>{let n=e.nodes[u];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)},t.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1,t.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1,t.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,t.reduce=e=>e.reduce((u,r)=>(r.type==="text"&&u.push(r.value),r.type==="range"&&(r.type="text"),u),[]),t.flatten=(...e)=>{const u=[],r=n=>{for(let s=0;s<n.length;s++){let D=n[s];Array.isArray(D)?r(D):D!==void 0&&u.push(D)}return u};return r(e),u}})(Ze);const Lr=Ze;var zt=(t,e={})=>{let u=(r,n={})=>{let s=e.escapeInvalid&&Lr.isInvalidBrace(n),D=r.invalid===!0&&e.escapeInvalid===!0,i="";if(r.value)return(s||D)&&Lr.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let a of r.nodes)i+=u(a);return i};return u(t)};/*!
|
|
37
37
|
* is-number <https://github.com/jonschlinkert/is-number>
|
|
38
38
|
*
|
|
39
39
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
*
|
|
44
44
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
45
45
|
* Released under the MIT License.
|
|
46
|
-
*/const Ir=JD,ce=(t,e,u)=>{if(Ir(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Ir(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r=M({relaxZeros:!0},u);typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let n=String(r.relaxZeros),s=String(r.shorthand),
|
|
46
|
+
*/const Ir=JD,ce=(t,e,u)=>{if(Ir(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(Ir(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r=M({relaxZeros:!0},u);typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let n=String(r.relaxZeros),s=String(r.shorthand),D=String(r.capture),i=String(r.wrap),a=t+":"+e+"="+n+s+D+i;if(ce.cache.hasOwnProperty(a))return ce.cache[a].result;let o=Math.min(t,e),c=Math.max(t,e);if(Math.abs(o-c)===1){let F=t+"|"+e;return r.capture?`(${F})`:r.wrap===!1?F:`(?:${F})`}let f=Ur(t)||Ur(e),l={min:t,max:e,a:o,b:c},C=[],p=[];if(f&&(l.isPadded=f,l.maxLen=String(l.max).length),o<0){let F=c<0?Math.abs(c):1;p=kr(F,Math.abs(o),l,r),o=l.a=0}return c>=0&&(C=kr(o,c,l,r)),l.negatives=p,l.positives=C,l.result=ea(p,C),r.capture===!0?l.result=`(${l.result})`:r.wrap!==!1&&C.length+p.length>1&&(l.result=`(?:${l.result})`),ce.cache[a]=l,l.result};function ea(t,e,u){let r=Yt(t,e,"-",!1)||[],n=Yt(e,t,"",!1)||[],s=Yt(t,e,"-?",!0)||[];return r.concat(s).concat(n).join("|")}function ta(t,e){let u=1,r=1,n=Wr(t,u),s=new Set([e]);for(;t<=n&&n<=e;)s.add(n),u+=1,n=Wr(t,u);for(n=jr(e+1,r)-1;t<n&&n<=e;)s.add(n),r+=1,n=jr(e+1,r)-1;return s=[...s],s.sort(na),s}function ua(t,e,u){if(t===e)return{pattern:t,count:[],digits:0};let r=ra(t,e),n=r.length,s="",D=0;for(let i=0;i<n;i++){let[a,o]=r[i];a===o?s+=a:a!=="0"||o!=="9"?s+=sa(a,o):D++}return D&&(s+=u.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[D],digits:n}}function kr(t,e,u,r){let n=ta(t,e),s=[],D=t,i;for(let a=0;a<n.length;a++){let o=n[a],c=ua(String(D),String(o),r),f="";if(!u.isPadded&&i&&i.pattern===c.pattern){i.count.length>1&&i.count.pop(),i.count.push(c.count[0]),i.string=i.pattern+Gr(i.count),D=o+1;continue}u.isPadded&&(f=ia(o,u,r)),c.string=f+c.pattern+Gr(c.count),s.push(c),D=o+1,i=c}return s}function Yt(t,e,u,r,n){let s=[];for(let D of t){let{string:i}=D;!r&&!Mr(e,"string",i)&&s.push(u+i),r&&Mr(e,"string",i)&&s.push(u+i)}return s}function ra(t,e){let u=[];for(let r=0;r<t.length;r++)u.push([t[r],e[r]]);return u}function na(t,e){return t>e?1:e>t?-1:0}function Mr(t,e,u){return t.some(r=>r[e]===u)}function Wr(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function jr(t,e){return t-t%Math.pow(10,e)}function Gr(t){let[e=0,u=""]=t;return u||e>1?`{${e+(u?","+u:"")}}`:""}function sa(t,e,u){return`[${t}${e-t===1?"":"-"}${e}]`}function Ur(t){return/^-?(0+)\d/.test(t)}function ia(t,e,u){if(!e.isPadded)return t;let r=Math.abs(e.maxLen-String(t).length),n=u.relaxZeros!==!1;switch(r){case 0:return"";case 1:return n?"0?":"0";case 2:return n?"0{0,2}":"00";default:return n?`0{0,${r}}`:`0{${r}}`}}ce.cache={},ce.clearCache=()=>ce.cache={};var Da=ce;/*!
|
|
47
47
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
48
48
|
*
|
|
49
49
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
50
50
|
* Licensed under the MIT License.
|
|
51
|
-
*/const aa=Ae.default,Kr=Da,Vr=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),oa=t=>e=>t===!0?Number(e):String(e),qt=t=>typeof t=="number"||typeof t=="string"&&t!=="",ve=t=>Number.isInteger(+t),Xt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},la=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ca=(t,e,u)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return u===!1?String(t):t},zr=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},fa=(t,e)=>{t.negatives.sort((i
|
|
52
|
-
`,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 ya=zt,{MAX_LENGTH:tn,CHAR_BACKSLASH:Qt,CHAR_BACKTICK:wa,CHAR_COMMA:Ra,CHAR_DOT:ba,CHAR_LEFT_PARENTHESES:va,CHAR_RIGHT_PARENTHESES:Ba,CHAR_LEFT_CURLY_BRACE:$a,CHAR_RIGHT_CURLY_BRACE:Sa,CHAR_LEFT_SQUARE_BRACKET:un,CHAR_RIGHT_SQUARE_BRACKET:rn,CHAR_DOUBLE_QUOTE:Ta,CHAR_SINGLE_QUOTE:xa,CHAR_NO_BREAK_SPACE:Oa,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Na}=Aa,Ha=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(tn,u.maxLength):tn;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],i=n,D=n,a=0,o=t.length,c=0,f=0,l;const C=()=>t[c++],p=F=>{if(F.type==="text"&&D.type==="dot"&&(D.type="text"),D&&D.type==="text"&&F.type==="text"){D.value+=F.value;return}return i.nodes.push(F),F.parent=i,F.prev=D,D=F,F};for(p({type:"bos"});c<o;)if(i=s[s.length-1],l=C(),!(l===Na||l===Oa)){if(l===Qt){p({type:"text",value:(e.keepEscaping?l:"")+C()});continue}if(l===rn){p({type:"text",value:"\\"+l});continue}if(l===un){a++;let F;for(;c<o&&(F=C());){if(l+=F,F===un){a++;continue}if(F===Qt){l+=C();continue}if(F===rn&&(a--,a===0))break}p({type:"text",value:l});continue}if(l===va){i=p({type:"paren",nodes:[]}),s.push(i),p({type:"text",value:l});continue}if(l===Ba){if(i.type!=="paren"){p({type:"text",value:l});continue}i=s.pop(),p({type:"text",value:l}),i=s[s.length-1];continue}if(l===Ta||l===xa||l===wa){let F=l,A;for(e.keepQuotes!==!0&&(l="");c<o&&(A=C());){if(A===Qt){l+=A+C();continue}if(A===F){e.keepQuotes===!0&&(l+=A);break}l+=A}p({type:"text",value:l});continue}if(l===$a){f++;let F=D.value&&D.value.slice(-1)==="$"||i.dollar===!0;i=p({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(i),p({type:"open",value:l});continue}if(l===Sa){if(i.type!=="brace"){p({type:"text",value:l});continue}let F="close";i=s.pop(),i.close=!0,p({type:F,value:l}),f--,i=s[s.length-1];continue}if(l===Ra&&f>0){if(i.ranges>0){i.ranges=0;let F=i.nodes.shift();i.nodes=[F,{type:"text",value:ya(i)}]}p({type:"comma",value:l}),i.commas++;continue}if(l===ba&&f>0&&i.commas===0){let F=i.nodes;if(f===0||F.length===0){p({type:"text",value:l});continue}if(D.type==="dot"){if(i.range=[],D.value+=l,D.type="range",i.nodes.length!==3&&i.nodes.length!==5){i.invalid=!0,i.ranges=0,D.type="text";continue}i.ranges++,i.args=[];continue}if(D.type==="range"){F.pop();let A=F[F.length-1];A.value+=D.value+l,D=A,i.ranges--;continue}p({type:"dot",value:l});continue}p({type:"text",value:l})}do if(i=s.pop(),i.type!=="root"){i.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let F=s[s.length-1],A=F.nodes.indexOf(i);F.nodes.splice(A,1,...i.nodes)}while(s.length>0);return p({type:"eos"}),n};var Pa=Ha;const nn=zt,La=Fa,Ia=ma,ka=Pa,q=(t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=q.create(r,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};q.parse=(t,e={})=>ka(t,e),q.stringify=(t,e={})=>nn(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),La(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=Ia(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 Ma=q,sn={exports:{}},Wa=["3dm","3ds","3g2","3gp","7z","a","aac","adp","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"];(function(t){t.exports=Wa})(sn);const ja=z.default,Ga=sn.exports,Ua=new Set(Ga);var Ka=t=>Ua.has(ja.extname(t).slice(1).toLowerCase()),et={};(function(t){const{sep:e}=z.default,{platform:u}=process,r=wu.default;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_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=r.type()==="OS400"})(et);const re=oe.default,L=z.default,{promisify:Be}=Ae.default,Va=Ka,{isWindows:za,isLinux:Ya,EMPTY_FN:qa,EMPTY_STR:Xa,KEY_LISTENERS:_e,KEY_ERR:Zt,KEY_RAW:$e,HANDLER_KEYS:Qa,EV_CHANGE:tt,EV_ADD:ut,EV_ADD_DIR:Za,EV_ERROR:Dn,STR_DATA:Ja,STR_END:eo,BRACE_START:to,STAR:uo}=et,ro="watch",no=Be(re.open),an=Be(re.stat),so=Be(re.lstat),io=Be(re.close),Jt=Be(re.realpath),Do={lstat:so,stat:an},eu=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Se=(t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},ao=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},Te=(t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},on=t=>t instanceof Set?t.size===0:!t,rt=new Map;function ln(t,e,u,r,n){const s=(i,D)=>{u(t),n(i,D,{watchedPath:t}),D&&t!==D&&nt(L.resolve(t,D),_e,L.join(t,D))};try{return re.watch(t,e,s)}catch(i){r(i)}}const nt=(t,e,u,r,n)=>{const s=rt.get(t);!s||eu(s[e],i=>{i(u,r,n)})},oo=(t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:i}=r;let D=rt.get(e),a;if(!u.persistent)return a=ln(t,u,n,s,i),a.close.bind(a);if(D)Se(D,_e,n),Se(D,Zt,s),Se(D,$e,i);else{if(a=ln(t,u,nt.bind(null,e,_e),s,nt.bind(null,e,$e)),!a)return;a.on(Dn,async o=>{const c=nt.bind(null,e,Zt);if(D.watcherUnusable=!0,za&&o.code==="EPERM")try{const f=await no(t,"r");await io(f),c(o)}catch{}else c(o)}),D={listeners:n,errHandlers:s,rawEmitters:i,watcher:a},rt.set(e,D)}return()=>{Te(D,_e,n),Te(D,Zt,s),Te(D,$e,i),on(D.listeners)&&(D.watcher.close(),rt.delete(e),Qa.forEach(ao(D)),D.watcher=void 0,Object.freeze(D))}},tu=new Map,lo=(t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let i=tu.get(e);const D=i&&i.options;return D&&(D.persistent<u.persistent||D.interval>u.interval)&&(re.unwatchFile(e),i=void 0),i?(Se(i,_e,n),Se(i,$e,s)):(i={listeners:n,rawEmitters:s,options:u,watcher:re.watchFile(e,u,(a,o)=>{eu(i.rawEmitters,f=>{f(tt,e,{curr:a,prev:o})});const c=a.mtimeMs;(a.size!==o.size||c>o.mtimeMs||c===0)&&eu(i.listeners,f=>f(t,a))})},tu.set(e,i)),()=>{Te(i,_e,n),Te(i,$e,s),on(i.listeners)&&(tu.delete(e),re.unwatchFile(e),i.options=i.watcher=void 0,Object.freeze(i))}};class co{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=L.dirname(e),s=L.basename(e);this.fsw._getWatchedDir(n).add(s);const D=L.resolve(e),a={persistent:r.persistent};u||(u=qa);let o;return r.usePolling?(a.interval=r.enableBinaryInterval&&Va(s)?r.binaryInterval:r.interval,o=lo(e,D,a,{listener:u,rawEmitter:this.fsw._emitRaw})):o=oo(e,D,a,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),o}_handleFile(e,u,r){if(this.fsw.closed)return;const n=L.dirname(e),s=L.basename(e),i=this.fsw._getWatchedDir(n);let D=u;if(i.has(s))return;const a=async(c,f)=>{if(!!this.fsw._throttle(ro,e,5)){if(!f||f.mtimeMs===0)try{const l=await an(e);if(this.fsw.closed)return;const C=l.atimeMs,p=l.mtimeMs;(!C||C<=p||p!==D.mtimeMs)&&this.fsw._emit(tt,e,l),Ya&&D.ino!==l.ino?(this.fsw._closeFile(c),D=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,a))):D=l}catch{this.fsw._remove(n,s)}else if(i.has(s)){const l=f.atimeMs,C=f.mtimeMs;(!l||l<=C||C!==D.mtimeMs)&&this.fsw._emit(tt,e,f),D=f}}},o=this._watchWithNodeFs(e,a);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(ut,e,0))return;this.fsw._emit(ut,e,u)}return o}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,i=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let D;try{D=await Jt(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(i.has(n)?this.fsw._symlinkPaths.get(s)!==D&&(this.fsw._symlinkPaths.set(s,D),this.fsw._emit(tt,r,e.stats)):(i.add(n),this.fsw._symlinkPaths.set(s,D),this.fsw._emit(ut,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,i,D){if(e=L.join(e,Xa),!r.hasGlob&&(D=this.fsw._throttle("readdir",e,1e3),!D))return;const a=this.fsw._getWatchedDir(r.path),o=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>r.filterPath(f),directoryFilter:f=>r.filterDir(f),depth:0}).on(Ja,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let C=L.join(e,l);if(o.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,C,l))){if(this.fsw.closed){c=void 0;return}(l===n||!n&&!a.has(l))&&(this.fsw._incrReadyCount(),C=L.join(s,L.relative(s,C)),this._addToNodeFs(C,u,r,i+1))}}).on(Dn,this._boundHandleError);return new Promise(f=>c.once(eo,()=>{if(this.fsw.closed){c=void 0;return}const l=D?D.clear():!1;f(),a.getChildren().filter(C=>C!==e&&!o.has(C)&&(!r.hasGlob||r.filterPath({fullPath:L.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),c=void 0,l&&this._handleRead(e,!1,r,n,s,i,D)}))}async _handleDir(e,u,r,n,s,i,D){const a=this.fsw._getWatchedDir(L.dirname(e)),o=a.has(L.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!o&&(!i.hasGlob||i.globFilter(e))&&this.fsw._emit(Za,e,u),a.add(L.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||n<=l)&&!this.fsw._symlinkPaths.has(D)){if(!s&&(await this._handleRead(e,r,i,s,e,n,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(C,p)=>{p&&p.mtimeMs===0||this._handleRead(C,!1,i,s,e,n,c)})}return f}async _addToNodeFs(e,u,r,n,s){const i=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return i(),!1;const D=this.fsw._getWatchHelpers(e,n);!D.hasGlob&&r&&(D.hasGlob=r.hasGlob,D.globFilter=r.globFilter,D.filterPath=a=>r.filterPath(a),D.filterDir=a=>r.filterDir(a));try{const a=await Do[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,a))return i(),!1;const o=this.fsw.options.followSymlinks&&!e.includes(uo)&&!e.includes(to);let c;if(a.isDirectory()){const f=L.resolve(e),l=o?await Jt(e):e;if(this.fsw.closed||(c=await this._handleDir(D.watchPath,a,u,n,s,D,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(a.isSymbolicLink()){const f=o?await Jt(e):e;if(this.fsw.closed)return;const l=L.dirname(D.watchPath);if(this.fsw._getWatchedDir(l).add(D.watchPath),this.fsw._emit(ut,D.watchPath,a),c=await this._handleDir(l,a,u,n,e,D,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(L.resolve(e),f)}else c=this._handleFile(D.watchPath,a,u);return i(),this.fsw._addPathCloser(e,c),!1}catch(a){if(this.fsw._handleError(a))return i(),e}}}var fo=co,uu={exports:{}};const ru=oe.default,I=z.default,{promisify:nu}=Ae.default;let me;try{me=Ie.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(me){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&&(me=void 0)}}const{EV_ADD:su,EV_CHANGE:ho,EV_ADD_DIR:cn,EV_UNLINK:st,EV_ERROR:Eo,STR_DATA:po,STR_END:Co,FSEVENT_CREATED:Fo,FSEVENT_MODIFIED:go,FSEVENT_DELETED:_o,FSEVENT_MOVED:mo,FSEVENT_UNKNOWN:Ao,FSEVENT_TYPE_FILE:yo,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:fn,ROOT_GLOBSTAR:hn,DIR_SUFFIX:wo,DOT_SLASH:dn,FUNCTION_TYPE:iu,EMPTY_FN:Ro,IDENTITY_FN:bo}=et,vo=t=>isNaN(t)?{}:{depth:t},Du=nu(ru.stat),Bo=nu(ru.lstat),En=nu(ru.realpath),$o={stat:Du,lstat:Bo},he=new Map,So=10,To=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),xo=(t,e)=>({stop:me.watch(t,e)});function Oo(t,e,u,r){let n=I.extname(e)?I.dirname(e):e;const s=I.dirname(n);let i=he.get(n);No(s)&&(n=s);const D=I.resolve(t),a=D!==e,o=(f,l,C)=>{a&&(f=f.replace(e,D)),(f===D||!f.indexOf(D+I.sep))&&u(f,l,C)};let c=!1;for(const f of he.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){n=f,i=he.get(n),c=!0;break}return i||c?i.listeners.add(o):(i={listeners:new Set([o]),rawEmitter:r,watcher:xo(n,(f,l)=>{if(!i.listeners.size)return;const C=me.getInfo(f,l);i.listeners.forEach(p=>{p(f,l,C)}),i.rawEmitter(C.event,f,C)})},he.set(n,i)),()=>{const f=i.listeners;if(f.delete(o),!f.size&&(he.delete(n),i.watcher))return i.watcher.stop().then(()=>{i.rawEmitter=i.watcher=void 0,Object.freeze(i)})}}const No=t=>{let e=0;for(const u of he.keys())if(u.indexOf(t)===0&&(e++,e>=So))return!0;return!1},Ho=()=>me&&he.size<128,au=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},pn=(t,e)=>t.type===xe&&e.isDirectory()||t.type===fn&&e.isSymbolicLink()||t.type===yo&&e.isFile();class Po{constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+hn),!0;r.delete(e),r.delete(e+hn)}addOrChange(e,u,r,n,s,i,D,a){const o=s.has(i)?ho:su;this.handleEvent(o,e,u,r,n,s,i,D,a)}async checkExists(e,u,r,n,s,i,D,a){try{const o=await Du(e);if(this.fsw.closed)return;pn(D,o)?this.addOrChange(e,u,r,n,s,i,D,a):this.handleEvent(st,e,u,r,n,s,i,D,a)}catch(o){o.code==="EACCES"?this.addOrChange(e,u,r,n,s,i,D,a):this.handleEvent(st,e,u,r,n,s,i,D,a)}}handleEvent(e,u,r,n,s,i,D,a,o){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===st){const c=a.type===xe;(c||i.has(D))&&this.fsw._remove(s,D,c)}else{if(e===su){if(a.type===xe&&this.fsw._getWatchedDir(u),a.type===fn&&o.followSymlinks){const f=o.depth===void 0?void 0:au(r,n)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(D)}const c=a.type===xe?e+wo:e;this.fsw._emit(c,u),c===cn&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,D=Oo(e,u,async(a,o,c)=>{if(this.fsw.closed||s.depth!==void 0&&au(a,u)>s.depth)return;const f=r(I.join(e,I.relative(e,a)));if(n&&!n(f))return;const l=I.dirname(f),C=I.basename(f),p=this.fsw._getWatchedDir(c.type===xe?f:l);if(To.has(o)||c.event===Ao)if(typeof s.ignored===iu){let F;try{F=await Du(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;pn(c,F)?this.addOrChange(f,a,u,l,p,C,c,s):this.handleEvent(st,f,a,u,l,p,C,c,s)}else this.checkExists(f,a,u,l,p,C,c,s);else switch(c.event){case Fo:case go:return this.addOrChange(f,a,u,l,p,C,c,s);case _o:case mo:return this.checkExists(f,a,u,l,p,C,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),D}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await En(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,i=>{let D=e;return s&&s!==dn?D=i.replace(s,e):i!==dn&&(D=I.join(e,i)),r(D)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const i=r(e),D=u.isDirectory(),a=this.fsw._getWatchedDir(I.dirname(i)),o=I.basename(i);D&&this.fsw._getWatchedDir(i),!a.has(o)&&(a.add(o),(!n.ignoreInitial||s===!0)&&this.fsw._emit(D?cn:su,i,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,I.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,i=typeof u===iu?u:bo,D=this.fsw._getWatchHelpers(e);try{const a=await $o[D.statMethod](D.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(D.watchPath,a))throw null;if(a.isDirectory()){if(D.globFilter||this.emitAdd(i(e),a,i,s,r),n&&n>s.depth)return;this.fsw._readdirp(D.watchPath,M({fileFilter:o=>D.filterPath(o),directoryFilter:o=>D.filterDir(o)},vo(s.depth-(n||0)))).on(po,o=>{if(this.fsw.closed||o.stats.isDirectory()&&!D.filterPath(o))return;const c=I.join(D.watchPath,o.path),{fullPath:f}=o;if(D.followSymlinks&&o.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:au(c,I.resolve(D.watchPath))+1;this._handleFsEventsSymlink(c,f,i,l)}else this.emitAdd(c,o.stats,i,s,r)}).on(Eo,Ro).on(Co,()=>{this.fsw._emitReady()})}else this.emitAdd(D.watchPath,a,i,s,r),this.fsw._emitReady()}catch(a){(!a||this.fsw._handleError(a))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===iu)this.initWatch(void 0,e,D,i);else{let a;try{a=await En(D.watchPath)}catch{}this.initWatch(a,e,D,i)}}}uu.exports=Po,uu.exports.canUse=Ho;const{EventEmitter:Lo}=Kn.default,ou=oe.default,v=z.default,{promisify:Cn}=Ae.default,Io=PD,lu=Ut.exports.default,ko=ZD,cu=Pr,Mo=Ma,Wo=Tr,jo=fo,Fn=uu.exports,{EV_ALL:fu,EV_READY:Go,EV_ADD:it,EV_CHANGE:Oe,EV_UNLINK:gn,EV_ADD_DIR:Uo,EV_UNLINK_DIR:Ko,EV_RAW:Vo,EV_ERROR:hu,STR_CLOSE:zo,STR_END:Yo,BACK_SLASH_RE:qo,DOUBLE_SLASH_RE:_n,SLASH_OR_BACK_SLASH_RE:Xo,DOT_RE:Qo,REPLACER_RE:Zo,SLASH:du,SLASH_SLASH:Jo,BRACE_START:el,BANG:Eu,ONE_DOT:mn,TWO_DOTS:tl,GLOBSTAR:ul,SLASH_GLOBSTAR:pu,ANYMATCH_OPTS:Cu,STRING_TYPE:Fu,FUNCTION_TYPE:rl,EMPTY_STR:gu,EMPTY_FN:nl,isWindows:sl,isMacos:il,isIBMi:Dl}=et,al=Cn(ou.stat),ol=Cn(ou.readdir),_u=(t=[])=>Array.isArray(t)?t:[t],An=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?An(u,e):e.push(u)}),e),yn=t=>{const e=An(_u(t));if(!e.every(u=>typeof u===Fu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Rn)},wn=t=>{let e=t.replace(qo,du),u=!1;for(e.startsWith(Jo)&&(u=!0);e.match(_n);)e=e.replace(_n,du);return u&&(e=du+e),e},Rn=t=>wn(v.normalize(wn(t))),bn=(t=gu)=>e=>typeof e!==Fu?e:Rn(v.isAbsolute(e)?e:v.join(t,e)),ll=(t,e)=>v.isAbsolute(t)?t:t.startsWith(Eu)?Eu+v.join(e,t.slice(1)):v.join(e,t),X=(t,e)=>t[e]===void 0;class cl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==mn&&e!==tl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await ol(r)}catch{this._removeWatcher&&this._removeWatcher(v.dirname(r),v.basename(r))}}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 fl="stat",hl="lstat";class dl{constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Zo,gu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===gu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?lu(e,void 0,Cu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?fl:hl}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 v.join(this.watchPath,v.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(el)?Mo.expand(e):[e]).forEach(n=>{u.push(v.relative(this.watchPath,n).split(Xo))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,i)=>(s===ul&&(r=!0),r||!u[0][i]||lu(s,u[0][i],Cu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class El extends Lo{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,X(u,"persistent")&&(u.persistent=!0),X(u,"ignoreInitial")&&(u.ignoreInitial=!1),X(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),X(u,"interval")&&(u.interval=100),X(u,"binaryInterval")&&(u.binaryInterval=300),X(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,X(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),Fn.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=il),Dl&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const a=n.toLowerCase();a==="false"||a==="0"?u.usePolling=!1:a==="true"||a==="1"?u.usePolling=!0:u.usePolling=!!a}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),X(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),X(u,"followSymlinks")&&(u.followSymlinks=!0),X(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 D=0;this._emitReady=()=>{D++,D>=this._readyCount&&(this._emitReady=nl,this._readyEmitted=!0,process.nextTick(()=>this.emit(Go)))},this._emitRaw=(...a)=>this.emit(Vo,...a),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new Fn(this):this._nodeFsHandler=new jo(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let i=yn(e);return n&&(i=i.map(D=>{const a=ll(D,n);return s||!cu(D)?a:Wo(a)})),i=i.filter(D=>D.startsWith(Eu)?(this._ignoredPaths.add(D.slice(1)),!1):(this._ignoredPaths.delete(D),this._ignoredPaths.delete(D+pu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=i.length),this.options.persistent&&(this._readyCount*=2),i.forEach(D=>this._fsEventsHandler._addToFsEvents(D))):(this._readyCount||(this._readyCount=0),this._readyCount+=i.length,Promise.all(i.map(async D=>{const a=await this._nodeFsHandler._addToNodeFs(D,!r,0,0,u);return a&&this._emitReady(),a})).then(D=>{this.closed||D.filter(a=>a).forEach(a=>{this.add(v.dirname(a),v.basename(u||a))})})),this}unwatch(e){if(this.closed)return this;const u=yn(e),{cwd:r}=this.options;return u.forEach(n=>{!v.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=v.join(r,n)),n=v.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+pu),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(r=>{const n=r();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,r)=>{const n=this.options.cwd?v.relative(this.options.cwd,r):r;e[n||mn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==hu&&this.emit(fu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const i=this.options;sl&&(u=v.normalize(u)),i.cwd&&(u=v.relative(i.cwd,u));const D=[e,u];s!==void 0?D.push(r,n,s):n!==void 0?D.push(r,n):r!==void 0&&D.push(r);const a=i.awaitWriteFinish;let o;if(a&&(o=this._pendingWrites.get(u)))return o.lastChange=new Date,this;if(i.atomic){if(e===gn)return this._pendingUnlinks.set(u,D),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(fu,...c),this._pendingUnlinks.delete(f)})},typeof i.atomic=="number"?i.atomic:100),this;e===it&&this._pendingUnlinks.has(u)&&(e=D[0]=Oe,this._pendingUnlinks.delete(u))}if(a&&(e===it||e===Oe)&&this._readyEmitted){const c=(f,l)=>{f?(e=D[0]=hu,D[1]=f,this.emitWithAll(e,D)):l&&(D.length>2?D[2]=l:D.push(l),this.emitWithAll(e,D))};return this._awaitWriteFinish(u,a.stabilityThreshold,e,c),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(i.alwaysStat&&r===void 0&&(e===it||e===Uo||e===Oe)){const c=i.cwd?v.join(i.cwd,u):u;let f;try{f=await al(c)}catch{}if(!f||this.closed)return;D.push(f)}return this.emitWithAll(e,D),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(hu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let i;const D=()=>{const o=n.get(u),c=o?o.count:0;return n.delete(u),clearTimeout(i),o&&clearTimeout(o.timeoutObject),c};i=setTimeout(D,r);const a={timeoutObject:i,clear:D,count:0};return n.set(u,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,i=e;this.options.cwd&&!v.isAbsolute(e)&&(i=v.join(this.options.cwd,e));const D=new Date,a=o=>{ou.stat(i,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&n(c);return}const l=Number(new Date);o&&f.size!==o.size&&(this._pendingWrites.get(e).lastChange=l);const C=this._pendingWrites.get(e);l-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,f)):s=setTimeout(a,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:D,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),r)}),s=setTimeout(a,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Qo.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(bn(r)),i=_u(s).filter(a=>typeof a===Fu&&!cu(a)).map(a=>a+pu),D=this._getGlobIgnored().map(bn(r)).concat(s,i);this._userIgnored=lu(D,void 0,Cu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!cu(e)?e:ko(e),n=this.options.followSymlinks;return new dl(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=v.resolve(e);return this._watched.has(u)||this._watched.set(u,new cl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511,n=Number.parseInt(r.toString(8)[0],10);return Boolean(4&n)}_remove(e,u,r){const n=v.join(e,u),s=v.resolve(n);if(r=r!=null?r:this._watched.has(n)||this._watched.has(s),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(l=>this._remove(n,l));const a=this._getWatchedDir(e),o=a.has(u);a.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=n;if(this.options.cwd&&(c=v.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===it)return;this._watched.delete(n),this._watched.delete(s);const f=r?Ko:gn;o&&!this._isIgnored(n)&&this._emit(f,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=v.dirname(e);this._getWatchedDir(u).remove(v.basename(e))}_closeFile(e){const u=this._closers.get(e);!u||(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r=M({type:fu,alwaysStat:!0,lstat:!0},u);let n=Io(e,r);return this._streams.add(n),n.once(zo,()=>{n=void 0}),n.once(Yo,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}const pl=(t,e)=>{const u=new El(e);return u.add(t),u};var Cl=pl;const Fl="\x1Bc";function gl(t){return t&&"type"in t&&t.type==="dependency"}const _l=fi({name:"watch",parameters:["<script path>"],flags:{noCache:{type:Boolean,description:"Disable caching"}},help:{description:"Run the script and watch for changes"}},t=>{const e={noCache:Boolean(t.flags.noCache),ipc:!0};let u;function r(){u&&!u.killed&&u.exitCode===null&&u.kill(),process.stdout.write(Fl),u=hr(t._,e),u.on("message",i=>{if(gl(i)){const D=i.path.startsWith("file:")?yu.fileURLToPath(i.path):i.path;D.startsWith("/")&&s.add(D)}})}r();function n(i){u&&u.kill(),process.exit(i)}process.once("SIGINT",()=>n(130)),process.once("SIGTERM",()=>n(143));const s=Cl(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",r);process.stdin.on("data",r)});ci({name:"tsx",parameters:["[script path]"],commands:[_l],flags:{noCache:{type:Boolean,description:"Disable caching"},version:{type:Boolean,description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1},t=>{if(t._.length===0){if(t.flags.version){console.log(Hn.version);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Ie.require.resolve("./repl"))}const e=process.argv.slice(2).filter(u=>u!=="--no-cache"&&u!=="--noCache");hr(e,{noCache:Boolean(t.flags.noCache)}).on("close",u=>process.exit(u))});
|
|
51
|
+
*/const aa=Ae.default,Kr=Da,Vr=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),oa=t=>e=>t===!0?Number(e):String(e),qt=t=>typeof t=="number"||typeof t=="string"&&t!=="",ve=t=>Number.isInteger(+t),Xt=t=>{let e=`${t}`,u=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++u]==="0";);return u>0},la=(t,e,u)=>typeof t=="string"||typeof e=="string"?!0:u.stringify===!0,ca=(t,e,u)=>{if(e>0){let r=t[0]==="-"?"-":"";r&&(t=t.slice(1)),t=r+t.padStart(r?e-1:e,"0")}return u===!1?String(t):t},zr=(t,e)=>{let u=t[0]==="-"?"-":"";for(u&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return u?"-"+t:t},fa=(t,e)=>{t.negatives.sort((D,i)=>D<i?-1:D>i?1:0),t.positives.sort((D,i)=>D<i?-1:D>i?1:0);let u=e.capture?"":"?:",r="",n="",s;return t.positives.length&&(r=t.positives.join("|")),t.negatives.length&&(n=`-(${u}${t.negatives.join("|")})`),r&&n?s=`${r}|${n}`:s=r||n,e.wrap?`(${u}${s})`:s},Yr=(t,e,u,r)=>{if(u)return Kr(t,e,M({wrap:!1},r));let n=String.fromCharCode(t);if(t===e)return n;let s=String.fromCharCode(e);return`[${n}-${s}]`},qr=(t,e,u)=>{if(Array.isArray(t)){let r=u.wrap===!0,n=u.capture?"":"?:";return r?`(${n}${t.join("|")})`:t.join("|")}return Kr(t,e,u)},Xr=(...t)=>new RangeError("Invalid range arguments: "+aa.inspect(...t)),Qr=(t,e,u)=>{if(u.strictRanges===!0)throw Xr([t,e]);return[]},ha=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},da=(t,e,u=1,r={})=>{let n=Number(t),s=Number(e);if(!Number.isInteger(n)||!Number.isInteger(s)){if(r.strictRanges===!0)throw Xr([t,e]);return[]}n===0&&(n=0),s===0&&(s=0);let D=n>s,i=String(t),a=String(e),o=String(u);u=Math.max(Math.abs(u),1);let c=Xt(i)||Xt(a)||Xt(o),f=c?Math.max(i.length,a.length,o.length):0,l=c===!1&&la(t,e,r)===!1,C=r.transform||oa(l);if(r.toRegex&&u===1)return Yr(zr(t,f),zr(e,f),!0,r);let p={negatives:[],positives:[]},F=H=>p[H<0?"negatives":"positives"].push(Math.abs(H)),A=[],B=0;for(;D?n>=s:n<=s;)r.toRegex===!0&&u>1?F(n):A.push(ca(C(n,B),f,l)),n=D?n-u:n+u,B++;return r.toRegex===!0?u>1?fa(p,r):qr(A,null,M({wrap:!1},r)):A},Ea=(t,e,u=1,r={})=>{if(!ve(t)&&t.length>1||!ve(e)&&e.length>1)return Qr(t,e,r);let n=r.transform||(l=>String.fromCharCode(l)),s=`${t}`.charCodeAt(0),D=`${e}`.charCodeAt(0),i=s>D,a=Math.min(s,D),o=Math.max(s,D);if(r.toRegex&&u===1)return Yr(a,o,!1,r);let c=[],f=0;for(;i?s>=D:s<=D;)c.push(n(s,f)),s=i?s-u:s+u,f++;return r.toRegex===!0?qr(c,null,{wrap:!1,options:r}):c},Je=(t,e,u,r={})=>{if(e==null&&qt(t))return[t];if(!qt(t)||!qt(e))return Qr(t,e,r);if(typeof u=="function")return Je(t,e,1,{transform:u});if(Vr(u))return Je(t,e,0,u);let n=M({},r);return n.capture===!0&&(n.wrap=!0),u=u||n.step||1,ve(u)?ve(t)&&ve(e)?da(t,e,u,n):Ea(t,e,Math.max(Math.abs(u),1),n):u!=null&&!Vr(u)?ha(u,n):Je(t,e,1,u)};var Zr=Je;const pa=Zr,Jr=Ze,Ca=(t,e={})=>{let u=(r,n={})=>{let s=Jr.isInvalidBrace(n),D=r.invalid===!0&&e.escapeInvalid===!0,i=s===!0||D===!0,a=e.escapeInvalid===!0?"\\":"",o="";if(r.isOpen===!0||r.isClose===!0)return a+r.value;if(r.type==="open")return i?a+r.value:"(";if(r.type==="close")return i?a+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":i?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let c=Jr.reduce(r.nodes),f=pa(...c,ae(M({},e),{wrap:!1,toRegex:!0}));if(f.length!==0)return c.length>1&&f.length>1?`(${f})`:f}if(r.nodes)for(let c of r.nodes)o+=u(c,r);return o};return u(t)};var Fa=Ca;const ga=Zr,en=zt,ge=Ze,fe=(t="",e="",u=!1)=>{let r=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return u?ge.flatten(e).map(n=>`{${n}}`):e;for(let n of t)if(Array.isArray(n))for(let s of n)r.push(fe(s,e,u));else for(let s of e)u===!0&&typeof s=="string"&&(s=`{${s}}`),r.push(Array.isArray(s)?fe(n,s,u):n+s);return ge.flatten(r)},_a=(t,e={})=>{let u=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(n,s={})=>{n.queue=[];let D=s,i=s.queue;for(;D.type!=="brace"&&D.type!=="root"&&D.parent;)D=D.parent,i=D.queue;if(n.invalid||n.dollar){i.push(fe(i.pop(),en(n,e)));return}if(n.type==="brace"&&n.invalid!==!0&&n.nodes.length===2){i.push(fe(i.pop(),["{}"]));return}if(n.nodes&&n.ranges>0){let f=ge.reduce(n.nodes);if(ge.exceedsLimit(...f,e.step,u))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let l=ga(...f,e);l.length===0&&(l=en(n,e)),i.push(fe(i.pop(),l)),n.nodes=[];return}let a=ge.encloseBrace(n),o=n.queue,c=n;for(;c.type!=="brace"&&c.type!=="root"&&c.parent;)c=c.parent,o=c.queue;for(let f=0;f<n.nodes.length;f++){let l=n.nodes[f];if(l.type==="comma"&&n.type==="brace"){f===1&&o.push(""),o.push("");continue}if(l.type==="close"){i.push(fe(i.pop(),o,a));continue}if(l.value&&l.type!=="open"){o.push(fe(o.pop(),l.value));continue}l.nodes&&r(l,n)}return o};return ge.flatten(r(t))};var ma=_a,Aa={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:`
|
|
52
|
+
`,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 ya=zt,{MAX_LENGTH:tn,CHAR_BACKSLASH:Qt,CHAR_BACKTICK:wa,CHAR_COMMA:Ra,CHAR_DOT:ba,CHAR_LEFT_PARENTHESES:va,CHAR_RIGHT_PARENTHESES:Ba,CHAR_LEFT_CURLY_BRACE:$a,CHAR_RIGHT_CURLY_BRACE:Sa,CHAR_LEFT_SQUARE_BRACKET:un,CHAR_RIGHT_SQUARE_BRACKET:rn,CHAR_DOUBLE_QUOTE:Ta,CHAR_SINGLE_QUOTE:xa,CHAR_NO_BREAK_SPACE:Oa,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Na}=Aa,Ha=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let u=e||{},r=typeof u.maxLength=="number"?Math.min(tn,u.maxLength):tn;if(t.length>r)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${r})`);let n={type:"root",input:t,nodes:[]},s=[n],D=n,i=n,a=0,o=t.length,c=0,f=0,l;const C=()=>t[c++],p=F=>{if(F.type==="text"&&i.type==="dot"&&(i.type="text"),i&&i.type==="text"&&F.type==="text"){i.value+=F.value;return}return D.nodes.push(F),F.parent=D,F.prev=i,i=F,F};for(p({type:"bos"});c<o;)if(D=s[s.length-1],l=C(),!(l===Na||l===Oa)){if(l===Qt){p({type:"text",value:(e.keepEscaping?l:"")+C()});continue}if(l===rn){p({type:"text",value:"\\"+l});continue}if(l===un){a++;let F;for(;c<o&&(F=C());){if(l+=F,F===un){a++;continue}if(F===Qt){l+=C();continue}if(F===rn&&(a--,a===0))break}p({type:"text",value:l});continue}if(l===va){D=p({type:"paren",nodes:[]}),s.push(D),p({type:"text",value:l});continue}if(l===Ba){if(D.type!=="paren"){p({type:"text",value:l});continue}D=s.pop(),p({type:"text",value:l}),D=s[s.length-1];continue}if(l===Ta||l===xa||l===wa){let F=l,A;for(e.keepQuotes!==!0&&(l="");c<o&&(A=C());){if(A===Qt){l+=A+C();continue}if(A===F){e.keepQuotes===!0&&(l+=A);break}l+=A}p({type:"text",value:l});continue}if(l===$a){f++;let F=i.value&&i.value.slice(-1)==="$"||D.dollar===!0;D=p({type:"brace",open:!0,close:!1,dollar:F,depth:f,commas:0,ranges:0,nodes:[]}),s.push(D),p({type:"open",value:l});continue}if(l===Sa){if(D.type!=="brace"){p({type:"text",value:l});continue}let F="close";D=s.pop(),D.close=!0,p({type:F,value:l}),f--,D=s[s.length-1];continue}if(l===Ra&&f>0){if(D.ranges>0){D.ranges=0;let F=D.nodes.shift();D.nodes=[F,{type:"text",value:ya(D)}]}p({type:"comma",value:l}),D.commas++;continue}if(l===ba&&f>0&&D.commas===0){let F=D.nodes;if(f===0||F.length===0){p({type:"text",value:l});continue}if(i.type==="dot"){if(D.range=[],i.value+=l,i.type="range",D.nodes.length!==3&&D.nodes.length!==5){D.invalid=!0,D.ranges=0,i.type="text";continue}D.ranges++,D.args=[];continue}if(i.type==="range"){F.pop();let A=F[F.length-1];A.value+=i.value+l,i=A,D.ranges--;continue}p({type:"dot",value:l});continue}p({type:"text",value:l})}do if(D=s.pop(),D.type!=="root"){D.nodes.forEach(B=>{B.nodes||(B.type==="open"&&(B.isOpen=!0),B.type==="close"&&(B.isClose=!0),B.nodes||(B.type="text"),B.invalid=!0)});let F=s[s.length-1],A=F.nodes.indexOf(D);F.nodes.splice(A,1,...D.nodes)}while(s.length>0);return p({type:"eos"}),n};var Pa=Ha;const nn=zt,La=Fa,Ia=ma,ka=Pa,q=(t,e={})=>{let u=[];if(Array.isArray(t))for(let r of t){let n=q.create(r,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};q.parse=(t,e={})=>ka(t,e),q.stringify=(t,e={})=>nn(typeof t=="string"?q.parse(t,e):t,e),q.compile=(t,e={})=>(typeof t=="string"&&(t=q.parse(t,e)),La(t,e)),q.expand=(t,e={})=>{typeof t=="string"&&(t=q.parse(t,e));let u=Ia(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 Ma=q,sn={exports:{}},Wa=["3dm","3ds","3g2","3gp","7z","a","aac","adp","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"];(function(t){t.exports=Wa})(sn);const ja=z.default,Ga=sn.exports,Ua=new Set(Ga);var Ka=t=>Ua.has(ja.extname(t).slice(1).toLowerCase()),et={};(function(t){const{sep:e}=z.default,{platform:u}=process,r=wu.default;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_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=r.type()==="OS400"})(et);const re=oe.default,L=z.default,{promisify:Be}=Ae.default,Va=Ka,{isWindows:za,isLinux:Ya,EMPTY_FN:qa,EMPTY_STR:Xa,KEY_LISTENERS:_e,KEY_ERR:Zt,KEY_RAW:$e,HANDLER_KEYS:Qa,EV_CHANGE:tt,EV_ADD:ut,EV_ADD_DIR:Za,EV_ERROR:Dn,STR_DATA:Ja,STR_END:eo,BRACE_START:to,STAR:uo}=et,ro="watch",no=Be(re.open),an=Be(re.stat),so=Be(re.lstat),io=Be(re.close),Jt=Be(re.realpath),Do={lstat:so,stat:an},eu=(t,e)=>{t instanceof Set?t.forEach(e):e(t)},Se=(t,e,u)=>{let r=t[e];r instanceof Set||(t[e]=r=new Set([r])),r.add(u)},ao=t=>e=>{const u=t[e];u instanceof Set?u.clear():delete t[e]},Te=(t,e,u)=>{const r=t[e];r instanceof Set?r.delete(u):r===u&&delete t[e]},on=t=>t instanceof Set?t.size===0:!t,rt=new Map;function ln(t,e,u,r,n){const s=(D,i)=>{u(t),n(D,i,{watchedPath:t}),i&&t!==i&&nt(L.resolve(t,i),_e,L.join(t,i))};try{return re.watch(t,e,s)}catch(D){r(D)}}const nt=(t,e,u,r,n)=>{const s=rt.get(t);!s||eu(s[e],D=>{D(u,r,n)})},oo=(t,e,u,r)=>{const{listener:n,errHandler:s,rawEmitter:D}=r;let i=rt.get(e),a;if(!u.persistent)return a=ln(t,u,n,s,D),a.close.bind(a);if(i)Se(i,_e,n),Se(i,Zt,s),Se(i,$e,D);else{if(a=ln(t,u,nt.bind(null,e,_e),s,nt.bind(null,e,$e)),!a)return;a.on(Dn,async o=>{const c=nt.bind(null,e,Zt);if(i.watcherUnusable=!0,za&&o.code==="EPERM")try{const f=await no(t,"r");await io(f),c(o)}catch{}else c(o)}),i={listeners:n,errHandlers:s,rawEmitters:D,watcher:a},rt.set(e,i)}return()=>{Te(i,_e,n),Te(i,Zt,s),Te(i,$e,D),on(i.listeners)&&(i.watcher.close(),rt.delete(e),Qa.forEach(ao(i)),i.watcher=void 0,Object.freeze(i))}},tu=new Map,lo=(t,e,u,r)=>{const{listener:n,rawEmitter:s}=r;let D=tu.get(e);const i=D&&D.options;return i&&(i.persistent<u.persistent||i.interval>u.interval)&&(re.unwatchFile(e),D=void 0),D?(Se(D,_e,n),Se(D,$e,s)):(D={listeners:n,rawEmitters:s,options:u,watcher:re.watchFile(e,u,(a,o)=>{eu(D.rawEmitters,f=>{f(tt,e,{curr:a,prev:o})});const c=a.mtimeMs;(a.size!==o.size||c>o.mtimeMs||c===0)&&eu(D.listeners,f=>f(t,a))})},tu.set(e,D)),()=>{Te(D,_e,n),Te(D,$e,s),on(D.listeners)&&(tu.delete(e),re.unwatchFile(e),D.options=D.watcher=void 0,Object.freeze(D))}};class co{constructor(e){this.fsw=e,this._boundHandleError=u=>e._handleError(u)}_watchWithNodeFs(e,u){const r=this.fsw.options,n=L.dirname(e),s=L.basename(e);this.fsw._getWatchedDir(n).add(s);const i=L.resolve(e),a={persistent:r.persistent};u||(u=qa);let o;return r.usePolling?(a.interval=r.enableBinaryInterval&&Va(s)?r.binaryInterval:r.interval,o=lo(e,i,a,{listener:u,rawEmitter:this.fsw._emitRaw})):o=oo(e,i,a,{listener:u,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),o}_handleFile(e,u,r){if(this.fsw.closed)return;const n=L.dirname(e),s=L.basename(e),D=this.fsw._getWatchedDir(n);let i=u;if(D.has(s))return;const a=async(c,f)=>{if(!!this.fsw._throttle(ro,e,5)){if(!f||f.mtimeMs===0)try{const l=await an(e);if(this.fsw.closed)return;const C=l.atimeMs,p=l.mtimeMs;(!C||C<=p||p!==i.mtimeMs)&&this.fsw._emit(tt,e,l),Ya&&i.ino!==l.ino?(this.fsw._closeFile(c),i=l,this.fsw._addPathCloser(c,this._watchWithNodeFs(e,a))):i=l}catch{this.fsw._remove(n,s)}else if(D.has(s)){const l=f.atimeMs,C=f.mtimeMs;(!l||l<=C||C!==i.mtimeMs)&&this.fsw._emit(tt,e,f),i=f}}},o=this._watchWithNodeFs(e,a);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(ut,e,0))return;this.fsw._emit(ut,e,u)}return o}async _handleSymlink(e,u,r,n){if(this.fsw.closed)return;const s=e.fullPath,D=this.fsw._getWatchedDir(u);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let i;try{i=await Jt(r)}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(D.has(n)?this.fsw._symlinkPaths.get(s)!==i&&(this.fsw._symlinkPaths.set(s,i),this.fsw._emit(tt,r,e.stats)):(D.add(n),this.fsw._symlinkPaths.set(s,i),this.fsw._emit(ut,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(s))return!0;this.fsw._symlinkPaths.set(s,!0)}_handleRead(e,u,r,n,s,D,i){if(e=L.join(e,Xa),!r.hasGlob&&(i=this.fsw._throttle("readdir",e,1e3),!i))return;const a=this.fsw._getWatchedDir(r.path),o=new Set;let c=this.fsw._readdirp(e,{fileFilter:f=>r.filterPath(f),directoryFilter:f=>r.filterDir(f),depth:0}).on(Ja,async f=>{if(this.fsw.closed){c=void 0;return}const l=f.path;let C=L.join(e,l);if(o.add(l),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,C,l))){if(this.fsw.closed){c=void 0;return}(l===n||!n&&!a.has(l))&&(this.fsw._incrReadyCount(),C=L.join(s,L.relative(s,C)),this._addToNodeFs(C,u,r,D+1))}}).on(Dn,this._boundHandleError);return new Promise(f=>c.once(eo,()=>{if(this.fsw.closed){c=void 0;return}const l=i?i.clear():!1;f(),a.getChildren().filter(C=>C!==e&&!o.has(C)&&(!r.hasGlob||r.filterPath({fullPath:L.resolve(e,C)}))).forEach(C=>{this.fsw._remove(e,C)}),c=void 0,l&&this._handleRead(e,!1,r,n,s,D,i)}))}async _handleDir(e,u,r,n,s,D,i){const a=this.fsw._getWatchedDir(L.dirname(e)),o=a.has(L.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!s&&!o&&(!D.hasGlob||D.globFilter(e))&&this.fsw._emit(Za,e,u),a.add(L.basename(e)),this.fsw._getWatchedDir(e);let c,f;const l=this.fsw.options.depth;if((l==null||n<=l)&&!this.fsw._symlinkPaths.has(i)){if(!s&&(await this._handleRead(e,r,D,s,e,n,c),this.fsw.closed))return;f=this._watchWithNodeFs(e,(C,p)=>{p&&p.mtimeMs===0||this._handleRead(C,!1,D,s,e,n,c)})}return f}async _addToNodeFs(e,u,r,n,s){const D=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return D(),!1;const i=this.fsw._getWatchHelpers(e,n);!i.hasGlob&&r&&(i.hasGlob=r.hasGlob,i.globFilter=r.globFilter,i.filterPath=a=>r.filterPath(a),i.filterDir=a=>r.filterDir(a));try{const a=await Do[i.statMethod](i.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(i.watchPath,a))return D(),!1;const o=this.fsw.options.followSymlinks&&!e.includes(uo)&&!e.includes(to);let c;if(a.isDirectory()){const f=L.resolve(e),l=o?await Jt(e):e;if(this.fsw.closed||(c=await this._handleDir(i.watchPath,a,u,n,s,i,l),this.fsw.closed))return;f!==l&&l!==void 0&&this.fsw._symlinkPaths.set(f,l)}else if(a.isSymbolicLink()){const f=o?await Jt(e):e;if(this.fsw.closed)return;const l=L.dirname(i.watchPath);if(this.fsw._getWatchedDir(l).add(i.watchPath),this.fsw._emit(ut,i.watchPath,a),c=await this._handleDir(l,a,u,n,e,i,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(L.resolve(e),f)}else c=this._handleFile(i.watchPath,a,u);return D(),this.fsw._addPathCloser(e,c),!1}catch(a){if(this.fsw._handleError(a))return D(),e}}}var fo=co,uu={exports:{}};const ru=oe.default,I=z.default,{promisify:nu}=Ae.default;let me;try{me=Ie.require("fsevents")}catch(t){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(t)}if(me){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&&(me=void 0)}}const{EV_ADD:su,EV_CHANGE:ho,EV_ADD_DIR:cn,EV_UNLINK:st,EV_ERROR:Eo,STR_DATA:po,STR_END:Co,FSEVENT_CREATED:Fo,FSEVENT_MODIFIED:go,FSEVENT_DELETED:_o,FSEVENT_MOVED:mo,FSEVENT_UNKNOWN:Ao,FSEVENT_TYPE_FILE:yo,FSEVENT_TYPE_DIRECTORY:xe,FSEVENT_TYPE_SYMLINK:fn,ROOT_GLOBSTAR:hn,DIR_SUFFIX:wo,DOT_SLASH:dn,FUNCTION_TYPE:iu,EMPTY_FN:Ro,IDENTITY_FN:bo}=et,vo=t=>isNaN(t)?{}:{depth:t},Du=nu(ru.stat),Bo=nu(ru.lstat),En=nu(ru.realpath),$o={stat:Du,lstat:Bo},he=new Map,So=10,To=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),xo=(t,e)=>({stop:me.watch(t,e)});function Oo(t,e,u,r){let n=I.extname(e)?I.dirname(e):e;const s=I.dirname(n);let D=he.get(n);No(s)&&(n=s);const i=I.resolve(t),a=i!==e,o=(f,l,C)=>{a&&(f=f.replace(e,i)),(f===i||!f.indexOf(i+I.sep))&&u(f,l,C)};let c=!1;for(const f of he.keys())if(e.indexOf(I.resolve(f)+I.sep)===0){n=f,D=he.get(n),c=!0;break}return D||c?D.listeners.add(o):(D={listeners:new Set([o]),rawEmitter:r,watcher:xo(n,(f,l)=>{if(!D.listeners.size)return;const C=me.getInfo(f,l);D.listeners.forEach(p=>{p(f,l,C)}),D.rawEmitter(C.event,f,C)})},he.set(n,D)),()=>{const f=D.listeners;if(f.delete(o),!f.size&&(he.delete(n),D.watcher))return D.watcher.stop().then(()=>{D.rawEmitter=D.watcher=void 0,Object.freeze(D)})}}const No=t=>{let e=0;for(const u of he.keys())if(u.indexOf(t)===0&&(e++,e>=So))return!0;return!1},Ho=()=>me&&he.size<128,au=(t,e)=>{let u=0;for(;!t.indexOf(e)&&(t=I.dirname(t))!==e;)u++;return u},pn=(t,e)=>t.type===xe&&e.isDirectory()||t.type===fn&&e.isSymbolicLink()||t.type===yo&&e.isFile();class Po{constructor(e){this.fsw=e}checkIgnored(e,u){const r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,u))return r.add(e),u&&u.isDirectory()&&r.add(e+hn),!0;r.delete(e),r.delete(e+hn)}addOrChange(e,u,r,n,s,D,i,a){const o=s.has(D)?ho:su;this.handleEvent(o,e,u,r,n,s,D,i,a)}async checkExists(e,u,r,n,s,D,i,a){try{const o=await Du(e);if(this.fsw.closed)return;pn(i,o)?this.addOrChange(e,u,r,n,s,D,i,a):this.handleEvent(st,e,u,r,n,s,D,i,a)}catch(o){o.code==="EACCES"?this.addOrChange(e,u,r,n,s,D,i,a):this.handleEvent(st,e,u,r,n,s,D,i,a)}}handleEvent(e,u,r,n,s,D,i,a,o){if(!(this.fsw.closed||this.checkIgnored(u)))if(e===st){const c=a.type===xe;(c||D.has(i))&&this.fsw._remove(s,i,c)}else{if(e===su){if(a.type===xe&&this.fsw._getWatchedDir(u),a.type===fn&&o.followSymlinks){const f=o.depth===void 0?void 0:au(r,n)+1;return this._addToFsEvents(u,!1,!0,f)}this.fsw._getWatchedDir(s).add(i)}const c=a.type===xe?e+wo:e;this.fsw._emit(c,u),c===cn&&this._addToFsEvents(u,!1,!0)}}_watchWithFsEvents(e,u,r,n){if(this.fsw.closed||this.fsw._isIgnored(e))return;const s=this.fsw.options,i=Oo(e,u,async(a,o,c)=>{if(this.fsw.closed||s.depth!==void 0&&au(a,u)>s.depth)return;const f=r(I.join(e,I.relative(e,a)));if(n&&!n(f))return;const l=I.dirname(f),C=I.basename(f),p=this.fsw._getWatchedDir(c.type===xe?f:l);if(To.has(o)||c.event===Ao)if(typeof s.ignored===iu){let F;try{F=await Du(f)}catch{}if(this.fsw.closed||this.checkIgnored(f,F))return;pn(c,F)?this.addOrChange(f,a,u,l,p,C,c,s):this.handleEvent(st,f,a,u,l,p,C,c,s)}else this.checkExists(f,a,u,l,p,C,c,s);else switch(c.event){case Fo:case go:return this.addOrChange(f,a,u,l,p,C,c,s);case _o:case mo:return this.checkExists(f,a,u,l,p,C,c,s)}},this.fsw._emitRaw);return this.fsw._emitReady(),i}async _handleFsEventsSymlink(e,u,r,n){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(u))){this.fsw._symlinkPaths.set(u,!0),this.fsw._incrReadyCount();try{const s=await En(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(s))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(s||e,D=>{let i=e;return s&&s!==dn?i=D.replace(s,e):D!==dn&&(i=I.join(e,D)),r(i)},!1,n)}catch(s){if(this.fsw._handleError(s))return this.fsw._emitReady()}}}emitAdd(e,u,r,n,s){const D=r(e),i=u.isDirectory(),a=this.fsw._getWatchedDir(I.dirname(D)),o=I.basename(D);i&&this.fsw._getWatchedDir(D),!a.has(o)&&(a.add(o),(!n.ignoreInitial||s===!0)&&this.fsw._emit(i?cn:su,D,u))}initWatch(e,u,r,n){if(this.fsw.closed)return;const s=this._watchWithFsEvents(r.watchPath,I.resolve(e||r.watchPath),n,r.globFilter);this.fsw._addPathCloser(u,s)}async _addToFsEvents(e,u,r,n){if(this.fsw.closed)return;const s=this.fsw.options,D=typeof u===iu?u:bo,i=this.fsw._getWatchHelpers(e);try{const a=await $o[i.statMethod](i.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(i.watchPath,a))throw null;if(a.isDirectory()){if(i.globFilter||this.emitAdd(D(e),a,D,s,r),n&&n>s.depth)return;this.fsw._readdirp(i.watchPath,M({fileFilter:o=>i.filterPath(o),directoryFilter:o=>i.filterDir(o)},vo(s.depth-(n||0)))).on(po,o=>{if(this.fsw.closed||o.stats.isDirectory()&&!i.filterPath(o))return;const c=I.join(i.watchPath,o.path),{fullPath:f}=o;if(i.followSymlinks&&o.stats.isSymbolicLink()){const l=s.depth===void 0?void 0:au(c,I.resolve(i.watchPath))+1;this._handleFsEventsSymlink(c,f,D,l)}else this.emitAdd(c,o.stats,D,s,r)}).on(Eo,Ro).on(Co,()=>{this.fsw._emitReady()})}else this.emitAdd(i.watchPath,a,D,s,r),this.fsw._emitReady()}catch(a){(!a||this.fsw._handleError(a))&&(this.fsw._emitReady(),this.fsw._emitReady())}if(s.persistent&&r!==!0)if(typeof u===iu)this.initWatch(void 0,e,i,D);else{let a;try{a=await En(i.watchPath)}catch{}this.initWatch(a,e,i,D)}}}uu.exports=Po,uu.exports.canUse=Ho;const{EventEmitter:Lo}=Kn.default,ou=oe.default,v=z.default,{promisify:Cn}=Ae.default,Io=PD,lu=Ut.exports.default,ko=ZD,cu=Pr,Mo=Ma,Wo=Tr,jo=fo,Fn=uu.exports,{EV_ALL:fu,EV_READY:Go,EV_ADD:it,EV_CHANGE:Oe,EV_UNLINK:gn,EV_ADD_DIR:Uo,EV_UNLINK_DIR:Ko,EV_RAW:Vo,EV_ERROR:hu,STR_CLOSE:zo,STR_END:Yo,BACK_SLASH_RE:qo,DOUBLE_SLASH_RE:_n,SLASH_OR_BACK_SLASH_RE:Xo,DOT_RE:Qo,REPLACER_RE:Zo,SLASH:du,SLASH_SLASH:Jo,BRACE_START:el,BANG:Eu,ONE_DOT:mn,TWO_DOTS:tl,GLOBSTAR:ul,SLASH_GLOBSTAR:pu,ANYMATCH_OPTS:Cu,STRING_TYPE:Fu,FUNCTION_TYPE:rl,EMPTY_STR:gu,EMPTY_FN:nl,isWindows:sl,isMacos:il,isIBMi:Dl}=et,al=Cn(ou.stat),ol=Cn(ou.readdir),_u=(t=[])=>Array.isArray(t)?t:[t],An=(t,e=[])=>(t.forEach(u=>{Array.isArray(u)?An(u,e):e.push(u)}),e),yn=t=>{const e=An(_u(t));if(!e.every(u=>typeof u===Fu))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(Rn)},wn=t=>{let e=t.replace(qo,du),u=!1;for(e.startsWith(Jo)&&(u=!0);e.match(_n);)e=e.replace(_n,du);return u&&(e=du+e),e},Rn=t=>wn(v.normalize(wn(t))),bn=(t=gu)=>e=>typeof e!==Fu?e:Rn(v.isAbsolute(e)?e:v.join(t,e)),ll=(t,e)=>v.isAbsolute(t)?t:t.startsWith(Eu)?Eu+v.join(e,t.slice(1)):v.join(e,t),X=(t,e)=>t[e]===void 0;class cl{constructor(e,u){this.path=e,this._removeWatcher=u,this.items=new Set}add(e){const{items:u}=this;!u||e!==mn&&e!==tl&&u.add(e)}async remove(e){const{items:u}=this;if(!u||(u.delete(e),u.size>0))return;const r=this.path;try{await ol(r)}catch{this._removeWatcher&&this._removeWatcher(v.dirname(r),v.basename(r))}}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 fl="stat",hl="lstat";class dl{constructor(e,u,r,n){this.fsw=n,this.path=e=e.replace(Zo,gu),this.watchPath=u,this.fullWatchPath=v.resolve(u),this.hasGlob=u!==e,e===gu&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?lu(e,void 0,Cu):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(s=>{s.length>1&&s.pop()}),this.followSymlinks=r,this.statMethod=r?fl:hl}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 v.join(this.watchPath,v.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){const{stats:u}=e;if(u&&u.isSymbolicLink())return this.filterDir(e);const r=this.entryPath(e);return(this.hasGlob&&typeof this.globFilter===rl?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,u)&&this.fsw._hasReadPermissions(u)}getDirParts(e){if(!this.hasGlob)return[];const u=[];return(e.includes(el)?Mo.expand(e):[e]).forEach(n=>{u.push(v.relative(this.watchPath,n).split(Xo))}),u}filterDir(e){if(this.hasGlob){const u=this.getDirParts(this.checkGlobSymlink(e));let r=!1;this.unmatchedGlob=!this.dirParts.some(n=>n.every((s,D)=>(s===ul&&(r=!0),r||!u[0][D]||lu(s,u[0][D],Cu))))}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}}class El extends Lo{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,X(u,"persistent")&&(u.persistent=!0),X(u,"ignoreInitial")&&(u.ignoreInitial=!1),X(u,"ignorePermissionErrors")&&(u.ignorePermissionErrors=!1),X(u,"interval")&&(u.interval=100),X(u,"binaryInterval")&&(u.binaryInterval=300),X(u,"disableGlobbing")&&(u.disableGlobbing=!1),u.enableBinaryInterval=u.binaryInterval!==u.interval,X(u,"useFsEvents")&&(u.useFsEvents=!u.usePolling),Fn.canUse()||(u.useFsEvents=!1),X(u,"usePolling")&&!u.useFsEvents&&(u.usePolling=il),Dl&&(u.usePolling=!0);const n=process.env.CHOKIDAR_USEPOLLING;if(n!==void 0){const a=n.toLowerCase();a==="false"||a==="0"?u.usePolling=!1:a==="true"||a==="1"?u.usePolling=!0:u.usePolling=!!a}const s=process.env.CHOKIDAR_INTERVAL;s&&(u.interval=Number.parseInt(s,10)),X(u,"atomic")&&(u.atomic=!u.usePolling&&!u.useFsEvents),u.atomic&&(this._pendingUnlinks=new Map),X(u,"followSymlinks")&&(u.followSymlinks=!0),X(u,"awaitWriteFinish")&&(u.awaitWriteFinish=!1),u.awaitWriteFinish===!0&&(u.awaitWriteFinish={});const D=u.awaitWriteFinish;D&&(D.stabilityThreshold||(D.stabilityThreshold=2e3),D.pollInterval||(D.pollInterval=100),this._pendingWrites=new Map),u.ignored&&(u.ignored=_u(u.ignored));let i=0;this._emitReady=()=>{i++,i>=this._readyCount&&(this._emitReady=nl,this._readyEmitted=!0,process.nextTick(()=>this.emit(Go)))},this._emitRaw=(...a)=>this.emit(Vo,...a),this._readyEmitted=!1,this.options=u,u.useFsEvents?this._fsEventsHandler=new Fn(this):this._nodeFsHandler=new jo(this),Object.freeze(u)}add(e,u,r){const{cwd:n,disableGlobbing:s}=this.options;this.closed=!1;let D=yn(e);return n&&(D=D.map(i=>{const a=ll(i,n);return s||!cu(i)?a:Wo(a)})),D=D.filter(i=>i.startsWith(Eu)?(this._ignoredPaths.add(i.slice(1)),!1):(this._ignoredPaths.delete(i),this._ignoredPaths.delete(i+pu),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=D.length),this.options.persistent&&(this._readyCount*=2),D.forEach(i=>this._fsEventsHandler._addToFsEvents(i))):(this._readyCount||(this._readyCount=0),this._readyCount+=D.length,Promise.all(D.map(async i=>{const a=await this._nodeFsHandler._addToNodeFs(i,!r,0,0,u);return a&&this._emitReady(),a})).then(i=>{this.closed||i.filter(a=>a).forEach(a=>{this.add(v.dirname(a),v.basename(u||a))})})),this}unwatch(e){if(this.closed)return this;const u=yn(e),{cwd:r}=this.options;return u.forEach(n=>{!v.isAbsolute(n)&&!this._closers.has(n)&&(r&&(n=v.join(r,n)),n=v.resolve(n)),this._closePath(n),this._ignoredPaths.add(n),this._watched.has(n)&&this._ignoredPaths.add(n+pu),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(r=>{const n=r();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,r)=>{const n=this.options.cwd?v.relative(this.options.cwd,r):r;e[n||mn]=u.getChildren().sort()}),e}emitWithAll(e,u){this.emit(...u),e!==hu&&this.emit(fu,...u)}async _emit(e,u,r,n,s){if(this.closed)return;const D=this.options;sl&&(u=v.normalize(u)),D.cwd&&(u=v.relative(D.cwd,u));const i=[e,u];s!==void 0?i.push(r,n,s):n!==void 0?i.push(r,n):r!==void 0&&i.push(r);const a=D.awaitWriteFinish;let o;if(a&&(o=this._pendingWrites.get(u)))return o.lastChange=new Date,this;if(D.atomic){if(e===gn)return this._pendingUnlinks.set(u,i),setTimeout(()=>{this._pendingUnlinks.forEach((c,f)=>{this.emit(...c),this.emit(fu,...c),this._pendingUnlinks.delete(f)})},typeof D.atomic=="number"?D.atomic:100),this;e===it&&this._pendingUnlinks.has(u)&&(e=i[0]=Oe,this._pendingUnlinks.delete(u))}if(a&&(e===it||e===Oe)&&this._readyEmitted){const c=(f,l)=>{f?(e=i[0]=hu,i[1]=f,this.emitWithAll(e,i)):l&&(i.length>2?i[2]=l:i.push(l),this.emitWithAll(e,i))};return this._awaitWriteFinish(u,a.stabilityThreshold,e,c),this}if(e===Oe&&!this._throttle(Oe,u,50))return this;if(D.alwaysStat&&r===void 0&&(e===it||e===Uo||e===Oe)){const c=D.cwd?v.join(D.cwd,u):u;let f;try{f=await al(c)}catch{}if(!f||this.closed)return;i.push(f)}return this.emitWithAll(e,i),this}_handleError(e){const u=e&&e.code;return e&&u!=="ENOENT"&&u!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||u!=="EPERM"&&u!=="EACCES")&&this.emit(hu,e),e||this.closed}_throttle(e,u,r){this._throttled.has(e)||this._throttled.set(e,new Map);const n=this._throttled.get(e),s=n.get(u);if(s)return s.count++,!1;let D;const i=()=>{const o=n.get(u),c=o?o.count:0;return n.delete(u),clearTimeout(D),o&&clearTimeout(o.timeoutObject),c};D=setTimeout(i,r);const a={timeoutObject:D,clear:i,count:0};return n.set(u,a),a}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,u,r,n){let s,D=e;this.options.cwd&&!v.isAbsolute(e)&&(D=v.join(this.options.cwd,e));const i=new Date,a=o=>{ou.stat(D,(c,f)=>{if(c||!this._pendingWrites.has(e)){c&&c.code!=="ENOENT"&&n(c);return}const l=Number(new Date);o&&f.size!==o.size&&(this._pendingWrites.get(e).lastChange=l);const C=this._pendingWrites.get(e);l-C.lastChange>=u?(this._pendingWrites.delete(e),n(void 0,f)):s=setTimeout(a,this.options.awaitWriteFinish.pollInterval,f)})};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:i,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(s),r)}),s=setTimeout(a,this.options.awaitWriteFinish.pollInterval))}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(e,u){if(this.options.atomic&&Qo.test(e))return!0;if(!this._userIgnored){const{cwd:r}=this.options,n=this.options.ignored,s=n&&n.map(bn(r)),D=_u(s).filter(a=>typeof a===Fu&&!cu(a)).map(a=>a+pu),i=this._getGlobIgnored().map(bn(r)).concat(s,D);this._userIgnored=lu(i,void 0,Cu)}return this._userIgnored([e,u])}_isntIgnored(e,u){return!this._isIgnored(e,u)}_getWatchHelpers(e,u){const r=u||this.options.disableGlobbing||!cu(e)?e:ko(e),n=this.options.followSymlinks;return new dl(e,r,n,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));const u=v.resolve(e);return this._watched.has(u)||this._watched.set(u,new cl(u,this._boundRemove)),this._watched.get(u)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return!0;const r=(e&&Number.parseInt(e.mode,10))&511,n=Number.parseInt(r.toString(8)[0],10);return Boolean(4&n)}_remove(e,u,r){const n=v.join(e,u),s=v.resolve(n);if(r=r!=null?r:this._watched.has(n)||this._watched.has(s),!this._throttle("remove",n,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,u,!0),this._getWatchedDir(n).getChildren().forEach(l=>this._remove(n,l));const a=this._getWatchedDir(e),o=a.has(u);a.remove(u),this._symlinkPaths.has(s)&&this._symlinkPaths.delete(s);let c=n;if(this.options.cwd&&(c=v.relative(this.options.cwd,n)),this.options.awaitWriteFinish&&this._pendingWrites.has(c)&&this._pendingWrites.get(c).cancelWait()===it)return;this._watched.delete(n),this._watched.delete(s);const f=r?Ko:gn;o&&!this._isIgnored(n)&&this._emit(f,n),this.options.useFsEvents||this._closePath(n)}_closePath(e){this._closeFile(e);const u=v.dirname(e);this._getWatchedDir(u).remove(v.basename(e))}_closeFile(e){const u=this._closers.get(e);!u||(u.forEach(r=>r()),this._closers.delete(e))}_addPathCloser(e,u){if(!u)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(u)}_readdirp(e,u){if(this.closed)return;const r=M({type:fu,alwaysStat:!0,lstat:!0},u);let n=Io(e,r);return this._streams.add(n),n.once(zo,()=>{n=void 0}),n.once(Yo,()=>{n&&(this._streams.delete(n),n=void 0)}),n}}const pl=(t,e)=>{const u=new El(e);return u.add(t),u};var Cl=pl;const Fl="\x1Bc";function gl(t){return t&&"type"in t&&t.type==="dependency"}const _l=fi({name:"watch",parameters:["<script path>"],flags:{noCache:{type:Boolean,description:"Disable caching"}},help:{description:"Run the script and watch for changes"}},t=>{const e=process.argv.slice(3).filter(i=>i!=="--no-cache"&&i!=="--noCache"),u={noCache:Boolean(t.flags.noCache),ipc:!0};let r;function n(){r&&!r.killed&&r.exitCode===null&&r.kill(),process.stdout.write(Fl),r=hr(e,u),r.on("message",i=>{if(gl(i)){const a=i.path.startsWith("file:")?yu.fileURLToPath(i.path):i.path;a.startsWith("/")&&D.add(a)}})}n();function s(i){r&&r.kill(),process.exit(i)}process.once("SIGINT",()=>s(130)),process.once("SIGTERM",()=>s(143));const D=Cl(t._,{ignoreInitial:!0,ignored:["**/.*/**","**/{node_modules,bower_components,vendor}/**","**/dist/**"],ignorePermissionErrors:!0}).on("all",n);process.stdin.on("data",n)});ci({name:"tsx",parameters:["[script path]"],commands:[_l],flags:{noCache:{type:Boolean,description:"Disable caching"},version:{type:Boolean,description:"Show version"},help:{type:Boolean,alias:"h",description:"Show help"}},help:!1},t=>{if(t._.length===0){if(t.flags.version){console.log(Hn.version);return}if(t.flags.help){t.showHelp({description:"Node.js runtime enhanced with esbuild for loading TypeScript & ESM"});return}process.argv.push(Ie.require.resolve("./repl"))}const e=process.argv.slice(2).filter(u=>u!=="--no-cache"&&u!=="--noCache");hr(e,{noCache:Boolean(t.flags.noCache)}).on("close",u=>process.exit(u))});
|