@tsmodule/tsmodule 31.0.0 → 31.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,67 @@
1
- import{dirname as I,extname as z,isAbsolute as V,resolve as X,resolve as O}from"path";import{build as J,transform as H}from"esbuild";import{existsSync as M,mkdirSync as K,readFileSync as S,rmSync as A,writeFileSync as _}from"fs";import r from"chalk";import{env as L}from"process";import W from"fast-glob";import c from"ora";import{createDebugLogger as Q,log as m}from"create-debug-logger";import{createShell as Y}from"await-shell";import{getEmittedFile as j,getWorkingDirs as Z}from"../../utils/cwd.js";import{isJsOrTs as ee,isTs as k,isTsxOrJsx as x}from"../../utils/resolve.js";import{emitTsDeclarations as te}from"./lib/emitTsDeclarations.js";import{getPackageJsonFile as se}from"../../utils/pkgJson.js";import{normalizeImportSpecifiers as oe}from"../normalize/index.js";import{readStdin as ie}from"../../utils/stdin.js";const ne=`import React from "react";
1
+
2
+ await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
+
4
+ var _c=Object.create;var xn=Object.defineProperty;var gc=Object.getOwnPropertyDescriptor;var mc=Object.getOwnPropertyNames;var yc=Object.getPrototypeOf,bc=Object.prototype.hasOwnProperty;var xc=e=>xn(e,"__esModule",{value:!0});var I=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var Ec=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Sc=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mc(t))!bc.call(e,i)&&(r||i!=="default")&&xn(e,i,{get:()=>t[i],enumerable:!(n=gc(t,i))||n.enumerable});return e},Xe=(e,t)=>Sc(xc(xn(e!=null?_c(yc(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var l=Ec(()=>{});var Qs=y(dt=>{"use strict";l();Object.defineProperty(dt,"__esModule",{value:!0});dt.splitWhen=dt.flatten=void 0;function Nc(e){return e.reduce((t,r)=>[].concat(t,r),[])}dt.flatten=Nc;function kc(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}dt.splitWhen=kc});var Xs=y(hr=>{"use strict";l();Object.defineProperty(hr,"__esModule",{value:!0});hr.isEnoentCodeError=void 0;function Fc(e){return e.code==="ENOENT"}hr.isEnoentCodeError=Fc});var Zs=y(pr=>{"use strict";l();Object.defineProperty(pr,"__esModule",{value:!0});pr.createDirentFromStats=void 0;var Js=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function qc(e,t){return new Js(e,t)}pr.createDirentFromStats=qc});var zs=y(ve=>{"use strict";l();Object.defineProperty(ve,"__esModule",{value:!0});ve.removeLeadingDotSegment=ve.escape=ve.makeAbsolute=ve.unixify=void 0;var $c=I("path"),jc=2,Hc=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function Uc(e){return e.replace(/\\/g,"/")}ve.unixify=Uc;function Gc(e,t){return $c.resolve(e,t)}ve.makeAbsolute=Gc;function Wc(e){return e.replace(Hc,"\\$2")}ve.escape=Wc;function Vc(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(jc)}return e}ve.removeLeadingDotSegment=Vc});var to=y((xy,eo)=>{l();eo.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var io=y((Ey,no)=>{l();var Yc=to(),ro={"{":"}","(":")","[":"]"},Kc=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=ro[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},Qc=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=ro[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};no.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(Yc(t))return!0;var n=Kc;return r&&r.strict===!1&&(n=Qc),n(t)}});var oo=y((Sy,so)=>{"use strict";l();var Xc=io(),Jc=I("path").posix.dirname,Zc=I("os").platform()==="win32",wn="/",zc=/\\/g,eh=/[\{\[].*[\}\]]$/,th=/(^|[^\\])([\{\[]|\([^\)]+$)/,rh=/\\([\!\*\?\|\[\]\(\)\{\}])/g;so.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&Zc&&t.indexOf(wn)<0&&(t=t.replace(zc,wn)),eh.test(t)&&(t+=wn),t+="a";do t=Jc(t);while(Xc(t)||th.test(t));return t.replace(rh,"$1")}});var dr=y(he=>{"use strict";l();he.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;he.find=(e,t)=>e.nodes.find(r=>r.type===t);he.exceedsLimit=(e,t,r=1,n)=>n===!1||!he.isInteger(e)||!he.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;he.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};he.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;he.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;he.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;he.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);he.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var _r=y((Ry,lo)=>{"use strict";l();var ao=dr();lo.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&ao.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&ao.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var fo=y((wy,uo)=>{"use strict";l();uo.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var xo=y((Ay,bo)=>{"use strict";l();var co=fo(),Je=(e,t,r)=>{if(co(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(co(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(Je.cache.hasOwnProperty(u))return Je.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let b=e+"|"+t;return n.capture?`(${b})`:n.wrap===!1?b:`(?:${b})`}let d=yo(e)||yo(t),h={min:e,max:t,a:c,b:f},v=[],x=[];if(d&&(h.isPadded=d,h.maxLen=String(h.max).length),c<0){let b=f<0?Math.abs(f):1;x=ho(b,Math.abs(c),h,n),c=h.a=0}return f>=0&&(v=ho(c,f,h,n)),h.negatives=x,h.positives=v,h.result=nh(x,v,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&v.length+x.length>1&&(h.result=`(?:${h.result})`),Je.cache[u]=h,h.result};function nh(e,t,r){let n=An(e,t,"-",!1,r)||[],i=An(t,e,"",!1,r)||[],s=An(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function ih(e,t){let r=1,n=1,i=_o(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=_o(e,r);for(i=go(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=go(t+1,n)-1;return s=[...s],s.sort(ah),s}function sh(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=oh(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=lh(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ho(e,t,r,n){let i=ih(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=sh(String(o),String(c),n),d="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+mo(a.count),o=c+1;continue}r.isPadded&&(d=uh(c,r,n)),f.string=d+f.pattern+mo(f.count),s.push(f),o=c+1,a=f}return s}function An(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!po(t,"string",a)&&s.push(r+a),n&&po(t,"string",a)&&s.push(r+a)}return s}function oh(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function ah(e,t){return e>t?1:t>e?-1:0}function po(e,t,r){return e.some(n=>n[t]===r)}function _o(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function go(e,t){return e-e%Math.pow(10,t)}function mo(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function lh(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function yo(e){return/^-?(0+)\d/.test(e)}function uh(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Je.cache={};Je.clearCache=()=>Je.cache={};bo.exports=Je});var On=y((Ty,Co)=>{"use strict";l();var fh=I("util"),vo=xo(),Eo=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),ch=e=>t=>e===!0?Number(t):String(t),Tn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ft=e=>Number.isInteger(+e),Cn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},hh=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,ph=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},So=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},dh=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Ro=(e,t,r,n)=>{if(r)return vo(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},wo=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return vo(e,t,r)},Ao=(...e)=>new RangeError("Invalid range arguments: "+fh.inspect(...e)),To=(e,t,r)=>{if(r.strictRanges===!0)throw Ao([e,t]);return[]},_h=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},gh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ao([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=Cn(a)||Cn(u)||Cn(c),d=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&hh(e,t,n)===!1,v=n.transform||ch(h);if(n.toRegex&&r===1)return Ro(So(e,d),So(t,d),!0,n);let x={negatives:[],positives:[]},b=D=>x[D<0?"negatives":"positives"].push(Math.abs(D)),w=[],R=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?b(i):w.push(ph(v(i,R),d,h)),i=o?i-r:i+r,R++;return n.toRegex===!0?r>1?dh(x,n):wo(w,null,{wrap:!1,...n}):w},mh=(e,t,r=1,n={})=>{if(!Ft(e)&&e.length>1||!Ft(t)&&t.length>1)return To(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Ro(u,c,!1,n);let f=[],d=0;for(;a?s>=o:s<=o;)f.push(i(s,d)),s=a?s-r:s+r,d++;return n.toRegex===!0?wo(f,null,{wrap:!1,options:n}):f},gr=(e,t,r,n={})=>{if(t==null&&Tn(e))return[e];if(!Tn(e)||!Tn(t))return To(e,t,n);if(typeof r=="function")return gr(e,t,1,{transform:r});if(Eo(r))return gr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ft(r)?Ft(e)&&Ft(t)?gh(e,t,r,i):mh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Eo(r)?_h(r,i):gr(e,t,1,r)};Co.exports=gr});var Lo=y((Cy,Po)=>{"use strict";l();var yh=On(),Oo=dr(),bh=(e,t={})=>{let r=(n,i={})=>{let s=Oo.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=Oo.reduce(n.nodes),d=yh(...f,{...t,wrap:!1,toRegex:!0});if(d.length!==0)return f.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let f of n.nodes)c+=r(f,n);return c};return r(e)};Po.exports=bh});var Bo=y((Oy,Do)=>{"use strict";l();var xh=On(),Mo=_r(),_t=dr(),Ze=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?_t.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(Ze(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?Ze(i,s,r):i+s);return _t.flatten(n)},Eh=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(Ze(a.pop(),Mo(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(Ze(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=_t.reduce(i.nodes);if(_t.exceedsLimit(...d,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=xh(...d,t);h.length===0&&(h=Mo(i,t)),a.push(Ze(a.pop(),h)),i.nodes=[];return}let u=_t.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let d=0;d<i.nodes.length;d++){let h=i.nodes[d];if(h.type==="comma"&&i.type==="brace"){d===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(Ze(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(Ze(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return _t.flatten(n(e))};Do.exports=Eh});var No=y((Py,Io)=>{"use strict";l();Io.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
5
+ `,CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var jo=y((Ly,$o)=>{"use strict";l();var Sh=_r(),{MAX_LENGTH:ko,CHAR_BACKSLASH:Pn,CHAR_BACKTICK:vh,CHAR_COMMA:Rh,CHAR_DOT:wh,CHAR_LEFT_PARENTHESES:Ah,CHAR_RIGHT_PARENTHESES:Th,CHAR_LEFT_CURLY_BRACE:Ch,CHAR_RIGHT_CURLY_BRACE:Oh,CHAR_LEFT_SQUARE_BRACKET:Fo,CHAR_RIGHT_SQUARE_BRACKET:qo,CHAR_DOUBLE_QUOTE:Ph,CHAR_SINGLE_QUOTE:Lh,CHAR_NO_BREAK_SPACE:Mh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Dh}=No(),Bh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ko,r.maxLength):ko;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,d=0,h,v={},x=()=>e[f++],b=w=>{if(w.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&w.type==="text"){a.value+=w.value;return}return o.nodes.push(w),w.parent=o,w.prev=a,a=w,w};for(b({type:"bos"});f<c;)if(o=s[s.length-1],h=x(),!(h===Dh||h===Mh)){if(h===Pn){b({type:"text",value:(t.keepEscaping?h:"")+x()});continue}if(h===qo){b({type:"text",value:"\\"+h});continue}if(h===Fo){u++;let w=!0,R;for(;f<c&&(R=x());){if(h+=R,R===Fo){u++;continue}if(R===Pn){h+=x();continue}if(R===qo&&(u--,u===0))break}b({type:"text",value:h});continue}if(h===Ah){o=b({type:"paren",nodes:[]}),s.push(o),b({type:"text",value:h});continue}if(h===Th){if(o.type!=="paren"){b({type:"text",value:h});continue}o=s.pop(),b({type:"text",value:h}),o=s[s.length-1];continue}if(h===Ph||h===Lh||h===vh){let w=h,R;for(t.keepQuotes!==!0&&(h="");f<c&&(R=x());){if(R===Pn){h+=R+x();continue}if(R===w){t.keepQuotes===!0&&(h+=R);break}h+=R}b({type:"text",value:h});continue}if(h===Ch){d++;let w=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=b({type:"brace",open:!0,close:!1,dollar:w,depth:d,commas:0,ranges:0,nodes:[]}),s.push(o),b({type:"open",value:h});continue}if(h===Oh){if(o.type!=="brace"){b({type:"text",value:h});continue}let w="close";o=s.pop(),o.close=!0,b({type:w,value:h}),d--,o=s[s.length-1];continue}if(h===Rh&&d>0){if(o.ranges>0){o.ranges=0;let w=o.nodes.shift();o.nodes=[w,{type:"text",value:Sh(o)}]}b({type:"comma",value:h}),o.commas++;continue}if(h===wh&&d>0&&o.commas===0){let w=o.nodes;if(d===0||w.length===0){b({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){w.pop();let R=w[w.length-1];R.value+=a.value+h,a=R,o.ranges--;continue}b({type:"dot",value:h});continue}b({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(D=>{D.nodes||(D.type==="open"&&(D.isOpen=!0),D.type==="close"&&(D.isClose=!0),D.nodes||(D.type="text"),D.invalid=!0)});let w=s[s.length-1],R=w.nodes.indexOf(o);w.nodes.splice(R,1,...o.nodes)}while(s.length>0);return b({type:"eos"}),i};$o.exports=Bh});var Go=y((My,Uo)=>{"use strict";l();var Ho=_r(),Ih=Lo(),Nh=Bo(),kh=jo(),ue=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ue.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ue.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ue.parse=(e,t={})=>kh(e,t);ue.stringify=(e,t={})=>Ho(typeof e=="string"?ue.parse(e,t):e,t);ue.compile=(e,t={})=>(typeof e=="string"&&(e=ue.parse(e,t)),Ih(e,t));ue.expand=(e,t={})=>{typeof e=="string"&&(e=ue.parse(e,t));let r=Nh(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ue.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ue.compile(e,t):ue.expand(e,t);Uo.exports=ue});var qt=y((Dy,Qo)=>{"use strict";l();var Fh=I("path"),Re="\\\\/",Wo=`[^${Re}]`,Le="\\.",qh="\\+",$h="\\?",mr="\\/",jh="(?=.)",Vo="[^/]",Ln=`(?:${mr}|$)`,Yo=`(?:^|${mr})`,Mn=`${Le}{1,2}${Ln}`,Hh=`(?!${Le})`,Uh=`(?!${Yo}${Mn})`,Gh=`(?!${Le}{0,1}${Ln})`,Wh=`(?!${Mn})`,Vh=`[^.${mr}]`,Yh=`${Vo}*?`,Ko={DOT_LITERAL:Le,PLUS_LITERAL:qh,QMARK_LITERAL:$h,SLASH_LITERAL:mr,ONE_CHAR:jh,QMARK:Vo,END_ANCHOR:Ln,DOTS_SLASH:Mn,NO_DOT:Hh,NO_DOTS:Uh,NO_DOT_SLASH:Gh,NO_DOTS_SLASH:Wh,QMARK_NO_DOT:Vh,STAR:Yh,START_ANCHOR:Yo},Kh={...Ko,SLASH_LITERAL:`[${Re}]`,QMARK:Wo,STAR:`${Wo}*?`,DOTS_SLASH:`${Le}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Le})`,NO_DOTS:`(?!(?:^|[${Re}])${Le}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Le}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Le}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},Qh={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"};Qo.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Qh,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:Fh.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?Kh:Ko}}});var $t=y(ae=>{"use strict";l();var Xh=I("path"),Jh=process.platform==="win32",{REGEX_BACKSLASH:Zh,REGEX_REMOVE_BACKSLASH:zh,REGEX_SPECIAL_CHARS:ep,REGEX_SPECIAL_CHARS_GLOBAL:tp}=qt();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>ep.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(tp,"\\$1");ae.toPosixSlashes=e=>e.replace(Zh,"/");ae.removeBackslashes=e=>e.replace(zh,t=>t==="\\"?"":t);ae.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};ae.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:Jh===!0||Xh.sep==="\\";ae.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ae.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ae.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ae.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var na=y((Iy,ra)=>{"use strict";l();var Xo=$t(),{CHAR_ASTERISK:Dn,CHAR_AT:rp,CHAR_BACKWARD_SLASH:jt,CHAR_COMMA:np,CHAR_DOT:Bn,CHAR_EXCLAMATION_MARK:In,CHAR_FORWARD_SLASH:ta,CHAR_LEFT_CURLY_BRACE:Nn,CHAR_LEFT_PARENTHESES:kn,CHAR_LEFT_SQUARE_BRACKET:ip,CHAR_PLUS:sp,CHAR_QUESTION_MARK:Jo,CHAR_RIGHT_CURLY_BRACE:op,CHAR_RIGHT_PARENTHESES:Zo,CHAR_RIGHT_SQUARE_BRACKET:ap}=qt(),zo=e=>e===ta||e===jt,ea=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},lp=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,d=0,h=!1,v=!1,x=!1,b=!1,w=!1,R=!1,D=!1,N=!1,z=!1,O=!1,U=0,P,T,q={value:"",depth:0,isGlob:!1},A=()=>c>=n,_=()=>u.charCodeAt(c+1),j=()=>(P=T,u.charCodeAt(++c));for(;c<n;){T=j();let se;if(T===jt){D=q.backslashes=!0,T=j(),T===Nn&&(R=!0);continue}if(R===!0||T===Nn){for(U++;A()!==!0&&(T=j());){if(T===jt){D=q.backslashes=!0,j();continue}if(T===Nn){U++;continue}if(R!==!0&&T===Bn&&(T=j())===Bn){if(h=q.isBrace=!0,x=q.isGlob=!0,O=!0,i===!0)continue;break}if(R!==!0&&T===np){if(h=q.isBrace=!0,x=q.isGlob=!0,O=!0,i===!0)continue;break}if(T===op&&(U--,U===0)){R=!1,h=q.isBrace=!0,O=!0;break}}if(i===!0)continue;break}if(T===ta){if(s.push(c),o.push(q),q={value:"",depth:0,isGlob:!1},O===!0)continue;if(P===Bn&&c===f+1){f+=2;continue}d=c+1;continue}if(r.noext!==!0&&(T===sp||T===rp||T===Dn||T===Jo||T===In)===!0&&_()===kn){if(x=q.isGlob=!0,b=q.isExtglob=!0,O=!0,T===In&&c===f&&(z=!0),i===!0){for(;A()!==!0&&(T=j());){if(T===jt){D=q.backslashes=!0,T=j();continue}if(T===Zo){x=q.isGlob=!0,O=!0;break}}continue}break}if(T===Dn){if(P===Dn&&(w=q.isGlobstar=!0),x=q.isGlob=!0,O=!0,i===!0)continue;break}if(T===Jo){if(x=q.isGlob=!0,O=!0,i===!0)continue;break}if(T===ip){for(;A()!==!0&&(se=j());){if(se===jt){D=q.backslashes=!0,j();continue}if(se===ap){v=q.isBracket=!0,x=q.isGlob=!0,O=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&T===In&&c===f){N=q.negated=!0,f++;continue}if(r.noparen!==!0&&T===kn){if(x=q.isGlob=!0,i===!0){for(;A()!==!0&&(T=j());){if(T===kn){D=q.backslashes=!0,T=j();continue}if(T===Zo){O=!0;break}}continue}break}if(x===!0){if(O=!0,i===!0)continue;break}}r.noext===!0&&(b=!1,x=!1);let $=u,ke="",g="";f>0&&(ke=u.slice(0,f),u=u.slice(f),d-=f),$&&x===!0&&d>0?($=u.slice(0,d),g=u.slice(d)):x===!0?($="",g=u):$=u,$&&$!==""&&$!=="/"&&$!==u&&zo($.charCodeAt($.length-1))&&($=$.slice(0,-1)),r.unescape===!0&&(g&&(g=Xo.removeBackslashes(g)),$&&D===!0&&($=Xo.removeBackslashes($)));let m={prefix:ke,input:e,start:f,base:$,glob:g,isBrace:h,isBracket:v,isGlob:x,isExtglob:b,isGlobstar:w,negated:N,negatedExtglob:z};if(r.tokens===!0&&(m.maxDepth=0,zo(T)||o.push(q),m.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let F=0;F<s.length;F++){let Ee=se?se+1:f,Se=s[F],le=e.slice(Ee,Se);r.tokens&&(F===0&&f!==0?(o[F].isPrefix=!0,o[F].value=ke):o[F].value=le,ea(o[F]),m.maxDepth+=o[F].depth),(F!==0||le!=="")&&a.push(le),se=Se}if(se&&se+1<e.length){let F=e.slice(se+1);a.push(F),r.tokens&&(o[o.length-1].value=F,ea(o[o.length-1]),m.maxDepth+=o[o.length-1].depth)}m.slashes=s,m.parts=a}return m};ra.exports=lp});var oa=y((Ny,sa)=>{"use strict";l();var yr=qt(),fe=$t(),{MAX_LENGTH:br,POSIX_REGEX_SOURCE:up,REGEX_NON_SPECIAL_CHARS:fp,REGEX_SPECIAL_CHARS_BACKREF:cp,REPLACEMENTS:ia}=yr,hp=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>fe.escapeRegex(i)).join("..")}return r},gt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Fn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=ia[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(br,r.maxLength):br,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=fe.isWindows(t),c=yr.globChars(u),f=yr.extglobChars(c),{DOT_LITERAL:d,PLUS_LITERAL:h,SLASH_LITERAL:v,ONE_CHAR:x,DOTS_SLASH:b,NO_DOT:w,NO_DOT_SLASH:R,NO_DOTS_SLASH:D,QMARK:N,QMARK_NO_DOT:z,STAR:O,START_ANCHOR:U}=c,P=S=>`(${a}(?:(?!${U}${S.dot?b:d}).)*?)`,T=r.dot?"":w,q=r.dot?N:z,A=r.bash===!0?P(r):O;r.capture&&(A=`(${A})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=fe.removePrefix(e,_),i=e.length;let j=[],$=[],ke=[],g=s,m,se=()=>_.index===i-1,F=_.peek=(S=1)=>e[_.index+S],Ee=_.advance=()=>e[++_.index]||"",Se=()=>e.slice(_.index+1),le=(S="",W=0)=>{_.consumed+=S,_.index+=W},or=S=>{_.output+=S.output!=null?S.output:S.value,le(S.value)},pc=()=>{let S=1;for(;F()==="!"&&(F(2)!=="("||F(3)==="?");)Ee(),_.start++,S++;return S%2===0?!1:(_.negated=!0,_.start++,!0)},ar=S=>{_[S]++,ke.push(S)},Qe=S=>{_[S]--,ke.pop()},B=S=>{if(g.type==="globstar"){let W=_.braces>0&&(S.type==="comma"||S.type==="brace"),E=S.extglob===!0||j.length&&(S.type==="pipe"||S.type==="paren");S.type!=="slash"&&S.type!=="paren"&&!W&&!E&&(_.output=_.output.slice(0,-g.output.length),g.type="star",g.value="*",g.output=A,_.output+=g.output)}if(j.length&&S.type!=="paren"&&(j[j.length-1].inner+=S.value),(S.value||S.output)&&or(S),g&&g.type==="text"&&S.type==="text"){g.value+=S.value,g.output=(g.output||"")+S.value;return}S.prev=g,o.push(S),g=S},lr=(S,W)=>{let E={...f[W],conditions:1,inner:""};E.prev=g,E.parens=_.parens,E.output=_.output;let L=(r.capture?"(":"")+E.open;ar("parens"),B({type:S,value:W,output:_.output?"":x}),B({type:"paren",extglob:!0,value:Ee(),output:L}),j.push(E)},dc=S=>{let W=S.close+(r.capture?")":""),E;if(S.type==="negate"){let L=A;if(S.inner&&S.inner.length>1&&S.inner.includes("/")&&(L=P(r)),(L!==A||se()||/^\)+$/.test(Se()))&&(W=S.close=`)$))${L}`),S.inner.includes("*")&&(E=Se())&&/^\.[^\\/.]+$/.test(E)){let K=Fn(E,{...t,fastpaths:!1}).output;W=S.close=`)${K})${L})`}S.prev.type==="bos"&&(_.negatedExtglob=!0)}B({type:"paren",extglob:!0,value:m,output:W}),Qe("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let S=!1,W=e.replace(cp,(E,L,K,oe,ee,bn)=>oe==="\\"?(S=!0,E):oe==="?"?L?L+oe+(ee?N.repeat(ee.length):""):bn===0?q+(ee?N.repeat(ee.length):""):N.repeat(K.length):oe==="."?d.repeat(K.length):oe==="*"?L?L+oe+(ee?A:""):A:L?E:`\\${E}`);return S===!0&&(r.unescape===!0?W=W.replace(/\\/g,""):W=W.replace(/\\+/g,E=>E.length%2===0?"\\\\":E?"\\":"")),W===e&&r.contains===!0?(_.output=e,_):(_.output=fe.wrapOutput(W,_,t),_)}for(;!se();){if(m=Ee(),m==="\0")continue;if(m==="\\"){let E=F();if(E==="/"&&r.bash!==!0||E==="."||E===";")continue;if(!E){m+="\\",B({type:"text",value:m});continue}let L=/^\\+/.exec(Se()),K=0;if(L&&L[0].length>2&&(K=L[0].length,_.index+=K,K%2!==0&&(m+="\\")),r.unescape===!0?m=Ee():m+=Ee(),_.brackets===0){B({type:"text",value:m});continue}}if(_.brackets>0&&(m!=="]"||g.value==="["||g.value==="[^")){if(r.posix!==!1&&m===":"){let E=g.value.slice(1);if(E.includes("[")&&(g.posix=!0,E.includes(":"))){let L=g.value.lastIndexOf("["),K=g.value.slice(0,L),oe=g.value.slice(L+2),ee=up[oe];if(ee){g.value=K+ee,_.backtrack=!0,Ee(),!s.output&&o.indexOf(g)===1&&(s.output=x);continue}}}(m==="["&&F()!==":"||m==="-"&&F()==="]")&&(m=`\\${m}`),m==="]"&&(g.value==="["||g.value==="[^")&&(m=`\\${m}`),r.posix===!0&&m==="!"&&g.value==="["&&(m="^"),g.value+=m,or({value:m});continue}if(_.quotes===1&&m!=='"'){m=fe.escapeRegex(m),g.value+=m,or({value:m});continue}if(m==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&B({type:"text",value:m});continue}if(m==="("){ar("parens"),B({type:"paren",value:m});continue}if(m===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(gt("opening","("));let E=j[j.length-1];if(E&&_.parens===E.parens+1){dc(j.pop());continue}B({type:"paren",value:m,output:_.parens?")":"\\)"}),Qe("parens");continue}if(m==="["){if(r.nobracket===!0||!Se().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(gt("closing","]"));m=`\\${m}`}else ar("brackets");B({type:"bracket",value:m});continue}if(m==="]"){if(r.nobracket===!0||g&&g.type==="bracket"&&g.value.length===1){B({type:"text",value:m,output:`\\${m}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(gt("opening","["));B({type:"text",value:m,output:`\\${m}`});continue}Qe("brackets");let E=g.value.slice(1);if(g.posix!==!0&&E[0]==="^"&&!E.includes("/")&&(m=`/${m}`),g.value+=m,or({value:m}),r.literalBrackets===!1||fe.hasRegexChars(E))continue;let L=fe.escapeRegex(g.value);if(_.output=_.output.slice(0,-g.value.length),r.literalBrackets===!0){_.output+=L,g.value=L;continue}g.value=`(${a}${L}|${g.value})`,_.output+=g.value;continue}if(m==="{"&&r.nobrace!==!0){ar("braces");let E={type:"brace",value:m,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};$.push(E),B(E);continue}if(m==="}"){let E=$[$.length-1];if(r.nobrace===!0||!E){B({type:"text",value:m,output:m});continue}let L=")";if(E.dots===!0){let K=o.slice(),oe=[];for(let ee=K.length-1;ee>=0&&(o.pop(),K[ee].type!=="brace");ee--)K[ee].type!=="dots"&&oe.unshift(K[ee].value);L=hp(oe,r),_.backtrack=!0}if(E.comma!==!0&&E.dots!==!0){let K=_.output.slice(0,E.outputIndex),oe=_.tokens.slice(E.tokensIndex);E.value=E.output="\\{",m=L="\\}",_.output=K;for(let ee of oe)_.output+=ee.output||ee.value}B({type:"brace",value:m,output:L}),Qe("braces"),$.pop();continue}if(m==="|"){j.length>0&&j[j.length-1].conditions++,B({type:"text",value:m});continue}if(m===","){let E=m,L=$[$.length-1];L&&ke[ke.length-1]==="braces"&&(L.comma=!0,E="|"),B({type:"comma",value:m,output:E});continue}if(m==="/"){if(g.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",o.pop(),g=s;continue}B({type:"slash",value:m,output:v});continue}if(m==="."){if(_.braces>0&&g.type==="dot"){g.value==="."&&(g.output=d);let E=$[$.length-1];g.type="dots",g.output+=m,g.value+=m,E.dots=!0;continue}if(_.braces+_.parens===0&&g.type!=="bos"&&g.type!=="slash"){B({type:"text",value:m,output:d});continue}B({type:"dot",value:m,output:d});continue}if(m==="?"){if(!(g&&g.value==="(")&&r.noextglob!==!0&&F()==="("&&F(2)!=="?"){lr("qmark",m);continue}if(g&&g.type==="paren"){let L=F(),K=m;if(L==="<"&&!fe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(g.value==="("&&!/[!=<:]/.test(L)||L==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(K=`\\${m}`),B({type:"text",value:m,output:K});continue}if(r.dot!==!0&&(g.type==="slash"||g.type==="bos")){B({type:"qmark",value:m,output:z});continue}B({type:"qmark",value:m,output:N});continue}if(m==="!"){if(r.noextglob!==!0&&F()==="("&&(F(2)!=="?"||!/[!=<:]/.test(F(3)))){lr("negate",m);continue}if(r.nonegate!==!0&&_.index===0){pc();continue}}if(m==="+"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){lr("plus",m);continue}if(g&&g.value==="("||r.regex===!1){B({type:"plus",value:m,output:h});continue}if(g&&(g.type==="bracket"||g.type==="paren"||g.type==="brace")||_.parens>0){B({type:"plus",value:m});continue}B({type:"plus",value:h});continue}if(m==="@"){if(r.noextglob!==!0&&F()==="("&&F(2)!=="?"){B({type:"at",extglob:!0,value:m,output:""});continue}B({type:"text",value:m});continue}if(m!=="*"){(m==="$"||m==="^")&&(m=`\\${m}`);let E=fp.exec(Se());E&&(m+=E[0],_.index+=E[0].length),B({type:"text",value:m});continue}if(g&&(g.type==="globstar"||g.star===!0)){g.type="star",g.star=!0,g.value+=m,g.output=A,_.backtrack=!0,_.globstar=!0,le(m);continue}let S=Se();if(r.noextglob!==!0&&/^\([^?]/.test(S)){lr("star",m);continue}if(g.type==="star"){if(r.noglobstar===!0){le(m);continue}let E=g.prev,L=E.prev,K=E.type==="slash"||E.type==="bos",oe=L&&(L.type==="star"||L.type==="globstar");if(r.bash===!0&&(!K||S[0]&&S[0]!=="/")){B({type:"star",value:m,output:""});continue}let ee=_.braces>0&&(E.type==="comma"||E.type==="brace"),bn=j.length&&(E.type==="pipe"||E.type==="paren");if(!K&&E.type!=="paren"&&!ee&&!bn){B({type:"star",value:m,output:""});continue}for(;S.slice(0,3)==="/**";){let ur=e[_.index+4];if(ur&&ur!=="/")break;S=S.slice(3),le("/**",3)}if(E.type==="bos"&&se()){g.type="globstar",g.value+=m,g.output=P(r),_.output=g.output,_.globstar=!0,le(m);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&!oe&&se()){_.output=_.output.slice(0,-(E.output+g.output).length),E.output=`(?:${E.output}`,g.type="globstar",g.output=P(r)+(r.strictSlashes?")":"|$)"),g.value+=m,_.globstar=!0,_.output+=E.output+g.output,le(m);continue}if(E.type==="slash"&&E.prev.type!=="bos"&&S[0]==="/"){let ur=S[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(E.output+g.output).length),E.output=`(?:${E.output}`,g.type="globstar",g.output=`${P(r)}${v}|${v}${ur})`,g.value+=m,_.output+=E.output+g.output,_.globstar=!0,le(m+Ee()),B({type:"slash",value:"/",output:""});continue}if(E.type==="bos"&&S[0]==="/"){g.type="globstar",g.value+=m,g.output=`(?:^|${v}|${P(r)}${v})`,_.output=g.output,_.globstar=!0,le(m+Ee()),B({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-g.output.length),g.type="globstar",g.output=P(r),g.value+=m,_.output+=g.output,_.globstar=!0,le(m);continue}let W={type:"star",value:m,output:A};if(r.bash===!0){W.output=".*?",(g.type==="bos"||g.type==="slash")&&(W.output=T+W.output),B(W);continue}if(g&&(g.type==="bracket"||g.type==="paren")&&r.regex===!0){W.output=m,B(W);continue}(_.index===_.start||g.type==="slash"||g.type==="dot")&&(g.type==="dot"?(_.output+=R,g.output+=R):r.dot===!0?(_.output+=D,g.output+=D):(_.output+=T,g.output+=T),F()!=="*"&&(_.output+=x,g.output+=x)),B(W)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(gt("closing","]"));_.output=fe.escapeLast(_.output,"["),Qe("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(gt("closing",")"));_.output=fe.escapeLast(_.output,"("),Qe("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(gt("closing","}"));_.output=fe.escapeLast(_.output,"{"),Qe("braces")}if(r.strictSlashes!==!0&&(g.type==="star"||g.type==="bracket")&&B({type:"maybe_slash",value:"",output:`${v}?`}),_.backtrack===!0){_.output="";for(let S of _.tokens)_.output+=S.output!=null?S.output:S.value,S.suffix&&(_.output+=S.suffix)}return _};Fn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(br,r.maxLength):br,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=ia[e]||e;let s=fe.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:d,NO_DOTS_SLASH:h,STAR:v,START_ANCHOR:x}=yr.globChars(s),b=r.dot?d:f,w=r.dot?h:f,R=r.capture?"":"?:",D={negated:!1,prefix:""},N=r.bash===!0?".*?":v;r.capture&&(N=`(${N})`);let z=T=>T.noglobstar===!0?N:`(${R}(?:(?!${x}${T.dot?c:o}).)*?)`,O=T=>{switch(T){case"*":return`${b}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${b}${N}${o}${u}${N}`;case"*/*":return`${b}${N}${a}${u}${w}${N}`;case"**":return b+z(r);case"**/*":return`(?:${b}${z(r)}${a})?${w}${u}${N}`;case"**/*.*":return`(?:${b}${z(r)}${a})?${w}${N}${o}${u}${N}`;case"**/.*":return`(?:${b}${z(r)}${a})?${o}${u}${N}`;default:{let q=/^(.*?)\.(\w+)$/.exec(T);if(!q)return;let A=O(q[1]);return A?A+o+q[2]:void 0}}},U=fe.removePrefix(e,D),P=O(U);return P&&r.strictSlashes!==!0&&(P+=`${a}?`),P};sa.exports=Fn});var la=y((ky,aa)=>{"use strict";l();var pp=I("path"),dp=na(),qn=oa(),$n=$t(),_p=qt(),gp=e=>e&&typeof e=="object"&&!Array.isArray(e),X=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>X(h,t,r));return h=>{for(let v of f){let x=v(h);if(x)return x}return!1}}let n=gp(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=$n.isWindows(t),o=n?X.compileRe(e,t):X.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=X(i.ignore,f,r)}let c=(f,d=!1)=>{let{isMatch:h,match:v,output:x}=X.test(f,o,t,{glob:e,posix:s}),b={glob:e,state:a,regex:o,posix:s,input:f,output:x,match:v,isMatch:h};return typeof i.onResult=="function"&&i.onResult(b),h===!1?(b.isMatch=!1,d?b:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(b),b.isMatch=!1,d?b:!1):(typeof i.onMatch=="function"&&i.onMatch(b),d?b:!0)};return r&&(c.state=a),c};X.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?$n.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=X.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:Boolean(a),match:a,output:u}};X.matchBase=(e,t,r,n=$n.isWindows(r))=>(t instanceof RegExp?t:X.makeRe(t,r)).test(pp.basename(e));X.isMatch=(e,t,r)=>X(t,r)(e);X.parse=(e,t)=>Array.isArray(e)?e.map(r=>X.parse(r,t)):qn(e,{...t,fastpaths:!1});X.scan=(e,t)=>dp(e,t);X.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=X.toRegex(a,t);return n===!0&&(u.state=e),u};X.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=qn.fastpaths(e,t)),i.output||(i=qn(e,t)),X.compileRe(i,t,r,n)};X.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};X.constants=_p;aa.exports=X});var fa=y((Fy,ua)=>{"use strict";l();ua.exports=la()});var _a=y((qy,da)=>{"use strict";l();var ha=I("util"),pa=Go(),we=fa(),jn=$t(),ca=e=>e===""||e==="./",V=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let d=we(String(t[f]),{...r,onResult:a},!0),h=d.state.negated||d.state.negatedExtglob;h&&o++;for(let v of e){let x=d(v,!0);!(h?!x.isMatch:x.isMatch)||(h?n.add(x.output):(n.delete(x.output),i.add(x.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return c};V.match=V;V.matcher=(e,t)=>we(e,t);V.isMatch=(e,t,r)=>we(t,r)(e);V.any=V.isMatch;V.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],o=V(e,t,{...r,onResult:a=>{r.onResult&&r.onResult(a),i.push(a.output)}});for(let a of i)o.includes(a)||n.add(a);return[...n]};V.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ha.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>V.contains(e,n,r));if(typeof t=="string"){if(ca(e)||ca(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return V.isMatch(e,t,{...r,contains:!0})};V.matchKeys=(e,t,r)=>{if(!jn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=V(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};V.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(n.some(o=>s(o)))return!0}return!1};V.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=we(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};V.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ha.inspect(e)}"`);return[].concat(t).every(n=>we(n,r)(e))};V.capture=(e,t,r)=>{let n=jn.isWindows(r),s=we.makeRe(String(e),{...r,capture:!0}).exec(n?jn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};V.makeRe=(...e)=>we.makeRe(...e);V.scan=(...e)=>we.scan(...e);V.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of pa(String(n),t))r.push(we.parse(i,t));return r};V.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:pa(e,t)};V.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return V.braces(e,{...t,expand:!0})};da.exports=V});var va=y(C=>{"use strict";l();Object.defineProperty(C,"__esModule",{value:!0});C.matchAny=C.convertPatternsToRe=C.makeRe=C.getPatternParts=C.expandBraceExpansion=C.expandPatternsWithBraceExpansion=C.isAffectDepthOfReadingPattern=C.endsWithSlashGlobStar=C.hasGlobStar=C.getBaseDirectory=C.isPatternRelatedToParentDirectory=C.getPatternsOutsideCurrentDirectory=C.getPatternsInsideCurrentDirectory=C.getPositivePatterns=C.getNegativePatterns=C.isPositivePattern=C.isNegativePattern=C.convertToNegativePattern=C.convertToPositivePattern=C.isDynamicPattern=C.isStaticPattern=void 0;var mp=I("path"),yp=oo(),Hn=_a(),ga="**",bp="\\",xp=/[*?]|^!/,Ep=/\[[^[]*]/,Sp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,vp=/[!*+?@]\([^(]*\)/,Rp=/,|\.\./;function ma(e,t={}){return!ya(e,t)}C.isStaticPattern=ma;function ya(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(bp)||xp.test(e)||Ep.test(e)||Sp.test(e)||t.extglob!==!1&&vp.test(e)||t.braceExpansion!==!1&&wp(e))}C.isDynamicPattern=ya;function wp(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return Rp.test(n)}function Ap(e){return xr(e)?e.slice(1):e}C.convertToPositivePattern=Ap;function Tp(e){return"!"+e}C.convertToNegativePattern=Tp;function xr(e){return e.startsWith("!")&&e[1]!=="("}C.isNegativePattern=xr;function ba(e){return!xr(e)}C.isPositivePattern=ba;function Cp(e){return e.filter(xr)}C.getNegativePatterns=Cp;function Op(e){return e.filter(ba)}C.getPositivePatterns=Op;function Pp(e){return e.filter(t=>!Un(t))}C.getPatternsInsideCurrentDirectory=Pp;function Lp(e){return e.filter(Un)}C.getPatternsOutsideCurrentDirectory=Lp;function Un(e){return e.startsWith("..")||e.startsWith("./..")}C.isPatternRelatedToParentDirectory=Un;function Mp(e){return yp(e,{flipBackslashes:!1})}C.getBaseDirectory=Mp;function Dp(e){return e.includes(ga)}C.hasGlobStar=Dp;function xa(e){return e.endsWith("/"+ga)}C.endsWithSlashGlobStar=xa;function Bp(e){let t=mp.basename(e);return xa(e)||ma(t)}C.isAffectDepthOfReadingPattern=Bp;function Ip(e){return e.reduce((t,r)=>t.concat(Ea(r)),[])}C.expandPatternsWithBraceExpansion=Ip;function Ea(e){return Hn.braces(e,{expand:!0,nodupes:!0})}C.expandBraceExpansion=Ea;function Np(e,t){let{parts:r}=Hn.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}C.getPatternParts=Np;function Sa(e,t){return Hn.makeRe(e,t)}C.makeRe=Sa;function kp(e,t){return e.map(r=>Sa(r,t))}C.convertPatternsToRe=kp;function Fp(e,t){return t.some(r=>r.test(e))}C.matchAny=Fp});var Ta=y((jy,Aa)=>{"use strict";l();var qp=I("stream"),Ra=qp.PassThrough,$p=Array.prototype.slice;Aa.exports=jp;function jp(){let e=[],t=$p.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Ra(n);function a(){for(let f=0,d=arguments.length;f<d;f++)e.push(wa(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let d=f.length+1;function h(){--d>0||(r=!1,u())}function v(x){function b(){x.removeListener("merge2UnpipeEnd",b),x.removeListener("end",b),s&&x.removeListener("error",w),h()}function w(R){o.emit("error",R)}if(x._readableState.endEmitted)return h();x.on("merge2UnpipeEnd",b),x.on("end",b),s&&x.on("error",w),x.pipe(o,{end:!1}),x.resume()}for(let x=0;x<f.length;x++)v(f[x]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function wa(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=wa(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Ra(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Oa=y(Er=>{"use strict";l();Object.defineProperty(Er,"__esModule",{value:!0});Er.merge=void 0;var Hp=Ta();function Up(e){let t=Hp(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Ca(e)),t.once("end",()=>Ca(e)),t}Er.merge=Up;function Ca(e){e.forEach(t=>t.emit("close"))}});var Pa=y(mt=>{"use strict";l();Object.defineProperty(mt,"__esModule",{value:!0});mt.isEmpty=mt.isString=void 0;function Gp(e){return typeof e=="string"}mt.isString=Gp;function Wp(e){return e===""}mt.isEmpty=Wp});var Me=y(re=>{"use strict";l();Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var Vp=Qs();re.array=Vp;var Yp=Xs();re.errno=Yp;var Kp=Zs();re.fs=Kp;var Qp=zs();re.path=Qp;var Xp=va();re.pattern=Xp;var Jp=Oa();re.stream=Jp;var Zp=Pa();re.string=Zp});var Da=y(ne=>{"use strict";l();Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var De=Me();function zp(e,t){let r=La(e),n=Ma(e,t.ignore),i=r.filter(u=>De.pattern.isStaticPattern(u,t)),s=r.filter(u=>De.pattern.isDynamicPattern(u,t)),o=Gn(i,n,!1),a=Gn(s,n,!0);return o.concat(a)}ne.generate=zp;function Gn(e,t,r){let n=[],i=De.pattern.getPatternsOutsideCurrentDirectory(e),s=De.pattern.getPatternsInsideCurrentDirectory(e),o=Wn(i),a=Wn(s);return n.push(...Vn(o,t,r)),"."in a?n.push(Yn(".",s,t,r)):n.push(...Vn(a,t,r)),n}ne.convertPatternsToTasks=Gn;function La(e){return De.pattern.getPositivePatterns(e)}ne.getPositivePatterns=La;function Ma(e,t){return De.pattern.getNegativePatterns(e).concat(t).map(De.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Ma;function Wn(e){let t={};return e.reduce((r,n)=>{let i=De.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=Wn;function Vn(e,t,r){return Object.keys(e).map(n=>Yn(n,e[n],t,r))}ne.convertPatternGroupsToTasks=Vn;function Yn(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(De.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=Yn});var Ia=y(yt=>{"use strict";l();Object.defineProperty(yt,"__esModule",{value:!0});yt.removeDuplicateSlashes=yt.transform=void 0;var ed=/(?!^)\/{2,}/g;function td(e){return e.map(t=>Ba(t))}yt.transform=td;function Ba(e){return e.replace(ed,"/")}yt.removeDuplicateSlashes=Ba});var ka=y(Sr=>{"use strict";l();Object.defineProperty(Sr,"__esModule",{value:!0});Sr.read=void 0;function rd(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Na(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Kn(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Na(r,s);return}Kn(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Kn(r,o)})})}Sr.read=rd;function Na(e,t){e(t)}function Kn(e,t){e(null,t)}});var Fa=y(vr=>{"use strict";l();Object.defineProperty(vr,"__esModule",{value:!0});vr.read=void 0;function nd(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}vr.read=nd});var qa=y(Fe=>{"use strict";l();Object.defineProperty(Fe,"__esModule",{value:!0});Fe.createFileSystemAdapter=Fe.FILE_SYSTEM_ADAPTER=void 0;var Rr=I("fs");Fe.FILE_SYSTEM_ADAPTER={lstat:Rr.lstat,stat:Rr.stat,lstatSync:Rr.lstatSync,statSync:Rr.statSync};function id(e){return e===void 0?Fe.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Fe.FILE_SYSTEM_ADAPTER),e)}Fe.createFileSystemAdapter=id});var ja=y(Qn=>{"use strict";l();Object.defineProperty(Qn,"__esModule",{value:!0});var sd=qa(),$a=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=sd.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};Qn.default=$a});var ze=y(qe=>{"use strict";l();Object.defineProperty(qe,"__esModule",{value:!0});qe.statSync=qe.stat=qe.Settings=void 0;var Ha=ka(),od=Fa(),Xn=ja();qe.Settings=Xn.default;function ad(e,t,r){if(typeof t=="function"){Ha.read(e,Jn(),t);return}Ha.read(e,Jn(t),r)}qe.stat=ad;function ld(e,t){let r=Jn(t);return od.read(e,r)}qe.statSync=ld;function Jn(e={}){return e instanceof Xn.default?e:new Xn.default(e)}});var Wa=y((Zy,Ga)=>{l();var Ua;Ga.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Ua||(Ua=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Ya=y((zy,Va)=>{l();Va.exports=fd;var ud=Wa();function fd(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?ud(c):c()}function a(u,c,f){r[u]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,f){a(u,c,f)})}):e.forEach(function(u,c){u(function(f,d){a(c,f,d)})}):o(null),s=!1}});var Zn=y(Ar=>{"use strict";l();Object.defineProperty(Ar,"__esModule",{value:!0});Ar.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var wr=process.versions.node.split(".");if(wr[0]===void 0||wr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Ka=Number.parseInt(wr[0],10),cd=Number.parseInt(wr[1],10),Qa=10,hd=10,pd=Ka>Qa,dd=Ka===Qa&&cd>=hd;Ar.IS_SUPPORT_READDIR_WITH_FILE_TYPES=pd||dd});var Ja=y(Tr=>{"use strict";l();Object.defineProperty(Tr,"__esModule",{value:!0});Tr.createDirentFromStats=void 0;var Xa=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function _d(e,t){return new Xa(e,t)}Tr.createDirentFromStats=_d});var zn=y(Cr=>{"use strict";l();Object.defineProperty(Cr,"__esModule",{value:!0});Cr.fs=void 0;var gd=Ja();Cr.fs=gd});var ei=y(Or=>{"use strict";l();Object.defineProperty(Or,"__esModule",{value:!0});Or.joinPathSegments=void 0;function md(e,t,r){return e.endsWith(r)?e+t:e+r+t}Or.joinPathSegments=md});var nl=y($e=>{"use strict";l();Object.defineProperty($e,"__esModule",{value:!0});$e.readdir=$e.readdirWithFileTypes=$e.read=void 0;var yd=ze(),Za=Ya(),bd=Zn(),za=zn(),el=ei();function xd(e,t,r){if(!t.stats&&bd.IS_SUPPORT_READDIR_WITH_FILE_TYPES){tl(e,t,r);return}rl(e,t,r)}$e.read=xd;function tl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Pr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:el.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){ti(r,s);return}let o=s.map(a=>Ed(a,t));Za(o,(a,u)=>{if(a!==null){Pr(r,a);return}ti(r,u)})})}$e.readdirWithFileTypes=tl;function Ed(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=za.fs.createDirentFromStats(e.name,i),r(null,e)})}}function rl(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Pr(r,n);return}let s=i.map(o=>{let a=el.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{yd.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let d={name:o,path:a,dirent:za.fs.createDirentFromStats(o,f)};t.stats&&(d.stats=f),u(null,d)})}});Za(s,(o,a)=>{if(o!==null){Pr(r,o);return}ti(r,a)})})}$e.readdir=rl;function Pr(e,t){e(t)}function ti(e,t){e(null,t)}});var ll=y(je=>{"use strict";l();Object.defineProperty(je,"__esModule",{value:!0});je.readdir=je.readdirWithFileTypes=je.read=void 0;var Sd=ze(),vd=Zn(),il=zn(),sl=ei();function Rd(e,t){return!t.stats&&vd.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ol(e,t):al(e,t)}je.read=Rd;function ol(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:sl.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=il.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}je.readdirWithFileTypes=ol;function al(e,t){return t.fs.readdirSync(e).map(n=>{let i=sl.joinPathSegments(e,n,t.pathSegmentSeparator),s=Sd.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:il.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}je.readdir=al});var ul=y(He=>{"use strict";l();Object.defineProperty(He,"__esModule",{value:!0});He.createFileSystemAdapter=He.FILE_SYSTEM_ADAPTER=void 0;var bt=I("fs");He.FILE_SYSTEM_ADAPTER={lstat:bt.lstat,stat:bt.stat,lstatSync:bt.lstatSync,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};function wd(e){return e===void 0?He.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},He.FILE_SYSTEM_ADAPTER),e)}He.createFileSystemAdapter=wd});var cl=y(ri=>{"use strict";l();Object.defineProperty(ri,"__esModule",{value:!0});var Ad=I("path"),Td=ze(),Cd=ul(),fl=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=Cd.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Ad.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new Td.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};ri.default=fl});var Lr=y(Ue=>{"use strict";l();Object.defineProperty(Ue,"__esModule",{value:!0});Ue.Settings=Ue.scandirSync=Ue.scandir=void 0;var hl=nl(),Od=ll(),ni=cl();Ue.Settings=ni.default;function Pd(e,t,r){if(typeof t=="function"){hl.read(e,ii(),t);return}hl.read(e,ii(t),r)}Ue.scandir=Pd;function Ld(e,t){let r=ii(t);return Od.read(e,r)}Ue.scandirSync=Ld;function ii(e={}){return e instanceof ni.default?e:new ni.default(e)}});var dl=y((ub,pl)=>{"use strict";l();function Md(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}pl.exports=Md});var gl=y((fb,si)=>{"use strict";l();var Dd=dl();function _l(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),r<1)throw new Error("fastqueue concurrency must be greater than 1");var n=Dd(Bd),i=null,s=null,o=0,a=null,u={push:b,drain:pe,saturated:pe,pause:f,paused:!1,concurrency:r,running:c,resume:v,idle:x,length:d,getQueue:h,unshift:w,empty:pe,kill:D,killAndDrain:N,error:z};return u;function c(){return o}function f(){u.paused=!0}function d(){for(var O=i,U=0;O;)O=O.next,U++;return U}function h(){for(var O=i,U=[];O;)U.push(O.value),O=O.next;return U}function v(){if(!!u.paused){u.paused=!1;for(var O=0;O<u.concurrency;O++)o++,R()}}function x(){return o===0&&u.length()===0}function b(O,U){var P=n.get();P.context=e,P.release=R,P.value=O,P.callback=U||pe,P.errorHandler=a,o===u.concurrency||u.paused?s?(s.next=P,s=P):(i=P,s=P,u.saturated()):(o++,t.call(e,P.value,P.worked))}function w(O,U){var P=n.get();P.context=e,P.release=R,P.value=O,P.callback=U||pe,o===u.concurrency||u.paused?i?(P.next=i,i=P):(i=P,s=P,u.saturated()):(o++,t.call(e,P.value,P.worked))}function R(O){O&&n.release(O);var U=i;U?u.paused?o--:(s===i&&(s=null),i=U.next,U.next=null,t.call(e,U.value,U.worked),s===null&&u.empty()):--o===0&&u.drain()}function D(){i=null,s=null,u.drain=pe}function N(){i=null,s=null,u.drain(),u.drain=pe}function z(O){a=O}}function pe(){}function Bd(){this.value=null,this.callback=pe,this.next=null,this.release=pe,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=pe,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Id(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,d){t.call(this,f).then(function(h){d(null,h)},d)}var i=_l(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(f){var d=new Promise(function(h,v){s(f,function(x,b){if(x){v(x);return}h(b)})});return d.catch(pe),d}function u(f){var d=new Promise(function(h,v){o(f,function(x,b){if(x){v(x);return}h(b)})});return d.catch(pe),d}function c(){var f=i.drain,d=new Promise(function(h){i.drain=function(){f(),h()}});return d}}si.exports=_l;si.exports.promise=Id});var Mr=y(Ae=>{"use strict";l();Object.defineProperty(Ae,"__esModule",{value:!0});Ae.joinPathSegments=Ae.replacePathSegmentSeparator=Ae.isAppliedFilter=Ae.isFatalError=void 0;function Nd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ae.isFatalError=Nd;function kd(e,t){return e===null||e(t)}Ae.isAppliedFilter=kd;function Fd(e,t){return e.split(/[/\\]/).join(t)}Ae.replacePathSegmentSeparator=Fd;function qd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ae.joinPathSegments=qd});var ai=y(oi=>{"use strict";l();Object.defineProperty(oi,"__esModule",{value:!0});var $d=Mr(),ml=class{constructor(t,r){this._root=t,this._settings=r,this._root=$d.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};oi.default=ml});var ui=y(li=>{"use strict";l();Object.defineProperty(li,"__esModule",{value:!0});var jd=I("events"),Hd=Lr(),Ud=gl(),Dr=Mr(),Gd=ai(),yl=class extends Gd.default{constructor(t,r){super(t,r);this._settings=r,this._scandir=Hd.scandir,this._emitter=new jd.EventEmitter,this._queue=Ud(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Dr.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Dr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Dr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Dr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};li.default=yl});var xl=y(fi=>{"use strict";l();Object.defineProperty(fi,"__esModule",{value:!0});var Wd=ui(),bl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Wd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Vd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Yd(t,this._storage)}),this._reader.read()}};fi.default=bl;function Vd(e,t){e(t)}function Yd(e,t){e(null,t)}});var Sl=y(ci=>{"use strict";l();Object.defineProperty(ci,"__esModule",{value:!0});var Kd=I("stream"),Qd=ui(),El=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Qd.default(this._root,this._settings),this._stream=new Kd.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ci.default=El});var Rl=y(hi=>{"use strict";l();Object.defineProperty(hi,"__esModule",{value:!0});var Xd=Lr(),Br=Mr(),Jd=ai(),vl=class extends Jd.default{constructor(){super(...arguments);this._scandir=Xd.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(!!Br.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Br.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Br.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Br.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};hi.default=vl});var Al=y(pi=>{"use strict";l();Object.defineProperty(pi,"__esModule",{value:!0});var Zd=Rl(),wl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Zd.default(this._root,this._settings)}read(){return this._reader.read()}};pi.default=wl});var Cl=y(di=>{"use strict";l();Object.defineProperty(di,"__esModule",{value:!0});var zd=I("path"),e_=Lr(),Tl=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,zd.sep),this.fsScandirSettings=new e_.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};di.default=Tl});var gi=y(Te=>{"use strict";l();Object.defineProperty(Te,"__esModule",{value:!0});Te.Settings=Te.walkStream=Te.walkSync=Te.walk=void 0;var Ol=xl(),t_=Sl(),r_=Al(),_i=Cl();Te.Settings=_i.default;function n_(e,t,r){if(typeof t=="function"){new Ol.default(e,Ir()).read(t);return}new Ol.default(e,Ir(t)).read(r)}Te.walk=n_;function i_(e,t){let r=Ir(t);return new r_.default(e,r).read()}Te.walkSync=i_;function s_(e,t){let r=Ir(t);return new t_.default(e,r).read()}Te.walkStream=s_;function Ir(e={}){return e instanceof _i.default?e:new _i.default(e)}});var yi=y(mi=>{"use strict";l();Object.defineProperty(mi,"__esModule",{value:!0});var o_=I("path"),a_=ze(),Pl=Me(),Ll=class{constructor(t){this._settings=t,this._fsStatSettings=new a_.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return o_.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Pl.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Pl.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};mi.default=Ll});var xi=y(bi=>{"use strict";l();Object.defineProperty(bi,"__esModule",{value:!0});var l_=I("stream"),u_=ze(),f_=gi(),c_=yi(),Ml=class extends c_.default{constructor(){super(...arguments);this._walkStream=f_.walkStream,this._stat=u_.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new l_.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};bi.default=Ml});var Bl=y(Ei=>{"use strict";l();Object.defineProperty(Ei,"__esModule",{value:!0});var xt=Me(),Dl=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=xt.pattern.expandPatternsWithBraceExpansion(this._patterns);for(let r of t){let n=this._getPatternSegments(r),i=this._splitSegmentsIntoSections(n);this._storage.push({complete:i.length<=1,pattern:r,segments:n,sections:i})}}_getPatternSegments(t){return xt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>xt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:xt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return xt.array.splitWhen(t,r=>r.dynamic&&xt.pattern.hasGlobStar(r.pattern))}};Ei.default=Dl});var Nl=y(Si=>{"use strict";l();Object.defineProperty(Si,"__esModule",{value:!0});var h_=Bl(),Il=class extends h_.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let f=s.segments[c];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};Si.default=Il});var Fl=y(vi=>{"use strict";l();Object.defineProperty(vi,"__esModule",{value:!0});var Nr=Me(),p_=Nl(),kl=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new p_.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(Nr.pattern.isAffectDepthOfReadingPattern);return Nr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=Nr.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!Nr.pattern.matchAny(t,r)}};vi.default=kl});var $l=y(Ri=>{"use strict";l();Object.defineProperty(Ri,"__esModule",{value:!0});var et=Me(),ql=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=et.pattern.convertPatternsToRe(t,this._micromatchOptions),i=et.pattern.convertPatternsToRe(r,this._micromatchOptions);return s=>this._filter(s,n,i)}_filter(t,r,n){if(this._settings.unique&&this._isDuplicateEntry(t)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(t.path,n))return!1;let i=this._settings.baseNameMatch?t.name:t.path,s=this._isMatchToPatterns(i,r)&&!this._isMatchToPatterns(t.path,n);return this._settings.unique&&s&&this._createIndexRecord(t),s}_isDuplicateEntry(t){return this.index.has(t.path)}_createIndexRecord(t){this.index.set(t.path,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=et.path.makeAbsolute(this._settings.cwd,t);return et.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=et.path.removeLeadingDotSegment(t);return et.pattern.matchAny(n,r)||et.pattern.matchAny(n+"/",r)}};Ri.default=ql});var Hl=y(wi=>{"use strict";l();Object.defineProperty(wi,"__esModule",{value:!0});var d_=Me(),jl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return d_.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};wi.default=jl});var Wl=y(Ai=>{"use strict";l();Object.defineProperty(Ai,"__esModule",{value:!0});var Ul=Me(),Gl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Ul.path.makeAbsolute(this._settings.cwd,r),r=Ul.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Ai.default=Gl});var kr=y(Ti=>{"use strict";l();Object.defineProperty(Ti,"__esModule",{value:!0});var __=I("path"),g_=Fl(),m_=$l(),y_=Hl(),b_=Wl(),Vl=class{constructor(t){this._settings=t,this.errorFilter=new y_.default(this._settings),this.entryFilter=new m_.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new g_.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new b_.default(this._settings)}_getRootDirectory(t){return __.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Ti.default=Vl});var Kl=y(Ci=>{"use strict";l();Object.defineProperty(Ci,"__esModule",{value:!0});var x_=xi(),E_=kr(),Yl=class extends E_.default{constructor(){super(...arguments);this._reader=new x_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=[];return new Promise((s,o)=>{let a=this.api(r,t,n);a.once("error",o),a.on("data",u=>i.push(n.transform(u))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ci.default=Yl});var Xl=y(Oi=>{"use strict";l();Object.defineProperty(Oi,"__esModule",{value:!0});var S_=I("stream"),v_=xi(),R_=kr(),Ql=class extends R_.default{constructor(){super(...arguments);this._reader=new v_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new S_.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Oi.default=Ql});var Zl=y(Pi=>{"use strict";l();Object.defineProperty(Pi,"__esModule",{value:!0});var w_=ze(),A_=gi(),T_=yi(),Jl=class extends T_.default{constructor(){super(...arguments);this._walkSync=A_.walkSync,this._statSync=w_.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Pi.default=Jl});var eu=y(Li=>{"use strict";l();Object.defineProperty(Li,"__esModule",{value:!0});var C_=Zl(),O_=kr(),zl=class extends O_.default{constructor(){super(...arguments);this._reader=new C_.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Li.default=zl});var ru=y(St=>{"use strict";l();Object.defineProperty(St,"__esModule",{value:!0});St.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Et=I("fs"),P_=I("os"),L_=Math.max(P_.cpus().length,1);St.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Et.lstat,lstatSync:Et.lstatSync,stat:Et.stat,statSync:Et.statSync,readdir:Et.readdir,readdirSync:Et.readdirSync};var tu=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,L_),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},St.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};St.default=tu});var Ii=y((Bb,su)=>{"use strict";l();var nu=Da(),iu=Ia(),M_=Kl(),D_=Xl(),B_=eu(),Mi=ru(),tt=Me();async function Di(e,t){vt(e);let r=Bi(e,M_.default,t),n=await Promise.all(r);return tt.array.flatten(n)}(function(e){function t(o,a){vt(o);let u=Bi(o,B_.default,a);return tt.array.flatten(u)}e.sync=t;function r(o,a){vt(o);let u=Bi(o,D_.default,a);return tt.stream.merge(u)}e.stream=r;function n(o,a){vt(o);let u=iu.transform([].concat(o)),c=new Mi.default(a);return nu.generate(u,c)}e.generateTasks=n;function i(o,a){vt(o);let u=new Mi.default(a);return tt.pattern.isDynamicPattern(o,u)}e.isDynamicPattern=i;function s(o){return vt(o),tt.path.escape(o)}e.escapePath=s})(Di||(Di={}));function Bi(e,t,r){let n=iu.transform([].concat(e)),i=new Mi.default(r),s=nu.generate(n,i),o=new t(i);return s.map(o.read,o)}function vt(e){if(![].concat(e).every(n=>tt.string.isString(n)&&!tt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}su.exports=Di});var au=y((Ib,Ni)=>{"use strict";l();var ou=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};Ni.exports=ou;Ni.exports.default=ou});var uu=y((Nb,qr)=>{"use strict";l();var I_=au(),Fr=new WeakMap,lu=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let r,n=0,i=e.displayName||e.name||"<anonymous>",s=function(...o){if(Fr.set(s,++n),n===1)r=e.apply(this,o),e=null;else if(t.throw===!0)throw new Error(`Function \`${i}\` can only be called once`);return r};return I_(s,e),Fr.set(s,n),s};qr.exports=lu;qr.exports.default=lu;qr.exports.callCount=e=>{if(!Fr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Fr.get(e)}});var fu=y((kb,$r)=>{l();$r.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&$r.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&$r.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var _u=y((Fb,At)=>{l();var Y=global.process,rt=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};rt(Y)?(cu=I("assert"),Rt=fu(),hu=/^win/i.test(Y.platform),Ht=I("events"),typeof Ht!="function"&&(Ht=Ht.EventEmitter),Y.__signal_exit_emitter__?te=Y.__signal_exit_emitter__:(te=Y.__signal_exit_emitter__=new Ht,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),At.exports=function(e,t){if(!rt(global.process))return function(){};cu.equal(typeof e,"function","a callback must be provided for exit handler"),wt===!1&&ki();var r="exit";t&&t.alwaysLast&&(r="afterexit");var n=function(){te.removeListener(r,e),te.listeners("exit").length===0&&te.listeners("afterexit").length===0&&jr()};return te.on(r,e),n},jr=function(){!wt||!rt(global.process)||(wt=!1,Rt.forEach(function(t){try{Y.removeListener(t,Hr[t])}catch{}}),Y.emit=Ur,Y.reallyExit=Fi,te.count-=1)},At.exports.unload=jr,nt=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Hr={},Rt.forEach(function(e){Hr[e]=function(){if(!!rt(global.process)){var r=Y.listeners(e);r.length===te.count&&(jr(),nt("exit",null,e),nt("afterexit",null,e),hu&&e==="SIGHUP"&&(e="SIGINT"),Y.kill(Y.pid,e))}}}),At.exports.signals=function(){return Rt},wt=!1,ki=function(){wt||!rt(global.process)||(wt=!0,te.count+=1,Rt=Rt.filter(function(t){try{return Y.on(t,Hr[t]),!0}catch{return!1}}),Y.emit=du,Y.reallyExit=pu)},At.exports.load=ki,Fi=Y.reallyExit,pu=function(t){!rt(global.process)||(Y.exitCode=t||0,nt("exit",Y.exitCode,null),nt("afterexit",Y.exitCode,null),Fi.call(Y,Y.exitCode))},Ur=Y.emit,du=function(t,r){if(t==="exit"&&rt(global.process)){r!==void 0&&(Y.exitCode=r);var n=Ur.apply(this,arguments);return nt("exit",Y.exitCode,null),nt("afterexit",Y.exitCode,null),n}else return Ur.apply(this,arguments)}):At.exports=function(){return function(){}};var cu,Rt,hu,Ht,te,jr,nt,Hr,wt,ki,Fi,pu,Ur,du});var xu=y((Gb,F_)=>{F_.exports={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}});var vu=y((Wb,Su)=>{"use strict";l();var Wr=Object.assign({},xu()),Eu=Object.keys(Wr);Object.defineProperty(Wr,"random",{get(){let e=Math.floor(Math.random()*Eu.length),t=Eu[e];return Wr[t]}});Su.exports=Wr});var Ru=y((zb,Vr)=>{l();var H_=function(){"use strict";function e(o,a,u,c){var f;typeof a=="object"&&(u=a.depth,c=a.prototype,f=a.filter,a=a.circular);var d=[],h=[],v=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof u>"u"&&(u=1/0);function x(b,w){if(b===null)return null;if(w==0)return b;var R,D;if(typeof b!="object")return b;if(e.__isArray(b))R=[];else if(e.__isRegExp(b))R=new RegExp(b.source,s(b)),b.lastIndex&&(R.lastIndex=b.lastIndex);else if(e.__isDate(b))R=new Date(b.getTime());else{if(v&&Buffer.isBuffer(b))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(b.length):R=new Buffer(b.length),b.copy(R),R;typeof c>"u"?(D=Object.getPrototypeOf(b),R=Object.create(D)):(R=Object.create(c),D=c)}if(a){var N=d.indexOf(b);if(N!=-1)return h[N];d.push(b),h.push(R)}for(var z in b){var O;D&&(O=Object.getOwnPropertyDescriptor(D,z)),!(O&&O.set==null)&&(R[z]=x(b[z],w-1))}return R}return x(o,u)}e.clonePrototype=function(a){if(a===null)return null;var u=function(){};return u.prototype=a,new u};function t(o){return Object.prototype.toString.call(o)}e.__objToStr=t;function r(o){return typeof o=="object"&&t(o)==="[object Date]"}e.__isDate=r;function n(o){return typeof o=="object"&&t(o)==="[object Array]"}e.__isArray=n;function i(o){return typeof o=="object"&&t(o)==="[object RegExp]"}e.__isRegExp=i;function s(o){var a="";return o.global&&(a+="g"),o.ignoreCase&&(a+="i"),o.multiline&&(a+="m"),a}return e.__getRegExpFlags=s,e}();typeof Vr=="object"&&Vr.exports&&(Vr.exports=H_)});var Au=y((ex,wu)=>{l();var U_=Ru();wu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=U_(t[r]))}),e}});var Cu=y((tx,Tu)=>{l();Tu.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var Mu=y((rx,Hi)=>{"use strict";l();var G_=Au(),Wt=Cu(),Pu={nul:0,control:0};Hi.exports=function(t){return Lu(t,Pu)};Hi.exports.config=function(e){return e=G_(e||{},Pu),function(r){return Lu(r,e)}};function Lu(e,t){if(typeof e!="string")return Ou(e,t);for(var r=0,n=0;n<e.length;n++){var i=Ou(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Ou(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:W_(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}function W_(e){var t=0,r=Wt.length-1,n;if(e<Wt[0][0]||e>Wt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Wt[n][1])t=n+1;else if(e<Wt[n][0])r=n-1;else return!0;return!1}});var Gi=y((ix,Du)=>{l();Du.exports=I("stream")});var ku=y((sx,Nu)=>{"use strict";l();function Bu(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function V_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bu(Object(r),!0).forEach(function(n){Y_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bu(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Y_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Iu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Q_(e,t,r){return t&&Iu(e.prototype,t),r&&Iu(e,r),e}var X_=I("buffer"),Yr=X_.Buffer,J_=I("util"),Wi=J_.inspect,Z_=Wi&&Wi.custom||"inspect";function z_(e,t,r){Yr.prototype.copy.call(e,t,r)}Nu.exports=function(){function e(){K_(this,e),this.head=null,this.tail=null,this.length=0}return Q_(e,[{key:"push",value:function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length}},{key:"unshift",value:function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var n=this.head,i=""+n.data;n=n.next;)i+=r+n.data;return i}},{key:"concat",value:function(r){if(this.length===0)return Yr.alloc(0);for(var n=Yr.allocUnsafe(r>>>0),i=this.head,s=0;i;)z_(i.data,n,s),s+=i.data.length,i=i.next;return n}},{key:"consume",value:function(r,n){var i;return r<this.head.data.length?(i=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?i=this.shift():i=n?this._getString(r):this._getBuffer(r),i}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(r){var n=this.head,i=1,s=n.data;for(r-=s.length;n=n.next;){var o=n.data,a=r>o.length?o.length:r;if(a===o.length?s+=o:s+=o.slice(0,r),r-=a,r===0){a===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(a));break}++i}return this.length-=i,s}},{key:"_getBuffer",value:function(r){var n=Yr.allocUnsafe(r),i=this.head,s=1;for(i.data.copy(n),r-=i.data.length;i=i.next;){var o=i.data,a=r>o.length?o.length:r;if(o.copy(n,n.length-r,0,a),r-=a,r===0){a===o.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=o.slice(a));break}++s}return this.length-=s,n}},{key:Z_,value:function(r,n){return Wi(this,V_({},n,{depth:0,customInspect:!1}))}}]),e}()});var Yi=y((ox,qu)=>{"use strict";l();function eg(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Vi,this,e)):process.nextTick(Vi,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?r._writableState?r._writableState.errorEmitted?process.nextTick(Kr,r):(r._writableState.errorEmitted=!0,process.nextTick(Fu,r,s)):process.nextTick(Fu,r,s):t?(process.nextTick(Kr,r),t(s)):process.nextTick(Kr,r)}),this)}function Fu(e,t){Vi(e,t),Kr(e)}function Kr(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function tg(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Vi(e,t){e.emit("error",t)}function rg(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}qu.exports={destroy:eg,undestroy:tg,errorOrDestroy:rg}});var Ge=y((ax,Hu)=>{"use strict";l();var ju={};function de(e,t,r){r||(r=Error);function n(s,o,a){return typeof t=="string"?t:t(s,o,a)}class i extends r{constructor(o,a,u){super(n(o,a,u))}}i.prototype.name=r.name,i.prototype.code=e,ju[e]=i}function $u(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(n=>String(n)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function ng(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function ig(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function sg(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}de("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);de("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&ng(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(ig(e," argument"))i=`The ${e} ${n} ${$u(t,"type")}`;else{let s=sg(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${$u(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);de("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");de("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});de("ERR_STREAM_PREMATURE_CLOSE","Premature close");de("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});de("ERR_MULTIPLE_CALLBACK","Callback called multiple times");de("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");de("ERR_STREAM_WRITE_AFTER_END","write after end");de("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);de("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);de("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Hu.exports.codes=ju});var Ki=y((lx,Uu)=>{"use strict";l();var og=Ge().codes.ERR_INVALID_OPT_VALUE;function ag(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function lg(e,t,r,n){var i=ag(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new og(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}Uu.exports={getHighWaterMark:lg}});var Gu=y((ux,Qi)=>{l();typeof Object.create=="function"?Qi.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qi.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var it=y((fx,Ji)=>{l();try{if(Xi=I("util"),typeof Xi.inherits!="function")throw"";Ji.exports=Xi.inherits}catch{Ji.exports=Gu()}var Xi});var Vu=y((cx,Wu)=>{l();Wu.exports=I("util").deprecate});var es=y((hx,Zu)=>{"use strict";l();Zu.exports=Q;function Ku(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Ig(t,e)}}var Ct;Q.WritableState=Yt;var ug={deprecate:Vu()},Qu=Gi(),Xr=I("buffer").Buffer,fg=global.Uint8Array||function(){};function cg(e){return Xr.from(e)}function hg(e){return Xr.isBuffer(e)||e instanceof fg}var zi=Yi(),pg=Ki(),dg=pg.getHighWaterMark,We=Ge().codes,_g=We.ERR_INVALID_ARG_TYPE,gg=We.ERR_METHOD_NOT_IMPLEMENTED,mg=We.ERR_MULTIPLE_CALLBACK,yg=We.ERR_STREAM_CANNOT_PIPE,bg=We.ERR_STREAM_DESTROYED,xg=We.ERR_STREAM_NULL_VALUES,Eg=We.ERR_STREAM_WRITE_AFTER_END,Sg=We.ERR_UNKNOWN_ENCODING,Ot=zi.errorOrDestroy;it()(Q,Qu);function vg(){}function Yt(e,t,r){Ct=Ct||st(),e=e||{},typeof r!="boolean"&&(r=t instanceof Ct),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=dg(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var n=e.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(i){Pg(t,i)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ku(this)}Yt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Yt.prototype,"buffer",{get:ug.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var Qr;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Qr=Function.prototype[Symbol.hasInstance],Object.defineProperty(Q,Symbol.hasInstance,{value:function(t){return Qr.call(this,t)?!0:this!==Q?!1:t&&t._writableState instanceof Yt}})):Qr=function(t){return t instanceof this};function Q(e){Ct=Ct||st();var t=this instanceof Ct;if(!t&&!Qr.call(Q,this))return new Q(e);this._writableState=new Yt(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Qu.call(this)}Q.prototype.pipe=function(){Ot(this,new yg)};function Rg(e,t){var r=new Eg;Ot(e,r),process.nextTick(t,r)}function wg(e,t,r,n){var i;return r===null?i=new xg:typeof r!="string"&&!t.objectMode&&(i=new _g("chunk",["string","Buffer"],r)),i?(Ot(e,i),process.nextTick(n,i),!1):!0}Q.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&hg(e);return s&&!Xr.isBuffer(e)&&(e=cg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=vg),n.ending?Rg(this,r):(s||wg(this,n,e,r))&&(n.pendingcb++,i=Tg(this,n,s,e,t,r)),i};Q.prototype.cork=function(){this._writableState.corked++};Q.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Xu(this,e))};Q.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new Sg(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Q.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function Ag(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=Xr.from(t,r)),t}Object.defineProperty(Q.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Tg(e,t,r,n,i,s){if(!r){var o=Ag(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Zi(e,t,!1,a,n,i,s);return u}function Zi(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new bg("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function Cg(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Vt,e,t),e._writableState.errorEmitted=!0,Ot(e,n)):(i(n),e._writableState.errorEmitted=!0,Ot(e,n),Vt(e,t))}function Og(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function Pg(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new mg;if(Og(r),t)Cg(e,r,n,t,i);else{var s=Ju(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Xu(e,r),n?process.nextTick(Yu,e,r,s,i):Yu(e,r,s,i)}}function Yu(e,t,r,n){r||Lg(e,t),t.pendingcb--,n(),Vt(e,t)}function Lg(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Xu(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var o=0,a=!0;r;)i[o]=r,r.isBuf||(a=!1),r=r.next,o+=1;i.allBuffers=a,Zi(e,t,!0,t.length,i,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new Ku(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,c=r.encoding,f=r.callback,d=t.objectMode?1:u.length;if(Zi(e,t,!1,d,u,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}Q.prototype._write=function(e,t,r){r(new gg("_write()"))};Q.prototype._writev=null;Q.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||Bg(this,n,r),this};Object.defineProperty(Q.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Ju(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function Mg(e,t){e._final(function(r){t.pendingcb--,r&&Ot(e,r),t.prefinished=!0,e.emit("prefinish"),Vt(e,t)})}function Dg(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(Mg,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Vt(e,t){var r=Ju(t);if(r&&(Dg(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}function Bg(e,t,r){t.ending=!0,Vt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function Ig(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});Q.prototype.destroy=zi.destroy;Q.prototype._undestroy=zi.undestroy;Q.prototype._destroy=function(e,t){t(e)}});var st=y((px,ef)=>{"use strict";l();var Ng=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};ef.exports=Ce;var zu=ns(),rs=es();it()(Ce,zu);for(ts=Ng(rs.prototype),Jr=0;Jr<ts.length;Jr++)Zr=ts[Jr],Ce.prototype[Zr]||(Ce.prototype[Zr]=rs.prototype[Zr]);var ts,Zr,Jr;function Ce(e){if(!(this instanceof Ce))return new Ce(e);zu.call(this,e),rs.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",kg)))}Object.defineProperty(Ce.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Ce.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Ce.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function kg(){this._writableState.ended||process.nextTick(Fg,this)}function Fg(e){e.end()}Object.defineProperty(Ce.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)}})});var nf=y((is,rf)=>{l();var zr=I("buffer"),Oe=zr.Buffer;function tf(e,t){for(var r in e)t[r]=e[r]}Oe.from&&Oe.alloc&&Oe.allocUnsafe&&Oe.allocUnsafeSlow?rf.exports=zr:(tf(zr,is),is.Buffer=ot);function ot(e,t,r){return Oe(e,t,r)}ot.prototype=Object.create(Oe.prototype);tf(Oe,ot);ot.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return Oe(e,t,r)};ot.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=Oe(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ot.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Oe(e)};ot.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return zr.SlowBuffer(e)}});var as=y(of=>{"use strict";l();var os=nf().Buffer,sf=os.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function qg(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function $g(e){var t=qg(e);if(typeof t!="string"&&(os.isEncoding===sf||!sf(e)))throw new Error("Unknown encoding: "+e);return t||e}of.StringDecoder=Kt;function Kt(e){this.encoding=$g(e);var t;switch(this.encoding){case"utf16le":this.text=Vg,this.end=Yg,t=4;break;case"utf8":this.fillLast=Ug,t=4;break;case"base64":this.text=Kg,this.end=Qg,t=3;break;default:this.write=Xg,this.end=Jg;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=os.allocUnsafe(t)}Kt.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};Kt.prototype.end=Wg;Kt.prototype.text=Gg;Kt.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function ss(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function jg(e,t,r){var n=t.length-1;if(n<r)return 0;var i=ss(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=ss(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=ss(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Hg(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function Ug(e){var t=this.lastTotal-this.lastNeed,r=Hg(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function Gg(e,t){var r=jg(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function Wg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function Vg(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Yg(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Kg(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Qg(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Xg(e){return e.toString(this.encoding)}function Jg(e){return e&&e.length?this.write(e):""}});var en=y((_x,uf)=>{"use strict";l();var af=Ge().codes.ERR_STREAM_PREMATURE_CLOSE;function Zg(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function zg(){}function e0(e){return e.setHeader&&typeof e.abort=="function"}function lf(e,t,r){if(typeof t=="function")return lf(e,null,t);t||(t={}),r=Zg(r||zg);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,s=function(){e.writable||a()},o=e._writableState&&e._writableState.finished,a=function(){i=!1,o=!0,n||r.call(e)},u=e._readableState&&e._readableState.endEmitted,c=function(){n=!1,u=!0,i||r.call(e)},f=function(x){r.call(e,x)},d=function(){var x;if(n&&!u)return(!e._readableState||!e._readableState.ended)&&(x=new af),r.call(e,x);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(x=new af),r.call(e,x)},h=function(){e.req.on("finish",a)};return e0(e)?(e.on("complete",a),e.on("abort",d),e.req?h():e.on("request",h)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",c),e.on("finish",a),t.error!==!1&&e.on("error",f),e.on("close",d),function(){e.removeListener("complete",a),e.removeListener("abort",d),e.removeListener("request",h),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",c),e.removeListener("error",f),e.removeListener("close",d)}}uf.exports=lf});var cf=y((gx,ff)=>{"use strict";l();var tn;function Ve(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var t0=en(),Ye=Symbol("lastResolve"),at=Symbol("lastReject"),Qt=Symbol("error"),rn=Symbol("ended"),lt=Symbol("lastPromise"),ls=Symbol("handlePromise"),ut=Symbol("stream");function Ke(e,t){return{value:e,done:t}}function r0(e){var t=e[Ye];if(t!==null){var r=e[ut].read();r!==null&&(e[lt]=null,e[Ye]=null,e[at]=null,t(Ke(r,!1)))}}function n0(e){process.nextTick(r0,e)}function i0(e,t){return function(r,n){e.then(function(){if(t[rn]){r(Ke(void 0,!0));return}t[ls](r,n)},n)}}var s0=Object.getPrototypeOf(function(){}),o0=Object.setPrototypeOf((tn={get stream(){return this[ut]},next:function(){var t=this,r=this[Qt];if(r!==null)return Promise.reject(r);if(this[rn])return Promise.resolve(Ke(void 0,!0));if(this[ut].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Qt]?a(t[Qt]):o(Ke(void 0,!0))})});var n=this[lt],i;if(n)i=new Promise(i0(n,this));else{var s=this[ut].read();if(s!==null)return Promise.resolve(Ke(s,!1));i=new Promise(this[ls])}return this[lt]=i,i}},Ve(tn,Symbol.asyncIterator,function(){return this}),Ve(tn,"return",function(){var t=this;return new Promise(function(r,n){t[ut].destroy(null,function(i){if(i){n(i);return}r(Ke(void 0,!0))})})}),tn),s0),a0=function(t){var r,n=Object.create(o0,(r={},Ve(r,ut,{value:t,writable:!0}),Ve(r,Ye,{value:null,writable:!0}),Ve(r,at,{value:null,writable:!0}),Ve(r,Qt,{value:null,writable:!0}),Ve(r,rn,{value:t._readableState.endEmitted,writable:!0}),Ve(r,ls,{value:function(s,o){var a=n[ut].read();a?(n[lt]=null,n[Ye]=null,n[at]=null,s(Ke(a,!1))):(n[Ye]=s,n[at]=o)},writable:!0}),r));return n[lt]=null,t0(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[at];s!==null&&(n[lt]=null,n[Ye]=null,n[at]=null,s(i)),n[Qt]=i;return}var o=n[Ye];o!==null&&(n[lt]=null,n[Ye]=null,n[at]=null,o(Ke(void 0,!0))),n[rn]=!0}),t.on("readable",n0.bind(null,n)),n};ff.exports=a0});var _f=y((mx,df)=>{"use strict";l();function hf(e,t,r,n,i,s,o){try{var a=e[s](o),u=a.value}catch(c){r(c);return}a.done?t(u):Promise.resolve(u).then(n,i)}function l0(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(u){hf(s,n,i,o,a,"next",u)}function a(u){hf(s,n,i,o,a,"throw",u)}o(void 0)})}}function pf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pf(Object(r),!0).forEach(function(n){f0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function f0(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c0=Ge().codes.ERR_INVALID_ARG_TYPE;function h0(e,t,r){var n;if(t&&typeof t.next=="function")n=t;else if(t&&t[Symbol.asyncIterator])n=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])n=t[Symbol.iterator]();else throw new c0("iterable",["Iterable"],t);var i=new e(u0({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=l0(function*(){try{var u=yield n.next(),c=u.value,f=u.done;f?i.push(null):i.push(yield c)?o():s=!1}catch(d){i.destroy(d)}}),a.apply(this,arguments)}return i}df.exports=h0});var ns=y((bx,wf)=>{"use strict";l();wf.exports=k;var Pt;k.ReadableState=bf;var yx=I("events").EventEmitter,yf=function(t,r){return t.listeners(r).length},Jt=Gi(),nn=I("buffer").Buffer,p0=global.Uint8Array||function(){};function d0(e){return nn.from(e)}function _0(e){return nn.isBuffer(e)||e instanceof p0}var us=I("util"),M;us&&us.debuglog?M=us.debuglog("stream"):M=function(){};var g0=ku(),gs=Yi(),m0=Ki(),y0=m0.getHighWaterMark,sn=Ge().codes,b0=sn.ERR_INVALID_ARG_TYPE,x0=sn.ERR_STREAM_PUSH_AFTER_EOF,E0=sn.ERR_METHOD_NOT_IMPLEMENTED,S0=sn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,Lt,fs,cs;it()(k,Jt);var Xt=gs.errorOrDestroy,hs=["error","close","destroy","pause","resume"];function v0(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function bf(e,t,r){Pt=Pt||st(),e=e||{},typeof r!="boolean"&&(r=t instanceof Pt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y0(this,e,"readableHighWaterMark",r),this.buffer=new g0,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Lt||(Lt=as().StringDecoder),this.decoder=new Lt(e.encoding),this.encoding=e.encoding)}function k(e){if(Pt=Pt||st(),!(this instanceof k))return new k(e);var t=this instanceof Pt;this._readableState=new bf(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Jt.call(this)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});k.prototype.destroy=gs.destroy;k.prototype._undestroy=gs.undestroy;k.prototype._destroy=function(e,t){t(e)};k.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=nn.from(e,t),t=""),n=!0),xf(this,e,t,!1,n)};k.prototype.unshift=function(e){return xf(this,e,null,!0,!1)};function xf(e,t,r,n,i){M("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,A0(e,s);else{var o;if(i||(o=R0(s,t)),o)Xt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==nn.prototype&&(t=d0(t)),n)s.endEmitted?Xt(e,new S0):ps(e,s,t,!0);else if(s.ended)Xt(e,new x0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?ps(e,s,t,!1):_s(e,s)):ps(e,s,t,!1)}else n||(s.reading=!1,_s(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function ps(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&on(e)),_s(e,t)}function R0(e,t){var r;return!_0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new b0("chunk",["string","Buffer","Uint8Array"],t)),r}k.prototype.isPaused=function(){return this._readableState.flowing===!1};k.prototype.setEncoding=function(e){Lt||(Lt=as().StringDecoder);var t=new Lt(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,n="";r!==null;)n+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),n!==""&&this._readableState.buffer.push(n),this._readableState.length=n.length,this};var gf=1073741824;function w0(e){return e>=gf?e=gf:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function mf(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=w0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}k.prototype.read=function(e){M("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return M("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?ds(this):on(this),null;if(e=mf(e,t),e===0&&t.ended)return t.length===0&&ds(this),null;var n=t.needReadable;M("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,M("length less than watermark",n)),t.ended||t.reading?(n=!1,M("reading or ended",n)):n&&(M("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=mf(r,t)));var i;return e>0?i=vf(e,t):i=null,i===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&ds(this)),i!==null&&this.emit("data",i),i};function A0(e,t){if(M("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?on(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Ef(e)))}}function on(e){var t=e._readableState;M("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(M("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Ef,e))}function Ef(e){var t=e._readableState;M("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,ms(e)}function _s(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(T0,e,t))}function T0(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(M("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}k.prototype._read=function(e){Xt(this,new E0("_read()"))};k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,M("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:b;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(w,R){M("onunpipe"),w===r&&R&&R.hasUnpiped===!1&&(R.hasUnpiped=!0,f())}function a(){M("onend"),e.end()}var u=C0(r);e.on("drain",u);var c=!1;function f(){M("cleanup"),e.removeListener("close",v),e.removeListener("finish",x),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",b),r.removeListener("data",d),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&u()}r.on("data",d);function d(w){M("ondata");var R=e.write(w);M("dest.write",R),R===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Rf(n.pipes,e)!==-1)&&!c&&(M("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(w){M("onerror",w),b(),e.removeListener("error",h),yf(e,"error")===0&&Xt(e,w)}v0(e,"error",h);function v(){e.removeListener("finish",x),b()}e.once("close",v);function x(){M("onfinish"),e.removeListener("close",v),b()}e.once("finish",x);function b(){M("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(M("pipe resume"),r.resume()),e};function C0(e){return function(){var r=e._readableState;M("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&yf(e,"data")&&(r.flowing=!0,ms(e))}}k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Rf(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};k.prototype.on=function(e,t){var r=Jt.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,M("on readable",n.length,n.reading),n.length?on(this):n.reading||process.nextTick(O0,this)),r};k.prototype.addListener=k.prototype.on;k.prototype.removeListener=function(e,t){var r=Jt.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(Sf,this),r};k.prototype.removeAllListeners=function(e){var t=Jt.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Sf,this),t};function Sf(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function O0(e){M("readable nexttick read 0"),e.read(0)}k.prototype.resume=function(){var e=this._readableState;return e.flowing||(M("resume"),e.flowing=!e.readableListening,P0(this,e)),e.paused=!1,this};function P0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(L0,e,t))}function L0(e,t){M("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),ms(e),t.flowing&&!t.reading&&e.read(0)}k.prototype.pause=function(){return M("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(M("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function ms(e){var t=e._readableState;for(M("flow",t.flowing);t.flowing&&e.read()!==null;);}k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(M("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(M("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<hs.length;s++)e.on(hs[s],this.emit.bind(this,hs[s]));return this._read=function(o){M("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return fs===void 0&&(fs=cf()),fs(this)});Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});k._fromList=vf;Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function vf(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function ds(e){var t=e._readableState;M("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(M0,t,e))}function M0(e,t){if(M("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(k.from=function(e,t){return cs===void 0&&(cs=_f()),cs(k,e,t)});function Rf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var ys=y((xx,Tf)=>{"use strict";l();Tf.exports=Be;var an=Ge().codes,D0=an.ERR_METHOD_NOT_IMPLEMENTED,B0=an.ERR_MULTIPLE_CALLBACK,I0=an.ERR_TRANSFORM_ALREADY_TRANSFORMING,N0=an.ERR_TRANSFORM_WITH_LENGTH_0,ln=st();it()(Be,ln);function k0(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new B0);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function Be(e){if(!(this instanceof Be))return new Be(e);ln.call(this,e),this._transformState={afterTransform:k0.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",F0)}function F0(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Af(e,t,r)}):Af(this,null,null)}Be.prototype.push=function(e,t){return this._transformState.needTransform=!1,ln.prototype.push.call(this,e,t)};Be.prototype._transform=function(e,t,r){r(new D0("_transform()"))};Be.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};Be.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Be.prototype._destroy=function(e,t){ln.prototype._destroy.call(this,e,function(r){t(r)})};function Af(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new N0;if(e._transformState.transforming)throw new I0;return e.push(null)}});var Pf=y((Ex,Of)=>{"use strict";l();Of.exports=Zt;var Cf=ys();it()(Zt,Cf);function Zt(e){if(!(this instanceof Zt))return new Zt(e);Cf.call(this,e)}Zt.prototype._transform=function(e,t,r){r(null,e)}});var If=y((Sx,Bf)=>{"use strict";l();var bs;function q0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Df=Ge().codes,$0=Df.ERR_MISSING_ARGS,j0=Df.ERR_STREAM_DESTROYED;function Lf(e){if(e)throw e}function H0(e){return e.setHeader&&typeof e.abort=="function"}function U0(e,t,r,n){n=q0(n);var i=!1;e.on("close",function(){i=!0}),bs===void 0&&(bs=en()),bs(e,{readable:t,writable:r},function(o){if(o)return n(o);i=!0,n()});var s=!1;return function(o){if(!i&&!s){if(s=!0,H0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new j0("pipe"))}}}function Mf(e){e()}function G0(e,t){return e.pipe(t)}function W0(e){return!e.length||typeof e[e.length-1]!="function"?Lf:e.pop()}function V0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=W0(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new $0("streams");var i,s=t.map(function(o,a){var u=a<t.length-1,c=a>0;return U0(o,u,c,function(f){i||(i=f),f&&s.forEach(Mf),!u&&(s.forEach(Mf),n(i))})});return t.reduce(G0)}Bf.exports=V0});var Nf=y((_e,er)=>{l();var zt=I("stream");process.env.READABLE_STREAM==="disable"&&zt?(er.exports=zt.Readable,Object.assign(er.exports,zt),er.exports.Stream=zt):(_e=er.exports=ns(),_e.Stream=zt||_e,_e.Readable=_e,_e.Writable=es(),_e.Duplex=st(),_e.Transform=ys(),_e.PassThrough=Pf(),_e.finished=en(),_e.pipeline=If())});var qf=y((vx,Ff)=>{"use strict";l();var{Buffer:be}=I("buffer"),kf=Symbol.for("BufferList");function G(e){if(!(this instanceof G))return new G(e);G._init.call(this,e)}G._init=function(t){Object.defineProperty(this,kf,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};G.prototype._new=function(t){return new G(t)};G.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};G.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};G.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};G.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};G.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||be.alloc(0);let s=!!t,o=this._offset(n),a=i-n,u=a,c=s&&r||0,f=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:be.concat(this._bufs,this.length);for(let d=0;d<this._bufs.length;d++)this._bufs[d].copy(t,c),c+=this._bufs[d].length;return t}if(u<=this._bufs[o[0]].length-f)return s?this._bufs[o[0]].copy(t,r,f,f+u):this._bufs[o[0]].slice(f,f+u);s||(t=be.allocUnsafe(a));for(let d=o[0];d<this._bufs.length;d++){let h=this._bufs[d].length-f;if(u>h)this._bufs[d].copy(t,c,f),c+=h;else{this._bufs[d].copy(t,c,f,f+u),c+=h;break}u-=h,f&&(f=0)}return t.length>c?t.slice(0,c):t};G.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};G.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};G.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};G.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};G.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(be.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(be.from(t));return this};G.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};G.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=be.from([e]):typeof e=="string"?e=be.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=be.from(e.buffer,e.byteOffset,e.byteLength):be.isBuffer(e)||(e=be.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let u=o.indexOf(e,s);if(u!==-1)return this._reverseOffset([i,u]);s=o.length-e.length+1}else{let u=this._reverseOffset([i,s]);if(this._match(u,e))return u;s++}s=0}return-1};G.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?G.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:G.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();G.prototype._isBufferList=function(t){return t instanceof G||G.isBufferList(t)};G.isBufferList=function(t){return t!=null&&t[kf]};Ff.exports=G});var $f=y((Rx,un)=>{"use strict";l();var xs=Nf().Duplex,Y0=it(),tr=qf();function ie(e){if(!(this instanceof ie))return new ie(e);if(typeof e=="function"){this._callback=e;let t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)}),e=null}tr._init.call(this,e),xs.call(this)}Y0(ie,xs);Object.assign(ie.prototype,tr.prototype);ie.prototype._new=function(t){return new ie(t)};ie.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};ie.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};ie.prototype.end=function(t){xs.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};ie.prototype._destroy=function(t,r){this._bufs.length=0,this.length=0,r(t)};ie.prototype._isBufferList=function(t){return t instanceof ie||t instanceof tr||ie.isBufferList(t)};ie.isBufferList=tr.isBufferList;un.exports=ie;un.exports.BufferListStream=ie;un.exports.BufferList=tr});l();import{dirname as fc,extname as Wm,isAbsolute as Vm,resolve as Ym,resolve as yn}from"path";import{build as Is,transform as Km}from"esbuild";import{constants as Qm,copyFileSync as Xm,existsSync as cc,mkdirSync as Jm,readFileSync as ks,rmSync as sc,writeFileSync as hc}from"fs";l();l();var Fs=(e=0)=>t=>`\x1B[${t+e}m`,qs=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,$s=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function vc(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Fs(),t.color.ansi256=qs(),t.color.ansi16m=$s(),t.bgColor.ansi=Fs(10),t.bgColor.ansi256=qs(10),t.bgColor.ansi16m=$s(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var Rc=vc(),ye=Rc;l();import En from"node:process";import wc from"node:os";import js from"node:tty";function ce(e,t=En.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:J}=En,fr;ce("no-color")||ce("no-colors")||ce("color=false")||ce("color=never")?fr=0:(ce("color")||ce("colors")||ce("color=true")||ce("color=always"))&&(fr=1);function Ac(){if("FORCE_COLOR"in J)return J.FORCE_COLOR==="true"?1:J.FORCE_COLOR==="false"?0:J.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(J.FORCE_COLOR,10),3)}function Tc(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Cc(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=Ac();n!==void 0&&(fr=n);let i=r?fr:n;if(i===0)return 0;if(r){if(ce("color=16m")||ce("color=full")||ce("color=truecolor"))return 3;if(ce("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(J.TERM==="dumb")return s;if(En.platform==="win32"){let o=wc.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in J)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in J)||J.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in J)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(J.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in J&&"AGENT_NAME"in J)return 1;if(J.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in J){let o=Number.parseInt((J.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(J.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(J.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(J.TERM)||"COLORTERM"in J?1:s}function Hs(e,t={}){let r=Cc(e,{streamIsTTY:e&&e.isTTY,...t});return Tc(r)}var Oc={stdout:Hs({isTTY:js.isatty(1)}),stderr:Hs({isTTY:js.isatty(2)})},Us=Oc;l();function Gs(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function Ws(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
6
+ `:`
7
+ `)+r,i=n+1,n=e.indexOf(`
8
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Vs,stderr:Ys}=Us,Sn=Symbol("GENERATOR"),ht=Symbol("STYLER"),Nt=Symbol("IS_EMPTY"),Ks=["ansi","ansi","ansi256","ansi16m"],pt=Object.create(null),Pc=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Vs?Vs.level:0;e.level=t.level===void 0?r:t.level};var Lc=e=>{let t=(...r)=>r.join(" ");return Pc(t,e),Object.setPrototypeOf(t,kt.prototype),t};function kt(e){return Lc(e)}Object.setPrototypeOf(kt.prototype,Function.prototype);for(let[e,t]of Object.entries(ye))pt[e]={get(){let r=cr(this,Rn(t.open,t.close,this[ht]),this[Nt]);return Object.defineProperty(this,e,{value:r}),r}};pt.visible={get(){let e=cr(this,this[ht],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var vn=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ye[r].ansi16m(...n):t==="ansi256"?ye[r].ansi256(ye.rgbToAnsi256(...n)):ye[r].ansi(ye.rgbToAnsi(...n)):e==="hex"?vn("rgb",t,r,...ye.hexToRgb(...n)):ye[r][e](...n),Mc=["rgb","hex","ansi256"];for(let e of Mc){pt[e]={get(){let{level:r}=this;return function(...n){let i=Rn(vn(e,Ks[r],"color",...n),ye.color.close,this[ht]);return cr(this,i,this[Nt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);pt[t]={get(){let{level:r}=this;return function(...n){let i=Rn(vn(e,Ks[r],"bgColor",...n),ye.bgColor.close,this[ht]);return cr(this,i,this[Nt])}}}}var Dc=Object.defineProperties(()=>{},{...pt,level:{enumerable:!0,get(){return this[Sn].level},set(e){this[Sn].level=e}}}),Rn=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},cr=(e,t,r)=>{let n=(...i)=>Bc(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,Dc),n[Sn]=e,n[ht]=t,n[Nt]=r,n},Bc=(e,t)=>{if(e.level<=0||!t)return e[Nt]?"":t;let r=e[ht];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Gs(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
+ `);return s!==-1&&(t=Ws(t,i,n,s)),n+t+i};Object.defineProperties(kt.prototype,pt);var Ic=kt(),dy=kt({level:Ys?Ys.level:0});var H=Ic;var Ns=Xe(Ii(),1);import{env as oc}from"process";l();import fn from"node:process";l();import bu from"node:process";l();var gu=Xe(uu(),1),mu=Xe(_u(),1);import N_ from"node:process";var k_=(0,gu.default)(()=>{(0,mu.default)(()=>{N_.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),yu=k_;var Gr=!1,Tt={};Tt.show=(e=bu.stderr)=>{!e.isTTY||(Gr=!1,e.write("\x1B[?25h"))};Tt.hide=(e=bu.stderr)=>{!e.isTTY||(yu(),Gr=!0,e.write("\x1B[?25l"))};Tt.toggle=(e,t)=>{e!==void 0&&(Gr=e),Gr?Tt.show(t):Tt.hide(t)};var qi=Tt;var rr=Xe(vu(),1);l();l();function Ut(){return process.platform!=="win32"?process.env.TERM!=="linux":Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||process.env.ConEmuTask==="{cmd::Cmder}"||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"}var q_={info:H.blue("ℹ"),success:H.green("✔"),warning:H.yellow("⚠"),error:H.red("✖")},$_={info:H.blue("i"),success:H.green("√"),warning:H.yellow("‼"),error:H.red("×")},j_=Ut()?q_:$_,Gt=j_;l();l();function $i({onlyFirst:e=!1}={}){let t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}function ji(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace($i(),"")}var Hf=Xe(Mu(),1);l();function Ui({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}l();var jf=Xe($f(),1);import xe from"node:process";import K0 from"node:readline";var Q0=3,Es=class{#r=0;#f=new jf.BufferListStream;#i;#n;constructor(){this.#f.pipe(xe.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=xe;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(Q0)&&xe.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(xe.stdin.emit,this,[r,n,...i])}}start(){this.#r++,this.#r===1&&this._realStart()}stop(){if(this.#r<=0)throw new Error("`stop` called more times than `start`");this.#r--,this.#r===0&&this._realStop()}_realStart(){xe.platform!=="win32"&&(this.#n=K0.createInterface({input:xe.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{xe.listenerCount("SIGINT")===0?xe.emit("SIGINT"):(this.#n.close(),xe.kill(xe.pid,"SIGINT"))}))}_realStop(){xe.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var cn,Uf=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#h;#a;#l;#u;#p;#s;color;constructor(t){cn||(cn=new Es),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:fn.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#h=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:Ui({stream:this.#t}),this.#l=typeof this.#e.isSilent=="boolean"?this.#e.isSilent:!1,this.text=this.#e.text,this.prefixText=this.#e.prefixText,this.indent=this.#e.indent,fn.env.NODE_ENV==="test"&&(this._stream=this.#t,this._isEnabled=this.#a,Object.defineProperty(this,"_linesToClear",{get(){return this.#r},set(r){this.#r=r}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#n}}),Object.defineProperty(this,"_lineCount",{get(){return this.#i}}))}get indent(){return this.#u}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#u=t,this.updateLineCount()}get interval(){return this.#h||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#o=t}else if(!Ut())this.#o=rr.default.line;else if(t===void 0)this.#o=rr.default.dots;else if(t!=="default"&&rr.default[t])this.#o=rr.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#p}set text(t){this.#p=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#c!==void 0}getFullPrefixText(t=this.#s,r=" "){return typeof t=="string"&&t!==""?t+r:typeof t=="function"?t()+r:""}updateLineCount(){let t=this.#t.columns||80,r=this.getFullPrefixText(this.#s,"-");this.#i=0;for(let n of ji(" ".repeat(this.#u)+r+"--"+this.#p).split(`
10
+ `))this.#i+=Math.max(1,Math.ceil((0,Hf.default)(n)/t))}get isEnabled(){return this.#a&&!this.#l}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#a=t}get isSilent(){return this.#l}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#l=t}frame(){let{frames:t}=this.#o,r=t[this.#n];this.color&&(r=H[this.color](r)),this.#n=++this.#n%t.length;let n=typeof this.#s=="string"&&this.#s!==""?this.#s+" ":"",i=typeof this.text=="string"?" "+this.text:"";return n+r+i}clear(){if(!this.#a||!this.#t.isTTY)return this;this.#t.cursorTo(0);for(let t=0;t<this.#r;t++)t>0&&this.#t.moveCursor(0,-1),this.#t.clearLine(1);return(this.#u||this.lastIndent!==this.#u)&&this.#t.cursorTo(this.#u),this.lastIndent=this.#u,this.#r=0,this}render(){return this.#l?this:(this.clear(),this.#t.write(this.frame()),this.#r=this.#i,this)}start(t){return t&&(this.text=t),this.#l?this:this.#a?this.isSpinning?this:(this.#e.hideCursor&&qi.hide(this.#t),this.#e.discardStdin&&fn.stdin.isTTY&&(this.#f=!0,cn.start()),this.render(),this.#c=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
11
+ `),this)}stop(){return this.#a?(clearInterval(this.#c),this.#c=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&qi.show(this.#t),this.#e.discardStdin&&fn.stdin.isTTY&&this.#f&&(cn.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Gt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Gt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Gt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Gt.info,text:t})}stopAndPersist(t={}){if(this.#l)return this;let r=t.prefixText||this.#s,n=t.text||this.text,i=typeof n=="string"?" "+n:"";return this.stop(),this.#t.write(`${this.getFullPrefixText(r," ")}${t.symbol||" "}${i}
12
+ `),this}};function Ie(e){return new Uf(e)}l();l();var Gf={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(Gf.NODE_ENV=e.NODE_ENV)}catch{}var Ss=Gf.NODE_ENV==="development";l();import{Console as X0}from"console";var ft=new X0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),ge=e=>{if(Ss){let{name:t}=e;return{log(...r){let n=H.bgBlue.white(` [${t}] `);ft.log(`${n}`,`
13
+
14
+ `,...r),ft.log()},group(){ft.log();let r=H.bgBlue.white(` [${t}] `);ft.group(r),ft.log()},groupEnd(){ft.log(`
15
+ `,"-".repeat(20),`
16
+ `),ft.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var Ne=(...e)=>{console.log(),console.log(...e),console.log()};l();import{spawn as J0,execSync as Z0}from"child_process";import Ts from"node:process";import tm from"node:os";import Kf from"node:tty";await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:t}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=t(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:r}=await import("module");globalThis.require=r.createRequire(import.meta.url)}})();var Wf=(e=0)=>t=>`\x1B[${t+e}m`,Vf=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Yf=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function z0(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[i,s]of Object.entries(n))t[i]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},n[i]=t[i],e.set(s[0],s[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi=Wf(),t.color.ansi256=Vf(),t.color.ansi16m=Yf(),t.bgColor.ansi=Wf(10),t.bgColor.ansi256=Vf(10),t.bgColor.ansi16m=Yf(10),Object.defineProperties(t,{rgbToAnsi256:{value:(r,n,i)=>r===n&&n===i?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5),enumerable:!1},hexToRgb:{value:r=>{let n=/(?<colorString>[a-f\d]{6}|[a-f\d]{3})/i.exec(r.toString(16));if(!n)return[0,0,0];let{colorString:i}=n.groups;i.length===3&&(i=[...i].map(o=>o+o).join(""));let s=Number.parseInt(i,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:r=>t.rgbToAnsi256(...t.hexToRgb(r)),enumerable:!1},ansi256ToAnsi:{value:r=>{if(r<8)return 30+r;if(r<16)return 90+(r-8);let n,i,s;if(r>=232)n=((r-232)*10+8)/255,i=n,s=n;else{r-=16;let u=r%36;n=Math.floor(r/36)/5,i=Math.floor(u/6)/5,s=u%6/5}let o=Math.max(n,i,s)*2;if(o===0)return 30;let a=30+(Math.round(s)<<2|Math.round(i)<<1|Math.round(n));return o===2&&(a+=60),a},enumerable:!1},rgbToAnsi:{value:(r,n,i)=>t.ansi256ToAnsi(t.rgbToAnsi256(r,n,i)),enumerable:!1},hexToAnsi:{value:r=>t.ansi256ToAnsi(t.hexToAnsi256(r)),enumerable:!1}}),t}var em=z0(),Pe=em;function me(e,t=Ts.argv){let r=e.startsWith("-")?"":e.length===1?"-":"--",n=t.indexOf(r+e),i=t.indexOf("--");return n!==-1&&(i===-1||n<i)}var{env:Z}=Ts,hn;me("no-color")||me("no-colors")||me("color=false")||me("color=never")?hn=0:(me("color")||me("colors")||me("color=true")||me("color=always"))&&(hn=1);function rm(){if("FORCE_COLOR"in Z)return Z.FORCE_COLOR==="true"?1:Z.FORCE_COLOR==="false"?0:Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}function nm(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function im(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=rm();n!==void 0&&(hn=n);let i=r?hn:n;if(i===0)return 0;if(r){if(me("color=16m")||me("color=full")||me("color=truecolor"))return 3;if(me("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(Ts.platform==="win32"){let o=tm.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in Z)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in Z)||Z.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in Z)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in Z&&"AGENT_NAME"in Z)return 1;if(Z.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Z){let o=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Z.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)||"COLORTERM"in Z?1:s}function Qf(e,t={}){let r=im(e,{streamIsTTY:e&&e.isTTY,...t});return nm(r)}var sm={stdout:Qf({isTTY:Kf.isatty(1)}),stderr:Qf({isTTY:Kf.isatty(2)})},om=sm;function am(e,t,r){let n=e.indexOf(t);if(n===-1)return e;let i=t.length,s=0,o="";do o+=e.substr(s,n-s)+t+r,s=n+i,n=e.indexOf(t,s);while(n!==-1);return o+=e.slice(s),o}function lm(e,t,r,n){let i=0,s="";do{let o=e[n-1]==="\r";s+=e.substr(i,(o?n-1:n)-i)+t+(o?`\r
17
+ `:`
18
+ `)+r,i=n+1,n=e.indexOf(`
19
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Xf,stderr:Jf}=om,vs=Symbol("GENERATOR"),Mt=Symbol("STYLER"),nr=Symbol("IS_EMPTY"),Zf=["ansi","ansi","ansi256","ansi16m"],Dt=Object.create(null),um=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=Xf?Xf.level:0;e.level=t.level===void 0?r:t.level},fm=e=>{let t=(...r)=>r.join(" ");return um(t,e),Object.setPrototypeOf(t,ir.prototype),t};function ir(e){return fm(e)}Object.setPrototypeOf(ir.prototype,Function.prototype);for(let[e,t]of Object.entries(Pe))Dt[e]={get(){let r=pn(this,ws(t.open,t.close,this[Mt]),this[nr]);return Object.defineProperty(this,e,{value:r}),r}};Dt.visible={get(){let e=pn(this,this[Mt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Rs=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Pe[r].ansi16m(...n):t==="ansi256"?Pe[r].ansi256(Pe.rgbToAnsi256(...n)):Pe[r].ansi(Pe.rgbToAnsi(...n)):e==="hex"?Rs("rgb",t,r,...Pe.hexToRgb(...n)):Pe[r][e](...n),cm=["rgb","hex","ansi256"];for(let e of cm){Dt[e]={get(){let{level:r}=this;return function(...n){let i=ws(Rs(e,Zf[r],"color",...n),Pe.color.close,this[Mt]);return pn(this,i,this[nr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Dt[t]={get(){let{level:r}=this;return function(...n){let i=ws(Rs(e,Zf[r],"bgColor",...n),Pe.bgColor.close,this[Mt]);return pn(this,i,this[nr])}}}}var hm=Object.defineProperties(()=>{},{...Dt,level:{enumerable:!0,get(){return this[vs].level},set(e){this[vs].level=e}}}),ws=(e,t,r)=>{let n,i;return r===void 0?(n=e,i=t):(n=r.openAll+e,i=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:i,parent:r}},pn=(e,t,r)=>{let n=(...i)=>pm(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,hm),n[vs]=e,n[Mt]=t,n[nr]=r,n},pm=(e,t)=>{if(e.level<=0||!t)return e[nr]?"":t;let r=e[Mt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=am(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
+ `);return s!==-1&&(t=lm(t,i,n,s)),n+t+i};Object.defineProperties(ir.prototype,Dt);var dm=ir(),Xx=ir({level:Jf?Jf.level:0}),_m=dm,gm={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},mm={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`);return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},ym=(e,t,r)=>{let n={...gm,...t},i={...mm,...r},s=a=>{let u=process.platform,c=n[u];if(c)return c(a);let[f,...d]=a.split(" ");return{cmd:f,args:d}},o=(a=>{let u=Object.entries(i);for(let[c,f]of u)if(a.startsWith(c)){let d=process.platform,h=f[d];if(!h)break;let v=a.slice(c.length).split(" ");return`${h(v)} ${a.slice(c.length)}`}return a})(e);return s(o)},bm=process.platform==="linux"||process.platform==="darwin",As=process.platform==="win32",xm={stdio:"pipe",shell:!0,detached:!As,env:process.env},Em={log:!0,commandTranslations:{},shellTranslations:{},...xm},dn=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=Em)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let u=process.platform;s.posix&&bm&&(u="posix");let c=s[u];if(!c)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=c}let{cmd:o,args:a}=ym(s,r,t);return e&&console.log(_m.dim(`
21
+ $ ${s}
22
+ `)),await new Promise((u,c)=>{i=J0(o,a,n);let f="",d="";if(!i)throw new Error("Child process was not set.");let h=v=>{i=null;let x={code:v,stdout:f,stderr:d};v===0||v===1&&!As?u(x):c(x)};i.stdout?.on("data",v=>{f+=v.toString()}),i.stderr?.on("data",v=>{d+=v.toString()}),i.on("close",h),i.on("exit",h),i.on("error",h),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(As)Z0(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};l();import{extname as tE,resolve as Cs}from"path";l();var It=/\.[mc]?tsx?(?=\?|$)/;var ct=/\.([mc])?[tj]sx$/,zf=/\.([mc])?[tj]sx?$/,Bt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},Sm={".mts":{...Bt,loader:"ts"},".jsx":{...Bt,loader:"jsx"},".tsx":{...Bt,loader:"tsx"},".cts":{...Bt,loader:"ts"},".ts":{...Bt,loader:"ts"},".json":{...Bt,loader:"json"}},Zx=Object.keys(Sm);var Os=()=>{let e=process.cwd(),t=Cs(e,"src"),r=Cs(e,"dist");return{cwd:e,srcDir:t,outDir:r}},_n=e=>{e=Cs(e);let{srcDir:t,outDir:r}=Os();return e.replace(t,r).replace(It,".js").replace(ct,".js")};l();var vm={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Ps=async()=>{let e=ge(Ps),t=dn({log:!1}),r=Object.entries(vm).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};l();import{readFileSync as Rm}from"fs";import{resolve as wm}from"path";var ec=async()=>{let e=process.cwd(),t=wm(e,"package.json");return Rm(t,"utf-8")};l();var nc=Xe(Ii(),1);import{existsSync as Dm,readFileSync as Bm,writeFileSync as Im}from"fs";import{isAbsolute as Nm,resolve as km}from"path";import{pathToFileURL as Fm}from"url";l();import{dirname as Am,normalize as Tm,posix as gn,resolve as Cm}from"path";import{existsSync as tc,readFileSync as Om}from"fs";var Pm=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],Lm=async(e,t)=>{let r=Am(Tm(t)),n=mn(Cm(r,e)),i=n.replace(gn.extname(n),"");for(let s of Pm){let o=`${i}${s}`,a=`${i}/index${s}`;if(tc(o))return o;if(tc(a))return a}},mn=e=>e.replace(/\\/g,"/"),Mm=(e,t)=>{e=mn(e),t=mn(t);let r=gn.relative(gn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},Ls=async e=>{let t=ge(Ls);t.log("Getting rewritten specifiers:",{modulePath:e}),e=mn(e);let r=[],n=new RegExp(rc,"g"),s=Om(e,"utf8").match(n);if(s)for(let o of s){let a=new RegExp(Ms),u=o.match(a);if(!u)throw t.log("No specifier match",{importStatement:o,specifierPattern:a}),new Error(`Could not identify specifier in import statement: ${o}`);let c=u[0];if(!c.startsWith(".")||gn.extname(c))continue;let f=await Lm(c,e);if(!f)throw new Error(`Could not resolve specifier "${c}" from "${e}"`);let d=Mm(e,f);r.push({specifierToReplace:c,specifierReplacement:d})}return r};var sr=`[^
23
+ \r;]*`;var qm=`(import${sr}(from)?)`,$m=`(import|require)${sr}\\(`,jm=`(export${sr}from)`;var rc=`(^|(?<=[
24
+ \r;] *))(import|export)( )*({?)[^
25
+ \r;]+(((from)[
26
+ \r; *]+)|(["'][
27
+ \r;]))`,Ms=`(?<=["'])([^
28
+ \r]+)(?=['"])`,Hm=e=>{let t=e.replace(".","\\.").replace("/","\\/"),r=`${sr}["']${t}["']${sr}`;return new RegExp(`(${qm}|${$m}|${jm})${r}`,"g")},ic=(e,t,r)=>{let n=ge(ic);n.log("Rewriting import",{importStatement:e,specifierToReplace:t,specifierReplacement:r});let i=new RegExp(Ms),s=e.match(i);if(!s)throw n.log("No specifier match",{importStatement:e,specifierPattern:i}),new Error(`Could not identify specifier in import statement: ${e}`);let o=s[0],a=o.replace(t,r).trim();return e.replace(o,a)},Ds=async(e="dist/**/*.js")=>{let t=ge(Ds),n=Nm(e)&&Dm(e)?[e]:nc.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=km(i),o=Fm(s).href,a=await Ls(s);if(!a)return null;t.log("TypeScript API yielded specifiers to rewrite:",{rewrites:a});let u=Bm(s,"utf8");t.group();for(let{specifierToReplace:c,specifierReplacement:f}of a){let d=Hm(c),h=u.match(d)??[];t.log("Replacing import statements.",{entryPointURL:o,specifierToReplace:c,specifierReplacement:f,importStatements:h});for(let v of h){t.group();let x=ic(v,c,f);t.log("Performing specifier rewrite.",{entryPointURL:o,importStatement:v,rewrittenImportStatement:x}),u=u.replace(v,x),Im(s,u),t.log("Wrote output file.",{resolvedEntryPoint:s}),t.groupEnd()}}t.groupEnd()}};l();import{readFileSync as Um}from"fs";function Gm(e){return new Promise((t,r)=>{let n=[];function i(u){n.push(u)}function s(){a(),t(Buffer.concat(n))}function o(u){a(),r(u)}function a(){e.removeListener("data",i),e.removeListener("end",s),e.removeListener("error",o)}e.on("data",i),e.on("end",s),e.on("error",o)})}var Bs=async()=>{let e=ge(Bs);e.log("Reading stdin");try{let r=Um(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return Ne(H.gray("Type your source code. Press Ctrl+D to finish.")),(await Gm(process.stdin)).toString()};var Zm=`import React from "react";
2
29
  import ReactDOM from "react-dom";
3
- `,v=t=>{const s=` ${t} `;m(r.bgBlue(r.bold(r.white(s))))},re=()=>{let t;if(M("dist/package.json")?t=JSON.parse(S("dist/package.json","utf-8")):t={},t?.module==="module")return!0;t.type="module",_("dist/package.json",JSON.stringify(t,null,2))},G=(t,s,g)=>{s=O(s);const i=j(s);return{stdin:{contents:t,sourcefile:s,resolveDir:I(s),loader:g},outdir:void 0,outfile:i}},U=async(t,s,g,i)=>{t=O(t),s=O(s);const l="npx tailwindcss",p=g?"":"-m",b="--postcss postcss.config.js",d=S(t,"utf-8"),u=i?d:`@import "@tsmodule/react";
30
+ `,ac=e=>{let t=` ${e} `;Ne(H.bgBlue(H.bold(H.white(t))))},zm=()=>{let e;if(cc("dist/package.json")?e=JSON.parse(ks("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",hc("dist/package.json",JSON.stringify(e,null,2))},lc=(e,t,r)=>{t=yn(t);let n=_n(t);return{stdin:{contents:e,sourcefile:t,resolveDir:fc(t),loader:r},outdir:void 0,outfile:n}},uc=async(e,t,r,n)=>{e=yn(e),t=yn(t);let i="npx tailwindcss",s=r?"":"-m",o="--postcss postcss.config.js",a=ks(e,"utf-8"),c=n?a:`@import "@tsmodule/react";
4
31
 
5
- ${d}`,o=j(t);_(o,u);const y=[l,p,b,`-i ${o}`,"-o",s];await Y({log:!1,stdio:"ignore"}).run(y.join(" "))},le=`
32
+ ${a}`,f=_n(e);hc(f,c);let d=[i,s,o,`-i ${f}`,"-o",t];await dn({log:!1,stdio:"ignore"}).run(d.join(" "))},ey=`
6
33
  await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
7
- `,ae=async({input:t="src/**/*",styles:s="src/components/index.css",target:g="esnext",dev:i=!1,bundle:l=!1,runtimeOnly:p=i,noWrite:b=!1,noStandardStyles:d=!1,stdin:f,stdinFile:u})=>{L.NODE_ENV=i?"development":"production";const o=Q(ae);i&&(p=!0);const{cwd:y,srcDir:C,outDir:h}=Z(),N=await se(),R=JSON.parse(N),P={treeShaking:l,target:g,minify:!i,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:i?"warning":"error",define:{PACKAGE_JSON:N,"process.env.NODE_ENV":i?JSON.stringify("development"):JSON.stringify("production")}},B={...P,bundle:l,absWorkingDir:y,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:R?.platform??"node",write:!b,external:l?["esbuild"]:void 0,banner:l?{js:le}:void 0};let w="";if(f){o.log("Building file from stdin",{stdin:f,stdinFile:u,noWrite:b}),u||(m(r.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof f=="string"&&f.length?w=f:w=await ie();const e={...P,sourcefile:u,loader:"tsx",banner:void 0,footer:void 0};if(b)return(await H(w,e)).code;{const n=G(w,u,"tsx");await J({...B,...n}),m(r.green("Successfully built stdin file to dist/.")),m(r.grey("Use --no-write to print to stdout instead."));return}}o.log("Building",{files:t,dev:i,runtimeOnly:p}),v(`${r.bold("TS Module")} [${L.NODE_ENV}]`);const a=W.sync(t,{cwd:y}).filter(e=>z(e)!==".d.ts").map(e=>O(e));if(V(t)){a.length||a.push(t);const e=t.replace(C,h).replace(k,".js").replace(x,".js");o.log("Cleaning emitted file:",{outfile:e}),A(e,{force:!0})}else o.log("Cleaning old output:",{outDir:h}),A(h,{force:!0,recursive:!0});console.log();const D=a.filter(e=>x.test(e));o.log("Compiling TSX files:",{tsxFiles:D});const q=D.filter(e=>!e.endsWith(".d.ts"));await Promise.all(q.map(async e=>{const n=S(e,"utf-8"),E=ne+n,T=G(E,e,"tsx");await J({...B,...T})})),c("Built TSX files.").succeed();const F=a.filter(e=>k.test(e)).filter(e=>!x.test(e));o.log("Compiling TS files:",{tsFiles:F}),await J({...B,entryPoints:F.filter(e=>!e.endsWith(".d.ts"))}),c("Built TS files.").succeed();const $=a.filter(e=>!ee.test(e));if(o.log("Copying non-JS/TS files.",{allFiles:a,nonJsTsFiles:$}),await Promise.all($.map(async e=>{const n=j(e);o.log("Copying non-source file:",{file:e,emittedFile:n}),K(I(n),{recursive:!0}),_(n,S(e),{encoding:"binary",flag:"w"})})),!process.env.NO_REWRITES){const e=t.replace(C,h).replace(/^(\.\/)?src\//,"dist/").replace(k,".js").replace(x,".js");o.log("Normalizing import specifiers in emitted JS.",{emittedJs:e}),await oe(e.endsWith(".js")?e:`${e}.js`),c("Normalized import specifiers.").succeed()}if(re()&&c('Forced "type": "module" in output.').succeed(),!p){if(M(X(s))){o.log("Building styles for production.");const{style:e="./dist/bundle.css"}=R;if(o.log("Building style bundle.",{bundleInput:s,bundleOutput:e,dev:i,noStandardStyles:d}),await U(s,e,i,d),l){o.log("Bundling all styles.");const n=W.sync("dist/**/*.css"),E=c("Bundled emitted styles.").start();await Promise.all(n.map(async T=>await U(T,T,i,d))),E.succeed()}c(`Bundled all styles to ${r.bold(e)}.`).succeed()}else m(r.grey("Bundle styles not found for this projected. Checked:"),{styles:s});v("Running post-build setup."),m(`Generating type declarations.
8
- This might take a moment.`),te(a),c(`Generated delcarations for ${a.length} files.`).succeed(),m(r.green("Build complete."))}};export{v as bannerLog,ae as build};
34
+ `,ty=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=n,noWrite:o=!1,noStandardStyles:a=!1,stdin:u=void 0,stdinFile:c=void 0})=>{oc.NODE_ENV=n?"development":"production";let f=ge(ty);n&&(s=!0);let{cwd:d,srcDir:h,outDir:v}=Os(),x=await ec(),b=JSON.parse(x),w={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{PACKAGE_JSON:x,"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},R={...w,bundle:i,absWorkingDir:d,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:b?.platform??"node",write:!o,external:i?["esbuild"]:void 0,banner:i?{js:ey}:void 0},D="";if(u){f.log("Building file from stdin",{stdin:u,stdinFile:c,noWrite:o}),c||(Ne(H.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof u=="string"&&u.length?D=u:D=await Bs();let A={...w,sourcefile:c,loader:"tsx",banner:void 0,footer:void 0};if(o)return(await Km(D,A)).code;{let _=lc(D,c,"tsx");await Is({...R,..._}),Ne(H.green("Successfully built stdin file to dist/.")),Ne(H.grey("Use --no-write to print to stdout instead."));return}}f.log("Building",{files:e,dev:n,runtimeOnly:s}),ac(`${H.bold("TS Module")} [${oc.NODE_ENV}]`);let N=Ns.default.sync(e,{cwd:d}).filter(A=>Wm(A)!==".d.ts").map(A=>yn(A));if(Vm(e)){N.length||N.push(e);let A=e.replace(h,v).replace(It,".js").replace(ct,".js");f.log("Cleaning emitted file:",{outfile:A}),sc(A,{force:!0})}else f.log("Cleaning old output:",{outDir:v}),sc(v,{force:!0,recursive:!0});let z=N.filter(A=>ct.test(A));f.log("Compiling TSX files:",{tsxJsxInput:z});let O=z.filter(A=>!A.endsWith(".d.ts"));await Promise.all(O.map(async A=>{let _=ks(A,"utf-8"),j=Zm+_,$=lc(j,A,"tsx");await Is({...R,...$})})),Ie("Built TSX files.").succeed();let U=N.filter(A=>It.test(A)).filter(A=>!ct.test(A));f.log("Compiling TS files:",{tsJsInput:U}),await Is({...R,entryPoints:U.filter(A=>!A.endsWith(".d.ts"))}),Ie("Built TS files.").succeed();let P=N.filter(A=>!zf.test(A));f.log("Copying non-JS/TS files.",{allFiles:N,nonTsJsInput:P});for(let A of P){let _=_n(A);f.log("Copying non-source file:",{file:A,emittedFile:_}),Jm(fc(_),{recursive:!0}),Xm(A,_,Qm.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let A=e.replace(h,v).replace(/^(\.\/)?src\//,"dist/").replace(It,".js").replace(ct,".js");f.log("Normalizing import specifiers in emitted JS.",{emittedJs:A}),await Ds(A.endsWith(".js")?A:`${A}.js`),Ie("Normalized import specifiers.").succeed()}if(zm()&&Ie('Forced "type": "module" in output.').succeed(),s)return;if(cc(Ym(t))){f.log("Building styles for production.");let{style:A="./dist/bundle.css"}=b;if(f.log("Building style bundle.",{bundleInput:t,bundleOutput:A,dev:n,noStandardStyles:a}),await uc(t,A,n,a),i){f.log("Bundling all styles.");let _=Ns.default.sync("dist/**/*.css"),j=Ie("Bundled emitted styles.").start();await Promise.all(_.map(async $=>await uc($,$,n,a))),j.succeed()}Ie(`Bundled all styles to ${H.bold(A)}.`).succeed()}else Ne(H.grey("Bundle styles not found for this projected. Checked:"),{styles:t});ac("Running post-build setup.");let q=Ie("Generating type declarations.").start();await Ps(),q.succeed(`Generated delcarations for ${N.length} files.`),Ne(H.green("Build complete."))};export{ac as bannerLog,ty as build};
35
+ /*!
36
+ * fill-range <https://github.com/jonschlinkert/fill-range>
37
+ *
38
+ * Copyright (c) 2014-present, Jon Schlinkert.
39
+ * Licensed under the MIT License.
40
+ */
41
+ /*!
42
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
43
+ *
44
+ * Copyright (c) 2014-2016, Jon Schlinkert.
45
+ * Licensed under the MIT License.
46
+ */
47
+ /*!
48
+ * is-glob <https://github.com/jonschlinkert/is-glob>
49
+ *
50
+ * Copyright (c) 2014-2017, Jon Schlinkert.
51
+ * Released under the MIT License.
52
+ */
53
+ /*!
54
+ * is-number <https://github.com/jonschlinkert/is-number>
55
+ *
56
+ * Copyright (c) 2014-present, Jon Schlinkert.
57
+ * Released under the MIT License.
58
+ */
59
+ /*!
60
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
61
+ *
62
+ * Copyright (c) 2015-present, Jon Schlinkert.
63
+ * Released under the MIT License.
64
+ */
65
+ /*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
66
+ /*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
67
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */