@tsmodule/tsmodule 40.0.4 → 40.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,36 @@
1
1
 
2
2
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
3
3
 
4
- var iA=Object.create;var Oo=Object.defineProperty;var sA=Object.getOwnPropertyDescriptor;var oA=Object.getOwnPropertyNames;var aA=Object.getPrototypeOf,lA=Object.prototype.hasOwnProperty;var x=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var uA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oA(t))!lA.call(e,i)&&i!==r&&Oo(e,i,{get:()=>t[i],enumerable:!(n=sA(t,i))||n.enumerable});return e};var He=(e,t,r)=>(r=e!=null?iA(aA(e)):{},uA(t||!e||!e.__esModule?Oo(r,"default",{value:e,enumerable:!0}):r,e));var Go=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.splitWhen=_t.flatten=void 0;function vA(e){return e.reduce((t,r)=>[].concat(t,r),[])}_t.flatten=vA;function SA(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}_t.splitWhen=SA});var Uo=g(Er=>{"use strict";Object.defineProperty(Er,"__esModule",{value:!0});Er.isEnoentCodeError=void 0;function xA(e){return e.code==="ENOENT"}Er.isEnoentCodeError=xA});var Ko=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.createDirentFromStats=void 0;var Dn=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 BA(e,t){return new Dn(e,t)}mr.createDirentFromStats=BA});var Jo=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var wA=x("path"),RA=2,QA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function IA(e){return e.replace(/\\/g,"/")}we.unixify=IA;function TA(e,t){return wA.resolve(e,t)}we.makeAbsolute=TA;function OA(e){return e.replace(QA,"\\$2")}we.escape=OA;function DA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(RA)}return e}we.removeLeadingDotSegment=DA});var Wo=g((Rm,Yo)=>{Yo.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 Zo=g((Qm,Xo)=>{var kA=Wo(),Vo={"{":"}","(":")","[":"]"},LA=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=Vo[a];if(l){var f=e.indexOf(l,t);f!==-1&&(t=f+1)}if(e[t]==="!")return!0}else t++}return!1},PA=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=Vo[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};Xo.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(kA(t))return!0;var n=LA;return r&&r.strict===!1&&(n=PA),n(t)}});var ea=g((Im,zo)=>{"use strict";var NA=Zo(),MA=x("path").posix.dirname,FA=x("os").platform()==="win32",kn="/",qA=/\\/g,HA=/[\{\[].*[\}\]]$/,jA=/(^|[^\\])([\{\[]|\([^\)]+$)/,$A=/\\([\!\*\?\|\[\]\(\)\{\}])/g;zo.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&FA&&t.indexOf(kn)<0&&(t=t.replace(qA,kn)),HA.test(t)&&(t+=kn),t+="a";do t=MA(t);while(NA(t)||jA.test(t));return t.replace($A,"$1")}});var yr=g(he=>{"use strict";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 Cr=g((Om,ra)=>{"use strict";var ta=yr();ra.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&ta.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&ta.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var ia=g((Dm,na)=>{"use strict";na.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var ha=g((km,Aa)=>{"use strict";var sa=ia(),et=(e,t,r)=>{if(sa(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(sa(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(et.cache.hasOwnProperty(l))return et.cache[l].result;let f=Math.min(e,t),u=Math.max(e,t);if(Math.abs(f-u)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let h=ca(e)||ca(t),A={min:e,max:t,a:f,b:u},C=[],E=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),f<0){let _=u<0?Math.abs(u):1;E=oa(_,Math.abs(f),A,n),f=A.a=0}return u>=0&&(C=oa(f,u,A,n)),A.negatives=E,A.positives=C,A.result=GA(E,C,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&C.length+E.length>1&&(A.result=`(?:${A.result})`),et.cache[l]=A,A.result};function GA(e,t,r){let n=Ln(e,t,"-",!1,r)||[],i=Ln(t,e,"",!1,r)||[],s=Ln(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function UA(e,t){let r=1,n=1,i=la(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=la(e,r);for(i=ua(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=ua(t+1,n)-1;return s=[...s],s.sort(YA),s}function KA(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=JA(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,f]=n[a];l===f?s+=l:l!=="0"||f!=="9"?s+=WA(l,f,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function oa(e,t,r,n){let i=UA(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let f=i[l],u=KA(String(o),String(f),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+fa(a.count),o=f+1;continue}r.isPadded&&(h=VA(f,r,n)),u.string=h+u.pattern+fa(u.count),s.push(u),o=f+1,a=u}return s}function Ln(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!aa(t,"string",a)&&s.push(r+a),n&&aa(t,"string",a)&&s.push(r+a)}return s}function JA(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function YA(e,t){return e>t?1:t>e?-1:0}function aa(e,t,r){return e.some(n=>n[t]===r)}function la(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ua(e,t){return e-e%Math.pow(10,t)}function fa(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function WA(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function ca(e){return/^-?(0+)\d/.test(e)}function VA(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}et.cache={};et.clearCache=()=>et.cache={};Aa.exports=et});var Mn=g((Lm,Ca)=>{"use strict";var XA=x("util"),ga=ha(),pa=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),ZA=e=>t=>e===!0?Number(t):String(t),Pn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ht=e=>Number.isInteger(+e),Nn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},zA=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,eh=(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},da=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},th=(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},_a=(e,t,r,n)=>{if(r)return ga(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Ea=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return ga(e,t,r)},ma=(...e)=>new RangeError("Invalid range arguments: "+XA.inspect(...e)),ya=(e,t,r)=>{if(r.strictRanges===!0)throw ma([e,t]);return[]},rh=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},nh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw ma([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),f=String(r);r=Math.max(Math.abs(r),1);let u=Nn(a)||Nn(l)||Nn(f),h=u?Math.max(a.length,l.length,f.length):0,A=u===!1&&zA(e,t,n)===!1,C=n.transform||ZA(A);if(n.toRegex&&r===1)return _a(da(e,h),da(t,h),!0,n);let E={negatives:[],positives:[]},_=D=>E[D<0?"negatives":"positives"].push(Math.abs(D)),v=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(eh(C(i,b),h,A)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?th(E,n):Ea(v,null,{wrap:!1,...n}):v},ih=(e,t,r=1,n={})=>{if(!Ht(e)&&e.length>1||!Ht(t)&&t.length>1)return ya(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),f=Math.max(s,o);if(n.toRegex&&r===1)return _a(l,f,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?Ea(u,null,{wrap:!1,options:n}):u},br=(e,t,r,n={})=>{if(t==null&&Pn(e))return[e];if(!Pn(e)||!Pn(t))return ya(e,t,n);if(typeof r=="function")return br(e,t,1,{transform:r});if(pa(r))return br(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ht(r)?Ht(e)&&Ht(t)?nh(e,t,r,i):ih(e,t,Math.max(Math.abs(r),1),i):r!=null&&!pa(r)?rh(r,i):br(e,t,1,r)};Ca.exports=br});var Sa=g((Pm,va)=>{"use strict";var sh=Mn(),ba=yr(),oh=(e,t={})=>{let r=(n,i={})=>{let s=ba.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",f="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=ba.reduce(n.nodes),h=sh(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)f+=r(u,n);return f};return r(e)};va.exports=oh});var wa=g((Nm,Ba)=>{"use strict";var ah=Mn(),xa=Cr(),Et=yr(),tt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Et.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(tt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?tt(i,s,r):i+s);return Et.flatten(n)},lh=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(tt(a.pop(),xa(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(tt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Et.reduce(i.nodes);if(Et.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=ah(...h,t);A.length===0&&(A=xa(i,t)),a.push(tt(a.pop(),A)),i.nodes=[];return}let l=Et.encloseBrace(i),f=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,f=u.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&f.push(""),f.push("");continue}if(A.type==="close"){a.push(tt(a.pop(),f,l));continue}if(A.value&&A.type!=="open"){f.push(tt(f.pop(),A.value));continue}A.nodes&&n(A,i)}return f};return Et.flatten(n(e))};Ba.exports=lh});var Qa=g((Mm,Ra)=>{"use strict";Ra.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 ka=g((Fm,Da)=>{"use strict";var uh=Cr(),{MAX_LENGTH:Ia,CHAR_BACKSLASH:Fn,CHAR_BACKTICK:fh,CHAR_COMMA:ch,CHAR_DOT:Ah,CHAR_LEFT_PARENTHESES:hh,CHAR_RIGHT_PARENTHESES:ph,CHAR_LEFT_CURLY_BRACE:dh,CHAR_RIGHT_CURLY_BRACE:gh,CHAR_LEFT_SQUARE_BRACKET:Ta,CHAR_RIGHT_SQUARE_BRACKET:Oa,CHAR_DOUBLE_QUOTE:_h,CHAR_SINGLE_QUOTE:Eh,CHAR_NO_BREAK_SPACE:mh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:yh}=Qa(),Ch=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Ia,r.maxLength):Ia;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,l=0,f=e.length,u=0,h=0,A,C={},E=()=>e[u++],_=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(_({type:"bos"});u<f;)if(o=s[s.length-1],A=E(),!(A===yh||A===mh)){if(A===Fn){_({type:"text",value:(t.keepEscaping?A:"")+E()});continue}if(A===Oa){_({type:"text",value:"\\"+A});continue}if(A===Ta){l++;let v=!0,b;for(;u<f&&(b=E());){if(A+=b,b===Ta){l++;continue}if(b===Fn){A+=E();continue}if(b===Oa&&(l--,l===0))break}_({type:"text",value:A});continue}if(A===hh){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:A});continue}if(A===ph){if(o.type!=="paren"){_({type:"text",value:A});continue}o=s.pop(),_({type:"text",value:A}),o=s[s.length-1];continue}if(A===_h||A===Eh||A===fh){let v=A,b;for(t.keepQuotes!==!0&&(A="");u<f&&(b=E());){if(b===Fn){A+=b+E();continue}if(b===v){t.keepQuotes===!0&&(A+=b);break}A+=b}_({type:"text",value:A});continue}if(A===dh){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=_({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),_({type:"open",value:A});continue}if(A===gh){if(o.type!=="brace"){_({type:"text",value:A});continue}let v="close";o=s.pop(),o.close=!0,_({type:v,value:A}),h--,o=s[s.length-1];continue}if(A===ch&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:uh(o)}]}_({type:"comma",value:A}),o.commas++;continue}if(A===Ah&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){_({type:"text",value:A});continue}if(a.type==="dot"){if(o.range=[],a.value+=A,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"){v.pop();let b=v[v.length-1];b.value+=a.value+A,a=b,o.ranges--;continue}_({type:"dot",value:A});continue}_({type:"text",value:A})}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 v=s[s.length-1],b=v.nodes.indexOf(o);v.nodes.splice(b,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Da.exports=Ch});var Na=g((qm,Pa)=>{"use strict";var La=Cr(),bh=Sa(),vh=wa(),Sh=ka(),fe=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=fe.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(fe.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};fe.parse=(e,t={})=>Sh(e,t);fe.stringify=(e,t={})=>La(typeof e=="string"?fe.parse(e,t):e,t);fe.compile=(e,t={})=>(typeof e=="string"&&(e=fe.parse(e,t)),bh(e,t));fe.expand=(e,t={})=>{typeof e=="string"&&(e=fe.parse(e,t));let r=vh(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};fe.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?fe.compile(e,t):fe.expand(e,t);Pa.exports=fe});var jt=g((Hm,ja)=>{"use strict";var xh=x("path"),Re="\\\\/",Ma=`[^${Re}]`,Pe="\\.",Bh="\\+",wh="\\?",vr="\\/",Rh="(?=.)",Fa="[^/]",qn=`(?:${vr}|$)`,qa=`(?:^|${vr})`,Hn=`${Pe}{1,2}${qn}`,Qh=`(?!${Pe})`,Ih=`(?!${qa}${Hn})`,Th=`(?!${Pe}{0,1}${qn})`,Oh=`(?!${Hn})`,Dh=`[^.${vr}]`,kh=`${Fa}*?`,Ha={DOT_LITERAL:Pe,PLUS_LITERAL:Bh,QMARK_LITERAL:wh,SLASH_LITERAL:vr,ONE_CHAR:Rh,QMARK:Fa,END_ANCHOR:qn,DOTS_SLASH:Hn,NO_DOT:Qh,NO_DOTS:Ih,NO_DOT_SLASH:Th,NO_DOTS_SLASH:Oh,QMARK_NO_DOT:Dh,STAR:kh,START_ANCHOR:qa},Lh={...Ha,SLASH_LITERAL:`[${Re}]`,QMARK:Ma,STAR:`${Ma}*?`,DOTS_SLASH:`${Pe}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Pe})`,NO_DOTS:`(?!(?:^|[${Re}])${Pe}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Pe}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Pe}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},Ph={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"};ja.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Ph,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:xh.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?Lh:Ha}}});var $t=g(ae=>{"use strict";var Nh=x("path"),Mh=process.platform==="win32",{REGEX_BACKSLASH:Fh,REGEX_REMOVE_BACKSLASH:qh,REGEX_SPECIAL_CHARS:Hh,REGEX_SPECIAL_CHARS_GLOBAL:jh}=jt();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>Hh.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(jh,"\\$1");ae.toPosixSlashes=e=>e.replace(Fh,"/");ae.removeBackslashes=e=>e.replace(qh,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:Mh===!0||Nh.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 Va=g(($m,Wa)=>{"use strict";var $a=$t(),{CHAR_ASTERISK:jn,CHAR_AT:$h,CHAR_BACKWARD_SLASH:Gt,CHAR_COMMA:Gh,CHAR_DOT:$n,CHAR_EXCLAMATION_MARK:Gn,CHAR_FORWARD_SLASH:Ya,CHAR_LEFT_CURLY_BRACE:Un,CHAR_LEFT_PARENTHESES:Kn,CHAR_LEFT_SQUARE_BRACKET:Uh,CHAR_PLUS:Kh,CHAR_QUESTION_MARK:Ga,CHAR_RIGHT_CURLY_BRACE:Jh,CHAR_RIGHT_PARENTHESES:Ua,CHAR_RIGHT_SQUARE_BRACKET:Yh}=jt(),Ka=e=>e===Ya||e===Gt,Ja=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Wh=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,f=-1,u=0,h=0,A=!1,C=!1,E=!1,_=!1,v=!1,b=!1,D=!1,P=!1,U=!1,B=!1,H=0,R,S,M={value:"",depth:0,isGlob:!1},z=()=>f>=n,c=()=>l.charCodeAt(f+1),k=()=>(R=S,l.charCodeAt(++f));for(;f<n;){S=k();let se;if(S===Gt){D=M.backslashes=!0,S=k(),S===Un&&(b=!0);continue}if(b===!0||S===Un){for(H++;z()!==!0&&(S=k());){if(S===Gt){D=M.backslashes=!0,k();continue}if(S===Un){H++;continue}if(b!==!0&&S===$n&&(S=k())===$n){if(A=M.isBrace=!0,E=M.isGlob=!0,B=!0,i===!0)continue;break}if(b!==!0&&S===Gh){if(A=M.isBrace=!0,E=M.isGlob=!0,B=!0,i===!0)continue;break}if(S===Jh&&(H--,H===0)){b=!1,A=M.isBrace=!0,B=!0;break}}if(i===!0)continue;break}if(S===Ya){if(s.push(f),o.push(M),M={value:"",depth:0,isGlob:!1},B===!0)continue;if(R===$n&&f===u+1){u+=2;continue}h=f+1;continue}if(r.noext!==!0&&(S===Kh||S===$h||S===jn||S===Ga||S===Gn)===!0&&c()===Kn){if(E=M.isGlob=!0,_=M.isExtglob=!0,B=!0,S===Gn&&f===u&&(U=!0),i===!0){for(;z()!==!0&&(S=k());){if(S===Gt){D=M.backslashes=!0,S=k();continue}if(S===Ua){E=M.isGlob=!0,B=!0;break}}continue}break}if(S===jn){if(R===jn&&(v=M.isGlobstar=!0),E=M.isGlob=!0,B=!0,i===!0)continue;break}if(S===Ga){if(E=M.isGlob=!0,B=!0,i===!0)continue;break}if(S===Uh){for(;z()!==!0&&(se=k());){if(se===Gt){D=M.backslashes=!0,k();continue}if(se===Yh){C=M.isBracket=!0,E=M.isGlob=!0,B=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&S===Gn&&f===u){P=M.negated=!0,u++;continue}if(r.noparen!==!0&&S===Kn){if(E=M.isGlob=!0,i===!0){for(;z()!==!0&&(S=k());){if(S===Kn){D=M.backslashes=!0,S=k();continue}if(S===Ua){B=!0;break}}continue}break}if(E===!0){if(B=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,E=!1);let F=l,le="",p="";u>0&&(le=l.slice(0,u),l=l.slice(u),h-=u),F&&E===!0&&h>0?(F=l.slice(0,h),p=l.slice(h)):E===!0?(F="",p=l):F=l,F&&F!==""&&F!=="/"&&F!==l&&Ka(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(p&&(p=$a.removeBackslashes(p)),F&&D===!0&&(F=$a.removeBackslashes(F)));let d={prefix:le,input:e,start:u,base:F,glob:p,isBrace:A,isBracket:C,isGlob:E,isExtglob:_,isGlobstar:v,negated:P,negatedExtglob:U};if(r.tokens===!0&&(d.maxDepth=0,Ka(S)||o.push(M),d.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let N=0;N<s.length;N++){let xe=se?se+1:u,Be=s[N],ue=e.slice(xe,Be);r.tokens&&(N===0&&u!==0?(o[N].isPrefix=!0,o[N].value=le):o[N].value=ue,Ja(o[N]),d.maxDepth+=o[N].depth),(N!==0||ue!=="")&&a.push(ue),se=Be}if(se&&se+1<e.length){let N=e.slice(se+1);a.push(N),r.tokens&&(o[o.length-1].value=N,Ja(o[o.length-1]),d.maxDepth+=o[o.length-1].depth)}d.slashes=s,d.parts=a}return d};Wa.exports=Wh});var za=g((Gm,Za)=>{"use strict";var Sr=jt(),ce=$t(),{MAX_LENGTH:xr,POSIX_REGEX_SOURCE:Vh,REGEX_NON_SPECIAL_CHARS:Xh,REGEX_SPECIAL_CHARS_BACKREF:Zh,REPLACEMENTS:Xa}=Sr,zh=(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=>ce.escapeRegex(i)).join("..")}return r},mt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Jn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Xa[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(xr,r.maxLength):xr,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?"":"?:",l=ce.isWindows(t),f=Sr.globChars(l),u=Sr.extglobChars(f),{DOT_LITERAL:h,PLUS_LITERAL:A,SLASH_LITERAL:C,ONE_CHAR:E,DOTS_SLASH:_,NO_DOT:v,NO_DOT_SLASH:b,NO_DOTS_SLASH:D,QMARK:P,QMARK_NO_DOT:U,STAR:B,START_ANCHOR:H}=f,R=y=>`(${a}(?:(?!${H}${y.dot?_:h}).)*?)`,S=r.dot?"":v,M=r.dot?P:U,z=r.bash===!0?R(r):B;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let c={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=ce.removePrefix(e,c),i=e.length;let k=[],F=[],le=[],p=s,d,se=()=>c.index===i-1,N=c.peek=(y=1)=>e[c.index+y],xe=c.advance=()=>e[++c.index]||"",Be=()=>e.slice(c.index+1),ue=(y="",$=0)=>{c.consumed+=y,c.index+=$},Ar=y=>{c.output+=y.output!=null?y.output:y.value,ue(y.value)},rA=()=>{let y=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)xe(),c.start++,y++;return y%2===0?!1:(c.negated=!0,c.start++,!0)},hr=y=>{c[y]++,le.push(y)},ze=y=>{c[y]--,le.pop()},O=y=>{if(p.type==="globstar"){let $=c.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||k.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!$&&!m&&(c.output=c.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=z,c.output+=p.output)}if(k.length&&y.type!=="paren"&&(k[k.length-1].inner+=y.value),(y.value||y.output)&&Ar(y),p&&p.type==="text"&&y.type==="text"){p.value+=y.value,p.output=(p.output||"")+y.value;return}y.prev=p,o.push(y),p=y},pr=(y,$)=>{let m={...u[$],conditions:1,inner:""};m.prev=p,m.parens=c.parens,m.output=c.output;let Q=(r.capture?"(":"")+m.open;hr("parens"),O({type:y,value:$,output:c.output?"":E}),O({type:"paren",extglob:!0,value:xe(),output:Q}),k.push(m)},nA=y=>{let $=y.close+(r.capture?")":""),m;if(y.type==="negate"){let Q=z;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(Q=R(r)),(Q!==z||se()||/^\)+$/.test(Be()))&&($=y.close=`)$))${Q}`),y.inner.includes("*")&&(m=Be())&&/^\.[^\\/.]+$/.test(m)){let Y=Jn(m,{...t,fastpaths:!1}).output;$=y.close=`)${Y})${Q})`}y.prev.type==="bos"&&(c.negatedExtglob=!0)}O({type:"paren",extglob:!0,value:d,output:$}),ze("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,$=e.replace(Zh,(m,Q,Y,oe,ee,Rn)=>oe==="\\"?(y=!0,m):oe==="?"?Q?Q+oe+(ee?P.repeat(ee.length):""):Rn===0?M+(ee?P.repeat(ee.length):""):P.repeat(Y.length):oe==="."?h.repeat(Y.length):oe==="*"?Q?Q+oe+(ee?z:""):z:Q?m:`\\${m}`);return y===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),$===e&&r.contains===!0?(c.output=e,c):(c.output=ce.wrapOutput($,c,t),c)}for(;!se();){if(d=xe(),d==="\0")continue;if(d==="\\"){let m=N();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){d+="\\",O({type:"text",value:d});continue}let Q=/^\\+/.exec(Be()),Y=0;if(Q&&Q[0].length>2&&(Y=Q[0].length,c.index+=Y,Y%2!==0&&(d+="\\")),r.unescape===!0?d=xe():d+=xe(),c.brackets===0){O({type:"text",value:d});continue}}if(c.brackets>0&&(d!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&d===":"){let m=p.value.slice(1);if(m.includes("[")&&(p.posix=!0,m.includes(":"))){let Q=p.value.lastIndexOf("["),Y=p.value.slice(0,Q),oe=p.value.slice(Q+2),ee=Vh[oe];if(ee){p.value=Y+ee,c.backtrack=!0,xe(),!s.output&&o.indexOf(p)===1&&(s.output=E);continue}}}(d==="["&&N()!==":"||d==="-"&&N()==="]")&&(d=`\\${d}`),d==="]"&&(p.value==="["||p.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&p.value==="["&&(d="^"),p.value+=d,Ar({value:d});continue}if(c.quotes===1&&d!=='"'){d=ce.escapeRegex(d),p.value+=d,Ar({value:d});continue}if(d==='"'){c.quotes=c.quotes===1?0:1,r.keepQuotes===!0&&O({type:"text",value:d});continue}if(d==="("){hr("parens"),O({type:"paren",value:d});continue}if(d===")"){if(c.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mt("opening","("));let m=k[k.length-1];if(m&&c.parens===m.parens+1){nA(k.pop());continue}O({type:"paren",value:d,output:c.parens?")":"\\)"}),ze("parens");continue}if(d==="["){if(r.nobracket===!0||!Be().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));d=`\\${d}`}else hr("brackets");O({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){O({type:"text",value:d,output:`\\${d}`});continue}if(c.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mt("opening","["));O({type:"text",value:d,output:`\\${d}`});continue}ze("brackets");let m=p.value.slice(1);if(p.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(d=`/${d}`),p.value+=d,Ar({value:d}),r.literalBrackets===!1||ce.hasRegexChars(m))continue;let Q=ce.escapeRegex(p.value);if(c.output=c.output.slice(0,-p.value.length),r.literalBrackets===!0){c.output+=Q,p.value=Q;continue}p.value=`(${a}${Q}|${p.value})`,c.output+=p.value;continue}if(d==="{"&&r.nobrace!==!0){hr("braces");let m={type:"brace",value:d,output:"(",outputIndex:c.output.length,tokensIndex:c.tokens.length};F.push(m),O(m);continue}if(d==="}"){let m=F[F.length-1];if(r.nobrace===!0||!m){O({type:"text",value:d,output:d});continue}let Q=")";if(m.dots===!0){let Y=o.slice(),oe=[];for(let ee=Y.length-1;ee>=0&&(o.pop(),Y[ee].type!=="brace");ee--)Y[ee].type!=="dots"&&oe.unshift(Y[ee].value);Q=zh(oe,r),c.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let Y=c.output.slice(0,m.outputIndex),oe=c.tokens.slice(m.tokensIndex);m.value=m.output="\\{",d=Q="\\}",c.output=Y;for(let ee of oe)c.output+=ee.output||ee.value}O({type:"brace",value:d,output:Q}),ze("braces"),F.pop();continue}if(d==="|"){k.length>0&&k[k.length-1].conditions++,O({type:"text",value:d});continue}if(d===","){let m=d,Q=F[F.length-1];Q&&le[le.length-1]==="braces"&&(Q.comma=!0,m="|"),O({type:"comma",value:d,output:m});continue}if(d==="/"){if(p.type==="dot"&&c.index===c.start+1){c.start=c.index+1,c.consumed="",c.output="",o.pop(),p=s;continue}O({type:"slash",value:d,output:C});continue}if(d==="."){if(c.braces>0&&p.type==="dot"){p.value==="."&&(p.output=h);let m=F[F.length-1];p.type="dots",p.output+=d,p.value+=d,m.dots=!0;continue}if(c.braces+c.parens===0&&p.type!=="bos"&&p.type!=="slash"){O({type:"text",value:d,output:h});continue}O({type:"dot",value:d,output:h});continue}if(d==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){pr("qmark",d);continue}if(p&&p.type==="paren"){let Q=N(),Y=d;if(Q==="<"&&!ce.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(Q)||Q==="<"&&!/<([!=]|\w+>)/.test(Be()))&&(Y=`\\${d}`),O({type:"text",value:d,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){O({type:"qmark",value:d,output:U});continue}O({type:"qmark",value:d,output:P});continue}if(d==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){pr("negate",d);continue}if(r.nonegate!==!0&&c.index===0){rA();continue}}if(d==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){pr("plus",d);continue}if(p&&p.value==="("||r.regex===!1){O({type:"plus",value:d,output:A});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||c.parens>0){O({type:"plus",value:d});continue}O({type:"plus",value:A});continue}if(d==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){O({type:"at",extglob:!0,value:d,output:""});continue}O({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let m=Xh.exec(Be());m&&(d+=m[0],c.index+=m[0].length),O({type:"text",value:d});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=d,p.output=z,c.backtrack=!0,c.globstar=!0,ue(d);continue}let y=Be();if(r.noextglob!==!0&&/^\([^?]/.test(y)){pr("star",d);continue}if(p.type==="star"){if(r.noglobstar===!0){ue(d);continue}let m=p.prev,Q=m.prev,Y=m.type==="slash"||m.type==="bos",oe=Q&&(Q.type==="star"||Q.type==="globstar");if(r.bash===!0&&(!Y||y[0]&&y[0]!=="/")){O({type:"star",value:d,output:""});continue}let ee=c.braces>0&&(m.type==="comma"||m.type==="brace"),Rn=k.length&&(m.type==="pipe"||m.type==="paren");if(!Y&&m.type!=="paren"&&!ee&&!Rn){O({type:"star",value:d,output:""});continue}for(;y.slice(0,3)==="/**";){let dr=e[c.index+4];if(dr&&dr!=="/")break;y=y.slice(3),ue("/**",3)}if(m.type==="bos"&&se()){p.type="globstar",p.value+=d,p.output=R(r),c.output=p.output,c.globstar=!0,ue(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!oe&&se()){c.output=c.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=R(r)+(r.strictSlashes?")":"|$)"),p.value+=d,c.globstar=!0,c.output+=m.output+p.output,ue(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let dr=y[1]!==void 0?"|$":"";c.output=c.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=`${R(r)}${C}|${C}${dr})`,p.value+=d,c.output+=m.output+p.output,c.globstar=!0,ue(d+xe()),O({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){p.type="globstar",p.value+=d,p.output=`(?:^|${C}|${R(r)}${C})`,c.output=p.output,c.globstar=!0,ue(d+xe()),O({type:"slash",value:"/",output:""});continue}c.output=c.output.slice(0,-p.output.length),p.type="globstar",p.output=R(r),p.value+=d,c.output+=p.output,c.globstar=!0,ue(d);continue}let $={type:"star",value:d,output:z};if(r.bash===!0){$.output=".*?",(p.type==="bos"||p.type==="slash")&&($.output=S+$.output),O($);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){$.output=d,O($);continue}(c.index===c.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(c.output+=b,p.output+=b):r.dot===!0?(c.output+=D,p.output+=D):(c.output+=S,p.output+=S),N()!=="*"&&(c.output+=E,p.output+=E)),O($)}for(;c.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));c.output=ce.escapeLast(c.output,"["),ze("brackets")}for(;c.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing",")"));c.output=ce.escapeLast(c.output,"("),ze("parens")}for(;c.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing","}"));c.output=ce.escapeLast(c.output,"{"),ze("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&O({type:"maybe_slash",value:"",output:`${C}?`}),c.backtrack===!0){c.output="";for(let y of c.tokens)c.output+=y.output!=null?y.output:y.value,y.suffix&&(c.output+=y.suffix)}return c};Jn.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(xr,r.maxLength):xr,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=Xa[e]||e;let s=ce.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:f,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:A,STAR:C,START_ANCHOR:E}=Sr.globChars(s),_=r.dot?h:u,v=r.dot?A:u,b=r.capture?"":"?:",D={negated:!1,prefix:""},P=r.bash===!0?".*?":C;r.capture&&(P=`(${P})`);let U=S=>S.noglobstar===!0?P:`(${b}(?:(?!${E}${S.dot?f:o}).)*?)`,B=S=>{switch(S){case"*":return`${_}${l}${P}`;case".*":return`${o}${l}${P}`;case"*.*":return`${_}${P}${o}${l}${P}`;case"*/*":return`${_}${P}${a}${l}${v}${P}`;case"**":return _+U(r);case"**/*":return`(?:${_}${U(r)}${a})?${v}${l}${P}`;case"**/*.*":return`(?:${_}${U(r)}${a})?${v}${P}${o}${l}${P}`;case"**/.*":return`(?:${_}${U(r)}${a})?${o}${l}${P}`;default:{let M=/^(.*?)\.(\w+)$/.exec(S);if(!M)return;let z=B(M[1]);return z?z+o+M[2]:void 0}}},H=ce.removePrefix(e,D),R=B(H);return R&&r.strictSlashes!==!0&&(R+=`${a}?`),R};Za.exports=Jn});var tl=g((Um,el)=>{"use strict";var ep=x("path"),tp=Va(),Yn=za(),Wn=$t(),rp=jt(),np=e=>e&&typeof e=="object"&&!Array.isArray(e),V=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(A=>V(A,t,r));return A=>{for(let C of u){let E=C(A);if(E)return E}return!1}}let n=np(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=Wn.isWindows(t),o=n?V.compileRe(e,t):V.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=V(i.ignore,u,r)}let f=(u,h=!1)=>{let{isMatch:A,match:C,output:E}=V.test(u,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:u,output:E,match:C,isMatch:A};return typeof i.onResult=="function"&&i.onResult(_),A===!1?(_.isMatch=!1,h?_:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,h?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),h?_:!0)};return r&&(f.state=a),f};V.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?Wn.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=V.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};V.matchBase=(e,t,r,n=Wn.isWindows(r))=>(t instanceof RegExp?t:V.makeRe(t,r)).test(ep.basename(e));V.isMatch=(e,t,r)=>V(t,r)(e);V.parse=(e,t)=>Array.isArray(e)?e.map(r=>V.parse(r,t)):Yn(e,{...t,fastpaths:!1});V.scan=(e,t)=>tp(e,t);V.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 l=V.toRegex(a,t);return n===!0&&(l.state=e),l};V.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=Yn.fastpaths(e,t)),i.output||(i=Yn(e,t)),V.compileRe(i,t,r,n)};V.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/$^/}};V.constants=rp;el.exports=V});var nl=g((Km,rl)=>{"use strict";rl.exports=tl()});var ll=g((Jm,al)=>{"use strict";var sl=x("util"),ol=Na(),Qe=nl(),Vn=$t(),il=e=>e===""||e==="./",K=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let h=Qe(String(t[u]),{...r,onResult:a},!0),A=h.state.negated||h.state.negatedExtglob;A&&o++;for(let C of e){let E=h(C,!0);!(A?!E.isMatch:E.isMatch)||(A?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let f=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));if(r&&f.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(u=>u.replace(/\\/g,"")):t}return f};K.match=K;K.matcher=(e,t)=>Qe(e,t);K.isMatch=(e,t,r)=>Qe(t,r)(e);K.any=K.isMatch;K.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(K(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sl.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(il(e)||il(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!Vn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};K.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Qe(String(i),r);if(n.some(o=>s(o)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Qe(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${sl.inspect(e)}"`);return[].concat(t).every(n=>Qe(n,r)(e))};K.capture=(e,t,r)=>{let n=Vn.isWindows(r),s=Qe.makeRe(String(e),{...r,capture:!0}).exec(n?Vn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};K.makeRe=(...e)=>Qe.makeRe(...e);K.scan=(...e)=>Qe.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of ol(String(n),t))r.push(Qe.parse(i,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:ol(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};al.exports=K});var gl=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.matchAny=w.convertPatternsToRe=w.makeRe=w.getPatternParts=w.expandBraceExpansion=w.expandPatternsWithBraceExpansion=w.isAffectDepthOfReadingPattern=w.endsWithSlashGlobStar=w.hasGlobStar=w.getBaseDirectory=w.isPatternRelatedToParentDirectory=w.getPatternsOutsideCurrentDirectory=w.getPatternsInsideCurrentDirectory=w.getPositivePatterns=w.getNegativePatterns=w.isPositivePattern=w.isNegativePattern=w.convertToNegativePattern=w.convertToPositivePattern=w.isDynamicPattern=w.isStaticPattern=void 0;var ip=x("path"),sp=ea(),Xn=ll(),ul="**",op="\\",ap=/[*?]|^!/,lp=/\[[^[]*]/,up=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,fp=/[!*+?@]\([^(]*\)/,cp=/,|\.\./;function fl(e,t={}){return!cl(e,t)}w.isStaticPattern=fl;function cl(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(op)||ap.test(e)||lp.test(e)||up.test(e)||t.extglob!==!1&&fp.test(e)||t.braceExpansion!==!1&&Ap(e))}w.isDynamicPattern=cl;function Ap(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 cp.test(n)}function hp(e){return Br(e)?e.slice(1):e}w.convertToPositivePattern=hp;function pp(e){return"!"+e}w.convertToNegativePattern=pp;function Br(e){return e.startsWith("!")&&e[1]!=="("}w.isNegativePattern=Br;function Al(e){return!Br(e)}w.isPositivePattern=Al;function dp(e){return e.filter(Br)}w.getNegativePatterns=dp;function gp(e){return e.filter(Al)}w.getPositivePatterns=gp;function _p(e){return e.filter(t=>!Zn(t))}w.getPatternsInsideCurrentDirectory=_p;function Ep(e){return e.filter(Zn)}w.getPatternsOutsideCurrentDirectory=Ep;function Zn(e){return e.startsWith("..")||e.startsWith("./..")}w.isPatternRelatedToParentDirectory=Zn;function mp(e){return sp(e,{flipBackslashes:!1})}w.getBaseDirectory=mp;function yp(e){return e.includes(ul)}w.hasGlobStar=yp;function hl(e){return e.endsWith("/"+ul)}w.endsWithSlashGlobStar=hl;function Cp(e){let t=ip.basename(e);return hl(e)||fl(t)}w.isAffectDepthOfReadingPattern=Cp;function bp(e){return e.reduce((t,r)=>t.concat(pl(r)),[])}w.expandPatternsWithBraceExpansion=bp;function pl(e){return Xn.braces(e,{expand:!0,nodupes:!0})}w.expandBraceExpansion=pl;function vp(e,t){let{parts:r}=Xn.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}w.getPatternParts=vp;function dl(e,t){return Xn.makeRe(e,t)}w.makeRe=dl;function Sp(e,t){return e.map(r=>dl(r,t))}w.convertPatternsToRe=Sp;function xp(e,t){return t.some(r=>r.test(e))}w.matchAny=xp});var yl=g((Wm,ml)=>{"use strict";var Bp=x("stream"),_l=Bp.PassThrough,wp=Array.prototype.slice;ml.exports=Rp;function Rp(){let e=[],t=wp.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=_l(n);function a(){for(let u=0,h=arguments.length;u<h;u++)e.push(El(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(f);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function A(){--h>0||(r=!1,l())}function C(E){function _(){E.removeListener("merge2UnpipeEnd",_),E.removeListener("end",_),s&&E.removeListener("error",v),A()}function v(b){o.emit("error",b)}if(E._readableState.endEmitted)return A();E.on("merge2UnpipeEnd",_),E.on("end",_),s&&E.on("error",v),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<u.length;E++)C(u[E]);A()}function f(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function El(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=El(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(_l(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var bl=g(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.merge=void 0;var Qp=yl();function Ip(e){let t=Qp(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Cl(e)),t.once("end",()=>Cl(e)),t}wr.merge=Ip;function Cl(e){e.forEach(t=>t.emit("close"))}});var vl=g(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isEmpty=yt.isString=void 0;function Tp(e){return typeof e=="string"}yt.isString=Tp;function Op(e){return e===""}yt.isEmpty=Op});var Ne=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var Dp=Go();re.array=Dp;var kp=Uo();re.errno=kp;var Lp=Ko();re.fs=Lp;var Pp=Jo();re.path=Pp;var Np=gl();re.pattern=Np;var Mp=bl();re.stream=Mp;var Fp=vl();re.string=Fp});var Bl=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var Me=Ne();function qp(e,t){let r=Sl(e),n=xl(e,t.ignore),i=r.filter(l=>Me.pattern.isStaticPattern(l,t)),s=r.filter(l=>Me.pattern.isDynamicPattern(l,t)),o=zn(i,n,!1),a=zn(s,n,!0);return o.concat(a)}ne.generate=qp;function zn(e,t,r){let n=[],i=Me.pattern.getPatternsOutsideCurrentDirectory(e),s=Me.pattern.getPatternsInsideCurrentDirectory(e),o=ei(i),a=ei(s);return n.push(...ti(o,t,r)),"."in a?n.push(ri(".",s,t,r)):n.push(...ti(a,t,r)),n}ne.convertPatternsToTasks=zn;function Sl(e){return Me.pattern.getPositivePatterns(e)}ne.getPositivePatterns=Sl;function xl(e,t){return Me.pattern.getNegativePatterns(e).concat(t).map(Me.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=xl;function ei(e){let t={};return e.reduce((r,n)=>{let i=Me.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=ei;function ti(e,t,r){return Object.keys(e).map(n=>ri(n,e[n],t,r))}ne.convertPatternGroupsToTasks=ti;function ri(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Me.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=ri});var Rl=g(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.removeDuplicateSlashes=Ct.transform=void 0;var Hp=/(?!^)\/{2,}/g;function jp(e){return e.map(t=>wl(t))}Ct.transform=jp;function wl(e){return e.replace(Hp,"/")}Ct.removeDuplicateSlashes=wl});var Il=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.read=void 0;function $p(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Ql(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){ni(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Ql(r,s);return}ni(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),ni(r,o)})})}Rr.read=$p;function Ql(e,t){e(t)}function ni(e,t){e(null,t)}});var Tl=g(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.read=void 0;function Gp(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}}Qr.read=Gp});var Ol=g(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.createFileSystemAdapter=je.FILE_SYSTEM_ADAPTER=void 0;var Ir=x("fs");je.FILE_SYSTEM_ADAPTER={lstat:Ir.lstat,stat:Ir.stat,lstatSync:Ir.lstatSync,statSync:Ir.statSync};function Up(e){return e===void 0?je.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},je.FILE_SYSTEM_ADAPTER),e)}je.createFileSystemAdapter=Up});var Dl=g(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});var Kp=Ol(),ii=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Kp.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}};si.default=ii});var rt=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.statSync=$e.stat=$e.Settings=void 0;var kl=Il(),Jp=Tl(),oi=Dl();$e.Settings=oi.default;function Yp(e,t,r){if(typeof t=="function"){kl.read(e,ai(),t);return}kl.read(e,ai(t),r)}$e.stat=Yp;function Wp(e,t){let r=ai(t);return Jp.read(e,r)}$e.statSync=Wp;function ai(e={}){return e instanceof oi.default?e:new oi.default(e)}});var Nl=g((oy,Pl)=>{var Ll;Pl.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Ll||(Ll=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Fl=g((ay,Ml)=>{Ml.exports=Xp;var Vp=Nl();function Xp(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(l){function f(){t&&t(l,r),t=null}s?Vp(f):f()}function a(l,f,u){r[l]=u,(--n===0||f)&&o(f)}n?i?i.forEach(function(l){e[l](function(f,u){a(l,f,u)})}):e.forEach(function(l,f){l(function(u,h){a(f,u,h)})}):o(null),s=!1}});var li=g(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Tr=process.versions.node.split(".");if(Tr[0]===void 0||Tr[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var ql=Number.parseInt(Tr[0],10),Zp=Number.parseInt(Tr[1],10),Hl=10,zp=10,ed=ql>Hl,td=ql===Hl&&Zp>=zp;Or.IS_SUPPORT_READDIR_WITH_FILE_TYPES=ed||td});var jl=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.createDirentFromStats=void 0;var ui=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 rd(e,t){return new ui(e,t)}Dr.createDirentFromStats=rd});var fi=g(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.fs=void 0;var nd=jl();kr.fs=nd});var ci=g(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.joinPathSegments=void 0;function id(e,t,r){return e.endsWith(r)?e+t:e+r+t}Lr.joinPathSegments=id});var Yl=g(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var sd=rt(),$l=Fl(),od=li(),Gl=fi(),Ul=ci();function ad(e,t,r){if(!t.stats&&od.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Kl(e,t,r);return}Jl(e,t,r)}Ge.read=ad;function Kl(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:Ul.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Ai(r,s);return}let o=s.map(a=>ld(a,t));$l(o,(a,l)=>{if(a!==null){Pr(r,a);return}Ai(r,l)})})}Ge.readdirWithFileTypes=Kl;function ld(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=Gl.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Jl(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Pr(r,n);return}let s=i.map(o=>{let a=Ul.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{sd.stat(a,t.fsStatSettings,(f,u)=>{if(f!==null){l(f);return}let h={name:o,path:a,dirent:Gl.fs.createDirentFromStats(o,u)};t.stats&&(h.stats=u),l(null,h)})}});$l(s,(o,a)=>{if(o!==null){Pr(r,o);return}Ai(r,a)})})}Ge.readdir=Jl;function Pr(e,t){e(t)}function Ai(e,t){e(null,t)}});var zl=g(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var ud=rt(),fd=li(),Wl=fi(),Vl=ci();function cd(e,t){return!t.stats&&fd.IS_SUPPORT_READDIR_WITH_FILE_TYPES?Xl(e,t):Zl(e,t)}Ue.read=cd;function Xl(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:Vl.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=Wl.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ue.readdirWithFileTypes=Xl;function Zl(e,t){return t.fs.readdirSync(e).map(n=>{let i=Vl.joinPathSegments(e,n,t.pathSegmentSeparator),s=ud.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:Wl.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Ue.readdir=Zl});var eu=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createFileSystemAdapter=Ke.FILE_SYSTEM_ADAPTER=void 0;var bt=x("fs");Ke.FILE_SYSTEM_ADAPTER={lstat:bt.lstat,stat:bt.stat,lstatSync:bt.lstatSync,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};function Ad(e){return e===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),e)}Ke.createFileSystemAdapter=Ad});var tu=g(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});var hd=x("path"),pd=rt(),dd=eu(),hi=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=dd.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,hd.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new pd.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};pi.default=hi});var Nr=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.Settings=Je.scandirSync=Je.scandir=void 0;var ru=Yl(),gd=zl(),di=tu();Je.Settings=di.default;function _d(e,t,r){if(typeof t=="function"){ru.read(e,gi(),t);return}ru.read(e,gi(t),r)}Je.scandir=_d;function Ed(e,t){let r=gi(t);return gd.read(e,r)}Je.scandirSync=Ed;function gi(e={}){return e instanceof di.default?e:new di.default(e)}});var iu=g((_y,nu)=>{"use strict";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}}nu.exports=md});var ou=g((Ey,_i)=>{"use strict";var yd=iu();function su(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=yd(Cd),i=null,s=null,o=0,a=null,l={push:_,drain:pe,saturated:pe,pause:u,paused:!1,concurrency:r,running:f,resume:C,idle:E,length:h,getQueue:A,unshift:v,empty:pe,kill:D,killAndDrain:P,error:U};return l;function f(){return o}function u(){l.paused=!0}function h(){for(var B=i,H=0;B;)B=B.next,H++;return H}function A(){for(var B=i,H=[];B;)H.push(B.value),B=B.next;return H}function C(){if(!!l.paused){l.paused=!1;for(var B=0;B<l.concurrency;B++)o++,b()}}function E(){return o===0&&l.length()===0}function _(B,H){var R=n.get();R.context=e,R.release=b,R.value=B,R.callback=H||pe,R.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=R,s=R):(i=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function v(B,H){var R=n.get();R.context=e,R.release=b,R.value=B,R.callback=H||pe,o===l.concurrency||l.paused?i?(R.next=i,i=R):(i=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function b(B){B&&n.release(B);var H=i;H?l.paused?o--:(s===i&&(s=null),i=H.next,H.next=null,t.call(e,H.value,H.worked),s===null&&l.empty()):--o===0&&l.drain()}function D(){i=null,s=null,l.drain=pe}function P(){i=null,s=null,l.drain(),l.drain=pe}function U(B){a=B}}function pe(){}function Cd(){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 bd(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,h){t.call(this,u).then(function(A){h(null,A)},h)}var i=su(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=f,i;function a(u){var h=new Promise(function(A,C){s(u,function(E,_){if(E){C(E);return}A(_)})});return h.catch(pe),h}function l(u){var h=new Promise(function(A,C){o(u,function(E,_){if(E){C(E);return}A(_)})});return h.catch(pe),h}function f(){var u=i.drain,h=new Promise(function(A){i.drain=function(){u(),A()}});return h}}_i.exports=su;_i.exports.promise=bd});var Mr=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.joinPathSegments=Ie.replacePathSegmentSeparator=Ie.isAppliedFilter=Ie.isFatalError=void 0;function vd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ie.isFatalError=vd;function Sd(e,t){return e===null||e(t)}Ie.isAppliedFilter=Sd;function xd(e,t){return e.split(/[/\\]/).join(t)}Ie.replacePathSegmentSeparator=xd;function Bd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ie.joinPathSegments=Bd});var yi=g(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});var wd=Mr(),Ei=class{constructor(t,r){this._root=t,this._settings=r,this._root=wd.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};mi.default=Ei});var vi=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var Rd=x("events"),Qd=Nr(),Id=ou(),Fr=Mr(),Td=yi(),Ci=class extends Td.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Qd.scandir,this._emitter=new Rd.EventEmitter,this._queue=Id(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||!Fr.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=Fr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Fr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Fr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};bi.default=Ci});var au=g(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});var Od=vi(),Si=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Od.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Dd(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{kd(t,this._storage)}),this._reader.read()}};xi.default=Si;function Dd(e,t){e(t)}function kd(e,t){e(null,t)}});var lu=g(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});var Ld=x("stream"),Pd=vi(),Bi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Pd.default(this._root,this._settings),this._stream=new Ld.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}};wi.default=Bi});var uu=g(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});var Nd=Nr(),qr=Mr(),Md=yi(),Ri=class extends Md.default{constructor(){super(...arguments),this._scandir=Nd.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(!!qr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=qr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),qr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&qr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Qi.default=Ri});var fu=g(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var Fd=uu(),Ii=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Fd.default(this._root,this._settings)}read(){return this._reader.read()}};Ti.default=Ii});var cu=g(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var qd=x("path"),Hd=Nr(),Oi=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,qd.sep),this.fsScandirSettings=new Hd.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=Oi});var Li=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.Settings=Te.walkStream=Te.walkSync=Te.walk=void 0;var Au=au(),jd=lu(),$d=fu(),ki=cu();Te.Settings=ki.default;function Gd(e,t,r){if(typeof t=="function"){new Au.default(e,Hr()).read(t);return}new Au.default(e,Hr(t)).read(r)}Te.walk=Gd;function Ud(e,t){let r=Hr(t);return new $d.default(e,r).read()}Te.walkSync=Ud;function Kd(e,t){let r=Hr(t);return new jd.default(e,r).read()}Te.walkStream=Kd;function Hr(e={}){return e instanceof ki.default?e:new ki.default(e)}});var Mi=g(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});var Jd=x("path"),Yd=rt(),hu=Ne(),Pi=class{constructor(t){this._settings=t,this._fsStatSettings=new Yd.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Jd.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:hu.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!hu.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Ni.default=Pi});var Hi=g(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Wd=x("stream"),Vd=rt(),Xd=Li(),Zd=Mi(),Fi=class extends Zd.default{constructor(){super(...arguments),this._walkStream=Xd.walkStream,this._stat=Vd.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Wd.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),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))})}};qi.default=Fi});var pu=g($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var vt=Ne(),ji=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=vt.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 vt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>vt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:vt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return vt.array.splitWhen(t,r=>r.dynamic&&vt.pattern.hasGlobStar(r.pattern))}};$i.default=ji});var du=g(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});var zd=pu(),Gi=class extends zd.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((l,f)=>{let u=s.segments[f];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Ui.default=Gi});var gu=g(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var jr=Ne(),eg=du(),Ki=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 eg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(jr.pattern.isAffectDepthOfReadingPattern);return jr.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=jr.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!jr.pattern.matchAny(t,r)}};Ji.default=Ki});var _u=g(Wi=>{"use strict";Object.defineProperty(Wi,"__esModule",{value:!0});var nt=Ne(),Yi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=nt.pattern.convertPatternsToRe(t,this._micromatchOptions),i=nt.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=nt.path.makeAbsolute(this._settings.cwd,t);return nt.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=nt.path.removeLeadingDotSegment(t);return nt.pattern.matchAny(n,r)||nt.pattern.matchAny(n+"/",r)}};Wi.default=Yi});var Eu=g(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});var tg=Ne(),Vi=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return tg.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Xi.default=Vi});var yu=g(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});var mu=Ne(),Zi=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=mu.path.makeAbsolute(this._settings.cwd,r),r=mu.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};zi.default=Zi});var $r=g(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var rg=x("path"),ng=gu(),ig=_u(),sg=Eu(),og=yu(),es=class{constructor(t){this._settings=t,this.errorFilter=new sg.default(this._settings),this.entryFilter=new ig.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new ng.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new og.default(this._settings)}_getRootDirectory(t){return rg.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}}};ts.default=es});var Cu=g(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var ag=Hi(),lg=$r(),rs=class extends lg.default{constructor(){super(...arguments),this._reader=new ag.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",l=>i.push(n.transform(l))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};ns.default=rs});var bu=g(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var ug=x("stream"),fg=Hi(),cg=$r(),is=class extends cg.default{constructor(){super(...arguments),this._reader=new fg.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new ug.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)}};ss.default=is});var vu=g(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var Ag=rt(),hg=Li(),pg=Mi(),os=class extends pg.default{constructor(){super(...arguments),this._walkSync=hg.walkSync,this._statSync=Ag.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)}};as.default=os});var Su=g(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});var dg=vu(),gg=$r(),ls=class extends gg.default{constructor(){super(...arguments),this._reader=new dg.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)}};us.default=ls});var xu=g(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var St=x("fs"),_g=x("os"),Eg=Math.max(_g.cpus().length,1);xt.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:St.lstat,lstatSync:St.lstatSync,stat:St.stat,statSync:St.statSync,readdir:St.readdir,readdirSync:St.readdirSync};var fs=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,Eg),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({},xt.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};xt.default=fs});var ps=g((jy,Ru)=>{"use strict";var Bu=Bl(),wu=Rl(),mg=Cu(),yg=bu(),Cg=Su(),cs=xu(),it=Ne();async function As(e,t){Bt(e);let r=hs(e,mg.default,t),n=await Promise.all(r);return it.array.flatten(n)}(function(e){function t(o,a){Bt(o);let l=hs(o,Cg.default,a);return it.array.flatten(l)}e.sync=t;function r(o,a){Bt(o);let l=hs(o,yg.default,a);return it.stream.merge(l)}e.stream=r;function n(o,a){Bt(o);let l=wu.transform([].concat(o)),f=new cs.default(a);return Bu.generate(l,f)}e.generateTasks=n;function i(o,a){Bt(o);let l=new cs.default(a);return it.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return Bt(o),it.path.escape(o)}e.escapePath=s})(As||(As={}));function hs(e,t,r){let n=wu.transform([].concat(e)),i=new cs.default(r),s=Bu.generate(n,i),o=new t(i);return s.map(o.read,o)}function Bt(e){if(![].concat(e).every(n=>it.string.isString(n)&&!it.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ru.exports=As});var Iu=g(($y,ds)=>{"use strict";var Qu=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};ds.exports=Qu;ds.exports.default=Qu});var Ou=g((Gy,Ur)=>{"use strict";var bg=Iu(),Gr=new WeakMap,Tu=(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(Gr.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 bg(s,e),Gr.set(s,n),s};Ur.exports=Tu;Ur.exports.default=Tu;Ur.exports.callCount=e=>{if(!Gr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Gr.get(e)}});var Du=g((Uy,Kr)=>{Kr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Kr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Kr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Mu=g((Ky,Qt)=>{var J=global.process,st=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"};st(J)?(ku=x("assert"),wt=Du(),Lu=/^win/i.test(J.platform),Ut=x("events"),typeof Ut!="function"&&(Ut=Ut.EventEmitter),J.__signal_exit_emitter__?te=J.__signal_exit_emitter__:(te=J.__signal_exit_emitter__=new Ut,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),Qt.exports=function(e,t){if(!st(global.process))return function(){};ku.equal(typeof e,"function","a callback must be provided for exit handler"),Rt===!1&&gs();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(){!Rt||!st(global.process)||(Rt=!1,wt.forEach(function(t){try{J.removeListener(t,Yr[t])}catch{}}),J.emit=Wr,J.reallyExit=_s,te.count-=1)},Qt.exports.unload=Jr,ot=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Yr={},wt.forEach(function(e){Yr[e]=function(){if(!!st(global.process)){var r=J.listeners(e);r.length===te.count&&(Jr(),ot("exit",null,e),ot("afterexit",null,e),Lu&&e==="SIGHUP"&&(e="SIGINT"),J.kill(J.pid,e))}}}),Qt.exports.signals=function(){return wt},Rt=!1,gs=function(){Rt||!st(global.process)||(Rt=!0,te.count+=1,wt=wt.filter(function(t){try{return J.on(t,Yr[t]),!0}catch{return!1}}),J.emit=Nu,J.reallyExit=Pu)},Qt.exports.load=gs,_s=J.reallyExit,Pu=function(t){!st(global.process)||(J.exitCode=t||0,ot("exit",J.exitCode,null),ot("afterexit",J.exitCode,null),_s.call(J,J.exitCode))},Wr=J.emit,Nu=function(t,r){if(t==="exit"&&st(global.process)){r!==void 0&&(J.exitCode=r);var n=Wr.apply(this,arguments);return ot("exit",J.exitCode,null),ot("afterexit",J.exitCode,null),n}else return Wr.apply(this,arguments)}):Qt.exports=function(){return function(){}};var ku,wt,Lu,Ut,te,Jr,ot,Yr,Rt,gs,_s,Pu,Wr,Nu});var $u=g((Zy,xg)=>{xg.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 Ku=g((zy,Uu)=>{"use strict";var Xr=Object.assign({},$u()),Gu=Object.keys(Xr);Object.defineProperty(Xr,"random",{get(){let e=Math.floor(Math.random()*Gu.length),t=Gu[e];return Xr[t]}});Uu.exports=Xr});var Ju=g((lC,Zr)=>{var Qg=function(){"use strict";function e(o,a,l,f){var u;typeof a=="object"&&(l=a.depth,f=a.prototype,u=a.filter,a=a.circular);var h=[],A=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function E(_,v){if(_===null)return null;if(v==0)return _;var b,D;if(typeof _!="object")return _;if(e.__isArray(_))b=[];else if(e.__isRegExp(_))b=new RegExp(_.source,s(_)),_.lastIndex&&(b.lastIndex=_.lastIndex);else if(e.__isDate(_))b=new Date(_.getTime());else{if(C&&Buffer.isBuffer(_))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(_.length):b=new Buffer(_.length),_.copy(b),b;typeof f>"u"?(D=Object.getPrototypeOf(_),b=Object.create(D)):(b=Object.create(f),D=f)}if(a){var P=h.indexOf(_);if(P!=-1)return A[P];h.push(_),A.push(b)}for(var U in _){var B;D&&(B=Object.getOwnPropertyDescriptor(D,U)),!(B&&B.set==null)&&(b[U]=E(_[U],v-1))}return b}return E(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};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 Zr=="object"&&Zr.exports&&(Zr.exports=Qg)});var Wu=g((uC,Yu)=>{var Ig=Ju();Yu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Ig(t[r]))}),e}});var Xu=g((fC,Vu)=>{Vu.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 tf=g((cC,Cs)=>{"use strict";var Tg=Wu(),Yt=Xu(),zu={nul:0,control:0};Cs.exports=function(t){return ef(t,zu)};Cs.exports.config=function(e){return e=Tg(e||{},zu),function(r){return ef(r,e)}};function ef(e,t){if(typeof e!="string")return Zu(e,t);for(var r=0,n=0;n<e.length;n++){var i=Zu(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function Zu(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Og(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 Og(e){var t=0,r=Yt.length-1,n;if(e<Yt[0][0]||e>Yt[r][1])return!1;for(;r>=t;)if(n=Math.floor((t+r)/2),e>Yt[n][1])t=n+1;else if(e<Yt[n][0])r=n-1;else return!0;return!1}});var vs=g((hC,rf)=>{rf.exports=x("stream")});var af=g((pC,of)=>{"use strict";function nf(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 Dg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nf(Object(r),!0).forEach(function(n){kg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sf(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 Pg(e,t,r){return t&&sf(e.prototype,t),r&&sf(e,r),e}var Ng=x("buffer"),zr=Ng.Buffer,Mg=x("util"),Ss=Mg.inspect,Fg=Ss&&Ss.custom||"inspect";function qg(e,t,r){zr.prototype.copy.call(e,t,r)}of.exports=function(){function e(){Lg(this,e),this.head=null,this.tail=null,this.length=0}return Pg(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 zr.alloc(0);for(var n=zr.allocUnsafe(r>>>0),i=this.head,s=0;i;)qg(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=zr.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:Fg,value:function(r,n){return Ss(this,Dg({},n,{depth:0,customInspect:!1}))}}]),e}()});var Bs=g((dC,uf)=>{"use strict";function Hg(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(xs,this,e)):process.nextTick(xs,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(en,r):(r._writableState.errorEmitted=!0,process.nextTick(lf,r,s)):process.nextTick(lf,r,s):t?(process.nextTick(en,r),t(s)):process.nextTick(en,r)}),this)}function lf(e,t){xs(e,t),en(e)}function en(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function jg(){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 xs(e,t){e.emit("error",t)}function $g(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}uf.exports={destroy:Hg,undestroy:jg,errorOrDestroy:$g}});var Ye=g((gC,Af)=>{"use strict";var cf={};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,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,cf[e]=i}function ff(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 Gg(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Ug(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Kg(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"&&Gg(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Ug(e," argument"))i=`The ${e} ${n} ${ff(t,"type")}`;else{let s=Kg(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${ff(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");Af.exports.codes=cf});var ws=g((_C,hf)=>{"use strict";var Jg=Ye().codes.ERR_INVALID_OPT_VALUE;function Yg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Wg(e,t,r,n){var i=Yg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Jg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}hf.exports={getHighWaterMark:Wg}});var pf=g((EC,Rs)=>{typeof Object.create=="function"?Rs.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Rs.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 at=g((mC,Is)=>{try{if(Qs=x("util"),typeof Qs.inherits!="function")throw"";Is.exports=Qs.inherits}catch{Is.exports=pf()}var Qs});var gf=g((yC,df)=>{df.exports=x("util").deprecate});var Ds=g((CC,bf)=>{"use strict";bf.exports=W;function Ef(e){var t=this;this.next=null,this.entry=null,this.finish=function(){b_(t,e)}}var Tt;W.WritableState=Vt;var Vg={deprecate:gf()},mf=vs(),rn=x("buffer").Buffer,Xg=global.Uint8Array||function(){};function Zg(e){return rn.from(e)}function zg(e){return rn.isBuffer(e)||e instanceof Xg}var Os=Bs(),e_=ws(),t_=e_.getHighWaterMark,We=Ye().codes,r_=We.ERR_INVALID_ARG_TYPE,n_=We.ERR_METHOD_NOT_IMPLEMENTED,i_=We.ERR_MULTIPLE_CALLBACK,s_=We.ERR_STREAM_CANNOT_PIPE,o_=We.ERR_STREAM_DESTROYED,a_=We.ERR_STREAM_NULL_VALUES,l_=We.ERR_STREAM_WRITE_AFTER_END,u_=We.ERR_UNKNOWN_ENCODING,Ot=Os.errorOrDestroy;at()(W,mf);function f_(){}function Vt(e,t,r){Tt=Tt||lt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Tt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=t_(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){__(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 Ef(this)}Vt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Vt.prototype,"buffer",{get:Vg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var tn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(tn=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return tn.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof Vt}})):tn=function(t){return t instanceof this};function W(e){Tt=Tt||lt();var t=this instanceof Tt;if(!t&&!tn.call(W,this))return new W(e);this._writableState=new Vt(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)),mf.call(this)}W.prototype.pipe=function(){Ot(this,new s_)};function c_(e,t){var r=new l_;Ot(e,r),process.nextTick(t,r)}function A_(e,t,r,n){var i;return r===null?i=new a_:typeof r!="string"&&!t.objectMode&&(i=new r_("chunk",["string","Buffer"],r)),i?(Ot(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&zg(e);return s&&!rn.isBuffer(e)&&(e=Zg(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=f_),n.ending?c_(this,r):(s||A_(this,n,e,r))&&(n.pendingcb++,i=p_(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&yf(this,e))};W.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new u_(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function h_(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=rn.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p_(e,t,r,n,i,s){if(!r){var o=h_(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:s,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ts(e,t,!1,a,n,i,s);return l}function Ts(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new o_("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function d_(e,t,r,n,i){--t.pendingcb,r?(process.nextTick(i,n),process.nextTick(Wt,e,t),e._writableState.errorEmitted=!0,Ot(e,n)):(i(n),e._writableState.errorEmitted=!0,Ot(e,n),Wt(e,t))}function g_(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function __(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new i_;if(g_(r),t)d_(e,r,n,t,i);else{var s=Cf(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&yf(e,r),n?process.nextTick(_f,e,r,s,i):_f(e,r,s,i)}}function _f(e,t,r,n){r||E_(e,t),t.pendingcb--,n(),Wt(e,t)}function E_(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function yf(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,Ts(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 Ef(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,f=r.encoding,u=r.callback,h=t.objectMode?1:l.length;if(Ts(e,t,!1,h,l,f,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new n_("_write()"))};W.prototype._writev=null;W.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||C_(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Cf(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function m_(e,t){e._final(function(r){t.pendingcb--,r&&Ot(e,r),t.prefinished=!0,e.emit("prefinish"),Wt(e,t)})}function y_(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(m_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Wt(e,t){var r=Cf(t);if(r&&(y_(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 C_(e,t,r){t.ending=!0,Wt(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function b_(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=Os.destroy;W.prototype._undestroy=Os.undestroy;W.prototype._destroy=function(e,t){t(e)}});var lt=g((bC,Sf)=>{"use strict";var v_=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Sf.exports=Oe;var vf=Ps(),Ls=Ds();at()(Oe,vf);for(ks=v_(Ls.prototype),nn=0;nn<ks.length;nn++)sn=ks[nn],Oe.prototype[sn]||(Oe.prototype[sn]=Ls.prototype[sn]);var ks,sn,nn;function Oe(e){if(!(this instanceof Oe))return new Oe(e);vf.call(this,e),Ls.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",S_)))}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Oe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Oe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function S_(){this._writableState.ended||process.nextTick(x_,this)}function x_(e){e.end()}Object.defineProperty(Oe.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 wf=g((Ns,Bf)=>{var on=x("buffer"),De=on.Buffer;function xf(e,t){for(var r in e)t[r]=e[r]}De.from&&De.alloc&&De.allocUnsafe&&De.allocUnsafeSlow?Bf.exports=on:(xf(on,Ns),Ns.Buffer=ut);function ut(e,t,r){return De(e,t,r)}ut.prototype=Object.create(De.prototype);xf(De,ut);ut.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return De(e,t,r)};ut.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=De(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ut.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return De(e)};ut.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return on.SlowBuffer(e)}});var qs=g(Qf=>{"use strict";var Fs=wf().Buffer,Rf=Fs.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 B_(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 w_(e){var t=B_(e);if(typeof t!="string"&&(Fs.isEncoding===Rf||!Rf(e)))throw new Error("Unknown encoding: "+e);return t||e}Qf.StringDecoder=Xt;function Xt(e){this.encoding=w_(e);var t;switch(this.encoding){case"utf16le":this.text=D_,this.end=k_,t=4;break;case"utf8":this.fillLast=I_,t=4;break;case"base64":this.text=L_,this.end=P_,t=3;break;default:this.write=N_,this.end=M_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Fs.allocUnsafe(t)}Xt.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||""};Xt.prototype.end=O_;Xt.prototype.text=T_;Xt.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 Ms(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function R_(e,t,r){var n=t.length-1;if(n<r)return 0;var i=Ms(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=Ms(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=Ms(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Q_(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 I_(e){var t=this.lastTotal-this.lastNeed,r=Q_(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 T_(e,t){var r=R_(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 O_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function D_(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 k_(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 L_(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 P_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function N_(e){return e.toString(this.encoding)}function M_(e){return e&&e.length?this.write(e):""}});var an=g((SC,Of)=>{"use strict";var If=Ye().codes.ERR_STREAM_PREMATURE_CLOSE;function F_(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 q_(){}function H_(e){return e.setHeader&&typeof e.abort=="function"}function Tf(e,t,r){if(typeof t=="function")return Tf(e,null,t);t||(t={}),r=F_(r||q_);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)},l=e._readableState&&e._readableState.endEmitted,f=function(){n=!1,l=!0,i||r.call(e)},u=function(E){r.call(e,E)},h=function(){var E;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(E=new If),r.call(e,E);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(E=new If),r.call(e,E)},A=function(){e.req.on("finish",a)};return H_(e)?(e.on("complete",a),e.on("abort",h),e.req?A():e.on("request",A)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",f),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",A),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",f),e.removeListener("error",u),e.removeListener("close",h)}}Of.exports=Tf});var kf=g((xC,Df)=>{"use strict";var ln;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 j_=an(),Xe=Symbol("lastResolve"),ft=Symbol("lastReject"),Zt=Symbol("error"),un=Symbol("ended"),ct=Symbol("lastPromise"),Hs=Symbol("handlePromise"),At=Symbol("stream");function Ze(e,t){return{value:e,done:t}}function $_(e){var t=e[Xe];if(t!==null){var r=e[At].read();r!==null&&(e[ct]=null,e[Xe]=null,e[ft]=null,t(Ze(r,!1)))}}function G_(e){process.nextTick($_,e)}function U_(e,t){return function(r,n){e.then(function(){if(t[un]){r(Ze(void 0,!0));return}t[Hs](r,n)},n)}}var K_=Object.getPrototypeOf(function(){}),J_=Object.setPrototypeOf((ln={get stream(){return this[At]},next:function(){var t=this,r=this[Zt];if(r!==null)return Promise.reject(r);if(this[un])return Promise.resolve(Ze(void 0,!0));if(this[At].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[Zt]?a(t[Zt]):o(Ze(void 0,!0))})});var n=this[ct],i;if(n)i=new Promise(U_(n,this));else{var s=this[At].read();if(s!==null)return Promise.resolve(Ze(s,!1));i=new Promise(this[Hs])}return this[ct]=i,i}},Ve(ln,Symbol.asyncIterator,function(){return this}),Ve(ln,"return",function(){var t=this;return new Promise(function(r,n){t[At].destroy(null,function(i){if(i){n(i);return}r(Ze(void 0,!0))})})}),ln),K_),Y_=function(t){var r,n=Object.create(J_,(r={},Ve(r,At,{value:t,writable:!0}),Ve(r,Xe,{value:null,writable:!0}),Ve(r,ft,{value:null,writable:!0}),Ve(r,Zt,{value:null,writable:!0}),Ve(r,un,{value:t._readableState.endEmitted,writable:!0}),Ve(r,Hs,{value:function(s,o){var a=n[At].read();a?(n[ct]=null,n[Xe]=null,n[ft]=null,s(Ze(a,!1))):(n[Xe]=s,n[ft]=o)},writable:!0}),r));return n[ct]=null,j_(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[ft];s!==null&&(n[ct]=null,n[Xe]=null,n[ft]=null,s(i)),n[Zt]=i;return}var o=n[Xe];o!==null&&(n[ct]=null,n[Xe]=null,n[ft]=null,o(Ze(void 0,!0))),n[un]=!0}),t.on("readable",G_.bind(null,n)),n};Df.exports=Y_});var Mf=g((BC,Nf)=>{"use strict";function Lf(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(f){r(f);return}a.done?t(l):Promise.resolve(l).then(n,i)}function W_(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Lf(s,n,i,o,a,"next",l)}function a(l){Lf(s,n,i,o,a,"throw",l)}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 V_(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){X_(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 X_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Z_=Ye().codes.ERR_INVALID_ARG_TYPE;function z_(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 Z_("iterable",["Iterable"],t);var i=new e(V_({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=W_(function*(){try{var l=yield n.next(),f=l.value,u=l.done;u?i.push(null):i.push(yield f)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}Nf.exports=z_});var Ps=g((RC,Yf)=>{"use strict";Yf.exports=L;var Dt;L.ReadableState=jf;var wC=x("events").EventEmitter,Hf=function(t,r){return t.listeners(r).length},er=vs(),fn=x("buffer").Buffer,e0=global.Uint8Array||function(){};function t0(e){return fn.from(e)}function r0(e){return fn.isBuffer(e)||e instanceof e0}var js=x("util"),I;js&&js.debuglog?I=js.debuglog("stream"):I=function(){};var n0=af(),Ws=Bs(),i0=ws(),s0=i0.getHighWaterMark,cn=Ye().codes,o0=cn.ERR_INVALID_ARG_TYPE,a0=cn.ERR_STREAM_PUSH_AFTER_EOF,l0=cn.ERR_METHOD_NOT_IMPLEMENTED,u0=cn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,kt,$s,Gs;at()(L,er);var zt=Ws.errorOrDestroy,Us=["error","close","destroy","pause","resume"];function f0(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 jf(e,t,r){Dt=Dt||lt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Dt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=s0(this,e,"readableHighWaterMark",r),this.buffer=new n0,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&&(kt||(kt=qs().StringDecoder),this.decoder=new kt(e.encoding),this.encoding=e.encoding)}function L(e){if(Dt=Dt||lt(),!(this instanceof L))return new L(e);var t=this instanceof Dt;this._readableState=new jf(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),er.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});L.prototype.destroy=Ws.destroy;L.prototype._undestroy=Ws.undestroy;L.prototype._destroy=function(e,t){t(e)};L.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=fn.from(e,t),t=""),n=!0),$f(this,e,t,!1,n)};L.prototype.unshift=function(e){return $f(this,e,null,!0,!1)};function $f(e,t,r,n,i){I("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,h0(e,s);else{var o;if(i||(o=c0(s,t)),o)zt(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==fn.prototype&&(t=t0(t)),n)s.endEmitted?zt(e,new u0):Ks(e,s,t,!0);else if(s.ended)zt(e,new a0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Ks(e,s,t,!1):Ys(e,s)):Ks(e,s,t,!1)}else n||(s.reading=!1,Ys(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ks(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&&An(e)),Ys(e,t)}function c0(e,t){var r;return!r0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new o0("chunk",["string","Buffer","Uint8Array"],t)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(e){kt||(kt=qs().StringDecoder);var t=new kt(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 Ff=1073741824;function A0(e){return e>=Ff?e=Ff:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function qf(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=A0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}L.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Js(this):An(this),null;if(e=qf(e,t),e===0&&t.ended)return t.length===0&&Js(this),null;var n=t.needReadable;I("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,I("length less than watermark",n)),t.ended||t.reading?(n=!1,I("reading or ended",n)):n&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=qf(r,t)));var i;return e>0?i=Kf(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&&Js(this)),i!==null&&this.emit("data",i),i};function h0(e,t){if(I("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?An(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Gf(e)))}}function An(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Gf,e))}function Gf(e){var t=e._readableState;I("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Vs(e)}function Ys(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(p0,e,t))}function p0(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(I("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}L.prototype._read=function(e){zt(this,new l0("_read()"))};L.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,I("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:_;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(v,b){I("onunpipe"),v===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,u())}function a(){I("onend"),e.end()}var l=d0(r);e.on("drain",l);var f=!1;function u(){I("cleanup"),e.removeListener("close",C),e.removeListener("finish",E),e.removeListener("drain",l),e.removeListener("error",A),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",h),f=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(v){I("ondata");var b=e.write(v);I("dest.write",b),b===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Jf(n.pipes,e)!==-1)&&!f&&(I("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function A(v){I("onerror",v),_(),e.removeListener("error",A),Hf(e,"error")===0&&zt(e,v)}f0(e,"error",A);function C(){e.removeListener("finish",E),_()}e.once("close",C);function E(){I("onfinish"),e.removeListener("close",C),_()}e.once("finish",E);function _(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(I("pipe resume"),r.resume()),e};function d0(e){return function(){var r=e._readableState;I("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Hf(e,"data")&&(r.flowing=!0,Vs(e))}}L.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Jf(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};L.prototype.on=function(e,t){var r=er.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,I("on readable",n.length,n.reading),n.length?An(this):n.reading||process.nextTick(g0,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(e,t){var r=er.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(Uf,this),r};L.prototype.removeAllListeners=function(e){var t=er.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Uf,this),t};function Uf(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 g0(e){I("readable nexttick read 0"),e.read(0)}L.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,_0(this,e)),e.paused=!1,this};function _0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(E0,e,t))}function E0(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Vs(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Vs(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(I("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<Us.length;s++)e.on(Us[s],this.emit.bind(this,Us[s]));return this._read=function(o){I("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return $s===void 0&&($s=kf()),$s(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});L._fromList=Kf;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Kf(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 Js(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(m0,t,e))}function m0(e,t){if(I("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(L.from=function(e,t){return Gs===void 0&&(Gs=Mf()),Gs(L,e,t)});function Jf(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var Xs=g((QC,Vf)=>{"use strict";Vf.exports=qe;var hn=Ye().codes,y0=hn.ERR_METHOD_NOT_IMPLEMENTED,C0=hn.ERR_MULTIPLE_CALLBACK,b0=hn.ERR_TRANSFORM_ALREADY_TRANSFORMING,v0=hn.ERR_TRANSFORM_WITH_LENGTH_0,pn=lt();at()(qe,pn);function S0(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new C0);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 qe(e){if(!(this instanceof qe))return new qe(e);pn.call(this,e),this._transformState={afterTransform:S0.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",x0)}function x0(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Wf(e,t,r)}):Wf(this,null,null)}qe.prototype.push=function(e,t){return this._transformState.needTransform=!1,pn.prototype.push.call(this,e,t)};qe.prototype._transform=function(e,t,r){r(new y0("_transform()"))};qe.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)}};qe.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};qe.prototype._destroy=function(e,t){pn.prototype._destroy.call(this,e,function(r){t(r)})};function Wf(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new v0;if(e._transformState.transforming)throw new b0;return e.push(null)}});var zf=g((IC,Zf)=>{"use strict";Zf.exports=tr;var Xf=Xs();at()(tr,Xf);function tr(e){if(!(this instanceof tr))return new tr(e);Xf.call(this,e)}tr.prototype._transform=function(e,t,r){r(null,e)}});var ic=g((TC,nc)=>{"use strict";var Zs;function B0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var rc=Ye().codes,w0=rc.ERR_MISSING_ARGS,R0=rc.ERR_STREAM_DESTROYED;function ec(e){if(e)throw e}function Q0(e){return e.setHeader&&typeof e.abort=="function"}function I0(e,t,r,n){n=B0(n);var i=!1;e.on("close",function(){i=!0}),Zs===void 0&&(Zs=an()),Zs(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,Q0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new R0("pipe"))}}}function tc(e){e()}function T0(e,t){return e.pipe(t)}function O0(e){return!e.length||typeof e[e.length-1]!="function"?ec:e.pop()}function D0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=O0(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new w0("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,f=a>0;return I0(o,l,f,function(u){i||(i=u),u&&s.forEach(tc),!l&&(s.forEach(tc),n(i))})});return t.reduce(T0)}nc.exports=D0});var sc=g((ge,nr)=>{var rr=x("stream");process.env.READABLE_STREAM==="disable"&&rr?(nr.exports=rr.Readable,Object.assign(nr.exports,rr),nr.exports.Stream=rr):(ge=nr.exports=Ps(),ge.Stream=rr||ge,ge.Readable=ge,ge.Writable=Ds(),ge.Duplex=lt(),ge.Transform=Xs(),ge.PassThrough=zf(),ge.finished=an(),ge.pipeline=ic())});var lc=g((OC,ac)=>{"use strict";var{Buffer:Ce}=x("buffer"),oc=Symbol.for("BufferList");function j(e){if(!(this instanceof j))return new j(e);j._init.call(this,e)}j._init=function(t){Object.defineProperty(this,oc,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};j.prototype._new=function(t){return new j(t)};j.prototype._offset=function(t){if(t===0)return[0,0];let r=0;for(let n=0;n<this._bufs.length;n++){let i=r+this._bufs[n].length;if(t<i||n===this._bufs.length-1)return[n,t-r];r=i}};j.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(let n=0;n<t;n++)r+=this._bufs[n].length;return r};j.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};j.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};j.prototype.copy=function(t,r,n,i){if((typeof n!="number"||n<0)&&(n=0),(typeof i!="number"||i>this.length)&&(i=this.length),n>=this.length||i<=0)return t||Ce.alloc(0);let s=!!t,o=this._offset(n),a=i-n,l=a,f=s&&r||0,u=o[1];if(n===0&&i===this.length){if(!s)return this._bufs.length===1?this._bufs[0]:Ce.concat(this._bufs,this.length);for(let h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,f),f+=this._bufs[h].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=Ce.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let A=this._bufs[h].length-u;if(l>A)this._bufs[h].copy(t,f,u),f+=A;else{this._bufs[h].copy(t,f,u,u+l),f+=A;break}l-=A,u&&(u=0)}return t.length>f?t.slice(0,f):t};j.prototype.shallowSlice=function(t,r){if(t=t||0,r=typeof r!="number"?this.length:r,t<0&&(t+=this.length),r<0&&(r+=this.length),t===r)return this._new();let n=this._offset(t),i=this._offset(r),s=this._bufs.slice(n[0],i[0]+1);return i[1]===0?s.pop():s[s.length-1]=s[s.length-1].slice(0,i[1]),n[1]!==0&&(s[0]=s[0].slice(n[1])),this._new(s)};j.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};j.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};j.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};j.prototype.append=function(t){if(t==null)return this;if(t.buffer)this._appendBuffer(Ce.from(t.buffer,t.byteOffset,t.byteLength));else if(Array.isArray(t))for(let r=0;r<t.length;r++)this.append(t[r]);else if(this._isBufferList(t))for(let r=0;r<t._bufs.length;r++)this.append(t._bufs[r]);else typeof t=="number"&&(t=t.toString()),this._appendBuffer(Ce.from(t));return this};j.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};j.prototype.indexOf=function(e,t,r){if(r===void 0&&typeof t=="string"&&(r=t,t=void 0),typeof e=="function"||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if(typeof e=="number"?e=Ce.from([e]):typeof e=="string"?e=Ce.from(e,r):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Ce.from(e.buffer,e.byteOffset,e.byteLength):Ce.isBuffer(e)||(e=Ce.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),e.length===0)return t>this.length?this.length:t;let n=this._offset(t),i=n[0],s=n[1];for(;i<this._bufs.length;i++){let o=this._bufs[i];for(;s<o.length;)if(o.length-s>=e.length){let l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};j.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let r=0;r<t.length;r++)if(this.get(e+r)!==t[r])return!1;return!0};(function(){let e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(let t in e)(function(r){e[r]===null?j.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:j.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();j.prototype._isBufferList=function(t){return t instanceof j||j.isBufferList(t)};j.isBufferList=function(t){return t!=null&&t[oc]};ac.exports=j});var uc=g((DC,dn)=>{"use strict";var zs=sc().Duplex,k0=at(),ir=lc();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}ir._init.call(this,e),zs.call(this)}k0(ie,zs);Object.assign(ie.prototype,ir.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){zs.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 ir||ie.isBufferList(t)};ie.isBufferList=ir.isBufferList;dn.exports=ie;dn.exports.BufferListStream=ie;dn.exports.BufferList=ir});var Bo=g((bv,Pc)=>{var xn=x("fs"),Lc=x("path"),KE=x("os");function So(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function xo(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var JE={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return So(e,"RegExp")},string:function(e){return So(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return So(e,"Number")},exists:function(e){return xn.existsSync(e)},file:function(e){return xo(e,function(t){return xn.statSync(t).isFile()})},samePath:function(e,t){return Lc.resolve(e)===Lc.resolve(t)},directory:function(e){return xo(e,function(t){return xn.statSync(t).isDirectory()})},symbolicLink:function(e){return xo(e,function(t){return xn.lstatSync(t).isSymbolicLink()})},windows:function(){return KE.platform()==="win32"}};Pc.exports=JE});var Hc=g((vv,qc)=>{var fr=x("fs"),Nc=x("os"),wo=x("path"),Bn=Bo(),ur,YE=Nc.tmpdir&&Nc.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function Fc(){this.stack=[]}Fc.prototype={create:function(e,t){var r=wo.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)fr.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)fr.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&Bn.file(n)?fr.unlinkSync(n):r==="dir"&&Bn.directory(n)&&fr.rmdirSync(n)}}finally{Bn.func(e)&&e()}}};var Mc=!1;qc.exports=function e(t){if(!Bn.func(t))return!1;if(ur!==void 0)return t(ur);if(!Mc)Mc=!0;else return setTimeout(function(){e(t)},300);var r=new Fc,n=r.create("dir",YE),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=fr.watch(n,o)}catch(f){if(f.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(ur=!1);throw f}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){t(ur=!1)})},200);a.on("change",function(f,u){wo.basename(s)===wo.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){t(ur=!0)}))}),r.write(s)}});var Zc=g((Sv,To)=>{var Qo=x("fs"),cr=x("path"),$c=x("util"),Gc=x("events"),Uc=Hc(),q=Bo(),WE="update",Kc="remove",jc=Symbol("skip");function VE(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function Io(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function XE(e){return e.reduce(function(t,r){return t.concat(r)},[])}function ZE(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function zE(e){return q.func(e)?function(t,r){e(t,!1)&&r()}:q.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function em(e){return e.map(function(t){return q.exists(t)?[WE,t]:[Kc,t]})}function tm(e){var t=Io(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=VE(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return q.exists(s)}))}return em(t)}function rm(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;q.number(s)||(s=200);function o(){tm(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,l){n.push(l),r||(r=setTimeout(o,s))}}function Jc(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function Yc(e,t,r=function(){}){q.directory(e)?Qo.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=cr.join(e,s);q.directory(o)&&t(o)}),r()}):r()}function nm(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function im(){return function(){}}function Wc(e,t){return!q.func(t)||t(e,jc)!==jc}var Vc=$c.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Le(){Gc.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}$c.inherits(Le,Gc.EventEmitter);Le.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Le.prototype.isClosed=function(){return this._isClosed};Le.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),Yc(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};q.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(Xc,this)))};Le.prototype.getWatchedPaths=function(e){if(q.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function Ro(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function Xc(e){e.emit("close")}Le.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=cr.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var l=a;q.nil(l)&&(l=""),l=cr.join(t.fpath,l),t.options.recursive&&Uc(function(f){if(!f){var u=cr.resolve(l);if(!q.exists(l))r.close(u);else{var h=q.directory(l)&&!r.watchers[u]&&Wc(l,t.options.filter);h&&r.watchDirectory(l,t.options)}}}),s(o,l)}},s=rm(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var l=zE(t.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(q.windows()&&o.code==="EPERM"?(e.emit("change",Kc,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Le.prototype.watchFile=function(e,t,r){var n=cr.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=Qo.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return q.samePath(o,e)}}),q.func(r)&&(r.length===1&&Vc(),this.on("change",r))};Le.prototype.watchDirectory=function(e,t,r,n=im){var i=this,s=n();Uc(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var l=Qo.watch(e,a);i.add(l,{type:"dir",fpath:e,options:t}),q.func(r)&&(r.length===1&&Vc(),i.on("change",r)),t.recursive&&!o&&Yc(e,function(f){Wc(f,t.filter)&&i.watchDirectory(f,t,null,n)},n()),s()})};function sm(e){var t=new Le,r=Jc(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||Ro(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(Xc,t)},t.getWatchedPaths=function(i){if(q.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=Io(XE(o));i(a)})}},t.expose()}function wn(e,t,r){var n=new Le;if(q.buffer(e)&&(e=e.toString()),!q.array(e)&&!q.exists(e)&&n.emit("error",new Error(e+" does not exist.")),q.string(t)&&(t={encoding:t}),q.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?ZE(t.encoding):t.encoding="utf8",q.array(e)){if(e.length===1)return wn(e[0],t,r);var i=Jc();return sm(Io(e).map(function(o){var a=wn(o,t);return q.func(r)&&a.on("change",i(r)),a}))}if(q.file(e))n.watchFile(e,t,r),Ro(n);else if(q.directory(e)){var s=nm(function(){Ro(n)});n.watchDirectory(e,t,r,s)}return n.expose()}To.exports=wn;To.exports.default=wn});import{constants as IE,existsSync as yo}from"fs";import{copyFile as TE,mkdir as OE,readFile as Ic,rm as xc,writeFile as DE}from"fs/promises";import{dirname as Tc,extname as kE,isAbsolute as LE,resolve as PE,resolve as lr}from"path";import{build as Eo,transform as NE}from"esbuild";var Do=(e=0)=>t=>`\x1B[${t+e}m`,ko=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Lo=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function fA(){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=Do(),t.color.ansi256=ko(),t.color.ansi16m=Lo(),t.bgColor.ansi=Do(10),t.bgColor.ansi256=ko(10),t.bgColor.ansi16m=Lo(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 l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%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 cA=fA(),ye=cA;import Qn from"node:process";import AA from"node:os";import Po from"node:tty";function Ae(e,t=Qn.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:X}=Qn,gr;Ae("no-color")||Ae("no-colors")||Ae("color=false")||Ae("color=never")?gr=0:(Ae("color")||Ae("colors")||Ae("color=true")||Ae("color=always"))&&(gr=1);function hA(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function pA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function dA(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=hA();n!==void 0&&(gr=n);let i=r?gr:n;if(i===0)return 0;if(r){if(Ae("color=16m")||Ae("color=full")||Ae("color=truecolor"))return 3;if(Ae("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(Qn.platform==="win32"){let o=AA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function No(e,t={}){let r=dA(e,{streamIsTTY:e&&e.isTTY,...t});return pA(r)}var gA={stdout:No({isTTY:Po.isatty(1)}),stderr:No({isTTY:Po.isatty(2)})},Mo=gA;function Fo(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 qo(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
4
+ var oA=Object.create;var Po=Object.defineProperty;var aA=Object.getOwnPropertyDescriptor;var lA=Object.getOwnPropertyNames;var uA=Object.getPrototypeOf,cA=Object.prototype.hasOwnProperty;var S=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,r)=>(typeof require!="undefined"?require:t)[r]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')});var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of lA(t))!cA.call(e,i)&&i!==r&&Po(e,i,{get:()=>t[i],enumerable:!(n=aA(t,i))||n.enumerable});return e};var Pe=(e,t,r)=>(r=e!=null?oA(uA(e)):{},fA(t||!e||!e.__esModule?Po(r,"default",{value:e,enumerable:!0}):r,e));var Yo=g(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.splitWhen=_t.flatten=void 0;function SA(e){return e.reduce((t,r)=>[].concat(t,r),[])}_t.flatten=SA;function BA(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}_t.splitWhen=BA});var Wo=g(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.isEnoentCodeError=void 0;function wA(e){return e.code==="ENOENT"}mr.isEnoentCodeError=wA});var Vo=g(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.createDirentFromStats=void 0;var Pn=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function RA(e,t){return new Pn(e,t)}yr.createDirentFromStats=RA});var Xo=g(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.removeLeadingDotSegment=we.escape=we.makeAbsolute=we.unixify=void 0;var QA=S("path"),IA=2,TA=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;function OA(e){return e.replace(/\\/g,"/")}we.unixify=OA;function DA(e,t){return QA.resolve(e,t)}we.makeAbsolute=DA;function kA(e){return e.replace(TA,"\\$2")}we.escape=kA;function LA(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(IA)}return e}we.removeLeadingDotSegment=LA});var zo=g((Dm,Zo)=>{Zo.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var ra=g((km,ta)=>{var PA=zo(),ea={"{":"}","(":")","[":"]"},NA=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var l=ea[a];if(l){var c=e.indexOf(l,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},MA=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=ea[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};ta.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(PA(t))return!0;var n=NA;return r&&r.strict===!1&&(n=MA),n(t)}});var ia=g((Lm,na)=>{"use strict";var FA=ra(),qA=S("path").posix.dirname,jA=S("os").platform()==="win32",Nn="/",HA=/\\/g,$A=/[\{\[].*[\}\]]$/,GA=/(^|[^\\])([\{\[]|\([^\)]+$)/,UA=/\\([\!\*\?\|\[\]\(\)\{\}])/g;na.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&jA&&t.indexOf(Nn)<0&&(t=t.replace(HA,Nn)),$A.test(t)&&(t+=Nn),t+="a";do t=qA(t);while(FA(t)||GA.test(t));return t.replace(UA,"$1")}});var Cr=g(pe=>{"use strict";pe.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;pe.find=(e,t)=>e.nodes.find(r=>r.type===t);pe.exceedsLimit=(e,t,r=1,n)=>n===!1||!pe.isInteger(e)||!pe.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;pe.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];!n||(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};pe.encloseBrace=e=>e.type!=="brace"?!1:e.commas>>0+e.ranges>>0===0?(e.invalid=!0,!0):!1;pe.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:e.commas>>0+e.ranges>>0===0||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;pe.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;pe.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);pe.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];Array.isArray(s)?r(s,t):s!==void 0&&t.push(s)}return t};return r(e),t}});var br=g((Nm,oa)=>{"use strict";var sa=Cr();oa.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&sa.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&sa.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let l of n.nodes)a+=r(l);return a};return r(e)}});var la=g((Mm,aa)=>{"use strict";aa.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var _a=g((Fm,ga)=>{"use strict";var ua=la(),et=(e,t,r)=>{if(ua(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(ua(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),l=e+":"+t+"="+i+s+o+a;if(et.cache.hasOwnProperty(l))return et.cache[l].result;let c=Math.min(e,t),u=Math.max(e,t);if(Math.abs(c-u)===1){let _=e+"|"+t;return n.capture?`(${_})`:n.wrap===!1?_:`(?:${_})`}let h=da(e)||da(t),A={min:e,max:t,a:c,b:u},C=[],E=[];if(h&&(A.isPadded=h,A.maxLen=String(A.max).length),c<0){let _=u<0?Math.abs(u):1;E=ca(_,Math.abs(c),A,n),c=A.a=0}return u>=0&&(C=ca(c,u,A,n)),A.negatives=E,A.positives=C,A.result=KA(E,C,n),n.capture===!0?A.result=`(${A.result})`:n.wrap!==!1&&C.length+E.length>1&&(A.result=`(?:${A.result})`),et.cache[l]=A,A.result};function KA(e,t,r){let n=Mn(e,t,"-",!1,r)||[],i=Mn(t,e,"",!1,r)||[],s=Mn(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function JA(e,t){let r=1,n=1,i=Aa(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Aa(e,r);for(i=ha(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=ha(t+1,n)-1;return s=[...s],s.sort(VA),s}function YA(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=WA(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[l,c]=n[a];l===c?s+=l:l!=="0"||c!=="9"?s+=XA(l,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function ca(e,t,r,n){let i=JA(e,t),s=[],o=e,a;for(let l=0;l<i.length;l++){let c=i[l],u=YA(String(o),String(c),n),h="";if(!r.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+pa(a.count),o=c+1;continue}r.isPadded&&(h=ZA(c,r,n)),u.string=h+u.pattern+pa(u.count),s.push(u),o=c+1,a=u}return s}function Mn(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!fa(t,"string",a)&&s.push(r+a),n&&fa(t,"string",a)&&s.push(r+a)}return s}function WA(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function VA(e,t){return e>t?1:t>e?-1:0}function fa(e,t,r){return e.some(n=>n[t]===r)}function Aa(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function ha(e,t){return e-e%Math.pow(10,t)}function pa(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function XA(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function da(e){return/^-?(0+)\d/.test(e)}function ZA(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}et.cache={};et.clearCache=()=>et.cache={};ga.exports=et});var jn=g((qm,Sa)=>{"use strict";var zA=S("util"),ya=_a(),Ea=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),eh=e=>t=>e===!0?Number(t):String(t),Fn=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ht=e=>Number.isInteger(+e),qn=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},th=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,rh=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},ma=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},nh=(e,t)=>{e.negatives.sort((o,a)=>o<a?-1:o>a?1:0),e.positives.sort((o,a)=>o<a?-1:o>a?1:0);let r=t.capture?"":"?:",n="",i="",s;return e.positives.length&&(n=e.positives.join("|")),e.negatives.length&&(i=`-(${r}${e.negatives.join("|")})`),n&&i?s=`${n}|${i}`:s=n||i,t.wrap?`(${r}${s})`:s},Ca=(e,t,r,n)=>{if(r)return ya(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},ba=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return ya(e,t,r)},va=(...e)=>new RangeError("Invalid range arguments: "+zA.inspect(...e)),xa=(e,t,r)=>{if(r.strictRanges===!0)throw va([e,t]);return[]},ih=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},sh=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw va([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),l=String(t),c=String(r);r=Math.max(Math.abs(r),1);let u=qn(a)||qn(l)||qn(c),h=u?Math.max(a.length,l.length,c.length):0,A=u===!1&&th(e,t,n)===!1,C=n.transform||eh(A);if(n.toRegex&&r===1)return Ca(ma(e,h),ma(t,h),!0,n);let E={negatives:[],positives:[]},_=D=>E[D<0?"negatives":"positives"].push(Math.abs(D)),v=[],b=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?_(i):v.push(rh(C(i,b),h,A)),i=o?i-r:i+r,b++;return n.toRegex===!0?r>1?nh(E,n):ba(v,null,{wrap:!1,...n}):v},oh=(e,t,r=1,n={})=>{if(!Ht(e)&&e.length>1||!Ht(t)&&t.length>1)return xa(e,t,n);let i=n.transform||(A=>String.fromCharCode(A)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,l=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Ca(l,c,!1,n);let u=[],h=0;for(;a?s>=o:s<=o;)u.push(i(s,h)),s=a?s-r:s+r,h++;return n.toRegex===!0?ba(u,null,{wrap:!1,options:n}):u},vr=(e,t,r,n={})=>{if(t==null&&Fn(e))return[e];if(!Fn(e)||!Fn(t))return xa(e,t,n);if(typeof r=="function")return vr(e,t,1,{transform:r});if(Ea(r))return vr(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ht(r)?Ht(e)&&Ht(t)?sh(e,t,r,i):oh(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Ea(r)?ih(r,i):vr(e,t,1,r)};Sa.exports=vr});var Ra=g((jm,wa)=>{"use strict";var ah=jn(),Ba=Cr(),lh=(e,t={})=>{let r=(n,i={})=>{let s=Ba.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,l=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0||n.isClose===!0)return l+n.value;if(n.type==="open")return a?l+n.value:"(";if(n.type==="close")return a?l+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let u=Ba.reduce(n.nodes),h=ah(...u,{...t,wrap:!1,toRegex:!0});if(h.length!==0)return u.length>1&&h.length>1?`(${h})`:h}if(n.nodes)for(let u of n.nodes)c+=r(u,n);return c};return r(e)};wa.exports=lh});var Ta=g((Hm,Ia)=>{"use strict";var uh=jn(),Qa=br(),Et=Cr(),tt=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?Et.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(tt(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?tt(i,s,r):i+s);return Et.flatten(n)},ch=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(tt(a.pop(),Qa(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(tt(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let h=Et.reduce(i.nodes);if(Et.exceedsLimit(...h,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let A=uh(...h,t);A.length===0&&(A=Qa(i,t)),a.push(tt(a.pop(),A)),i.nodes=[];return}let l=Et.encloseBrace(i),c=i.queue,u=i;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let h=0;h<i.nodes.length;h++){let A=i.nodes[h];if(A.type==="comma"&&i.type==="brace"){h===1&&c.push(""),c.push("");continue}if(A.type==="close"){a.push(tt(a.pop(),c,l));continue}if(A.value&&A.type!=="open"){c.push(tt(c.pop(),A.value));continue}A.nodes&&n(A,i)}return c};return Et.flatten(n(e))};Ia.exports=ch});var Da=g(($m,Oa)=>{"use strict";Oa.exports={MAX_LENGTH:1024*64,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
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 Ma=g((Gm,Na)=>{"use strict";var fh=br(),{MAX_LENGTH:ka,CHAR_BACKSLASH:Hn,CHAR_BACKTICK:Ah,CHAR_COMMA:hh,CHAR_DOT:ph,CHAR_LEFT_PARENTHESES:dh,CHAR_RIGHT_PARENTHESES:gh,CHAR_LEFT_CURLY_BRACE:_h,CHAR_RIGHT_CURLY_BRACE:Eh,CHAR_LEFT_SQUARE_BRACKET:La,CHAR_RIGHT_SQUARE_BRACKET:Pa,CHAR_DOUBLE_QUOTE:mh,CHAR_SINGLE_QUOTE:yh,CHAR_NO_BREAK_SPACE:Ch,CHAR_ZERO_WIDTH_NOBREAK_SPACE:bh}=Da(),vh=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(ka,r.maxLength):ka;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,l=0,c=e.length,u=0,h=0,A,C={},E=()=>e[u++],_=v=>{if(v.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&v.type==="text"){a.value+=v.value;return}return o.nodes.push(v),v.parent=o,v.prev=a,a=v,v};for(_({type:"bos"});u<c;)if(o=s[s.length-1],A=E(),!(A===bh||A===Ch)){if(A===Hn){_({type:"text",value:(t.keepEscaping?A:"")+E()});continue}if(A===Pa){_({type:"text",value:"\\"+A});continue}if(A===La){l++;let v=!0,b;for(;u<c&&(b=E());){if(A+=b,b===La){l++;continue}if(b===Hn){A+=E();continue}if(b===Pa&&(l--,l===0))break}_({type:"text",value:A});continue}if(A===dh){o=_({type:"paren",nodes:[]}),s.push(o),_({type:"text",value:A});continue}if(A===gh){if(o.type!=="paren"){_({type:"text",value:A});continue}o=s.pop(),_({type:"text",value:A}),o=s[s.length-1];continue}if(A===mh||A===yh||A===Ah){let v=A,b;for(t.keepQuotes!==!0&&(A="");u<c&&(b=E());){if(b===Hn){A+=b+E();continue}if(b===v){t.keepQuotes===!0&&(A+=b);break}A+=b}_({type:"text",value:A});continue}if(A===_h){h++;let v=a.value&&a.value.slice(-1)==="$"||o.dollar===!0;o=_({type:"brace",open:!0,close:!1,dollar:v,depth:h,commas:0,ranges:0,nodes:[]}),s.push(o),_({type:"open",value:A});continue}if(A===Eh){if(o.type!=="brace"){_({type:"text",value:A});continue}let v="close";o=s.pop(),o.close=!0,_({type:v,value:A}),h--,o=s[s.length-1];continue}if(A===hh&&h>0){if(o.ranges>0){o.ranges=0;let v=o.nodes.shift();o.nodes=[v,{type:"text",value:fh(o)}]}_({type:"comma",value:A}),o.commas++;continue}if(A===ph&&h>0&&o.commas===0){let v=o.nodes;if(h===0||v.length===0){_({type:"text",value:A});continue}if(a.type==="dot"){if(o.range=[],a.value+=A,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"){v.pop();let b=v[v.length-1];b.value+=a.value+A,a=b,o.ranges--;continue}_({type:"dot",value:A});continue}_({type:"text",value:A})}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 v=s[s.length-1],b=v.nodes.indexOf(o);v.nodes.splice(b,1,...o.nodes)}while(s.length>0);return _({type:"eos"}),i};Na.exports=vh});var ja=g((Um,qa)=>{"use strict";var Fa=br(),xh=Ra(),Sh=Ta(),Bh=Ma(),ce=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=ce.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(ce.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};ce.parse=(e,t={})=>Bh(e,t);ce.stringify=(e,t={})=>Fa(typeof e=="string"?ce.parse(e,t):e,t);ce.compile=(e,t={})=>(typeof e=="string"&&(e=ce.parse(e,t)),xh(e,t));ce.expand=(e,t={})=>{typeof e=="string"&&(e=ce.parse(e,t));let r=Sh(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};ce.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?ce.compile(e,t):ce.expand(e,t);qa.exports=ce});var $t=g((Km,Ka)=>{"use strict";var wh=S("path"),Re="\\\\/",Ha=`[^${Re}]`,Ne="\\.",Rh="\\+",Qh="\\?",xr="\\/",Ih="(?=.)",$a="[^/]",$n=`(?:${xr}|$)`,Ga=`(?:^|${xr})`,Gn=`${Ne}{1,2}${$n}`,Th=`(?!${Ne})`,Oh=`(?!${Ga}${Gn})`,Dh=`(?!${Ne}{0,1}${$n})`,kh=`(?!${Gn})`,Lh=`[^.${xr}]`,Ph=`${$a}*?`,Ua={DOT_LITERAL:Ne,PLUS_LITERAL:Rh,QMARK_LITERAL:Qh,SLASH_LITERAL:xr,ONE_CHAR:Ih,QMARK:$a,END_ANCHOR:$n,DOTS_SLASH:Gn,NO_DOT:Th,NO_DOTS:Oh,NO_DOT_SLASH:Dh,NO_DOTS_SLASH:kh,QMARK_NO_DOT:Lh,STAR:Ph,START_ANCHOR:Ga},Nh={...Ua,SLASH_LITERAL:`[${Re}]`,QMARK:Ha,STAR:`${Ha}*?`,DOTS_SLASH:`${Ne}{1,2}(?:[${Re}]|$)`,NO_DOT:`(?!${Ne})`,NO_DOTS:`(?!(?:^|[${Re}])${Ne}{1,2}(?:[${Re}]|$))`,NO_DOT_SLASH:`(?!${Ne}{0,1}(?:[${Re}]|$))`,NO_DOTS_SLASH:`(?!${Ne}{1,2}(?:[${Re}]|$))`,QMARK_NO_DOT:`[^.${Re}]`,START_ANCHOR:`(?:^|[${Re}])`,END_ANCHOR:`(?:[${Re}]|$)`},Mh={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"};Ka.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Mh,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:wh.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?Nh:Ua}}});var Gt=g(ae=>{"use strict";var Fh=S("path"),qh=process.platform==="win32",{REGEX_BACKSLASH:jh,REGEX_REMOVE_BACKSLASH:Hh,REGEX_SPECIAL_CHARS:$h,REGEX_SPECIAL_CHARS_GLOBAL:Gh}=$t();ae.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ae.hasRegexChars=e=>$h.test(e);ae.isRegexChar=e=>e.length===1&&ae.hasRegexChars(e);ae.escapeRegex=e=>e.replace(Gh,"\\$1");ae.toPosixSlashes=e=>e.replace(jh,"/");ae.removeBackslashes=e=>e.replace(Hh,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:qh===!0||Fh.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 el=g((Ym,za)=>{"use strict";var Ja=Gt(),{CHAR_ASTERISK:Un,CHAR_AT:Uh,CHAR_BACKWARD_SLASH:Ut,CHAR_COMMA:Kh,CHAR_DOT:Kn,CHAR_EXCLAMATION_MARK:Jn,CHAR_FORWARD_SLASH:Za,CHAR_LEFT_CURLY_BRACE:Yn,CHAR_LEFT_PARENTHESES:Wn,CHAR_LEFT_SQUARE_BRACKET:Jh,CHAR_PLUS:Yh,CHAR_QUESTION_MARK:Ya,CHAR_RIGHT_CURLY_BRACE:Wh,CHAR_RIGHT_PARENTHESES:Wa,CHAR_RIGHT_SQUARE_BRACKET:Vh}=$t(),Va=e=>e===Za||e===Ut,Xa=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Xh=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],l=e,c=-1,u=0,h=0,A=!1,C=!1,E=!1,_=!1,v=!1,b=!1,D=!1,P=!1,U=!1,B=!1,j=0,R,x,M={value:"",depth:0,isGlob:!1},z=()=>c>=n,f=()=>l.charCodeAt(c+1),k=()=>(R=x,l.charCodeAt(++c));for(;c<n;){x=k();let se;if(x===Ut){D=M.backslashes=!0,x=k(),x===Yn&&(b=!0);continue}if(b===!0||x===Yn){for(j++;z()!==!0&&(x=k());){if(x===Ut){D=M.backslashes=!0,k();continue}if(x===Yn){j++;continue}if(b!==!0&&x===Kn&&(x=k())===Kn){if(A=M.isBrace=!0,E=M.isGlob=!0,B=!0,i===!0)continue;break}if(b!==!0&&x===Kh){if(A=M.isBrace=!0,E=M.isGlob=!0,B=!0,i===!0)continue;break}if(x===Wh&&(j--,j===0)){b=!1,A=M.isBrace=!0,B=!0;break}}if(i===!0)continue;break}if(x===Za){if(s.push(c),o.push(M),M={value:"",depth:0,isGlob:!1},B===!0)continue;if(R===Kn&&c===u+1){u+=2;continue}h=c+1;continue}if(r.noext!==!0&&(x===Yh||x===Uh||x===Un||x===Ya||x===Jn)===!0&&f()===Wn){if(E=M.isGlob=!0,_=M.isExtglob=!0,B=!0,x===Jn&&c===u&&(U=!0),i===!0){for(;z()!==!0&&(x=k());){if(x===Ut){D=M.backslashes=!0,x=k();continue}if(x===Wa){E=M.isGlob=!0,B=!0;break}}continue}break}if(x===Un){if(R===Un&&(v=M.isGlobstar=!0),E=M.isGlob=!0,B=!0,i===!0)continue;break}if(x===Ya){if(E=M.isGlob=!0,B=!0,i===!0)continue;break}if(x===Jh){for(;z()!==!0&&(se=k());){if(se===Ut){D=M.backslashes=!0,k();continue}if(se===Vh){C=M.isBracket=!0,E=M.isGlob=!0,B=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&x===Jn&&c===u){P=M.negated=!0,u++;continue}if(r.noparen!==!0&&x===Wn){if(E=M.isGlob=!0,i===!0){for(;z()!==!0&&(x=k());){if(x===Wn){D=M.backslashes=!0,x=k();continue}if(x===Wa){B=!0;break}}continue}break}if(E===!0){if(B=!0,i===!0)continue;break}}r.noext===!0&&(_=!1,E=!1);let F=l,le="",p="";u>0&&(le=l.slice(0,u),l=l.slice(u),h-=u),F&&E===!0&&h>0?(F=l.slice(0,h),p=l.slice(h)):E===!0?(F="",p=l):F=l,F&&F!==""&&F!=="/"&&F!==l&&Va(F.charCodeAt(F.length-1))&&(F=F.slice(0,-1)),r.unescape===!0&&(p&&(p=Ja.removeBackslashes(p)),F&&D===!0&&(F=Ja.removeBackslashes(F)));let d={prefix:le,input:e,start:u,base:F,glob:p,isBrace:A,isBracket:C,isGlob:E,isExtglob:_,isGlobstar:v,negated:P,negatedExtglob:U};if(r.tokens===!0&&(d.maxDepth=0,Va(x)||o.push(M),d.tokens=o),r.parts===!0||r.tokens===!0){let se;for(let N=0;N<s.length;N++){let Se=se?se+1:u,Be=s[N],ue=e.slice(Se,Be);r.tokens&&(N===0&&u!==0?(o[N].isPrefix=!0,o[N].value=le):o[N].value=ue,Xa(o[N]),d.maxDepth+=o[N].depth),(N!==0||ue!=="")&&a.push(ue),se=Be}if(se&&se+1<e.length){let N=e.slice(se+1);a.push(N),r.tokens&&(o[o.length-1].value=N,Xa(o[o.length-1]),d.maxDepth+=o[o.length-1].depth)}d.slashes=s,d.parts=a}return d};za.exports=Xh});var nl=g((Wm,rl)=>{"use strict";var Sr=$t(),fe=Gt(),{MAX_LENGTH:Br,POSIX_REGEX_SOURCE:Zh,REGEX_NON_SPECIAL_CHARS:zh,REGEX_SPECIAL_CHARS_BACKREF:ep,REPLACEMENTS:tl}=Sr,tp=(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},mt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Vn=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=tl[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?"":"?:",l=fe.isWindows(t),c=Sr.globChars(l),u=Sr.extglobChars(c),{DOT_LITERAL:h,PLUS_LITERAL:A,SLASH_LITERAL:C,ONE_CHAR:E,DOTS_SLASH:_,NO_DOT:v,NO_DOT_SLASH:b,NO_DOTS_SLASH:D,QMARK:P,QMARK_NO_DOT:U,STAR:B,START_ANCHOR:j}=c,R=y=>`(${a}(?:(?!${j}${y.dot?_:h}).)*?)`,x=r.dot?"":v,M=r.dot?P:U,z=r.bash===!0?R(r):B;r.capture&&(z=`(${z})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let f={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,f),i=e.length;let k=[],F=[],le=[],p=s,d,se=()=>f.index===i-1,N=f.peek=(y=1)=>e[f.index+y],Se=f.advance=()=>e[++f.index]||"",Be=()=>e.slice(f.index+1),ue=(y="",$=0)=>{f.consumed+=y,f.index+=$},hr=y=>{f.output+=y.output!=null?y.output:y.value,ue(y.value)},iA=()=>{let y=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)Se(),f.start++,y++;return y%2===0?!1:(f.negated=!0,f.start++,!0)},pr=y=>{f[y]++,le.push(y)},ze=y=>{f[y]--,le.pop()},O=y=>{if(p.type==="globstar"){let $=f.braces>0&&(y.type==="comma"||y.type==="brace"),m=y.extglob===!0||k.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!$&&!m&&(f.output=f.output.slice(0,-p.output.length),p.type="star",p.value="*",p.output=z,f.output+=p.output)}if(k.length&&y.type!=="paren"&&(k[k.length-1].inner+=y.value),(y.value||y.output)&&hr(y),p&&p.type==="text"&&y.type==="text"){p.value+=y.value,p.output=(p.output||"")+y.value;return}y.prev=p,o.push(y),p=y},dr=(y,$)=>{let m={...u[$],conditions:1,inner:""};m.prev=p,m.parens=f.parens,m.output=f.output;let Q=(r.capture?"(":"")+m.open;pr("parens"),O({type:y,value:$,output:f.output?"":E}),O({type:"paren",extglob:!0,value:Se(),output:Q}),k.push(m)},sA=y=>{let $=y.close+(r.capture?")":""),m;if(y.type==="negate"){let Q=z;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(Q=R(r)),(Q!==z||se()||/^\)+$/.test(Be()))&&($=y.close=`)$))${Q}`),y.inner.includes("*")&&(m=Be())&&/^\.[^\\/.]+$/.test(m)){let Y=Vn(m,{...t,fastpaths:!1}).output;$=y.close=`)${Y})${Q})`}y.prev.type==="bos"&&(f.negatedExtglob=!0)}O({type:"paren",extglob:!0,value:d,output:$}),ze("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let y=!1,$=e.replace(ep,(m,Q,Y,oe,ee,Tn)=>oe==="\\"?(y=!0,m):oe==="?"?Q?Q+oe+(ee?P.repeat(ee.length):""):Tn===0?M+(ee?P.repeat(ee.length):""):P.repeat(Y.length):oe==="."?h.repeat(Y.length):oe==="*"?Q?Q+oe+(ee?z:""):z:Q?m:`\\${m}`);return y===!0&&(r.unescape===!0?$=$.replace(/\\/g,""):$=$.replace(/\\+/g,m=>m.length%2===0?"\\\\":m?"\\":"")),$===e&&r.contains===!0?(f.output=e,f):(f.output=fe.wrapOutput($,f,t),f)}for(;!se();){if(d=Se(),d==="\0")continue;if(d==="\\"){let m=N();if(m==="/"&&r.bash!==!0||m==="."||m===";")continue;if(!m){d+="\\",O({type:"text",value:d});continue}let Q=/^\\+/.exec(Be()),Y=0;if(Q&&Q[0].length>2&&(Y=Q[0].length,f.index+=Y,Y%2!==0&&(d+="\\")),r.unescape===!0?d=Se():d+=Se(),f.brackets===0){O({type:"text",value:d});continue}}if(f.brackets>0&&(d!=="]"||p.value==="["||p.value==="[^")){if(r.posix!==!1&&d===":"){let m=p.value.slice(1);if(m.includes("[")&&(p.posix=!0,m.includes(":"))){let Q=p.value.lastIndexOf("["),Y=p.value.slice(0,Q),oe=p.value.slice(Q+2),ee=Zh[oe];if(ee){p.value=Y+ee,f.backtrack=!0,Se(),!s.output&&o.indexOf(p)===1&&(s.output=E);continue}}}(d==="["&&N()!==":"||d==="-"&&N()==="]")&&(d=`\\${d}`),d==="]"&&(p.value==="["||p.value==="[^")&&(d=`\\${d}`),r.posix===!0&&d==="!"&&p.value==="["&&(d="^"),p.value+=d,hr({value:d});continue}if(f.quotes===1&&d!=='"'){d=fe.escapeRegex(d),p.value+=d,hr({value:d});continue}if(d==='"'){f.quotes=f.quotes===1?0:1,r.keepQuotes===!0&&O({type:"text",value:d});continue}if(d==="("){pr("parens"),O({type:"paren",value:d});continue}if(d===")"){if(f.parens===0&&r.strictBrackets===!0)throw new SyntaxError(mt("opening","("));let m=k[k.length-1];if(m&&f.parens===m.parens+1){sA(k.pop());continue}O({type:"paren",value:d,output:f.parens?")":"\\)"}),ze("parens");continue}if(d==="["){if(r.nobracket===!0||!Be().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));d=`\\${d}`}else pr("brackets");O({type:"bracket",value:d});continue}if(d==="]"){if(r.nobracket===!0||p&&p.type==="bracket"&&p.value.length===1){O({type:"text",value:d,output:`\\${d}`});continue}if(f.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(mt("opening","["));O({type:"text",value:d,output:`\\${d}`});continue}ze("brackets");let m=p.value.slice(1);if(p.posix!==!0&&m[0]==="^"&&!m.includes("/")&&(d=`/${d}`),p.value+=d,hr({value:d}),r.literalBrackets===!1||fe.hasRegexChars(m))continue;let Q=fe.escapeRegex(p.value);if(f.output=f.output.slice(0,-p.value.length),r.literalBrackets===!0){f.output+=Q,p.value=Q;continue}p.value=`(${a}${Q}|${p.value})`,f.output+=p.value;continue}if(d==="{"&&r.nobrace!==!0){pr("braces");let m={type:"brace",value:d,output:"(",outputIndex:f.output.length,tokensIndex:f.tokens.length};F.push(m),O(m);continue}if(d==="}"){let m=F[F.length-1];if(r.nobrace===!0||!m){O({type:"text",value:d,output:d});continue}let Q=")";if(m.dots===!0){let Y=o.slice(),oe=[];for(let ee=Y.length-1;ee>=0&&(o.pop(),Y[ee].type!=="brace");ee--)Y[ee].type!=="dots"&&oe.unshift(Y[ee].value);Q=tp(oe,r),f.backtrack=!0}if(m.comma!==!0&&m.dots!==!0){let Y=f.output.slice(0,m.outputIndex),oe=f.tokens.slice(m.tokensIndex);m.value=m.output="\\{",d=Q="\\}",f.output=Y;for(let ee of oe)f.output+=ee.output||ee.value}O({type:"brace",value:d,output:Q}),ze("braces"),F.pop();continue}if(d==="|"){k.length>0&&k[k.length-1].conditions++,O({type:"text",value:d});continue}if(d===","){let m=d,Q=F[F.length-1];Q&&le[le.length-1]==="braces"&&(Q.comma=!0,m="|"),O({type:"comma",value:d,output:m});continue}if(d==="/"){if(p.type==="dot"&&f.index===f.start+1){f.start=f.index+1,f.consumed="",f.output="",o.pop(),p=s;continue}O({type:"slash",value:d,output:C});continue}if(d==="."){if(f.braces>0&&p.type==="dot"){p.value==="."&&(p.output=h);let m=F[F.length-1];p.type="dots",p.output+=d,p.value+=d,m.dots=!0;continue}if(f.braces+f.parens===0&&p.type!=="bos"&&p.type!=="slash"){O({type:"text",value:d,output:h});continue}O({type:"dot",value:d,output:h});continue}if(d==="?"){if(!(p&&p.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){dr("qmark",d);continue}if(p&&p.type==="paren"){let Q=N(),Y=d;if(Q==="<"&&!fe.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(p.value==="("&&!/[!=<:]/.test(Q)||Q==="<"&&!/<([!=]|\w+>)/.test(Be()))&&(Y=`\\${d}`),O({type:"text",value:d,output:Y});continue}if(r.dot!==!0&&(p.type==="slash"||p.type==="bos")){O({type:"qmark",value:d,output:U});continue}O({type:"qmark",value:d,output:P});continue}if(d==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){dr("negate",d);continue}if(r.nonegate!==!0&&f.index===0){iA();continue}}if(d==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){dr("plus",d);continue}if(p&&p.value==="("||r.regex===!1){O({type:"plus",value:d,output:A});continue}if(p&&(p.type==="bracket"||p.type==="paren"||p.type==="brace")||f.parens>0){O({type:"plus",value:d});continue}O({type:"plus",value:A});continue}if(d==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){O({type:"at",extglob:!0,value:d,output:""});continue}O({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);let m=zh.exec(Be());m&&(d+=m[0],f.index+=m[0].length),O({type:"text",value:d});continue}if(p&&(p.type==="globstar"||p.star===!0)){p.type="star",p.star=!0,p.value+=d,p.output=z,f.backtrack=!0,f.globstar=!0,ue(d);continue}let y=Be();if(r.noextglob!==!0&&/^\([^?]/.test(y)){dr("star",d);continue}if(p.type==="star"){if(r.noglobstar===!0){ue(d);continue}let m=p.prev,Q=m.prev,Y=m.type==="slash"||m.type==="bos",oe=Q&&(Q.type==="star"||Q.type==="globstar");if(r.bash===!0&&(!Y||y[0]&&y[0]!=="/")){O({type:"star",value:d,output:""});continue}let ee=f.braces>0&&(m.type==="comma"||m.type==="brace"),Tn=k.length&&(m.type==="pipe"||m.type==="paren");if(!Y&&m.type!=="paren"&&!ee&&!Tn){O({type:"star",value:d,output:""});continue}for(;y.slice(0,3)==="/**";){let gr=e[f.index+4];if(gr&&gr!=="/")break;y=y.slice(3),ue("/**",3)}if(m.type==="bos"&&se()){p.type="globstar",p.value+=d,p.output=R(r),f.output=p.output,f.globstar=!0,ue(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&!oe&&se()){f.output=f.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=R(r)+(r.strictSlashes?")":"|$)"),p.value+=d,f.globstar=!0,f.output+=m.output+p.output,ue(d);continue}if(m.type==="slash"&&m.prev.type!=="bos"&&y[0]==="/"){let gr=y[1]!==void 0?"|$":"";f.output=f.output.slice(0,-(m.output+p.output).length),m.output=`(?:${m.output}`,p.type="globstar",p.output=`${R(r)}${C}|${C}${gr})`,p.value+=d,f.output+=m.output+p.output,f.globstar=!0,ue(d+Se()),O({type:"slash",value:"/",output:""});continue}if(m.type==="bos"&&y[0]==="/"){p.type="globstar",p.value+=d,p.output=`(?:^|${C}|${R(r)}${C})`,f.output=p.output,f.globstar=!0,ue(d+Se()),O({type:"slash",value:"/",output:""});continue}f.output=f.output.slice(0,-p.output.length),p.type="globstar",p.output=R(r),p.value+=d,f.output+=p.output,f.globstar=!0,ue(d);continue}let $={type:"star",value:d,output:z};if(r.bash===!0){$.output=".*?",(p.type==="bos"||p.type==="slash")&&($.output=x+$.output),O($);continue}if(p&&(p.type==="bracket"||p.type==="paren")&&r.regex===!0){$.output=d,O($);continue}(f.index===f.start||p.type==="slash"||p.type==="dot")&&(p.type==="dot"?(f.output+=b,p.output+=b):r.dot===!0?(f.output+=D,p.output+=D):(f.output+=x,p.output+=x),N()!=="*"&&(f.output+=E,p.output+=E)),O($)}for(;f.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing","]"));f.output=fe.escapeLast(f.output,"["),ze("brackets")}for(;f.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing",")"));f.output=fe.escapeLast(f.output,"("),ze("parens")}for(;f.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(mt("closing","}"));f.output=fe.escapeLast(f.output,"{"),ze("braces")}if(r.strictSlashes!==!0&&(p.type==="star"||p.type==="bracket")&&O({type:"maybe_slash",value:"",output:`${C}?`}),f.backtrack===!0){f.output="";for(let y of f.tokens)f.output+=y.output!=null?y.output:y.value,y.suffix&&(f.output+=y.suffix)}return f};Vn.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=tl[e]||e;let s=fe.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:h,NO_DOTS_SLASH:A,STAR:C,START_ANCHOR:E}=Sr.globChars(s),_=r.dot?h:u,v=r.dot?A:u,b=r.capture?"":"?:",D={negated:!1,prefix:""},P=r.bash===!0?".*?":C;r.capture&&(P=`(${P})`);let U=x=>x.noglobstar===!0?P:`(${b}(?:(?!${E}${x.dot?c:o}).)*?)`,B=x=>{switch(x){case"*":return`${_}${l}${P}`;case".*":return`${o}${l}${P}`;case"*.*":return`${_}${P}${o}${l}${P}`;case"*/*":return`${_}${P}${a}${l}${v}${P}`;case"**":return _+U(r);case"**/*":return`(?:${_}${U(r)}${a})?${v}${l}${P}`;case"**/*.*":return`(?:${_}${U(r)}${a})?${v}${P}${o}${l}${P}`;case"**/.*":return`(?:${_}${U(r)}${a})?${o}${l}${P}`;default:{let M=/^(.*?)\.(\w+)$/.exec(x);if(!M)return;let z=B(M[1]);return z?z+o+M[2]:void 0}}},j=fe.removePrefix(e,D),R=B(j);return R&&r.strictSlashes!==!0&&(R+=`${a}?`),R};rl.exports=Vn});var sl=g((Vm,il)=>{"use strict";var rp=S("path"),np=el(),Xn=nl(),Zn=Gt(),ip=$t(),sp=e=>e&&typeof e=="object"&&!Array.isArray(e),V=(e,t,r=!1)=>{if(Array.isArray(e)){let u=e.map(A=>V(A,t,r));return A=>{for(let C of u){let E=C(A);if(E)return E}return!1}}let n=sp(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=Zn.isWindows(t),o=n?V.compileRe(e,t):V.makeRe(e,t,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(i.ignore){let u={...t,ignore:null,onMatch:null,onResult:null};l=V(i.ignore,u,r)}let c=(u,h=!1)=>{let{isMatch:A,match:C,output:E}=V.test(u,o,t,{glob:e,posix:s}),_={glob:e,state:a,regex:o,posix:s,input:u,output:E,match:C,isMatch:A};return typeof i.onResult=="function"&&i.onResult(_),A===!1?(_.isMatch=!1,h?_:!1):l(u)?(typeof i.onIgnore=="function"&&i.onIgnore(_),_.isMatch=!1,h?_:!1):(typeof i.onMatch=="function"&&i.onMatch(_),h?_:!0)};return r&&(c.state=a),c};V.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?Zn.toPosixSlashes:null),a=e===n,l=a&&o?o(e):e;return a===!1&&(l=o?o(e):e,a=l===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=V.matchBase(e,t,r,i):a=t.exec(l)),{isMatch:Boolean(a),match:a,output:l}};V.matchBase=(e,t,r,n=Zn.isWindows(r))=>(t instanceof RegExp?t:V.makeRe(t,r)).test(rp.basename(e));V.isMatch=(e,t,r)=>V(t,r)(e);V.parse=(e,t)=>Array.isArray(e)?e.map(r=>V.parse(r,t)):Xn(e,{...t,fastpaths:!1});V.scan=(e,t)=>np(e,t);V.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 l=V.toRegex(a,t);return n===!0&&(l.state=e),l};V.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=Xn.fastpaths(e,t)),i.output||(i=Xn(e,t)),V.compileRe(i,t,r,n)};V.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/$^/}};V.constants=ip;il.exports=V});var al=g((Xm,ol)=>{"use strict";ol.exports=sl()});var Al=g((Zm,fl)=>{"use strict";var ul=S("util"),cl=ja(),Qe=al(),zn=Gt(),ll=e=>e===""||e==="./",K=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=u=>{s.add(u.output),r&&r.onResult&&r.onResult(u)};for(let u=0;u<t.length;u++){let h=Qe(String(t[u]),{...r,onResult:a},!0),A=h.state.negated||h.state.negatedExtglob;A&&o++;for(let C of e){let E=h(C,!0);!(A?!E.isMatch:E.isMatch)||(A?n.add(E.output):(n.delete(E.output),i.add(E.output)))}}let c=(o===t.length?[...s]:[...i]).filter(u=>!n.has(u));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(u=>u.replace(/\\/g,"")):t}return c};K.match=K;K.matcher=(e,t)=>Qe(e,t);K.isMatch=(e,t,r)=>Qe(t,r)(e);K.any=K.isMatch;K.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(K(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};K.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ul.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>K.contains(e,n,r));if(typeof t=="string"){if(ll(e)||ll(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return K.isMatch(e,t,{...r,contains:!0})};K.matchKeys=(e,t,r)=>{if(!zn.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=K(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};K.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Qe(String(i),r);if(n.some(o=>s(o)))return!0}return!1};K.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=Qe(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};K.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${ul.inspect(e)}"`);return[].concat(t).every(n=>Qe(n,r)(e))};K.capture=(e,t,r)=>{let n=zn.isWindows(r),s=Qe.makeRe(String(e),{...r,capture:!0}).exec(n?zn.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};K.makeRe=(...e)=>Qe.makeRe(...e);K.scan=(...e)=>Qe.scan(...e);K.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of cl(String(n),t))r.push(Qe.parse(i,t));return r};K.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:cl(e,t)};K.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return K.braces(e,{...t,expand:!0})};fl.exports=K});var yl=g(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.matchAny=w.convertPatternsToRe=w.makeRe=w.getPatternParts=w.expandBraceExpansion=w.expandPatternsWithBraceExpansion=w.isAffectDepthOfReadingPattern=w.endsWithSlashGlobStar=w.hasGlobStar=w.getBaseDirectory=w.isPatternRelatedToParentDirectory=w.getPatternsOutsideCurrentDirectory=w.getPatternsInsideCurrentDirectory=w.getPositivePatterns=w.getNegativePatterns=w.isPositivePattern=w.isNegativePattern=w.convertToNegativePattern=w.convertToPositivePattern=w.isDynamicPattern=w.isStaticPattern=void 0;var op=S("path"),ap=ia(),ei=Al(),hl="**",lp="\\",up=/[*?]|^!/,cp=/\[[^[]*]/,fp=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,Ap=/[!*+?@]\([^(]*\)/,hp=/,|\.\./;function pl(e,t={}){return!dl(e,t)}w.isStaticPattern=pl;function dl(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(lp)||up.test(e)||cp.test(e)||fp.test(e)||t.extglob!==!1&&Ap.test(e)||t.braceExpansion!==!1&&pp(e))}w.isDynamicPattern=dl;function pp(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 hp.test(n)}function dp(e){return wr(e)?e.slice(1):e}w.convertToPositivePattern=dp;function gp(e){return"!"+e}w.convertToNegativePattern=gp;function wr(e){return e.startsWith("!")&&e[1]!=="("}w.isNegativePattern=wr;function gl(e){return!wr(e)}w.isPositivePattern=gl;function _p(e){return e.filter(wr)}w.getNegativePatterns=_p;function Ep(e){return e.filter(gl)}w.getPositivePatterns=Ep;function mp(e){return e.filter(t=>!ti(t))}w.getPatternsInsideCurrentDirectory=mp;function yp(e){return e.filter(ti)}w.getPatternsOutsideCurrentDirectory=yp;function ti(e){return e.startsWith("..")||e.startsWith("./..")}w.isPatternRelatedToParentDirectory=ti;function Cp(e){return ap(e,{flipBackslashes:!1})}w.getBaseDirectory=Cp;function bp(e){return e.includes(hl)}w.hasGlobStar=bp;function _l(e){return e.endsWith("/"+hl)}w.endsWithSlashGlobStar=_l;function vp(e){let t=op.basename(e);return _l(e)||pl(t)}w.isAffectDepthOfReadingPattern=vp;function xp(e){return e.reduce((t,r)=>t.concat(El(r)),[])}w.expandPatternsWithBraceExpansion=xp;function El(e){return ei.braces(e,{expand:!0,nodupes:!0})}w.expandBraceExpansion=El;function Sp(e,t){let{parts:r}=ei.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}w.getPatternParts=Sp;function ml(e,t){return ei.makeRe(e,t)}w.makeRe=ml;function Bp(e,t){return e.map(r=>ml(r,t))}w.convertPatternsToRe=Bp;function wp(e,t){return t.some(r=>r.test(e))}w.matchAny=wp});var xl=g((ey,vl)=>{"use strict";var Rp=S("stream"),Cl=Rp.PassThrough,Qp=Array.prototype.slice;vl.exports=Ip;function Ip(){let e=[],t=Qp.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=Cl(n);function a(){for(let u=0,h=arguments.length;u<h;u++)e.push(bl(arguments[u],n));return l(),this}function l(){if(r)return;r=!0;let u=e.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let h=u.length+1;function A(){--h>0||(r=!1,l())}function C(E){function _(){E.removeListener("merge2UnpipeEnd",_),E.removeListener("end",_),s&&E.removeListener("error",v),A()}function v(b){o.emit("error",b)}if(E._readableState.endEmitted)return A();E.on("merge2UnpipeEnd",_),E.on("end",_),s&&E.on("error",v),E.pipe(o,{end:!1}),E.resume()}for(let E=0;E<u.length;E++)C(u[E]);A()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function bl(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=bl(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Cl(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Bl=g(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.merge=void 0;var Tp=xl();function Op(e){let t=Tp(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Sl(e)),t.once("end",()=>Sl(e)),t}Rr.merge=Op;function Sl(e){e.forEach(t=>t.emit("close"))}});var wl=g(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.isEmpty=yt.isString=void 0;function Dp(e){return typeof e=="string"}yt.isString=Dp;function kp(e){return e===""}yt.isEmpty=kp});var Me=g(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.string=re.stream=re.pattern=re.path=re.fs=re.errno=re.array=void 0;var Lp=Yo();re.array=Lp;var Pp=Wo();re.errno=Pp;var Np=Vo();re.fs=Np;var Mp=Xo();re.path=Mp;var Fp=yl();re.pattern=Fp;var qp=Bl();re.stream=qp;var jp=wl();re.string=jp});var Il=g(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.convertPatternGroupToTask=ne.convertPatternGroupsToTasks=ne.groupPatternsByBaseDirectory=ne.getNegativePatternsAsPositive=ne.getPositivePatterns=ne.convertPatternsToTasks=ne.generate=void 0;var Fe=Me();function Hp(e,t){let r=Rl(e),n=Ql(e,t.ignore),i=r.filter(l=>Fe.pattern.isStaticPattern(l,t)),s=r.filter(l=>Fe.pattern.isDynamicPattern(l,t)),o=ri(i,n,!1),a=ri(s,n,!0);return o.concat(a)}ne.generate=Hp;function ri(e,t,r){let n=[],i=Fe.pattern.getPatternsOutsideCurrentDirectory(e),s=Fe.pattern.getPatternsInsideCurrentDirectory(e),o=ni(i),a=ni(s);return n.push(...ii(o,t,r)),"."in a?n.push(si(".",s,t,r)):n.push(...ii(a,t,r)),n}ne.convertPatternsToTasks=ri;function Rl(e){return Fe.pattern.getPositivePatterns(e)}ne.getPositivePatterns=Rl;function Ql(e,t){return Fe.pattern.getNegativePatterns(e).concat(t).map(Fe.pattern.convertToPositivePattern)}ne.getNegativePatternsAsPositive=Ql;function ni(e){let t={};return e.reduce((r,n)=>{let i=Fe.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}ne.groupPatternsByBaseDirectory=ni;function ii(e,t,r){return Object.keys(e).map(n=>si(n,e[n],t,r))}ne.convertPatternGroupsToTasks=ii;function si(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Fe.pattern.convertToNegativePattern))}}ne.convertPatternGroupToTask=si});var Ol=g(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.removeDuplicateSlashes=Ct.transform=void 0;var $p=/(?!^)\/{2,}/g;function Gp(e){return e.map(t=>Tl(t))}Ct.transform=Gp;function Tl(e){return e.replace($p,"/")}Ct.removeDuplicateSlashes=Tl});var kl=g(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.read=void 0;function Up(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Dl(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){oi(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Dl(r,s);return}oi(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),oi(r,o)})})}Qr.read=Up;function Dl(e,t){e(t)}function oi(e,t){e(null,t)}});var Ll=g(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.read=void 0;function Kp(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}}Ir.read=Kp});var Pl=g(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.createFileSystemAdapter=He.FILE_SYSTEM_ADAPTER=void 0;var Tr=S("fs");He.FILE_SYSTEM_ADAPTER={lstat:Tr.lstat,stat:Tr.stat,lstatSync:Tr.lstatSync,statSync:Tr.statSync};function Jp(e){return e===void 0?He.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},He.FILE_SYSTEM_ADAPTER),e)}He.createFileSystemAdapter=Jp});var Nl=g(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});var Yp=Pl(),ai=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Yp.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}};li.default=ai});var rt=g($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.statSync=$e.stat=$e.Settings=void 0;var Ml=kl(),Wp=Ll(),ui=Nl();$e.Settings=ui.default;function Vp(e,t,r){if(typeof t=="function"){Ml.read(e,ci(),t);return}Ml.read(e,ci(t),r)}$e.stat=Vp;function Xp(e,t){let r=ci(t);return Wp.read(e,r)}$e.statSync=Xp;function ci(e={}){return e instanceof ui.default?e:new ui.default(e)}});var jl=g((fy,ql)=>{var Fl;ql.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Fl||(Fl=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var $l=g((Ay,Hl)=>{Hl.exports=zp;var Zp=jl();function zp(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(l){function c(){t&&t(l,r),t=null}s?Zp(c):c()}function a(l,c,u){r[l]=u,(--n===0||c)&&o(c)}n?i?i.forEach(function(l){e[l](function(c,u){a(l,c,u)})}):e.forEach(function(l,c){l(function(u,h){a(c,u,h)})}):o(null),s=!1}});var fi=g(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});Dr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Or=process.versions.node.split(".");if(Or[0]===void 0||Or[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Gl=Number.parseInt(Or[0],10),ed=Number.parseInt(Or[1],10),Ul=10,td=10,rd=Gl>Ul,nd=Gl===Ul&&ed>=td;Dr.IS_SUPPORT_READDIR_WITH_FILE_TYPES=rd||nd});var Kl=g(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.createDirentFromStats=void 0;var Ai=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 id(e,t){return new Ai(e,t)}kr.createDirentFromStats=id});var hi=g(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.fs=void 0;var sd=Kl();Lr.fs=sd});var pi=g(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.joinPathSegments=void 0;function od(e,t,r){return e.endsWith(r)?e+t:e+r+t}Pr.joinPathSegments=od});var Zl=g(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.readdir=Ge.readdirWithFileTypes=Ge.read=void 0;var ad=rt(),Jl=$l(),ld=fi(),Yl=hi(),Wl=pi();function ud(e,t,r){if(!t.stats&&ld.IS_SUPPORT_READDIR_WITH_FILE_TYPES){Vl(e,t,r);return}Xl(e,t,r)}Ge.read=ud;function Vl(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Nr(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:Wl.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){di(r,s);return}let o=s.map(a=>cd(a,t));Jl(o,(a,l)=>{if(a!==null){Nr(r,a);return}di(r,l)})})}Ge.readdirWithFileTypes=Vl;function cd(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=Yl.fs.createDirentFromStats(e.name,i),r(null,e)})}}function Xl(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Nr(r,n);return}let s=i.map(o=>{let a=Wl.joinPathSegments(e,o,t.pathSegmentSeparator);return l=>{ad.stat(a,t.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let h={name:o,path:a,dirent:Yl.fs.createDirentFromStats(o,u)};t.stats&&(h.stats=u),l(null,h)})}});Jl(s,(o,a)=>{if(o!==null){Nr(r,o);return}di(r,a)})})}Ge.readdir=Xl;function Nr(e,t){e(t)}function di(e,t){e(null,t)}});var nu=g(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.readdir=Ue.readdirWithFileTypes=Ue.read=void 0;var fd=rt(),Ad=fi(),zl=hi(),eu=pi();function hd(e,t){return!t.stats&&Ad.IS_SUPPORT_READDIR_WITH_FILE_TYPES?tu(e,t):ru(e,t)}Ue.read=hd;function tu(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:eu.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=zl.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Ue.readdirWithFileTypes=tu;function ru(e,t){return t.fs.readdirSync(e).map(n=>{let i=eu.joinPathSegments(e,n,t.pathSegmentSeparator),s=fd.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:zl.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Ue.readdir=ru});var iu=g(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.createFileSystemAdapter=Ke.FILE_SYSTEM_ADAPTER=void 0;var bt=S("fs");Ke.FILE_SYSTEM_ADAPTER={lstat:bt.lstat,stat:bt.stat,lstatSync:bt.lstatSync,statSync:bt.statSync,readdir:bt.readdir,readdirSync:bt.readdirSync};function pd(e){return e===void 0?Ke.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Ke.FILE_SYSTEM_ADAPTER),e)}Ke.createFileSystemAdapter=pd});var su=g(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});var dd=S("path"),gd=rt(),_d=iu(),gi=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=_d.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,dd.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new gd.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};_i.default=gi});var Mr=g(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.Settings=Je.scandirSync=Je.scandir=void 0;var ou=Zl(),Ed=nu(),Ei=su();Je.Settings=Ei.default;function md(e,t,r){if(typeof t=="function"){ou.read(e,mi(),t);return}ou.read(e,mi(t),r)}Je.scandir=md;function yd(e,t){let r=mi(t);return Ed.read(e,r)}Je.scandirSync=yd;function mi(e={}){return e instanceof Ei.default?e:new Ei.default(e)}});var lu=g((by,au)=>{"use strict";function Cd(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}}au.exports=Cd});var cu=g((vy,yi)=>{"use strict";var bd=lu();function uu(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=bd(vd),i=null,s=null,o=0,a=null,l={push:_,drain:de,saturated:de,pause:u,paused:!1,concurrency:r,running:c,resume:C,idle:E,length:h,getQueue:A,unshift:v,empty:de,kill:D,killAndDrain:P,error:U};return l;function c(){return o}function u(){l.paused=!0}function h(){for(var B=i,j=0;B;)B=B.next,j++;return j}function A(){for(var B=i,j=[];B;)j.push(B.value),B=B.next;return j}function C(){if(!!l.paused){l.paused=!1;for(var B=0;B<l.concurrency;B++)o++,b()}}function E(){return o===0&&l.length()===0}function _(B,j){var R=n.get();R.context=e,R.release=b,R.value=B,R.callback=j||de,R.errorHandler=a,o===l.concurrency||l.paused?s?(s.next=R,s=R):(i=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function v(B,j){var R=n.get();R.context=e,R.release=b,R.value=B,R.callback=j||de,o===l.concurrency||l.paused?i?(R.next=i,i=R):(i=R,s=R,l.saturated()):(o++,t.call(e,R.value,R.worked))}function b(B){B&&n.release(B);var j=i;j?l.paused?o--:(s===i&&(s=null),i=j.next,j.next=null,t.call(e,j.value,j.worked),s===null&&l.empty()):--o===0&&l.drain()}function D(){i=null,s=null,l.drain=de}function P(){i=null,s=null,l.drain(),l.drain=de}function U(B){a=B}}function de(){}function vd(){this.value=null,this.callback=de,this.next=null,this.release=de,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=de,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function xd(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(u,h){t.call(this,u).then(function(A){h(null,A)},h)}var i=uu(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=l,i.drained=c,i;function a(u){var h=new Promise(function(A,C){s(u,function(E,_){if(E){C(E);return}A(_)})});return h.catch(de),h}function l(u){var h=new Promise(function(A,C){o(u,function(E,_){if(E){C(E);return}A(_)})});return h.catch(de),h}function c(){var u=i.drain,h=new Promise(function(A){i.drain=function(){u(),A()}});return h}}yi.exports=uu;yi.exports.promise=xd});var Fr=g(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.joinPathSegments=Ie.replacePathSegmentSeparator=Ie.isAppliedFilter=Ie.isFatalError=void 0;function Sd(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ie.isFatalError=Sd;function Bd(e,t){return e===null||e(t)}Ie.isAppliedFilter=Bd;function wd(e,t){return e.split(/[/\\]/).join(t)}Ie.replacePathSegmentSeparator=wd;function Rd(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ie.joinPathSegments=Rd});var vi=g(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});var Qd=Fr(),Ci=class{constructor(t,r){this._root=t,this._settings=r,this._root=Qd.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};bi.default=Ci});var Bi=g(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});var Id=S("events"),Td=Mr(),Od=cu(),qr=Fr(),Dd=vi(),xi=class extends Dd.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=Td.scandir,this._emitter=new Id.EventEmitter,this._queue=Od(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||!qr.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=qr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),qr.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&qr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Si.default=xi});var fu=g(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var kd=Bi(),wi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new kd.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Ld(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Pd(t,this._storage)}),this._reader.read()}};Ri.default=wi;function Ld(e,t){e(t)}function Pd(e,t){e(null,t)}});var Au=g(Ii=>{"use strict";Object.defineProperty(Ii,"__esModule",{value:!0});var Nd=S("stream"),Md=Bi(),Qi=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Md.default(this._root,this._settings),this._stream=new Nd.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}};Ii.default=Qi});var hu=g(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var Fd=Mr(),jr=Fr(),qd=vi(),Ti=class extends qd.default{constructor(){super(...arguments),this._scandir=Fd.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(!!jr.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=jr.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),jr.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&jr.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};Oi.default=Ti});var pu=g(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var jd=hu(),Di=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new jd.default(this._root,this._settings)}read(){return this._reader.read()}};ki.default=Di});var du=g(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Hd=S("path"),$d=Mr(),Li=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,Hd.sep),this.fsScandirSettings=new $d.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}};Pi.default=Li});var Mi=g(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.Settings=Te.walkStream=Te.walkSync=Te.walk=void 0;var gu=fu(),Gd=Au(),Ud=pu(),Ni=du();Te.Settings=Ni.default;function Kd(e,t,r){if(typeof t=="function"){new gu.default(e,Hr()).read(t);return}new gu.default(e,Hr(t)).read(r)}Te.walk=Kd;function Jd(e,t){let r=Hr(t);return new Ud.default(e,r).read()}Te.walkSync=Jd;function Yd(e,t){let r=Hr(t);return new Gd.default(e,r).read()}Te.walkStream=Yd;function Hr(e={}){return e instanceof Ni.default?e:new Ni.default(e)}});var ji=g(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Wd=S("path"),Vd=rt(),_u=Me(),Fi=class{constructor(t){this._settings=t,this._fsStatSettings=new Vd.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return Wd.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:_u.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!_u.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};qi.default=Fi});var Gi=g($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var Xd=S("stream"),Zd=rt(),zd=Mi(),eg=ji(),Hi=class extends eg.default{constructor(){super(...arguments),this._walkStream=zd.walkStream,this._stat=Zd.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new Xd.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(l=>{l!==null&&r.entryFilter(l)&&i.push(l),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))})}};$i.default=Hi});var Eu=g(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});var vt=Me(),Ui=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){let t=vt.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 vt.pattern.getPatternParts(t,this._micromatchOptions).map(n=>vt.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:vt.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return vt.array.splitWhen(t,r=>r.dynamic&&vt.pattern.hasGlobStar(r.pattern))}};Ki.default=Ui});var mu=g(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});var tg=Eu(),Ji=class extends tg.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((l,c)=>{let u=s.segments[c];return!!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return!0}return!1}};Yi.default=Ji});var yu=g(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var $r=Me(),rg=mu(),Wi=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 rg.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter($r.pattern.isAffectDepthOfReadingPattern);return $r.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=$r.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!$r.pattern.matchAny(t,r)}};Vi.default=Wi});var Cu=g(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});var nt=Me(),Xi=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=nt.pattern.convertPatternsToRe(t,this._micromatchOptions),i=nt.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=nt.path.makeAbsolute(this._settings.cwd,t);return nt.pattern.matchAny(n,r)}_isMatchToPatterns(t,r){let n=nt.path.removeLeadingDotSegment(t);return nt.pattern.matchAny(n,r)||nt.pattern.matchAny(n+"/",r)}};Zi.default=Xi});var bu=g(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var ng=Me(),zi=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return ng.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};es.default=zi});var xu=g(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var vu=Me(),ts=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=vu.path.makeAbsolute(this._settings.cwd,r),r=vu.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};rs.default=ts});var Gr=g(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var ig=S("path"),sg=yu(),og=Cu(),ag=bu(),lg=xu(),ns=class{constructor(t){this._settings=t,this.errorFilter=new ag.default(this._settings),this.entryFilter=new og.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new sg.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new lg.default(this._settings)}_getRootDirectory(t){return ig.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}}};is.default=ns});var Su=g(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var ug=Gi(),cg=Gr(),ss=class extends cg.default{constructor(){super(...arguments),this._reader=new ug.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",l=>i.push(n.transform(l))),a.once("end",()=>s(i))})}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};os.default=ss});var Bu=g(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var fg=S("stream"),Ag=Gi(),hg=Gr(),as=class extends hg.default{constructor(){super(...arguments),this._reader=new Ag.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new fg.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)}};ls.default=as});var wu=g(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});var pg=rt(),dg=Mi(),gg=ji(),us=class extends gg.default{constructor(){super(...arguments),this._walkSync=dg.walkSync,this._statSync=pg.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)}};cs.default=us});var Ru=g(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var _g=wu(),Eg=Gr(),fs=class extends Eg.default{constructor(){super(...arguments),this._reader=new _g.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)}};As.default=fs});var Qu=g(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var xt=S("fs"),mg=S("os"),yg=Math.max(mg.cpus().length,1);St.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:xt.lstat,lstatSync:xt.lstatSync,stat:xt.stat,statSync:xt.statSync,readdir:xt.readdir,readdirSync:xt.readdirSync};var hs=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,yg),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=hs});var Ur=g((Jy,Ou)=>{"use strict";var Iu=Il(),Tu=Ol(),Cg=Su(),bg=Bu(),vg=Ru(),ps=Qu(),it=Me();async function ds(e,t){Bt(e);let r=gs(e,Cg.default,t),n=await Promise.all(r);return it.array.flatten(n)}(function(e){function t(o,a){Bt(o);let l=gs(o,vg.default,a);return it.array.flatten(l)}e.sync=t;function r(o,a){Bt(o);let l=gs(o,bg.default,a);return it.stream.merge(l)}e.stream=r;function n(o,a){Bt(o);let l=Tu.transform([].concat(o)),c=new ps.default(a);return Iu.generate(l,c)}e.generateTasks=n;function i(o,a){Bt(o);let l=new ps.default(a);return it.pattern.isDynamicPattern(o,l)}e.isDynamicPattern=i;function s(o){return Bt(o),it.path.escape(o)}e.escapePath=s})(ds||(ds={}));function gs(e,t,r){let n=Tu.transform([].concat(e)),i=new ps.default(r),s=Iu.generate(n,i),o=new t(i);return s.map(o.read,o)}function Bt(e){if(![].concat(e).every(n=>it.string.isString(n)&&!it.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Ou.exports=ds});var ku=g((Yy,_s)=>{"use strict";var Du=(e,t)=>{for(let r of Reflect.ownKeys(t))Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));return e};_s.exports=Du;_s.exports.default=Du});var Pu=g((Wy,Jr)=>{"use strict";var xg=ku(),Kr=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(Kr.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 xg(s,e),Kr.set(s,n),s};Jr.exports=Lu;Jr.exports.default=Lu;Jr.exports.callCount=e=>{if(!Kr.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Kr.get(e)}});var Nu=g((Vy,Yr)=>{Yr.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&Yr.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Yr.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Hu=g((Xy,Qt)=>{var J=global.process,st=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"};st(J)?(Mu=S("assert"),wt=Nu(),Fu=/^win/i.test(J.platform),Kt=S("events"),typeof Kt!="function"&&(Kt=Kt.EventEmitter),J.__signal_exit_emitter__?te=J.__signal_exit_emitter__:(te=J.__signal_exit_emitter__=new Kt,te.count=0,te.emitted={}),te.infinite||(te.setMaxListeners(1/0),te.infinite=!0),Qt.exports=function(e,t){if(!st(global.process))return function(){};Mu.equal(typeof e,"function","a callback must be provided for exit handler"),Rt===!1&&Es();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&&Wr()};return te.on(r,e),n},Wr=function(){!Rt||!st(global.process)||(Rt=!1,wt.forEach(function(t){try{J.removeListener(t,Vr[t])}catch{}}),J.emit=Xr,J.reallyExit=ms,te.count-=1)},Qt.exports.unload=Wr,ot=function(t,r,n){te.emitted[t]||(te.emitted[t]=!0,te.emit(t,r,n))},Vr={},wt.forEach(function(e){Vr[e]=function(){if(!!st(global.process)){var r=J.listeners(e);r.length===te.count&&(Wr(),ot("exit",null,e),ot("afterexit",null,e),Fu&&e==="SIGHUP"&&(e="SIGINT"),J.kill(J.pid,e))}}}),Qt.exports.signals=function(){return wt},Rt=!1,Es=function(){Rt||!st(global.process)||(Rt=!0,te.count+=1,wt=wt.filter(function(t){try{return J.on(t,Vr[t]),!0}catch{return!1}}),J.emit=ju,J.reallyExit=qu)},Qt.exports.load=Es,ms=J.reallyExit,qu=function(t){!st(global.process)||(J.exitCode=t||0,ot("exit",J.exitCode,null),ot("afterexit",J.exitCode,null),ms.call(J,J.exitCode))},Xr=J.emit,ju=function(t,r){if(t==="exit"&&st(global.process)){r!==void 0&&(J.exitCode=r);var n=Xr.apply(this,arguments);return ot("exit",J.exitCode,null),ot("afterexit",J.exitCode,null),n}else return Xr.apply(this,arguments)}):Qt.exports=function(){return function(){}};var Mu,wt,Fu,Kt,te,Wr,ot,Vr,Rt,Es,ms,qu,Xr,ju});var Ju=g((nC,wg)=>{wg.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=g((iC,Wu)=>{"use strict";var zr=Object.assign({},Ju()),Yu=Object.keys(zr);Object.defineProperty(zr,"random",{get(){let e=Math.floor(Math.random()*Yu.length),t=Yu[e];return zr[t]}});Wu.exports=zr});var Xu=g((hC,en)=>{var Tg=function(){"use strict";function e(o,a,l,c){var u;typeof a=="object"&&(l=a.depth,c=a.prototype,u=a.filter,a=a.circular);var h=[],A=[],C=typeof Buffer<"u";typeof a>"u"&&(a=!0),typeof l>"u"&&(l=1/0);function E(_,v){if(_===null)return null;if(v==0)return _;var b,D;if(typeof _!="object")return _;if(e.__isArray(_))b=[];else if(e.__isRegExp(_))b=new RegExp(_.source,s(_)),_.lastIndex&&(b.lastIndex=_.lastIndex);else if(e.__isDate(_))b=new Date(_.getTime());else{if(C&&Buffer.isBuffer(_))return Buffer.allocUnsafe?b=Buffer.allocUnsafe(_.length):b=new Buffer(_.length),_.copy(b),b;typeof c>"u"?(D=Object.getPrototypeOf(_),b=Object.create(D)):(b=Object.create(c),D=c)}if(a){var P=h.indexOf(_);if(P!=-1)return A[P];h.push(_),A.push(b)}for(var U in _){var B;D&&(B=Object.getOwnPropertyDescriptor(D,U)),!(B&&B.set==null)&&(b[U]=E(_[U],v-1))}return b}return E(o,l)}e.clonePrototype=function(a){if(a===null)return null;var l=function(){};return l.prototype=a,new l};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 en=="object"&&en.exports&&(en.exports=Tg)});var zu=g((pC,Zu)=>{var Og=Xu();Zu.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Og(t[r]))}),e}});var tc=g((dC,ec)=>{ec.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 sc=g((gC,vs)=>{"use strict";var Dg=zu(),Wt=tc(),nc={nul:0,control:0};vs.exports=function(t){return ic(t,nc)};vs.exports.config=function(e){return e=Dg(e||{},nc),function(r){return ic(r,e)}};function ic(e,t){if(typeof e!="string")return rc(e,t);for(var r=0,n=0;n<e.length;n++){var i=rc(e.charCodeAt(n),t);if(i<0)return-1;r+=i}return r}function rc(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:kg(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 kg(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 Ss=g((EC,oc)=>{oc.exports=S("stream")});var cc=g((mC,uc)=>{"use strict";function ac(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 Lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ac(Object(r),!0).forEach(function(n){Pg(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ac(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Pg(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ng(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lc(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 Mg(e,t,r){return t&&lc(e.prototype,t),r&&lc(e,r),e}var Fg=S("buffer"),tn=Fg.Buffer,qg=S("util"),Bs=qg.inspect,jg=Bs&&Bs.custom||"inspect";function Hg(e,t,r){tn.prototype.copy.call(e,t,r)}uc.exports=function(){function e(){Ng(this,e),this.head=null,this.tail=null,this.length=0}return Mg(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 tn.alloc(0);for(var n=tn.allocUnsafe(r>>>0),i=this.head,s=0;i;)Hg(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=tn.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:jg,value:function(r,n){return Bs(this,Lg({},n,{depth:0,customInspect:!1}))}}]),e}()});var Rs=g((yC,Ac)=>{"use strict";function $g(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(ws,this,e)):process.nextTick(ws,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(rn,r):(r._writableState.errorEmitted=!0,process.nextTick(fc,r,s)):process.nextTick(fc,r,s):t?(process.nextTick(rn,r),t(s)):process.nextTick(rn,r)}),this)}function fc(e,t){ws(e,t),rn(e)}function rn(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function Gg(){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 ws(e,t){e.emit("error",t)}function Ug(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}Ac.exports={destroy:$g,undestroy:Gg,errorOrDestroy:Ug}});var Ye=g((CC,dc)=>{"use strict";var pc={};function ge(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,l){super(n(o,a,l))}}i.prototype.name=r.name,i.prototype.code=e,pc[e]=i}function hc(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 Kg(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function Jg(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function Yg(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}ge("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);ge("ERR_INVALID_ARG_TYPE",function(e,t,r){let n;typeof t=="string"&&Kg(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";let i;if(Jg(e," argument"))i=`The ${e} ${n} ${hc(t,"type")}`;else{let s=Yg(e,".")?"property":"argument";i=`The "${e}" ${s} ${n} ${hc(t,"type")}`}return i+=`. Received type ${typeof r}`,i},TypeError);ge("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");ge("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});ge("ERR_STREAM_PREMATURE_CLOSE","Premature close");ge("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});ge("ERR_MULTIPLE_CALLBACK","Callback called multiple times");ge("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");ge("ERR_STREAM_WRITE_AFTER_END","write after end");ge("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);ge("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);ge("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");dc.exports.codes=pc});var Qs=g((bC,gc)=>{"use strict";var Wg=Ye().codes.ERR_INVALID_OPT_VALUE;function Vg(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Xg(e,t,r,n){var i=Vg(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var s=n?r:"highWaterMark";throw new Wg(s,i)}return Math.floor(i)}return e.objectMode?16:16*1024}gc.exports={getHighWaterMark:Xg}});var _c=g((vC,Is)=>{typeof Object.create=="function"?Is.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Is.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 at=g((xC,Os)=>{try{if(Ts=S("util"),typeof Ts.inherits!="function")throw"";Os.exports=Ts.inherits}catch{Os.exports=_c()}var Ts});var mc=g((SC,Ec)=>{Ec.exports=S("util").deprecate});var Ls=g((BC,Sc)=>{"use strict";Sc.exports=W;function Cc(e){var t=this;this.next=null,this.entry=null,this.finish=function(){x_(t,e)}}var Tt;W.WritableState=Xt;var Zg={deprecate:mc()},bc=Ss(),sn=S("buffer").Buffer,zg=global.Uint8Array||function(){};function e_(e){return sn.from(e)}function t_(e){return sn.isBuffer(e)||e instanceof zg}var ks=Rs(),r_=Qs(),n_=r_.getHighWaterMark,We=Ye().codes,i_=We.ERR_INVALID_ARG_TYPE,s_=We.ERR_METHOD_NOT_IMPLEMENTED,o_=We.ERR_MULTIPLE_CALLBACK,a_=We.ERR_STREAM_CANNOT_PIPE,l_=We.ERR_STREAM_DESTROYED,u_=We.ERR_STREAM_NULL_VALUES,c_=We.ERR_STREAM_WRITE_AFTER_END,f_=We.ERR_UNKNOWN_ENCODING,Ot=ks.errorOrDestroy;at()(W,bc);function A_(){}function Xt(e,t,r){Tt=Tt||lt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Tt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=n_(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){m_(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 Cc(this)}Xt.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Xt.prototype,"buffer",{get:Zg.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var nn;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(nn=Function.prototype[Symbol.hasInstance],Object.defineProperty(W,Symbol.hasInstance,{value:function(t){return nn.call(this,t)?!0:this!==W?!1:t&&t._writableState instanceof Xt}})):nn=function(t){return t instanceof this};function W(e){Tt=Tt||lt();var t=this instanceof Tt;if(!t&&!nn.call(W,this))return new W(e);this._writableState=new Xt(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)),bc.call(this)}W.prototype.pipe=function(){Ot(this,new a_)};function h_(e,t){var r=new c_;Ot(e,r),process.nextTick(t,r)}function p_(e,t,r,n){var i;return r===null?i=new u_:typeof r!="string"&&!t.objectMode&&(i=new i_("chunk",["string","Buffer"],r)),i?(Ot(e,i),process.nextTick(n,i),!1):!0}W.prototype.write=function(e,t,r){var n=this._writableState,i=!1,s=!n.objectMode&&t_(e);return s&&!sn.isBuffer(e)&&(e=e_(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=A_),n.ending?h_(this,r):(s||p_(this,n,e,r))&&(n.pendingcb++,i=g_(this,n,s,e,t,r)),i};W.prototype.cork=function(){this._writableState.corked++};W.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&vc(this,e))};W.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new f_(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(W.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function d_(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=sn.from(t,r)),t}Object.defineProperty(W.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function g_(e,t,r,n,i,s){if(!r){var o=d_(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var 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 Ds(e,t,!1,a,n,i,s);return l}function Ds(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new l_("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function __(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 E_(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function m_(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(typeof i!="function")throw new o_;if(E_(r),t)__(e,r,n,t,i);else{var s=xc(r)||e.destroyed;!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&vc(e,r),n?process.nextTick(yc,e,r,s,i):yc(e,r,s,i)}}function yc(e,t,r,n){r||y_(e,t),t.pendingcb--,n(),Vt(e,t)}function y_(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function vc(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,Ds(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 Cc(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,u=r.callback,h=t.objectMode?1:l.length;if(Ds(e,t,!1,h,l,c,u),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}W.prototype._write=function(e,t,r){r(new s_("_write()"))};W.prototype._writev=null;W.prototype.end=function(e,t,r){var n=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||v_(this,n,r),this};Object.defineProperty(W.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function xc(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function C_(e,t){e._final(function(r){t.pendingcb--,r&&Ot(e,r),t.prefinished=!0,e.emit("prefinish"),Vt(e,t)})}function b_(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(C_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Vt(e,t){var r=xc(t);if(r&&(b_(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 v_(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 x_(e,t,r){var n=e.entry;for(e.entry=null;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(W.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(t){!this._writableState||(this._writableState.destroyed=t)}});W.prototype.destroy=ks.destroy;W.prototype._undestroy=ks.undestroy;W.prototype._destroy=function(e,t){t(e)}});var lt=g((wC,wc)=>{"use strict";var S_=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};wc.exports=Oe;var Bc=Ms(),Ns=Ls();at()(Oe,Bc);for(Ps=S_(Ns.prototype),on=0;on<Ps.length;on++)an=Ps[on],Oe.prototype[an]||(Oe.prototype[an]=Ns.prototype[an]);var Ps,an,on;function Oe(e){if(!(this instanceof Oe))return new Oe(e);Bc.call(this,e),Ns.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",B_)))}Object.defineProperty(Oe.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});Object.defineProperty(Oe.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});Object.defineProperty(Oe.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function B_(){this._writableState.ended||process.nextTick(w_,this)}function w_(e){e.end()}Object.defineProperty(Oe.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 Ic=g((Fs,Qc)=>{var ln=S("buffer"),De=ln.Buffer;function Rc(e,t){for(var r in e)t[r]=e[r]}De.from&&De.alloc&&De.allocUnsafe&&De.allocUnsafeSlow?Qc.exports=ln:(Rc(ln,Fs),Fs.Buffer=ut);function ut(e,t,r){return De(e,t,r)}ut.prototype=Object.create(De.prototype);Rc(De,ut);ut.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return De(e,t,r)};ut.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=De(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};ut.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return De(e)};ut.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return ln.SlowBuffer(e)}});var Hs=g(Oc=>{"use strict";var js=Ic().Buffer,Tc=js.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 R_(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 Q_(e){var t=R_(e);if(typeof t!="string"&&(js.isEncoding===Tc||!Tc(e)))throw new Error("Unknown encoding: "+e);return t||e}Oc.StringDecoder=Zt;function Zt(e){this.encoding=Q_(e);var t;switch(this.encoding){case"utf16le":this.text=L_,this.end=P_,t=4;break;case"utf8":this.fillLast=O_,t=4;break;case"base64":this.text=N_,this.end=M_,t=3;break;default:this.write=F_,this.end=q_;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=js.allocUnsafe(t)}Zt.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||""};Zt.prototype.end=k_;Zt.prototype.text=D_;Zt.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 qs(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function I_(e,t,r){var n=t.length-1;if(n<r)return 0;var i=qs(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=qs(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=qs(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function T_(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 O_(e){var t=this.lastTotal-this.lastNeed,r=T_(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 D_(e,t){var r=I_(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 k_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function L_(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 P_(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 N_(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 M_(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function F_(e){return e.toString(this.encoding)}function q_(e){return e&&e.length?this.write(e):""}});var un=g((QC,Lc)=>{"use strict";var Dc=Ye().codes.ERR_STREAM_PREMATURE_CLOSE;function j_(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 H_(){}function $_(e){return e.setHeader&&typeof e.abort=="function"}function kc(e,t,r){if(typeof t=="function")return kc(e,null,t);t||(t={}),r=j_(r||H_);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)},l=e._readableState&&e._readableState.endEmitted,c=function(){n=!1,l=!0,i||r.call(e)},u=function(E){r.call(e,E)},h=function(){var E;if(n&&!l)return(!e._readableState||!e._readableState.ended)&&(E=new Dc),r.call(e,E);if(i&&!o)return(!e._writableState||!e._writableState.ended)&&(E=new Dc),r.call(e,E)},A=function(){e.req.on("finish",a)};return $_(e)?(e.on("complete",a),e.on("abort",h),e.req?A():e.on("request",A)):i&&!e._writableState&&(e.on("end",s),e.on("close",s)),e.on("end",c),e.on("finish",a),t.error!==!1&&e.on("error",u),e.on("close",h),function(){e.removeListener("complete",a),e.removeListener("abort",h),e.removeListener("request",A),e.req&&e.req.removeListener("finish",a),e.removeListener("end",s),e.removeListener("close",s),e.removeListener("finish",a),e.removeListener("end",c),e.removeListener("error",u),e.removeListener("close",h)}}Lc.exports=kc});var Nc=g((IC,Pc)=>{"use strict";var cn;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 G_=un(),Xe=Symbol("lastResolve"),ct=Symbol("lastReject"),zt=Symbol("error"),fn=Symbol("ended"),ft=Symbol("lastPromise"),$s=Symbol("handlePromise"),At=Symbol("stream");function Ze(e,t){return{value:e,done:t}}function U_(e){var t=e[Xe];if(t!==null){var r=e[At].read();r!==null&&(e[ft]=null,e[Xe]=null,e[ct]=null,t(Ze(r,!1)))}}function K_(e){process.nextTick(U_,e)}function J_(e,t){return function(r,n){e.then(function(){if(t[fn]){r(Ze(void 0,!0));return}t[$s](r,n)},n)}}var Y_=Object.getPrototypeOf(function(){}),W_=Object.setPrototypeOf((cn={get stream(){return this[At]},next:function(){var t=this,r=this[zt];if(r!==null)return Promise.reject(r);if(this[fn])return Promise.resolve(Ze(void 0,!0));if(this[At].destroyed)return new Promise(function(o,a){process.nextTick(function(){t[zt]?a(t[zt]):o(Ze(void 0,!0))})});var n=this[ft],i;if(n)i=new Promise(J_(n,this));else{var s=this[At].read();if(s!==null)return Promise.resolve(Ze(s,!1));i=new Promise(this[$s])}return this[ft]=i,i}},Ve(cn,Symbol.asyncIterator,function(){return this}),Ve(cn,"return",function(){var t=this;return new Promise(function(r,n){t[At].destroy(null,function(i){if(i){n(i);return}r(Ze(void 0,!0))})})}),cn),Y_),V_=function(t){var r,n=Object.create(W_,(r={},Ve(r,At,{value:t,writable:!0}),Ve(r,Xe,{value:null,writable:!0}),Ve(r,ct,{value:null,writable:!0}),Ve(r,zt,{value:null,writable:!0}),Ve(r,fn,{value:t._readableState.endEmitted,writable:!0}),Ve(r,$s,{value:function(s,o){var a=n[At].read();a?(n[ft]=null,n[Xe]=null,n[ct]=null,s(Ze(a,!1))):(n[Xe]=s,n[ct]=o)},writable:!0}),r));return n[ft]=null,G_(t,function(i){if(i&&i.code!=="ERR_STREAM_PREMATURE_CLOSE"){var s=n[ct];s!==null&&(n[ft]=null,n[Xe]=null,n[ct]=null,s(i)),n[zt]=i;return}var o=n[Xe];o!==null&&(n[ft]=null,n[Xe]=null,n[ct]=null,o(Ze(void 0,!0))),n[fn]=!0}),t.on("readable",K_.bind(null,n)),n};Pc.exports=V_});var jc=g((TC,qc)=>{"use strict";function Mc(e,t,r,n,i,s,o){try{var a=e[s](o),l=a.value}catch(c){r(c);return}a.done?t(l):Promise.resolve(l).then(n,i)}function X_(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function o(l){Mc(s,n,i,o,a,"next",l)}function a(l){Mc(s,n,i,o,a,"throw",l)}o(void 0)})}}function Fc(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 Z_(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fc(Object(r),!0).forEach(function(n){z_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fc(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function z_(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var e0=Ye().codes.ERR_INVALID_ARG_TYPE;function t0(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 e0("iterable",["Iterable"],t);var i=new e(Z_({objectMode:!0},r)),s=!1;i._read=function(){s||(s=!0,o())};function o(){return a.apply(this,arguments)}function a(){return a=X_(function*(){try{var l=yield n.next(),c=l.value,u=l.done;u?i.push(null):i.push(yield c)?o():s=!1}catch(h){i.destroy(h)}}),a.apply(this,arguments)}return i}qc.exports=t0});var Ms=g((DC,Xc)=>{"use strict";Xc.exports=L;var Dt;L.ReadableState=Uc;var OC=S("events").EventEmitter,Gc=function(t,r){return t.listeners(r).length},tr=Ss(),An=S("buffer").Buffer,r0=global.Uint8Array||function(){};function n0(e){return An.from(e)}function i0(e){return An.isBuffer(e)||e instanceof r0}var Gs=S("util"),I;Gs&&Gs.debuglog?I=Gs.debuglog("stream"):I=function(){};var s0=cc(),Xs=Rs(),o0=Qs(),a0=o0.getHighWaterMark,hn=Ye().codes,l0=hn.ERR_INVALID_ARG_TYPE,u0=hn.ERR_STREAM_PUSH_AFTER_EOF,c0=hn.ERR_METHOD_NOT_IMPLEMENTED,f0=hn.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,kt,Us,Ks;at()(L,tr);var er=Xs.errorOrDestroy,Js=["error","close","destroy","pause","resume"];function A0(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 Uc(e,t,r){Dt=Dt||lt(),e=e||{},typeof r!="boolean"&&(r=t instanceof Dt),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=a0(this,e,"readableHighWaterMark",r),this.buffer=new s0,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&&(kt||(kt=Hs().StringDecoder),this.decoder=new kt(e.encoding),this.encoding=e.encoding)}function L(e){if(Dt=Dt||lt(),!(this instanceof L))return new L(e);var t=this instanceof Dt;this._readableState=new Uc(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),tr.call(this)}Object.defineProperty(L.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});L.prototype.destroy=Xs.destroy;L.prototype._undestroy=Xs.undestroy;L.prototype._destroy=function(e,t){t(e)};L.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=An.from(e,t),t=""),n=!0),Kc(this,e,t,!1,n)};L.prototype.unshift=function(e){return Kc(this,e,null,!0,!1)};function Kc(e,t,r,n,i){I("readableAddChunk",t);var s=e._readableState;if(t===null)s.reading=!1,d0(e,s);else{var o;if(i||(o=h0(s,t)),o)er(e,o);else if(s.objectMode||t&&t.length>0)if(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==An.prototype&&(t=n0(t)),n)s.endEmitted?er(e,new f0):Ys(e,s,t,!0);else if(s.ended)er(e,new u0);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?Ys(e,s,t,!1):Vs(e,s)):Ys(e,s,t,!1)}else n||(s.reading=!1,Vs(e,s))}return!s.ended&&(s.length<s.highWaterMark||s.length===0)}function Ys(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&&pn(e)),Vs(e,t)}function h0(e,t){var r;return!i0(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new l0("chunk",["string","Buffer","Uint8Array"],t)),r}L.prototype.isPaused=function(){return this._readableState.flowing===!1};L.prototype.setEncoding=function(e){kt||(kt=Hs().StringDecoder);var t=new kt(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 Hc=1073741824;function p0(e){return e>=Hc?e=Hc:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function $c(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=p0(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}L.prototype.read=function(e){I("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return I("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ws(this):pn(this),null;if(e=$c(e,t),e===0&&t.ended)return t.length===0&&Ws(this),null;var n=t.needReadable;I("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,I("length less than watermark",n)),t.ended||t.reading?(n=!1,I("reading or ended",n)):n&&(I("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=$c(r,t)));var i;return e>0?i=Wc(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&&Ws(this)),i!==null&&this.emit("data",i),i};function d0(e,t){if(I("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?pn(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Jc(e)))}}function pn(e){var t=e._readableState;I("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(I("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Jc,e))}function Jc(e){var t=e._readableState;I("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Zs(e)}function Vs(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(g0,e,t))}function g0(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(I("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}L.prototype._read=function(e){er(this,new c0("_read()"))};L.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,I("pipe count=%d opts=%j",n.pipesCount,t);var i=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=i?a:_;n.endEmitted?process.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(v,b){I("onunpipe"),v===r&&b&&b.hasUnpiped===!1&&(b.hasUnpiped=!0,u())}function a(){I("onend"),e.end()}var l=_0(r);e.on("drain",l);var c=!1;function u(){I("cleanup"),e.removeListener("close",C),e.removeListener("finish",E),e.removeListener("drain",l),e.removeListener("error",A),e.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",_),r.removeListener("data",h),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}r.on("data",h);function h(v){I("ondata");var b=e.write(v);I("dest.write",b),b===!1&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&Vc(n.pipes,e)!==-1)&&!c&&(I("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function A(v){I("onerror",v),_(),e.removeListener("error",A),Gc(e,"error")===0&&er(e,v)}A0(e,"error",A);function C(){e.removeListener("finish",E),_()}e.once("close",C);function E(){I("onfinish"),e.removeListener("close",C),_()}e.once("finish",E);function _(){I("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(I("pipe resume"),r.resume()),e};function _0(e){return function(){var r=e._readableState;I("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Gc(e,"data")&&(r.flowing=!0,Zs(e))}}L.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)n[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=Vc(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};L.prototype.on=function(e,t){var r=tr.prototype.on.call(this,e,t),n=this._readableState;return e==="data"?(n.readableListening=this.listenerCount("readable")>0,n.flowing!==!1&&this.resume()):e==="readable"&&!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,I("on readable",n.length,n.reading),n.length?pn(this):n.reading||process.nextTick(E0,this)),r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(e,t){var r=tr.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(Yc,this),r};L.prototype.removeAllListeners=function(e){var t=tr.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(Yc,this),t};function Yc(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 E0(e){I("readable nexttick read 0"),e.read(0)}L.prototype.resume=function(){var e=this._readableState;return e.flowing||(I("resume"),e.flowing=!e.readableListening,m0(this,e)),e.paused=!1,this};function m0(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(y0,e,t))}function y0(e,t){I("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Zs(e),t.flowing&&!t.reading&&e.read(0)}L.prototype.pause=function(){return I("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(I("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Zs(e){var t=e._readableState;for(I("flow",t.flowing);t.flowing&&e.read()!==null;);}L.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(I("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(I("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var a=t.push(o);a||(n=!0,e.pause())}});for(var i in e)this[i]===void 0&&typeof e[i]=="function"&&(this[i]=function(a){return function(){return e[a].apply(e,arguments)}}(i));for(var s=0;s<Js.length;s++)e.on(Js[s],this.emit.bind(this,Js[s]));return this._read=function(o){I("wrapped _read",o),n&&(n=!1,e.resume())},this};typeof Symbol=="function"&&(L.prototype[Symbol.asyncIterator]=function(){return Us===void 0&&(Us=Nc()),Us(this)});Object.defineProperty(L.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Object.defineProperty(L.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}});Object.defineProperty(L.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}});L._fromList=Wc;Object.defineProperty(L.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function Wc(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 Ws(e){var t=e._readableState;I("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(C0,t,e))}function C0(e,t){if(I("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(L.from=function(e,t){return Ks===void 0&&(Ks=jc()),Ks(L,e,t)});function Vc(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var zs=g((kC,zc)=>{"use strict";zc.exports=je;var dn=Ye().codes,b0=dn.ERR_METHOD_NOT_IMPLEMENTED,v0=dn.ERR_MULTIPLE_CALLBACK,x0=dn.ERR_TRANSFORM_ALREADY_TRANSFORMING,S0=dn.ERR_TRANSFORM_WITH_LENGTH_0,gn=lt();at()(je,gn);function B0(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new v0);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 je(e){if(!(this instanceof je))return new je(e);gn.call(this,e),this._transformState={afterTransform:B0.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",w0)}function w0(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Zc(e,t,r)}):Zc(this,null,null)}je.prototype.push=function(e,t){return this._transformState.needTransform=!1,gn.prototype.push.call(this,e,t)};je.prototype._transform=function(e,t,r){r(new b0("_transform()"))};je.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)}};je.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};je.prototype._destroy=function(e,t){gn.prototype._destroy.call(this,e,function(r){t(r)})};function Zc(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new S0;if(e._transformState.transforming)throw new x0;return e.push(null)}});var rf=g((LC,tf)=>{"use strict";tf.exports=rr;var ef=zs();at()(rr,ef);function rr(e){if(!(this instanceof rr))return new rr(e);ef.call(this,e)}rr.prototype._transform=function(e,t,r){r(null,e)}});var lf=g((PC,af)=>{"use strict";var eo;function R0(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var of=Ye().codes,Q0=of.ERR_MISSING_ARGS,I0=of.ERR_STREAM_DESTROYED;function nf(e){if(e)throw e}function T0(e){return e.setHeader&&typeof e.abort=="function"}function O0(e,t,r,n){n=R0(n);var i=!1;e.on("close",function(){i=!0}),eo===void 0&&(eo=un()),eo(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,T0(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(o||new I0("pipe"))}}}function sf(e){e()}function D0(e,t){return e.pipe(t)}function k0(e){return!e.length||typeof e[e.length-1]!="function"?nf:e.pop()}function L0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=k0(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Q0("streams");var i,s=t.map(function(o,a){var l=a<t.length-1,c=a>0;return O0(o,l,c,function(u){i||(i=u),u&&s.forEach(sf),!l&&(s.forEach(sf),n(i))})});return t.reduce(D0)}af.exports=L0});var uf=g((_e,ir)=>{var nr=S("stream");process.env.READABLE_STREAM==="disable"&&nr?(ir.exports=nr.Readable,Object.assign(ir.exports,nr),ir.exports.Stream=nr):(_e=ir.exports=Ms(),_e.Stream=nr||_e,_e.Readable=_e,_e.Writable=Ls(),_e.Duplex=lt(),_e.Transform=zs(),_e.PassThrough=rf(),_e.finished=un(),_e.pipeline=lf())});var Af=g((NC,ff)=>{"use strict";var{Buffer:be}=S("buffer"),cf=Symbol.for("BufferList");function H(e){if(!(this instanceof H))return new H(e);H._init.call(this,e)}H._init=function(t){Object.defineProperty(this,cf,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)};H.prototype._new=function(t){return new H(t)};H.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}};H.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};H.prototype.get=function(t){if(t>this.length||t<0)return;let r=this._offset(t);return this._bufs[r[0]][r[1]]};H.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)};H.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,l=a,c=s&&r||0,u=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 h=0;h<this._bufs.length;h++)this._bufs[h].copy(t,c),c+=this._bufs[h].length;return t}if(l<=this._bufs[o[0]].length-u)return s?this._bufs[o[0]].copy(t,r,u,u+l):this._bufs[o[0]].slice(u,u+l);s||(t=be.allocUnsafe(a));for(let h=o[0];h<this._bufs.length;h++){let A=this._bufs[h].length-u;if(l>A)this._bufs[h].copy(t,c,u),c+=A;else{this._bufs[h].copy(t,c,u,u+l),c+=A;break}l-=A,u&&(u=0)}return t.length>c?t.slice(0,c):t};H.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)};H.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};H.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};H.prototype.duplicate=function(){let t=this._new();for(let r=0;r<this._bufs.length;r++)t.append(this._bufs[r]);return t};H.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};H.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};H.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 l=o.indexOf(e,s);if(l!==-1)return this._reverseOffset([i,l]);s=o.length-e.length+1}else{let l=this._reverseOffset([i,s]);if(this._match(l,e))return l;s++}s=0}return-1};H.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?H.prototype[r]=function(n,i){return this.slice(n,n+i)[r](0,i)}:H.prototype[r]=function(n=0){return this.slice(n,n+e[r])[r](0)}})(t)})();H.prototype._isBufferList=function(t){return t instanceof H||H.isBufferList(t)};H.isBufferList=function(t){return t!=null&&t[cf]};ff.exports=H});var hf=g((MC,_n)=>{"use strict";var to=uf().Duplex,P0=at(),sr=Af();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}sr._init.call(this,e),to.call(this)}P0(ie,to);Object.assign(ie.prototype,sr.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){to.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 sr||ie.isBufferList(t)};ie.isBufferList=sr.isBufferList;_n.exports=ie;_n.exports.BufferListStream=ie;_n.exports.BufferList=sr});var Io=g((Dv,Mf)=>{var Rn=S("fs"),Nf=S("path"),XE=S("os");function Ro(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function Qo(e,t){try{return t(e)}catch(r){if(/^(ENOENT|EPERM|EACCES)$/.test(r.code))return r.code!=="ENOENT"&&console.warn("Warning: Cannot access %s",e),!1;throw r}}var ZE={nil:function(e){return e==null},array:function(e){return Array.isArray(e)},emptyObject:function(e){for(var t in e)return!1;return!0},buffer:function(e){return Buffer.isBuffer(e)},regExp:function(e){return Ro(e,"RegExp")},string:function(e){return Ro(e,"String")},func:function(e){return typeof e=="function"},number:function(e){return Ro(e,"Number")},exists:function(e){return Rn.existsSync(e)},file:function(e){return Qo(e,function(t){return Rn.statSync(t).isFile()})},samePath:function(e,t){return Nf.resolve(e)===Nf.resolve(t)},directory:function(e){return Qo(e,function(t){return Rn.statSync(t).isDirectory()})},symbolicLink:function(e){return Qo(e,function(t){return Rn.lstatSync(t).isSymbolicLink()})},windows:function(){return XE.platform()==="win32"}};Mf.exports=ZE});var $f=g((kv,Hf)=>{var fr=S("fs"),Ff=S("os"),To=S("path"),Qn=Io(),cr,zE=Ff.tmpdir&&Ff.tmpdir()||process.env.TMPDIR||process.env.TEMP||process.cwd();function jf(){this.stack=[]}jf.prototype={create:function(e,t){var r=To.join(t,"node-watch-"+Math.random().toString(16).substr(2));return this.stack.push({name:r,type:e}),r},write:function(){for(var e=0;e<arguments.length;++e)fr.writeFileSync(arguments[e]," ")},mkdir:function(){for(var e=0;e<arguments.length;++e)fr.mkdirSync(arguments[e])},cleanup:function(e){try{for(var t;t=this.stack.pop();){var r=t.type,n=t.name;r==="file"&&Qn.file(n)?fr.unlinkSync(n):r==="dir"&&Qn.directory(n)&&fr.rmdirSync(n)}}finally{Qn.func(e)&&e()}}};var qf=!1;Hf.exports=function e(t){if(!Qn.func(t))return!1;if(cr!==void 0)return t(cr);if(!qf)qf=!0;else return setTimeout(function(){e(t)},300);var r=new jf,n=r.create("dir",zE),i=r.create("dir",n),s=r.create("file",i);r.mkdir(n,i);var o={recursive:!0},a;try{a=fr.watch(n,o)}catch(c){if(c.code=="ERR_FEATURE_UNAVAILABLE_ON_PLATFORM")return t(cr=!1);throw c}if(!a)return!1;var l=setTimeout(function(){a.close(),r.cleanup(function(){t(cr=!1)})},200);a.on("change",function(c,u){To.basename(s)===To.basename(u)&&(a.close(),clearTimeout(l),r.cleanup(function(){t(cr=!0)}))}),r.write(s)}});var eA=g((Lv,Lo)=>{var Do=S("fs"),Ar=S("path"),Uf=S("util"),Kf=S("events"),Jf=$f(),q=Io(),em="update",Yf="remove",Gf=Symbol("skip");function tm(e){return e.some(function(t,r,n){return n.indexOf(t)!==r})}function ko(e){return e.filter(function(t,r,n){return n.indexOf(t)===r})}function rm(e){return e.reduce(function(t,r){return t.concat(r)},[])}function nm(e){if(e&&e!=="buffer"&&!Buffer.isEncoding(e))throw new Error("Unknown encoding: "+e)}function im(e){return q.func(e)?function(t,r){e(t,!1)&&r()}:q.regExp(e)?function(t,r){e.test(t)&&r()}:function(t,r){r()}}function sm(e){return e.map(function(t){return q.exists(t)?[em,t]:[Yf,t]})}function om(e){var t=ko(e),r=/~$|^\.#|^##$/g,n=e.some(function(s){return r.test(s)});if(n){var i=tm(e.map(function(s){return s.replace(r,"")}));i&&(t=t.filter(function(s){return q.exists(s)}))}return sm(t)}function am(e,t){var r,n=[],i=e.options.encoding,s=e.options.delay;q.number(s)||(s=200);function o(){om(n).forEach(function(a){a[1]=Buffer.from(a[1]),i!=="buffer"&&(a[1]=a[1].toString(i)),t.apply(null,a)}),r=null,n=[]}return function(a,l){n.push(l),r||(r=setTimeout(o,s))}}function Wf(){var e={};return function(t){return function(r,n){e[r+n]=[r,n],setTimeout(function(){Object.keys(e).forEach(function(i){t.apply(null,e[i])}),e={}})}}}function Vf(e,t,r=function(){}){q.directory(e)?Do.readdir(e,function(n,i){if(n)if(/^(EPERM|EACCES)$/.test(n.code))console.warn("Warning: Cannot access %s.",e);else throw n;else i.forEach(function(s){var o=Ar.join(e,s);q.directory(o)&&t(o)}),r()}):r()}function lm(e){var t=0;return function(){return t++,function(){t--,t===0&&e()}}}function um(){return function(){}}function Xf(e,t){return!q.func(t)||t(e,Gf)!==Gf}var Zf=Uf.deprecate(function(){},"(node-watch) First param in callback function is replaced with event name since 0.5.0, use `(evt, filename) => {}` if you want to get the filename");function Le(){Kf.EventEmitter.call(this),this.watchers={},this._isReady=!1,this._isClosed=!1}Uf.inherits(Le,Kf.EventEmitter);Le.prototype.expose=function(){var e={},t=this,r=["on","emit","once","close","isClosed","listeners","setMaxListeners","getMaxListeners","getWatchedPaths"];return r.forEach(function(n){e[n]=function(){return t[n].apply(t,arguments)}}),e};Le.prototype.isClosed=function(){return this._isClosed};Le.prototype.close=function(e){var t=this;if(e){var r=this.watchers[e];r&&r.close&&(r.close(),delete t.watchers[e]),Vf(e,function(n){t.close(n)})}else Object.keys(t.watchers).forEach(function(n){var i=t.watchers[n];i&&i.close&&i.close()}),this.watchers={};q.emptyObject(t.watchers)&&(this._isClosed||(this._isClosed=!0,process.nextTick(zf,this)))};Le.prototype.getWatchedPaths=function(e){if(q.func(e)){var t=this;t._isReady?e(Object.keys(t.watchers)):t.on("ready",function(){e(Object.keys(t.watchers))})}};function Oo(e){e._isReady||(e._isReady=!0,process.nextTick(function(){e.emit("ready")}))}function zf(e){e.emit("close")}Le.prototype.add=function(e,t){var r=this;t=t||{fpath:""};var n=Ar.resolve(t.fpath);this.watchers[n]=e;var i=function(o,a){if(!r.isClosed()){var l=a;q.nil(l)&&(l=""),l=Ar.join(t.fpath,l),t.options.recursive&&Jf(function(c){if(!c){var u=Ar.resolve(l);if(!q.exists(l))r.close(u);else{var h=q.directory(l)&&!r.watchers[u]&&Xf(l,t.options.filter);h&&r.watchDirectory(l,t.options)}}}),s(o,l)}},s=am(t,function(o,a){if(t.compareName)t.compareName(a)&&r.emit("change",o,a);else{var l=im(t.options.filter);l(a,function(){r.flag?r.flag="":r.emit("change",o,a)})}});e.on("error",function(o){r.isClosed()||(q.windows()&&o.code==="EPERM"?(e.emit("change",Yf,t.fpath&&""),r.flag="windows-error",r.close(n)):r.emit("error",o))}),e.on("change",i)};Le.prototype.watchFile=function(e,t,r){var n=Ar.join(e,"../"),i=Object.assign({},t,{filter:null,encoding:"utf8"});delete i.recursive;var s=Do.watch(n,i);this.add(s,{type:"file",fpath:n,options:Object.assign({},i,{encoding:t.encoding}),compareName:function(o){return q.samePath(o,e)}}),q.func(r)&&(r.length===1&&Zf(),this.on("change",r))};Le.prototype.watchDirectory=function(e,t,r,n=um){var i=this,s=n();Jf(function(o){t.recursive=!!t.recursive;var a=Object.assign({},t,{encoding:"utf8"});if(o||delete a.recursive,i._isClosed)return s(),i.close();var l=Do.watch(e,a);i.add(l,{type:"dir",fpath:e,options:t}),q.func(r)&&(r.length===1&&Zf(),i.on("change",r)),t.recursive&&!o&&Vf(e,function(c){Xf(c,t.filter)&&i.watchDirectory(c,t,null,n)},n()),s()})};function cm(e){var t=new Le,r=Wf(),n=e.length;return e.forEach(function(i){i.on("change",r(function(s,o){t.emit("change",s,o)})),i.on("error",function(s){t.emit("error",s)}),i.on("ready",function(){--n||Oo(t)})}),t.close=function(){e.forEach(function(i){i.close()}),process.nextTick(zf,t)},t.getWatchedPaths=function(i){if(q.func(i)){var s=e.map(function(o){return new Promise(function(a){o.getWatchedPaths(a)})});Promise.all(s).then(function(o){var a=ko(rm(o));i(a)})}},t.expose()}function In(e,t,r){var n=new Le;if(q.buffer(e)&&(e=e.toString()),!q.array(e)&&!q.exists(e)&&n.emit("error",new Error(e+" does not exist.")),q.string(t)&&(t={encoding:t}),q.func(t)&&(r=t,t={}),arguments.length<2&&(t={}),t.encoding?nm(t.encoding):t.encoding="utf8",q.array(e)){if(e.length===1)return In(e[0],t,r);var i=Wf();return cm(ko(e).map(function(o){var a=In(o,t);return q.func(r)&&a.on("change",i(r)),a}))}if(q.file(e))n.watchFile(e,t,r),Oo(n);else if(q.directory(e)){var s=lm(function(){Oo(n)});n.watchDirectory(e,t,r,s)}return n.expose()}Lo.exports=In;Lo.exports.default=In});import{constants as DE,existsSync as vo}from"fs";import{copyFile as kE,mkdir as LE,readFile as kf,rm as Qf,writeFile as PE}from"fs/promises";import{dirname as Lf,extname as NE,isAbsolute as ME,resolve as FE,resolve as ur}from"path";import{build as Co,transform as qE}from"esbuild";var No=(e=0)=>t=>`\x1B[${t+e}m`,Mo=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Fo=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function AA(){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=No(),t.color.ansi256=Mo(),t.color.ansi16m=Fo(),t.bgColor.ansi=No(10),t.bgColor.ansi256=Mo(10),t.bgColor.ansi16m=Fo(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 l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%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 hA=AA(),Ce=hA;import On from"node:process";import pA from"node:os";import qo from"node:tty";function he(e,t=On.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:X}=On,_r;he("no-color")||he("no-colors")||he("color=false")||he("color=never")?_r=0:(he("color")||he("colors")||he("color=true")||he("color=always"))&&(_r=1);function dA(){if("FORCE_COLOR"in X)return X.FORCE_COLOR==="true"?1:X.FORCE_COLOR==="false"?0:X.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(X.FORCE_COLOR,10),3)}function gA(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _A(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=dA();n!==void 0&&(_r=n);let i=r?_r:n;if(i===0)return 0;if(r){if(he("color=16m")||he("color=full")||he("color=truecolor"))return 3;if(he("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(X.TERM==="dumb")return s;if(On.platform==="win32"){let o=pA.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in X)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in X)||X.CI_NAME==="codeship"?1:s;if("TEAMCITY_VERSION"in X)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(X.TEAMCITY_VERSION)?1:0;if("TF_BUILD"in X&&"AGENT_NAME"in X)return 1;if(X.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in X){let o=Number.parseInt((X.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(X.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(X.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(X.TERM)||"COLORTERM"in X?1:s}function jo(e,t={}){let r=_A(e,{streamIsTTY:e&&e.isTTY,...t});return gA(r)}var EA={stdout:jo({isTTY:qo.isatty(1)}),stderr:jo({isTTY:qo.isatty(2)})},Ho=EA;function $o(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 Go(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
6
  `:`
7
7
  `)+r,i=n+1,n=e.indexOf(`
8
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Ho,stderr:jo}=Mo,In=Symbol("GENERATOR"),dt=Symbol("STYLER"),Ft=Symbol("IS_EMPTY"),$o=["ansi","ansi","ansi256","ansi16m"],gt=Object.create(null),_A=(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=Ho?Ho.level:0;e.level=t.level===void 0?r:t.level};var EA=e=>{let t=(...r)=>r.join(" ");return _A(t,e),Object.setPrototypeOf(t,qt.prototype),t};function qt(e){return EA(e)}Object.setPrototypeOf(qt.prototype,Function.prototype);for(let[e,t]of Object.entries(ye))gt[e]={get(){let r=_r(this,On(t.open,t.close,this[dt]),this[Ft]);return Object.defineProperty(this,e,{value:r}),r}};gt.visible={get(){let e=_r(this,this[dt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Tn=(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"?Tn("rgb",t,r,...ye.hexToRgb(...n)):ye[r][e](...n),mA=["rgb","hex","ansi256"];for(let e of mA){gt[e]={get(){let{level:r}=this;return function(...n){let i=On(Tn(e,$o[r],"color",...n),ye.color.close,this[dt]);return _r(this,i,this[Ft])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);gt[t]={get(){let{level:r}=this;return function(...n){let i=On(Tn(e,$o[r],"bgColor",...n),ye.bgColor.close,this[dt]);return _r(this,i,this[Ft])}}}}var yA=Object.defineProperties(()=>{},{...gt,level:{enumerable:!0,get(){return this[In].level},set(e){this[In].level=e}}}),On=(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}},_r=(e,t,r)=>{let n=(...i)=>CA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,yA),n[In]=e,n[dt]=t,n[Ft]=r,n},CA=(e,t)=>{if(e.level<=0||!t)return e[Ft]?"":t;let r=e[dt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Fo(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
- `);return s!==-1&&(t=qo(t,i,n,s)),n+t+i};Object.defineProperties(qt.prototype,gt);var bA=qt(),bm=qt({level:jo?jo.level:0});var T=bA;var mo=He(ps(),1);import{env as Bc}from"process";import _n from"node:process";import ju from"node:process";var Fu=He(Ou(),1),qu=He(Mu(),1);import vg from"node:process";var Sg=(0,Fu.default)(()=>{(0,qu.default)(()=>{vg.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Hu=Sg;var Vr=!1,It={};It.show=(e=ju.stderr)=>{!e.isTTY||(Vr=!1,e.write("\x1B[?25h"))};It.hide=(e=ju.stderr)=>{!e.isTTY||(Hu(),Vr=!0,e.write("\x1B[?25l"))};It.toggle=(e,t)=>{e!==void 0&&(Vr=e),Vr?It.show(t):It.hide(t)};var Es=It;var sr=He(Ku(),1);import Fe from"node:process";function Kt(){return Fe.platform!=="win32"?Fe.env.TERM!=="linux":Boolean(Fe.env.CI)||Boolean(Fe.env.WT_SESSION)||Fe.env.ConEmuTask==="{cmd::Cmder}"||Fe.env.TERM_PROGRAM==="vscode"||Fe.env.TERM==="xterm-256color"||Fe.env.TERM==="alacritty"||Fe.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Bg={info:T.blue("ℹ"),success:T.green("✔"),warning:T.yellow("⚠"),error:T.red("✖")},wg={info:T.blue("i"),success:T.green("√"),warning:T.yellow("‼"),error:T.red("×")},Rg=Kt()?Bg:wg,Jt=Rg;function ms({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 ys(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(ms(),"")}var cc=He(tf(),1);function bs({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var fc=He(uc(),1);import be from"node:process";import L0 from"node:readline";var P0=3,gn=class{#r=0;#f=new fc.BufferListStream;#i;#n;constructor(){this.#f.pipe(be.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=be;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(P0)&&be.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(be.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(){be.platform!=="win32"&&(this.#n=L0.createInterface({input:be.stdin,output:this.#f}),this.#n.on("SIGINT",()=>{be.listenerCount("SIGINT")===0?be.emit("SIGINT"):(this.#n.close(),be.kill(be.pid,"SIGINT"))}))}_realStop(){be.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var En,eo=class{#r=0;#f=!1;#i=0;#n=0;#e;#o;#t;#c;#A;#a;#l;#u;#h;#s;color;constructor(t){En||(En=new gn),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:_n.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#A=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:bs({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,_n.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.#A||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#A=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(!Kt())this.#o=sr.default.line;else if(t===void 0)this.#o=sr.default.dots;else if(t!=="default"&&sr.default[t])this.#o=sr.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.#h}set text(t){this.#h=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 ys(" ".repeat(this.#u)+r+"--"+this.#h).split(`
10
- `))this.#i+=Math.max(1,Math.ceil((0,cc.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=T[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&&Es.hide(this.#t),this.#e.discardStdin&&_n.stdin.isTTY&&(this.#f=!0,En.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&&Es.show(this.#t),this.#e.discardStdin&&_n.stdin.isTTY&&this.#f&&(En.stop(),this.#f=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Jt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Jt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Jt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Jt.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 _e(e){return new eo(e)}var Ac={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(Ac.NODE_ENV=e.NODE_ENV)}catch{}var to=Ac.NODE_ENV==="development";import{Console as N0}from"console";var ht=new N0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),ve=e=>{if(to){let{name:t}=e;return{log(...r){let n=T.bgBlue.white(` [${t}] `);ht.log(`${n}`,`
8
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Uo,stderr:Ko}=Ho,Dn=Symbol("GENERATOR"),dt=Symbol("STYLER"),qt=Symbol("IS_EMPTY"),Jo=["ansi","ansi","ansi256","ansi16m"],gt=Object.create(null),mA=(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=Uo?Uo.level:0;e.level=t.level===void 0?r:t.level};var yA=e=>{let t=(...r)=>r.join(" ");return mA(t,e),Object.setPrototypeOf(t,jt.prototype),t};function jt(e){return yA(e)}Object.setPrototypeOf(jt.prototype,Function.prototype);for(let[e,t]of Object.entries(Ce))gt[e]={get(){let r=Er(this,Ln(t.open,t.close,this[dt]),this[qt]);return Object.defineProperty(this,e,{value:r}),r}};gt.visible={get(){let e=Er(this,this[dt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var kn=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?Ce[r].ansi16m(...n):t==="ansi256"?Ce[r].ansi256(Ce.rgbToAnsi256(...n)):Ce[r].ansi(Ce.rgbToAnsi(...n)):e==="hex"?kn("rgb",t,r,...Ce.hexToRgb(...n)):Ce[r][e](...n),CA=["rgb","hex","ansi256"];for(let e of CA){gt[e]={get(){let{level:r}=this;return function(...n){let i=Ln(kn(e,Jo[r],"color",...n),Ce.color.close,this[dt]);return Er(this,i,this[qt])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);gt[t]={get(){let{level:r}=this;return function(...n){let i=Ln(kn(e,Jo[r],"bgColor",...n),Ce.bgColor.close,this[dt]);return Er(this,i,this[qt])}}}}var bA=Object.defineProperties(()=>{},{...gt,level:{enumerable:!0,get(){return this[Dn].level},set(e){this[Dn].level=e}}}),Ln=(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}},Er=(e,t,r)=>{let n=(...i)=>vA(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,bA),n[Dn]=e,n[dt]=t,n[qt]=r,n},vA=(e,t)=>{if(e.level<=0||!t)return e[qt]?"":t;let r=e[dt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=$o(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
9
+ `);return s!==-1&&(t=Go(t,i,n,s)),n+t+i};Object.defineProperties(jt.prototype,gt);var xA=jt(),wm=jt({level:Ko?Ko.level:0});var T=xA;var bo=Pe(Ur(),1);import{env as If}from"process";import mn from"node:process";import Ku from"node:process";var $u=Pe(Pu(),1),Gu=Pe(Hu(),1);import Sg from"node:process";var Bg=(0,$u.default)(()=>{(0,Gu.default)(()=>{Sg.stderr.write("\x1B[?25h")},{alwaysLast:!0})}),Uu=Bg;var Zr=!1,It={};It.show=(e=Ku.stderr)=>{!e.isTTY||(Zr=!1,e.write("\x1B[?25h"))};It.hide=(e=Ku.stderr)=>{!e.isTTY||(Uu(),Zr=!0,e.write("\x1B[?25l"))};It.toggle=(e,t)=>{e!==void 0&&(Zr=e),Zr?It.show(t):It.hide(t)};var ys=It;var or=Pe(Vu(),1);import qe from"node:process";function Jt(){return qe.platform!=="win32"?qe.env.TERM!=="linux":Boolean(qe.env.CI)||Boolean(qe.env.WT_SESSION)||qe.env.ConEmuTask==="{cmd::Cmder}"||qe.env.TERM_PROGRAM==="vscode"||qe.env.TERM==="xterm-256color"||qe.env.TERM==="alacritty"||qe.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Rg={info:T.blue("ℹ"),success:T.green("✔"),warning:T.yellow("⚠"),error:T.red("✖")},Qg={info:T.blue("i"),success:T.green("√"),warning:T.yellow("‼"),error:T.red("×")},Ig=Jt()?Rg:Qg,Yt=Ig;function Cs({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 bs(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(Cs(),"")}var df=Pe(sc(),1);function xs({stream:e=process.stdout}={}){return Boolean(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var pf=Pe(hf(),1);import ve from"node:process";import N0 from"node:readline";var M0=3,En=class{#r=0;#c=new pf.BufferListStream;#i;#n;constructor(){this.#c.pipe(ve.stdout);let t=this;this.#i=function(r,n,...i){let{stdin:s}=ve;if(t.#r>0||s.emit===t.#i){if(r==="keypress")return;r==="data"&&n.includes(M0)&&ve.emit("SIGINT"),Reflect.apply(t.#i,this,[r,n,...i])}else Reflect.apply(ve.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(){ve.platform!=="win32"&&(this.#n=N0.createInterface({input:ve.stdin,output:this.#c}),this.#n.on("SIGINT",()=>{ve.listenerCount("SIGINT")===0?ve.emit("SIGINT"):(this.#n.close(),ve.kill(ve.pid,"SIGINT"))}))}_realStop(){ve.platform!=="win32"&&(this.#n.close(),this.#n=void 0)}};var yn,ro=class{#r=0;#c=!1;#i=0;#n=0;#e;#o;#t;#f;#A;#a;#l;#u;#h;#s;color;constructor(t){yn||(yn=new En),typeof t=="string"&&(t={text:t}),this.#e={color:"cyan",stream:mn.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#e.color,this.spinner=this.#e.spinner,this.#A=this.#e.interval,this.#t=this.#e.stream,this.#a=typeof this.#e.isEnabled=="boolean"?this.#e.isEnabled:xs({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,mn.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.#A||this.#o.interval||100}get spinner(){return this.#o}set spinner(t){if(this.#n=0,this.#A=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(!Jt())this.#o=or.default.line;else if(t===void 0)this.#o=or.default.dots;else if(t!=="default"&&or.default[t])this.#o=or.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.#h}set text(t){this.#h=t||"",this.updateLineCount()}get prefixText(){return this.#s}set prefixText(t){this.#s=t||"",this.updateLineCount()}get isSpinning(){return this.#f!==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 bs(" ".repeat(this.#u)+r+"--"+this.#h).split(`
10
+ `))this.#i+=Math.max(1,Math.ceil((0,df.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=T[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&&ys.hide(this.#t),this.#e.discardStdin&&mn.stdin.isTTY&&(this.#c=!0,yn.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#t.write(`- ${this.text}
11
+ `),this)}stop(){return this.#a?(clearInterval(this.#f),this.#f=void 0,this.#n=0,this.clear(),this.#e.hideCursor&&ys.show(this.#t),this.#e.discardStdin&&mn.stdin.isTTY&&this.#c&&(yn.stop(),this.#c=!1),this):this}succeed(t){return this.stopAndPersist({symbol:Yt.success,text:t})}fail(t){return this.stopAndPersist({symbol:Yt.error,text:t})}warn(t){return this.stopAndPersist({symbol:Yt.warning,text:t})}info(t){return this.stopAndPersist({symbol:Yt.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 Ee(e){return new ro(e)}var gf={NODE_ENV:"production"};try{let{env:e}=await import("process");e.NODE_ENV&&(gf.NODE_ENV=e.NODE_ENV)}catch{}var no=gf.NODE_ENV==="development";import{Console as F0}from"console";var ht=new F0({stdout:process.stdout,stderr:process.stderr,groupIndentation:4}),me=e=>{if(no){let{name:t}=e;return{log(...r){let n=T.bgBlue.white(` [${t}] `);ht.log(`${n}`,`
13
13
 
14
14
  `,...r),ht.log()},group(){ht.log();let r=T.bgBlue.white(` [${t}] `);ht.group(r),ht.log()},groupEnd(){ht.log(`
15
15
  `,"-".repeat(20),`
16
- `),ht.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var Se=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as M0,execSync as F0}from"child_process";import oo from"node:process";import j0 from"node:os";import gc 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 hc=(e=0)=>t=>`\x1B[${t+e}m`,pc=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,dc=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function q0(){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=hc(),t.color.ansi256=pc(),t.color.ansi16m=dc(),t.bgColor.ansi=hc(10),t.bgColor.ansi256=pc(10),t.bgColor.ansi16m=dc(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 l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%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 H0=q0(),ke=H0;function Ee(e,t=oo.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}=oo,mn;Ee("no-color")||Ee("no-colors")||Ee("color=false")||Ee("color=never")?mn=0:(Ee("color")||Ee("colors")||Ee("color=true")||Ee("color=always"))&&(mn=1);function $0(){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 G0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function U0(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=$0();n!==void 0&&(mn=n);let i=r?mn:n;if(i===0)return 0;if(r){if(Ee("color=16m")||Ee("color=full")||Ee("color=truecolor"))return 3;if(Ee("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(oo.platform==="win32"){let o=j0.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 _c(e,t={}){let r=U0(e,{streamIsTTY:e&&e.isTTY,...t});return G0(r)}var K0={stdout:_c({isTTY:gc.isatty(1)}),stderr:_c({isTTY:gc.isatty(2)})},J0=K0;function Y0(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 W0(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
16
+ `),ht.groupEnd()}}}else return{log(){},group(){},groupEnd(){}}};var xe=(...e)=>{console.log(),console.log(...e),console.log()};import{spawn as q0,execSync as j0}from"child_process";import lo from"node:process";import G0 from"node:os";import yf 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 _f=(e=0)=>t=>`\x1B[${t+e}m`,Ef=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,mf=(e=0)=>(t,r,n)=>`\x1B[${38+e};2;${t};${r};${n}m`;function H0(){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=_f(),t.color.ansi256=Ef(),t.color.ansi16m=mf(),t.bgColor.ansi=_f(10),t.bgColor.ansi256=Ef(10),t.bgColor.ansi16m=mf(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 l=r%36;n=Math.floor(r/36)/5,i=Math.floor(l/6)/5,s=l%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 $0=H0(),ke=$0;function ye(e,t=lo.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}=lo,Cn;ye("no-color")||ye("no-colors")||ye("color=false")||ye("color=never")?Cn=0:(ye("color")||ye("colors")||ye("color=true")||ye("color=always"))&&(Cn=1);function U0(){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 K0(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function J0(e,{streamIsTTY:t,sniffFlags:r=!0}={}){let n=U0();n!==void 0&&(Cn=n);let i=r?Cn:n;if(i===0)return 0;if(r){if(ye("color=16m")||ye("color=full")||ye("color=truecolor"))return 3;if(ye("color=256"))return 2}if(e&&!t&&i===void 0)return 0;let s=i||0;if(Z.TERM==="dumb")return s;if(lo.platform==="win32"){let o=G0.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 Cf(e,t={}){let r=J0(e,{streamIsTTY:e&&e.isTTY,...t});return K0(r)}var Y0={stdout:Cf({isTTY:yf.isatty(1)}),stderr:Cf({isTTY:yf.isatty(2)})},W0=Y0;function V0(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 X0(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
17
  `:`
18
18
  `)+r,i=n+1,n=e.indexOf(`
19
- `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:Ec,stderr:mc}=J0,ro=Symbol("GENERATOR"),Lt=Symbol("STYLER"),or=Symbol("IS_EMPTY"),yc=["ansi","ansi","ansi256","ansi16m"],Pt=Object.create(null),V0=(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=Ec?Ec.level:0;e.level=t.level===void 0?r:t.level},X0=e=>{let t=(...r)=>r.join(" ");return V0(t,e),Object.setPrototypeOf(t,ar.prototype),t};function ar(e){return X0(e)}Object.setPrototypeOf(ar.prototype,Function.prototype);for(let[e,t]of Object.entries(ke))Pt[e]={get(){let r=yn(this,io(t.open,t.close,this[Lt]),this[or]);return Object.defineProperty(this,e,{value:r}),r}};Pt.visible={get(){let e=yn(this,this[Lt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var no=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ke[r].ansi16m(...n):t==="ansi256"?ke[r].ansi256(ke.rgbToAnsi256(...n)):ke[r].ansi(ke.rgbToAnsi(...n)):e==="hex"?no("rgb",t,r,...ke.hexToRgb(...n)):ke[r][e](...n),Z0=["rgb","hex","ansi256"];for(let e of Z0){Pt[e]={get(){let{level:r}=this;return function(...n){let i=io(no(e,yc[r],"color",...n),ke.color.close,this[Lt]);return yn(this,i,this[or])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Pt[t]={get(){let{level:r}=this;return function(...n){let i=io(no(e,yc[r],"bgColor",...n),ke.bgColor.close,this[Lt]);return yn(this,i,this[or])}}}}var z0=Object.defineProperties(()=>{},{...Pt,level:{enumerable:!0,get(){return this[ro].level},set(e){this[ro].level=e}}}),io=(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}},yn=(e,t,r)=>{let n=(...i)=>eE(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,z0),n[ro]=e,n[Lt]=t,n[or]=r,n},eE=(e,t)=>{if(e.level<=0||!t)return e[or]?"":t;let r=e[Lt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=Y0(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
- `);return s!==-1&&(t=W0(t,i,n,s)),n+t+i};Object.defineProperties(ar.prototype,Pt);var tE=ar(),sb=ar({level:mc?mc.level:0}),rE=tE,nE={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},iE={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},sE=(e,t,r)=>{let n={...nE,...t},i={...iE,...r},s=a=>{let l=process.platform,f=n[l];if(f)return f(a);let[u,...h]=a.split(" ");return{cmd:u,args:h}},o=(a=>{let l=Object.entries(i);for(let[f,u]of l)if(a.startsWith(f)){let h=process.platform,A=u[h];if(!A)break;let C=a.slice(f.length).trim().split(" ");return A(C)}return a})(e);return s(o)},oE=process.platform==="linux"||process.platform==="darwin",so=process.platform==="win32",aE={stdio:"pipe",shell:!0,detached:!so,env:process.env},lE={log:!0,commandTranslations:{},shellTranslations:{},...aE},me=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=lE)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&oE&&(l="posix");let f=s[l];if(!f)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=f}let{cmd:o,args:a}=sE(s,r,t);return e&&console.log(rE.dim(`
19
+ `,i)}while(n!==-1);return s+=e.slice(i),s}var{stdout:bf,stderr:vf}=W0,io=Symbol("GENERATOR"),Lt=Symbol("STYLER"),ar=Symbol("IS_EMPTY"),xf=["ansi","ansi","ansi256","ansi16m"],Pt=Object.create(null),Z0=(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=bf?bf.level:0;e.level=t.level===void 0?r:t.level},z0=e=>{let t=(...r)=>r.join(" ");return Z0(t,e),Object.setPrototypeOf(t,lr.prototype),t};function lr(e){return z0(e)}Object.setPrototypeOf(lr.prototype,Function.prototype);for(let[e,t]of Object.entries(ke))Pt[e]={get(){let r=bn(this,oo(t.open,t.close,this[Lt]),this[ar]);return Object.defineProperty(this,e,{value:r}),r}};Pt.visible={get(){let e=bn(this,this[Lt],!0);return Object.defineProperty(this,"visible",{value:e}),e}};var so=(e,t,r,...n)=>e==="rgb"?t==="ansi16m"?ke[r].ansi16m(...n):t==="ansi256"?ke[r].ansi256(ke.rgbToAnsi256(...n)):ke[r].ansi(ke.rgbToAnsi(...n)):e==="hex"?so("rgb",t,r,...ke.hexToRgb(...n)):ke[r][e](...n),eE=["rgb","hex","ansi256"];for(let e of eE){Pt[e]={get(){let{level:r}=this;return function(...n){let i=oo(so(e,xf[r],"color",...n),ke.color.close,this[Lt]);return bn(this,i,this[ar])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Pt[t]={get(){let{level:r}=this;return function(...n){let i=oo(so(e,xf[r],"bgColor",...n),ke.bgColor.close,this[Lt]);return bn(this,i,this[ar])}}}}var tE=Object.defineProperties(()=>{},{...Pt,level:{enumerable:!0,get(){return this[io].level},set(e){this[io].level=e}}}),oo=(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}},bn=(e,t,r)=>{let n=(...i)=>rE(n,i.length===1?""+i[0]:i.join(" "));return Object.setPrototypeOf(n,tE),n[io]=e,n[Lt]=t,n[ar]=r,n},rE=(e,t)=>{if(e.level<=0||!t)return e[ar]?"":t;let r=e[Lt];if(r===void 0)return t;let{openAll:n,closeAll:i}=r;if(t.includes("\x1B"))for(;r!==void 0;)t=V0(t,r.close,r.open),r=r.parent;let s=t.indexOf(`
20
+ `);return s!==-1&&(t=X0(t,i,n,s)),n+t+i};Object.defineProperties(lr.prototype,Pt);var nE=lr(),cb=lr({level:vf?vf.level:0}),iE=nE,sE={win32:e=>({cmd:"cmd.exe",args:["/d","/s","/c",e]})},oE={"cp -rf":{win32:e=>{let t="xcopy /E /S /G /Q /Y",r=e.map(n=>n.endsWith("\\")?n:`${n}\\`).map(n=>n.replace(/\*\\$/,""));return`${t} ${r.join(" ")}`}},ln:{win32:e=>`mklink /D ${e.join(" ")}`},pkill:{win32:e=>`taskkill /T /F /pid ${e.join(" ")}`}},aE=(e,t,r)=>{let n={...sE,...t},i={...oE,...r},s=a=>{let l=process.platform,c=n[l];if(c)return c(a);let[u,...h]=a.split(" ");return{cmd:u,args:h}},o=(a=>{let l=Object.entries(i);for(let[c,u]of l)if(a.startsWith(c)){let h=process.platform,A=u[h];if(!A)break;let C=a.slice(c.length).trim().split(" ");return A(C)}return a})(e);return s(o)},lE=process.platform==="linux"||process.platform==="darwin",ao=process.platform==="win32",uE={stdio:"pipe",shell:!0,detached:!ao,env:process.env},cE={log:!0,commandTranslations:{},shellTranslations:{},...uE},Ae=({log:e=!0,commandTranslations:t={},shellTranslations:r={},...n}=cE)=>{let i=null;return{childProcess:i,async run(s){if(i)throw new Error("Only one command per shell.");if(typeof s=="object"){let l=process.platform;s.posix&&lE&&(l="posix");let c=s[l];if(!c)throw new Error("No command found for platform: "+JSON.stringify({platform:process.platform,command:s}));s=c}let{cmd:o,args:a}=aE(s,r,t);return e&&console.log(iE.dim(`
21
21
  $ ${o} ${a.join(" ")}
22
- `)),await new Promise((l,f)=>{i=M0(o,a,n);let u="",h="";if(!i)throw new Error("Child process was not set.");let A=C=>{i=null;let E={code:C,stdout:u,stderr:h};C===0||C===1&&!so?l(E):f(E)};i.stdout?.on("data",C=>{u+=C.toString()}),i.stderr?.on("data",C=>{h+=C.toString()}),i.on("close",A),i.on("exit",A),i.on("error",A),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(so)F0(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as fb,resolve as ao}from"path";var Mt=/\.[mc]?tsx?(?=\?|$)/;var pt=/\.([mc])?[tj]sx$/,Cc=/\.([mc])?[tj]sx?$/,Nt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},uE={".mts":{...Nt,loader:"ts"},".jsx":{...Nt,loader:"jsx"},".tsx":{...Nt,loader:"tsx"},".cts":{...Nt,loader:"ts"},".ts":{...Nt,loader:"ts"},".json":{...Nt,loader:"json"}},ab=Object.keys(uE);var lo=()=>{let e=process.cwd(),t=ao(e,"src"),r=ao(e,"dist");return{cwd:e,srcDir:t,outDir:r}},uo=e=>{e=ao(e);let{srcDir:t,outDir:r}=lo();return e.replace(t,r).replace(Mt,".js").replace(pt,".js")};var fE={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},fo=async()=>{let e=ve(fo),t=me({log:!1}),r=Object.entries(fE).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};import{readFile as cE}from"fs/promises";import{resolve as AE}from"path";var bc=async()=>{let e=process.cwd(),t=AE(e,"package.json");return await cE(t,"utf-8")};var Sc=He(ps(),1);import{existsSync as SE}from"fs";import{writeFile as xE}from"fs/promises";import{isAbsolute as BE,resolve as wE}from"path";import{dirname as gE,normalize as _E,posix as Cn,resolve as EE}from"path";import{existsSync as vc}from"fs";import{readFile as mE}from"fs/promises";var hE=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function Ao(e,t="@"){if(!G)return ho.then(()=>Ao(e));let r=e.length+1,n=(G.__heap_base.value||G.__heap_base)+4*r-G.memory.buffer.byteLength;n>0&&G.memory.grow(Math.ceil(n/65536));let i=G.sa(r-1);if((hE?dE:pE)(e,new Uint16Array(G.memory.buffer,i,r)),!G.parse())throw Object.assign(new Error(`Parse error ${t}:${e.slice(0,G.e()).split(`
22
+ `)),await new Promise((l,c)=>{i=q0(o,a,n);let u="",h="";if(!i)throw new Error("Child process was not set.");let A=C=>{i=null;let E={code:C,stdout:u,stderr:h};C===0||C===1&&!ao?l(E):c(E)};i.stdout?.on("data",C=>{u+=C.toString()}),i.stderr?.on("data",C=>{h+=C.toString()}),i.on("close",A),i.on("exit",A),i.on("error",A),i.stdout?.pipe(process.stdout),i.stderr?.pipe(process.stderr)})},kill(s="SIGKILL"){if(i?.pid)if(ao)j0(`taskkill /t /f /pid ${i.pid}`);else return process.kill(-i.pid,s);return!0}}};import{extname as db,resolve as uo}from"path";var Mt=/\.[mc]?tsx?(?=\?|$)/;var pt=/\.([mc])?[tj]sx$/,Sf=/\.([mc])?[tj]sx?$/,Nt={format:"esm",charset:"utf8",sourcemap:"inline",target:"node16",minify:!1},fE={".mts":{...Nt,loader:"ts"},".jsx":{...Nt,loader:"jsx"},".tsx":{...Nt,loader:"tsx"},".cts":{...Nt,loader:"ts"},".ts":{...Nt,loader:"ts"},".json":{...Nt,loader:"json"}},Ab=Object.keys(fE);var co=()=>{let e=process.cwd(),t=uo(e,"src"),r=uo(e,"dist");return{cwd:e,srcDir:t,outDir:r}},fo=e=>{e=uo(e);let{srcDir:t,outDir:r}=co();return e.replace(t,r).replace(Mt,".js").replace(pt,".js")};var AE={moduleResolution:"node",module:"esnext",target:"esnext",esModuleInterop:!0,incremental:!1,rootDir:"src",outDir:"dist",declaration:!0,noEmit:!1,emitDeclarationOnly:!0},Ao=async()=>{let e=me(Ao),t=Ae({log:!1}),r=Object.entries(AE).map(([i,s])=>`--${i} ${s}`).join(" "),n=`tsc -p tsconfig.json ${r}`;e.log(`Calling: ${n}`),await t.run(`tsc -p tsconfig.json ${r}`)};import{readFile as hE,writeFile as pE}from"fs/promises";import{resolve as Bf}from"path";var ho=async(e=process.cwd())=>{let t=Bf(e,"package.json");return await hE(t,"utf-8")},dE=async(e=process.cwd())=>{let t=await ho(e);return JSON.parse(t)},vn=async(e=process.cwd(),t)=>{let r=Bf(e,"package.json"),n=await dE(e);return Object.assign(n,t),await pE(r,JSON.stringify(n,null,2),"utf-8"),n};var Rf=Pe(Ur(),1);import{existsSync as wE}from"fs";import{writeFile as RE}from"fs/promises";import{isAbsolute as QE,resolve as IE}from"path";import{dirname as mE,normalize as yE,posix as xn,resolve as CE}from"path";import{existsSync as wf}from"fs";import{readFile as bE}from"fs/promises";var gE=new Uint8Array(new Uint16Array([1]).buffer)[0]===1;function go(e,t="@"){if(!G)return _o.then(()=>go(e));let r=e.length+1,n=(G.__heap_base.value||G.__heap_base)+4*r-G.memory.buffer.byteLength;n>0&&G.memory.grow(Math.ceil(n/65536));let i=G.sa(r-1);if((gE?EE:_E)(e,new Uint16Array(G.memory.buffer,i,r)),!G.parse())throw Object.assign(new Error(`Parse error ${t}:${e.slice(0,G.e()).split(`
23
23
  `).length}:${G.e()-e.lastIndexOf(`
24
- `,G.e()-1)}`),{idx:G.e()});let s=[],o=[];for(;G.ri();){let l=G.is(),f=G.ie(),u=G.ai(),h=G.id(),A=G.ss(),C=G.se(),E;G.ip()&&(E=a(e.slice(h===-1?l-1:l,h===-1?f+1:f))),s.push({n:E,s:l,e:f,ss:A,se:C,d:h,a:u})}for(;G.re();){let l=e.slice(G.es(),G.ee()),f=l[0];o.push(f==='"'||f==="'"?a(l):l)}function a(l){try{return(0,eval)(l)}catch{}}return[s,o,!!G.f()]}function pE(e,t){let r=e.length,n=0;for(;n<r;){let i=e.charCodeAt(n);t[n++]=(255&i)<<8|i>>>8}}function dE(e,t){let r=e.length,n=0;for(;n<r;)t[n]=e.charCodeAt(n++)}var G,ho=WebAssembly.compile((co="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYCBCACIAA2AgALCABBACgC4AkLFQBBACgCvAkoAgBBACgCsAlrQQF1Cx4BAX9BACgCvAkoAgQiAEEAKAKwCWtBAXVBfyAAGwsVAEEAKAK8CSgCCEEAKAKwCWtBAXULHgEBf0EAKAK8CSgCDCIAQQAoArAJa0EBdUF/IAAbCx4BAX9BACgCvAkoAhAiAEEAKAKwCWtBAXVBfyAAGws7AQF/AkBBACgCvAkoAhQiAEEAKAKkCUcNAEF/DwsCQCAAQQAoAqgJRw0AQX4PCyAAQQAoArAJa0EBdQsLAEEAKAK8CS0AGAsVAEEAKALACSgCAEEAKAKwCWtBAXULFQBBACgCwAkoAgRBACgCsAlrQQF1CyUBAX9BAEEAKAK8CSIAQRxqQbQJIAAbKAIAIgA2ArwJIABBAEcLJQEBf0EAQQAoAsAJIgBBCGpBuAkgABsoAgAiADYCwAkgAEEARwsIAEEALQDkCQvnCwEGfyMAQYDaAGsiASQAQQBBAToA5AlBAEH//wM7AewJQQBBACgCrAk2AvAJQQBBACgCsAlBfmoiAjYCiApBACACQQAoAtQJQQF0aiIDNgKMCkEAQQA7AeYJQQBBADsB6AlBAEEAOwHqCUEAQQA6APQJQQBBADYC4AlBAEEAOgDQCUEAIAFBgNIAajYC+AlBACABQYASajYC/AlBACABNgKACkEAQQA6AIQKAkACQAJAAkADQEEAIAJBAmoiBDYCiAogAiADTw0BAkAgBC8BACIDQXdqQQVJDQACQAJAAkACQAJAIANBm39qDgUBCAgIAgALIANBIEYNBCADQS9GDQMgA0E7Rg0CDAcLQQAvAeoJDQEgBBARRQ0BIAJBBGpBgghBChAoDQEQEkEALQDkCQ0BQQBBACgCiAoiAjYC8AkMBwsgBBARRQ0AIAJBBGpBjAhBChAoDQAQEwtBAEEAKAKICjYC8AkMAQsCQCACLwEEIgRBKkYNACAEQS9HDQQQFAwBC0EBEBULQQAoAowKIQNBACgCiAohAgwACwtBACEDIAQhAkEALQDQCQ0CDAELQQAgAjYCiApBAEEAOgDkCQsDQEEAIAJBAmoiBDYCiAoCQAJAAkACQAJAAkAgAkEAKAKMCk8NACAELwEAIgNBd2pBBUkNBQJAAkACQAJAAkACQAJAAkACQAJAIANBYGoOCg8OCA4ODg4HAQIACwJAAkACQAJAIANBoH9qDgoIEREDEQERERECAAsgA0GFf2oOAwUQBgsLQQAvAeoJDQ8gBBARRQ0PIAJBBGpBgghBChAoDQ8QEgwPCyAEEBFFDQ4gAkEEakGMCEEKECgNDhATDA4LIAQQEUUNDSACKQAEQuyAhIOwjsA5Ug0NIAIvAQwiBEF3aiICQRdLDQtBASACdEGfgIAEcUUNCwwMC0EAQQAvAeoJIgJBAWo7AeoJQQAoAvwJIAJBAnRqQQAoAvAJNgIADAwLQQAvAeoJIgNFDQhBACADQX9qIgU7AeoJQQAvAegJIgNFDQsgA0ECdEEAKAKACmpBfGooAgAiBigCFEEAKAL8CSAFQf//A3FBAnRqKAIARw0LAkAgBigCBA0AIAYgBDYCBAtBACADQX9qOwHoCSAGIAJBBGo2AgwMCwsCQEEAKALwCSIELwEAQSlHDQBBACgCxAkiAkUNACACKAIEIARHDQBBAEEAKALICSICNgLECQJAIAJFDQAgAkEANgIcDAELQQBBADYCtAkLIAFBgBBqQQAvAeoJIgJqQQAtAIQKOgAAQQAgAkEBajsB6glBACgC/AkgAkECdGogBDYCAEEAQQA6AIQKDAoLQQAvAeoJIgJFDQZBACACQX9qIgM7AeoJIAJBAC8B7AkiBEcNAUEAQQAvAeYJQX9qIgI7AeYJQQBBACgC+AkgAkH//wNxQQF0ai8BADsB7AkLEBYMCAsgBEH//wNGDQcgA0H//wNxIARJDQQMBwtBJxAXDAYLQSIQFwwFCyADQS9HDQQCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAUDAcLQQEQFQwGCwJAAkACQAJAQQAoAvAJIgQvAQAiAhAYRQ0AAkACQAJAIAJBVWoOBAEFAgAFCyAEQX5qLwEAQVBqQf//A3FBCkkNAwwECyAEQX5qLwEAQStGDQIMAwsgBEF+ai8BAEEtRg0BDAILAkAgAkH9AEYNACACQSlHDQFBACgC/AlBAC8B6glBAnRqKAIAEBlFDQEMAgtBACgC/AlBAC8B6gkiA0ECdGooAgAQGg0BIAFBgBBqIANqLQAADQELIAQQGw0AIAJFDQBBASEEIAJBL0ZBAC0A9AlBAEdxRQ0BCxAcQQAhBAtBACAEOgD0CQwEC0EALwHsCUH//wNGQQAvAeoJRXFBAC0A0AlFcUEALwHoCUVxIQMMBgsQHUEAIQMMBQsgBEGgAUcNAQtBAEEBOgCECgtBAEEAKAKICjYC8AkLQQAoAogKIQIMAAsLIAFBgNoAaiQAIAMLHQACQEEAKAKwCSAARw0AQQEPCyAAQX5qLwEAEB4LpgYBBH9BAEEAKAKICiIAQQxqIgE2AogKQQEQISECAkACQAJAAkACQEEAKAKICiIDIAFHDQAgAhAlRQ0BCwJAAkACQAJAAkAgAkGff2oODAYBAwgBBwEBAQEBBAALAkACQCACQSpGDQAgAkH2AEYNBSACQfsARw0CQQAgA0ECajYCiApBARAhIQNBACgCiAohAQNAAkACQCADQf//A3EiAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQIMAQsgAhAXQQBBACgCiApBAmoiAjYCiAoLQQEQIRoCQCABIAIQJiIDQSxHDQBBAEEAKAKICkECajYCiApBARAhIQMLQQAoAogKIQICQCADQf0ARg0AIAIgAUYNBSACIQEgAkEAKAKMCk0NAQwFCwtBACACQQJqNgKICgwBC0EAIANBAmo2AogKQQEQIRpBACgCiAoiAiACECYaC0EBECEhAgtBACgCiAohAwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC0EAQQAoAogKQX5qNgKICg8LC0cBA39BACgCiApBAmohAEEAKAKMCiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2AogKC5gBAQN/QQBBACgCiAoiAUECajYCiAogAUEGaiEBQQAoAowKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2AogKDAELIAFBfmohAQtBACABNgKICg8LIAFBAmohAQwACwu/AQEEf0EAKAKICiEAQQAoAowKIQECQAJAA0AgACICQQJqIQAgAiABTw0BAkACQCAALwEAIgNBpH9qDgUBAgICBAALIANBJEcNASACLwEEQfsARw0BQQBBAC8B5gkiAEEBajsB5glBACgC+AkgAEEBdGpBAC8B7Ak7AQBBACACQQRqNgKICkEAQQAvAeoJQQFqIgA7AewJQQAgADsB6gkPCyACQQRqIQAMAAsLQQAgADYCiAoQHQ8LQQAgADYCiAoLiAEBBH9BACgCiAohAUEAKAKMCiECAkACQANAIAEiA0ECaiEBIAMgAk8NASABLwEAIgQgAEYNAgJAIARB3ABGDQAgBEF2ag4EAgEBAgELIANBBGohASADLwEEQQ1HDQAgA0EGaiABIAMvAQZBCkYbIQEMAAsLQQAgATYCiAoQHQ8LQQAgATYCiAoLbAEBfwJAAkAgAEFfaiIBQQVLDQBBASABdEExcQ0BCyAAQUZqQf//A3FBBkkNACAAQSlHIABBWGpB//8DcUEHSXENAAJAIABBpX9qDgQBAAABAAsgAEH9AEcgAEGFf2pB//8DcUEESXEPC0EBCy4BAX9BASEBAkAgAEH2CEEFEB8NACAAQYAJQQMQHw0AIABBhglBAhAfIQELIAELgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQZIJQQYQHw8LIABBfmovAQBBPUYPCyAAQX5qQYoJQQQQHw8LIABBfmpBnglBAxAfDwtBACEBCyABC5MDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQCAALwEAQZx/ag4UAAECCAgICAgICAMECAgFCAYICAcICwJAAkAgAEF+ai8BAEGXf2oOBAAJCQEJCyAAQXxqQa4IQQIQHw8LIABBfGpBsghBAxAfDwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABAgDwsgAEF6akHjABAgDwsgAEF8akG4CEEEEB8PCyAAQX5qLwEAQe8ARw0FIABBfGovAQBB5QBHDQUCQCAAQXpqLwEAIgJB8ABGDQAgAkHjAEcNBiAAQXhqQcAIQQYQHw8LIABBeGpBzAhBAhAfDwtBASEBIABBfmoiAEHpABAgDQQgAEHQCEEFEB8PCyAAQX5qQeQAECAPCyAAQX5qQdoIQQcQHw8LIABBfmpB6AhBBBAfDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECAPCyAAQXxqQfAIQQMQHyEBCyABC3ABAn8CQAJAA0BBAEEAKAKICiIAQQJqIgE2AogKIABBACgCjApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQJxoMAQtBACAAQQRqNgKICgwACwsQHQsLNQEBf0EAQQE6ANAJQQAoAogKIQBBAEEAKAKMCkECajYCiApBACAAQQAoArAJa0EBdTYC4AkLNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQJXEhAQsgAQtJAQN/QQAhAwJAIAAgAkEBdCICayIEQQJqIgBBACgCsAkiBUkNACAAIAEgAhAoDQACQCAAIAVHDQBBAQ8LIAQvAQAQHiEDCyADCz0BAn9BACECAkBBACgCsAkiAyAASw0AIAAvAQAgAUcNAAJAIAMgAEcNAEEBDwsgAEF+ai8BABAeIQILIAILnAEBA39BACgCiAohAQJAA0ACQAJAIAEvAQAiAkEvRw0AAkAgAS8BAiIBQSpGDQAgAUEvRw0EEBQMAgsgABAVDAELAkACQCAARQ0AIAJBd2oiAUEXSw0BQQEgAXRBn4CABHFFDQEMAgsgAhAjRQ0DDAELIAJBoAFHDQILQQBBACgCiAoiA0ECaiIBNgKICiADQQAoAowKSQ0ACwsgAgvCAwEBfwJAIAFBIkYNACABQSdGDQAQHQ8LQQAoAogKIQIgARAXIAAgAkECakEAKAKICkEAKAKkCRABQQBBACgCiApBAmo2AogKQQAQISEAQQAoAogKIQECQAJAIABB4QBHDQAgAUECakGkCEEKEChFDQELQQAgAUF+ajYCiAoPC0EAIAFBDGo2AogKAkBBARAhQfsARg0AQQAgATYCiAoPC0EAKAKICiICIQADQEEAIABBAmo2AogKAkACQAJAQQEQISIAQSJGDQAgAEEnRw0BQScQF0EAQQAoAogKQQJqNgKICkEBECEhAAwCC0EiEBdBAEEAKAKICkECajYCiApBARAhIQAMAQsgABAkIQALAkAgAEE6Rg0AQQAgATYCiAoPC0EAQQAoAogKQQJqNgKICgJAQQEQISIAQSJGDQAgAEEnRg0AQQAgATYCiAoPCyAAEBdBAEEAKAKICkECajYCiAoCQAJAQQEQISIAQSxGDQAgAEH9AEYNAUEAIAE2AogKDwtBAEEAKAKICkECajYCiApBARAhQf0ARg0AQQAoAogKIQAMAQsLQQAoAsQJIgEgAjYCECABQQAoAogKQQJqNgIMCzABAX8CQAJAIABBd2oiAUEXSw0AQQEgAXRBjYCABHENAQsgAEGgAUYNAEEADwtBAQttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAlDQJBACECQQBBACgCiAoiAEECajYCiAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC4sBAQJ/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA",typeof Buffer<"u"?Buffer.from(co,"base64"):Uint8Array.from(atob(co),e=>e.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:e})=>{G=e}),co;await ho;var yE=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],CE=async(e,t)=>{let r=gE(_E(t)),n=bn(EE(r,e)),i=n.replace(Cn.extname(n),"");for(let s of yE){let o=`${i}${s}`,a=`${i}/index${s}`;if(vc(o))return o;if(vc(a))return a}},bn=e=>e.replace(/\\/g,"/"),bE=(e,t)=>{e=bn(e),t=bn(t);let r=Cn.relative(Cn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},vE=e=>e?e.startsWith(".")||e.includes("/")||Cn.extname(e):!1,po=async e=>{let t=ve(po);t.log("Getting rewritten specifiers:",{modulePath:e}),e=bn(e);let r=await mE(e,"utf8"),[n]=await Ao(r),i=n.filter(o=>typeof o.n<"u");t.log("Found import statements:",{namedImportExportSpecifiers:i});let s=r.slice(0);for(let o of i){let a=o.n;t.log("Found specifier:",{specifier:a});let l=r.substring(o.ss,o.se);if(!a){t.log(`Could not find specifier in import statement: "${l}"`);continue}if(!vE(a)){t.log("Not resolving relative or non-named specifier:",{specifier:a});continue}let f=await CE(a,e);if(!f){t.log(`Could not resolve specifier "${a}" from "${e}". Assuming external.`);continue}t.log("Resolved specifier:",{resolvedSpecifier:f});let u=bE(e,f);t.log("Specifier replacement:",{specifierReplacement:u});let h=l.replace(a,u);t.log("Replacing import statement:",{specifier:a,importStatement:l,importStatementReplacement:h}),s=s.replace(l,h)}return s};var go=async(e="dist/**/*.js")=>{let t=ve(go),n=BE(e)&&SE(e)?[e]:Sc.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=wE(i),o=await po(s);t.log("Normalizing",{file:i,normalized:o}),await xE(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as RE}from"fs";function QE(e){return new Promise((t,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),t(Buffer.concat(n))}function o(l){a(),r(l)}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 _o=async()=>{let e=ve(_o);e.log("Reading stdin");try{let r=RE(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return Se(T.gray("Type your source code. Press Ctrl+D to finish.")),(await QE(process.stdin)).toString()};var ME=`import React from "react";
24
+ `,G.e()-1)}`),{idx:G.e()});let s=[],o=[];for(;G.ri();){let l=G.is(),c=G.ie(),u=G.ai(),h=G.id(),A=G.ss(),C=G.se(),E;G.ip()&&(E=a(e.slice(h===-1?l-1:l,h===-1?c+1:c))),s.push({n:E,s:l,e:c,ss:A,se:C,d:h,a:u})}for(;G.re();){let l=e.slice(G.es(),G.ee()),c=l[0];o.push(c==='"'||c==="'"?a(l):l)}function a(l){try{return(0,eval)(l)}catch{}}return[s,o,!!G.f()]}function _E(e,t){let r=e.length,n=0;for(;n<r;){let i=e.charCodeAt(n);t[n++]=(255&i)<<8|i>>>8}}function EE(e,t){let r=e.length,n=0;for(;n<r;)t[n]=e.charCodeAt(n++)}var G,_o=WebAssembly.compile((po="AGFzbQEAAAABKghgAX8Bf2AEf39/fwBgAn9/AGAAAX9gAABgAX8AYAN/f38Bf2ACf38BfwMqKQABAgMDAwMDAwMDAwMDAwMAAAQEBAUEBQAAAAAEBAAGBwACAAAABwMGBAUBcAEBAQUDAQABBg8CfwFBkPIAC38AQZDyAAsHZBEGbWVtb3J5AgACc2EAAAFlAAMCaXMABAJpZQAFAnNzAAYCc2UABwJhaQAIAmlkAAkCaXAACgJlcwALAmVlAAwCcmkADQJyZQAOAWYADwVwYXJzZQAQC19faGVhcF9iYXNlAwEKhjQpaAEBf0EAIAA2AtQJQQAoArAJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgLYCUEAIAA2AtwJQQBBADYCtAlBAEEANgLECUEAQQA2ArwJQQBBADYCuAlBAEEANgLMCUEAQQA2AsAJIAELnwEBA39BACgCxAkhBEEAQQAoAtwJIgU2AsQJQQAgBDYCyAlBACAFQSBqNgLcCSAEQRxqQbQJIAQbIAU2AgBBACgCqAkhBEEAKAKkCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGGyAEIANGGzYCDCAFIAM2AhQgBUEANgIQIAUgAjYCBCAFQQA2AhwgBUEAKAKkCSADRjoAGAtIAQF/QQAoAswJIgJBCGpBuAkgAhtBACgC3AkiAjYCAEEAIAI2AswJQQAgAkEMajYC3AkgAkEANgIIIAIgATYCBCACIAA2AgALCABBACgC4AkLFQBBACgCvAkoAgBBACgCsAlrQQF1Cx4BAX9BACgCvAkoAgQiAEEAKAKwCWtBAXVBfyAAGwsVAEEAKAK8CSgCCEEAKAKwCWtBAXULHgEBf0EAKAK8CSgCDCIAQQAoArAJa0EBdUF/IAAbCx4BAX9BACgCvAkoAhAiAEEAKAKwCWtBAXVBfyAAGws7AQF/AkBBACgCvAkoAhQiAEEAKAKkCUcNAEF/DwsCQCAAQQAoAqgJRw0AQX4PCyAAQQAoArAJa0EBdQsLAEEAKAK8CS0AGAsVAEEAKALACSgCAEEAKAKwCWtBAXULFQBBACgCwAkoAgRBACgCsAlrQQF1CyUBAX9BAEEAKAK8CSIAQRxqQbQJIAAbKAIAIgA2ArwJIABBAEcLJQEBf0EAQQAoAsAJIgBBCGpBuAkgABsoAgAiADYCwAkgAEEARwsIAEEALQDkCQvnCwEGfyMAQYDaAGsiASQAQQBBAToA5AlBAEH//wM7AewJQQBBACgCrAk2AvAJQQBBACgCsAlBfmoiAjYCiApBACACQQAoAtQJQQF0aiIDNgKMCkEAQQA7AeYJQQBBADsB6AlBAEEAOwHqCUEAQQA6APQJQQBBADYC4AlBAEEAOgDQCUEAIAFBgNIAajYC+AlBACABQYASajYC/AlBACABNgKACkEAQQA6AIQKAkACQAJAAkADQEEAIAJBAmoiBDYCiAogAiADTw0BAkAgBC8BACIDQXdqQQVJDQACQAJAAkACQAJAIANBm39qDgUBCAgIAgALIANBIEYNBCADQS9GDQMgA0E7Rg0CDAcLQQAvAeoJDQEgBBARRQ0BIAJBBGpBgghBChAoDQEQEkEALQDkCQ0BQQBBACgCiAoiAjYC8AkMBwsgBBARRQ0AIAJBBGpBjAhBChAoDQAQEwtBAEEAKAKICjYC8AkMAQsCQCACLwEEIgRBKkYNACAEQS9HDQQQFAwBC0EBEBULQQAoAowKIQNBACgCiAohAgwACwtBACEDIAQhAkEALQDQCQ0CDAELQQAgAjYCiApBAEEAOgDkCQsDQEEAIAJBAmoiBDYCiAoCQAJAAkACQAJAAkAgAkEAKAKMCk8NACAELwEAIgNBd2pBBUkNBQJAAkACQAJAAkACQAJAAkACQAJAIANBYGoOCg8OCA4ODg4HAQIACwJAAkACQAJAIANBoH9qDgoIEREDEQERERECAAsgA0GFf2oOAwUQBgsLQQAvAeoJDQ8gBBARRQ0PIAJBBGpBgghBChAoDQ8QEgwPCyAEEBFFDQ4gAkEEakGMCEEKECgNDhATDA4LIAQQEUUNDSACKQAEQuyAhIOwjsA5Ug0NIAIvAQwiBEF3aiICQRdLDQtBASACdEGfgIAEcUUNCwwMC0EAQQAvAeoJIgJBAWo7AeoJQQAoAvwJIAJBAnRqQQAoAvAJNgIADAwLQQAvAeoJIgNFDQhBACADQX9qIgU7AeoJQQAvAegJIgNFDQsgA0ECdEEAKAKACmpBfGooAgAiBigCFEEAKAL8CSAFQf//A3FBAnRqKAIARw0LAkAgBigCBA0AIAYgBDYCBAtBACADQX9qOwHoCSAGIAJBBGo2AgwMCwsCQEEAKALwCSIELwEAQSlHDQBBACgCxAkiAkUNACACKAIEIARHDQBBAEEAKALICSICNgLECQJAIAJFDQAgAkEANgIcDAELQQBBADYCtAkLIAFBgBBqQQAvAeoJIgJqQQAtAIQKOgAAQQAgAkEBajsB6glBACgC/AkgAkECdGogBDYCAEEAQQA6AIQKDAoLQQAvAeoJIgJFDQZBACACQX9qIgM7AeoJIAJBAC8B7AkiBEcNAUEAQQAvAeYJQX9qIgI7AeYJQQBBACgC+AkgAkH//wNxQQF0ai8BADsB7AkLEBYMCAsgBEH//wNGDQcgA0H//wNxIARJDQQMBwtBJxAXDAYLQSIQFwwFCyADQS9HDQQCQAJAIAIvAQQiAkEqRg0AIAJBL0cNARAUDAcLQQEQFQwGCwJAAkACQAJAQQAoAvAJIgQvAQAiAhAYRQ0AAkACQAJAIAJBVWoOBAEFAgAFCyAEQX5qLwEAQVBqQf//A3FBCkkNAwwECyAEQX5qLwEAQStGDQIMAwsgBEF+ai8BAEEtRg0BDAILAkAgAkH9AEYNACACQSlHDQFBACgC/AlBAC8B6glBAnRqKAIAEBlFDQEMAgtBACgC/AlBAC8B6gkiA0ECdGooAgAQGg0BIAFBgBBqIANqLQAADQELIAQQGw0AIAJFDQBBASEEIAJBL0ZBAC0A9AlBAEdxRQ0BCxAcQQAhBAtBACAEOgD0CQwEC0EALwHsCUH//wNGQQAvAeoJRXFBAC0A0AlFcUEALwHoCUVxIQMMBgsQHUEAIQMMBQsgBEGgAUcNAQtBAEEBOgCECgtBAEEAKAKICjYC8AkLQQAoAogKIQIMAAsLIAFBgNoAaiQAIAMLHQACQEEAKAKwCSAARw0AQQEPCyAAQX5qLwEAEB4LpgYBBH9BAEEAKAKICiIAQQxqIgE2AogKQQEQISECAkACQAJAAkACQEEAKAKICiIDIAFHDQAgAhAlRQ0BCwJAAkACQAJAAkAgAkGff2oODAYBAwgBBwEBAQEBBAALAkACQCACQSpGDQAgAkH2AEYNBSACQfsARw0CQQAgA0ECajYCiApBARAhIQNBACgCiAohAQNAAkACQCADQf//A3EiAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQIMAQsgAhAXQQBBACgCiApBAmoiAjYCiAoLQQEQIRoCQCABIAIQJiIDQSxHDQBBAEEAKAKICkECajYCiApBARAhIQMLQQAoAogKIQICQCADQf0ARg0AIAIgAUYNBSACIQEgAkEAKAKMCk0NAQwFCwtBACACQQJqNgKICgwBC0EAIANBAmo2AogKQQEQIRpBACgCiAoiAiACECYaC0EBECEhAgtBACgCiAohAwJAIAJB5gBHDQAgA0ECakGeCEEGECgNAEEAIANBCGo2AogKIABBARAhECIPC0EAIANBfmo2AogKDAMLEB0PCwJAIAMpAAJC7ICEg7COwDlSDQAgAy8BChAeRQ0AQQAgA0EKajYCiApBARAhIQJBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LQQAgA0EEaiIDNgKICgtBACADQQRqIgI2AogKQQBBADoA5AkDQEEAIAJBAmo2AogKQQEQISEDQQAoAogKIQICQCADECRBIHJB+wBHDQBBAEEAKAKICkF+ajYCiAoPC0EAKAKICiIDIAJGDQEgAiADEAICQEEBECEiAkEsRg0AAkAgAkE9Rw0AQQBBACgCiApBfmo2AogKDwtBAEEAKAKICkF+ajYCiAoPC0EAKAKICiECDAALCw8LQQAgA0EKajYCiApBARAhGkEAKAKICiEDC0EAIANBEGo2AogKAkBBARAhIgJBKkcNAEEAQQAoAogKQQJqNgKICkEBECEhAgtBACgCiAohAyACECQaIANBACgCiAoQAkEAQQAoAogKQX5qNgKICg8LIAMgA0EOahACC6sGAQR/QQBBACgCiAoiAEEMaiIBNgKICgJAAkACQAJAAkACQAJAAkACQAJAQQEQISICQVlqDggCCAECAQEBBwALIAJBIkYNASACQfsARg0CC0EAKAKICiABRg0HC0EALwHqCQ0BQQAoAogKIQJBACgCjAohAwNAIAIgA08NBAJAAkAgAi8BACIBQSdGDQAgAUEiRw0BCyAAIAEQIg8LQQAgAkECaiICNgKICgwACwtBACgCiAohAkEALwHqCQ0BAkADQAJAAkACQCACQQAoAowKTw0AQQEQISICQSJGDQEgAkEnRg0BIAJB/QBHDQJBAEEAKAKICkECajYCiAoLQQEQIRpBACgCiAoiAikAAELmgMiD8I3ANlINBkEAIAJBCGo2AogKQQEQISICQSJGDQMgAkEnRg0DDAYLIAIQFwtBAEEAKAKICkECaiICNgKICgwACwsgACACECIMBQtBAEEAKAKICkF+ajYCiAoPC0EAIAJBfmo2AogKDwsQHQ8LQQBBACgCiApBAmo2AogKQQEQIUHtAEcNAUEAKAKICiICQQJqQZYIQQYQKA0BQQAoAvAJLwEAQS5GDQEgACAAIAJBCGpBACgCqAkQAQ8LQQAoAvwJQQAvAeoJIgJBAnRqQQAoAogKNgIAQQAgAkEBajsB6glBACgC8AkvAQBBLkYNAEEAQQAoAogKIgFBAmo2AogKQQEQISECIABBACgCiApBACABEAFBAEEALwHoCSIBQQFqOwHoCUEAKAKACiABQQJ0akEAKALECTYCAAJAIAJBIkYNACACQSdGDQBBAEEAKAKICkF+ajYCiAoPCyACEBdBAEEAKAKICkECaiICNgKICgJAAkACQEEBECFBV2oOBAECAgACC0EAQQAoAogKQQJqNgKICkEBECEaQQAoAsQJIgEgAjYCBCABQQE6ABggAUEAKAKICiICNgIQQQAgAkF+ajYCiAoPC0EAKALECSIBIAI2AgQgAUEBOgAYQQBBAC8B6glBf2o7AeoJIAFBACgCiApBAmo2AgxBAEEALwHoCUF/ajsB6AkPC0EAQQAoAogKQX5qNgKICg8LC0cBA39BACgCiApBAmohAEEAKAKMCiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2AogKC5gBAQN/QQBBACgCiAoiAUECajYCiAogAUEGaiEBQQAoAowKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2AogKDAELIAFBfmohAQtBACABNgKICg8LIAFBAmohAQwACwu/AQEEf0EAKAKICiEAQQAoAowKIQECQAJAA0AgACICQQJqIQAgAiABTw0BAkACQCAALwEAIgNBpH9qDgUBAgICBAALIANBJEcNASACLwEEQfsARw0BQQBBAC8B5gkiAEEBajsB5glBACgC+AkgAEEBdGpBAC8B7Ak7AQBBACACQQRqNgKICkEAQQAvAeoJQQFqIgA7AewJQQAgADsB6gkPCyACQQRqIQAMAAsLQQAgADYCiAoQHQ8LQQAgADYCiAoLiAEBBH9BACgCiAohAUEAKAKMCiECAkACQANAIAEiA0ECaiEBIAMgAk8NASABLwEAIgQgAEYNAgJAIARB3ABGDQAgBEF2ag4EAgEBAgELIANBBGohASADLwEEQQ1HDQAgA0EGaiABIAMvAQZBCkYbIQEMAAsLQQAgATYCiAoQHQ8LQQAgATYCiAoLbAEBfwJAAkAgAEFfaiIBQQVLDQBBASABdEExcQ0BCyAAQUZqQf//A3FBBkkNACAAQSlHIABBWGpB//8DcUEHSXENAAJAIABBpX9qDgQBAAABAAsgAEH9AEcgAEGFf2pB//8DcUEESXEPC0EBCy4BAX9BASEBAkAgAEH2CEEFEB8NACAAQYAJQQMQHw0AIABBhglBAhAfIQELIAELgwEBAn9BASEBAkACQAJAAkACQAJAIAAvAQAiAkFFag4EBQQEAQALAkAgAkGbf2oOBAMEBAIACyACQSlGDQQgAkH5AEcNAyAAQX5qQZIJQQYQHw8LIABBfmovAQBBPUYPCyAAQX5qQYoJQQQQHw8LIABBfmpBnglBAxAfDwtBACEBCyABC5MDAQJ/QQAhAQJAAkACQAJAAkACQAJAAkACQCAALwEAQZx/ag4UAAECCAgICAgICAMECAgFCAYICAcICwJAAkAgAEF+ai8BAEGXf2oOBAAJCQEJCyAAQXxqQa4IQQIQHw8LIABBfGpBsghBAxAfDwsCQAJAIABBfmovAQBBjX9qDgIAAQgLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQggAEF6akHlABAgDwsgAEF6akHjABAgDwsgAEF8akG4CEEEEB8PCyAAQX5qLwEAQe8ARw0FIABBfGovAQBB5QBHDQUCQCAAQXpqLwEAIgJB8ABGDQAgAkHjAEcNBiAAQXhqQcAIQQYQHw8LIABBeGpBzAhBAhAfDwtBASEBIABBfmoiAEHpABAgDQQgAEHQCEEFEB8PCyAAQX5qQeQAECAPCyAAQX5qQdoIQQcQHw8LIABBfmpB6AhBBBAfDwsCQCAAQX5qLwEAIgJB7wBGDQAgAkHlAEcNASAAQXxqQe4AECAPCyAAQXxqQfAIQQMQHyEBCyABC3ABAn8CQAJAA0BBAEEAKAKICiIAQQJqIgE2AogKIABBACgCjApPDQECQAJAAkAgAS8BACIBQaV/ag4CAQIACwJAIAFBdmoOBAQDAwQACyABQS9HDQIMBAsQJxoMAQtBACAAQQRqNgKICgwACwsQHQsLNQEBf0EAQQE6ANAJQQAoAogKIQBBAEEAKAKMCkECajYCiApBACAAQQAoArAJa0EBdTYC4AkLNAEBf0EBIQECQCAAQXdqQf//A3FBBUkNACAAQYABckGgAUYNACAAQS5HIAAQJXEhAQsgAQtJAQN/QQAhAwJAIAAgAkEBdCICayIEQQJqIgBBACgCsAkiBUkNACAAIAEgAhAoDQACQCAAIAVHDQBBAQ8LIAQvAQAQHiEDCyADCz0BAn9BACECAkBBACgCsAkiAyAASw0AIAAvAQAgAUcNAAJAIAMgAEcNAEEBDwsgAEF+ai8BABAeIQILIAILnAEBA39BACgCiAohAQJAA0ACQAJAIAEvAQAiAkEvRw0AAkAgAS8BAiIBQSpGDQAgAUEvRw0EEBQMAgsgABAVDAELAkACQCAARQ0AIAJBd2oiAUEXSw0BQQEgAXRBn4CABHFFDQEMAgsgAhAjRQ0DDAELIAJBoAFHDQILQQBBACgCiAoiA0ECaiIBNgKICiADQQAoAowKSQ0ACwsgAgvCAwEBfwJAIAFBIkYNACABQSdGDQAQHQ8LQQAoAogKIQIgARAXIAAgAkECakEAKAKICkEAKAKkCRABQQBBACgCiApBAmo2AogKQQAQISEAQQAoAogKIQECQAJAIABB4QBHDQAgAUECakGkCEEKEChFDQELQQAgAUF+ajYCiAoPC0EAIAFBDGo2AogKAkBBARAhQfsARg0AQQAgATYCiAoPC0EAKAKICiICIQADQEEAIABBAmo2AogKAkACQAJAQQEQISIAQSJGDQAgAEEnRw0BQScQF0EAQQAoAogKQQJqNgKICkEBECEhAAwCC0EiEBdBAEEAKAKICkECajYCiApBARAhIQAMAQsgABAkIQALAkAgAEE6Rg0AQQAgATYCiAoPC0EAQQAoAogKQQJqNgKICgJAQQEQISIAQSJGDQAgAEEnRg0AQQAgATYCiAoPCyAAEBdBAEEAKAKICkECajYCiAoCQAJAQQEQISIAQSxGDQAgAEH9AEYNAUEAIAE2AogKDwtBAEEAKAKICkECajYCiApBARAhQf0ARg0AQQAoAogKIQAMAQsLQQAoAsQJIgEgAjYCECABQQAoAogKQQJqNgIMCzABAX8CQAJAIABBd2oiAUEXSw0AQQEgAXRBjYCABHENAQsgAEGgAUYNAEEADwtBAQttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAlDQJBACECQQBBACgCiAoiAEECajYCiAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC2gBAn9BASEBAkACQCAAQV9qIgJBBUsNAEEBIAJ0QTFxDQELIABB+P8DcUEoRg0AIABBRmpB//8DcUEGSQ0AAkAgAEGlf2oiAkEDSw0AIAJBAUcNAQsgAEGFf2pB//8DcUEESSEBCyABC4sBAQJ/AkBBACgCiAoiAi8BACIDQeEARw0AQQAgAkEEajYCiApBARAhIQJBACgCiAohAAJAAkAgAkEiRg0AIAJBJ0YNACACECQaQQAoAogKIQEMAQsgAhAXQQBBACgCiApBAmoiATYCiAoLQQEQISEDQQAoAogKIQILAkAgAiAARg0AIAAgARACCyADC3IBBH9BACgCiAohAEEAKAKMCiEBAkACQANAIABBAmohAiAAIAFPDQECQAJAIAIvAQAiA0Gkf2oOAgEEAAsgAiEAIANBdmoOBAIBAQIBCyAAQQRqIQAMAAsLQQAgAjYCiAoQHUEADwtBACACNgKICkHdAAtJAQN/QQAhAwJAIAJFDQACQANAIAAtAAAiBCABLQAAIgVHDQEgAUEBaiEBIABBAWohACACQX9qIgINAAwCCwsgBCAFayEDCyADCwvCAQIAQYAIC6QBAAB4AHAAbwByAHQAbQBwAG8AcgB0AGUAdABhAGYAcgBvAG0AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGkAbgBzAHQAYQBuAHQAeQByAGUAdAB1AHIAZABlAGIAdQBnAGcAZQBhAHcAYQBpAHQAaAByAHcAaABpAGwAZQBmAG8AcgBpAGYAYwBhAHQAYwBmAGkAbgBhAGwAbABlAGwAcwAAQaQJCxABAAAAAgAAAAAEAAAQOQAA",typeof Buffer<"u"?Buffer.from(po,"base64"):Uint8Array.from(atob(po),e=>e.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:e})=>{G=e}),po;await _o;var vE=[".js",".mjs",".jsx",".json",".ts",".mts",".tsx"],xE=async(e,t)=>{let r=mE(yE(t)),n=Sn(CE(r,e)),i=n.replace(xn.extname(n),"");for(let s of vE){let o=`${i}${s}`,a=`${i}/index${s}`;if(wf(o))return o;if(wf(a))return a}},Sn=e=>e.replace(/\\/g,"/"),SE=(e,t)=>{e=Sn(e),t=Sn(t);let r=xn.relative(xn.dirname(e),t);return r.startsWith(".")?r:`./${r}`},BE=e=>e?e.startsWith(".")||e.includes("/")||xn.extname(e):!1,Eo=async e=>{let t=me(Eo);t.log("Getting rewritten specifiers:",{modulePath:e}),e=Sn(e);let r=await bE(e,"utf8"),[n]=await go(r),i=n.filter(o=>typeof o.n<"u");t.log("Found import statements:",{namedImportExportSpecifiers:i});let s=r.slice(0);for(let o of i){let a=o.n;t.log("Found specifier:",{specifier:a});let l=r.substring(o.ss,o.se);if(!a){t.log(`Could not find specifier in import statement: "${l}"`);continue}if(!BE(a)){t.log("Not resolving relative or non-named specifier:",{specifier:a});continue}let c=await xE(a,e);if(!c){t.log(`Could not resolve specifier "${a}" from "${e}". Assuming external.`);continue}t.log("Resolved specifier:",{resolvedSpecifier:c});let u=SE(e,c);t.log("Specifier replacement:",{specifierReplacement:u});let h=l.replace(a,u);t.log("Replacing import statement:",{specifier:a,importStatement:l,importStatementReplacement:h}),s=s.replace(l,h)}return s};var mo=async(e="dist/**/*.js")=>{let t=me(mo),n=QE(e)&&wE(e)?[e]:Rf.default.sync(e);t.log("Normalizing import/require specifiers:",{files:e,filesToNormalize:n});for(let i of n){let s=IE(i),o=await Eo(s);t.log("Normalizing",{file:i,normalized:o}),await RE(s,o,{flag:"w",encoding:"utf-8"})}t.log("Normalized",{filesToNormalize:n})};import{readFileSync as TE}from"fs";function OE(e){return new Promise((t,r)=>{let n=[];function i(l){n.push(l)}function s(){a(),t(Buffer.concat(n))}function o(l){a(),r(l)}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 yo=async()=>{let e=me(yo);e.log("Reading stdin");try{let r=TE(0).toString();if(r)return e.log("Found stdin",{stdin:r}),r}catch(r){e.log("Could not read stdin",{e:r})}return xe(T.gray("Type your source code. Press Ctrl+D to finish.")),(await OE(process.stdin)).toString()};var jE=`import React from "react";
25
25
  import ReactDOM from "react-dom";
26
- `,wc=e=>{let t=` ${e} `;Se(T.bgBlue(T.bold(T.white(t))))},FE=async()=>{let e;if(yo("dist/package.json")?e=JSON.parse(await Ic("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await DE("dist/package.json",JSON.stringify(e,null,2))},Rc=(e,t,r)=>{t=lr(t);let n=uo(t);return{stdin:{contents:e,sourcefile:t,resolveDir:Tc(t),loader:r},outdir:void 0,outfile:n}},Qc=async(e,t,r)=>{e=lr(e),t=lr(t);let o=["npx tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];yo(lr(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=me({log:!1,stdio:"ignore"}),l=o.join(" "),{code:f,stdout:u,stderr:h}=await a.run(l);if(f!==0)throw new Error(`Building CSS bundle exited with code ${f} for ${e}.
26
+ `,Tf=e=>{let t=` ${e} `;xe(T.bgBlue(T.bold(T.white(t))))},HE=async()=>{let e;if(vo("dist/package.json")?e=JSON.parse(await kf("dist/package.json","utf-8")):e={},e?.module==="module")return!0;e.type="module",await PE("dist/package.json",JSON.stringify(e,null,2))},Of=(e,t,r)=>{t=ur(t);let n=fo(t);return{stdin:{contents:e,sourcefile:t,resolveDir:Lf(t),loader:r},outdir:void 0,outfile:n}},Df=async(e,t,r)=>{e=ur(e),t=ur(t);let o=["npx tailwindcss",r?"":"--minify","--postcss postcss.config.js",`-i ${e}`,`-o ${t}`];vo(ur(process.cwd(),"tailwind.config.js"))&&o.push("--config tailwind.config.js");let a=Ae({log:!1,stdio:"ignore"}),l=o.join(" "),{code:c,stdout:u,stderr:h}=await a.run(l);if(c!==0)throw new Error(`Building CSS bundle exited with code ${c} for ${e}.
27
27
  \rTried running: ${l}.
28
- \rError: ${u+h}`)},qE=`
28
+ \rError: ${u+h}`)},$E=`
29
29
  typeof document>"u"&&await(async()=>{let{dirname:e}=await import("path"),{fileURLToPath:i}=await import("url");if(typeof globalThis.__filename>"u"&&(globalThis.__filename=i(import.meta.url)),typeof globalThis.__dirname>"u"&&(globalThis.__dirname=e(globalThis.__filename)),typeof globalThis.require>"u"){let{default:a}=await import("module");globalThis.require=a.createRequire(import.meta.url)}})();
30
- `,vn=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:f=void 0})=>{Bc.NODE_ENV=n?"development":"production";let u=ve(vn);n&&(s=!0);let{cwd:h,srcDir:A,outDir:C}=lo(),E=await bc(),_=JSON.parse(E),v={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},b=["esbuild","*.png"],D={...v,bundle:i,absWorkingDir:h,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:_?.platform??"node",write:!a,external:i?b:void 0,banner:i?{js:qE}:void 0},P="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:f,noWrite:a}),f||(Se(T.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?P=l:P=await _o();let c={...v,sourcefile:f,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await NE(P,c)).code;{let k=Rc(P,f,"tsx");await Eo({...D,...k}),Se(T.green("Successfully built stdin file to dist/.")),Se(T.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),wc(`${T.bold("TS Module")} [${Bc.NODE_ENV}]`);let U=mo.default.sync(e,{cwd:h}).filter(c=>kE(c)!==".d.ts").map(c=>lr(c));if(LE(e)){U.length||U.push(e);let c=e.replace(A,C).replace(Mt,".js").replace(pt,".js");u.log("Cleaning emitted file:",{outfile:c}),await xc(c,{force:!0})}else u.log("Cleaning old output:",{outDir:C}),await xc(C,{force:!0,recursive:!0});let B=U.filter(c=>pt.test(c));u.log("Compiling TSX files:",{tsxJsxInput:B});let H=B.filter(c=>!c.endsWith(".d.ts"));await Promise.all(H.map(async c=>{let k=await Ic(c,"utf-8"),F=ME+k,le=Rc(F,c,"tsx");await Eo({...D,...le})})),_e("Built TSX files.").succeed();let R=U.filter(c=>Mt.test(c)).filter(c=>!pt.test(c));u.log("Compiling TS files:",{tsJsInput:R}),await Eo({...D,entryPoints:R.filter(c=>!c.endsWith(".d.ts"))}),_e("Built TS files.").succeed();let S=U.filter(c=>!Cc.test(c));u.log("Copying non-JS/TS files.",{allFiles:U,nonTsJsInput:S});for(let c of S){let k=uo(c);u.log("Copying non-source file:",{file:c,emittedFile:k}),await OE(Tc(k),{recursive:!0}),await TE(c,k,IE.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let c=e.replace(A,C).replace(/^(\.\/)?src\//,"dist/").replace(Mt,".js").replace(pt,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:c}),await go(c.endsWith(".js")?c:`${c}.js`),_e("Normalized import specifiers.").succeed()}if(await FE()&&_e('Forced "type": "module" in output.').succeed(),s)return;if(!o)if(yo(PE(t))){u.log("Building styles for production.");let{style:c="./dist/bundle.css"}=_;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:c,dev:n}),await Qc(t,c,n),i){u.log("Bundling all styles.");let k=mo.default.sync("dist/**/*.css"),F=_e("Bundling emitted styles.").start();await Promise.all(k.map(async le=>await Qc(le,le,n))),F.succeed(`Bundled all styles to ${T.bold(c)}.`)}}else Se(T.grey(`Bundle styles not found for this project.
31
- \rChecked: `+T.bold(t)));wc("Running post-build setup.");let z=_e("Generating type declarations.").start();await fo(),z.succeed(`Generated delcarations for ${U.length} files.`),Se(T.green("Build complete."))};import{dirname as HE,resolve as jE}from"path";import{fileURLToPath as $E}from"url";var Co={default:[],react:["react@^17.0.2","react-dom@^17.0.2"]},bo={default:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"],react:["next","@types/react@^17.0.39","@types/react-dom@^17.0.11","@tsmodule/react","eslint","eslint-config-next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]},Sn=jE(HE($E(import.meta.url)),"..");import{mkdir as GE}from"fs/promises";import{resolve as Oc}from"path";var vo=async(e,t)=>{let r=me(),n=Oc(Sn,`./templates/${e}`),i=Oc(t);await GE(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};import Dc from"fs/promises";import{resolve as UE}from"path";var kc=async e=>{let t=UE(process.cwd(),e,"package.json"),r=await Dc.readFile(t,"utf-8"),n=JSON.parse(r);n.name=e,await Dc.writeFile(t,JSON.stringify(n,null,2))};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var yv=async(e,{react:t=!1})=>{let r=me(),n=_e(`Creating new module ${T.blueBright(e)}.`).start();await vo("default",e),t&&await vo("react",e),await kc(e),n.succeed("Project created."),process.chdir(e);let i=[...Co.default],s=[...bo.default];t&&(i.push(...Co.react),s.push(...bo.react)),i.length&&await r.run(`yarn add ${i.join(" ")}`),s.length&&await r.run(`yarn add -D ${s.join(" ")}`),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};import{relative as om,resolve as am}from"path";import{existsSync as lm}from"fs";import{lstat as um}from"fs/promises";var tA=He(Zc(),1);var zc=()=>{console.clear()},eA=e=>{Se(`
30
+ `,Bn=async({input:e="src/**/*",styles:t="src/components/index.css",target:r="esnext",dev:n=!1,bundle:i=!1,runtimeOnly:s=!1,jsOnly:o=!1,noWrite:a=!1,stdin:l=void 0,stdinFile:c=void 0})=>{If.NODE_ENV=n?"development":"production";let u=me(Bn);n&&(s=!0);let{cwd:h,srcDir:A,outDir:C}=co(),E=await ho(),_=JSON.parse(E),v={treeShaking:i,target:r,minify:!n,jsx:"transform",jsxFactory:"React.createElement",format:"esm",charset:"utf8",logLevel:n?"warning":"error",define:{"process.env.NODE_ENV":n?JSON.stringify("development"):JSON.stringify("production")}},b=["esbuild","*.png"],D={...v,bundle:i,absWorkingDir:h,outbase:"src",outdir:"dist",assetNames:"[name].js",format:"esm",target:"esnext",platform:_?.platform??"node",write:!a,external:i?b:void 0,banner:i?{js:$E}:void 0},P="";if(l){u.log("Building file from stdin",{stdin:l,stdinFile:c,noWrite:a}),c||(xe(T.red("ERROR: --stdin-file must be specified to emulate a file location when using stdin.")),process.exit(1)),typeof l=="string"&&l.length?P=l:P=await yo();let f={...v,sourcefile:c,loader:"tsx",banner:void 0,footer:void 0};if(a)return(await qE(P,f)).code;{let k=Of(P,c,"tsx");await Co({...D,...k}),xe(T.green("Successfully built stdin file to dist/.")),xe(T.grey("Use --no-write to print to stdout instead."));return}}u.log("Building",{files:e,dev:n,runtimeOnly:s}),Tf(`${T.bold("TS Module")} [${If.NODE_ENV}]`);let U=bo.default.sync(e,{cwd:h}).filter(f=>NE(f)!==".d.ts").map(f=>ur(f));if(ME(e)){U.length||U.push(e);let f=e.replace(A,C).replace(Mt,".js").replace(pt,".js");u.log("Cleaning emitted file:",{outfile:f}),await Qf(f,{force:!0})}else u.log("Cleaning old output:",{outDir:C}),await Qf(C,{force:!0,recursive:!0});let B=U.filter(f=>pt.test(f));u.log("Compiling TSX files:",{tsxJsxInput:B});let j=B.filter(f=>!f.endsWith(".d.ts"));await Promise.all(j.map(async f=>{let k=await kf(f,"utf-8"),F=jE+k,le=Of(F,f,"tsx");await Co({...D,...le})})),Ee("Built TSX files.").succeed();let R=U.filter(f=>Mt.test(f)).filter(f=>!pt.test(f));u.log("Compiling TS files:",{tsJsInput:R}),await Co({...D,entryPoints:R.filter(f=>!f.endsWith(".d.ts"))}),Ee("Built TS files.").succeed();let x=U.filter(f=>!Sf.test(f));u.log("Copying non-JS/TS files.",{allFiles:U,nonTsJsInput:x});for(let f of x){let k=fo(f);u.log("Copying non-source file:",{file:f,emittedFile:k}),await LE(Lf(k),{recursive:!0}),await kE(f,k,DE.COPYFILE_FICLONE)}if(!process.env.NO_REWRITES){let f=e.replace(A,C).replace(/^(\.\/)?src\//,"dist/").replace(Mt,".js").replace(pt,".js");u.log("Normalizing import specifiers in emitted JS.",{emittedJs:f}),await mo(f.endsWith(".js")?f:`${f}.js`),Ee("Normalized import specifiers.").succeed()}if(await HE()&&Ee('Forced "type": "module" in output.').succeed(),s)return;if(!o)if(vo(FE(t))){u.log("Building styles for production.");let{style:f="./dist/bundle.css"}=_;if(u.log("Building style bundle.",{bundleInput:t,bundleOutput:f,dev:n}),await Df(t,f,n),i){u.log("Bundling all styles.");let k=bo.default.sync("dist/**/*.css"),F=Ee("Bundling emitted styles.").start();await Promise.all(k.map(async le=>await Df(le,le,n))),F.succeed(`Bundled all styles to ${T.bold(f)}.`)}}else xe(T.grey(`Bundle styles not found for this project.
31
+ \rChecked: `+T.bold(t)));Tf("Running post-build setup.");let z=Ee("Generating type declarations.").start();await Ao(),z.succeed(`Generated delcarations for ${U.length} files.`),xe(T.green("Build complete."))};import{resolve as VE}from"path";var JE=Pe(Ur(),1);import{copyFile as pv,mkdir as YE}from"fs/promises";import{dirname as gv,resolve as xo}from"path";var Pf={packageJson:{type:"module",platform:"node",types:"dist/index.d.ts",files:["dist"],exports:{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},scripts:{dev:"tsmodule dev",build:"tsmodule build",test:"ava",pretest:"tsmodule build --runtime-only",prepublishOnly:"yarn build && yarn test",lint:"eslint src --fix"},ava:{timeout:24e4,files:["test/**/*.test.ts"],extensions:{ts:"module"},nodeArguments:["--no-warnings","--loader=@tsmodule/tsmodule"]}},files:["tsconfig.json",".eslintrc"],dependencies:[],devDependencies:["@types/node","@tsmodule/tsmodule","@typescript-eslint/eslint-plugin","@typescript-eslint/parser","ava","eslint","typescript"]},Ft={default:Pf,react:{packageJson:{platform:"browser",style:"dist/bundle.css",exports:{"./package.json":"./package.json",".":"./dist/index.js","./styles":"./dist/bundle.css","./styles/*":"./dist/components/*/index.css","./*":"./dist/components/*/index.js"},scripts:{export:"tsmodule build",dev:"next dev",build:"next build",start:"next start",lint:"next lint --fix",pretest:"tsmodule build --runtime-only",test:"ava",prepublishOnly:"yarn export && yarn test"},resolutions:{"@types/react":"^17.0.38","@types/react-dom":"^17.0.11"}},files:[".eslintrc","next-env.d.ts","next.config.js","postcss.config.js","tailwind.config.js"],dependencies:["react@^17.0.2","react-dom@^17.0.2"],devDependencies:[...Pf.devDependencies,"@types/react@^17.0.39","@types/react-dom@^17.0.11","eslint-config-next","@tsmodule/react","next","tailwindcss","autoprefixer","cssnano","postcss","postcss-import"]}};import{dirname as GE,resolve as UE}from"path";import{fileURLToPath as KE}from"url";var wn=UE(GE(KE(import.meta.url)),"..");var WE=e=>xo(wn,`./templates/${e}`),So=async({template:e,targetDir:t=process.cwd()})=>{let r=Ae(),n=WE(e),i=xo(t);await YE(i,{recursive:!0}),await r.run({posix:`cp -rf ${n}/. ${i}`,win32:`xcopy /E /I /Q /Y ${n}\\ ${i}\\`})};var Bo=async({template:e,targetDir:t=process.cwd()})=>{let r=xo(t),n=Ft[e].packageJson;return await vn(r,n)},wo=async({template:e,targetDir:t=process.cwd()})=>{let r=Ae({cwd:t}),n=[...Ft.default.dependencies],i=[...Ft.default.devDependencies];switch(e){case"react":n.push(...Ft.react.dependencies),i.push(...Ft.react.devDependencies);break}n.length&&await r.run(`yarn add ${n.join(" ")}`),i.length&&await r.run(`yarn add -D ${i.join(" ")}`)};globalThis.SHELL_OPTIONS={stdio:["ignore","ignore","inherit"]};var Tv=async(e,{react:t=!1})=>{let r=Ae(),n=Ee(`Creating new module ${T.blueBright(e)}.`).start(),i={template:"default",targetDir:e};if(await So(i),await Bo(i),t){let s={template:"react",targetDir:e};await So(s),await Bo(s)}await vn(VE(process.cwd(),e),{name:e}),n.succeed("Project created."),await wo({template:"default",targetDir:e}),t&&await wo({template:"react",targetDir:e}),n.succeed("Dependencies installed."),await r.run("git init"),n.succeed("Set up as Git repository.")};import{relative as fm,resolve as Am}from"path";import{existsSync as hm}from"fs";import{lstat as pm}from"fs/promises";var nA=Pe(eA(),1);var tA=()=>{console.clear()},rA=e=>{xe(`
32
32
  `,T.gray(`Built ${T.bold(e)}.`),`
33
- `,T.blue(new Date().toLocaleString()))},Dv=async()=>{let e=process.cwd(),t=me();process.platform!=="win32"&&await t.run("clear"),zc(),await vn({dev:!0}),eA("src/**/*"),(0,tA.default)(am(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!lm(n)||(await um(n)).isDirectory())return;zc();let a=Date.now();await vn({dev:!0,runtimeOnly:!0,input:n});let l=Date.now()-a;_e(T.blueBright(`Dev refresh finished in ${T.bold(`${l}ms`)}.`)).succeed(),eA(om(e,n))})};import{pathToFileURL as fm}from"url";import{resolve as cm}from"path";var Fv=async()=>{let e=cm(Sn,"dist/loader/index.js"),t=["--no-warnings","--loader",fm(e).href,...process.argv.slice(2)];await me().run(`node ${t.join(" ")}`)};export{wc as bannerLog,vn as build,yv as create,Dv as dev,Fv as execute,go as normalizeImportSpecifiers};
33
+ `,T.blue(new Date().toLocaleString()))},Gv=async()=>{let e=process.cwd(),t=Ae();process.platform!=="win32"&&await t.run("clear"),tA(),await Bn({dev:!0}),rA("src/**/*"),(0,nA.default)(Am(e,"src"),{recursive:!0}).on("change",async(r,n)=>{if(!hm(n)||(await pm(n)).isDirectory())return;tA();let a=Date.now();await Bn({dev:!0,runtimeOnly:!0,input:n});let l=Date.now()-a;Ee(T.blueBright(`Dev refresh finished in ${T.bold(`${l}ms`)}.`)).succeed(),rA(fm(e,n))})};import{pathToFileURL as dm}from"url";import{resolve as gm}from"path";var Vv=async()=>{let e=gm(wn,"dist/loader/index.js"),t=["--no-warnings","--loader",dm(e).href,...process.argv.slice(2)];await Ae().run(`node ${t.join(" ")}`)};export{Tf as bannerLog,Bn as build,Tv as create,Gv as dev,Vv as execute,mo as normalizeImportSpecifiers};
34
34
  /*!
35
35
  * fill-range <https://github.com/jonschlinkert/fill-range>
36
36
  *