@holistics/cli-core 0.9.7 → 0.9.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands.js +1 -1
- package/package.json +1 -1
package/dist/commands.js
CHANGED
|
@@ -88,7 +88,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
88
88
|
*
|
|
89
89
|
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
90
90
|
* Released under the MIT License.
|
|
91
|
-
*/ml.exports=function(Z,J){if(typeof Z!=="string")throw new TypeError("expected path to be a string");if(Z==="\\"||Z==="/")return"/";var X=Z.length;if(X<=1)return Z;var Q="";if(X>4&&Z[3]==="\\"){var q=Z[2];if((q==="?"||q===".")&&Z.slice(0,2)==="\\\\")Z=Z.slice(2),Q="//"}var $=Z.split(/[/\\]+/);if(J!==!1&&$[$.length-1]==="")$.pop();return Q+$.join("/")}});var hl=a((ul,gl)=>{Object.defineProperty(ul,"__esModule",{value:!0});var pl=QK(),Xc0=ND(),yl="!",Qc0={returnIndex:!1},qc0=(Z)=>Array.isArray(Z)?Z:[Z],$c0=(Z,J)=>{if(typeof Z==="function")return Z;if(typeof Z==="string"){let X=pl(Z,J);return(Q)=>Z===Q||X(Q)}if(Z instanceof RegExp)return(X)=>Z.test(X);return(X)=>!1},cl=(Z,J,X,Q)=>{let q=Array.isArray(X),$=q?X[0]:X;if(!q&&typeof $!=="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call($));let Y=Xc0($,!1);for(let W=0;W<J.length;W++){let V=J[W];if(V(Y))return Q?-1:!1}let K=q&&[Y].concat(X.slice(1));for(let W=0;W<Z.length;W++){let V=Z[W];if(q?V(...K):V(Y))return Q?W:!0}return Q?-1:!1},DD=(Z,J,X=Qc0)=>{if(Z==null)throw new TypeError("anymatch: specify first argument");let Q=typeof X==="boolean"?{returnIndex:X}:X,q=Q.returnIndex||!1,$=qc0(Z),Y=$.filter((W)=>typeof W==="string"&&W.charAt(0)===yl).map((W)=>W.slice(1)).map((W)=>pl(W,Q)),K=$.filter((W)=>typeof W!=="string"||typeof W==="string"&&W.charAt(0)!==yl).map((W)=>$c0(W,Q));if(J==null)return(W,V=!1)=>{return cl(K,Y,W,typeof V==="boolean"?V:!1)};return cl(K,Y,J,q)};DD.default=DD;gl.exports=DD});var dl=a((k11,Yc0)=>{Yc0.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var ll=a((f11,il)=>{var Kc0=_0("path"),Wc0=dl(),zc0=new Set(Wc0);il.exports=(Z)=>zc0.has(Kc0.extname(Z).slice(1).toLowerCase())});var wz=a((xc0)=>{var{sep:Vc0}=_0("path"),{platform:jD}=process,Uc0=_0("os");xc0.EV_ALL="all";xc0.EV_READY="ready";xc0.EV_ADD="add";xc0.EV_CHANGE="change";xc0.EV_ADD_DIR="addDir";xc0.EV_UNLINK="unlink";xc0.EV_UNLINK_DIR="unlinkDir";xc0.EV_RAW="raw";xc0.EV_ERROR="error";xc0.STR_DATA="data";xc0.STR_END="end";xc0.STR_CLOSE="close";xc0.FSEVENT_CREATED="created";xc0.FSEVENT_MODIFIED="modified";xc0.FSEVENT_DELETED="deleted";xc0.FSEVENT_MOVED="moved";xc0.FSEVENT_CLONED="cloned";xc0.FSEVENT_UNKNOWN="unknown";xc0.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;xc0.FSEVENT_TYPE_FILE="file";xc0.FSEVENT_TYPE_DIRECTORY="directory";xc0.FSEVENT_TYPE_SYMLINK="symlink";xc0.KEY_LISTENERS="listeners";xc0.KEY_ERR="errHandlers";xc0.KEY_RAW="rawEmitters";xc0.HANDLER_KEYS=[xc0.KEY_LISTENERS,xc0.KEY_ERR,xc0.KEY_RAW];xc0.DOT_SLASH=`.${Vc0}`;xc0.BACK_SLASH_RE=/\\/g;xc0.DOUBLE_SLASH_RE=/\/\//;xc0.SLASH_OR_BACK_SLASH_RE=/[/\\]/;xc0.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;xc0.REPLACER_RE=/^\.[/\\]/;xc0.SLASH="/";xc0.SLASH_SLASH="//";xc0.BRACE_START="{";xc0.BANG="!";xc0.ONE_DOT=".";xc0.TWO_DOTS="..";xc0.STAR="*";xc0.GLOBSTAR="**";xc0.ROOT_GLOBSTAR="/**/*";xc0.SLASH_GLOBSTAR="/**";xc0.DIR_SUFFIX="Dir";xc0.ANYMATCH_OPTS={dot:!0};xc0.STRING_TYPE="string";xc0.FUNCTION_TYPE="function";xc0.EMPTY_STR="";xc0.EMPTY_FN=()=>{};xc0.IDENTITY_FN=(Z)=>Z;xc0.isWindows=jD==="win32";xc0.isMacos=jD==="darwin";xc0.isLinux=jD==="linux";xc0.isIBMi=Uc0.type()==="OS400"});var Xo=a((m11,Jo)=>{var _5=_0("fs"),L8=_0("path"),{promisify:yq}=_0("util"),zp0=ll(),{isWindows:Vp0,isLinux:Up0,EMPTY_FN:xp0,EMPTY_STR:Gp0,KEY_LISTENERS:vJ,KEY_ERR:LD,KEY_RAW:fq,HANDLER_KEYS:Hp0,EV_CHANGE:Rz,EV_ADD:Cz,EV_ADD_DIR:Bp0,EV_ERROR:rl,STR_DATA:Mp0,STR_END:Fp0,BRACE_START:Np0,STAR:Dp0}=wz(),jp0=yq(_5.open),tl=yq(_5.stat),Lp0=yq(_5.lstat),wp0=yq(_5.close),wD=yq(_5.realpath),Cp0={lstat:Lp0,stat:tl},RD=(Z,J)=>{if(Z instanceof Set)Z.forEach(J);else J(Z)},bq=(Z,J,X)=>{let Q=Z[J];if(!(Q instanceof Set))Z[J]=Q=new Set([Q]);Q.add(X)},Rp0=(Z)=>(J)=>{let X=Z[J];if(X instanceof Set)X.clear();else delete Z[J]},mq=(Z,J,X)=>{let Q=Z[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete Z[J]},el=(Z)=>Z instanceof Set?Z.size===0:!Z,Iz=new Map;function al(Z,J,X,Q,q){let $=(Y,K)=>{if(X(Z),q(Y,K,{watchedPath:Z}),K&&Z!==K)Oz(L8.resolve(Z,K),vJ,L8.join(Z,K))};try{return _5.watch(Z,J,$)}catch(Y){Q(Y)}}var Oz=(Z,J,X,Q,q)=>{let $=Iz.get(Z);if(!$)return;RD($[J],(Y)=>{Y(X,Q,q)})},Ip0=(Z,J,X,Q)=>{let{listener:q,errHandler:$,rawEmitter:Y}=Q,K=Iz.get(J),W;if(!X.persistent)return W=al(Z,X,q,$,Y),W.close.bind(W);if(K)bq(K,vJ,q),bq(K,LD,$),bq(K,fq,Y);else{if(W=al(Z,X,Oz.bind(null,J,vJ),$,Oz.bind(null,J,fq)),!W)return;W.on(rl,async(V)=>{let U=Oz.bind(null,J,LD);if(K.watcherUnusable=!0,Vp0&&V.code==="EPERM")try{let G=await jp0(Z,"r");await wp0(G),U(V)}catch(G){}else U(V)}),K={listeners:q,errHandlers:$,rawEmitters:Y,watcher:W},Iz.set(J,K)}return()=>{if(mq(K,vJ,q),mq(K,LD,$),mq(K,fq,Y),el(K.listeners))K.watcher.close(),Iz.delete(J),Hp0.forEach(Rp0(K)),K.watcher=void 0,Object.freeze(K)}},CD=new Map,Op0=(Z,J,X,Q)=>{let{listener:q,rawEmitter:$}=Q,Y=CD.get(J),K=new Set,W=new Set,V=Y&&Y.options;if(V&&(V.persistent<X.persistent||V.interval>X.interval))K=Y.listeners,W=Y.rawEmitters,_5.unwatchFile(J),Y=void 0;if(Y)bq(Y,vJ,q),bq(Y,fq,$);else Y={listeners:q,rawEmitters:$,options:X,watcher:_5.watchFile(J,X,(U,G)=>{RD(Y.rawEmitters,(M)=>{M(Rz,J,{curr:U,prev:G})});let H=U.mtimeMs;if(U.size!==G.size||H>G.mtimeMs||H===0)RD(Y.listeners,(M)=>M(Z,U))})},CD.set(J,Y);return()=>{if(mq(Y,vJ,q),mq(Y,fq,$),el(Y.listeners))CD.delete(J),_5.unwatchFile(J),Y.options=Y.watcher=void 0,Object.freeze(Y)}};class Zo{constructor(Z){this.fsw=Z,this._boundHandleError=(J)=>Z._handleError(J)}_watchWithNodeFs(Z,J){let X=this.fsw.options,Q=L8.dirname(Z),q=L8.basename(Z);this.fsw._getWatchedDir(Q).add(q);let Y=L8.resolve(Z),K={persistent:X.persistent};if(!J)J=xp0;let W;if(X.usePolling)K.interval=X.enableBinaryInterval&&zp0(q)?X.binaryInterval:X.interval,W=Op0(Z,Y,K,{listener:J,rawEmitter:this.fsw._emitRaw});else W=Ip0(Z,Y,K,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return W}_handleFile(Z,J,X){if(this.fsw.closed)return;let Q=L8.dirname(Z),q=L8.basename(Z),$=this.fsw._getWatchedDir(Q),Y=J;if($.has(q))return;let K=async(V,U)=>{if(!this.fsw._throttle("watch",Z,5))return;if(!U||U.mtimeMs===0)try{let G=await tl(Z);if(this.fsw.closed)return;let{atimeMs:H,mtimeMs:M}=G;if(!H||H<=M||M!==Y.mtimeMs)this.fsw._emit(Rz,Z,G);if(Up0&&Y.ino!==G.ino)this.fsw._closeFile(V),Y=G,this.fsw._addPathCloser(V,this._watchWithNodeFs(Z,K));else Y=G}catch(G){this.fsw._remove(Q,q)}else if($.has(q)){let{atimeMs:G,mtimeMs:H}=U;if(!G||G<=H||H!==Y.mtimeMs)this.fsw._emit(Rz,Z,U);Y=U}},W=this._watchWithNodeFs(Z,K);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(Z)){if(!this.fsw._throttle(Cz,Z,0))return;this.fsw._emit(Cz,Z,J)}return W}async _handleSymlink(Z,J,X,Q){if(this.fsw.closed)return;let q=Z.fullPath,$=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let Y;try{Y=await wD(X)}catch(K){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if($.has(Q)){if(this.fsw._symlinkPaths.get(q)!==Y)this.fsw._symlinkPaths.set(q,Y),this.fsw._emit(Rz,X,Z.stats)}else $.add(Q),this.fsw._symlinkPaths.set(q,Y),this.fsw._emit(Cz,X,Z.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(q))return!0;this.fsw._symlinkPaths.set(q,!0)}_handleRead(Z,J,X,Q,q,$,Y){if(Z=L8.join(Z,Gp0),!X.hasGlob){if(Y=this.fsw._throttle("readdir",Z,1000),!Y)return}let K=this.fsw._getWatchedDir(X.path),W=new Set,V=this.fsw._readdirp(Z,{fileFilter:(U)=>X.filterPath(U),directoryFilter:(U)=>X.filterDir(U),depth:0}).on(Mp0,async(U)=>{if(this.fsw.closed){V=void 0;return}let G=U.path,H=L8.join(Z,G);if(W.add(G),U.stats.isSymbolicLink()&&await this._handleSymlink(U,Z,H,G))return;if(this.fsw.closed){V=void 0;return}if(G===Q||!Q&&!K.has(G))this.fsw._incrReadyCount(),H=L8.join(q,L8.relative(q,H)),this._addToNodeFs(H,J,X,$+1)}).on(rl,this._boundHandleError);return new Promise((U)=>V.once(Fp0,()=>{if(this.fsw.closed){V=void 0;return}let G=Y?Y.clear():!1;if(U(),K.getChildren().filter((H)=>{return H!==Z&&!W.has(H)&&(!X.hasGlob||X.filterPath({fullPath:L8.resolve(Z,H)}))}).forEach((H)=>{this.fsw._remove(Z,H)}),V=void 0,G)this._handleRead(Z,!1,X,Q,q,$,Y)}))}async _handleDir(Z,J,X,Q,q,$,Y){let K=this.fsw._getWatchedDir(L8.dirname(Z)),W=K.has(L8.basename(Z));if(!(X&&this.fsw.options.ignoreInitial)&&!q&&!W){if(!$.hasGlob||$.globFilter(Z))this.fsw._emit(Bp0,Z,J)}K.add(L8.basename(Z)),this.fsw._getWatchedDir(Z);let V,U,G=this.fsw.options.depth;if((G==null||Q<=G)&&!this.fsw._symlinkPaths.has(Y)){if(!q){if(await this._handleRead(Z,X,$,q,Z,Q,V),this.fsw.closed)return}U=this._watchWithNodeFs(Z,(H,M)=>{if(M&&M.mtimeMs===0)return;this._handleRead(H,!1,$,q,Z,Q,V)})}return U}async _addToNodeFs(Z,J,X,Q,q){let $=this.fsw._emitReady;if(this.fsw._isIgnored(Z)||this.fsw.closed)return $(),!1;let Y=this.fsw._getWatchHelpers(Z,Q);if(!Y.hasGlob&&X)Y.hasGlob=X.hasGlob,Y.globFilter=X.globFilter,Y.filterPath=(K)=>X.filterPath(K),Y.filterDir=(K)=>X.filterDir(K);try{let K=await Cp0[Y.statMethod](Y.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(Y.watchPath,K))return $(),!1;let W=this.fsw.options.followSymlinks&&!Z.includes(Dp0)&&!Z.includes(Np0),V;if(K.isDirectory()){let U=L8.resolve(Z),G=W?await wD(Z):Z;if(this.fsw.closed)return;if(V=await this._handleDir(Y.watchPath,K,J,Q,q,Y,G),this.fsw.closed)return;if(U!==G&&G!==void 0)this.fsw._symlinkPaths.set(U,G)}else if(K.isSymbolicLink()){let U=W?await wD(Z):Z;if(this.fsw.closed)return;let G=L8.dirname(Y.watchPath);if(this.fsw._getWatchedDir(G).add(Y.watchPath),this.fsw._emit(Cz,Y.watchPath,K),V=await this._handleDir(G,K,J,Q,Z,Y,U),this.fsw.closed)return;if(U!==void 0)this.fsw._symlinkPaths.set(L8.resolve(Z),U)}else V=this._handleFile(Y.watchPath,K,J);return $(),this.fsw._addPathCloser(Z,V),!1}catch(K){if(this.fsw._handleError(K))return $(),Z}}}Jo.exports=Zo});var Vo=a((y11,AD)=>{var TD=_0("fs"),w8=_0("path"),{promisify:PD}=_0("util"),kJ;try{kJ=(()=>{throw new Error("Cannot require module "+"fsevents");})()}catch(Z){if(process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR)console.error(Z)}if(kJ){let Z=process.version.match(/v(\d+)\.(\d+)/);if(Z&&Z[1]&&Z[2]){let J=Number.parseInt(Z[1],10),X=Number.parseInt(Z[2],10);if(J===8&&X<16)kJ=void 0}}var{EV_ADD:ID,EV_CHANGE:_p0,EV_ADD_DIR:Qo,EV_UNLINK:_z,EV_ERROR:Sp0,STR_DATA:Tp0,STR_END:Pp0,FSEVENT_CREATED:Ap0,FSEVENT_MODIFIED:Ep0,FSEVENT_DELETED:vp0,FSEVENT_MOVED:kp0,FSEVENT_UNKNOWN:fp0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:bp0,FSEVENT_TYPE_FILE:mp0,FSEVENT_TYPE_DIRECTORY:cq,FSEVENT_TYPE_SYMLINK:Wo,ROOT_GLOBSTAR:qo,DIR_SUFFIX:yp0,DOT_SLASH:$o,FUNCTION_TYPE:OD,EMPTY_FN:cp0,IDENTITY_FN:pp0}=wz(),up0=(Z)=>isNaN(Z)?{}:{depth:Z},SD=PD(TD.stat),gp0=PD(TD.lstat),Yo=PD(TD.realpath),hp0={stat:SD,lstat:gp0},dZ=new Map,dp0=10,ip0=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),lp0=(Z,J)=>{return{stop:kJ.watch(Z,J)}};function op0(Z,J,X,Q){let q=w8.extname(J)?w8.dirname(J):J,$=w8.dirname(q),Y=dZ.get(q);if(np0($))q=$;let K=w8.resolve(Z),W=K!==J,V=(G,H,M)=>{if(W)G=G.replace(J,K);if(G===K||!G.indexOf(K+w8.sep))X(G,H,M)},U=!1;for(let G of dZ.keys())if(J.indexOf(w8.resolve(G)+w8.sep)===0){q=G,Y=dZ.get(q),U=!0;break}if(Y||U)Y.listeners.add(V);else Y={listeners:new Set([V]),rawEmitter:Q,watcher:lp0(q,(G,H)=>{if(!Y.listeners.size)return;if(H&bp0)return;let M=kJ.getInfo(G,H);Y.listeners.forEach((F)=>{F(G,H,M)}),Y.rawEmitter(M.event,G,M)})},dZ.set(q,Y);return()=>{let G=Y.listeners;if(G.delete(V),!G.size){if(dZ.delete(q),Y.watcher)return Y.watcher.stop().then(()=>{Y.rawEmitter=Y.watcher=void 0,Object.freeze(Y)})}}}var np0=(Z)=>{let J=0;for(let X of dZ.keys())if(X.indexOf(Z)===0){if(J++,J>=dp0)return!0}return!1},sp0=()=>kJ&&dZ.size<128,_D=(Z,J)=>{let X=0;while(!Z.indexOf(J)&&(Z=w8.dirname(Z))!==J)X++;return X},Ko=(Z,J)=>Z.type===cq&&J.isDirectory()||Z.type===Wo&&J.isSymbolicLink()||Z.type===mp0&&J.isFile();class zo{constructor(Z){this.fsw=Z}checkIgnored(Z,J){let X=this.fsw._ignoredPaths;if(this.fsw._isIgnored(Z,J)){if(X.add(Z),J&&J.isDirectory())X.add(Z+qo);return!0}X.delete(Z),X.delete(Z+qo)}addOrChange(Z,J,X,Q,q,$,Y,K){let W=q.has($)?_p0:ID;this.handleEvent(W,Z,J,X,Q,q,$,Y,K)}async checkExists(Z,J,X,Q,q,$,Y,K){try{let W=await SD(Z);if(this.fsw.closed)return;if(Ko(Y,W))this.addOrChange(Z,J,X,Q,q,$,Y,K);else this.handleEvent(_z,Z,J,X,Q,q,$,Y,K)}catch(W){if(W.code==="EACCES")this.addOrChange(Z,J,X,Q,q,$,Y,K);else this.handleEvent(_z,Z,J,X,Q,q,$,Y,K)}}handleEvent(Z,J,X,Q,q,$,Y,K,W){if(this.fsw.closed||this.checkIgnored(J))return;if(Z===_z){let V=K.type===cq;if(V||$.has(Y))this.fsw._remove(q,Y,V)}else{if(Z===ID){if(K.type===cq)this.fsw._getWatchedDir(J);if(K.type===Wo&&W.followSymlinks){let U=W.depth===void 0?void 0:_D(X,Q)+1;return this._addToFsEvents(J,!1,!0,U)}this.fsw._getWatchedDir(q).add(Y)}let V=K.type===cq?Z+yp0:Z;if(this.fsw._emit(V,J),V===Qo)this._addToFsEvents(J,!1,!0)}}_watchWithFsEvents(Z,J,X,Q){if(this.fsw.closed||this.fsw._isIgnored(Z))return;let q=this.fsw.options,Y=op0(Z,J,async(K,W,V)=>{if(this.fsw.closed)return;if(q.depth!==void 0&&_D(K,J)>q.depth)return;let U=X(w8.join(Z,w8.relative(Z,K)));if(Q&&!Q(U))return;let G=w8.dirname(U),H=w8.basename(U),M=this.fsw._getWatchedDir(V.type===cq?U:G);if(ip0.has(W)||V.event===fp0)if(typeof q.ignored===OD){let F;try{F=await SD(U)}catch(D){}if(this.fsw.closed)return;if(this.checkIgnored(U,F))return;if(Ko(V,F))this.addOrChange(U,K,J,G,M,H,V,q);else this.handleEvent(_z,U,K,J,G,M,H,V,q)}else this.checkExists(U,K,J,G,M,H,V,q);else switch(V.event){case Ap0:case Ep0:return this.addOrChange(U,K,J,G,M,H,V,q);case vp0:case kp0:return this.checkExists(U,K,J,G,M,H,V,q)}},this.fsw._emitRaw);return this.fsw._emitReady(),Y}async _handleFsEventsSymlink(Z,J,X,Q){if(this.fsw.closed||this.fsw._symlinkPaths.has(J))return;this.fsw._symlinkPaths.set(J,!0),this.fsw._incrReadyCount();try{let q=await Yo(Z);if(this.fsw.closed)return;if(this.fsw._isIgnored(q))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(q||Z,($)=>{let Y=Z;if(q&&q!==$o)Y=$.replace(q,Z);else if($!==$o)Y=w8.join(Z,$);return X(Y)},!1,Q)}catch(q){if(this.fsw._handleError(q))return this.fsw._emitReady()}}emitAdd(Z,J,X,Q,q){let $=X(Z),Y=J.isDirectory(),K=this.fsw._getWatchedDir(w8.dirname($)),W=w8.basename($);if(Y)this.fsw._getWatchedDir($);if(K.has(W))return;if(K.add(W),!Q.ignoreInitial||q===!0)this.fsw._emit(Y?Qo:ID,$,J)}initWatch(Z,J,X,Q){if(this.fsw.closed)return;let q=this._watchWithFsEvents(X.watchPath,w8.resolve(Z||X.watchPath),Q,X.globFilter);this.fsw._addPathCloser(J,q)}async _addToFsEvents(Z,J,X,Q){if(this.fsw.closed)return;let q=this.fsw.options,$=typeof J===OD?J:pp0,Y=this.fsw._getWatchHelpers(Z);try{let K=await hp0[Y.statMethod](Y.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(Y.watchPath,K))throw null;if(K.isDirectory()){if(!Y.globFilter)this.emitAdd($(Z),K,$,q,X);if(Q&&Q>q.depth)return;this.fsw._readdirp(Y.watchPath,{fileFilter:(W)=>Y.filterPath(W),directoryFilter:(W)=>Y.filterDir(W),...up0(q.depth-(Q||0))}).on(Tp0,(W)=>{if(this.fsw.closed)return;if(W.stats.isDirectory()&&!Y.filterPath(W))return;let V=w8.join(Y.watchPath,W.path),{fullPath:U}=W;if(Y.followSymlinks&&W.stats.isSymbolicLink()){let G=q.depth===void 0?void 0:_D(V,w8.resolve(Y.watchPath))+1;this._handleFsEventsSymlink(V,U,$,G)}else this.emitAdd(V,W.stats,$,q,X)}).on(Sp0,cp0).on(Pp0,()=>{this.fsw._emitReady()})}else this.emitAdd(Y.watchPath,K,$,q,X),this.fsw._emitReady()}catch(K){if(!K||this.fsw._handleError(K))this.fsw._emitReady(),this.fsw._emitReady()}if(q.persistent&&X!==!0)if(typeof J===OD)this.initWatch(void 0,Z,Y,$);else{let K;try{K=await Yo(Y.watchPath)}catch(W){}this.initWatch(K,Z,Y,$)}}}AD.exports=zo;AD.exports.canUse=sp0});var Co=a((_u0)=>{var{EventEmitter:ap0}=_0("events"),gD=_0("fs"),Z2=_0("path"),{promisify:Fo}=_0("util"),rp0=bl(),mD=hl().default,tp0=TG(),ED=_G(),ep0=bG(),Zu0=ND(),Ju0=Xo(),Uo=Vo(),{EV_ALL:vD,EV_READY:Xu0,EV_ADD:Sz,EV_CHANGE:pq,EV_UNLINK:xo,EV_ADD_DIR:Qu0,EV_UNLINK_DIR:qu0,EV_RAW:$u0,EV_ERROR:kD,STR_CLOSE:Yu0,STR_END:Ku0,BACK_SLASH_RE:Wu0,DOUBLE_SLASH_RE:Go,SLASH_OR_BACK_SLASH_RE:zu0,DOT_RE:Vu0,REPLACER_RE:Uu0,SLASH:fD,SLASH_SLASH:xu0,BRACE_START:Gu0,BANG:yD,ONE_DOT:No,TWO_DOTS:Hu0,GLOBSTAR:Bu0,SLASH_GLOBSTAR:bD,ANYMATCH_OPTS:cD,STRING_TYPE:hD,FUNCTION_TYPE:Mu0,EMPTY_STR:pD,EMPTY_FN:Fu0,isWindows:Nu0,isMacos:Du0,isIBMi:ju0}=wz(),Lu0=Fo(gD.stat),wu0=Fo(gD.readdir),uD=(Z=[])=>Array.isArray(Z)?Z:[Z],Do=(Z,J=[])=>{return Z.forEach((X)=>{if(Array.isArray(X))Do(X,J);else J.push(X)}),J},Ho=(Z)=>{let J=Do(uD(Z));if(!J.every((X)=>typeof X===hD))throw new TypeError(`Non-string provided as watch path: ${J}`);return J.map(jo)},Bo=(Z)=>{let J=Z.replace(Wu0,fD),X=!1;if(J.startsWith(xu0))X=!0;while(J.match(Go))J=J.replace(Go,fD);if(X)J=fD+J;return J},jo=(Z)=>Bo(Z2.normalize(Bo(Z))),Mo=(Z=pD)=>(J)=>{if(typeof J!==hD)return J;return jo(Z2.isAbsolute(J)?J:Z2.join(Z,J))},Cu0=(Z,J)=>{if(Z2.isAbsolute(Z))return Z;if(Z.startsWith(yD))return yD+Z2.join(J,Z.slice(1));return Z2.join(J,Z)},U7=(Z,J)=>Z[J]===void 0;class Lo{constructor(Z,J){this.path=Z,this._removeWatcher=J,this.items=new Set}add(Z){let{items:J}=this;if(!J)return;if(Z!==No&&Z!==Hu0)J.add(Z)}async remove(Z){let{items:J}=this;if(!J)return;if(J.delete(Z),J.size>0)return;let X=this.path;try{await wu0(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(Z2.dirname(X),Z2.basename(X))}}has(Z){let{items:J}=this;if(!J)return;return J.has(Z)}getChildren(){let{items:Z}=this;if(!Z)return;return[...Z.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}var Ru0="stat",Iu0="lstat";class wo{constructor(Z,J,X,Q){if(this.fsw=Q,this.path=Z=Z.replace(Uu0,pD),this.watchPath=J,this.fullWatchPath=Z2.resolve(J),this.hasGlob=J!==Z,Z===pD)this.hasGlob=!1;this.globSymlink=this.hasGlob&&X?void 0:!1,this.globFilter=this.hasGlob?mD(Z,void 0,cD):!1,this.dirParts=this.getDirParts(Z),this.dirParts.forEach((q)=>{if(q.length>1)q.pop()}),this.followSymlinks=X,this.statMethod=X?Ru0:Iu0}checkGlobSymlink(Z){if(this.globSymlink===void 0)this.globSymlink=Z.fullParentDir===this.fullWatchPath?!1:{realPath:Z.fullParentDir,linkPath:this.fullWatchPath};if(this.globSymlink)return Z.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath);return Z.fullPath}entryPath(Z){return Z2.join(this.watchPath,Z2.relative(this.watchPath,this.checkGlobSymlink(Z)))}filterPath(Z){let{stats:J}=Z;if(J&&J.isSymbolicLink())return this.filterDir(Z);let X=this.entryPath(Z);return(this.hasGlob&&typeof this.globFilter===Mu0?this.globFilter(X):!0)&&this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}getDirParts(Z){if(!this.hasGlob)return[];let J=[];return(Z.includes(Gu0)?ep0.expand(Z):[Z]).forEach((Q)=>{J.push(Z2.relative(this.watchPath,Q).split(zu0))}),J}filterDir(Z){if(this.hasGlob){let J=this.getDirParts(this.checkGlobSymlink(Z)),X=!1;this.unmatchedGlob=!this.dirParts.some((Q)=>{return Q.every((q,$)=>{if(q===Bu0)X=!0;return X||!J[0][$]||mD(q,J[0][$],cD)})})}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(Z),Z.stats)}}class dD extends ap0{constructor(Z){super();let J={};if(Z)Object.assign(J,Z);if(this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,U7(J,"persistent"))J.persistent=!0;if(U7(J,"ignoreInitial"))J.ignoreInitial=!1;if(U7(J,"ignorePermissionErrors"))J.ignorePermissionErrors=!1;if(U7(J,"interval"))J.interval=100;if(U7(J,"binaryInterval"))J.binaryInterval=300;if(U7(J,"disableGlobbing"))J.disableGlobbing=!1;if(J.enableBinaryInterval=J.binaryInterval!==J.interval,U7(J,"useFsEvents"))J.useFsEvents=!J.usePolling;if(!Uo.canUse())J.useFsEvents=!1;if(U7(J,"usePolling")&&!J.useFsEvents)J.usePolling=Du0;if(ju0)J.usePolling=!0;let Q=process.env.CHOKIDAR_USEPOLLING;if(Q!==void 0){let K=Q.toLowerCase();if(K==="false"||K==="0")J.usePolling=!1;else if(K==="true"||K==="1")J.usePolling=!0;else J.usePolling=!!K}let q=process.env.CHOKIDAR_INTERVAL;if(q)J.interval=Number.parseInt(q,10);if(U7(J,"atomic"))J.atomic=!J.usePolling&&!J.useFsEvents;if(J.atomic)this._pendingUnlinks=new Map;if(U7(J,"followSymlinks"))J.followSymlinks=!0;if(U7(J,"awaitWriteFinish"))J.awaitWriteFinish=!1;if(J.awaitWriteFinish===!0)J.awaitWriteFinish={};let $=J.awaitWriteFinish;if($){if(!$.stabilityThreshold)$.stabilityThreshold=2000;if(!$.pollInterval)$.pollInterval=100;this._pendingWrites=new Map}if(J.ignored)J.ignored=uD(J.ignored);let Y=0;if(this._emitReady=()=>{if(Y++,Y>=this._readyCount)this._emitReady=Fu0,this._readyEmitted=!0,process.nextTick(()=>this.emit(Xu0))},this._emitRaw=(...K)=>this.emit($u0,...K),this._readyEmitted=!1,this.options=J,J.useFsEvents)this._fsEventsHandler=new Uo(this);else this._nodeFsHandler=new Ju0(this);Object.freeze(J)}add(Z,J,X){let{cwd:Q,disableGlobbing:q}=this.options;this.closed=!1;let $=Ho(Z);if(Q)$=$.map((Y)=>{let K=Cu0(Y,Q);if(q||!ED(Y))return K;return Zu0(K)});if($=$.filter((Y)=>{if(Y.startsWith(yD))return this._ignoredPaths.add(Y.slice(1)),!1;return this._ignoredPaths.delete(Y),this._ignoredPaths.delete(Y+bD),this._userIgnored=void 0,!0}),this.options.useFsEvents&&this._fsEventsHandler){if(!this._readyCount)this._readyCount=$.length;if(this.options.persistent)this._readyCount+=$.length;$.forEach((Y)=>this._fsEventsHandler._addToFsEvents(Y))}else{if(!this._readyCount)this._readyCount=0;this._readyCount+=$.length,Promise.all($.map(async(Y)=>{let K=await this._nodeFsHandler._addToNodeFs(Y,!X,0,0,J);if(K)this._emitReady();return K})).then((Y)=>{if(this.closed)return;Y.filter((K)=>K).forEach((K)=>{this.add(Z2.dirname(K),Z2.basename(J||K))})})}return this}unwatch(Z){if(this.closed)return this;let J=Ho(Z),{cwd:X}=this.options;return J.forEach((Q)=>{if(!Z2.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=Z2.join(X,Q);Q=Z2.resolve(Q)}if(this._closePath(Q),this._ignoredPaths.add(Q),this._watched.has(Q))this._ignoredPaths.add(Q+bD);this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let Z=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)Z.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach((J)=>{this[`_${J}`].clear()}),this._closePromise=Z.length?Promise.all(Z).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let Z={};return this._watched.forEach((J,X)=>{let Q=this.options.cwd?Z2.relative(this.options.cwd,X):X;Z[Q||No]=J.getChildren().sort()}),Z}emitWithAll(Z,J){if(this.emit(...J),Z!==kD)this.emit(vD,...J)}async _emit(Z,J,X,Q,q){if(this.closed)return;let $=this.options;if(Nu0)J=Z2.normalize(J);if($.cwd)J=Z2.relative($.cwd,J);let Y=[Z,J];if(q!==void 0)Y.push(X,Q,q);else if(Q!==void 0)Y.push(X,Q);else if(X!==void 0)Y.push(X);let K=$.awaitWriteFinish,W;if(K&&(W=this._pendingWrites.get(J)))return W.lastChange=new Date,this;if($.atomic){if(Z===xo)return this._pendingUnlinks.set(J,Y),setTimeout(()=>{this._pendingUnlinks.forEach((V,U)=>{this.emit(...V),this.emit(vD,...V),this._pendingUnlinks.delete(U)})},typeof $.atomic==="number"?$.atomic:100),this;if(Z===Sz&&this._pendingUnlinks.has(J))Z=Y[0]=pq,this._pendingUnlinks.delete(J)}if(K&&(Z===Sz||Z===pq)&&this._readyEmitted){let V=(U,G)=>{if(U)Z=Y[0]=kD,Y[1]=U,this.emitWithAll(Z,Y);else if(G){if(Y.length>2)Y[2]=G;else Y.push(G);this.emitWithAll(Z,Y)}};return this._awaitWriteFinish(J,K.stabilityThreshold,Z,V),this}if(Z===pq){if(!this._throttle(pq,J,50))return this}if($.alwaysStat&&X===void 0&&(Z===Sz||Z===Qu0||Z===pq)){let V=$.cwd?Z2.join($.cwd,J):J,U;try{U=await Lu0(V)}catch(G){}if(!U||this.closed)return;Y.push(U)}return this.emitWithAll(Z,Y),this}_handleError(Z){let J=Z&&Z.code;if(Z&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(kD,Z);return Z||this.closed}_throttle(Z,J,X){if(!this._throttled.has(Z))this._throttled.set(Z,new Map);let Q=this._throttled.get(Z),q=Q.get(J);if(q)return q.count++,!1;let $,Y=()=>{let W=Q.get(J),V=W?W.count:0;if(Q.delete(J),clearTimeout($),W)clearTimeout(W.timeoutObject);return V};$=setTimeout(Y,X);let K={timeoutObject:$,clear:Y,count:0};return Q.set(J,K),K}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(Z,J,X,Q){let q,$=Z;if(this.options.cwd&&!Z2.isAbsolute(Z))$=Z2.join(this.options.cwd,Z);let Y=new Date,K=(W)=>{gD.stat($,(V,U)=>{if(V||!this._pendingWrites.has(Z)){if(V&&V.code!=="ENOENT")Q(V);return}let G=Number(new Date);if(W&&U.size!==W.size)this._pendingWrites.get(Z).lastChange=G;let H=this._pendingWrites.get(Z);if(G-H.lastChange>=J)this._pendingWrites.delete(Z),Q(void 0,U);else q=setTimeout(K,this.options.awaitWriteFinish.pollInterval,U)})};if(!this._pendingWrites.has(Z))this._pendingWrites.set(Z,{lastChange:Y,cancelWait:()=>{return this._pendingWrites.delete(Z),clearTimeout(q),X}}),q=setTimeout(K,this.options.awaitWriteFinish.pollInterval)}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(Z,J){if(this.options.atomic&&Vu0.test(Z))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Q=this.options.ignored,q=Q&&Q.map(Mo(X)),$=uD(q).filter((K)=>typeof K===hD&&!ED(K)).map((K)=>K+bD),Y=this._getGlobIgnored().map(Mo(X)).concat(q,$);this._userIgnored=mD(Y,void 0,cD)}return this._userIgnored([Z,J])}_isntIgnored(Z,J){return!this._isIgnored(Z,J)}_getWatchHelpers(Z,J){let X=J||this.options.disableGlobbing||!ED(Z)?Z:tp0(Z),Q=this.options.followSymlinks;return new wo(Z,X,Q,this)}_getWatchedDir(Z){if(!this._boundRemove)this._boundRemove=this._remove.bind(this);let J=Z2.resolve(Z);if(!this._watched.has(J))this._watched.set(J,new Lo(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(Z){if(this.options.ignorePermissionErrors)return!0;let X=(Z&&Number.parseInt(Z.mode,10))&511,Q=Number.parseInt(X.toString(8)[0],10);return Boolean(4&Q)}_remove(Z,J,X){let Q=Z2.join(Z,J),q=Z2.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(q),!this._throttle("remove",Q,100))return;if(!X&&!this.options.useFsEvents&&this._watched.size===1)this.add(Z,J,!0);this._getWatchedDir(Q).getChildren().forEach((G)=>this._remove(Q,G));let K=this._getWatchedDir(Z),W=K.has(J);if(K.remove(J),this._symlinkPaths.has(q))this._symlinkPaths.delete(q);let V=Q;if(this.options.cwd)V=Z2.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(V)){if(this._pendingWrites.get(V).cancelWait()===Sz)return}this._watched.delete(Q),this._watched.delete(q);let U=X?qu0:xo;if(W&&!this._isIgnored(Q))this._emit(U,Q);if(!this.options.useFsEvents)this._closePath(Q)}_closePath(Z){this._closeFile(Z);let J=Z2.dirname(Z);this._getWatchedDir(J).remove(Z2.basename(Z))}_closeFile(Z){let J=this._closers.get(Z);if(!J)return;J.forEach((X)=>X()),this._closers.delete(Z)}_addPathCloser(Z,J){if(!J)return;let X=this._closers.get(Z);if(!X)X=[],this._closers.set(Z,X);X.push(J)}_readdirp(Z,J){if(this.closed)return;let X={type:vD,alwaysStat:!0,lstat:!0,...J},Q=rp0(Z,X);return this._streams.add(Q),Q.once(Yu0,()=>{Q=void 0}),Q.once(Ku0,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}}_u0.FSWatcher=dD;var Ou0=(Z,J)=>{let X=new dD(J);return X.add(Z),X};_u0.watch=Ou0});var fo=a((p11,Az)=>{function Oo(Z){return Array.isArray(Z)?Z:[Z]}var Pu0=void 0,lD="",Ro=" ",iD="\\",Au0=/^\s+$/,Eu0=/(?:[^\\]|^)\\$/,vu0=/^\\!/,ku0=/^\\#/,fu0=/\r?\n/g,bu0=/^\.{0,2}\/|^\.{1,2}$/,mu0=/\/$/,fJ="/",_o="node-ignore";if(typeof Symbol!=="undefined")_o=Symbol.for("node-ignore");var So=_o,bJ=(Z,J,X)=>{return Object.defineProperty(Z,J,{value:X}),X},yu0=/([0-z])-([0-z])/g,To=()=>!1,cu0=(Z)=>Z.replace(yu0,(J,X,Q)=>X.charCodeAt(0)<=Q.charCodeAt(0)?J:lD),pu0=(Z)=>{let{length:J}=Z;return Z.slice(0,J-J%2)},uu0=[[/^\uFEFF/,()=>lD],[/((?:\\\\)*?)(\\?\s+)$/,(Z,J,X)=>J+(X.indexOf("\\")===0?Ro:lD)],[/(\\+?)\s/g,(Z,J)=>{let{length:X}=J;return J.slice(0,X-X%2)+Ro}],[/[\\$.|*+(){^]/g,(Z)=>`\\${Z}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function Z(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Z,J,X)=>J+6<X.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(Z,J,X)=>{let Q=X.replace(/\\\*/g,"[^\\/]*");return J+Q}],[/\\\\\\(?=[$.|*+(){^])/g,()=>iD],[/\\\\/g,()=>iD],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Z,J,X,Q,q)=>J===iD?`\\[${X}${pu0(Q)}${q}`:q==="]"?Q.length%2===0?`[${cu0(X)}${Q}]`:"[]":"[]"],[/(?:[^*])$/,(Z)=>/\/$/.test(Z)?`${Z}$`:`${Z}(?=$|\\/$)`]],gu0=/(^|\\\/)?\\\*$/,uq="regex",Tz="checkRegex",Io="_",hu0={[uq](Z,J){return`${J?`${J}[^/]+`:"[^/]*"}(?=$|\\/$)`},[Tz](Z,J){return`${J?`${J}[^/]*`:"[^/]*"}(?=$|\\/$)`}},du0=(Z)=>uu0.reduce((J,[X,Q])=>J.replace(X,Q.bind(Z)),Z),Pz=(Z)=>typeof Z==="string",iu0=(Z)=>Z&&Pz(Z)&&!Au0.test(Z)&&!Eu0.test(Z)&&Z.indexOf("#")!==0,lu0=(Z)=>Z.split(fu0).filter(Boolean);class Po{constructor(Z,J,X,Q,q,$){this.pattern=Z,this.mark=J,this.negative=q,bJ(this,"body",X),bJ(this,"ignoreCase",Q),bJ(this,"regexPrefix",$)}get regex(){let Z=Io+uq;if(this[Z])return this[Z];return this._make(uq,Z)}get checkRegex(){let Z=Io+Tz;if(this[Z])return this[Z];return this._make(Tz,Z)}_make(Z,J){let X=this.regexPrefix.replace(gu0,hu0[Z]),Q=this.ignoreCase?new RegExp(X,"i"):new RegExp(X);return bJ(this,J,Q)}}var ou0=({pattern:Z,mark:J},X)=>{let Q=!1,q=Z;if(q.indexOf("!")===0)Q=!0,q=q.substr(1);q=q.replace(vu0,"!").replace(ku0,"#");let $=du0(q);return new Po(Z,J,q,X,Q,$)};class Ao{constructor(Z){this._ignoreCase=Z,this._rules=[]}_add(Z){if(Z&&Z[So]){this._rules=this._rules.concat(Z._rules._rules),this._added=!0;return}if(Pz(Z))Z={pattern:Z};if(iu0(Z.pattern)){let J=ou0(Z,this._ignoreCase);this._added=!0,this._rules.push(J)}}add(Z){return this._added=!1,Oo(Pz(Z)?lu0(Z):Z).forEach(this._add,this),this._added}test(Z,J,X){let Q=!1,q=!1,$;this._rules.forEach((K)=>{let{negative:W}=K;if(q===W&&Q!==q||W&&!Q&&!q&&!J)return;if(!K[X].test(Z))return;Q=!W,q=W,$=W?Pu0:K});let Y={ignored:Q,unignored:q};if($)Y.rule=$;return Y}}var nu0=(Z,J)=>{throw new J(Z)},S5=(Z,J,X)=>{if(!Pz(Z))return X(`path must be a string, but got \`${J}\``,TypeError);if(!Z)return X("path must not be empty",TypeError);if(S5.isNotRelative(Z))return X(`path should be a \`path.relative()\`d string, but got "${J}"`,RangeError);return!0},Eo=(Z)=>bu0.test(Z);S5.isNotRelative=Eo;S5.convert=(Z)=>Z;class vo{constructor({ignorecase:Z=!0,ignoreCase:J=Z,allowRelativePaths:X=!1}={}){bJ(this,So,!0),this._rules=new Ao(J),this._strictPathCheck=!X,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(Z){if(this._rules.add(Z))this._initCache();return this}addPattern(Z){return this.add(Z)}_test(Z,J,X,Q){let q=Z&&S5.convert(Z);return S5(q,Z,this._strictPathCheck?nu0:To),this._t(q,J,X,Q)}checkIgnore(Z){if(!mu0.test(Z))return this.test(Z);let J=Z.split(fJ).filter(Boolean);if(J.pop(),J.length){let X=this._t(J.join(fJ)+fJ,this._testCache,!0,J);if(X.ignored)return X}return this._rules.test(Z,!1,Tz)}_t(Z,J,X,Q){if(Z in J)return J[Z];if(!Q)Q=Z.split(fJ).filter(Boolean);if(Q.pop(),!Q.length)return J[Z]=this._rules.test(Z,X,uq);let q=this._t(Q.join(fJ)+fJ,J,X,Q);return J[Z]=q.ignored?q:this._rules.test(Z,X,uq)}ignores(Z){return this._test(Z,this._ignoreCache,!1).ignored}createFilter(){return(Z)=>!this.ignores(Z)}filter(Z){return Oo(Z).filter(this.createFilter())}test(Z){return this._test(Z,this._testCache,!0)}}var oD=(Z)=>new vo(Z),su0=(Z)=>S5(Z&&S5.convert(Z),Z,To),ko=()=>{let Z=(X)=>/^\\\\\?\\/.test(X)||/["<>|\u0000-\u001F]+/u.test(X)?X:X.replace(/\\/g,"/");S5.convert=Z;let J=/^[a-z]:\//i;S5.isNotRelative=(X)=>J.test(X)||Eo(X)};if(typeof process!=="undefined"&&process.platform==="win32")ko();Az.exports=oD;oD.default=oD;Az.exports.isPathValid=su0;bJ(Az.exports,Symbol.for("setupWindows"),ko)});var po=a((X4)=>{var eu0=X4&&X4.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(X4,"__esModule",{value:!0});var Zg0=_0("fs"),Jg0=eu0(bY()),mJ=Jg0.default("@kwsites/file-exists");function Xg0(Z,J,X){mJ("checking %s",Z);try{let Q=Zg0.statSync(Z);if(Q.isFile()&&J)return mJ("[OK] path represents a file"),!0;if(Q.isDirectory()&&X)return mJ("[OK] path represents a directory"),!0;return mJ("[FAIL] path represents something other than a file or directory"),!1}catch(Q){if(Q.code==="ENOENT")return mJ("[FAIL] path is not accessible: %o",Q),!1;throw mJ("[FATAL] %o",Q),Q}}function Qg0(Z,J=X4.READABLE){return Xg0(Z,(J&X4.FILE)>0,(J&X4.FOLDER)>0)}X4.exists=Qg0;X4.FILE=1;X4.FOLDER=2;X4.READABLE=X4.FILE+X4.FOLDER});var uo=a((aD)=>{function qg0(Z){for(var J in Z)if(!aD.hasOwnProperty(J))aD[J]=Z[J]}Object.defineProperty(aD,"__esModule",{value:!0});qg0(po())});var eD=a((go)=>{Object.defineProperty(go,"__esModule",{value:!0});go.createDeferred=go.deferred=void 0;function tD(){let Z,J,X="pending";return{promise:new Promise((q,$)=>{Z=q,J=$}),done(q){if(X==="pending")X="resolved",Z(q)},fail(q){if(X==="pending")X="rejected",J(q)},get fulfilled(){return X!=="pending"},get status(){return X}}}go.deferred=tD;go.createDeferred=tD;go.default=tD});var DC="0.9.7";var yC=U4(mC(),1),{program:Wl0,createCommand:zl0,createArgument:Vl0,createOption:Ul0,CommanderError:xl0,InvalidArgumentError:u9,InvalidOptionArgumentError:Gl0,Command:H6,Argument:Hl0,Option:Bl0,Help:Ml0}=yC.default;import LT from"fs";var OU=(Z,J,X)=>{let Q=Z instanceof RegExp?cC(Z,X):Z,q=J instanceof RegExp?cC(J,X):J,$=Q!==null&&q!=null&&r60(Q,q,X);return $&&{start:$[0],end:$[1],pre:X.slice(0,$[0]),body:X.slice($[0]+Q.length,$[1]),post:X.slice($[1]+q.length)}},cC=(Z,J)=>{let X=J.match(Z);return X?X[0]:null},r60=(Z,J,X)=>{let Q,q,$,Y=void 0,K,W=X.indexOf(Z),V=X.indexOf(J,W+1),U=W;if(W>=0&&V>0){if(Z===J)return[W,V];Q=[],$=X.length;while(U>=0&&!K){if(U===W)Q.push(U),W=X.indexOf(Z,U+1);else if(Q.length===1){let G=Q.pop();if(G!==void 0)K=[G,V]}else{if(q=Q.pop(),q!==void 0&&q<$)$=q,Y=V;V=X.indexOf(J,U+1)}U=W<V&&W>=0?W:V}if(Q.length&&Y!==void 0)K=[$,Y]}return K};var pC="\x00SLASH"+Math.random()+"\x00",uC="\x00OPEN"+Math.random()+"\x00",SU="\x00CLOSE"+Math.random()+"\x00",gC="\x00COMMA"+Math.random()+"\x00",hC="\x00PERIOD"+Math.random()+"\x00",t60=new RegExp(pC,"g"),e60=new RegExp(uC,"g"),Z40=new RegExp(SU,"g"),J40=new RegExp(gC,"g"),X40=new RegExp(hC,"g"),Q40=/\\\\/g,q40=/\\{/g,$40=/\\}/g,Y40=/\\,/g,K40=/\\\./g,W40=1e5;function _U(Z){return!isNaN(Z)?parseInt(Z,10):Z.charCodeAt(0)}function z40(Z){return Z.replace(Q40,pC).replace(q40,uC).replace($40,SU).replace(Y40,gC).replace(K40,hC)}function V40(Z){return Z.replace(t60,"\\").replace(e60,"{").replace(Z40,"}").replace(J40,",").replace(X40,".")}function dC(Z){if(!Z)return[""];let J=[],X=OU("{","}",Z);if(!X)return Z.split(",");let{pre:Q,body:q,post:$}=X,Y=Q.split(",");Y[Y.length-1]+="{"+q+"}";let K=dC($);if($.length)Y[Y.length-1]+=K.shift(),Y.push.apply(Y,K);return J.push.apply(J,Y),J}function iC(Z,J={}){if(!Z)return[];let{max:X=W40}=J;if(Z.slice(0,2)==="{}")Z="\\{\\}"+Z.slice(2);return xX(z40(Z),X,!0).map(V40)}function U40(Z){return"{"+Z+"}"}function x40(Z){return/^-?0\d/.test(Z)}function G40(Z,J){return Z<=J}function H40(Z,J){return Z>=J}function xX(Z,J,X){let Q=[],q=OU("{","}",Z);if(!q)return[Z];let $=q.pre,Y=q.post.length?xX(q.post,J,!1):[""];if(/\$$/.test(q.pre))for(let K=0;K<Y.length&&K<J;K++){let W=$+"{"+q.body+"}"+Y[K];Q.push(W)}else{let K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(q.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(q.body),V=K||W,U=q.body.indexOf(",")>=0;if(!V&&!U){if(q.post.match(/,(?!,).*\}/))return Z=q.pre+"{"+q.body+SU+q.post,xX(Z,J,!0);return[Z]}let G;if(V)G=q.body.split(/\.\./);else if(G=dC(q.body),G.length===1&&G[0]!==void 0){if(G=xX(G[0],J,!1).map(U40),G.length===1)return Y.map((M)=>q.pre+G[0]+M)}let H;if(V&&G[0]!==void 0&&G[1]!==void 0){let M=_U(G[0]),F=_U(G[1]),D=Math.max(G[0].length,G[1].length),C=G.length===3&&G[2]!==void 0?Math.max(Math.abs(_U(G[2])),1):1,L=G40;if(F<M)C*=-1,L=H40;let v=G.some(x40);H=[];for(let S=M;L(S,F);S+=C){let p;if(W){if(p=String.fromCharCode(S),p==="\\")p=""}else if(p=String(S),v){let Z0=D-p.length;if(Z0>0){let X0=new Array(Z0+1).join("0");if(S<0)p="-"+X0+p.slice(1);else p=X0+p}}H.push(p)}}else{H=[];for(let M=0;M<G.length;M++)H.push.apply(H,xX(G[M],J,!1))}for(let M=0;M<H.length;M++)for(let F=0;F<Y.length&&Q.length<J;F++){let D=$+H[M]+Y[F];if(!X||V||D)Q.push(D)}}return Q}var GX=(Z)=>{if(typeof Z!=="string")throw new TypeError("invalid pattern");if(Z.length>65536)throw new TypeError("pattern is too long")};var B40={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},HX=(Z)=>Z.replace(/[[\]\\-]/g,"\\$&"),M40=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lC=(Z)=>Z.join(""),oC=(Z,J)=>{let X=J;if(Z.charAt(X)!=="[")throw new Error("not in a brace expression");let Q=[],q=[],$=X+1,Y=!1,K=!1,W=!1,V=!1,U=X,G="";Z:while($<Z.length){let D=Z.charAt($);if((D==="!"||D==="^")&&$===X+1){V=!0,$++;continue}if(D==="]"&&Y&&!W){U=$+1;break}if(Y=!0,D==="\\"){if(!W){W=!0,$++;continue}}if(D==="["&&!W){for(let[C,[L,O,v]]of Object.entries(B40))if(Z.startsWith(C,$)){if(G)return["$.",!1,Z.length-X,!0];if($+=C.length,v)q.push(L);else Q.push(L);K=K||O;continue Z}}if(W=!1,G){if(D>G)Q.push(HX(G)+"-"+HX(D));else if(D===G)Q.push(HX(D));G="",$++;continue}if(Z.startsWith("-]",$+1)){Q.push(HX(D+"-")),$+=2;continue}if(Z.startsWith("-",$+1)){G=D,$+=2;continue}Q.push(HX(D)),$++}if(U<$)return["",!1,0,!1];if(!Q.length&&!q.length)return["$.",!1,Z.length-X,!0];if(q.length===0&&Q.length===1&&/^\\?.$/.test(Q[0])&&!V){let D=Q[0].length===2?Q[0].slice(-1):Q[0];return[M40(D),!1,U-X,!1]}let H="["+(V?"^":"")+lC(Q)+"]",M="["+(V?"":"^")+lC(q)+"]";return[Q.length&&q.length?"("+H+"|"+M+")":Q.length?H:M,K,U-X,!0]};var d4=(Z,{windowsPathsNoEscape:J=!1,magicalBraces:X=!0}={})=>{if(X)return J?Z.replace(/\[([^/\\])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1");return J?Z.replace(/\[([^/\\{}])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1")};var B6,F40=new Set(["!","?","+","*","@"]),TU=(Z)=>F40.has(Z),nC=(Z)=>TU(Z.type),N40=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),D40=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),j40=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),sC=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),L40="(?!(?:^|/)\\.\\.?(?:$|/))",s$="(?!\\.)",w40=new Set(["[","."]),C40=new Set(["..","."]),R40=new Set("().*{}+?[]^$\\!"),I40=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),PU="[^/]",aC=PU+"*?",rC=PU+"+?",O40=0;class G3{type;#Z;#Q;#q=!1;#J=[];#Y;#C;#N;#U=!1;#K;#x;#V=!1;id=++O40;get depth(){return(this.#Y?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#Z.id,parent:this.#Y?.id,depth:this.depth,partsLength:this.#J.length,parts:this.#J}}constructor(Z,J,X={}){if(this.type=Z,Z)this.#Q=!0;if(this.#Y=J,this.#Z=this.#Y?this.#Y.#Z:this,this.#K=this.#Z===this?X:this.#Z.#K,this.#N=this.#Z===this?[]:this.#Z.#N,Z==="!"&&!this.#Z.#U)this.#N.push(this);this.#C=this.#Y?this.#Y.#J.length:0}get hasMagic(){if(this.#Q!==void 0)return this.#Q;for(let Z of this.#J){if(typeof Z==="string")continue;if(Z.type||Z.hasMagic)return this.#Q=!0}return this.#Q}toString(){return this.#x!==void 0?this.#x:!this.type?this.#x=this.#J.map((Z)=>String(Z)).join(""):this.#x=this.type+"("+this.#J.map((Z)=>String(Z)).join("|")+")"}#W(){if(this!==this.#Z)throw new Error("should only call on root");if(this.#U)return this;this.toString(),this.#U=!0;let Z;while(Z=this.#N.pop()){if(Z.type!=="!")continue;let J=Z,X=J.#Y;while(X){for(let Q=J.#C+1;!X.type&&Q<X.#J.length;Q++)for(let q of Z.#J){if(typeof q==="string")throw new Error("string part in extglob AST??");q.copyIn(X.#J[Q])}J=X,X=J.#Y}}return this}push(...Z){for(let J of Z){if(J==="")continue;if(typeof J!=="string"&&!(J instanceof B6&&J.#Y===this))throw new Error("invalid part: "+J);this.#J.push(J)}}toJSON(){let Z=this.type===null?this.#J.slice().map((J)=>typeof J==="string"?J:J.toJSON()):[this.type,...this.#J.map((J)=>J.toJSON())];if(this.isStart()&&!this.type)Z.unshift([]);if(this.isEnd()&&(this===this.#Z||this.#Z.#U&&this.#Y?.type==="!"))Z.push({});return Z}isStart(){if(this.#Z===this)return!0;if(!this.#Y?.isStart())return!1;if(this.#C===0)return!0;let Z=this.#Y;for(let J=0;J<this.#C;J++){let X=Z.#J[J];if(!(X instanceof B6&&X.type==="!"))return!1}return!0}isEnd(){if(this.#Z===this)return!0;if(this.#Y?.type==="!")return!0;if(!this.#Y?.isEnd())return!1;if(!this.type)return this.#Y?.isEnd();let Z=this.#Y?this.#Y.#J.length:0;return this.#C===Z-1}copyIn(Z){if(typeof Z==="string")this.push(Z);else this.push(Z.clone(this))}clone(Z){let J=new B6(this.type,Z);for(let X of this.#J)J.copyIn(X);return J}static#$(Z,J,X,Q,q){let $=Q.maxExtglobRecursion??2,Y=!1,K=!1,W=-1,V=!1;if(J.type===null){let F=X,D="";while(F<Z.length){let C=Z.charAt(F++);if(Y||C==="\\"){Y=!Y,D+=C;continue}if(K){if(F===W+1){if(C==="^"||C==="!")V=!0}else if(C==="]"&&!(F===W+2&&V))K=!1;D+=C;continue}else if(C==="["){K=!0,W=F,V=!1,D+=C;continue}if(!Q.noext&&TU(C)&&Z.charAt(F)==="("&&q<=$){J.push(D),D="";let O=new B6(C,J);F=B6.#$(Z,O,F,Q,q+1),J.push(O);continue}D+=C}return J.push(D),F}let U=X+1,G=new B6(null,J),H=[],M="";while(U<Z.length){let F=Z.charAt(U++);if(Y||F==="\\"){Y=!Y,M+=F;continue}if(K){if(U===W+1){if(F==="^"||F==="!")V=!0}else if(F==="]"&&!(U===W+2&&V))K=!1;M+=F;continue}else if(F==="["){K=!0,W=U,V=!1,M+=F;continue}if(!Q.noext&&TU(F)&&Z.charAt(U)==="("&&(q<=$||J&&J.#H(F))){let C=J&&J.#H(F)?0:1;G.push(M),M="";let L=new B6(F,G);G.push(L),U=B6.#$(Z,L,U,Q,q+C);continue}if(F==="|"){G.push(M),M="",H.push(G),G=new B6(null,J);continue}if(F===")"){if(M===""&&J.#J.length===0)J.#V=!0;return G.push(M),M="",J.push(...H,G),U}M+=F}return J.type=null,J.#Q=void 0,J.#J=[Z.substring(X-1)],U}#D(Z){return this.#L(Z,D40)}#L(Z,J=N40){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#J.length!==1||this.type===null)return!1;let X=Z.#J[0];if(!X||typeof X!=="object"||X.type===null)return!1;return this.#H(X.type,J)}#H(Z,J=j40){return!!J.get(this.type)?.includes(Z)}#B(Z,J){let X=Z.#J[0],Q=new B6(null,X,this.options);Q.#J.push(""),X.push(Q),this.#O(Z,J)}#O(Z,J){let X=Z.#J[0];this.#J.splice(J,1,...X.#J);for(let Q of X.#J)if(typeof Q==="object")Q.#Y=this;this.#x=void 0}#M(Z){return!!sC.get(this.type)?.has(Z)}#w(Z){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#J.length!==1||this.type===null||this.#J.length!==1)return!1;let J=Z.#J[0];if(!J||typeof J!=="object"||J.type===null)return!1;return this.#M(J.type)}#R(Z){let J=sC.get(this.type),X=Z.#J[0],Q=J?.get(X.type);if(!Q)return!1;this.#J=X.#J;for(let q of this.#J)if(typeof q==="object")q.#Y=this;this.type=Q,this.#x=void 0,this.#V=!1}static fromGlob(Z,J={}){let X=new B6(null,void 0,J);return B6.#$(Z,X,0,J,0),X}toMMPattern(){if(this!==this.#Z)return this.#Z.toMMPattern();let Z=this.toString(),[J,X,Q,q]=this.toRegExpSource();if(!(Q||this.#Q||this.#K.nocase&&!this.#K.nocaseMagicOnly&&Z.toUpperCase()!==Z.toLowerCase()))return X;let Y=(this.#K.nocase?"i":"")+(q?"u":"");return Object.assign(new RegExp(`^${J}$`,Y),{_src:J,_glob:Z})}get options(){return this.#K}toRegExpSource(Z){let J=Z??!!this.#K.dot;if(this.#Z===this)this.#G(),this.#W();if(!nC(this)){let K=this.isStart()&&this.isEnd()&&!this.#J.some((H)=>typeof H!=="string"),W=this.#J.map((H)=>{let[M,F,D,C]=typeof H==="string"?B6.#j(H,this.#Q,K):H.toRegExpSource(Z);return this.#Q=this.#Q||D,this.#q=this.#q||C,M}).join(""),V="";if(this.isStart()){if(typeof this.#J[0]==="string"){if(!(this.#J.length===1&&C40.has(this.#J[0]))){let M=w40,F=J&&M.has(W.charAt(0))||W.startsWith("\\.")&&M.has(W.charAt(2))||W.startsWith("\\.\\.")&&M.has(W.charAt(4)),D=!J&&!Z&&M.has(W.charAt(0));V=F?L40:D?s$:""}}}let U="";if(this.isEnd()&&this.#Z.#U&&this.#Y?.type==="!")U="(?:$|\\/)";return[V+W+U,d4(W),this.#Q=!!this.#Q,this.#q]}let X=this.type==="*"||this.type==="+",Q=this.type==="!"?"(?:(?!(?:":"(?:",q=this.#F(J);if(this.isStart()&&this.isEnd()&&!q&&this.type!=="!"){let K=this.toString(),W=this;return W.#J=[K],W.type=null,W.#Q=void 0,[K,d4(this.toString()),!1,!1]}let $=!X||Z||J||!s$?"":this.#F(!0);if($===q)$="";if($)q=`(?:${q})(?:${$})*?`;let Y="";if(this.type==="!"&&this.#V)Y=(this.isStart()&&!J?s$:"")+rC;else{let K=this.type==="!"?"))"+(this.isStart()&&!J&&!Z?s$:"")+aC+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&$?")":this.type==="*"&&$?")?":`)${this.type}`;Y=Q+q+K}return[Y,d4(q),this.#Q=!!this.#Q,this.#q]}#G(){if(!nC(this)){for(let Z of this.#J)if(typeof Z==="object")Z.#G()}else{let Z=0,J=!1;do{J=!0;for(let X=0;X<this.#J.length;X++){let Q=this.#J[X];if(typeof Q==="object"){if(Q.#G(),this.#L(Q))J=!1,this.#O(Q,X);else if(this.#D(Q))J=!1,this.#B(Q,X);else if(this.#w(Q))J=!1,this.#R(Q)}}}while(!J&&++Z<10)}this.#x=void 0}#F(Z){return this.#J.map((J)=>{if(typeof J==="string")throw new Error("string type in extglob ast??");let[X,Q,q,$]=J.toRegExpSource(Z);return this.#q=this.#q||$,X}).filter((J)=>!(this.isStart()&&this.isEnd())||!!J).join("|")}static#j(Z,J,X=!1){let Q=!1,q="",$=!1,Y=!1;for(let K=0;K<Z.length;K++){let W=Z.charAt(K);if(Q){Q=!1,q+=(R40.has(W)?"\\":"")+W;continue}if(W==="*"){if(Y)continue;Y=!0,q+=X&&/^[*]+$/.test(Z)?rC:aC,J=!0;continue}else Y=!1;if(W==="\\"){if(K===Z.length-1)q+="\\\\";else Q=!0;continue}if(W==="["){let[V,U,G,H]=oC(Z,K);if(G){q+=V,$=$||U,K+=G-1,J=J||H;continue}}if(W==="?"){q+=PU,J=!0;continue}q+=I40(W)}return[q,d4(Z),!!J,$]}}B6=G3;var H3=(Z,{windowsPathsNoEscape:J=!1,magicalBraces:X=!1}={})=>{if(X)return J?Z.replace(/[?*()[\]{}]/g,"[$&]"):Z.replace(/[?*()[\]\\{}]/g,"\\$&");return J?Z.replace(/[?*()[\]]/g,"[$&]"):Z.replace(/[?*()[\]\\]/g,"\\$&")};var e8=(Z,J,X={})=>{if(GX(J),!X.nocomment&&J.charAt(0)==="#")return!1;return new G4(J,X).match(Z)},_40=/^\*+([^+@!?*[(]*)$/,S40=(Z)=>(J)=>!J.startsWith(".")&&J.endsWith(Z),T40=(Z)=>(J)=>J.endsWith(Z),P40=(Z)=>{return Z=Z.toLowerCase(),(J)=>!J.startsWith(".")&&J.toLowerCase().endsWith(Z)},A40=(Z)=>{return Z=Z.toLowerCase(),(J)=>J.toLowerCase().endsWith(Z)},E40=/^\*+\.\*+$/,v40=(Z)=>!Z.startsWith(".")&&Z.includes("."),k40=(Z)=>Z!=="."&&Z!==".."&&Z.includes("."),f40=/^\.\*+$/,b40=(Z)=>Z!=="."&&Z!==".."&&Z.startsWith("."),m40=/^\*+$/,y40=(Z)=>Z.length!==0&&!Z.startsWith("."),c40=(Z)=>Z.length!==0&&Z!=="."&&Z!=="..",p40=/^\?+([^+@!?*[(]*)?$/,u40=([Z,J=""])=>{let X=ZR([Z]);if(!J)return X;return J=J.toLowerCase(),(Q)=>X(Q)&&Q.toLowerCase().endsWith(J)},g40=([Z,J=""])=>{let X=JR([Z]);if(!J)return X;return J=J.toLowerCase(),(Q)=>X(Q)&&Q.toLowerCase().endsWith(J)},h40=([Z,J=""])=>{let X=JR([Z]);return!J?X:(Q)=>X(Q)&&Q.endsWith(J)},d40=([Z,J=""])=>{let X=ZR([Z]);return!J?X:(Q)=>X(Q)&&Q.endsWith(J)},ZR=([Z])=>{let J=Z.length;return(X)=>X.length===J&&!X.startsWith(".")},JR=([Z])=>{let J=Z.length;return(X)=>X.length===J&&X!=="."&&X!==".."},XR=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",tC={win32:{sep:"\\"},posix:{sep:"/"}},i40=XR==="win32"?tC.win32.sep:tC.posix.sep;e8.sep=i40;var m2=Symbol("globstar **");e8.GLOBSTAR=m2;var l40="[^/]",o40=l40+"*?",n40="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",s40="(?:(?!(?:\\/|^)\\.).)*?",a40=(Z,J={})=>(X)=>e8(X,Z,J);e8.filter=a40;var x4=(Z,J={})=>Object.assign({},Z,J),r40=(Z)=>{if(!Z||typeof Z!=="object"||!Object.keys(Z).length)return e8;let J=e8;return Object.assign((Q,q,$={})=>J(Q,q,x4(Z,$)),{Minimatch:class Q extends J.Minimatch{constructor(q,$={}){super(q,x4(Z,$))}static defaults(q){return J.defaults(x4(Z,q)).Minimatch}},AST:class Q extends J.AST{constructor(q,$,Y={}){super(q,$,x4(Z,Y))}static fromGlob(q,$={}){return J.AST.fromGlob(q,x4(Z,$))}},unescape:(Q,q={})=>J.unescape(Q,x4(Z,q)),escape:(Q,q={})=>J.escape(Q,x4(Z,q)),filter:(Q,q={})=>J.filter(Q,x4(Z,q)),defaults:(Q)=>J.defaults(x4(Z,Q)),makeRe:(Q,q={})=>J.makeRe(Q,x4(Z,q)),braceExpand:(Q,q={})=>J.braceExpand(Q,x4(Z,q)),match:(Q,q,$={})=>J.match(Q,q,x4(Z,$)),sep:J.sep,GLOBSTAR:m2})};e8.defaults=r40;var QR=(Z,J={})=>{if(GX(Z),J.nobrace||!/\{(?:(?!\{).)*\}/.test(Z))return[Z];return iC(Z,{max:J.braceExpandMax})};e8.braceExpand=QR;var t40=(Z,J={})=>new G4(Z,J).makeRe();e8.makeRe=t40;var e40=(Z,J,X={})=>{let Q=new G4(J,X);if(Z=Z.filter((q)=>Q.match(q)),Q.options.nonull&&!Z.length)Z.push(J);return Z};e8.match=e40;var eC=/[?*]|[+@!]\(.*?\)|\[|\]/,Z70=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class G4{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(Z,J={}){GX(Z),J=J||{},this.options=J,this.maxGlobstarRecursion=J.maxGlobstarRecursion??200,this.pattern=Z,this.platform=J.platform||XR,this.isWindows=this.platform==="win32";let X="allowWindowsEscape";if(this.windowsPathsNoEscape=!!J.windowsPathsNoEscape||J[X]===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!J.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!J.nonegate,this.comment=!1,this.empty=!1,this.partial=!!J.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=J.windowsNoMagicRoot!==void 0?J.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let Z of this.set)for(let J of Z)if(typeof J!=="string")return!0;return!1}debug(...Z){}make(){let Z=this.pattern,J=this.options;if(!J.nocomment&&Z.charAt(0)==="#"){this.comment=!0;return}if(!Z){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],J.debug)this.debug=(...q)=>console.error(...q);this.debug(this.pattern,this.globSet);let X=this.globSet.map((q)=>this.slashSplit(q));this.globParts=this.preprocess(X),this.debug(this.pattern,this.globParts);let Q=this.globParts.map((q,$,Y)=>{if(this.isWindows&&this.windowsNoMagicRoot){let K=q[0]===""&&q[1]===""&&(q[2]==="?"||!eC.test(q[2]))&&!eC.test(q[3]),W=/^[a-z]:/i.test(q[0]);if(K)return[...q.slice(0,4),...q.slice(4).map((V)=>this.parse(V))];else if(W)return[q[0],...q.slice(1).map((V)=>this.parse(V))]}return q.map((K)=>this.parse(K))});if(this.debug(this.pattern,Q),this.set=Q.filter((q)=>q.indexOf(!1)===-1),this.isWindows)for(let q=0;q<this.set.length;q++){let $=this.set[q];if($[0]===""&&$[1]===""&&this.globParts[q][2]==="?"&&typeof $[3]==="string"&&/^[a-z]:$/i.test($[3]))$[2]="?"}this.debug(this.pattern,this.set)}preprocess(Z){if(this.options.noglobstar){for(let X of Z)for(let Q=0;Q<X.length;Q++)if(X[Q]==="**")X[Q]="*"}let{optimizationLevel:J=1}=this.options;if(J>=2)Z=this.firstPhasePreProcess(Z),Z=this.secondPhasePreProcess(Z);else if(J>=1)Z=this.levelOneOptimize(Z);else Z=this.adjascentGlobstarOptimize(Z);return Z}adjascentGlobstarOptimize(Z){return Z.map((J)=>{let X=-1;while((X=J.indexOf("**",X+1))!==-1){let Q=X;while(J[Q+1]==="**")Q++;if(Q!==X)J.splice(X,Q-X)}return J})}levelOneOptimize(Z){return Z.map((J)=>{return J=J.reduce((X,Q)=>{let q=X[X.length-1];if(Q==="**"&&q==="**")return X;if(Q===".."){if(q&&q!==".."&&q!=="."&&q!=="**")return X.pop(),X}return X.push(Q),X},[]),J.length===0?[""]:J})}levelTwoFileOptimize(Z){if(!Array.isArray(Z))Z=this.slashSplit(Z);let J=!1;do{if(J=!1,!this.preserveMultipleSlashes){for(let Q=1;Q<Z.length-1;Q++){let q=Z[Q];if(Q===1&&q===""&&Z[0]==="")continue;if(q==="."||q==="")J=!0,Z.splice(Q,1),Q--}if(Z[0]==="."&&Z.length===2&&(Z[1]==="."||Z[1]===""))J=!0,Z.pop()}let X=0;while((X=Z.indexOf("..",X+1))!==-1){let Q=Z[X-1];if(Q&&Q!=="."&&Q!==".."&&Q!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(Q)))J=!0,Z.splice(X-1,2),X-=2}}while(J);return Z.length===0?[""]:Z}firstPhasePreProcess(Z){let J=!1;do{J=!1;for(let X of Z){let Q=-1;while((Q=X.indexOf("**",Q+1))!==-1){let $=Q;while(X[$+1]==="**")$++;if($>Q)X.splice(Q+1,$-Q);let Y=X[Q+1],K=X[Q+2],W=X[Q+3];if(Y!=="..")continue;if(!K||K==="."||K===".."||!W||W==="."||W==="..")continue;J=!0,X.splice(Q,1);let V=X.slice(0);V[Q]="**",Z.push(V),Q--}if(!this.preserveMultipleSlashes){for(let $=1;$<X.length-1;$++){let Y=X[$];if($===1&&Y===""&&X[0]==="")continue;if(Y==="."||Y==="")J=!0,X.splice($,1),$--}if(X[0]==="."&&X.length===2&&(X[1]==="."||X[1]===""))J=!0,X.pop()}let q=0;while((q=X.indexOf("..",q+1))!==-1){let $=X[q-1];if($&&$!=="."&&$!==".."&&$!=="**"){J=!0;let K=q===1&&X[q+1]==="**"?["."]:[];if(X.splice(q-1,2,...K),X.length===0)X.push("");q-=2}}}}while(J);return Z}secondPhasePreProcess(Z){for(let J=0;J<Z.length-1;J++)for(let X=J+1;X<Z.length;X++){let Q=this.partsMatch(Z[J],Z[X],!this.preserveMultipleSlashes);if(Q){Z[J]=[],Z[X]=Q;break}}return Z.filter((J)=>J.length)}partsMatch(Z,J,X=!1){let Q=0,q=0,$=[],Y="";while(Q<Z.length&&q<J.length)if(Z[Q]===J[q])$.push(Y==="b"?J[q]:Z[Q]),Q++,q++;else if(X&&Z[Q]==="**"&&J[q]===Z[Q+1])$.push(Z[Q]),Q++;else if(X&&J[q]==="**"&&Z[Q]===J[q+1])$.push(J[q]),q++;else if(Z[Q]==="*"&&J[q]&&(this.options.dot||!J[q].startsWith("."))&&J[q]!=="**"){if(Y==="b")return!1;Y="a",$.push(Z[Q]),Q++,q++}else if(J[q]==="*"&&Z[Q]&&(this.options.dot||!Z[Q].startsWith("."))&&Z[Q]!=="**"){if(Y==="a")return!1;Y="b",$.push(J[q]),Q++,q++}else return!1;return Z.length===J.length&&$}parseNegate(){if(this.nonegate)return;let Z=this.pattern,J=!1,X=0;for(let Q=0;Q<Z.length&&Z.charAt(Q)==="!";Q++)J=!J,X++;if(X)this.pattern=Z.slice(X);this.negate=J}matchOne(Z,J,X=!1){let Q=0,q=0;if(this.isWindows){let Y=typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0]),K=!Y&&Z[0]===""&&Z[1]===""&&Z[2]==="?"&&/^[a-z]:$/i.test(Z[3]),W=typeof J[0]==="string"&&/^[a-z]:$/i.test(J[0]),V=!W&&J[0]===""&&J[1]===""&&J[2]==="?"&&typeof J[3]==="string"&&/^[a-z]:$/i.test(J[3]),U=K?3:Y?0:void 0,G=V?3:W?0:void 0;if(typeof U==="number"&&typeof G==="number"){let[H,M]=[Z[U],J[G]];if(H.toLowerCase()===M.toLowerCase())J[G]=H,q=G,Q=U}}let{optimizationLevel:$=1}=this.options;if($>=2)Z=this.levelTwoFileOptimize(Z);if(J.includes(m2))return this.#Z(Z,J,X,Q,q);return this.#q(Z,J,X,Q,q)}#Z(Z,J,X,Q,q){let $=J.indexOf(m2,q),Y=J.lastIndexOf(m2),[K,W,V]=X?[J.slice(q,$),J.slice($+1),[]]:[J.slice(q,$),J.slice($+1,Y),J.slice(Y+1)];if(K.length){let L=Z.slice(Q,Q+K.length);if(!this.#q(L,K,X,0,0))return!1;Q+=K.length,q+=K.length}let U=0;if(V.length){if(V.length+Q>Z.length)return!1;let L=Z.length-V.length;if(this.#q(Z,V,X,L,0))U=V.length;else{if(Z[Z.length-1]!==""||Q+V.length===Z.length)return!1;if(L--,!this.#q(Z,V,X,L,0))return!1;U=V.length+1}}if(!W.length){let L=!!U;for(let O=Q;O<Z.length-U;O++){let v=String(Z[O]);if(L=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return X||L}let G=[[[],0]],H=G[0],M=0,F=[0];for(let L of W)if(L===m2)F.push(M),H=[[],0],G.push(H);else H[0].push(L),M++;let D=G.length-1,C=Z.length-U;for(let L of G)L[1]=C-(F[D--]+L[0].length);return!!this.#Q(Z,G,Q,0,X,0,!!U)}#Q(Z,J,X,Q,q,$,Y){let K=J[Q];if(!K){for(let U=X;U<Z.length;U++){Y=!0;let G=Z[U];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1}return Y}let[W,V]=K;while(X<=V){if(this.#q(Z.slice(0,X+W.length),W,q,X,0)&&$<this.maxGlobstarRecursion){let H=this.#Q(Z,J,X+W.length,Q+1,q,$+1,Y);if(H!==!1)return H}let G=Z[X];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1;X++}return q||null}#q(Z,J,X,Q,q){let $,Y,K,W;for($=Q,Y=q,W=Z.length,K=J.length;$<W&&Y<K;$++,Y++){this.debug("matchOne loop");let V=J[Y],U=Z[$];if(this.debug(J,V,U),V===!1||V===m2)return!1;let G;if(typeof V==="string")G=U===V,this.debug("string match",V,U,G);else G=V.test(U),this.debug("pattern match",V,U,G);if(!G)return!1}if($===W&&Y===K)return!0;else if($===W)return X;else if(Y===K)return $===W-1&&Z[$]==="";else throw new Error("wtf?")}braceExpand(){return QR(this.pattern,this.options)}parse(Z){GX(Z);let J=this.options;if(Z==="**")return m2;if(Z==="")return"";let X,Q=null;if(X=Z.match(m40))Q=J.dot?c40:y40;else if(X=Z.match(_40))Q=(J.nocase?J.dot?A40:P40:J.dot?T40:S40)(X[1]);else if(X=Z.match(p40))Q=(J.nocase?J.dot?g40:u40:J.dot?h40:d40)(X);else if(X=Z.match(E40))Q=J.dot?k40:v40;else if(X=Z.match(f40))Q=b40;let q=G3.fromGlob(Z,this.options).toMMPattern();if(Q&&typeof q==="object")Reflect.defineProperty(q,"test",{value:Q});return q}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Z=this.set;if(!Z.length)return this.regexp=!1,this.regexp;let J=this.options,X=J.noglobstar?o40:J.dot?n40:s40,Q=new Set(J.nocase?["i"]:[]),q=Z.map((K)=>{let W=K.map((U)=>{if(U instanceof RegExp)for(let G of U.flags.split(""))Q.add(G);return typeof U==="string"?Z70(U):U===m2?m2:U._src});W.forEach((U,G)=>{let H=W[G+1],M=W[G-1];if(U!==m2||M===m2)return;if(M===void 0)if(H!==void 0&&H!==m2)W[G+1]="(?:\\/|"+X+"\\/)?"+H;else W[G]=X;else if(H===void 0)W[G-1]=M+"(?:\\/|\\/"+X+")?";else if(H!==m2)W[G-1]=M+"(?:\\/|\\/"+X+"\\/)"+H,W[G+1]=m2});let V=W.filter((U)=>U!==m2);if(this.partial&&V.length>=1){let U=[];for(let G=1;G<=V.length;G++)U.push(V.slice(0,G).join("/"));return"(?:"+U.join("|")+")"}return V.join("/")}).join("|"),[$,Y]=Z.length>1?["(?:",")"]:["",""];if(q="^"+$+q+Y+"$",this.partial)q="^(?:\\/|"+$+q.slice(1,-1)+Y+")$";if(this.negate)q="^(?!"+q+").+$";try{this.regexp=new RegExp(q,[...Q].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(Z){if(this.preserveMultipleSlashes)return Z.split("/");else if(this.isWindows&&/^\/\/[^/]+/.test(Z))return["",...Z.split(/\/+/)];else return Z.split(/\/+/)}match(Z,J=this.partial){if(this.debug("match",Z,this.pattern),this.comment)return!1;if(this.empty)return Z==="";if(Z==="/"&&J)return!0;let X=this.options;if(this.isWindows)Z=Z.split("\\").join("/");let Q=this.slashSplit(Z);this.debug(this.pattern,"split",Q);let q=this.set;this.debug(this.pattern,"set",q);let $=Q[Q.length-1];if(!$)for(let Y=Q.length-2;!$&&Y>=0;Y--)$=Q[Y];for(let Y of q){let K=Q;if(X.matchBase&&Y.length===1)K=[$];if(this.matchOne(K,Y,J)){if(X.flipNegate)return!0;return!this.negate}}if(X.flipNegate)return!1;return this.negate}static defaults(Z){return e8.defaults(Z).Minimatch}}e8.AST=G3;e8.Minimatch=G4;e8.escape=H3;e8.unescape=d4;import{fileURLToPath as v70}from"node:url";var J70=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,$R=new Set,AU=typeof process==="object"&&!!process?process:{},YR=(Z,J,X,Q)=>{typeof AU.emitWarning==="function"?AU.emitWarning(Z,J,X,Q):console.error(`[${X}] ${J}: ${Z}`)},a$=globalThis.AbortController,qR=globalThis.AbortSignal;if(typeof a$==="undefined"){qR=class X{onabort;_onabort=[];reason;aborted=!1;addEventListener(Q,q){this._onabort.push(q)}},a$=class X{constructor(){J()}signal=new qR;abort(Q){if(this.signal.aborted)return;this.signal.reason=Q,this.signal.aborted=!0;for(let q of this.signal._onabort)q(Q);this.signal.onabort?.(Q)}};let Z=AU.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",J=()=>{if(!Z)return;Z=!1,YR("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",J)}}var X70=(Z)=>!$R.has(Z),ml0=Symbol("type"),d5=(Z)=>Z&&Z===Math.floor(Z)&&Z>0&&isFinite(Z),KR=(Z)=>!d5(Z)?null:Z<=Math.pow(2,8)?Uint8Array:Z<=Math.pow(2,16)?Uint16Array:Z<=Math.pow(2,32)?Uint32Array:Z<=Number.MAX_SAFE_INTEGER?BX:null;class BX extends Array{constructor(Z){super(Z);this.fill(0)}}class B3{heap;length;static#Z=!1;static create(Z){let J=KR(Z);if(!J)return[];B3.#Z=!0;let X=new B3(Z,J);return B3.#Z=!1,X}constructor(Z,J){if(!B3.#Z)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new J(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}}class g9{#Z;#Q;#q;#J;#Y;#C;#N;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#K;#x;#V;#W;#$;#D;#L;#H;#B;#O;#M;#w;#R;#G;#F;#j;#_;#X;#k;static unsafeExposeInternals(Z){return{starts:Z.#R,ttls:Z.#G,autopurgeTimers:Z.#F,sizes:Z.#w,keyMap:Z.#V,keyList:Z.#W,valList:Z.#$,next:Z.#D,prev:Z.#L,get head(){return Z.#H},get tail(){return Z.#B},free:Z.#O,isBackgroundFetch:(J)=>Z.#z(J),backgroundFetch:(J,X,Q,q)=>Z.#g(J,X,Q,q),moveToTail:(J)=>Z.#b(J),indexes:(J)=>Z.#P(J),rindexes:(J)=>Z.#A(J),isStale:(J)=>Z.#I(J)}}get max(){return this.#Z}get maxSize(){return this.#Q}get calculatedSize(){return this.#x}get size(){return this.#K}get fetchMethod(){return this.#C}get memoMethod(){return this.#N}get dispose(){return this.#q}get onInsert(){return this.#J}get disposeAfter(){return this.#Y}constructor(Z){let{max:J=0,ttl:X,ttlResolution:Q=1,ttlAutopurge:q,updateAgeOnGet:$,updateAgeOnHas:Y,allowStale:K,dispose:W,onInsert:V,disposeAfter:U,noDisposeOnSet:G,noUpdateTTL:H,maxSize:M=0,maxEntrySize:F=0,sizeCalculation:D,fetchMethod:C,memoMethod:L,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:p,ignoreFetchAbort:Z0,perf:X0}=Z;if(X0!==void 0){if(typeof X0?.now!=="function")throw new TypeError("perf option must have a now() method if specified")}if(this.#U=X0??J70,J!==0&&!d5(J))throw new TypeError("max option must be a nonnegative integer");let A=J?KR(J):Array;if(!A)throw new Error("invalid max value: "+J);if(this.#Z=J,this.#Q=M,this.maxEntrySize=F||this.#Q,this.sizeCalculation=D,this.sizeCalculation){if(!this.#Q&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw new TypeError("sizeCalculation set to non-function")}if(L!==void 0&&typeof L!=="function")throw new TypeError("memoMethod must be a function if defined");if(this.#N=L,C!==void 0&&typeof C!=="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#C=C,this.#_=!!C,this.#V=new Map,this.#W=new Array(J).fill(void 0),this.#$=new Array(J).fill(void 0),this.#D=new A(J),this.#L=new A(J),this.#H=0,this.#B=0,this.#O=B3.create(J),this.#K=0,this.#x=0,typeof W==="function")this.#q=W;if(typeof V==="function")this.#J=V;if(typeof U==="function")this.#Y=U,this.#M=[];else this.#Y=void 0,this.#M=void 0;if(this.#j=!!this.#q,this.#k=!!this.#J,this.#X=!!this.#Y,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!H,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!p,this.ignoreFetchAbort=!!Z0,this.maxEntrySize!==0){if(this.#Q!==0){if(!d5(this.#Q))throw new TypeError("maxSize must be a positive integer if specified")}if(!d5(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#d()}if(this.allowStale=!!K,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!$,this.updateAgeOnHas=!!Y,this.ttlResolution=d5(Q)||Q===0?Q:1,this.ttlAutopurge=!!q,this.ttl=X||0,this.ttl){if(!d5(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(this.#Z===0&&this.ttl===0&&this.#Q===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#Z&&!this.#Q){if(X70("LRU_CACHE_UNBOUNDED"))$R.add("LRU_CACHE_UNBOUNDED"),YR("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",g9)}}getRemainingTTL(Z){return this.#V.has(Z)?1/0:0}#E(){let Z=new BX(this.#Z),J=new BX(this.#Z);this.#G=Z,this.#R=J;let X=this.ttlAutopurge?new Array(this.#Z):void 0;this.#F=X,this.#y=($,Y,K=this.#U.now())=>{if(J[$]=Y!==0?K:0,Z[$]=Y,X?.[$])clearTimeout(X[$]),X[$]=void 0;if(Y!==0&&X){let W=setTimeout(()=>{if(this.#I($))this.#T(this.#W[$],"expire")},Y+1);if(W.unref)W.unref();X[$]=W}},this.#S=($)=>{J[$]=Z[$]!==0?this.#U.now():0},this.#v=($,Y)=>{if(Z[Y]){let K=Z[Y],W=J[Y];if(!K||!W)return;$.ttl=K,$.start=W,$.now=Q||q();let V=$.now-W;$.remainingTTL=K-V}};let Q=0,q=()=>{let $=this.#U.now();if(this.ttlResolution>0){Q=$;let Y=setTimeout(()=>Q=0,this.ttlResolution);if(Y.unref)Y.unref()}return $};this.getRemainingTTL=($)=>{let Y=this.#V.get($);if(Y===void 0)return 0;let K=Z[Y],W=J[Y];if(!K||!W)return 1/0;let V=(Q||q())-W;return K-V},this.#I=($)=>{let Y=J[$],K=Z[$];return!!K&&!!Y&&(Q||q())-Y>K}}#S=()=>{};#v=()=>{};#y=()=>{};#I=()=>!1;#d(){let Z=new BX(this.#Z);this.#x=0,this.#w=Z,this.#m=(J)=>{this.#x-=Z[J],Z[J]=0},this.#c=(J,X,Q,q)=>{if(this.#z(X))return 0;if(!d5(Q))if(q){if(typeof q!=="function")throw new TypeError("sizeCalculation must be a function");if(Q=q(X,J),!d5(Q))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Q},this.#f=(J,X,Q)=>{if(Z[J]=X,this.#Q){let q=this.#Q-Z[J];while(this.#x>q)this.#u(!0)}if(this.#x+=Z[J],Q)Q.entrySize=X,Q.totalCalculatedSize=this.#x}}#m=(Z)=>{};#f=(Z,J,X)=>{};#c=(Z,J,X,Q)=>{if(X||Q)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#P({allowStale:Z=this.allowStale}={}){if(this.#K)for(let J=this.#B;;){if(!this.#p(J))break;if(Z||!this.#I(J))yield J;if(J===this.#H)break;else J=this.#L[J]}}*#A({allowStale:Z=this.allowStale}={}){if(this.#K)for(let J=this.#H;;){if(!this.#p(J))break;if(Z||!this.#I(J))yield J;if(J===this.#B)break;else J=this.#D[J]}}#p(Z){return Z!==void 0&&this.#V.get(this.#W[Z])===Z}*entries(){for(let Z of this.#P())if(this.#$[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#z(this.#$[Z]))yield[this.#W[Z],this.#$[Z]]}*rentries(){for(let Z of this.#A())if(this.#$[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#z(this.#$[Z]))yield[this.#W[Z],this.#$[Z]]}*keys(){for(let Z of this.#P()){let J=this.#W[Z];if(J!==void 0&&!this.#z(this.#$[Z]))yield J}}*rkeys(){for(let Z of this.#A()){let J=this.#W[Z];if(J!==void 0&&!this.#z(this.#$[Z]))yield J}}*values(){for(let Z of this.#P())if(this.#$[Z]!==void 0&&!this.#z(this.#$[Z]))yield this.#$[Z]}*rvalues(){for(let Z of this.#A())if(this.#$[Z]!==void 0&&!this.#z(this.#$[Z]))yield this.#$[Z]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,J={}){for(let X of this.#P()){let Q=this.#$[X],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0)continue;if(Z(q,this.#W[X],this))return this.get(this.#W[X],J)}}forEach(Z,J=this){for(let X of this.#P()){let Q=this.#$[X],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0)continue;Z.call(J,q,this.#W[X],this)}}rforEach(Z,J=this){for(let X of this.#A()){let Q=this.#$[X],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0)continue;Z.call(J,q,this.#W[X],this)}}purgeStale(){let Z=!1;for(let J of this.#A({allowStale:!0}))if(this.#I(J))this.#T(this.#W[J],"expire"),Z=!0;return Z}info(Z){let J=this.#V.get(Z);if(J===void 0)return;let X=this.#$[J],Q=this.#z(X)?X.__staleWhileFetching:X;if(Q===void 0)return;let q={value:Q};if(this.#G&&this.#R){let $=this.#G[J],Y=this.#R[J];if($&&Y){let K=$-(this.#U.now()-Y);q.ttl=K,q.start=Date.now()}}if(this.#w)q.size=this.#w[J];return q}dump(){let Z=[];for(let J of this.#P({allowStale:!0})){let X=this.#W[J],Q=this.#$[J],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0||X===void 0)continue;let $={value:q};if(this.#G&&this.#R){$.ttl=this.#G[J];let Y=this.#U.now()-this.#R[J];$.start=Math.floor(Date.now()-Y)}if(this.#w)$.size=this.#w[J];Z.unshift([X,$])}return Z}load(Z){this.clear();for(let[J,X]of Z){if(X.start){let Q=Date.now()-X.start;X.start=this.#U.now()-Q}this.set(J,X.value,X)}}set(Z,J,X={}){if(J===void 0)return this.delete(Z),this;let{ttl:Q=this.ttl,start:q,noDisposeOnSet:$=this.noDisposeOnSet,sizeCalculation:Y=this.sizeCalculation,status:K}=X,{noUpdateTTL:W=this.noUpdateTTL}=X,V=this.#c(Z,J,X.size||0,Y);if(this.maxEntrySize&&V>this.maxEntrySize){if(K)K.set="miss",K.maxEntrySizeExceeded=!0;return this.#T(Z,"set"),this}let U=this.#K===0?void 0:this.#V.get(Z);if(U===void 0){if(U=this.#K===0?this.#B:this.#O.length!==0?this.#O.pop():this.#K===this.#Z?this.#u(!1):this.#K,this.#W[U]=Z,this.#$[U]=J,this.#V.set(Z,U),this.#D[this.#B]=U,this.#L[U]=this.#B,this.#B=U,this.#K++,this.#f(U,V,K),K)K.set="add";if(W=!1,this.#k)this.#J?.(J,Z,"add")}else{this.#b(U);let G=this.#$[U];if(J!==G){if(this.#_&&this.#z(G)){G.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:H}=G;if(H!==void 0&&!$){if(this.#j)this.#q?.(H,Z,"set");if(this.#X)this.#M?.push([H,Z,"set"])}}else if(!$){if(this.#j)this.#q?.(G,Z,"set");if(this.#X)this.#M?.push([G,Z,"set"])}if(this.#m(U),this.#f(U,V,K),this.#$[U]=J,K){K.set="replace";let H=G&&this.#z(G)?G.__staleWhileFetching:G;if(H!==void 0)K.oldValue=H}}else if(K)K.set="update";if(this.#k)this.onInsert?.(J,Z,J===G?"update":"replace")}if(Q!==0&&!this.#G)this.#E();if(this.#G){if(!W)this.#y(U,Q,q);if(K)this.#v(K,U)}if(!$&&this.#X&&this.#M){let G=this.#M,H;while(H=G?.shift())this.#Y?.(...H)}return this}pop(){try{while(this.#K){let Z=this.#$[this.#H];if(this.#u(!0),this.#z(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#X&&this.#M){let Z=this.#M,J;while(J=Z?.shift())this.#Y?.(...J)}}}#u(Z){let J=this.#H,X=this.#W[J],Q=this.#$[J];if(this.#_&&this.#z(Q))Q.__abortController.abort(new Error("evicted"));else if(this.#j||this.#X){if(this.#j)this.#q?.(Q,X,"evict");if(this.#X)this.#M?.push([Q,X,"evict"])}if(this.#m(J),this.#F?.[J])clearTimeout(this.#F[J]),this.#F[J]=void 0;if(Z)this.#W[J]=void 0,this.#$[J]=void 0,this.#O.push(J);if(this.#K===1)this.#H=this.#B=0,this.#O.length=0;else this.#H=this.#D[J];return this.#V.delete(X),this.#K--,J}has(Z,J={}){let{updateAgeOnHas:X=this.updateAgeOnHas,status:Q}=J,q=this.#V.get(Z);if(q!==void 0){let $=this.#$[q];if(this.#z($)&&$.__staleWhileFetching===void 0)return!1;if(!this.#I(q)){if(X)this.#S(q);if(Q)Q.has="hit",this.#v(Q,q);return!0}else if(Q)Q.has="stale",this.#v(Q,q)}else if(Q)Q.has="miss";return!1}peek(Z,J={}){let{allowStale:X=this.allowStale}=J,Q=this.#V.get(Z);if(Q===void 0||!X&&this.#I(Q))return;let q=this.#$[Q];return this.#z(q)?q.__staleWhileFetching:q}#g(Z,J,X,Q){let q=J===void 0?void 0:this.#$[J];if(this.#z(q))return q;let $=new a$,{signal:Y}=X;Y?.addEventListener("abort",()=>$.abort(Y.reason),{signal:$.signal});let K={signal:$.signal,options:X,context:Q},W=(F,D=!1)=>{let{aborted:C}=$.signal,L=X.ignoreFetchAbort&&F!==void 0;if(X.status)if(C&&!D){if(X.status.fetchAborted=!0,X.status.fetchError=$.signal.reason,L)X.status.fetchAbortIgnored=!0}else X.status.fetchResolved=!0;if(C&&!L&&!D)return U($.signal.reason);let O=H,v=this.#$[J];if(v===H||L&&D&&v===void 0)if(F===void 0)if(O.__staleWhileFetching!==void 0)this.#$[J]=O.__staleWhileFetching;else this.#T(Z,"fetch");else{if(X.status)X.status.fetchUpdated=!0;this.set(Z,F,K.options)}return F},V=(F)=>{if(X.status)X.status.fetchRejected=!0,X.status.fetchError=F;return U(F)},U=(F)=>{let{aborted:D}=$.signal,C=D&&X.allowStaleOnFetchAbort,L=C||X.allowStaleOnFetchRejection,O=L||X.noDeleteOnFetchRejection,v=H;if(this.#$[J]===H){if(!O||v.__staleWhileFetching===void 0)this.#T(Z,"fetch");else if(!C)this.#$[J]=v.__staleWhileFetching}if(L){if(X.status&&v.__staleWhileFetching!==void 0)X.status.returnedStale=!0;return v.__staleWhileFetching}else if(v.__returned===v)throw F},G=(F,D)=>{let C=this.#C?.(Z,q,K);if(C&&C instanceof Promise)C.then((L)=>F(L===void 0?void 0:L),D);$.signal.addEventListener("abort",()=>{if(!X.ignoreFetchAbort||X.allowStaleOnFetchAbort){if(F(void 0),X.allowStaleOnFetchAbort)F=(L)=>W(L,!0)}})};if(X.status)X.status.fetchDispatched=!0;let H=new Promise(G).then(W,V),M=Object.assign(H,{__abortController:$,__staleWhileFetching:q,__returned:void 0});if(J===void 0)this.set(Z,M,{...K.options,status:void 0}),J=this.#V.get(Z);else this.#$[J]=M;return M}#z(Z){if(!this.#_)return!1;let J=Z;return!!J&&J instanceof Promise&&J.hasOwnProperty("__staleWhileFetching")&&J.__abortController instanceof a$}async fetch(Z,J={}){let{allowStale:X=this.allowStale,updateAgeOnGet:Q=this.updateAgeOnGet,noDeleteOnStaleGet:q=this.noDeleteOnStaleGet,ttl:$=this.ttl,noDisposeOnSet:Y=this.noDisposeOnSet,size:K=0,sizeCalculation:W=this.sizeCalculation,noUpdateTTL:V=this.noUpdateTTL,noDeleteOnFetchRejection:U=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:G=this.allowStaleOnFetchRejection,ignoreFetchAbort:H=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:F,forceRefresh:D=!1,status:C,signal:L}=J;if(!this.#_){if(C)C.fetch="get";return this.get(Z,{allowStale:X,updateAgeOnGet:Q,noDeleteOnStaleGet:q,status:C})}let O={allowStale:X,updateAgeOnGet:Q,noDeleteOnStaleGet:q,ttl:$,noDisposeOnSet:Y,size:K,sizeCalculation:W,noUpdateTTL:V,noDeleteOnFetchRejection:U,allowStaleOnFetchRejection:G,allowStaleOnFetchAbort:M,ignoreFetchAbort:H,status:C,signal:L},v=this.#V.get(Z);if(v===void 0){if(C)C.fetch="miss";let S=this.#g(Z,v,O,F);return S.__returned=S}else{let S=this.#$[v];if(this.#z(S)){let y=X&&S.__staleWhileFetching!==void 0;if(C){if(C.fetch="inflight",y)C.returnedStale=!0}return y?S.__staleWhileFetching:S.__returned=S}let p=this.#I(v);if(!D&&!p){if(C)C.fetch="hit";if(this.#b(v),Q)this.#S(v);if(C)this.#v(C,v);return S}let Z0=this.#g(Z,v,O,F),A=Z0.__staleWhileFetching!==void 0&&X;if(C){if(C.fetch=p?"stale":"refresh",A&&p)C.returnedStale=!0}return A?Z0.__staleWhileFetching:Z0.__returned=Z0}}async forceFetch(Z,J={}){let X=await this.fetch(Z,J);if(X===void 0)throw new Error("fetch() returned undefined");return X}memo(Z,J={}){let X=this.#N;if(!X)throw new Error("no memoMethod provided to constructor");let{context:Q,forceRefresh:q,...$}=J,Y=this.get(Z,$);if(!q&&Y!==void 0)return Y;let K=X(Z,Y,{options:$,context:Q});return this.set(Z,K,$),K}get(Z,J={}){let{allowStale:X=this.allowStale,updateAgeOnGet:Q=this.updateAgeOnGet,noDeleteOnStaleGet:q=this.noDeleteOnStaleGet,status:$}=J,Y=this.#V.get(Z);if(Y!==void 0){let K=this.#$[Y],W=this.#z(K);if($)this.#v($,Y);if(this.#I(Y)){if($)$.get="stale";if(!W){if(!q)this.#T(Z,"expire");if($&&X)$.returnedStale=!0;return X?K:void 0}else{if($&&X&&K.__staleWhileFetching!==void 0)$.returnedStale=!0;return X?K.__staleWhileFetching:void 0}}else{if($)$.get="hit";if(W)return K.__staleWhileFetching;if(this.#b(Y),Q)this.#S(Y);return K}}else if($)$.get="miss"}#h(Z,J){this.#L[J]=Z,this.#D[Z]=J}#b(Z){if(Z!==this.#B){if(Z===this.#H)this.#H=this.#D[Z];else this.#h(this.#L[Z],this.#D[Z]);this.#h(this.#B,Z),this.#B=Z}}delete(Z){return this.#T(Z,"delete")}#T(Z,J){let X=!1;if(this.#K!==0){let Q=this.#V.get(Z);if(Q!==void 0){if(this.#F?.[Q])clearTimeout(this.#F?.[Q]),this.#F[Q]=void 0;if(X=!0,this.#K===1)this.#i(J);else{this.#m(Q);let q=this.#$[Q];if(this.#z(q))q.__abortController.abort(new Error("deleted"));else if(this.#j||this.#X){if(this.#j)this.#q?.(q,Z,J);if(this.#X)this.#M?.push([q,Z,J])}if(this.#V.delete(Z),this.#W[Q]=void 0,this.#$[Q]=void 0,Q===this.#B)this.#B=this.#L[Q];else if(Q===this.#H)this.#H=this.#D[Q];else{let $=this.#L[Q];this.#D[$]=this.#D[Q];let Y=this.#D[Q];this.#L[Y]=this.#L[Q]}this.#K--,this.#O.push(Q)}}}if(this.#X&&this.#M?.length){let Q=this.#M,q;while(q=Q?.shift())this.#Y?.(...q)}return X}clear(){return this.#i("delete")}#i(Z){for(let J of this.#A({allowStale:!0})){let X=this.#$[J];if(this.#z(X))X.__abortController.abort(new Error("deleted"));else{let Q=this.#W[J];if(this.#j)this.#q?.(X,Q,Z);if(this.#X)this.#M?.push([X,Q,Z])}}if(this.#V.clear(),this.#$.fill(void 0),this.#W.fill(void 0),this.#G&&this.#R){this.#G.fill(0),this.#R.fill(0);for(let J of this.#F??[])if(J!==void 0)clearTimeout(J);this.#F?.fill(void 0)}if(this.#w)this.#w.fill(0);if(this.#H=0,this.#B=0,this.#O.length=0,this.#x=0,this.#K=0,this.#X&&this.#M){let J=this.#M,X;while(X=J?.shift())this.#Y?.(...X)}}}import{posix as G70,win32 as uU}from"node:path";import{fileURLToPath as H70}from"node:url";import{lstatSync as B70,readdir as M70,readdirSync as F70,readlinkSync as N70,realpathSync as D70}from"fs";import*as j70 from"node:fs";import{lstat as w70,readdir as C70,readlink as R70,realpath as I70}from"node:fs/promises";import{EventEmitter as mU}from"node:events";import xR from"node:stream";import{StringDecoder as Q70}from"node:string_decoder";var WR=typeof process==="object"&&process?process:{stdout:null,stderr:null},q70=(Z)=>!!Z&&typeof Z==="object"&&(Z instanceof d9||Z instanceof xR||$70(Z)||Y70(Z)),$70=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof mU&&typeof Z.pipe==="function"&&Z.pipe!==xR.Writable.prototype.pipe,Y70=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof mU&&typeof Z.write==="function"&&typeof Z.end==="function",e7=Symbol("EOF"),Z5=Symbol("maybeEmitEnd"),i5=Symbol("emittedEnd"),r$=Symbol("emittingEnd"),MX=Symbol("emittedError"),t$=Symbol("closed"),zR=Symbol("read"),e$=Symbol("flush"),VR=Symbol("flushChunk"),i4=Symbol("encoding"),M3=Symbol("decoder"),U8=Symbol("flowing"),FX=Symbol("paused"),F3=Symbol("resume"),x8=Symbol("buffer"),Z6=Symbol("pipes"),G8=Symbol("bufferLength"),EU=Symbol("bufferPush"),ZY=Symbol("bufferShift"),y8=Symbol("objectMode"),y2=Symbol("destroyed"),vU=Symbol("error"),kU=Symbol("emitData"),UR=Symbol("emitEnd"),fU=Symbol("emitEnd2"),B7=Symbol("async"),bU=Symbol("abort"),JY=Symbol("aborted"),NX=Symbol("signal"),h9=Symbol("dataListeners"),h6=Symbol("discarded"),DX=(Z)=>Promise.resolve().then(Z),K70=(Z)=>Z(),W70=(Z)=>Z==="end"||Z==="finish"||Z==="prefinish",z70=(Z)=>Z instanceof ArrayBuffer||!!Z&&typeof Z==="object"&&Z.constructor&&Z.constructor.name==="ArrayBuffer"&&Z.byteLength>=0,V70=(Z)=>!Buffer.isBuffer(Z)&&ArrayBuffer.isView(Z);class yU{src;dest;opts;ondrain;constructor(Z,J,X){this.src=Z,this.dest=J,this.opts=X,this.ondrain=()=>Z[F3](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(Z){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class GR extends yU{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Z,J,X){super(Z,J,X);this.proxyErrors=(Q)=>J.emit("error",Q),Z.on("error",this.proxyErrors)}}var U70=(Z)=>!!Z.objectMode,x70=(Z)=>!Z.objectMode&&!!Z.encoding&&Z.encoding!=="buffer";class d9 extends mU{[U8]=!1;[FX]=!1;[Z6]=[];[x8]=[];[y8];[i4];[B7];[M3];[e7]=!1;[i5]=!1;[r$]=!1;[t$]=!1;[MX]=null;[G8]=0;[y2]=!1;[NX];[JY]=!1;[h9]=0;[h6]=!1;writable=!0;readable=!0;constructor(...Z){let J=Z[0]||{};super();if(J.objectMode&&typeof J.encoding==="string")throw new TypeError("Encoding and objectMode may not be used together");if(U70(J))this[y8]=!0,this[i4]=null;else if(x70(J))this[i4]=J.encoding,this[y8]=!1;else this[y8]=!1,this[i4]=null;if(this[B7]=!!J.async,this[M3]=this[i4]?new Q70(this[i4]):null,J&&J.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[x8]});if(J&&J.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[Z6]});let{signal:X}=J;if(X)if(this[NX]=X,X.aborted)this[bU]();else X.addEventListener("abort",()=>this[bU]())}get bufferLength(){return this[G8]}get encoding(){return this[i4]}set encoding(Z){throw new Error("Encoding must be set at instantiation time")}setEncoding(Z){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[y8]}set objectMode(Z){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[B7]}set["async"](Z){this[B7]=this[B7]||!!Z}[bU](){this[JY]=!0,this.emit("abort",this[NX]?.reason),this.destroy(this[NX]?.reason)}get aborted(){return this[JY]}set aborted(Z){}write(Z,J,X){if(this[JY])return!1;if(this[e7])throw new Error("write after end");if(this[y2])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof J==="function")X=J,J="utf8";if(!J)J="utf8";let Q=this[B7]?DX:K70;if(!this[y8]&&!Buffer.isBuffer(Z)){if(V70(Z))Z=Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);else if(z70(Z))Z=Buffer.from(Z);else if(typeof Z!=="string")throw new Error("Non-contiguous data written to non-objectMode stream")}if(this[y8]){if(this[U8]&&this[G8]!==0)this[e$](!0);if(this[U8])this.emit("data",Z);else this[EU](Z);if(this[G8]!==0)this.emit("readable");if(X)Q(X);return this[U8]}if(!Z.length){if(this[G8]!==0)this.emit("readable");if(X)Q(X);return this[U8]}if(typeof Z==="string"&&!(J===this[i4]&&!this[M3]?.lastNeed))Z=Buffer.from(Z,J);if(Buffer.isBuffer(Z)&&this[i4])Z=this[M3].write(Z);if(this[U8]&&this[G8]!==0)this[e$](!0);if(this[U8])this.emit("data",Z);else this[EU](Z);if(this[G8]!==0)this.emit("readable");if(X)Q(X);return this[U8]}read(Z){if(this[y2])return null;if(this[h6]=!1,this[G8]===0||Z===0||Z&&Z>this[G8])return this[Z5](),null;if(this[y8])Z=null;if(this[x8].length>1&&!this[y8])this[x8]=[this[i4]?this[x8].join(""):Buffer.concat(this[x8],this[G8])];let J=this[zR](Z||null,this[x8][0]);return this[Z5](),J}[zR](Z,J){if(this[y8])this[ZY]();else{let X=J;if(Z===X.length||Z===null)this[ZY]();else if(typeof X==="string")this[x8][0]=X.slice(Z),J=X.slice(0,Z),this[G8]-=Z;else this[x8][0]=X.subarray(Z),J=X.subarray(0,Z),this[G8]-=Z}if(this.emit("data",J),!this[x8].length&&!this[e7])this.emit("drain");return J}end(Z,J,X){if(typeof Z==="function")X=Z,Z=void 0;if(typeof J==="function")X=J,J="utf8";if(Z!==void 0)this.write(Z,J);if(X)this.once("end",X);if(this[e7]=!0,this.writable=!1,this[U8]||!this[FX])this[Z5]();return this}[F3](){if(this[y2])return;if(!this[h9]&&!this[Z6].length)this[h6]=!0;if(this[FX]=!1,this[U8]=!0,this.emit("resume"),this[x8].length)this[e$]();else if(this[e7])this[Z5]();else this.emit("drain")}resume(){return this[F3]()}pause(){this[U8]=!1,this[FX]=!0,this[h6]=!1}get destroyed(){return this[y2]}get flowing(){return this[U8]}get paused(){return this[FX]}[EU](Z){if(this[y8])this[G8]+=1;else this[G8]+=Z.length;this[x8].push(Z)}[ZY](){if(this[y8])this[G8]-=1;else this[G8]-=this[x8][0].length;return this[x8].shift()}[e$](Z=!1){do;while(this[VR](this[ZY]())&&this[x8].length);if(!Z&&!this[x8].length&&!this[e7])this.emit("drain")}[VR](Z){return this.emit("data",Z),this[U8]}pipe(Z,J){if(this[y2])return Z;this[h6]=!1;let X=this[i5];if(J=J||{},Z===WR.stdout||Z===WR.stderr)J.end=!1;else J.end=J.end!==!1;if(J.proxyErrors=!!J.proxyErrors,X){if(J.end)Z.end()}else if(this[Z6].push(!J.proxyErrors?new yU(this,Z,J):new GR(this,Z,J)),this[B7])DX(()=>this[F3]());else this[F3]();return Z}unpipe(Z){let J=this[Z6].find((X)=>X.dest===Z);if(J){if(this[Z6].length===1){if(this[U8]&&this[h9]===0)this[U8]=!1;this[Z6]=[]}else this[Z6].splice(this[Z6].indexOf(J),1);J.unpipe()}}addListener(Z,J){return this.on(Z,J)}on(Z,J){let X=super.on(Z,J);if(Z==="data"){if(this[h6]=!1,this[h9]++,!this[Z6].length&&!this[U8])this[F3]()}else if(Z==="readable"&&this[G8]!==0)super.emit("readable");else if(W70(Z)&&this[i5])super.emit(Z),this.removeAllListeners(Z);else if(Z==="error"&&this[MX]){let Q=J;if(this[B7])DX(()=>Q.call(this,this[MX]));else Q.call(this,this[MX])}return X}removeListener(Z,J){return this.off(Z,J)}off(Z,J){let X=super.off(Z,J);if(Z==="data"){if(this[h9]=this.listeners("data").length,this[h9]===0&&!this[h6]&&!this[Z6].length)this[U8]=!1}return X}removeAllListeners(Z){let J=super.removeAllListeners(Z);if(Z==="data"||Z===void 0){if(this[h9]=0,!this[h6]&&!this[Z6].length)this[U8]=!1}return J}get emittedEnd(){return this[i5]}[Z5](){if(!this[r$]&&!this[i5]&&!this[y2]&&this[x8].length===0&&this[e7]){if(this[r$]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[t$])this.emit("close");this[r$]=!1}}emit(Z,...J){let X=J[0];if(Z!=="error"&&Z!=="close"&&Z!==y2&&this[y2])return!1;else if(Z==="data")return!this[y8]&&!X?!1:this[B7]?(DX(()=>this[kU](X)),!0):this[kU](X);else if(Z==="end")return this[UR]();else if(Z==="close"){if(this[t$]=!0,!this[i5]&&!this[y2])return!1;let q=super.emit("close");return this.removeAllListeners("close"),q}else if(Z==="error"){this[MX]=X,super.emit(vU,X);let q=!this[NX]||this.listeners("error").length?super.emit("error",X):!1;return this[Z5](),q}else if(Z==="resume"){let q=super.emit("resume");return this[Z5](),q}else if(Z==="finish"||Z==="prefinish"){let q=super.emit(Z);return this.removeAllListeners(Z),q}let Q=super.emit(Z,...J);return this[Z5](),Q}[kU](Z){for(let X of this[Z6])if(X.dest.write(Z)===!1)this.pause();let J=this[h6]?!1:super.emit("data",Z);return this[Z5](),J}[UR](){if(this[i5])return!1;return this[i5]=!0,this.readable=!1,this[B7]?(DX(()=>this[fU]()),!0):this[fU]()}[fU](){if(this[M3]){let J=this[M3].end();if(J){for(let X of this[Z6])X.dest.write(J);if(!this[h6])super.emit("data",J)}}for(let J of this[Z6])J.end();let Z=super.emit("end");return this.removeAllListeners("end"),Z}async collect(){let Z=Object.assign([],{dataLength:0});if(!this[y8])Z.dataLength=0;let J=this.promise();return this.on("data",(X)=>{if(Z.push(X),!this[y8])Z.dataLength+=X.length}),await J,Z}async concat(){if(this[y8])throw new Error("cannot concat in objectMode");let Z=await this.collect();return this[i4]?Z.join(""):Buffer.concat(Z,Z.dataLength)}async promise(){return new Promise((Z,J)=>{this.on(y2,()=>J(new Error("stream destroyed"))),this.on("error",(X)=>J(X)),this.on("end",()=>Z())})}[Symbol.asyncIterator](){this[h6]=!1;let Z=!1,J=async()=>{return this.pause(),Z=!0,{value:void 0,done:!0}};return{next:()=>{if(Z)return J();let Q=this.read();if(Q!==null)return Promise.resolve({done:!1,value:Q});if(this[e7])return J();let q,$,Y=(U)=>{this.off("data",K),this.off("end",W),this.off(y2,V),J(),$(U)},K=(U)=>{this.off("error",Y),this.off("end",W),this.off(y2,V),this.pause(),q({value:U,done:!!this[e7]})},W=()=>{this.off("error",Y),this.off("data",K),this.off(y2,V),J(),q({done:!0,value:void 0})},V=()=>Y(new Error("stream destroyed"));return new Promise((U,G)=>{$=G,q=U,this.once(y2,V),this.once("error",Y),this.once("end",W),this.once("data",K)})},throw:J,return:J,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[h6]=!1;let Z=!1,J=()=>{return this.pause(),this.off(vU,J),this.off(y2,J),this.off("end",J),Z=!0,{done:!0,value:void 0}},X=()=>{if(Z)return J();let Q=this.read();return Q===null?J():{done:!1,value:Q}};return this.once("end",J),this.once(vU,J),this.once(y2,J),{next:X,throw:J,return:J,[Symbol.iterator](){return this}}}destroy(Z){if(this[y2]){if(Z)this.emit("error",Z);else this.emit(y2);return this}this[y2]=!0,this[h6]=!0,this[x8].length=0,this[G8]=0;let J=this;if(typeof J.close==="function"&&!this[t$])J.close();if(Z)this.emit("error",Z);else this.emit(y2);return this}static get isStream(){return q70}}var L70=D70.native,LX={lstatSync:B70,readdir:M70,readdirSync:F70,readlinkSync:N70,realpathSync:L70,promises:{lstat:w70,readdir:C70,readlink:R70,realpath:I70}},NR=(Z)=>!Z||Z===LX||Z===j70?LX:{...LX,...Z,promises:{...LX.promises,...Z.promises||{}}},DR=/^\\\\\?\\([a-z]:)\\?$/i,O70=(Z)=>Z.replace(/\//g,"\\").replace(DR,"$1\\"),_70=/[\\\/]/,B4=0,jR=1,LR=2,M7=4,wR=6,CR=8,i9=10,RR=12,H4=15,jX=~H4,cU=16,HR=32,wX=64,l4=128,XY=256,qY=512,BR=wX|l4|qY,S70=1023,pU=(Z)=>Z.isFile()?CR:Z.isDirectory()?M7:Z.isSymbolicLink()?i9:Z.isCharacterDevice()?LR:Z.isBlockDevice()?wR:Z.isSocket()?RR:Z.isFIFO()?jR:B4,MR=new g9({max:4096}),CX=(Z)=>{let J=MR.get(Z);if(J)return J;let X=Z.normalize("NFKD");return MR.set(Z,X),X},FR=new g9({max:4096}),QY=(Z)=>{let J=FR.get(Z);if(J)return J;let X=CX(Z.toLowerCase());return FR.set(Z,X),X};class gU extends g9{constructor(){super({max:256})}}class IR extends g9{constructor(Z=16384){super({maxSize:Z,sizeCalculation:(J)=>J.length+1})}}var OR=Symbol("PathScurry setAsCwd");class J6{name;root;roots;parent;nocase;isCWD=!1;#Z;#Q;get dev(){return this.#Q}#q;get mode(){return this.#q}#J;get nlink(){return this.#J}#Y;get uid(){return this.#Y}#C;get gid(){return this.#C}#N;get rdev(){return this.#N}#U;get blksize(){return this.#U}#K;get ino(){return this.#K}#x;get size(){return this.#x}#V;get blocks(){return this.#V}#W;get atimeMs(){return this.#W}#$;get mtimeMs(){return this.#$}#D;get ctimeMs(){return this.#D}#L;get birthtimeMs(){return this.#L}#H;get atime(){return this.#H}#B;get mtime(){return this.#B}#O;get ctime(){return this.#O}#M;get birthtime(){return this.#M}#w;#R;#G;#F;#j;#_;#X;#k;#E;#S;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(Z,J=B4,X,Q,q,$,Y){if(this.name=Z,this.#w=q?QY(Z):CX(Z),this.#X=J&S70,this.nocase=q,this.roots=Q,this.root=X||this,this.#k=$,this.#G=Y.fullpath,this.#j=Y.relative,this.#_=Y.relativePosix,this.parent=Y.parent,this.parent)this.#Z=this.parent.#Z;else this.#Z=NR(Y.fs)}depth(){if(this.#R!==void 0)return this.#R;if(!this.parent)return this.#R=0;return this.#R=this.parent.depth()+1}childrenCache(){return this.#k}resolve(Z){if(!Z)return this;let J=this.getRootString(Z),Q=Z.substring(J.length).split(this.splitSep);return J?this.getRoot(J).#v(Q):this.#v(Q)}#v(Z){let J=this;for(let X of Z)J=J.child(X);return J}children(){let Z=this.#k.get(this);if(Z)return Z;let J=Object.assign([],{provisional:0});return this.#k.set(this,J),this.#X&=~cU,J}child(Z,J){if(Z===""||Z===".")return this;if(Z==="..")return this.parent||this;let X=this.children(),Q=this.nocase?QY(Z):CX(Z);for(let K of X)if(K.#w===Q)return K;let q=this.parent?this.sep:"",$=this.#G?this.#G+q+Z:void 0,Y=this.newChild(Z,B4,{...J,parent:this,fullpath:$});if(!this.canReaddir())Y.#X|=l4;return X.push(Y),Y}relative(){if(this.isCWD)return"";if(this.#j!==void 0)return this.#j;let Z=this.name,J=this.parent;if(!J)return this.#j=this.name;let X=J.relative();return X+(!X||!J.parent?"":this.sep)+Z}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let Z=this.name,J=this.parent;if(!J)return this.#_=this.fullpathPosix();let X=J.relativePosix();return X+(!X||!J.parent?"":"/")+Z}fullpath(){if(this.#G!==void 0)return this.#G;let Z=this.name,J=this.parent;if(!J)return this.#G=this.name;let Q=J.fullpath()+(!J.parent?"":this.sep)+Z;return this.#G=Q}fullpathPosix(){if(this.#F!==void 0)return this.#F;if(this.sep==="/")return this.#F=this.fullpath();if(!this.parent){let Q=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(Q))return this.#F=`//?/${Q}`;else return this.#F=Q}let Z=this.parent,J=Z.fullpathPosix(),X=J+(!J||!Z.parent?"":"/")+this.name;return this.#F=X}isUnknown(){return(this.#X&H4)===B4}isType(Z){return this[`is${Z}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#X&H4)===CR}isDirectory(){return(this.#X&H4)===M7}isCharacterDevice(){return(this.#X&H4)===LR}isBlockDevice(){return(this.#X&H4)===wR}isFIFO(){return(this.#X&H4)===jR}isSocket(){return(this.#X&H4)===RR}isSymbolicLink(){return(this.#X&i9)===i9}lstatCached(){return this.#X&HR?this:void 0}readlinkCached(){return this.#E}realpathCached(){return this.#S}readdirCached(){let Z=this.children();return Z.slice(0,Z.provisional)}canReadlink(){if(this.#E)return!0;if(!this.parent)return!1;let Z=this.#X&H4;return!(Z!==B4&&Z!==i9||this.#X&XY||this.#X&l4)}calledReaddir(){return!!(this.#X&cU)}isENOENT(){return!!(this.#X&l4)}isNamed(Z){return!this.nocase?this.#w===CX(Z):this.#w===QY(Z)}async readlink(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let J=await this.#Z.promises.readlink(this.fullpath()),X=(await this.parent.realpath())?.resolve(J);if(X)return this.#E=X}catch(J){this.#A(J.code);return}}readlinkSync(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let J=this.#Z.readlinkSync(this.fullpath()),X=this.parent.realpathSync()?.resolve(J);if(X)return this.#E=X}catch(J){this.#A(J.code);return}}#y(Z){this.#X|=cU;for(let J=Z.provisional;J<Z.length;J++){let X=Z[J];if(X)X.#I()}}#I(){if(this.#X&l4)return;this.#X=(this.#X|l4)&jX,this.#d()}#d(){let Z=this.children();Z.provisional=0;for(let J of Z)J.#I()}#m(){this.#X|=qY,this.#f()}#f(){if(this.#X&wX)return;let Z=this.#X;if((Z&H4)===M7)Z&=jX;this.#X=Z|wX,this.#d()}#c(Z=""){if(Z==="ENOTDIR"||Z==="EPERM")this.#f();else if(Z==="ENOENT")this.#I();else this.children().provisional=0}#P(Z=""){if(Z==="ENOTDIR")this.parent.#f();else if(Z==="ENOENT")this.#I()}#A(Z=""){let J=this.#X;if(J|=XY,Z==="ENOENT")J|=l4;if(Z==="EINVAL"||Z==="UNKNOWN")J&=jX;if(this.#X=J,Z==="ENOTDIR"&&this.parent)this.parent.#f()}#p(Z,J){return this.#g(Z,J)||this.#u(Z,J)}#u(Z,J){let X=pU(Z),Q=this.newChild(Z.name,X,{parent:this}),q=Q.#X&H4;if(q!==M7&&q!==i9&&q!==B4)Q.#X|=wX;return J.unshift(Q),J.provisional++,Q}#g(Z,J){for(let X=J.provisional;X<J.length;X++){let Q=J[X];if((this.nocase?QY(Z.name):CX(Z.name))!==Q.#w)continue;return this.#z(Z,Q,X,J)}}#z(Z,J,X,Q){let q=J.name;if(J.#X=J.#X&jX|pU(Z),q!==Z.name)J.name=Z.name;if(X!==Q.provisional){if(X===Q.length-1)Q.pop();else Q.splice(X,1);Q.unshift(J)}return Q.provisional++,J}async lstat(){if((this.#X&l4)===0)try{return this.#h(await this.#Z.promises.lstat(this.fullpath())),this}catch(Z){this.#P(Z.code)}}lstatSync(){if((this.#X&l4)===0)try{return this.#h(this.#Z.lstatSync(this.fullpath())),this}catch(Z){this.#P(Z.code)}}#h(Z){let{atime:J,atimeMs:X,birthtime:Q,birthtimeMs:q,blksize:$,blocks:Y,ctime:K,ctimeMs:W,dev:V,gid:U,ino:G,mode:H,mtime:M,mtimeMs:F,nlink:D,rdev:C,size:L,uid:O}=Z;this.#H=J,this.#W=X,this.#M=Q,this.#L=q,this.#U=$,this.#V=Y,this.#O=K,this.#D=W,this.#Q=V,this.#C=U,this.#K=G,this.#q=H,this.#B=M,this.#$=F,this.#J=D,this.#N=C,this.#x=L,this.#Y=O;let v=pU(Z);if(this.#X=this.#X&jX|v|HR,v!==B4&&v!==M7&&v!==i9)this.#X|=wX}#b=[];#T=!1;#i(Z){this.#T=!1;let J=this.#b.slice();this.#b.length=0,J.forEach((X)=>X(null,Z))}readdirCB(Z,J=!1){if(!this.canReaddir()){if(J)Z(null,[]);else queueMicrotask(()=>Z(null,[]));return}let X=this.children();if(this.calledReaddir()){let q=X.slice(0,X.provisional);if(J)Z(null,q);else queueMicrotask(()=>Z(null,q));return}if(this.#b.push(Z),this.#T)return;this.#T=!0;let Q=this.fullpath();this.#Z.readdir(Q,{withFileTypes:!0},(q,$)=>{if(q)this.#c(q.code),X.provisional=0;else{for(let Y of $)this.#p(Y,X);this.#y(X)}this.#i(X.slice(0,X.provisional));return})}#l;async readdir(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let J=this.fullpath();if(this.#l)await this.#l;else{let X=()=>{};this.#l=new Promise((Q)=>X=Q);try{for(let Q of await this.#Z.promises.readdir(J,{withFileTypes:!0}))this.#p(Q,Z);this.#y(Z)}catch(Q){this.#c(Q.code),Z.provisional=0}this.#l=void 0,X()}return Z.slice(0,Z.provisional)}readdirSync(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let J=this.fullpath();try{for(let X of this.#Z.readdirSync(J,{withFileTypes:!0}))this.#p(X,Z);this.#y(Z)}catch(X){this.#c(X.code),Z.provisional=0}return Z.slice(0,Z.provisional)}canReaddir(){if(this.#X&BR)return!1;let Z=H4&this.#X;if(!(Z===B4||Z===M7||Z===i9))return!1;return!0}shouldWalk(Z,J){return(this.#X&M7)===M7&&!(this.#X&BR)&&!Z.has(this)&&(!J||J(this))}async realpath(){if(this.#S)return this.#S;if((qY|XY|l4)&this.#X)return;try{let Z=await this.#Z.promises.realpath(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}realpathSync(){if(this.#S)return this.#S;if((qY|XY|l4)&this.#X)return;try{let Z=this.#Z.realpathSync(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}[OR](Z){if(Z===this)return;Z.isCWD=!1,this.isCWD=!0;let J=new Set([]),X=[],Q=this;while(Q&&Q.parent)J.add(Q),Q.#j=X.join(this.sep),Q.#_=X.join("/"),Q=Q.parent,X.push("..");Q=Z;while(Q&&Q.parent&&!J.has(Q))Q.#j=void 0,Q.#_=void 0,Q=Q.parent}}class $Y extends J6{sep="\\";splitSep=_70;constructor(Z,J=B4,X,Q,q,$,Y){super(Z,J,X,Q,q,$,Y)}newChild(Z,J=B4,X={}){return new $Y(Z,J,this.root,this.roots,this.nocase,this.childrenCache(),X)}getRootString(Z){return uU.parse(Z).root}getRoot(Z){if(Z=O70(Z.toUpperCase()),Z===this.root.name)return this.root;for(let[J,X]of Object.entries(this.roots))if(this.sameRoot(Z,J))return this.roots[Z]=X;return this.roots[Z]=new RX(Z,this).root}sameRoot(Z,J=this.root.name){return Z=Z.toUpperCase().replace(/\//g,"\\").replace(DR,"$1\\"),Z===J}}class YY extends J6{splitSep="/";sep="/";constructor(Z,J=B4,X,Q,q,$,Y){super(Z,J,X,Q,q,$,Y)}getRootString(Z){return Z.startsWith("/")?"/":""}getRoot(Z){return this.root}newChild(Z,J=B4,X={}){return new YY(Z,J,this.root,this.roots,this.nocase,this.childrenCache(),X)}}class hU{root;rootPath;roots;cwd;#Z;#Q;#q;nocase;#J;constructor(Z=process.cwd(),J,X,{nocase:Q,childrenCacheSize:q=16384,fs:$=LX}={}){if(this.#J=NR($),Z instanceof URL||Z.startsWith("file://"))Z=H70(Z);let Y=J.resolve(Z);this.roots=Object.create(null),this.rootPath=this.parseRootPath(Y),this.#Z=new gU,this.#Q=new gU,this.#q=new IR(q);let K=Y.substring(this.rootPath.length).split(X);if(K.length===1&&!K[0])K.pop();if(Q===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=Q,this.root=this.newRoot(this.#J),this.roots[this.rootPath]=this.root;let W=this.root,V=K.length-1,U=J.sep,G=this.rootPath,H=!1;for(let M of K){let F=V--;W=W.child(M,{relative:new Array(F).fill("..").join(U),relativePosix:new Array(F).fill("..").join("/"),fullpath:G+=(H?"":U)+M}),H=!0}this.cwd=W}depth(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.depth()}childrenCache(){return this.#q}resolve(...Z){let J="";for(let q=Z.length-1;q>=0;q--){let $=Z[q];if(!$||$===".")continue;if(J=J?`${$}/${J}`:$,this.isAbsolute($))break}let X=this.#Z.get(J);if(X!==void 0)return X;let Q=this.cwd.resolve(J).fullpath();return this.#Z.set(J,Q),Q}resolvePosix(...Z){let J="";for(let q=Z.length-1;q>=0;q--){let $=Z[q];if(!$||$===".")continue;if(J=J?`${$}/${J}`:$,this.isAbsolute($))break}let X=this.#Q.get(J);if(X!==void 0)return X;let Q=this.cwd.resolve(J).fullpathPosix();return this.#Q.set(J,Q),Q}relative(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relative()}relativePosix(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relativePosix()}basename(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.name}dirname(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return(Z.parent||Z).fullpath()}async readdir(Z=this.cwd,J={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X}=J;if(!Z.canReaddir())return[];else{let Q=await Z.readdir();return X?Q:Q.map((q)=>q.name)}}readdirSync(Z=this.cwd,J={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0}=J;if(!Z.canReaddir())return[];else if(X)return Z.readdirSync();else return Z.readdirSync().map((Q)=>Q.name)}async lstat(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstat()}lstatSync(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstatSync()}async readlink(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=await Z.readlink();return J?X:X?.fullpath()}readlinkSync(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=Z.readlinkSync();return J?X:X?.fullpath()}async realpath(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=await Z.realpath();return J?X:X?.fullpath()}realpathSync(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=Z.realpathSync();return J?X:X?.fullpath()}async walk(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=[];if(!q||q(Z))Y.push(X?Z:Z.fullpath());let K=new Set,W=(U,G)=>{K.add(U),U.readdirCB((H,M)=>{if(H)return G(H);let F=M.length;if(!F)return G();let D=()=>{if(--F===0)G()};for(let C of M){if(!q||q(C))Y.push(X?C:C.fullpath());if(Q&&C.isSymbolicLink())C.realpath().then((L)=>L?.isUnknown()?L.lstat():L).then((L)=>L?.shouldWalk(K,$)?W(L,D):D());else if(C.shouldWalk(K,$))W(C,D);else D()}},!0)},V=Z;return new Promise((U,G)=>{W(V,(H)=>{if(H)return G(H);U(Y)})})}walkSync(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=[];if(!q||q(Z))Y.push(X?Z:Z.fullpath());let K=new Set([Z]);for(let W of K){let V=W.readdirSync();for(let U of V){if(!q||q(U))Y.push(X?U:U.fullpath());let G=U;if(U.isSymbolicLink()){if(!(Q&&(G=U.realpathSync())))continue;if(G.isUnknown())G.lstatSync()}if(G.shouldWalk(K,$))K.add(G)}}return Y}[Symbol.asyncIterator](){return this.iterate()}iterate(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;return this.stream(Z,J)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J;if(!q||q(Z))yield X?Z:Z.fullpath();let Y=new Set([Z]);for(let K of Y){let W=K.readdirSync();for(let V of W){if(!q||q(V))yield X?V:V.fullpath();let U=V;if(V.isSymbolicLink()){if(!(Q&&(U=V.realpathSync())))continue;if(U.isUnknown())U.lstatSync()}if(U.shouldWalk(Y,$))Y.add(U)}}}stream(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=new d9({objectMode:!0});if(!q||q(Z))Y.write(X?Z:Z.fullpath());let K=new Set,W=[Z],V=0,U=()=>{let G=!1;while(!G){let H=W.shift();if(!H){if(V===0)Y.end();return}V++,K.add(H);let M=(D,C,L=!1)=>{if(D)return Y.emit("error",D);if(Q&&!L){let O=[];for(let v of C)if(v.isSymbolicLink())O.push(v.realpath().then((S)=>S?.isUnknown()?S.lstat():S));if(O.length){Promise.all(O).then(()=>M(null,C,!0));return}}for(let O of C)if(O&&(!q||q(O))){if(!Y.write(X?O:O.fullpath()))G=!0}V--;for(let O of C){let v=O.realpathCached()||O;if(v.shouldWalk(K,$))W.push(v)}if(G&&!Y.flowing)Y.once("drain",U);else if(!F)U()},F=!0;H.readdirCB(M,!0),F=!1}};return U(),Y}streamSync(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=new d9({objectMode:!0}),K=new Set;if(!q||q(Z))Y.write(X?Z:Z.fullpath());let W=[Z],V=0,U=()=>{let G=!1;while(!G){let H=W.shift();if(!H){if(V===0)Y.end();return}V++,K.add(H);let M=H.readdirSync();for(let F of M)if(!q||q(F)){if(!Y.write(X?F:F.fullpath()))G=!0}V--;for(let F of M){let D=F;if(F.isSymbolicLink()){if(!(Q&&(D=F.realpathSync())))continue;if(D.isUnknown())D.lstatSync()}if(D.shouldWalk(K,$))W.push(D)}}if(G&&!Y.flowing)Y.once("drain",U)};return U(),Y}chdir(Z=this.cwd){let J=this.cwd;this.cwd=typeof Z==="string"?this.cwd.resolve(Z):Z,this.cwd[OR](J)}}class RX extends hU{sep="\\";constructor(Z=process.cwd(),J={}){let{nocase:X=!0}=J;super(Z,uU,"\\",{...J,nocase:X});this.nocase=X;for(let Q=this.cwd;Q;Q=Q.parent)Q.nocase=this.nocase}parseRootPath(Z){return uU.parse(Z).root.toUpperCase()}newRoot(Z){return new $Y(this.rootPath,M7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")||Z.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(Z)}}class IX extends hU{sep="/";constructor(Z=process.cwd(),J={}){let{nocase:X=!1}=J;super(Z,G70,"/",{...J,nocase:X});this.nocase=X}parseRootPath(Z){return"/"}newRoot(Z){return new YY(this.rootPath,M7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")}}class KY extends IX{constructor(Z=process.cwd(),J={}){let{nocase:X=!0}=J;super(Z,{...J,nocase:X})}}var sl0=process.platform==="win32"?$Y:YY,_R=process.platform==="win32"?RX:process.platform==="darwin"?KY:IX;var T70=(Z)=>Z.length>=1,P70=(Z)=>Z.length>=1;class N3{#Z;#Q;#q;length;#J;#Y;#C;#N;#U;#K;#x=!0;constructor(Z,J,X,Q){if(!T70(Z))throw new TypeError("empty pattern list");if(!P70(J))throw new TypeError("empty glob list");if(J.length!==Z.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=Z.length,X<0||X>=this.length)throw new TypeError("index out of range");if(this.#Z=Z,this.#Q=J,this.#q=X,this.#J=Q,this.#q===0){if(this.isUNC()){let[q,$,Y,K,...W]=this.#Z,[V,U,G,H,...M]=this.#Q;if(W[0]==="")W.shift(),M.shift();let F=[q,$,Y,K,""].join("/"),D=[V,U,G,H,""].join("/");this.#Z=[F,...W],this.#Q=[D,...M],this.length=this.#Z.length}else if(this.isDrive()||this.isAbsolute()){let[q,...$]=this.#Z,[Y,...K]=this.#Q;if($[0]==="")$.shift(),K.shift();let W=q+"/",V=Y+"/";this.#Z=[W,...$],this.#Q=[V,...K],this.length=this.#Z.length}}}pattern(){return this.#Z[this.#q]}isString(){return typeof this.#Z[this.#q]==="string"}isGlobstar(){return this.#Z[this.#q]===m2}isRegExp(){return this.#Z[this.#q]instanceof RegExp}globString(){return this.#C=this.#C||(this.#q===0?this.isAbsolute()?this.#Q[0]+this.#Q.slice(1).join("/"):this.#Q.join("/"):this.#Q.slice(this.#q).join("/"))}hasMore(){return this.length>this.#q+1}rest(){if(this.#Y!==void 0)return this.#Y;if(!this.hasMore())return this.#Y=null;return this.#Y=new N3(this.#Z,this.#Q,this.#q+1,this.#J),this.#Y.#K=this.#K,this.#Y.#U=this.#U,this.#Y.#N=this.#N,this.#Y}isUNC(){let Z=this.#Z;return this.#U!==void 0?this.#U:this.#U=this.#J==="win32"&&this.#q===0&&Z[0]===""&&Z[1]===""&&typeof Z[2]==="string"&&!!Z[2]&&typeof Z[3]==="string"&&!!Z[3]}isDrive(){let Z=this.#Z;return this.#N!==void 0?this.#N:this.#N=this.#J==="win32"&&this.#q===0&&this.length>1&&typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0])}isAbsolute(){let Z=this.#Z;return this.#K!==void 0?this.#K:this.#K=Z[0]===""&&Z.length>1||this.isDrive()||this.isUNC()}root(){let Z=this.#Z[0];return typeof Z==="string"&&this.isAbsolute()&&this.#q===0?Z:""}checkFollowGlobstar(){return!(this.#q===0||!this.isGlobstar()||!this.#x)}markFollowGlobstar(){if(this.#q===0||!this.isGlobstar()||!this.#x)return!1;return this.#x=!1,!0}}var A70=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class OX{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(Z,{nobrace:J,nocase:X,noext:Q,noglobstar:q,platform:$=A70}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=$,this.mmopts={dot:!0,nobrace:J,nocase:X,noext:Q,noglobstar:q,optimizationLevel:2,platform:$,nocomment:!0,nonegate:!0};for(let Y of Z)this.add(Y)}add(Z){let J=new G4(Z,this.mmopts);for(let X=0;X<J.set.length;X++){let Q=J.set[X],q=J.globParts[X];if(!Q||!q)throw new Error("invalid pattern object");while(Q[0]==="."&&q[0]===".")Q.shift(),q.shift();let $=new N3(Q,q,0,this.platform),Y=new G4($.globString(),this.mmopts),K=q[q.length-1]==="**",W=$.isAbsolute();if(W)this.absolute.push(Y);else this.relative.push(Y);if(K)if(W)this.absoluteChildren.push(Y);else this.relativeChildren.push(Y)}}ignored(Z){let J=Z.fullpath(),X=`${J}/`,Q=Z.relative()||".",q=`${Q}/`;for(let $ of this.relative)if($.match(Q)||$.match(q))return!0;for(let $ of this.absolute)if($.match(J)||$.match(X))return!0;return!1}childrenIgnored(Z){let J=Z.fullpath()+"/",X=(Z.relative()||".")+"/";for(let Q of this.relativeChildren)if(Q.match(X))return!0;for(let Q of this.absoluteChildren)if(Q.match(J))return!0;return!1}}class dU{store;constructor(Z=new Map){this.store=Z}copy(){return new dU(new Map(this.store))}hasWalked(Z,J){return this.store.get(Z.fullpath())?.has(J.globString())}storeWalked(Z,J){let X=Z.fullpath(),Q=this.store.get(X);if(Q)Q.add(J.globString());else this.store.set(X,new Set([J.globString()]))}}class SR{store=new Map;add(Z,J,X){let Q=(J?2:0)|(X?1:0),q=this.store.get(Z);this.store.set(Z,q===void 0?Q:Q&q)}entries(){return[...this.store.entries()].map(([Z,J])=>[Z,!!(J&2),!!(J&1)])}}class TR{store=new Map;add(Z,J){if(!Z.canReaddir())return;let X=this.store.get(Z);if(X){if(!X.find((Q)=>Q.globString()===J.globString()))X.push(J)}else this.store.set(Z,[J])}get(Z){let J=this.store.get(Z);if(!J)throw new Error("attempting to walk unknown path");return J}entries(){return this.keys().map((Z)=>[Z,this.store.get(Z)])}keys(){return[...this.store.keys()].filter((Z)=>Z.canReaddir())}}class _X{hasWalkedCache;matches=new SR;subwalks=new TR;patterns;follow;dot;opts;constructor(Z,J){this.opts=Z,this.follow=!!Z.follow,this.dot=!!Z.dot,this.hasWalkedCache=J?J.copy():new dU}processPatterns(Z,J){this.patterns=J;let X=J.map((Q)=>[Z,Q]);for(let[Q,q]of X){this.hasWalkedCache.storeWalked(Q,q);let $=q.root(),Y=q.isAbsolute()&&this.opts.absolute!==!1;if($){Q=Q.resolve($==="/"&&this.opts.root!==void 0?this.opts.root:$);let U=q.rest();if(!U){this.matches.add(Q,!0,!1);continue}else q=U}if(Q.isENOENT())continue;let K,W,V=!1;while(typeof(K=q.pattern())==="string"&&(W=q.rest()))Q=Q.resolve(K),q=W,V=!0;if(K=q.pattern(),W=q.rest(),V){if(this.hasWalkedCache.hasWalked(Q,q))continue;this.hasWalkedCache.storeWalked(Q,q)}if(typeof K==="string"){let U=K===".."||K===""||K===".";this.matches.add(Q.resolve(K),Y,U);continue}else if(K===m2){if(!Q.isSymbolicLink()||this.follow||q.checkFollowGlobstar())this.subwalks.add(Q,q);let U=W?.pattern(),G=W?.rest();if(!W||(U===""||U===".")&&!G)this.matches.add(Q,Y,U===""||U===".");else if(U===".."){let H=Q.parent||Q;if(!G)this.matches.add(H,Y,!0);else if(!this.hasWalkedCache.hasWalked(H,G))this.subwalks.add(H,G)}}else if(K instanceof RegExp)this.subwalks.add(Q,q)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new _X(this.opts,this.hasWalkedCache)}filterEntries(Z,J){let X=this.subwalks.get(Z),Q=this.child();for(let q of J)for(let $ of X){let Y=$.isAbsolute(),K=$.pattern(),W=$.rest();if(K===m2)Q.testGlobstar(q,$,W,Y);else if(K instanceof RegExp)Q.testRegExp(q,K,W,Y);else Q.testString(q,K,W,Y)}return Q}testGlobstar(Z,J,X,Q){if(this.dot||!Z.name.startsWith(".")){if(!J.hasMore())this.matches.add(Z,Q,!1);if(Z.canReaddir()){if(this.follow||!Z.isSymbolicLink())this.subwalks.add(Z,J);else if(Z.isSymbolicLink()){if(X&&J.checkFollowGlobstar())this.subwalks.add(Z,X);else if(J.markFollowGlobstar())this.subwalks.add(Z,J)}}}if(X){let q=X.pattern();if(typeof q==="string"&&q!==".."&&q!==""&&q!==".")this.testString(Z,q,X.rest(),Q);else if(q===".."){let $=Z.parent||Z;this.subwalks.add($,X)}else if(q instanceof RegExp)this.testRegExp(Z,q,X.rest(),Q)}}testRegExp(Z,J,X,Q){if(!J.test(Z.name))return;if(!X)this.matches.add(Z,Q,!1);else this.subwalks.add(Z,X)}testString(Z,J,X,Q){if(!Z.isNamed(J))return;if(!X)this.matches.add(Z,Q,!1);else this.subwalks.add(Z,X)}}var E70=(Z,J)=>typeof Z==="string"?new OX([Z],J):Array.isArray(Z)?new OX(Z,J):Z;class iU{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#Z=[];#Q;#q;signal;maxDepth;includeChildMatches;constructor(Z,J,X){if(this.patterns=Z,this.path=J,this.opts=X,this.#q=!X.posix&&X.platform==="win32"?"\\":"/",this.includeChildMatches=X.includeChildMatches!==!1,X.ignore||!this.includeChildMatches){if(this.#Q=E70(X.ignore??[],X),!this.includeChildMatches&&typeof this.#Q.add!=="function")throw new Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=X.maxDepth||1/0,X.signal)this.signal=X.signal,this.signal.addEventListener("abort",()=>{this.#Z.length=0})}#J(Z){return this.seen.has(Z)||!!this.#Q?.ignored?.(Z)}#Y(Z){return!!this.#Q?.childrenIgnored?.(Z)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let Z=void 0;while(!this.paused&&(Z=this.#Z.shift()))Z()}onResume(Z){if(this.signal?.aborted)return;if(!this.paused)Z();else this.#Z.push(Z)}async matchCheck(Z,J){if(J&&this.opts.nodir)return;let X;if(this.opts.realpath){if(X=Z.realpathCached()||await Z.realpath(),!X)return;Z=X}let q=Z.isUnknown()||this.opts.stat?await Z.lstat():Z;if(this.opts.follow&&this.opts.nodir&&q?.isSymbolicLink()){let $=await q.realpath();if($&&($.isUnknown()||this.opts.stat))await $.lstat()}return this.matchCheckTest(q,J)}matchCheckTest(Z,J){return Z&&(this.maxDepth===1/0||Z.depth()<=this.maxDepth)&&(!J||Z.canReaddir())&&(!this.opts.nodir||!Z.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!Z.isSymbolicLink()||!Z.realpathCached()?.isDirectory())&&!this.#J(Z)?Z:void 0}matchCheckSync(Z,J){if(J&&this.opts.nodir)return;let X;if(this.opts.realpath){if(X=Z.realpathCached()||Z.realpathSync(),!X)return;Z=X}let q=Z.isUnknown()||this.opts.stat?Z.lstatSync():Z;if(this.opts.follow&&this.opts.nodir&&q?.isSymbolicLink()){let $=q.realpathSync();if($&&($?.isUnknown()||this.opts.stat))$.lstatSync()}return this.matchCheckTest(q,J)}matchFinish(Z,J){if(this.#J(Z))return;if(!this.includeChildMatches&&this.#Q?.add){let q=`${Z.relativePosix()}/**`;this.#Q.add(q)}let X=this.opts.absolute===void 0?J:this.opts.absolute;this.seen.add(Z);let Q=this.opts.mark&&Z.isDirectory()?this.#q:"";if(this.opts.withFileTypes)this.matchEmit(Z);else if(X){let q=this.opts.posix?Z.fullpathPosix():Z.fullpath();this.matchEmit(q+Q)}else{let q=this.opts.posix?Z.relativePosix():Z.relative(),$=this.opts.dotRelative&&!q.startsWith(".."+this.#q)?"."+this.#q:"";this.matchEmit(!q?"."+Q:$+q+Q)}}async match(Z,J,X){let Q=await this.matchCheck(Z,X);if(Q)this.matchFinish(Q,J)}matchSync(Z,J,X){let Q=this.matchCheckSync(Z,X);if(Q)this.matchFinish(Q,J)}walkCB(Z,J,X){if(this.signal?.aborted)X();this.walkCB2(Z,J,new _X(this.opts),X)}walkCB2(Z,J,X,Q){if(this.#Y(Z))return Q();if(this.signal?.aborted)Q();if(this.paused){this.onResume(()=>this.walkCB2(Z,J,X,Q));return}X.processPatterns(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;q++,this.match(Y,K,W).then(()=>$())}for(let Y of X.subwalkTargets()){if(this.maxDepth!==1/0&&Y.depth()>=this.maxDepth)continue;q++;let K=Y.readdirCached();if(Y.calledReaddir())this.walkCB3(Y,K,X,$);else Y.readdirCB((W,V)=>this.walkCB3(Y,V,X,$),!0)}$()}walkCB3(Z,J,X,Q){X=X.filterEntries(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;q++,this.match(Y,K,W).then(()=>$())}for(let[Y,K]of X.subwalks.entries())q++,this.walkCB2(Y,K,X.child(),$);$()}walkCBSync(Z,J,X){if(this.signal?.aborted)X();this.walkCB2Sync(Z,J,new _X(this.opts),X)}walkCB2Sync(Z,J,X,Q){if(this.#Y(Z))return Q();if(this.signal?.aborted)Q();if(this.paused){this.onResume(()=>this.walkCB2Sync(Z,J,X,Q));return}X.processPatterns(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;this.matchSync(Y,K,W)}for(let Y of X.subwalkTargets()){if(this.maxDepth!==1/0&&Y.depth()>=this.maxDepth)continue;q++;let K=Y.readdirSync();this.walkCB3Sync(Y,K,X,$)}$()}walkCB3Sync(Z,J,X,Q){X=X.filterEntries(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;this.matchSync(Y,K,W)}for(let[Y,K]of X.subwalks.entries())q++,this.walkCB2Sync(Y,K,X.child(),$);$()}}class WY extends iU{matches=new Set;constructor(Z,J,X){super(Z,J,X)}matchEmit(Z){this.matches.add(Z)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((Z,J)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)J(this.signal.reason);else Z(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}class zY extends iU{results;constructor(Z,J,X){super(Z,J,X);this.results=new d9({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(Z){if(this.results.write(Z),!this.results.flowing)this.pause()}stream(){let Z=this.path;if(Z.isUnknown())Z.lstat().then(()=>{this.walkCB(Z,this.patterns,()=>this.results.end())});else this.walkCB(Z,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}var k70=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class F7{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(Z,J){if(!J)throw new TypeError("glob options required");if(this.withFileTypes=!!J.withFileTypes,this.signal=J.signal,this.follow=!!J.follow,this.dot=!!J.dot,this.dotRelative=!!J.dotRelative,this.nodir=!!J.nodir,this.mark=!!J.mark,!J.cwd)this.cwd="";else if(J.cwd instanceof URL||J.cwd.startsWith("file://"))J.cwd=v70(J.cwd);if(this.cwd=J.cwd||"",this.root=J.root,this.magicalBraces=!!J.magicalBraces,this.nobrace=!!J.nobrace,this.noext=!!J.noext,this.realpath=!!J.realpath,this.absolute=J.absolute,this.includeChildMatches=J.includeChildMatches!==!1,this.noglobstar=!!J.noglobstar,this.matchBase=!!J.matchBase,this.maxDepth=typeof J.maxDepth==="number"?J.maxDepth:1/0,this.stat=!!J.stat,this.ignore=J.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof Z==="string")Z=[Z];if(this.windowsPathsNoEscape=!!J.windowsPathsNoEscape||J.allowWindowsEscape===!1,this.windowsPathsNoEscape)Z=Z.map((K)=>K.replace(/\\/g,"/"));if(this.matchBase){if(J.noglobstar)throw new TypeError("base matching requires globstar");Z=Z.map((K)=>K.includes("/")?K:`./**/${K}`)}if(this.pattern=Z,this.platform=J.platform||k70,this.opts={...J,platform:this.platform},J.scurry){if(this.scurry=J.scurry,J.nocase!==void 0&&J.nocase!==J.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let K=J.platform==="win32"?RX:J.platform==="darwin"?KY:J.platform?IX:_R;this.scurry=new K(this.cwd,{nocase:J.nocase,fs:J.fs})}this.nocase=this.scurry.nocase;let X=this.platform==="darwin"||this.platform==="win32",Q={...J,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:X,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},q=this.pattern.map((K)=>new G4(K,Q)),[$,Y]=q.reduce((K,W)=>{return K[0].push(...W.set),K[1].push(...W.globParts),K},[[],[]]);this.patterns=$.map((K,W)=>{let V=Y[W];if(!V)throw new Error("invalid pattern object");return new N3(K,V,0,this.platform)})}async walk(){return[...await new WY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new WY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new zY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new zY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}var lU=(Z,J={})=>{if(!Array.isArray(Z))Z=[Z];for(let X of Z)if(new G4(X,J).hasMagic())return!0;return!1};function UY(Z,J={}){return new F7(Z,J).streamSync()}function AR(Z,J={}){return new F7(Z,J).stream()}function ER(Z,J={}){return new F7(Z,J).walkSync()}async function PR(Z,J={}){return new F7(Z,J).walk()}function xY(Z,J={}){return new F7(Z,J).iterateSync()}function vR(Z,J={}){return new F7(Z,J).iterate()}var f70=UY,b70=Object.assign(AR,{sync:UY}),m70=xY,y70=Object.assign(vR,{sync:xY}),c70=Object.assign(ER,{stream:UY,iterate:xY}),VY=Object.assign(PR,{glob:PR,globSync:ER,sync:c70,globStream:AR,stream:b70,globStreamSync:UY,streamSync:f70,globIterate:vR,iterate:y70,globIterateSync:xY,iterateSync:m70,Glob:F7,hasMagic:lU,escape:H3,unescape:d4});VY.glob=VY;var FT=U4(Bx(),1);import qq0 from"fs";import $q0 from"path";function EX(Z,J){return function X(){return Z.apply(J,arguments)}}var{toString:S90}=Object.prototype,{getPrototypeOf:RY}=Object,{iterator:IY,toStringTag:cO}=Symbol,OY=((Z)=>(J)=>{let X=S90.call(J);return Z[X]||(Z[X]=X.slice(8,-1).toLowerCase())})(Object.create(null)),n4=(Z)=>{return Z=Z.toLowerCase(),(J)=>OY(J)===Z},_Y=(Z)=>(J)=>typeof J===Z,{isArray:R3}=Array,C3=_Y("undefined");function vX(Z){return Z!==null&&!C3(Z)&&Z.constructor!==null&&!C3(Z.constructor)&&M6(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var pO=n4("ArrayBuffer");function T90(Z){let J;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&pO(Z.buffer);return J}var P90=_Y("string"),M6=_Y("function"),uO=_Y("number"),kX=(Z)=>Z!==null&&typeof Z==="object",A90=(Z)=>Z===!0||Z===!1,CY=(Z)=>{if(OY(Z)!=="object")return!1;let J=RY(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(cO in Z)&&!(IY in Z)},E90=(Z)=>{if(!kX(Z)||vX(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},v90=n4("Date"),k90=n4("File"),f90=(Z)=>{return!!(Z&&typeof Z.uri!=="undefined")},b90=(Z)=>Z&&typeof Z.getParts!=="undefined",m90=n4("Blob"),y90=n4("FileList"),c90=(Z)=>kX(Z)&&M6(Z.pipe);function p90(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof global!=="undefined")return global;return{}}var mO=p90(),yO=typeof mO.FormData!=="undefined"?mO.FormData:void 0,u90=(Z)=>{if(!Z)return!1;if(yO&&Z instanceof yO)return!0;let J=RY(Z);if(!J||J===Object.prototype)return!1;if(!M6(Z.append))return!1;let X=OY(Z);return X==="formdata"||X==="object"&&M6(Z.toString)&&Z.toString()==="[object FormData]"},g90=n4("URLSearchParams"),[h90,d90,i90,l90]=["ReadableStream","Request","Response","Headers"].map(n4),o90=(Z)=>{return Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function fX(Z,J,{allOwnKeys:X=!1}={}){if(Z===null||typeof Z==="undefined")return;let Q,q;if(typeof Z!=="object")Z=[Z];if(R3(Z))for(Q=0,q=Z.length;Q<q;Q++)J.call(null,Z[Q],Q,Z);else{if(vX(Z))return;let $=X?Object.getOwnPropertyNames(Z):Object.keys(Z),Y=$.length,K;for(Q=0;Q<Y;Q++)K=$[Q],J.call(null,Z[K],K,Z)}}function gO(Z,J){if(vX(Z))return null;J=J.toLowerCase();let X=Object.keys(Z),Q=X.length,q;while(Q-- >0)if(q=X[Q],J===q.toLowerCase())return q;return null}var o9=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),hO=(Z)=>!C3(Z)&&Z!==o9;function Mx(...Z){let{caseless:J,skipUndefined:X}=hO(this)&&this||{},Q={},q=($,Y)=>{if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return;let K=J&&gO(Q,Y)||Y,W=Fx(Q,K)?Q[K]:void 0;if(CY(W)&&CY($))Q[K]=Mx(W,$);else if(CY($))Q[K]=Mx({},$);else if(R3($))Q[K]=$.slice();else if(!X||!C3($))Q[K]=$};for(let $=0,Y=Z.length;$<Y;$++)Z[$]&&fX(Z[$],q);return Q}var n90=(Z,J,X,{allOwnKeys:Q}={})=>{return fX(J,(q,$)=>{if(X&&M6(q))Object.defineProperty(Z,$,{__proto__:null,value:EX(q,X),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,$,{__proto__:null,value:q,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},s90=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},a90=(Z,J,X,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{__proto__:null,value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{__proto__:null,value:J.prototype}),X&&Object.assign(Z.prototype,X)},r90=(Z,J,X,Q)=>{let q,$,Y,K={};if(J=J||{},Z==null)return J;do{q=Object.getOwnPropertyNames(Z),$=q.length;while($-- >0)if(Y=q[$],(!Q||Q(Y,Z,J))&&!K[Y])J[Y]=Z[Y],K[Y]=!0;Z=X!==!1&&RY(Z)}while(Z&&(!X||X(Z,J))&&Z!==Object.prototype);return J},t90=(Z,J,X)=>{if(Z=String(Z),X===void 0||X>Z.length)X=Z.length;X-=J.length;let Q=Z.indexOf(J,X);return Q!==-1&&Q===X},e90=(Z)=>{if(!Z)return null;if(R3(Z))return Z;let J=Z.length;if(!uO(J))return null;let X=new Array(J);while(J-- >0)X[J]=Z[J];return X},ZZ0=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array!=="undefined"&&RY(Uint8Array)),JZ0=(Z,J)=>{let Q=(Z&&Z[IY]).call(Z),q;while((q=Q.next())&&!q.done){let $=q.value;J.call(Z,$[0],$[1])}},XZ0=(Z,J)=>{let X,Q=[];while((X=Z.exec(J))!==null)Q.push(X);return Q},QZ0=n4("HTMLFormElement"),qZ0=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function J(X,Q,q){return Q.toUpperCase()+q})},Fx=(({hasOwnProperty:Z})=>(J,X)=>Z.call(J,X))(Object.prototype),$Z0=n4("RegExp"),dO=(Z,J)=>{let X=Object.getOwnPropertyDescriptors(Z),Q={};fX(X,(q,$)=>{let Y;if((Y=J(q,$,Z))!==!1)Q[$]=Y||q}),Object.defineProperties(Z,Q)},YZ0=(Z)=>{dO(Z,(J,X)=>{if(M6(Z)&&["arguments","caller","callee"].includes(X))return!1;let Q=Z[X];if(!M6(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+X+"'")}})},KZ0=(Z,J)=>{let X={},Q=(q)=>{q.forEach(($)=>{X[$]=!0})};return R3(Z)?Q(Z):Q(String(Z).split(J)),X},WZ0=()=>{},zZ0=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function VZ0(Z){return!!(Z&&M6(Z.append)&&Z[cO]==="FormData"&&Z[IY])}var UZ0=(Z)=>{let J=new Array(10),X=(Q,q)=>{if(kX(Q)){if(J.indexOf(Q)>=0)return;if(vX(Q))return Q;if(!("toJSON"in Q)){J[q]=Q;let $=R3(Q)?[]:{};return fX(Q,(Y,K)=>{let W=X(Y,q+1);!C3(W)&&($[K]=W)}),J[q]=void 0,$}}return Q};return X(Z,0)},xZ0=n4("AsyncFunction"),GZ0=(Z)=>Z&&(kX(Z)||M6(Z))&&M6(Z.then)&&M6(Z.catch),iO=((Z,J)=>{if(Z)return setImmediate;return J?((X,Q)=>{return o9.addEventListener("message",({source:q,data:$})=>{if(q===o9&&$===X)Q.length&&Q.shift()()},!1),(q)=>{Q.push(q),o9.postMessage(X,"*")}})(`axios@${Math.random()}`,[]):(X)=>setTimeout(X)})(typeof setImmediate==="function",M6(o9.postMessage)),HZ0=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(o9):typeof process!=="undefined"&&process.nextTick||iO,BZ0=(Z)=>Z!=null&&M6(Z[IY]),E={isArray:R3,isArrayBuffer:pO,isBuffer:vX,isFormData:u90,isArrayBufferView:T90,isString:P90,isNumber:uO,isBoolean:A90,isObject:kX,isPlainObject:CY,isEmptyObject:E90,isReadableStream:h90,isRequest:d90,isResponse:i90,isHeaders:l90,isUndefined:C3,isDate:v90,isFile:k90,isReactNativeBlob:f90,isReactNative:b90,isBlob:m90,isRegExp:$Z0,isFunction:M6,isStream:c90,isURLSearchParams:g90,isTypedArray:ZZ0,isFileList:y90,forEach:fX,merge:Mx,extend:n90,trim:o90,stripBOM:s90,inherits:a90,toFlatObject:r90,kindOf:OY,kindOfTest:n4,endsWith:t90,toArray:e90,forEachEntry:JZ0,matchAll:XZ0,isHTMLForm:QZ0,hasOwnProperty:Fx,hasOwnProp:Fx,reduceDescriptors:dO,freezeMethods:YZ0,toObjectSet:KZ0,toCamelCase:qZ0,noop:WZ0,toFiniteNumber:zZ0,findKey:gO,global:o9,isContextDefined:hO,isSpecCompliantForm:VZ0,toJSONObject:UZ0,isAsyncFn:xZ0,isThenable:GZ0,setImmediate:iO,asap:HZ0,isIterable:BZ0};var MZ0=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lO=(Z)=>{let J={},X,Q,q;return Z&&Z.split(`
|
|
91
|
+
*/ml.exports=function(Z,J){if(typeof Z!=="string")throw new TypeError("expected path to be a string");if(Z==="\\"||Z==="/")return"/";var X=Z.length;if(X<=1)return Z;var Q="";if(X>4&&Z[3]==="\\"){var q=Z[2];if((q==="?"||q===".")&&Z.slice(0,2)==="\\\\")Z=Z.slice(2),Q="//"}var $=Z.split(/[/\\]+/);if(J!==!1&&$[$.length-1]==="")$.pop();return Q+$.join("/")}});var hl=a((ul,gl)=>{Object.defineProperty(ul,"__esModule",{value:!0});var pl=QK(),Xc0=ND(),yl="!",Qc0={returnIndex:!1},qc0=(Z)=>Array.isArray(Z)?Z:[Z],$c0=(Z,J)=>{if(typeof Z==="function")return Z;if(typeof Z==="string"){let X=pl(Z,J);return(Q)=>Z===Q||X(Q)}if(Z instanceof RegExp)return(X)=>Z.test(X);return(X)=>!1},cl=(Z,J,X,Q)=>{let q=Array.isArray(X),$=q?X[0]:X;if(!q&&typeof $!=="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call($));let Y=Xc0($,!1);for(let W=0;W<J.length;W++){let V=J[W];if(V(Y))return Q?-1:!1}let K=q&&[Y].concat(X.slice(1));for(let W=0;W<Z.length;W++){let V=Z[W];if(q?V(...K):V(Y))return Q?W:!0}return Q?-1:!1},DD=(Z,J,X=Qc0)=>{if(Z==null)throw new TypeError("anymatch: specify first argument");let Q=typeof X==="boolean"?{returnIndex:X}:X,q=Q.returnIndex||!1,$=qc0(Z),Y=$.filter((W)=>typeof W==="string"&&W.charAt(0)===yl).map((W)=>W.slice(1)).map((W)=>pl(W,Q)),K=$.filter((W)=>typeof W!=="string"||typeof W==="string"&&W.charAt(0)!==yl).map((W)=>$c0(W,Q));if(J==null)return(W,V=!1)=>{return cl(K,Y,W,typeof V==="boolean"?V:!1)};return cl(K,Y,J,q)};DD.default=DD;gl.exports=DD});var dl=a((k11,Yc0)=>{Yc0.exports=["3dm","3ds","3g2","3gp","7z","a","aac","adp","afdesign","afphoto","afpub","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"]});var ll=a((f11,il)=>{var Kc0=_0("path"),Wc0=dl(),zc0=new Set(Wc0);il.exports=(Z)=>zc0.has(Kc0.extname(Z).slice(1).toLowerCase())});var wz=a((xc0)=>{var{sep:Vc0}=_0("path"),{platform:jD}=process,Uc0=_0("os");xc0.EV_ALL="all";xc0.EV_READY="ready";xc0.EV_ADD="add";xc0.EV_CHANGE="change";xc0.EV_ADD_DIR="addDir";xc0.EV_UNLINK="unlink";xc0.EV_UNLINK_DIR="unlinkDir";xc0.EV_RAW="raw";xc0.EV_ERROR="error";xc0.STR_DATA="data";xc0.STR_END="end";xc0.STR_CLOSE="close";xc0.FSEVENT_CREATED="created";xc0.FSEVENT_MODIFIED="modified";xc0.FSEVENT_DELETED="deleted";xc0.FSEVENT_MOVED="moved";xc0.FSEVENT_CLONED="cloned";xc0.FSEVENT_UNKNOWN="unknown";xc0.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1;xc0.FSEVENT_TYPE_FILE="file";xc0.FSEVENT_TYPE_DIRECTORY="directory";xc0.FSEVENT_TYPE_SYMLINK="symlink";xc0.KEY_LISTENERS="listeners";xc0.KEY_ERR="errHandlers";xc0.KEY_RAW="rawEmitters";xc0.HANDLER_KEYS=[xc0.KEY_LISTENERS,xc0.KEY_ERR,xc0.KEY_RAW];xc0.DOT_SLASH=`.${Vc0}`;xc0.BACK_SLASH_RE=/\\/g;xc0.DOUBLE_SLASH_RE=/\/\//;xc0.SLASH_OR_BACK_SLASH_RE=/[/\\]/;xc0.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/;xc0.REPLACER_RE=/^\.[/\\]/;xc0.SLASH="/";xc0.SLASH_SLASH="//";xc0.BRACE_START="{";xc0.BANG="!";xc0.ONE_DOT=".";xc0.TWO_DOTS="..";xc0.STAR="*";xc0.GLOBSTAR="**";xc0.ROOT_GLOBSTAR="/**/*";xc0.SLASH_GLOBSTAR="/**";xc0.DIR_SUFFIX="Dir";xc0.ANYMATCH_OPTS={dot:!0};xc0.STRING_TYPE="string";xc0.FUNCTION_TYPE="function";xc0.EMPTY_STR="";xc0.EMPTY_FN=()=>{};xc0.IDENTITY_FN=(Z)=>Z;xc0.isWindows=jD==="win32";xc0.isMacos=jD==="darwin";xc0.isLinux=jD==="linux";xc0.isIBMi=Uc0.type()==="OS400"});var Xo=a((m11,Jo)=>{var _5=_0("fs"),L8=_0("path"),{promisify:yq}=_0("util"),zp0=ll(),{isWindows:Vp0,isLinux:Up0,EMPTY_FN:xp0,EMPTY_STR:Gp0,KEY_LISTENERS:vJ,KEY_ERR:LD,KEY_RAW:fq,HANDLER_KEYS:Hp0,EV_CHANGE:Rz,EV_ADD:Cz,EV_ADD_DIR:Bp0,EV_ERROR:rl,STR_DATA:Mp0,STR_END:Fp0,BRACE_START:Np0,STAR:Dp0}=wz(),jp0=yq(_5.open),tl=yq(_5.stat),Lp0=yq(_5.lstat),wp0=yq(_5.close),wD=yq(_5.realpath),Cp0={lstat:Lp0,stat:tl},RD=(Z,J)=>{if(Z instanceof Set)Z.forEach(J);else J(Z)},bq=(Z,J,X)=>{let Q=Z[J];if(!(Q instanceof Set))Z[J]=Q=new Set([Q]);Q.add(X)},Rp0=(Z)=>(J)=>{let X=Z[J];if(X instanceof Set)X.clear();else delete Z[J]},mq=(Z,J,X)=>{let Q=Z[J];if(Q instanceof Set)Q.delete(X);else if(Q===X)delete Z[J]},el=(Z)=>Z instanceof Set?Z.size===0:!Z,Iz=new Map;function al(Z,J,X,Q,q){let $=(Y,K)=>{if(X(Z),q(Y,K,{watchedPath:Z}),K&&Z!==K)Oz(L8.resolve(Z,K),vJ,L8.join(Z,K))};try{return _5.watch(Z,J,$)}catch(Y){Q(Y)}}var Oz=(Z,J,X,Q,q)=>{let $=Iz.get(Z);if(!$)return;RD($[J],(Y)=>{Y(X,Q,q)})},Ip0=(Z,J,X,Q)=>{let{listener:q,errHandler:$,rawEmitter:Y}=Q,K=Iz.get(J),W;if(!X.persistent)return W=al(Z,X,q,$,Y),W.close.bind(W);if(K)bq(K,vJ,q),bq(K,LD,$),bq(K,fq,Y);else{if(W=al(Z,X,Oz.bind(null,J,vJ),$,Oz.bind(null,J,fq)),!W)return;W.on(rl,async(V)=>{let U=Oz.bind(null,J,LD);if(K.watcherUnusable=!0,Vp0&&V.code==="EPERM")try{let G=await jp0(Z,"r");await wp0(G),U(V)}catch(G){}else U(V)}),K={listeners:q,errHandlers:$,rawEmitters:Y,watcher:W},Iz.set(J,K)}return()=>{if(mq(K,vJ,q),mq(K,LD,$),mq(K,fq,Y),el(K.listeners))K.watcher.close(),Iz.delete(J),Hp0.forEach(Rp0(K)),K.watcher=void 0,Object.freeze(K)}},CD=new Map,Op0=(Z,J,X,Q)=>{let{listener:q,rawEmitter:$}=Q,Y=CD.get(J),K=new Set,W=new Set,V=Y&&Y.options;if(V&&(V.persistent<X.persistent||V.interval>X.interval))K=Y.listeners,W=Y.rawEmitters,_5.unwatchFile(J),Y=void 0;if(Y)bq(Y,vJ,q),bq(Y,fq,$);else Y={listeners:q,rawEmitters:$,options:X,watcher:_5.watchFile(J,X,(U,G)=>{RD(Y.rawEmitters,(M)=>{M(Rz,J,{curr:U,prev:G})});let H=U.mtimeMs;if(U.size!==G.size||H>G.mtimeMs||H===0)RD(Y.listeners,(M)=>M(Z,U))})},CD.set(J,Y);return()=>{if(mq(Y,vJ,q),mq(Y,fq,$),el(Y.listeners))CD.delete(J),_5.unwatchFile(J),Y.options=Y.watcher=void 0,Object.freeze(Y)}};class Zo{constructor(Z){this.fsw=Z,this._boundHandleError=(J)=>Z._handleError(J)}_watchWithNodeFs(Z,J){let X=this.fsw.options,Q=L8.dirname(Z),q=L8.basename(Z);this.fsw._getWatchedDir(Q).add(q);let Y=L8.resolve(Z),K={persistent:X.persistent};if(!J)J=xp0;let W;if(X.usePolling)K.interval=X.enableBinaryInterval&&zp0(q)?X.binaryInterval:X.interval,W=Op0(Z,Y,K,{listener:J,rawEmitter:this.fsw._emitRaw});else W=Ip0(Z,Y,K,{listener:J,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw});return W}_handleFile(Z,J,X){if(this.fsw.closed)return;let Q=L8.dirname(Z),q=L8.basename(Z),$=this.fsw._getWatchedDir(Q),Y=J;if($.has(q))return;let K=async(V,U)=>{if(!this.fsw._throttle("watch",Z,5))return;if(!U||U.mtimeMs===0)try{let G=await tl(Z);if(this.fsw.closed)return;let{atimeMs:H,mtimeMs:M}=G;if(!H||H<=M||M!==Y.mtimeMs)this.fsw._emit(Rz,Z,G);if(Up0&&Y.ino!==G.ino)this.fsw._closeFile(V),Y=G,this.fsw._addPathCloser(V,this._watchWithNodeFs(Z,K));else Y=G}catch(G){this.fsw._remove(Q,q)}else if($.has(q)){let{atimeMs:G,mtimeMs:H}=U;if(!G||G<=H||H!==Y.mtimeMs)this.fsw._emit(Rz,Z,U);Y=U}},W=this._watchWithNodeFs(Z,K);if(!(X&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(Z)){if(!this.fsw._throttle(Cz,Z,0))return;this.fsw._emit(Cz,Z,J)}return W}async _handleSymlink(Z,J,X,Q){if(this.fsw.closed)return;let q=Z.fullPath,$=this.fsw._getWatchedDir(J);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let Y;try{Y=await wD(X)}catch(K){return this.fsw._emitReady(),!0}if(this.fsw.closed)return;if($.has(Q)){if(this.fsw._symlinkPaths.get(q)!==Y)this.fsw._symlinkPaths.set(q,Y),this.fsw._emit(Rz,X,Z.stats)}else $.add(Q),this.fsw._symlinkPaths.set(q,Y),this.fsw._emit(Cz,X,Z.stats);return this.fsw._emitReady(),!0}if(this.fsw._symlinkPaths.has(q))return!0;this.fsw._symlinkPaths.set(q,!0)}_handleRead(Z,J,X,Q,q,$,Y){if(Z=L8.join(Z,Gp0),!X.hasGlob){if(Y=this.fsw._throttle("readdir",Z,1000),!Y)return}let K=this.fsw._getWatchedDir(X.path),W=new Set,V=this.fsw._readdirp(Z,{fileFilter:(U)=>X.filterPath(U),directoryFilter:(U)=>X.filterDir(U),depth:0}).on(Mp0,async(U)=>{if(this.fsw.closed){V=void 0;return}let G=U.path,H=L8.join(Z,G);if(W.add(G),U.stats.isSymbolicLink()&&await this._handleSymlink(U,Z,H,G))return;if(this.fsw.closed){V=void 0;return}if(G===Q||!Q&&!K.has(G))this.fsw._incrReadyCount(),H=L8.join(q,L8.relative(q,H)),this._addToNodeFs(H,J,X,$+1)}).on(rl,this._boundHandleError);return new Promise((U)=>V.once(Fp0,()=>{if(this.fsw.closed){V=void 0;return}let G=Y?Y.clear():!1;if(U(),K.getChildren().filter((H)=>{return H!==Z&&!W.has(H)&&(!X.hasGlob||X.filterPath({fullPath:L8.resolve(Z,H)}))}).forEach((H)=>{this.fsw._remove(Z,H)}),V=void 0,G)this._handleRead(Z,!1,X,Q,q,$,Y)}))}async _handleDir(Z,J,X,Q,q,$,Y){let K=this.fsw._getWatchedDir(L8.dirname(Z)),W=K.has(L8.basename(Z));if(!(X&&this.fsw.options.ignoreInitial)&&!q&&!W){if(!$.hasGlob||$.globFilter(Z))this.fsw._emit(Bp0,Z,J)}K.add(L8.basename(Z)),this.fsw._getWatchedDir(Z);let V,U,G=this.fsw.options.depth;if((G==null||Q<=G)&&!this.fsw._symlinkPaths.has(Y)){if(!q){if(await this._handleRead(Z,X,$,q,Z,Q,V),this.fsw.closed)return}U=this._watchWithNodeFs(Z,(H,M)=>{if(M&&M.mtimeMs===0)return;this._handleRead(H,!1,$,q,Z,Q,V)})}return U}async _addToNodeFs(Z,J,X,Q,q){let $=this.fsw._emitReady;if(this.fsw._isIgnored(Z)||this.fsw.closed)return $(),!1;let Y=this.fsw._getWatchHelpers(Z,Q);if(!Y.hasGlob&&X)Y.hasGlob=X.hasGlob,Y.globFilter=X.globFilter,Y.filterPath=(K)=>X.filterPath(K),Y.filterDir=(K)=>X.filterDir(K);try{let K=await Cp0[Y.statMethod](Y.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(Y.watchPath,K))return $(),!1;let W=this.fsw.options.followSymlinks&&!Z.includes(Dp0)&&!Z.includes(Np0),V;if(K.isDirectory()){let U=L8.resolve(Z),G=W?await wD(Z):Z;if(this.fsw.closed)return;if(V=await this._handleDir(Y.watchPath,K,J,Q,q,Y,G),this.fsw.closed)return;if(U!==G&&G!==void 0)this.fsw._symlinkPaths.set(U,G)}else if(K.isSymbolicLink()){let U=W?await wD(Z):Z;if(this.fsw.closed)return;let G=L8.dirname(Y.watchPath);if(this.fsw._getWatchedDir(G).add(Y.watchPath),this.fsw._emit(Cz,Y.watchPath,K),V=await this._handleDir(G,K,J,Q,Z,Y,U),this.fsw.closed)return;if(U!==void 0)this.fsw._symlinkPaths.set(L8.resolve(Z),U)}else V=this._handleFile(Y.watchPath,K,J);return $(),this.fsw._addPathCloser(Z,V),!1}catch(K){if(this.fsw._handleError(K))return $(),Z}}}Jo.exports=Zo});var Vo=a((y11,AD)=>{var TD=_0("fs"),w8=_0("path"),{promisify:PD}=_0("util"),kJ;try{kJ=(()=>{throw new Error("Cannot require module "+"fsevents");})()}catch(Z){if(process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR)console.error(Z)}if(kJ){let Z=process.version.match(/v(\d+)\.(\d+)/);if(Z&&Z[1]&&Z[2]){let J=Number.parseInt(Z[1],10),X=Number.parseInt(Z[2],10);if(J===8&&X<16)kJ=void 0}}var{EV_ADD:ID,EV_CHANGE:_p0,EV_ADD_DIR:Qo,EV_UNLINK:_z,EV_ERROR:Sp0,STR_DATA:Tp0,STR_END:Pp0,FSEVENT_CREATED:Ap0,FSEVENT_MODIFIED:Ep0,FSEVENT_DELETED:vp0,FSEVENT_MOVED:kp0,FSEVENT_UNKNOWN:fp0,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:bp0,FSEVENT_TYPE_FILE:mp0,FSEVENT_TYPE_DIRECTORY:cq,FSEVENT_TYPE_SYMLINK:Wo,ROOT_GLOBSTAR:qo,DIR_SUFFIX:yp0,DOT_SLASH:$o,FUNCTION_TYPE:OD,EMPTY_FN:cp0,IDENTITY_FN:pp0}=wz(),up0=(Z)=>isNaN(Z)?{}:{depth:Z},SD=PD(TD.stat),gp0=PD(TD.lstat),Yo=PD(TD.realpath),hp0={stat:SD,lstat:gp0},dZ=new Map,dp0=10,ip0=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),lp0=(Z,J)=>{return{stop:kJ.watch(Z,J)}};function op0(Z,J,X,Q){let q=w8.extname(J)?w8.dirname(J):J,$=w8.dirname(q),Y=dZ.get(q);if(np0($))q=$;let K=w8.resolve(Z),W=K!==J,V=(G,H,M)=>{if(W)G=G.replace(J,K);if(G===K||!G.indexOf(K+w8.sep))X(G,H,M)},U=!1;for(let G of dZ.keys())if(J.indexOf(w8.resolve(G)+w8.sep)===0){q=G,Y=dZ.get(q),U=!0;break}if(Y||U)Y.listeners.add(V);else Y={listeners:new Set([V]),rawEmitter:Q,watcher:lp0(q,(G,H)=>{if(!Y.listeners.size)return;if(H&bp0)return;let M=kJ.getInfo(G,H);Y.listeners.forEach((F)=>{F(G,H,M)}),Y.rawEmitter(M.event,G,M)})},dZ.set(q,Y);return()=>{let G=Y.listeners;if(G.delete(V),!G.size){if(dZ.delete(q),Y.watcher)return Y.watcher.stop().then(()=>{Y.rawEmitter=Y.watcher=void 0,Object.freeze(Y)})}}}var np0=(Z)=>{let J=0;for(let X of dZ.keys())if(X.indexOf(Z)===0){if(J++,J>=dp0)return!0}return!1},sp0=()=>kJ&&dZ.size<128,_D=(Z,J)=>{let X=0;while(!Z.indexOf(J)&&(Z=w8.dirname(Z))!==J)X++;return X},Ko=(Z,J)=>Z.type===cq&&J.isDirectory()||Z.type===Wo&&J.isSymbolicLink()||Z.type===mp0&&J.isFile();class zo{constructor(Z){this.fsw=Z}checkIgnored(Z,J){let X=this.fsw._ignoredPaths;if(this.fsw._isIgnored(Z,J)){if(X.add(Z),J&&J.isDirectory())X.add(Z+qo);return!0}X.delete(Z),X.delete(Z+qo)}addOrChange(Z,J,X,Q,q,$,Y,K){let W=q.has($)?_p0:ID;this.handleEvent(W,Z,J,X,Q,q,$,Y,K)}async checkExists(Z,J,X,Q,q,$,Y,K){try{let W=await SD(Z);if(this.fsw.closed)return;if(Ko(Y,W))this.addOrChange(Z,J,X,Q,q,$,Y,K);else this.handleEvent(_z,Z,J,X,Q,q,$,Y,K)}catch(W){if(W.code==="EACCES")this.addOrChange(Z,J,X,Q,q,$,Y,K);else this.handleEvent(_z,Z,J,X,Q,q,$,Y,K)}}handleEvent(Z,J,X,Q,q,$,Y,K,W){if(this.fsw.closed||this.checkIgnored(J))return;if(Z===_z){let V=K.type===cq;if(V||$.has(Y))this.fsw._remove(q,Y,V)}else{if(Z===ID){if(K.type===cq)this.fsw._getWatchedDir(J);if(K.type===Wo&&W.followSymlinks){let U=W.depth===void 0?void 0:_D(X,Q)+1;return this._addToFsEvents(J,!1,!0,U)}this.fsw._getWatchedDir(q).add(Y)}let V=K.type===cq?Z+yp0:Z;if(this.fsw._emit(V,J),V===Qo)this._addToFsEvents(J,!1,!0)}}_watchWithFsEvents(Z,J,X,Q){if(this.fsw.closed||this.fsw._isIgnored(Z))return;let q=this.fsw.options,Y=op0(Z,J,async(K,W,V)=>{if(this.fsw.closed)return;if(q.depth!==void 0&&_D(K,J)>q.depth)return;let U=X(w8.join(Z,w8.relative(Z,K)));if(Q&&!Q(U))return;let G=w8.dirname(U),H=w8.basename(U),M=this.fsw._getWatchedDir(V.type===cq?U:G);if(ip0.has(W)||V.event===fp0)if(typeof q.ignored===OD){let F;try{F=await SD(U)}catch(D){}if(this.fsw.closed)return;if(this.checkIgnored(U,F))return;if(Ko(V,F))this.addOrChange(U,K,J,G,M,H,V,q);else this.handleEvent(_z,U,K,J,G,M,H,V,q)}else this.checkExists(U,K,J,G,M,H,V,q);else switch(V.event){case Ap0:case Ep0:return this.addOrChange(U,K,J,G,M,H,V,q);case vp0:case kp0:return this.checkExists(U,K,J,G,M,H,V,q)}},this.fsw._emitRaw);return this.fsw._emitReady(),Y}async _handleFsEventsSymlink(Z,J,X,Q){if(this.fsw.closed||this.fsw._symlinkPaths.has(J))return;this.fsw._symlinkPaths.set(J,!0),this.fsw._incrReadyCount();try{let q=await Yo(Z);if(this.fsw.closed)return;if(this.fsw._isIgnored(q))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(q||Z,($)=>{let Y=Z;if(q&&q!==$o)Y=$.replace(q,Z);else if($!==$o)Y=w8.join(Z,$);return X(Y)},!1,Q)}catch(q){if(this.fsw._handleError(q))return this.fsw._emitReady()}}emitAdd(Z,J,X,Q,q){let $=X(Z),Y=J.isDirectory(),K=this.fsw._getWatchedDir(w8.dirname($)),W=w8.basename($);if(Y)this.fsw._getWatchedDir($);if(K.has(W))return;if(K.add(W),!Q.ignoreInitial||q===!0)this.fsw._emit(Y?Qo:ID,$,J)}initWatch(Z,J,X,Q){if(this.fsw.closed)return;let q=this._watchWithFsEvents(X.watchPath,w8.resolve(Z||X.watchPath),Q,X.globFilter);this.fsw._addPathCloser(J,q)}async _addToFsEvents(Z,J,X,Q){if(this.fsw.closed)return;let q=this.fsw.options,$=typeof J===OD?J:pp0,Y=this.fsw._getWatchHelpers(Z);try{let K=await hp0[Y.statMethod](Y.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(Y.watchPath,K))throw null;if(K.isDirectory()){if(!Y.globFilter)this.emitAdd($(Z),K,$,q,X);if(Q&&Q>q.depth)return;this.fsw._readdirp(Y.watchPath,{fileFilter:(W)=>Y.filterPath(W),directoryFilter:(W)=>Y.filterDir(W),...up0(q.depth-(Q||0))}).on(Tp0,(W)=>{if(this.fsw.closed)return;if(W.stats.isDirectory()&&!Y.filterPath(W))return;let V=w8.join(Y.watchPath,W.path),{fullPath:U}=W;if(Y.followSymlinks&&W.stats.isSymbolicLink()){let G=q.depth===void 0?void 0:_D(V,w8.resolve(Y.watchPath))+1;this._handleFsEventsSymlink(V,U,$,G)}else this.emitAdd(V,W.stats,$,q,X)}).on(Sp0,cp0).on(Pp0,()=>{this.fsw._emitReady()})}else this.emitAdd(Y.watchPath,K,$,q,X),this.fsw._emitReady()}catch(K){if(!K||this.fsw._handleError(K))this.fsw._emitReady(),this.fsw._emitReady()}if(q.persistent&&X!==!0)if(typeof J===OD)this.initWatch(void 0,Z,Y,$);else{let K;try{K=await Yo(Y.watchPath)}catch(W){}this.initWatch(K,Z,Y,$)}}}AD.exports=zo;AD.exports.canUse=sp0});var Co=a((_u0)=>{var{EventEmitter:ap0}=_0("events"),gD=_0("fs"),Z2=_0("path"),{promisify:Fo}=_0("util"),rp0=bl(),mD=hl().default,tp0=TG(),ED=_G(),ep0=bG(),Zu0=ND(),Ju0=Xo(),Uo=Vo(),{EV_ALL:vD,EV_READY:Xu0,EV_ADD:Sz,EV_CHANGE:pq,EV_UNLINK:xo,EV_ADD_DIR:Qu0,EV_UNLINK_DIR:qu0,EV_RAW:$u0,EV_ERROR:kD,STR_CLOSE:Yu0,STR_END:Ku0,BACK_SLASH_RE:Wu0,DOUBLE_SLASH_RE:Go,SLASH_OR_BACK_SLASH_RE:zu0,DOT_RE:Vu0,REPLACER_RE:Uu0,SLASH:fD,SLASH_SLASH:xu0,BRACE_START:Gu0,BANG:yD,ONE_DOT:No,TWO_DOTS:Hu0,GLOBSTAR:Bu0,SLASH_GLOBSTAR:bD,ANYMATCH_OPTS:cD,STRING_TYPE:hD,FUNCTION_TYPE:Mu0,EMPTY_STR:pD,EMPTY_FN:Fu0,isWindows:Nu0,isMacos:Du0,isIBMi:ju0}=wz(),Lu0=Fo(gD.stat),wu0=Fo(gD.readdir),uD=(Z=[])=>Array.isArray(Z)?Z:[Z],Do=(Z,J=[])=>{return Z.forEach((X)=>{if(Array.isArray(X))Do(X,J);else J.push(X)}),J},Ho=(Z)=>{let J=Do(uD(Z));if(!J.every((X)=>typeof X===hD))throw new TypeError(`Non-string provided as watch path: ${J}`);return J.map(jo)},Bo=(Z)=>{let J=Z.replace(Wu0,fD),X=!1;if(J.startsWith(xu0))X=!0;while(J.match(Go))J=J.replace(Go,fD);if(X)J=fD+J;return J},jo=(Z)=>Bo(Z2.normalize(Bo(Z))),Mo=(Z=pD)=>(J)=>{if(typeof J!==hD)return J;return jo(Z2.isAbsolute(J)?J:Z2.join(Z,J))},Cu0=(Z,J)=>{if(Z2.isAbsolute(Z))return Z;if(Z.startsWith(yD))return yD+Z2.join(J,Z.slice(1));return Z2.join(J,Z)},U7=(Z,J)=>Z[J]===void 0;class Lo{constructor(Z,J){this.path=Z,this._removeWatcher=J,this.items=new Set}add(Z){let{items:J}=this;if(!J)return;if(Z!==No&&Z!==Hu0)J.add(Z)}async remove(Z){let{items:J}=this;if(!J)return;if(J.delete(Z),J.size>0)return;let X=this.path;try{await wu0(X)}catch(Q){if(this._removeWatcher)this._removeWatcher(Z2.dirname(X),Z2.basename(X))}}has(Z){let{items:J}=this;if(!J)return;return J.has(Z)}getChildren(){let{items:Z}=this;if(!Z)return;return[...Z.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this)}}var Ru0="stat",Iu0="lstat";class wo{constructor(Z,J,X,Q){if(this.fsw=Q,this.path=Z=Z.replace(Uu0,pD),this.watchPath=J,this.fullWatchPath=Z2.resolve(J),this.hasGlob=J!==Z,Z===pD)this.hasGlob=!1;this.globSymlink=this.hasGlob&&X?void 0:!1,this.globFilter=this.hasGlob?mD(Z,void 0,cD):!1,this.dirParts=this.getDirParts(Z),this.dirParts.forEach((q)=>{if(q.length>1)q.pop()}),this.followSymlinks=X,this.statMethod=X?Ru0:Iu0}checkGlobSymlink(Z){if(this.globSymlink===void 0)this.globSymlink=Z.fullParentDir===this.fullWatchPath?!1:{realPath:Z.fullParentDir,linkPath:this.fullWatchPath};if(this.globSymlink)return Z.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath);return Z.fullPath}entryPath(Z){return Z2.join(this.watchPath,Z2.relative(this.watchPath,this.checkGlobSymlink(Z)))}filterPath(Z){let{stats:J}=Z;if(J&&J.isSymbolicLink())return this.filterDir(Z);let X=this.entryPath(Z);return(this.hasGlob&&typeof this.globFilter===Mu0?this.globFilter(X):!0)&&this.fsw._isntIgnored(X,J)&&this.fsw._hasReadPermissions(J)}getDirParts(Z){if(!this.hasGlob)return[];let J=[];return(Z.includes(Gu0)?ep0.expand(Z):[Z]).forEach((Q)=>{J.push(Z2.relative(this.watchPath,Q).split(zu0))}),J}filterDir(Z){if(this.hasGlob){let J=this.getDirParts(this.checkGlobSymlink(Z)),X=!1;this.unmatchedGlob=!this.dirParts.some((Q)=>{return Q.every((q,$)=>{if(q===Bu0)X=!0;return X||!J[0][$]||mD(q,J[0][$],cD)})})}return!this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(Z),Z.stats)}}class dD extends ap0{constructor(Z){super();let J={};if(Z)Object.assign(J,Z);if(this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,U7(J,"persistent"))J.persistent=!0;if(U7(J,"ignoreInitial"))J.ignoreInitial=!1;if(U7(J,"ignorePermissionErrors"))J.ignorePermissionErrors=!1;if(U7(J,"interval"))J.interval=100;if(U7(J,"binaryInterval"))J.binaryInterval=300;if(U7(J,"disableGlobbing"))J.disableGlobbing=!1;if(J.enableBinaryInterval=J.binaryInterval!==J.interval,U7(J,"useFsEvents"))J.useFsEvents=!J.usePolling;if(!Uo.canUse())J.useFsEvents=!1;if(U7(J,"usePolling")&&!J.useFsEvents)J.usePolling=Du0;if(ju0)J.usePolling=!0;let Q=process.env.CHOKIDAR_USEPOLLING;if(Q!==void 0){let K=Q.toLowerCase();if(K==="false"||K==="0")J.usePolling=!1;else if(K==="true"||K==="1")J.usePolling=!0;else J.usePolling=!!K}let q=process.env.CHOKIDAR_INTERVAL;if(q)J.interval=Number.parseInt(q,10);if(U7(J,"atomic"))J.atomic=!J.usePolling&&!J.useFsEvents;if(J.atomic)this._pendingUnlinks=new Map;if(U7(J,"followSymlinks"))J.followSymlinks=!0;if(U7(J,"awaitWriteFinish"))J.awaitWriteFinish=!1;if(J.awaitWriteFinish===!0)J.awaitWriteFinish={};let $=J.awaitWriteFinish;if($){if(!$.stabilityThreshold)$.stabilityThreshold=2000;if(!$.pollInterval)$.pollInterval=100;this._pendingWrites=new Map}if(J.ignored)J.ignored=uD(J.ignored);let Y=0;if(this._emitReady=()=>{if(Y++,Y>=this._readyCount)this._emitReady=Fu0,this._readyEmitted=!0,process.nextTick(()=>this.emit(Xu0))},this._emitRaw=(...K)=>this.emit($u0,...K),this._readyEmitted=!1,this.options=J,J.useFsEvents)this._fsEventsHandler=new Uo(this);else this._nodeFsHandler=new Ju0(this);Object.freeze(J)}add(Z,J,X){let{cwd:Q,disableGlobbing:q}=this.options;this.closed=!1;let $=Ho(Z);if(Q)$=$.map((Y)=>{let K=Cu0(Y,Q);if(q||!ED(Y))return K;return Zu0(K)});if($=$.filter((Y)=>{if(Y.startsWith(yD))return this._ignoredPaths.add(Y.slice(1)),!1;return this._ignoredPaths.delete(Y),this._ignoredPaths.delete(Y+bD),this._userIgnored=void 0,!0}),this.options.useFsEvents&&this._fsEventsHandler){if(!this._readyCount)this._readyCount=$.length;if(this.options.persistent)this._readyCount+=$.length;$.forEach((Y)=>this._fsEventsHandler._addToFsEvents(Y))}else{if(!this._readyCount)this._readyCount=0;this._readyCount+=$.length,Promise.all($.map(async(Y)=>{let K=await this._nodeFsHandler._addToNodeFs(Y,!X,0,0,J);if(K)this._emitReady();return K})).then((Y)=>{if(this.closed)return;Y.filter((K)=>K).forEach((K)=>{this.add(Z2.dirname(K),Z2.basename(J||K))})})}return this}unwatch(Z){if(this.closed)return this;let J=Ho(Z),{cwd:X}=this.options;return J.forEach((Q)=>{if(!Z2.isAbsolute(Q)&&!this._closers.has(Q)){if(X)Q=Z2.join(X,Q);Q=Z2.resolve(Q)}if(this._closePath(Q),this._ignoredPaths.add(Q),this._watched.has(Q))this._ignoredPaths.add(Q+bD);this._userIgnored=void 0}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let Z=[];return this._closers.forEach((J)=>J.forEach((X)=>{let Q=X();if(Q instanceof Promise)Z.push(Q)})),this._streams.forEach((J)=>J.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach((J)=>J.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach((J)=>{this[`_${J}`].clear()}),this._closePromise=Z.length?Promise.all(Z).then(()=>{return}):Promise.resolve(),this._closePromise}getWatched(){let Z={};return this._watched.forEach((J,X)=>{let Q=this.options.cwd?Z2.relative(this.options.cwd,X):X;Z[Q||No]=J.getChildren().sort()}),Z}emitWithAll(Z,J){if(this.emit(...J),Z!==kD)this.emit(vD,...J)}async _emit(Z,J,X,Q,q){if(this.closed)return;let $=this.options;if(Nu0)J=Z2.normalize(J);if($.cwd)J=Z2.relative($.cwd,J);let Y=[Z,J];if(q!==void 0)Y.push(X,Q,q);else if(Q!==void 0)Y.push(X,Q);else if(X!==void 0)Y.push(X);let K=$.awaitWriteFinish,W;if(K&&(W=this._pendingWrites.get(J)))return W.lastChange=new Date,this;if($.atomic){if(Z===xo)return this._pendingUnlinks.set(J,Y),setTimeout(()=>{this._pendingUnlinks.forEach((V,U)=>{this.emit(...V),this.emit(vD,...V),this._pendingUnlinks.delete(U)})},typeof $.atomic==="number"?$.atomic:100),this;if(Z===Sz&&this._pendingUnlinks.has(J))Z=Y[0]=pq,this._pendingUnlinks.delete(J)}if(K&&(Z===Sz||Z===pq)&&this._readyEmitted){let V=(U,G)=>{if(U)Z=Y[0]=kD,Y[1]=U,this.emitWithAll(Z,Y);else if(G){if(Y.length>2)Y[2]=G;else Y.push(G);this.emitWithAll(Z,Y)}};return this._awaitWriteFinish(J,K.stabilityThreshold,Z,V),this}if(Z===pq){if(!this._throttle(pq,J,50))return this}if($.alwaysStat&&X===void 0&&(Z===Sz||Z===Qu0||Z===pq)){let V=$.cwd?Z2.join($.cwd,J):J,U;try{U=await Lu0(V)}catch(G){}if(!U||this.closed)return;Y.push(U)}return this.emitWithAll(Z,Y),this}_handleError(Z){let J=Z&&Z.code;if(Z&&J!=="ENOENT"&&J!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||J!=="EPERM"&&J!=="EACCES"))this.emit(kD,Z);return Z||this.closed}_throttle(Z,J,X){if(!this._throttled.has(Z))this._throttled.set(Z,new Map);let Q=this._throttled.get(Z),q=Q.get(J);if(q)return q.count++,!1;let $,Y=()=>{let W=Q.get(J),V=W?W.count:0;if(Q.delete(J),clearTimeout($),W)clearTimeout(W.timeoutObject);return V};$=setTimeout(Y,X);let K={timeoutObject:$,clear:Y,count:0};return Q.set(J,K),K}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(Z,J,X,Q){let q,$=Z;if(this.options.cwd&&!Z2.isAbsolute(Z))$=Z2.join(this.options.cwd,Z);let Y=new Date,K=(W)=>{gD.stat($,(V,U)=>{if(V||!this._pendingWrites.has(Z)){if(V&&V.code!=="ENOENT")Q(V);return}let G=Number(new Date);if(W&&U.size!==W.size)this._pendingWrites.get(Z).lastChange=G;let H=this._pendingWrites.get(Z);if(G-H.lastChange>=J)this._pendingWrites.delete(Z),Q(void 0,U);else q=setTimeout(K,this.options.awaitWriteFinish.pollInterval,U)})};if(!this._pendingWrites.has(Z))this._pendingWrites.set(Z,{lastChange:Y,cancelWait:()=>{return this._pendingWrites.delete(Z),clearTimeout(q),X}}),q=setTimeout(K,this.options.awaitWriteFinish.pollInterval)}_getGlobIgnored(){return[...this._ignoredPaths.values()]}_isIgnored(Z,J){if(this.options.atomic&&Vu0.test(Z))return!0;if(!this._userIgnored){let{cwd:X}=this.options,Q=this.options.ignored,q=Q&&Q.map(Mo(X)),$=uD(q).filter((K)=>typeof K===hD&&!ED(K)).map((K)=>K+bD),Y=this._getGlobIgnored().map(Mo(X)).concat(q,$);this._userIgnored=mD(Y,void 0,cD)}return this._userIgnored([Z,J])}_isntIgnored(Z,J){return!this._isIgnored(Z,J)}_getWatchHelpers(Z,J){let X=J||this.options.disableGlobbing||!ED(Z)?Z:tp0(Z),Q=this.options.followSymlinks;return new wo(Z,X,Q,this)}_getWatchedDir(Z){if(!this._boundRemove)this._boundRemove=this._remove.bind(this);let J=Z2.resolve(Z);if(!this._watched.has(J))this._watched.set(J,new Lo(J,this._boundRemove));return this._watched.get(J)}_hasReadPermissions(Z){if(this.options.ignorePermissionErrors)return!0;let X=(Z&&Number.parseInt(Z.mode,10))&511,Q=Number.parseInt(X.toString(8)[0],10);return Boolean(4&Q)}_remove(Z,J,X){let Q=Z2.join(Z,J),q=Z2.resolve(Q);if(X=X!=null?X:this._watched.has(Q)||this._watched.has(q),!this._throttle("remove",Q,100))return;if(!X&&!this.options.useFsEvents&&this._watched.size===1)this.add(Z,J,!0);this._getWatchedDir(Q).getChildren().forEach((G)=>this._remove(Q,G));let K=this._getWatchedDir(Z),W=K.has(J);if(K.remove(J),this._symlinkPaths.has(q))this._symlinkPaths.delete(q);let V=Q;if(this.options.cwd)V=Z2.relative(this.options.cwd,Q);if(this.options.awaitWriteFinish&&this._pendingWrites.has(V)){if(this._pendingWrites.get(V).cancelWait()===Sz)return}this._watched.delete(Q),this._watched.delete(q);let U=X?qu0:xo;if(W&&!this._isIgnored(Q))this._emit(U,Q);if(!this.options.useFsEvents)this._closePath(Q)}_closePath(Z){this._closeFile(Z);let J=Z2.dirname(Z);this._getWatchedDir(J).remove(Z2.basename(Z))}_closeFile(Z){let J=this._closers.get(Z);if(!J)return;J.forEach((X)=>X()),this._closers.delete(Z)}_addPathCloser(Z,J){if(!J)return;let X=this._closers.get(Z);if(!X)X=[],this._closers.set(Z,X);X.push(J)}_readdirp(Z,J){if(this.closed)return;let X={type:vD,alwaysStat:!0,lstat:!0,...J},Q=rp0(Z,X);return this._streams.add(Q),Q.once(Yu0,()=>{Q=void 0}),Q.once(Ku0,()=>{if(Q)this._streams.delete(Q),Q=void 0}),Q}}_u0.FSWatcher=dD;var Ou0=(Z,J)=>{let X=new dD(J);return X.add(Z),X};_u0.watch=Ou0});var fo=a((p11,Az)=>{function Oo(Z){return Array.isArray(Z)?Z:[Z]}var Pu0=void 0,lD="",Ro=" ",iD="\\",Au0=/^\s+$/,Eu0=/(?:[^\\]|^)\\$/,vu0=/^\\!/,ku0=/^\\#/,fu0=/\r?\n/g,bu0=/^\.{0,2}\/|^\.{1,2}$/,mu0=/\/$/,fJ="/",_o="node-ignore";if(typeof Symbol!=="undefined")_o=Symbol.for("node-ignore");var So=_o,bJ=(Z,J,X)=>{return Object.defineProperty(Z,J,{value:X}),X},yu0=/([0-z])-([0-z])/g,To=()=>!1,cu0=(Z)=>Z.replace(yu0,(J,X,Q)=>X.charCodeAt(0)<=Q.charCodeAt(0)?J:lD),pu0=(Z)=>{let{length:J}=Z;return Z.slice(0,J-J%2)},uu0=[[/^\uFEFF/,()=>lD],[/((?:\\\\)*?)(\\?\s+)$/,(Z,J,X)=>J+(X.indexOf("\\")===0?Ro:lD)],[/(\\+?)\s/g,(Z,J)=>{let{length:X}=J;return J.slice(0,X-X%2)+Ro}],[/[\\$.|*+(){^]/g,(Z)=>`\\${Z}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function Z(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(Z,J,X)=>J+6<X.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(Z,J,X)=>{let Q=X.replace(/\\\*/g,"[^\\/]*");return J+Q}],[/\\\\\\(?=[$.|*+(){^])/g,()=>iD],[/\\\\/g,()=>iD],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(Z,J,X,Q,q)=>J===iD?`\\[${X}${pu0(Q)}${q}`:q==="]"?Q.length%2===0?`[${cu0(X)}${Q}]`:"[]":"[]"],[/(?:[^*])$/,(Z)=>/\/$/.test(Z)?`${Z}$`:`${Z}(?=$|\\/$)`]],gu0=/(^|\\\/)?\\\*$/,uq="regex",Tz="checkRegex",Io="_",hu0={[uq](Z,J){return`${J?`${J}[^/]+`:"[^/]*"}(?=$|\\/$)`},[Tz](Z,J){return`${J?`${J}[^/]*`:"[^/]*"}(?=$|\\/$)`}},du0=(Z)=>uu0.reduce((J,[X,Q])=>J.replace(X,Q.bind(Z)),Z),Pz=(Z)=>typeof Z==="string",iu0=(Z)=>Z&&Pz(Z)&&!Au0.test(Z)&&!Eu0.test(Z)&&Z.indexOf("#")!==0,lu0=(Z)=>Z.split(fu0).filter(Boolean);class Po{constructor(Z,J,X,Q,q,$){this.pattern=Z,this.mark=J,this.negative=q,bJ(this,"body",X),bJ(this,"ignoreCase",Q),bJ(this,"regexPrefix",$)}get regex(){let Z=Io+uq;if(this[Z])return this[Z];return this._make(uq,Z)}get checkRegex(){let Z=Io+Tz;if(this[Z])return this[Z];return this._make(Tz,Z)}_make(Z,J){let X=this.regexPrefix.replace(gu0,hu0[Z]),Q=this.ignoreCase?new RegExp(X,"i"):new RegExp(X);return bJ(this,J,Q)}}var ou0=({pattern:Z,mark:J},X)=>{let Q=!1,q=Z;if(q.indexOf("!")===0)Q=!0,q=q.substr(1);q=q.replace(vu0,"!").replace(ku0,"#");let $=du0(q);return new Po(Z,J,q,X,Q,$)};class Ao{constructor(Z){this._ignoreCase=Z,this._rules=[]}_add(Z){if(Z&&Z[So]){this._rules=this._rules.concat(Z._rules._rules),this._added=!0;return}if(Pz(Z))Z={pattern:Z};if(iu0(Z.pattern)){let J=ou0(Z,this._ignoreCase);this._added=!0,this._rules.push(J)}}add(Z){return this._added=!1,Oo(Pz(Z)?lu0(Z):Z).forEach(this._add,this),this._added}test(Z,J,X){let Q=!1,q=!1,$;this._rules.forEach((K)=>{let{negative:W}=K;if(q===W&&Q!==q||W&&!Q&&!q&&!J)return;if(!K[X].test(Z))return;Q=!W,q=W,$=W?Pu0:K});let Y={ignored:Q,unignored:q};if($)Y.rule=$;return Y}}var nu0=(Z,J)=>{throw new J(Z)},S5=(Z,J,X)=>{if(!Pz(Z))return X(`path must be a string, but got \`${J}\``,TypeError);if(!Z)return X("path must not be empty",TypeError);if(S5.isNotRelative(Z))return X(`path should be a \`path.relative()\`d string, but got "${J}"`,RangeError);return!0},Eo=(Z)=>bu0.test(Z);S5.isNotRelative=Eo;S5.convert=(Z)=>Z;class vo{constructor({ignorecase:Z=!0,ignoreCase:J=Z,allowRelativePaths:X=!1}={}){bJ(this,So,!0),this._rules=new Ao(J),this._strictPathCheck=!X,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}add(Z){if(this._rules.add(Z))this._initCache();return this}addPattern(Z){return this.add(Z)}_test(Z,J,X,Q){let q=Z&&S5.convert(Z);return S5(q,Z,this._strictPathCheck?nu0:To),this._t(q,J,X,Q)}checkIgnore(Z){if(!mu0.test(Z))return this.test(Z);let J=Z.split(fJ).filter(Boolean);if(J.pop(),J.length){let X=this._t(J.join(fJ)+fJ,this._testCache,!0,J);if(X.ignored)return X}return this._rules.test(Z,!1,Tz)}_t(Z,J,X,Q){if(Z in J)return J[Z];if(!Q)Q=Z.split(fJ).filter(Boolean);if(Q.pop(),!Q.length)return J[Z]=this._rules.test(Z,X,uq);let q=this._t(Q.join(fJ)+fJ,J,X,Q);return J[Z]=q.ignored?q:this._rules.test(Z,X,uq)}ignores(Z){return this._test(Z,this._ignoreCache,!1).ignored}createFilter(){return(Z)=>!this.ignores(Z)}filter(Z){return Oo(Z).filter(this.createFilter())}test(Z){return this._test(Z,this._testCache,!0)}}var oD=(Z)=>new vo(Z),su0=(Z)=>S5(Z&&S5.convert(Z),Z,To),ko=()=>{let Z=(X)=>/^\\\\\?\\/.test(X)||/["<>|\u0000-\u001F]+/u.test(X)?X:X.replace(/\\/g,"/");S5.convert=Z;let J=/^[a-z]:\//i;S5.isNotRelative=(X)=>J.test(X)||Eo(X)};if(typeof process!=="undefined"&&process.platform==="win32")ko();Az.exports=oD;oD.default=oD;Az.exports.isPathValid=su0;bJ(Az.exports,Symbol.for("setupWindows"),ko)});var po=a((X4)=>{var eu0=X4&&X4.__importDefault||function(Z){return Z&&Z.__esModule?Z:{default:Z}};Object.defineProperty(X4,"__esModule",{value:!0});var Zg0=_0("fs"),Jg0=eu0(bY()),mJ=Jg0.default("@kwsites/file-exists");function Xg0(Z,J,X){mJ("checking %s",Z);try{let Q=Zg0.statSync(Z);if(Q.isFile()&&J)return mJ("[OK] path represents a file"),!0;if(Q.isDirectory()&&X)return mJ("[OK] path represents a directory"),!0;return mJ("[FAIL] path represents something other than a file or directory"),!1}catch(Q){if(Q.code==="ENOENT")return mJ("[FAIL] path is not accessible: %o",Q),!1;throw mJ("[FATAL] %o",Q),Q}}function Qg0(Z,J=X4.READABLE){return Xg0(Z,(J&X4.FILE)>0,(J&X4.FOLDER)>0)}X4.exists=Qg0;X4.FILE=1;X4.FOLDER=2;X4.READABLE=X4.FILE+X4.FOLDER});var uo=a((aD)=>{function qg0(Z){for(var J in Z)if(!aD.hasOwnProperty(J))aD[J]=Z[J]}Object.defineProperty(aD,"__esModule",{value:!0});qg0(po())});var eD=a((go)=>{Object.defineProperty(go,"__esModule",{value:!0});go.createDeferred=go.deferred=void 0;function tD(){let Z,J,X="pending";return{promise:new Promise((q,$)=>{Z=q,J=$}),done(q){if(X==="pending")X="resolved",Z(q)},fail(q){if(X==="pending")X="rejected",J(q)},get fulfilled(){return X!=="pending"},get status(){return X}}}go.deferred=tD;go.createDeferred=tD;go.default=tD});var DC="0.9.8";var yC=U4(mC(),1),{program:Wl0,createCommand:zl0,createArgument:Vl0,createOption:Ul0,CommanderError:xl0,InvalidArgumentError:u9,InvalidOptionArgumentError:Gl0,Command:H6,Argument:Hl0,Option:Bl0,Help:Ml0}=yC.default;import LT from"fs";var OU=(Z,J,X)=>{let Q=Z instanceof RegExp?cC(Z,X):Z,q=J instanceof RegExp?cC(J,X):J,$=Q!==null&&q!=null&&r60(Q,q,X);return $&&{start:$[0],end:$[1],pre:X.slice(0,$[0]),body:X.slice($[0]+Q.length,$[1]),post:X.slice($[1]+q.length)}},cC=(Z,J)=>{let X=J.match(Z);return X?X[0]:null},r60=(Z,J,X)=>{let Q,q,$,Y=void 0,K,W=X.indexOf(Z),V=X.indexOf(J,W+1),U=W;if(W>=0&&V>0){if(Z===J)return[W,V];Q=[],$=X.length;while(U>=0&&!K){if(U===W)Q.push(U),W=X.indexOf(Z,U+1);else if(Q.length===1){let G=Q.pop();if(G!==void 0)K=[G,V]}else{if(q=Q.pop(),q!==void 0&&q<$)$=q,Y=V;V=X.indexOf(J,U+1)}U=W<V&&W>=0?W:V}if(Q.length&&Y!==void 0)K=[$,Y]}return K};var pC="\x00SLASH"+Math.random()+"\x00",uC="\x00OPEN"+Math.random()+"\x00",SU="\x00CLOSE"+Math.random()+"\x00",gC="\x00COMMA"+Math.random()+"\x00",hC="\x00PERIOD"+Math.random()+"\x00",t60=new RegExp(pC,"g"),e60=new RegExp(uC,"g"),Z40=new RegExp(SU,"g"),J40=new RegExp(gC,"g"),X40=new RegExp(hC,"g"),Q40=/\\\\/g,q40=/\\{/g,$40=/\\}/g,Y40=/\\,/g,K40=/\\\./g,W40=1e5;function _U(Z){return!isNaN(Z)?parseInt(Z,10):Z.charCodeAt(0)}function z40(Z){return Z.replace(Q40,pC).replace(q40,uC).replace($40,SU).replace(Y40,gC).replace(K40,hC)}function V40(Z){return Z.replace(t60,"\\").replace(e60,"{").replace(Z40,"}").replace(J40,",").replace(X40,".")}function dC(Z){if(!Z)return[""];let J=[],X=OU("{","}",Z);if(!X)return Z.split(",");let{pre:Q,body:q,post:$}=X,Y=Q.split(",");Y[Y.length-1]+="{"+q+"}";let K=dC($);if($.length)Y[Y.length-1]+=K.shift(),Y.push.apply(Y,K);return J.push.apply(J,Y),J}function iC(Z,J={}){if(!Z)return[];let{max:X=W40}=J;if(Z.slice(0,2)==="{}")Z="\\{\\}"+Z.slice(2);return xX(z40(Z),X,!0).map(V40)}function U40(Z){return"{"+Z+"}"}function x40(Z){return/^-?0\d/.test(Z)}function G40(Z,J){return Z<=J}function H40(Z,J){return Z>=J}function xX(Z,J,X){let Q=[],q=OU("{","}",Z);if(!q)return[Z];let $=q.pre,Y=q.post.length?xX(q.post,J,!1):[""];if(/\$$/.test(q.pre))for(let K=0;K<Y.length&&K<J;K++){let W=$+"{"+q.body+"}"+Y[K];Q.push(W)}else{let K=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(q.body),W=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(q.body),V=K||W,U=q.body.indexOf(",")>=0;if(!V&&!U){if(q.post.match(/,(?!,).*\}/))return Z=q.pre+"{"+q.body+SU+q.post,xX(Z,J,!0);return[Z]}let G;if(V)G=q.body.split(/\.\./);else if(G=dC(q.body),G.length===1&&G[0]!==void 0){if(G=xX(G[0],J,!1).map(U40),G.length===1)return Y.map((M)=>q.pre+G[0]+M)}let H;if(V&&G[0]!==void 0&&G[1]!==void 0){let M=_U(G[0]),F=_U(G[1]),D=Math.max(G[0].length,G[1].length),C=G.length===3&&G[2]!==void 0?Math.max(Math.abs(_U(G[2])),1):1,L=G40;if(F<M)C*=-1,L=H40;let v=G.some(x40);H=[];for(let S=M;L(S,F);S+=C){let p;if(W){if(p=String.fromCharCode(S),p==="\\")p=""}else if(p=String(S),v){let Z0=D-p.length;if(Z0>0){let X0=new Array(Z0+1).join("0");if(S<0)p="-"+X0+p.slice(1);else p=X0+p}}H.push(p)}}else{H=[];for(let M=0;M<G.length;M++)H.push.apply(H,xX(G[M],J,!1))}for(let M=0;M<H.length;M++)for(let F=0;F<Y.length&&Q.length<J;F++){let D=$+H[M]+Y[F];if(!X||V||D)Q.push(D)}}return Q}var GX=(Z)=>{if(typeof Z!=="string")throw new TypeError("invalid pattern");if(Z.length>65536)throw new TypeError("pattern is too long")};var B40={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},HX=(Z)=>Z.replace(/[[\]\\-]/g,"\\$&"),M40=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lC=(Z)=>Z.join(""),oC=(Z,J)=>{let X=J;if(Z.charAt(X)!=="[")throw new Error("not in a brace expression");let Q=[],q=[],$=X+1,Y=!1,K=!1,W=!1,V=!1,U=X,G="";Z:while($<Z.length){let D=Z.charAt($);if((D==="!"||D==="^")&&$===X+1){V=!0,$++;continue}if(D==="]"&&Y&&!W){U=$+1;break}if(Y=!0,D==="\\"){if(!W){W=!0,$++;continue}}if(D==="["&&!W){for(let[C,[L,O,v]]of Object.entries(B40))if(Z.startsWith(C,$)){if(G)return["$.",!1,Z.length-X,!0];if($+=C.length,v)q.push(L);else Q.push(L);K=K||O;continue Z}}if(W=!1,G){if(D>G)Q.push(HX(G)+"-"+HX(D));else if(D===G)Q.push(HX(D));G="",$++;continue}if(Z.startsWith("-]",$+1)){Q.push(HX(D+"-")),$+=2;continue}if(Z.startsWith("-",$+1)){G=D,$+=2;continue}Q.push(HX(D)),$++}if(U<$)return["",!1,0,!1];if(!Q.length&&!q.length)return["$.",!1,Z.length-X,!0];if(q.length===0&&Q.length===1&&/^\\?.$/.test(Q[0])&&!V){let D=Q[0].length===2?Q[0].slice(-1):Q[0];return[M40(D),!1,U-X,!1]}let H="["+(V?"^":"")+lC(Q)+"]",M="["+(V?"":"^")+lC(q)+"]";return[Q.length&&q.length?"("+H+"|"+M+")":Q.length?H:M,K,U-X,!0]};var d4=(Z,{windowsPathsNoEscape:J=!1,magicalBraces:X=!0}={})=>{if(X)return J?Z.replace(/\[([^/\\])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1");return J?Z.replace(/\[([^/\\{}])\]/g,"$1"):Z.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1")};var B6,F40=new Set(["!","?","+","*","@"]),TU=(Z)=>F40.has(Z),nC=(Z)=>TU(Z.type),N40=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),D40=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),j40=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),sC=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),L40="(?!(?:^|/)\\.\\.?(?:$|/))",s$="(?!\\.)",w40=new Set(["[","."]),C40=new Set(["..","."]),R40=new Set("().*{}+?[]^$\\!"),I40=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),PU="[^/]",aC=PU+"*?",rC=PU+"+?",O40=0;class G3{type;#Z;#Q;#q=!1;#J=[];#Y;#C;#N;#U=!1;#K;#x;#V=!1;id=++O40;get depth(){return(this.#Y?.depth??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){return{"@@type":"AST",id:this.id,type:this.type,root:this.#Z.id,parent:this.#Y?.id,depth:this.depth,partsLength:this.#J.length,parts:this.#J}}constructor(Z,J,X={}){if(this.type=Z,Z)this.#Q=!0;if(this.#Y=J,this.#Z=this.#Y?this.#Y.#Z:this,this.#K=this.#Z===this?X:this.#Z.#K,this.#N=this.#Z===this?[]:this.#Z.#N,Z==="!"&&!this.#Z.#U)this.#N.push(this);this.#C=this.#Y?this.#Y.#J.length:0}get hasMagic(){if(this.#Q!==void 0)return this.#Q;for(let Z of this.#J){if(typeof Z==="string")continue;if(Z.type||Z.hasMagic)return this.#Q=!0}return this.#Q}toString(){return this.#x!==void 0?this.#x:!this.type?this.#x=this.#J.map((Z)=>String(Z)).join(""):this.#x=this.type+"("+this.#J.map((Z)=>String(Z)).join("|")+")"}#W(){if(this!==this.#Z)throw new Error("should only call on root");if(this.#U)return this;this.toString(),this.#U=!0;let Z;while(Z=this.#N.pop()){if(Z.type!=="!")continue;let J=Z,X=J.#Y;while(X){for(let Q=J.#C+1;!X.type&&Q<X.#J.length;Q++)for(let q of Z.#J){if(typeof q==="string")throw new Error("string part in extglob AST??");q.copyIn(X.#J[Q])}J=X,X=J.#Y}}return this}push(...Z){for(let J of Z){if(J==="")continue;if(typeof J!=="string"&&!(J instanceof B6&&J.#Y===this))throw new Error("invalid part: "+J);this.#J.push(J)}}toJSON(){let Z=this.type===null?this.#J.slice().map((J)=>typeof J==="string"?J:J.toJSON()):[this.type,...this.#J.map((J)=>J.toJSON())];if(this.isStart()&&!this.type)Z.unshift([]);if(this.isEnd()&&(this===this.#Z||this.#Z.#U&&this.#Y?.type==="!"))Z.push({});return Z}isStart(){if(this.#Z===this)return!0;if(!this.#Y?.isStart())return!1;if(this.#C===0)return!0;let Z=this.#Y;for(let J=0;J<this.#C;J++){let X=Z.#J[J];if(!(X instanceof B6&&X.type==="!"))return!1}return!0}isEnd(){if(this.#Z===this)return!0;if(this.#Y?.type==="!")return!0;if(!this.#Y?.isEnd())return!1;if(!this.type)return this.#Y?.isEnd();let Z=this.#Y?this.#Y.#J.length:0;return this.#C===Z-1}copyIn(Z){if(typeof Z==="string")this.push(Z);else this.push(Z.clone(this))}clone(Z){let J=new B6(this.type,Z);for(let X of this.#J)J.copyIn(X);return J}static#$(Z,J,X,Q,q){let $=Q.maxExtglobRecursion??2,Y=!1,K=!1,W=-1,V=!1;if(J.type===null){let F=X,D="";while(F<Z.length){let C=Z.charAt(F++);if(Y||C==="\\"){Y=!Y,D+=C;continue}if(K){if(F===W+1){if(C==="^"||C==="!")V=!0}else if(C==="]"&&!(F===W+2&&V))K=!1;D+=C;continue}else if(C==="["){K=!0,W=F,V=!1,D+=C;continue}if(!Q.noext&&TU(C)&&Z.charAt(F)==="("&&q<=$){J.push(D),D="";let O=new B6(C,J);F=B6.#$(Z,O,F,Q,q+1),J.push(O);continue}D+=C}return J.push(D),F}let U=X+1,G=new B6(null,J),H=[],M="";while(U<Z.length){let F=Z.charAt(U++);if(Y||F==="\\"){Y=!Y,M+=F;continue}if(K){if(U===W+1){if(F==="^"||F==="!")V=!0}else if(F==="]"&&!(U===W+2&&V))K=!1;M+=F;continue}else if(F==="["){K=!0,W=U,V=!1,M+=F;continue}if(!Q.noext&&TU(F)&&Z.charAt(U)==="("&&(q<=$||J&&J.#H(F))){let C=J&&J.#H(F)?0:1;G.push(M),M="";let L=new B6(F,G);G.push(L),U=B6.#$(Z,L,U,Q,q+C);continue}if(F==="|"){G.push(M),M="",H.push(G),G=new B6(null,J);continue}if(F===")"){if(M===""&&J.#J.length===0)J.#V=!0;return G.push(M),M="",J.push(...H,G),U}M+=F}return J.type=null,J.#Q=void 0,J.#J=[Z.substring(X-1)],U}#D(Z){return this.#L(Z,D40)}#L(Z,J=N40){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#J.length!==1||this.type===null)return!1;let X=Z.#J[0];if(!X||typeof X!=="object"||X.type===null)return!1;return this.#H(X.type,J)}#H(Z,J=j40){return!!J.get(this.type)?.includes(Z)}#B(Z,J){let X=Z.#J[0],Q=new B6(null,X,this.options);Q.#J.push(""),X.push(Q),this.#O(Z,J)}#O(Z,J){let X=Z.#J[0];this.#J.splice(J,1,...X.#J);for(let Q of X.#J)if(typeof Q==="object")Q.#Y=this;this.#x=void 0}#M(Z){return!!sC.get(this.type)?.has(Z)}#w(Z){if(!Z||typeof Z!=="object"||Z.type!==null||Z.#J.length!==1||this.type===null||this.#J.length!==1)return!1;let J=Z.#J[0];if(!J||typeof J!=="object"||J.type===null)return!1;return this.#M(J.type)}#R(Z){let J=sC.get(this.type),X=Z.#J[0],Q=J?.get(X.type);if(!Q)return!1;this.#J=X.#J;for(let q of this.#J)if(typeof q==="object")q.#Y=this;this.type=Q,this.#x=void 0,this.#V=!1}static fromGlob(Z,J={}){let X=new B6(null,void 0,J);return B6.#$(Z,X,0,J,0),X}toMMPattern(){if(this!==this.#Z)return this.#Z.toMMPattern();let Z=this.toString(),[J,X,Q,q]=this.toRegExpSource();if(!(Q||this.#Q||this.#K.nocase&&!this.#K.nocaseMagicOnly&&Z.toUpperCase()!==Z.toLowerCase()))return X;let Y=(this.#K.nocase?"i":"")+(q?"u":"");return Object.assign(new RegExp(`^${J}$`,Y),{_src:J,_glob:Z})}get options(){return this.#K}toRegExpSource(Z){let J=Z??!!this.#K.dot;if(this.#Z===this)this.#G(),this.#W();if(!nC(this)){let K=this.isStart()&&this.isEnd()&&!this.#J.some((H)=>typeof H!=="string"),W=this.#J.map((H)=>{let[M,F,D,C]=typeof H==="string"?B6.#j(H,this.#Q,K):H.toRegExpSource(Z);return this.#Q=this.#Q||D,this.#q=this.#q||C,M}).join(""),V="";if(this.isStart()){if(typeof this.#J[0]==="string"){if(!(this.#J.length===1&&C40.has(this.#J[0]))){let M=w40,F=J&&M.has(W.charAt(0))||W.startsWith("\\.")&&M.has(W.charAt(2))||W.startsWith("\\.\\.")&&M.has(W.charAt(4)),D=!J&&!Z&&M.has(W.charAt(0));V=F?L40:D?s$:""}}}let U="";if(this.isEnd()&&this.#Z.#U&&this.#Y?.type==="!")U="(?:$|\\/)";return[V+W+U,d4(W),this.#Q=!!this.#Q,this.#q]}let X=this.type==="*"||this.type==="+",Q=this.type==="!"?"(?:(?!(?:":"(?:",q=this.#F(J);if(this.isStart()&&this.isEnd()&&!q&&this.type!=="!"){let K=this.toString(),W=this;return W.#J=[K],W.type=null,W.#Q=void 0,[K,d4(this.toString()),!1,!1]}let $=!X||Z||J||!s$?"":this.#F(!0);if($===q)$="";if($)q=`(?:${q})(?:${$})*?`;let Y="";if(this.type==="!"&&this.#V)Y=(this.isStart()&&!J?s$:"")+rC;else{let K=this.type==="!"?"))"+(this.isStart()&&!J&&!Z?s$:"")+aC+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&$?")":this.type==="*"&&$?")?":`)${this.type}`;Y=Q+q+K}return[Y,d4(q),this.#Q=!!this.#Q,this.#q]}#G(){if(!nC(this)){for(let Z of this.#J)if(typeof Z==="object")Z.#G()}else{let Z=0,J=!1;do{J=!0;for(let X=0;X<this.#J.length;X++){let Q=this.#J[X];if(typeof Q==="object"){if(Q.#G(),this.#L(Q))J=!1,this.#O(Q,X);else if(this.#D(Q))J=!1,this.#B(Q,X);else if(this.#w(Q))J=!1,this.#R(Q)}}}while(!J&&++Z<10)}this.#x=void 0}#F(Z){return this.#J.map((J)=>{if(typeof J==="string")throw new Error("string type in extglob ast??");let[X,Q,q,$]=J.toRegExpSource(Z);return this.#q=this.#q||$,X}).filter((J)=>!(this.isStart()&&this.isEnd())||!!J).join("|")}static#j(Z,J,X=!1){let Q=!1,q="",$=!1,Y=!1;for(let K=0;K<Z.length;K++){let W=Z.charAt(K);if(Q){Q=!1,q+=(R40.has(W)?"\\":"")+W;continue}if(W==="*"){if(Y)continue;Y=!0,q+=X&&/^[*]+$/.test(Z)?rC:aC,J=!0;continue}else Y=!1;if(W==="\\"){if(K===Z.length-1)q+="\\\\";else Q=!0;continue}if(W==="["){let[V,U,G,H]=oC(Z,K);if(G){q+=V,$=$||U,K+=G-1,J=J||H;continue}}if(W==="?"){q+=PU,J=!0;continue}q+=I40(W)}return[q,d4(Z),!!J,$]}}B6=G3;var H3=(Z,{windowsPathsNoEscape:J=!1,magicalBraces:X=!1}={})=>{if(X)return J?Z.replace(/[?*()[\]{}]/g,"[$&]"):Z.replace(/[?*()[\]\\{}]/g,"\\$&");return J?Z.replace(/[?*()[\]]/g,"[$&]"):Z.replace(/[?*()[\]\\]/g,"\\$&")};var e8=(Z,J,X={})=>{if(GX(J),!X.nocomment&&J.charAt(0)==="#")return!1;return new G4(J,X).match(Z)},_40=/^\*+([^+@!?*[(]*)$/,S40=(Z)=>(J)=>!J.startsWith(".")&&J.endsWith(Z),T40=(Z)=>(J)=>J.endsWith(Z),P40=(Z)=>{return Z=Z.toLowerCase(),(J)=>!J.startsWith(".")&&J.toLowerCase().endsWith(Z)},A40=(Z)=>{return Z=Z.toLowerCase(),(J)=>J.toLowerCase().endsWith(Z)},E40=/^\*+\.\*+$/,v40=(Z)=>!Z.startsWith(".")&&Z.includes("."),k40=(Z)=>Z!=="."&&Z!==".."&&Z.includes("."),f40=/^\.\*+$/,b40=(Z)=>Z!=="."&&Z!==".."&&Z.startsWith("."),m40=/^\*+$/,y40=(Z)=>Z.length!==0&&!Z.startsWith("."),c40=(Z)=>Z.length!==0&&Z!=="."&&Z!=="..",p40=/^\?+([^+@!?*[(]*)?$/,u40=([Z,J=""])=>{let X=ZR([Z]);if(!J)return X;return J=J.toLowerCase(),(Q)=>X(Q)&&Q.toLowerCase().endsWith(J)},g40=([Z,J=""])=>{let X=JR([Z]);if(!J)return X;return J=J.toLowerCase(),(Q)=>X(Q)&&Q.toLowerCase().endsWith(J)},h40=([Z,J=""])=>{let X=JR([Z]);return!J?X:(Q)=>X(Q)&&Q.endsWith(J)},d40=([Z,J=""])=>{let X=ZR([Z]);return!J?X:(Q)=>X(Q)&&Q.endsWith(J)},ZR=([Z])=>{let J=Z.length;return(X)=>X.length===J&&!X.startsWith(".")},JR=([Z])=>{let J=Z.length;return(X)=>X.length===J&&X!=="."&&X!==".."},XR=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",tC={win32:{sep:"\\"},posix:{sep:"/"}},i40=XR==="win32"?tC.win32.sep:tC.posix.sep;e8.sep=i40;var m2=Symbol("globstar **");e8.GLOBSTAR=m2;var l40="[^/]",o40=l40+"*?",n40="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",s40="(?:(?!(?:\\/|^)\\.).)*?",a40=(Z,J={})=>(X)=>e8(X,Z,J);e8.filter=a40;var x4=(Z,J={})=>Object.assign({},Z,J),r40=(Z)=>{if(!Z||typeof Z!=="object"||!Object.keys(Z).length)return e8;let J=e8;return Object.assign((Q,q,$={})=>J(Q,q,x4(Z,$)),{Minimatch:class Q extends J.Minimatch{constructor(q,$={}){super(q,x4(Z,$))}static defaults(q){return J.defaults(x4(Z,q)).Minimatch}},AST:class Q extends J.AST{constructor(q,$,Y={}){super(q,$,x4(Z,Y))}static fromGlob(q,$={}){return J.AST.fromGlob(q,x4(Z,$))}},unescape:(Q,q={})=>J.unescape(Q,x4(Z,q)),escape:(Q,q={})=>J.escape(Q,x4(Z,q)),filter:(Q,q={})=>J.filter(Q,x4(Z,q)),defaults:(Q)=>J.defaults(x4(Z,Q)),makeRe:(Q,q={})=>J.makeRe(Q,x4(Z,q)),braceExpand:(Q,q={})=>J.braceExpand(Q,x4(Z,q)),match:(Q,q,$={})=>J.match(Q,q,x4(Z,$)),sep:J.sep,GLOBSTAR:m2})};e8.defaults=r40;var QR=(Z,J={})=>{if(GX(Z),J.nobrace||!/\{(?:(?!\{).)*\}/.test(Z))return[Z];return iC(Z,{max:J.braceExpandMax})};e8.braceExpand=QR;var t40=(Z,J={})=>new G4(Z,J).makeRe();e8.makeRe=t40;var e40=(Z,J,X={})=>{let Q=new G4(J,X);if(Z=Z.filter((q)=>Q.match(q)),Q.options.nonull&&!Z.length)Z.push(J);return Z};e8.match=e40;var eC=/[?*]|[+@!]\(.*?\)|\[|\]/,Z70=(Z)=>Z.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class G4{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(Z,J={}){GX(Z),J=J||{},this.options=J,this.maxGlobstarRecursion=J.maxGlobstarRecursion??200,this.pattern=Z,this.platform=J.platform||XR,this.isWindows=this.platform==="win32";let X="allowWindowsEscape";if(this.windowsPathsNoEscape=!!J.windowsPathsNoEscape||J[X]===!1,this.windowsPathsNoEscape)this.pattern=this.pattern.replace(/\\/g,"/");this.preserveMultipleSlashes=!!J.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!J.nonegate,this.comment=!1,this.empty=!1,this.partial=!!J.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=J.windowsNoMagicRoot!==void 0?J.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let Z of this.set)for(let J of Z)if(typeof J!=="string")return!0;return!1}debug(...Z){}make(){let Z=this.pattern,J=this.options;if(!J.nocomment&&Z.charAt(0)==="#"){this.comment=!0;return}if(!Z){this.empty=!0;return}if(this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],J.debug)this.debug=(...q)=>console.error(...q);this.debug(this.pattern,this.globSet);let X=this.globSet.map((q)=>this.slashSplit(q));this.globParts=this.preprocess(X),this.debug(this.pattern,this.globParts);let Q=this.globParts.map((q,$,Y)=>{if(this.isWindows&&this.windowsNoMagicRoot){let K=q[0]===""&&q[1]===""&&(q[2]==="?"||!eC.test(q[2]))&&!eC.test(q[3]),W=/^[a-z]:/i.test(q[0]);if(K)return[...q.slice(0,4),...q.slice(4).map((V)=>this.parse(V))];else if(W)return[q[0],...q.slice(1).map((V)=>this.parse(V))]}return q.map((K)=>this.parse(K))});if(this.debug(this.pattern,Q),this.set=Q.filter((q)=>q.indexOf(!1)===-1),this.isWindows)for(let q=0;q<this.set.length;q++){let $=this.set[q];if($[0]===""&&$[1]===""&&this.globParts[q][2]==="?"&&typeof $[3]==="string"&&/^[a-z]:$/i.test($[3]))$[2]="?"}this.debug(this.pattern,this.set)}preprocess(Z){if(this.options.noglobstar){for(let X of Z)for(let Q=0;Q<X.length;Q++)if(X[Q]==="**")X[Q]="*"}let{optimizationLevel:J=1}=this.options;if(J>=2)Z=this.firstPhasePreProcess(Z),Z=this.secondPhasePreProcess(Z);else if(J>=1)Z=this.levelOneOptimize(Z);else Z=this.adjascentGlobstarOptimize(Z);return Z}adjascentGlobstarOptimize(Z){return Z.map((J)=>{let X=-1;while((X=J.indexOf("**",X+1))!==-1){let Q=X;while(J[Q+1]==="**")Q++;if(Q!==X)J.splice(X,Q-X)}return J})}levelOneOptimize(Z){return Z.map((J)=>{return J=J.reduce((X,Q)=>{let q=X[X.length-1];if(Q==="**"&&q==="**")return X;if(Q===".."){if(q&&q!==".."&&q!=="."&&q!=="**")return X.pop(),X}return X.push(Q),X},[]),J.length===0?[""]:J})}levelTwoFileOptimize(Z){if(!Array.isArray(Z))Z=this.slashSplit(Z);let J=!1;do{if(J=!1,!this.preserveMultipleSlashes){for(let Q=1;Q<Z.length-1;Q++){let q=Z[Q];if(Q===1&&q===""&&Z[0]==="")continue;if(q==="."||q==="")J=!0,Z.splice(Q,1),Q--}if(Z[0]==="."&&Z.length===2&&(Z[1]==="."||Z[1]===""))J=!0,Z.pop()}let X=0;while((X=Z.indexOf("..",X+1))!==-1){let Q=Z[X-1];if(Q&&Q!=="."&&Q!==".."&&Q!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(Q)))J=!0,Z.splice(X-1,2),X-=2}}while(J);return Z.length===0?[""]:Z}firstPhasePreProcess(Z){let J=!1;do{J=!1;for(let X of Z){let Q=-1;while((Q=X.indexOf("**",Q+1))!==-1){let $=Q;while(X[$+1]==="**")$++;if($>Q)X.splice(Q+1,$-Q);let Y=X[Q+1],K=X[Q+2],W=X[Q+3];if(Y!=="..")continue;if(!K||K==="."||K===".."||!W||W==="."||W==="..")continue;J=!0,X.splice(Q,1);let V=X.slice(0);V[Q]="**",Z.push(V),Q--}if(!this.preserveMultipleSlashes){for(let $=1;$<X.length-1;$++){let Y=X[$];if($===1&&Y===""&&X[0]==="")continue;if(Y==="."||Y==="")J=!0,X.splice($,1),$--}if(X[0]==="."&&X.length===2&&(X[1]==="."||X[1]===""))J=!0,X.pop()}let q=0;while((q=X.indexOf("..",q+1))!==-1){let $=X[q-1];if($&&$!=="."&&$!==".."&&$!=="**"){J=!0;let K=q===1&&X[q+1]==="**"?["."]:[];if(X.splice(q-1,2,...K),X.length===0)X.push("");q-=2}}}}while(J);return Z}secondPhasePreProcess(Z){for(let J=0;J<Z.length-1;J++)for(let X=J+1;X<Z.length;X++){let Q=this.partsMatch(Z[J],Z[X],!this.preserveMultipleSlashes);if(Q){Z[J]=[],Z[X]=Q;break}}return Z.filter((J)=>J.length)}partsMatch(Z,J,X=!1){let Q=0,q=0,$=[],Y="";while(Q<Z.length&&q<J.length)if(Z[Q]===J[q])$.push(Y==="b"?J[q]:Z[Q]),Q++,q++;else if(X&&Z[Q]==="**"&&J[q]===Z[Q+1])$.push(Z[Q]),Q++;else if(X&&J[q]==="**"&&Z[Q]===J[q+1])$.push(J[q]),q++;else if(Z[Q]==="*"&&J[q]&&(this.options.dot||!J[q].startsWith("."))&&J[q]!=="**"){if(Y==="b")return!1;Y="a",$.push(Z[Q]),Q++,q++}else if(J[q]==="*"&&Z[Q]&&(this.options.dot||!Z[Q].startsWith("."))&&Z[Q]!=="**"){if(Y==="a")return!1;Y="b",$.push(J[q]),Q++,q++}else return!1;return Z.length===J.length&&$}parseNegate(){if(this.nonegate)return;let Z=this.pattern,J=!1,X=0;for(let Q=0;Q<Z.length&&Z.charAt(Q)==="!";Q++)J=!J,X++;if(X)this.pattern=Z.slice(X);this.negate=J}matchOne(Z,J,X=!1){let Q=0,q=0;if(this.isWindows){let Y=typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0]),K=!Y&&Z[0]===""&&Z[1]===""&&Z[2]==="?"&&/^[a-z]:$/i.test(Z[3]),W=typeof J[0]==="string"&&/^[a-z]:$/i.test(J[0]),V=!W&&J[0]===""&&J[1]===""&&J[2]==="?"&&typeof J[3]==="string"&&/^[a-z]:$/i.test(J[3]),U=K?3:Y?0:void 0,G=V?3:W?0:void 0;if(typeof U==="number"&&typeof G==="number"){let[H,M]=[Z[U],J[G]];if(H.toLowerCase()===M.toLowerCase())J[G]=H,q=G,Q=U}}let{optimizationLevel:$=1}=this.options;if($>=2)Z=this.levelTwoFileOptimize(Z);if(J.includes(m2))return this.#Z(Z,J,X,Q,q);return this.#q(Z,J,X,Q,q)}#Z(Z,J,X,Q,q){let $=J.indexOf(m2,q),Y=J.lastIndexOf(m2),[K,W,V]=X?[J.slice(q,$),J.slice($+1),[]]:[J.slice(q,$),J.slice($+1,Y),J.slice(Y+1)];if(K.length){let L=Z.slice(Q,Q+K.length);if(!this.#q(L,K,X,0,0))return!1;Q+=K.length,q+=K.length}let U=0;if(V.length){if(V.length+Q>Z.length)return!1;let L=Z.length-V.length;if(this.#q(Z,V,X,L,0))U=V.length;else{if(Z[Z.length-1]!==""||Q+V.length===Z.length)return!1;if(L--,!this.#q(Z,V,X,L,0))return!1;U=V.length+1}}if(!W.length){let L=!!U;for(let O=Q;O<Z.length-U;O++){let v=String(Z[O]);if(L=!0,v==="."||v===".."||!this.options.dot&&v.startsWith("."))return!1}return X||L}let G=[[[],0]],H=G[0],M=0,F=[0];for(let L of W)if(L===m2)F.push(M),H=[[],0],G.push(H);else H[0].push(L),M++;let D=G.length-1,C=Z.length-U;for(let L of G)L[1]=C-(F[D--]+L[0].length);return!!this.#Q(Z,G,Q,0,X,0,!!U)}#Q(Z,J,X,Q,q,$,Y){let K=J[Q];if(!K){for(let U=X;U<Z.length;U++){Y=!0;let G=Z[U];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1}return Y}let[W,V]=K;while(X<=V){if(this.#q(Z.slice(0,X+W.length),W,q,X,0)&&$<this.maxGlobstarRecursion){let H=this.#Q(Z,J,X+W.length,Q+1,q,$+1,Y);if(H!==!1)return H}let G=Z[X];if(G==="."||G===".."||!this.options.dot&&G.startsWith("."))return!1;X++}return q||null}#q(Z,J,X,Q,q){let $,Y,K,W;for($=Q,Y=q,W=Z.length,K=J.length;$<W&&Y<K;$++,Y++){this.debug("matchOne loop");let V=J[Y],U=Z[$];if(this.debug(J,V,U),V===!1||V===m2)return!1;let G;if(typeof V==="string")G=U===V,this.debug("string match",V,U,G);else G=V.test(U),this.debug("pattern match",V,U,G);if(!G)return!1}if($===W&&Y===K)return!0;else if($===W)return X;else if(Y===K)return $===W-1&&Z[$]==="";else throw new Error("wtf?")}braceExpand(){return QR(this.pattern,this.options)}parse(Z){GX(Z);let J=this.options;if(Z==="**")return m2;if(Z==="")return"";let X,Q=null;if(X=Z.match(m40))Q=J.dot?c40:y40;else if(X=Z.match(_40))Q=(J.nocase?J.dot?A40:P40:J.dot?T40:S40)(X[1]);else if(X=Z.match(p40))Q=(J.nocase?J.dot?g40:u40:J.dot?h40:d40)(X);else if(X=Z.match(E40))Q=J.dot?k40:v40;else if(X=Z.match(f40))Q=b40;let q=G3.fromGlob(Z,this.options).toMMPattern();if(Q&&typeof q==="object")Reflect.defineProperty(q,"test",{value:Q});return q}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let Z=this.set;if(!Z.length)return this.regexp=!1,this.regexp;let J=this.options,X=J.noglobstar?o40:J.dot?n40:s40,Q=new Set(J.nocase?["i"]:[]),q=Z.map((K)=>{let W=K.map((U)=>{if(U instanceof RegExp)for(let G of U.flags.split(""))Q.add(G);return typeof U==="string"?Z70(U):U===m2?m2:U._src});W.forEach((U,G)=>{let H=W[G+1],M=W[G-1];if(U!==m2||M===m2)return;if(M===void 0)if(H!==void 0&&H!==m2)W[G+1]="(?:\\/|"+X+"\\/)?"+H;else W[G]=X;else if(H===void 0)W[G-1]=M+"(?:\\/|\\/"+X+")?";else if(H!==m2)W[G-1]=M+"(?:\\/|\\/"+X+"\\/)"+H,W[G+1]=m2});let V=W.filter((U)=>U!==m2);if(this.partial&&V.length>=1){let U=[];for(let G=1;G<=V.length;G++)U.push(V.slice(0,G).join("/"));return"(?:"+U.join("|")+")"}return V.join("/")}).join("|"),[$,Y]=Z.length>1?["(?:",")"]:["",""];if(q="^"+$+q+Y+"$",this.partial)q="^(?:\\/|"+$+q.slice(1,-1)+Y+")$";if(this.negate)q="^(?!"+q+").+$";try{this.regexp=new RegExp(q,[...Q].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(Z){if(this.preserveMultipleSlashes)return Z.split("/");else if(this.isWindows&&/^\/\/[^/]+/.test(Z))return["",...Z.split(/\/+/)];else return Z.split(/\/+/)}match(Z,J=this.partial){if(this.debug("match",Z,this.pattern),this.comment)return!1;if(this.empty)return Z==="";if(Z==="/"&&J)return!0;let X=this.options;if(this.isWindows)Z=Z.split("\\").join("/");let Q=this.slashSplit(Z);this.debug(this.pattern,"split",Q);let q=this.set;this.debug(this.pattern,"set",q);let $=Q[Q.length-1];if(!$)for(let Y=Q.length-2;!$&&Y>=0;Y--)$=Q[Y];for(let Y of q){let K=Q;if(X.matchBase&&Y.length===1)K=[$];if(this.matchOne(K,Y,J)){if(X.flipNegate)return!0;return!this.negate}}if(X.flipNegate)return!1;return this.negate}static defaults(Z){return e8.defaults(Z).Minimatch}}e8.AST=G3;e8.Minimatch=G4;e8.escape=H3;e8.unescape=d4;import{fileURLToPath as v70}from"node:url";var J70=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date,$R=new Set,AU=typeof process==="object"&&!!process?process:{},YR=(Z,J,X,Q)=>{typeof AU.emitWarning==="function"?AU.emitWarning(Z,J,X,Q):console.error(`[${X}] ${J}: ${Z}`)},a$=globalThis.AbortController,qR=globalThis.AbortSignal;if(typeof a$==="undefined"){qR=class X{onabort;_onabort=[];reason;aborted=!1;addEventListener(Q,q){this._onabort.push(q)}},a$=class X{constructor(){J()}signal=new qR;abort(Q){if(this.signal.aborted)return;this.signal.reason=Q,this.signal.aborted=!0;for(let q of this.signal._onabort)q(Q);this.signal.onabort?.(Q)}};let Z=AU.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",J=()=>{if(!Z)return;Z=!1,YR("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",J)}}var X70=(Z)=>!$R.has(Z),ml0=Symbol("type"),d5=(Z)=>Z&&Z===Math.floor(Z)&&Z>0&&isFinite(Z),KR=(Z)=>!d5(Z)?null:Z<=Math.pow(2,8)?Uint8Array:Z<=Math.pow(2,16)?Uint16Array:Z<=Math.pow(2,32)?Uint32Array:Z<=Number.MAX_SAFE_INTEGER?BX:null;class BX extends Array{constructor(Z){super(Z);this.fill(0)}}class B3{heap;length;static#Z=!1;static create(Z){let J=KR(Z);if(!J)return[];B3.#Z=!0;let X=new B3(Z,J);return B3.#Z=!1,X}constructor(Z,J){if(!B3.#Z)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new J(Z),this.length=0}push(Z){this.heap[this.length++]=Z}pop(){return this.heap[--this.length]}}class g9{#Z;#Q;#q;#J;#Y;#C;#N;#U;get perf(){return this.#U}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#K;#x;#V;#W;#$;#D;#L;#H;#B;#O;#M;#w;#R;#G;#F;#j;#_;#X;#k;static unsafeExposeInternals(Z){return{starts:Z.#R,ttls:Z.#G,autopurgeTimers:Z.#F,sizes:Z.#w,keyMap:Z.#V,keyList:Z.#W,valList:Z.#$,next:Z.#D,prev:Z.#L,get head(){return Z.#H},get tail(){return Z.#B},free:Z.#O,isBackgroundFetch:(J)=>Z.#z(J),backgroundFetch:(J,X,Q,q)=>Z.#g(J,X,Q,q),moveToTail:(J)=>Z.#b(J),indexes:(J)=>Z.#P(J),rindexes:(J)=>Z.#A(J),isStale:(J)=>Z.#I(J)}}get max(){return this.#Z}get maxSize(){return this.#Q}get calculatedSize(){return this.#x}get size(){return this.#K}get fetchMethod(){return this.#C}get memoMethod(){return this.#N}get dispose(){return this.#q}get onInsert(){return this.#J}get disposeAfter(){return this.#Y}constructor(Z){let{max:J=0,ttl:X,ttlResolution:Q=1,ttlAutopurge:q,updateAgeOnGet:$,updateAgeOnHas:Y,allowStale:K,dispose:W,onInsert:V,disposeAfter:U,noDisposeOnSet:G,noUpdateTTL:H,maxSize:M=0,maxEntrySize:F=0,sizeCalculation:D,fetchMethod:C,memoMethod:L,noDeleteOnFetchRejection:O,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:p,ignoreFetchAbort:Z0,perf:X0}=Z;if(X0!==void 0){if(typeof X0?.now!=="function")throw new TypeError("perf option must have a now() method if specified")}if(this.#U=X0??J70,J!==0&&!d5(J))throw new TypeError("max option must be a nonnegative integer");let A=J?KR(J):Array;if(!A)throw new Error("invalid max value: "+J);if(this.#Z=J,this.#Q=M,this.maxEntrySize=F||this.#Q,this.sizeCalculation=D,this.sizeCalculation){if(!this.#Q&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!=="function")throw new TypeError("sizeCalculation set to non-function")}if(L!==void 0&&typeof L!=="function")throw new TypeError("memoMethod must be a function if defined");if(this.#N=L,C!==void 0&&typeof C!=="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#C=C,this.#_=!!C,this.#V=new Map,this.#W=new Array(J).fill(void 0),this.#$=new Array(J).fill(void 0),this.#D=new A(J),this.#L=new A(J),this.#H=0,this.#B=0,this.#O=B3.create(J),this.#K=0,this.#x=0,typeof W==="function")this.#q=W;if(typeof V==="function")this.#J=V;if(typeof U==="function")this.#Y=U,this.#M=[];else this.#Y=void 0,this.#M=void 0;if(this.#j=!!this.#q,this.#k=!!this.#J,this.#X=!!this.#Y,this.noDisposeOnSet=!!G,this.noUpdateTTL=!!H,this.noDeleteOnFetchRejection=!!O,this.allowStaleOnFetchRejection=!!S,this.allowStaleOnFetchAbort=!!p,this.ignoreFetchAbort=!!Z0,this.maxEntrySize!==0){if(this.#Q!==0){if(!d5(this.#Q))throw new TypeError("maxSize must be a positive integer if specified")}if(!d5(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#d()}if(this.allowStale=!!K,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!$,this.updateAgeOnHas=!!Y,this.ttlResolution=d5(Q)||Q===0?Q:1,this.ttlAutopurge=!!q,this.ttl=X||0,this.ttl){if(!d5(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#E()}if(this.#Z===0&&this.ttl===0&&this.#Q===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#Z&&!this.#Q){if(X70("LRU_CACHE_UNBOUNDED"))$R.add("LRU_CACHE_UNBOUNDED"),YR("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning","LRU_CACHE_UNBOUNDED",g9)}}getRemainingTTL(Z){return this.#V.has(Z)?1/0:0}#E(){let Z=new BX(this.#Z),J=new BX(this.#Z);this.#G=Z,this.#R=J;let X=this.ttlAutopurge?new Array(this.#Z):void 0;this.#F=X,this.#y=($,Y,K=this.#U.now())=>{if(J[$]=Y!==0?K:0,Z[$]=Y,X?.[$])clearTimeout(X[$]),X[$]=void 0;if(Y!==0&&X){let W=setTimeout(()=>{if(this.#I($))this.#T(this.#W[$],"expire")},Y+1);if(W.unref)W.unref();X[$]=W}},this.#S=($)=>{J[$]=Z[$]!==0?this.#U.now():0},this.#v=($,Y)=>{if(Z[Y]){let K=Z[Y],W=J[Y];if(!K||!W)return;$.ttl=K,$.start=W,$.now=Q||q();let V=$.now-W;$.remainingTTL=K-V}};let Q=0,q=()=>{let $=this.#U.now();if(this.ttlResolution>0){Q=$;let Y=setTimeout(()=>Q=0,this.ttlResolution);if(Y.unref)Y.unref()}return $};this.getRemainingTTL=($)=>{let Y=this.#V.get($);if(Y===void 0)return 0;let K=Z[Y],W=J[Y];if(!K||!W)return 1/0;let V=(Q||q())-W;return K-V},this.#I=($)=>{let Y=J[$],K=Z[$];return!!K&&!!Y&&(Q||q())-Y>K}}#S=()=>{};#v=()=>{};#y=()=>{};#I=()=>!1;#d(){let Z=new BX(this.#Z);this.#x=0,this.#w=Z,this.#m=(J)=>{this.#x-=Z[J],Z[J]=0},this.#c=(J,X,Q,q)=>{if(this.#z(X))return 0;if(!d5(Q))if(q){if(typeof q!=="function")throw new TypeError("sizeCalculation must be a function");if(Q=q(X,J),!d5(Q))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return Q},this.#f=(J,X,Q)=>{if(Z[J]=X,this.#Q){let q=this.#Q-Z[J];while(this.#x>q)this.#u(!0)}if(this.#x+=Z[J],Q)Q.entrySize=X,Q.totalCalculatedSize=this.#x}}#m=(Z)=>{};#f=(Z,J,X)=>{};#c=(Z,J,X,Q)=>{if(X||Q)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#P({allowStale:Z=this.allowStale}={}){if(this.#K)for(let J=this.#B;;){if(!this.#p(J))break;if(Z||!this.#I(J))yield J;if(J===this.#H)break;else J=this.#L[J]}}*#A({allowStale:Z=this.allowStale}={}){if(this.#K)for(let J=this.#H;;){if(!this.#p(J))break;if(Z||!this.#I(J))yield J;if(J===this.#B)break;else J=this.#D[J]}}#p(Z){return Z!==void 0&&this.#V.get(this.#W[Z])===Z}*entries(){for(let Z of this.#P())if(this.#$[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#z(this.#$[Z]))yield[this.#W[Z],this.#$[Z]]}*rentries(){for(let Z of this.#A())if(this.#$[Z]!==void 0&&this.#W[Z]!==void 0&&!this.#z(this.#$[Z]))yield[this.#W[Z],this.#$[Z]]}*keys(){for(let Z of this.#P()){let J=this.#W[Z];if(J!==void 0&&!this.#z(this.#$[Z]))yield J}}*rkeys(){for(let Z of this.#A()){let J=this.#W[Z];if(J!==void 0&&!this.#z(this.#$[Z]))yield J}}*values(){for(let Z of this.#P())if(this.#$[Z]!==void 0&&!this.#z(this.#$[Z]))yield this.#$[Z]}*rvalues(){for(let Z of this.#A())if(this.#$[Z]!==void 0&&!this.#z(this.#$[Z]))yield this.#$[Z]}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(Z,J={}){for(let X of this.#P()){let Q=this.#$[X],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0)continue;if(Z(q,this.#W[X],this))return this.get(this.#W[X],J)}}forEach(Z,J=this){for(let X of this.#P()){let Q=this.#$[X],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0)continue;Z.call(J,q,this.#W[X],this)}}rforEach(Z,J=this){for(let X of this.#A()){let Q=this.#$[X],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0)continue;Z.call(J,q,this.#W[X],this)}}purgeStale(){let Z=!1;for(let J of this.#A({allowStale:!0}))if(this.#I(J))this.#T(this.#W[J],"expire"),Z=!0;return Z}info(Z){let J=this.#V.get(Z);if(J===void 0)return;let X=this.#$[J],Q=this.#z(X)?X.__staleWhileFetching:X;if(Q===void 0)return;let q={value:Q};if(this.#G&&this.#R){let $=this.#G[J],Y=this.#R[J];if($&&Y){let K=$-(this.#U.now()-Y);q.ttl=K,q.start=Date.now()}}if(this.#w)q.size=this.#w[J];return q}dump(){let Z=[];for(let J of this.#P({allowStale:!0})){let X=this.#W[J],Q=this.#$[J],q=this.#z(Q)?Q.__staleWhileFetching:Q;if(q===void 0||X===void 0)continue;let $={value:q};if(this.#G&&this.#R){$.ttl=this.#G[J];let Y=this.#U.now()-this.#R[J];$.start=Math.floor(Date.now()-Y)}if(this.#w)$.size=this.#w[J];Z.unshift([X,$])}return Z}load(Z){this.clear();for(let[J,X]of Z){if(X.start){let Q=Date.now()-X.start;X.start=this.#U.now()-Q}this.set(J,X.value,X)}}set(Z,J,X={}){if(J===void 0)return this.delete(Z),this;let{ttl:Q=this.ttl,start:q,noDisposeOnSet:$=this.noDisposeOnSet,sizeCalculation:Y=this.sizeCalculation,status:K}=X,{noUpdateTTL:W=this.noUpdateTTL}=X,V=this.#c(Z,J,X.size||0,Y);if(this.maxEntrySize&&V>this.maxEntrySize){if(K)K.set="miss",K.maxEntrySizeExceeded=!0;return this.#T(Z,"set"),this}let U=this.#K===0?void 0:this.#V.get(Z);if(U===void 0){if(U=this.#K===0?this.#B:this.#O.length!==0?this.#O.pop():this.#K===this.#Z?this.#u(!1):this.#K,this.#W[U]=Z,this.#$[U]=J,this.#V.set(Z,U),this.#D[this.#B]=U,this.#L[U]=this.#B,this.#B=U,this.#K++,this.#f(U,V,K),K)K.set="add";if(W=!1,this.#k)this.#J?.(J,Z,"add")}else{this.#b(U);let G=this.#$[U];if(J!==G){if(this.#_&&this.#z(G)){G.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:H}=G;if(H!==void 0&&!$){if(this.#j)this.#q?.(H,Z,"set");if(this.#X)this.#M?.push([H,Z,"set"])}}else if(!$){if(this.#j)this.#q?.(G,Z,"set");if(this.#X)this.#M?.push([G,Z,"set"])}if(this.#m(U),this.#f(U,V,K),this.#$[U]=J,K){K.set="replace";let H=G&&this.#z(G)?G.__staleWhileFetching:G;if(H!==void 0)K.oldValue=H}}else if(K)K.set="update";if(this.#k)this.onInsert?.(J,Z,J===G?"update":"replace")}if(Q!==0&&!this.#G)this.#E();if(this.#G){if(!W)this.#y(U,Q,q);if(K)this.#v(K,U)}if(!$&&this.#X&&this.#M){let G=this.#M,H;while(H=G?.shift())this.#Y?.(...H)}return this}pop(){try{while(this.#K){let Z=this.#$[this.#H];if(this.#u(!0),this.#z(Z)){if(Z.__staleWhileFetching)return Z.__staleWhileFetching}else if(Z!==void 0)return Z}}finally{if(this.#X&&this.#M){let Z=this.#M,J;while(J=Z?.shift())this.#Y?.(...J)}}}#u(Z){let J=this.#H,X=this.#W[J],Q=this.#$[J];if(this.#_&&this.#z(Q))Q.__abortController.abort(new Error("evicted"));else if(this.#j||this.#X){if(this.#j)this.#q?.(Q,X,"evict");if(this.#X)this.#M?.push([Q,X,"evict"])}if(this.#m(J),this.#F?.[J])clearTimeout(this.#F[J]),this.#F[J]=void 0;if(Z)this.#W[J]=void 0,this.#$[J]=void 0,this.#O.push(J);if(this.#K===1)this.#H=this.#B=0,this.#O.length=0;else this.#H=this.#D[J];return this.#V.delete(X),this.#K--,J}has(Z,J={}){let{updateAgeOnHas:X=this.updateAgeOnHas,status:Q}=J,q=this.#V.get(Z);if(q!==void 0){let $=this.#$[q];if(this.#z($)&&$.__staleWhileFetching===void 0)return!1;if(!this.#I(q)){if(X)this.#S(q);if(Q)Q.has="hit",this.#v(Q,q);return!0}else if(Q)Q.has="stale",this.#v(Q,q)}else if(Q)Q.has="miss";return!1}peek(Z,J={}){let{allowStale:X=this.allowStale}=J,Q=this.#V.get(Z);if(Q===void 0||!X&&this.#I(Q))return;let q=this.#$[Q];return this.#z(q)?q.__staleWhileFetching:q}#g(Z,J,X,Q){let q=J===void 0?void 0:this.#$[J];if(this.#z(q))return q;let $=new a$,{signal:Y}=X;Y?.addEventListener("abort",()=>$.abort(Y.reason),{signal:$.signal});let K={signal:$.signal,options:X,context:Q},W=(F,D=!1)=>{let{aborted:C}=$.signal,L=X.ignoreFetchAbort&&F!==void 0;if(X.status)if(C&&!D){if(X.status.fetchAborted=!0,X.status.fetchError=$.signal.reason,L)X.status.fetchAbortIgnored=!0}else X.status.fetchResolved=!0;if(C&&!L&&!D)return U($.signal.reason);let O=H,v=this.#$[J];if(v===H||L&&D&&v===void 0)if(F===void 0)if(O.__staleWhileFetching!==void 0)this.#$[J]=O.__staleWhileFetching;else this.#T(Z,"fetch");else{if(X.status)X.status.fetchUpdated=!0;this.set(Z,F,K.options)}return F},V=(F)=>{if(X.status)X.status.fetchRejected=!0,X.status.fetchError=F;return U(F)},U=(F)=>{let{aborted:D}=$.signal,C=D&&X.allowStaleOnFetchAbort,L=C||X.allowStaleOnFetchRejection,O=L||X.noDeleteOnFetchRejection,v=H;if(this.#$[J]===H){if(!O||v.__staleWhileFetching===void 0)this.#T(Z,"fetch");else if(!C)this.#$[J]=v.__staleWhileFetching}if(L){if(X.status&&v.__staleWhileFetching!==void 0)X.status.returnedStale=!0;return v.__staleWhileFetching}else if(v.__returned===v)throw F},G=(F,D)=>{let C=this.#C?.(Z,q,K);if(C&&C instanceof Promise)C.then((L)=>F(L===void 0?void 0:L),D);$.signal.addEventListener("abort",()=>{if(!X.ignoreFetchAbort||X.allowStaleOnFetchAbort){if(F(void 0),X.allowStaleOnFetchAbort)F=(L)=>W(L,!0)}})};if(X.status)X.status.fetchDispatched=!0;let H=new Promise(G).then(W,V),M=Object.assign(H,{__abortController:$,__staleWhileFetching:q,__returned:void 0});if(J===void 0)this.set(Z,M,{...K.options,status:void 0}),J=this.#V.get(Z);else this.#$[J]=M;return M}#z(Z){if(!this.#_)return!1;let J=Z;return!!J&&J instanceof Promise&&J.hasOwnProperty("__staleWhileFetching")&&J.__abortController instanceof a$}async fetch(Z,J={}){let{allowStale:X=this.allowStale,updateAgeOnGet:Q=this.updateAgeOnGet,noDeleteOnStaleGet:q=this.noDeleteOnStaleGet,ttl:$=this.ttl,noDisposeOnSet:Y=this.noDisposeOnSet,size:K=0,sizeCalculation:W=this.sizeCalculation,noUpdateTTL:V=this.noUpdateTTL,noDeleteOnFetchRejection:U=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:G=this.allowStaleOnFetchRejection,ignoreFetchAbort:H=this.ignoreFetchAbort,allowStaleOnFetchAbort:M=this.allowStaleOnFetchAbort,context:F,forceRefresh:D=!1,status:C,signal:L}=J;if(!this.#_){if(C)C.fetch="get";return this.get(Z,{allowStale:X,updateAgeOnGet:Q,noDeleteOnStaleGet:q,status:C})}let O={allowStale:X,updateAgeOnGet:Q,noDeleteOnStaleGet:q,ttl:$,noDisposeOnSet:Y,size:K,sizeCalculation:W,noUpdateTTL:V,noDeleteOnFetchRejection:U,allowStaleOnFetchRejection:G,allowStaleOnFetchAbort:M,ignoreFetchAbort:H,status:C,signal:L},v=this.#V.get(Z);if(v===void 0){if(C)C.fetch="miss";let S=this.#g(Z,v,O,F);return S.__returned=S}else{let S=this.#$[v];if(this.#z(S)){let y=X&&S.__staleWhileFetching!==void 0;if(C){if(C.fetch="inflight",y)C.returnedStale=!0}return y?S.__staleWhileFetching:S.__returned=S}let p=this.#I(v);if(!D&&!p){if(C)C.fetch="hit";if(this.#b(v),Q)this.#S(v);if(C)this.#v(C,v);return S}let Z0=this.#g(Z,v,O,F),A=Z0.__staleWhileFetching!==void 0&&X;if(C){if(C.fetch=p?"stale":"refresh",A&&p)C.returnedStale=!0}return A?Z0.__staleWhileFetching:Z0.__returned=Z0}}async forceFetch(Z,J={}){let X=await this.fetch(Z,J);if(X===void 0)throw new Error("fetch() returned undefined");return X}memo(Z,J={}){let X=this.#N;if(!X)throw new Error("no memoMethod provided to constructor");let{context:Q,forceRefresh:q,...$}=J,Y=this.get(Z,$);if(!q&&Y!==void 0)return Y;let K=X(Z,Y,{options:$,context:Q});return this.set(Z,K,$),K}get(Z,J={}){let{allowStale:X=this.allowStale,updateAgeOnGet:Q=this.updateAgeOnGet,noDeleteOnStaleGet:q=this.noDeleteOnStaleGet,status:$}=J,Y=this.#V.get(Z);if(Y!==void 0){let K=this.#$[Y],W=this.#z(K);if($)this.#v($,Y);if(this.#I(Y)){if($)$.get="stale";if(!W){if(!q)this.#T(Z,"expire");if($&&X)$.returnedStale=!0;return X?K:void 0}else{if($&&X&&K.__staleWhileFetching!==void 0)$.returnedStale=!0;return X?K.__staleWhileFetching:void 0}}else{if($)$.get="hit";if(W)return K.__staleWhileFetching;if(this.#b(Y),Q)this.#S(Y);return K}}else if($)$.get="miss"}#h(Z,J){this.#L[J]=Z,this.#D[Z]=J}#b(Z){if(Z!==this.#B){if(Z===this.#H)this.#H=this.#D[Z];else this.#h(this.#L[Z],this.#D[Z]);this.#h(this.#B,Z),this.#B=Z}}delete(Z){return this.#T(Z,"delete")}#T(Z,J){let X=!1;if(this.#K!==0){let Q=this.#V.get(Z);if(Q!==void 0){if(this.#F?.[Q])clearTimeout(this.#F?.[Q]),this.#F[Q]=void 0;if(X=!0,this.#K===1)this.#i(J);else{this.#m(Q);let q=this.#$[Q];if(this.#z(q))q.__abortController.abort(new Error("deleted"));else if(this.#j||this.#X){if(this.#j)this.#q?.(q,Z,J);if(this.#X)this.#M?.push([q,Z,J])}if(this.#V.delete(Z),this.#W[Q]=void 0,this.#$[Q]=void 0,Q===this.#B)this.#B=this.#L[Q];else if(Q===this.#H)this.#H=this.#D[Q];else{let $=this.#L[Q];this.#D[$]=this.#D[Q];let Y=this.#D[Q];this.#L[Y]=this.#L[Q]}this.#K--,this.#O.push(Q)}}}if(this.#X&&this.#M?.length){let Q=this.#M,q;while(q=Q?.shift())this.#Y?.(...q)}return X}clear(){return this.#i("delete")}#i(Z){for(let J of this.#A({allowStale:!0})){let X=this.#$[J];if(this.#z(X))X.__abortController.abort(new Error("deleted"));else{let Q=this.#W[J];if(this.#j)this.#q?.(X,Q,Z);if(this.#X)this.#M?.push([X,Q,Z])}}if(this.#V.clear(),this.#$.fill(void 0),this.#W.fill(void 0),this.#G&&this.#R){this.#G.fill(0),this.#R.fill(0);for(let J of this.#F??[])if(J!==void 0)clearTimeout(J);this.#F?.fill(void 0)}if(this.#w)this.#w.fill(0);if(this.#H=0,this.#B=0,this.#O.length=0,this.#x=0,this.#K=0,this.#X&&this.#M){let J=this.#M,X;while(X=J?.shift())this.#Y?.(...X)}}}import{posix as G70,win32 as uU}from"node:path";import{fileURLToPath as H70}from"node:url";import{lstatSync as B70,readdir as M70,readdirSync as F70,readlinkSync as N70,realpathSync as D70}from"fs";import*as j70 from"node:fs";import{lstat as w70,readdir as C70,readlink as R70,realpath as I70}from"node:fs/promises";import{EventEmitter as mU}from"node:events";import xR from"node:stream";import{StringDecoder as Q70}from"node:string_decoder";var WR=typeof process==="object"&&process?process:{stdout:null,stderr:null},q70=(Z)=>!!Z&&typeof Z==="object"&&(Z instanceof d9||Z instanceof xR||$70(Z)||Y70(Z)),$70=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof mU&&typeof Z.pipe==="function"&&Z.pipe!==xR.Writable.prototype.pipe,Y70=(Z)=>!!Z&&typeof Z==="object"&&Z instanceof mU&&typeof Z.write==="function"&&typeof Z.end==="function",e7=Symbol("EOF"),Z5=Symbol("maybeEmitEnd"),i5=Symbol("emittedEnd"),r$=Symbol("emittingEnd"),MX=Symbol("emittedError"),t$=Symbol("closed"),zR=Symbol("read"),e$=Symbol("flush"),VR=Symbol("flushChunk"),i4=Symbol("encoding"),M3=Symbol("decoder"),U8=Symbol("flowing"),FX=Symbol("paused"),F3=Symbol("resume"),x8=Symbol("buffer"),Z6=Symbol("pipes"),G8=Symbol("bufferLength"),EU=Symbol("bufferPush"),ZY=Symbol("bufferShift"),y8=Symbol("objectMode"),y2=Symbol("destroyed"),vU=Symbol("error"),kU=Symbol("emitData"),UR=Symbol("emitEnd"),fU=Symbol("emitEnd2"),B7=Symbol("async"),bU=Symbol("abort"),JY=Symbol("aborted"),NX=Symbol("signal"),h9=Symbol("dataListeners"),h6=Symbol("discarded"),DX=(Z)=>Promise.resolve().then(Z),K70=(Z)=>Z(),W70=(Z)=>Z==="end"||Z==="finish"||Z==="prefinish",z70=(Z)=>Z instanceof ArrayBuffer||!!Z&&typeof Z==="object"&&Z.constructor&&Z.constructor.name==="ArrayBuffer"&&Z.byteLength>=0,V70=(Z)=>!Buffer.isBuffer(Z)&&ArrayBuffer.isView(Z);class yU{src;dest;opts;ondrain;constructor(Z,J,X){this.src=Z,this.dest=J,this.opts=X,this.ondrain=()=>Z[F3](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(Z){}end(){if(this.unpipe(),this.opts.end)this.dest.end()}}class GR extends yU{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(Z,J,X){super(Z,J,X);this.proxyErrors=(Q)=>J.emit("error",Q),Z.on("error",this.proxyErrors)}}var U70=(Z)=>!!Z.objectMode,x70=(Z)=>!Z.objectMode&&!!Z.encoding&&Z.encoding!=="buffer";class d9 extends mU{[U8]=!1;[FX]=!1;[Z6]=[];[x8]=[];[y8];[i4];[B7];[M3];[e7]=!1;[i5]=!1;[r$]=!1;[t$]=!1;[MX]=null;[G8]=0;[y2]=!1;[NX];[JY]=!1;[h9]=0;[h6]=!1;writable=!0;readable=!0;constructor(...Z){let J=Z[0]||{};super();if(J.objectMode&&typeof J.encoding==="string")throw new TypeError("Encoding and objectMode may not be used together");if(U70(J))this[y8]=!0,this[i4]=null;else if(x70(J))this[i4]=J.encoding,this[y8]=!1;else this[y8]=!1,this[i4]=null;if(this[B7]=!!J.async,this[M3]=this[i4]?new Q70(this[i4]):null,J&&J.debugExposeBuffer===!0)Object.defineProperty(this,"buffer",{get:()=>this[x8]});if(J&&J.debugExposePipes===!0)Object.defineProperty(this,"pipes",{get:()=>this[Z6]});let{signal:X}=J;if(X)if(this[NX]=X,X.aborted)this[bU]();else X.addEventListener("abort",()=>this[bU]())}get bufferLength(){return this[G8]}get encoding(){return this[i4]}set encoding(Z){throw new Error("Encoding must be set at instantiation time")}setEncoding(Z){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[y8]}set objectMode(Z){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[B7]}set["async"](Z){this[B7]=this[B7]||!!Z}[bU](){this[JY]=!0,this.emit("abort",this[NX]?.reason),this.destroy(this[NX]?.reason)}get aborted(){return this[JY]}set aborted(Z){}write(Z,J,X){if(this[JY])return!1;if(this[e7])throw new Error("write after end");if(this[y2])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof J==="function")X=J,J="utf8";if(!J)J="utf8";let Q=this[B7]?DX:K70;if(!this[y8]&&!Buffer.isBuffer(Z)){if(V70(Z))Z=Buffer.from(Z.buffer,Z.byteOffset,Z.byteLength);else if(z70(Z))Z=Buffer.from(Z);else if(typeof Z!=="string")throw new Error("Non-contiguous data written to non-objectMode stream")}if(this[y8]){if(this[U8]&&this[G8]!==0)this[e$](!0);if(this[U8])this.emit("data",Z);else this[EU](Z);if(this[G8]!==0)this.emit("readable");if(X)Q(X);return this[U8]}if(!Z.length){if(this[G8]!==0)this.emit("readable");if(X)Q(X);return this[U8]}if(typeof Z==="string"&&!(J===this[i4]&&!this[M3]?.lastNeed))Z=Buffer.from(Z,J);if(Buffer.isBuffer(Z)&&this[i4])Z=this[M3].write(Z);if(this[U8]&&this[G8]!==0)this[e$](!0);if(this[U8])this.emit("data",Z);else this[EU](Z);if(this[G8]!==0)this.emit("readable");if(X)Q(X);return this[U8]}read(Z){if(this[y2])return null;if(this[h6]=!1,this[G8]===0||Z===0||Z&&Z>this[G8])return this[Z5](),null;if(this[y8])Z=null;if(this[x8].length>1&&!this[y8])this[x8]=[this[i4]?this[x8].join(""):Buffer.concat(this[x8],this[G8])];let J=this[zR](Z||null,this[x8][0]);return this[Z5](),J}[zR](Z,J){if(this[y8])this[ZY]();else{let X=J;if(Z===X.length||Z===null)this[ZY]();else if(typeof X==="string")this[x8][0]=X.slice(Z),J=X.slice(0,Z),this[G8]-=Z;else this[x8][0]=X.subarray(Z),J=X.subarray(0,Z),this[G8]-=Z}if(this.emit("data",J),!this[x8].length&&!this[e7])this.emit("drain");return J}end(Z,J,X){if(typeof Z==="function")X=Z,Z=void 0;if(typeof J==="function")X=J,J="utf8";if(Z!==void 0)this.write(Z,J);if(X)this.once("end",X);if(this[e7]=!0,this.writable=!1,this[U8]||!this[FX])this[Z5]();return this}[F3](){if(this[y2])return;if(!this[h9]&&!this[Z6].length)this[h6]=!0;if(this[FX]=!1,this[U8]=!0,this.emit("resume"),this[x8].length)this[e$]();else if(this[e7])this[Z5]();else this.emit("drain")}resume(){return this[F3]()}pause(){this[U8]=!1,this[FX]=!0,this[h6]=!1}get destroyed(){return this[y2]}get flowing(){return this[U8]}get paused(){return this[FX]}[EU](Z){if(this[y8])this[G8]+=1;else this[G8]+=Z.length;this[x8].push(Z)}[ZY](){if(this[y8])this[G8]-=1;else this[G8]-=this[x8][0].length;return this[x8].shift()}[e$](Z=!1){do;while(this[VR](this[ZY]())&&this[x8].length);if(!Z&&!this[x8].length&&!this[e7])this.emit("drain")}[VR](Z){return this.emit("data",Z),this[U8]}pipe(Z,J){if(this[y2])return Z;this[h6]=!1;let X=this[i5];if(J=J||{},Z===WR.stdout||Z===WR.stderr)J.end=!1;else J.end=J.end!==!1;if(J.proxyErrors=!!J.proxyErrors,X){if(J.end)Z.end()}else if(this[Z6].push(!J.proxyErrors?new yU(this,Z,J):new GR(this,Z,J)),this[B7])DX(()=>this[F3]());else this[F3]();return Z}unpipe(Z){let J=this[Z6].find((X)=>X.dest===Z);if(J){if(this[Z6].length===1){if(this[U8]&&this[h9]===0)this[U8]=!1;this[Z6]=[]}else this[Z6].splice(this[Z6].indexOf(J),1);J.unpipe()}}addListener(Z,J){return this.on(Z,J)}on(Z,J){let X=super.on(Z,J);if(Z==="data"){if(this[h6]=!1,this[h9]++,!this[Z6].length&&!this[U8])this[F3]()}else if(Z==="readable"&&this[G8]!==0)super.emit("readable");else if(W70(Z)&&this[i5])super.emit(Z),this.removeAllListeners(Z);else if(Z==="error"&&this[MX]){let Q=J;if(this[B7])DX(()=>Q.call(this,this[MX]));else Q.call(this,this[MX])}return X}removeListener(Z,J){return this.off(Z,J)}off(Z,J){let X=super.off(Z,J);if(Z==="data"){if(this[h9]=this.listeners("data").length,this[h9]===0&&!this[h6]&&!this[Z6].length)this[U8]=!1}return X}removeAllListeners(Z){let J=super.removeAllListeners(Z);if(Z==="data"||Z===void 0){if(this[h9]=0,!this[h6]&&!this[Z6].length)this[U8]=!1}return J}get emittedEnd(){return this[i5]}[Z5](){if(!this[r$]&&!this[i5]&&!this[y2]&&this[x8].length===0&&this[e7]){if(this[r$]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[t$])this.emit("close");this[r$]=!1}}emit(Z,...J){let X=J[0];if(Z!=="error"&&Z!=="close"&&Z!==y2&&this[y2])return!1;else if(Z==="data")return!this[y8]&&!X?!1:this[B7]?(DX(()=>this[kU](X)),!0):this[kU](X);else if(Z==="end")return this[UR]();else if(Z==="close"){if(this[t$]=!0,!this[i5]&&!this[y2])return!1;let q=super.emit("close");return this.removeAllListeners("close"),q}else if(Z==="error"){this[MX]=X,super.emit(vU,X);let q=!this[NX]||this.listeners("error").length?super.emit("error",X):!1;return this[Z5](),q}else if(Z==="resume"){let q=super.emit("resume");return this[Z5](),q}else if(Z==="finish"||Z==="prefinish"){let q=super.emit(Z);return this.removeAllListeners(Z),q}let Q=super.emit(Z,...J);return this[Z5](),Q}[kU](Z){for(let X of this[Z6])if(X.dest.write(Z)===!1)this.pause();let J=this[h6]?!1:super.emit("data",Z);return this[Z5](),J}[UR](){if(this[i5])return!1;return this[i5]=!0,this.readable=!1,this[B7]?(DX(()=>this[fU]()),!0):this[fU]()}[fU](){if(this[M3]){let J=this[M3].end();if(J){for(let X of this[Z6])X.dest.write(J);if(!this[h6])super.emit("data",J)}}for(let J of this[Z6])J.end();let Z=super.emit("end");return this.removeAllListeners("end"),Z}async collect(){let Z=Object.assign([],{dataLength:0});if(!this[y8])Z.dataLength=0;let J=this.promise();return this.on("data",(X)=>{if(Z.push(X),!this[y8])Z.dataLength+=X.length}),await J,Z}async concat(){if(this[y8])throw new Error("cannot concat in objectMode");let Z=await this.collect();return this[i4]?Z.join(""):Buffer.concat(Z,Z.dataLength)}async promise(){return new Promise((Z,J)=>{this.on(y2,()=>J(new Error("stream destroyed"))),this.on("error",(X)=>J(X)),this.on("end",()=>Z())})}[Symbol.asyncIterator](){this[h6]=!1;let Z=!1,J=async()=>{return this.pause(),Z=!0,{value:void 0,done:!0}};return{next:()=>{if(Z)return J();let Q=this.read();if(Q!==null)return Promise.resolve({done:!1,value:Q});if(this[e7])return J();let q,$,Y=(U)=>{this.off("data",K),this.off("end",W),this.off(y2,V),J(),$(U)},K=(U)=>{this.off("error",Y),this.off("end",W),this.off(y2,V),this.pause(),q({value:U,done:!!this[e7]})},W=()=>{this.off("error",Y),this.off("data",K),this.off(y2,V),J(),q({done:!0,value:void 0})},V=()=>Y(new Error("stream destroyed"));return new Promise((U,G)=>{$=G,q=U,this.once(y2,V),this.once("error",Y),this.once("end",W),this.once("data",K)})},throw:J,return:J,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[h6]=!1;let Z=!1,J=()=>{return this.pause(),this.off(vU,J),this.off(y2,J),this.off("end",J),Z=!0,{done:!0,value:void 0}},X=()=>{if(Z)return J();let Q=this.read();return Q===null?J():{done:!1,value:Q}};return this.once("end",J),this.once(vU,J),this.once(y2,J),{next:X,throw:J,return:J,[Symbol.iterator](){return this}}}destroy(Z){if(this[y2]){if(Z)this.emit("error",Z);else this.emit(y2);return this}this[y2]=!0,this[h6]=!0,this[x8].length=0,this[G8]=0;let J=this;if(typeof J.close==="function"&&!this[t$])J.close();if(Z)this.emit("error",Z);else this.emit(y2);return this}static get isStream(){return q70}}var L70=D70.native,LX={lstatSync:B70,readdir:M70,readdirSync:F70,readlinkSync:N70,realpathSync:L70,promises:{lstat:w70,readdir:C70,readlink:R70,realpath:I70}},NR=(Z)=>!Z||Z===LX||Z===j70?LX:{...LX,...Z,promises:{...LX.promises,...Z.promises||{}}},DR=/^\\\\\?\\([a-z]:)\\?$/i,O70=(Z)=>Z.replace(/\//g,"\\").replace(DR,"$1\\"),_70=/[\\\/]/,B4=0,jR=1,LR=2,M7=4,wR=6,CR=8,i9=10,RR=12,H4=15,jX=~H4,cU=16,HR=32,wX=64,l4=128,XY=256,qY=512,BR=wX|l4|qY,S70=1023,pU=(Z)=>Z.isFile()?CR:Z.isDirectory()?M7:Z.isSymbolicLink()?i9:Z.isCharacterDevice()?LR:Z.isBlockDevice()?wR:Z.isSocket()?RR:Z.isFIFO()?jR:B4,MR=new g9({max:4096}),CX=(Z)=>{let J=MR.get(Z);if(J)return J;let X=Z.normalize("NFKD");return MR.set(Z,X),X},FR=new g9({max:4096}),QY=(Z)=>{let J=FR.get(Z);if(J)return J;let X=CX(Z.toLowerCase());return FR.set(Z,X),X};class gU extends g9{constructor(){super({max:256})}}class IR extends g9{constructor(Z=16384){super({maxSize:Z,sizeCalculation:(J)=>J.length+1})}}var OR=Symbol("PathScurry setAsCwd");class J6{name;root;roots;parent;nocase;isCWD=!1;#Z;#Q;get dev(){return this.#Q}#q;get mode(){return this.#q}#J;get nlink(){return this.#J}#Y;get uid(){return this.#Y}#C;get gid(){return this.#C}#N;get rdev(){return this.#N}#U;get blksize(){return this.#U}#K;get ino(){return this.#K}#x;get size(){return this.#x}#V;get blocks(){return this.#V}#W;get atimeMs(){return this.#W}#$;get mtimeMs(){return this.#$}#D;get ctimeMs(){return this.#D}#L;get birthtimeMs(){return this.#L}#H;get atime(){return this.#H}#B;get mtime(){return this.#B}#O;get ctime(){return this.#O}#M;get birthtime(){return this.#M}#w;#R;#G;#F;#j;#_;#X;#k;#E;#S;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(Z,J=B4,X,Q,q,$,Y){if(this.name=Z,this.#w=q?QY(Z):CX(Z),this.#X=J&S70,this.nocase=q,this.roots=Q,this.root=X||this,this.#k=$,this.#G=Y.fullpath,this.#j=Y.relative,this.#_=Y.relativePosix,this.parent=Y.parent,this.parent)this.#Z=this.parent.#Z;else this.#Z=NR(Y.fs)}depth(){if(this.#R!==void 0)return this.#R;if(!this.parent)return this.#R=0;return this.#R=this.parent.depth()+1}childrenCache(){return this.#k}resolve(Z){if(!Z)return this;let J=this.getRootString(Z),Q=Z.substring(J.length).split(this.splitSep);return J?this.getRoot(J).#v(Q):this.#v(Q)}#v(Z){let J=this;for(let X of Z)J=J.child(X);return J}children(){let Z=this.#k.get(this);if(Z)return Z;let J=Object.assign([],{provisional:0});return this.#k.set(this,J),this.#X&=~cU,J}child(Z,J){if(Z===""||Z===".")return this;if(Z==="..")return this.parent||this;let X=this.children(),Q=this.nocase?QY(Z):CX(Z);for(let K of X)if(K.#w===Q)return K;let q=this.parent?this.sep:"",$=this.#G?this.#G+q+Z:void 0,Y=this.newChild(Z,B4,{...J,parent:this,fullpath:$});if(!this.canReaddir())Y.#X|=l4;return X.push(Y),Y}relative(){if(this.isCWD)return"";if(this.#j!==void 0)return this.#j;let Z=this.name,J=this.parent;if(!J)return this.#j=this.name;let X=J.relative();return X+(!X||!J.parent?"":this.sep)+Z}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let Z=this.name,J=this.parent;if(!J)return this.#_=this.fullpathPosix();let X=J.relativePosix();return X+(!X||!J.parent?"":"/")+Z}fullpath(){if(this.#G!==void 0)return this.#G;let Z=this.name,J=this.parent;if(!J)return this.#G=this.name;let Q=J.fullpath()+(!J.parent?"":this.sep)+Z;return this.#G=Q}fullpathPosix(){if(this.#F!==void 0)return this.#F;if(this.sep==="/")return this.#F=this.fullpath();if(!this.parent){let Q=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(Q))return this.#F=`//?/${Q}`;else return this.#F=Q}let Z=this.parent,J=Z.fullpathPosix(),X=J+(!J||!Z.parent?"":"/")+this.name;return this.#F=X}isUnknown(){return(this.#X&H4)===B4}isType(Z){return this[`is${Z}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#X&H4)===CR}isDirectory(){return(this.#X&H4)===M7}isCharacterDevice(){return(this.#X&H4)===LR}isBlockDevice(){return(this.#X&H4)===wR}isFIFO(){return(this.#X&H4)===jR}isSocket(){return(this.#X&H4)===RR}isSymbolicLink(){return(this.#X&i9)===i9}lstatCached(){return this.#X&HR?this:void 0}readlinkCached(){return this.#E}realpathCached(){return this.#S}readdirCached(){let Z=this.children();return Z.slice(0,Z.provisional)}canReadlink(){if(this.#E)return!0;if(!this.parent)return!1;let Z=this.#X&H4;return!(Z!==B4&&Z!==i9||this.#X&XY||this.#X&l4)}calledReaddir(){return!!(this.#X&cU)}isENOENT(){return!!(this.#X&l4)}isNamed(Z){return!this.nocase?this.#w===CX(Z):this.#w===QY(Z)}async readlink(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let J=await this.#Z.promises.readlink(this.fullpath()),X=(await this.parent.realpath())?.resolve(J);if(X)return this.#E=X}catch(J){this.#A(J.code);return}}readlinkSync(){let Z=this.#E;if(Z)return Z;if(!this.canReadlink())return;if(!this.parent)return;try{let J=this.#Z.readlinkSync(this.fullpath()),X=this.parent.realpathSync()?.resolve(J);if(X)return this.#E=X}catch(J){this.#A(J.code);return}}#y(Z){this.#X|=cU;for(let J=Z.provisional;J<Z.length;J++){let X=Z[J];if(X)X.#I()}}#I(){if(this.#X&l4)return;this.#X=(this.#X|l4)&jX,this.#d()}#d(){let Z=this.children();Z.provisional=0;for(let J of Z)J.#I()}#m(){this.#X|=qY,this.#f()}#f(){if(this.#X&wX)return;let Z=this.#X;if((Z&H4)===M7)Z&=jX;this.#X=Z|wX,this.#d()}#c(Z=""){if(Z==="ENOTDIR"||Z==="EPERM")this.#f();else if(Z==="ENOENT")this.#I();else this.children().provisional=0}#P(Z=""){if(Z==="ENOTDIR")this.parent.#f();else if(Z==="ENOENT")this.#I()}#A(Z=""){let J=this.#X;if(J|=XY,Z==="ENOENT")J|=l4;if(Z==="EINVAL"||Z==="UNKNOWN")J&=jX;if(this.#X=J,Z==="ENOTDIR"&&this.parent)this.parent.#f()}#p(Z,J){return this.#g(Z,J)||this.#u(Z,J)}#u(Z,J){let X=pU(Z),Q=this.newChild(Z.name,X,{parent:this}),q=Q.#X&H4;if(q!==M7&&q!==i9&&q!==B4)Q.#X|=wX;return J.unshift(Q),J.provisional++,Q}#g(Z,J){for(let X=J.provisional;X<J.length;X++){let Q=J[X];if((this.nocase?QY(Z.name):CX(Z.name))!==Q.#w)continue;return this.#z(Z,Q,X,J)}}#z(Z,J,X,Q){let q=J.name;if(J.#X=J.#X&jX|pU(Z),q!==Z.name)J.name=Z.name;if(X!==Q.provisional){if(X===Q.length-1)Q.pop();else Q.splice(X,1);Q.unshift(J)}return Q.provisional++,J}async lstat(){if((this.#X&l4)===0)try{return this.#h(await this.#Z.promises.lstat(this.fullpath())),this}catch(Z){this.#P(Z.code)}}lstatSync(){if((this.#X&l4)===0)try{return this.#h(this.#Z.lstatSync(this.fullpath())),this}catch(Z){this.#P(Z.code)}}#h(Z){let{atime:J,atimeMs:X,birthtime:Q,birthtimeMs:q,blksize:$,blocks:Y,ctime:K,ctimeMs:W,dev:V,gid:U,ino:G,mode:H,mtime:M,mtimeMs:F,nlink:D,rdev:C,size:L,uid:O}=Z;this.#H=J,this.#W=X,this.#M=Q,this.#L=q,this.#U=$,this.#V=Y,this.#O=K,this.#D=W,this.#Q=V,this.#C=U,this.#K=G,this.#q=H,this.#B=M,this.#$=F,this.#J=D,this.#N=C,this.#x=L,this.#Y=O;let v=pU(Z);if(this.#X=this.#X&jX|v|HR,v!==B4&&v!==M7&&v!==i9)this.#X|=wX}#b=[];#T=!1;#i(Z){this.#T=!1;let J=this.#b.slice();this.#b.length=0,J.forEach((X)=>X(null,Z))}readdirCB(Z,J=!1){if(!this.canReaddir()){if(J)Z(null,[]);else queueMicrotask(()=>Z(null,[]));return}let X=this.children();if(this.calledReaddir()){let q=X.slice(0,X.provisional);if(J)Z(null,q);else queueMicrotask(()=>Z(null,q));return}if(this.#b.push(Z),this.#T)return;this.#T=!0;let Q=this.fullpath();this.#Z.readdir(Q,{withFileTypes:!0},(q,$)=>{if(q)this.#c(q.code),X.provisional=0;else{for(let Y of $)this.#p(Y,X);this.#y(X)}this.#i(X.slice(0,X.provisional));return})}#l;async readdir(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let J=this.fullpath();if(this.#l)await this.#l;else{let X=()=>{};this.#l=new Promise((Q)=>X=Q);try{for(let Q of await this.#Z.promises.readdir(J,{withFileTypes:!0}))this.#p(Q,Z);this.#y(Z)}catch(Q){this.#c(Q.code),Z.provisional=0}this.#l=void 0,X()}return Z.slice(0,Z.provisional)}readdirSync(){if(!this.canReaddir())return[];let Z=this.children();if(this.calledReaddir())return Z.slice(0,Z.provisional);let J=this.fullpath();try{for(let X of this.#Z.readdirSync(J,{withFileTypes:!0}))this.#p(X,Z);this.#y(Z)}catch(X){this.#c(X.code),Z.provisional=0}return Z.slice(0,Z.provisional)}canReaddir(){if(this.#X&BR)return!1;let Z=H4&this.#X;if(!(Z===B4||Z===M7||Z===i9))return!1;return!0}shouldWalk(Z,J){return(this.#X&M7)===M7&&!(this.#X&BR)&&!Z.has(this)&&(!J||J(this))}async realpath(){if(this.#S)return this.#S;if((qY|XY|l4)&this.#X)return;try{let Z=await this.#Z.promises.realpath(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}realpathSync(){if(this.#S)return this.#S;if((qY|XY|l4)&this.#X)return;try{let Z=this.#Z.realpathSync(this.fullpath());return this.#S=this.resolve(Z)}catch(Z){this.#m()}}[OR](Z){if(Z===this)return;Z.isCWD=!1,this.isCWD=!0;let J=new Set([]),X=[],Q=this;while(Q&&Q.parent)J.add(Q),Q.#j=X.join(this.sep),Q.#_=X.join("/"),Q=Q.parent,X.push("..");Q=Z;while(Q&&Q.parent&&!J.has(Q))Q.#j=void 0,Q.#_=void 0,Q=Q.parent}}class $Y extends J6{sep="\\";splitSep=_70;constructor(Z,J=B4,X,Q,q,$,Y){super(Z,J,X,Q,q,$,Y)}newChild(Z,J=B4,X={}){return new $Y(Z,J,this.root,this.roots,this.nocase,this.childrenCache(),X)}getRootString(Z){return uU.parse(Z).root}getRoot(Z){if(Z=O70(Z.toUpperCase()),Z===this.root.name)return this.root;for(let[J,X]of Object.entries(this.roots))if(this.sameRoot(Z,J))return this.roots[Z]=X;return this.roots[Z]=new RX(Z,this).root}sameRoot(Z,J=this.root.name){return Z=Z.toUpperCase().replace(/\//g,"\\").replace(DR,"$1\\"),Z===J}}class YY extends J6{splitSep="/";sep="/";constructor(Z,J=B4,X,Q,q,$,Y){super(Z,J,X,Q,q,$,Y)}getRootString(Z){return Z.startsWith("/")?"/":""}getRoot(Z){return this.root}newChild(Z,J=B4,X={}){return new YY(Z,J,this.root,this.roots,this.nocase,this.childrenCache(),X)}}class hU{root;rootPath;roots;cwd;#Z;#Q;#q;nocase;#J;constructor(Z=process.cwd(),J,X,{nocase:Q,childrenCacheSize:q=16384,fs:$=LX}={}){if(this.#J=NR($),Z instanceof URL||Z.startsWith("file://"))Z=H70(Z);let Y=J.resolve(Z);this.roots=Object.create(null),this.rootPath=this.parseRootPath(Y),this.#Z=new gU,this.#Q=new gU,this.#q=new IR(q);let K=Y.substring(this.rootPath.length).split(X);if(K.length===1&&!K[0])K.pop();if(Q===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=Q,this.root=this.newRoot(this.#J),this.roots[this.rootPath]=this.root;let W=this.root,V=K.length-1,U=J.sep,G=this.rootPath,H=!1;for(let M of K){let F=V--;W=W.child(M,{relative:new Array(F).fill("..").join(U),relativePosix:new Array(F).fill("..").join("/"),fullpath:G+=(H?"":U)+M}),H=!0}this.cwd=W}depth(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.depth()}childrenCache(){return this.#q}resolve(...Z){let J="";for(let q=Z.length-1;q>=0;q--){let $=Z[q];if(!$||$===".")continue;if(J=J?`${$}/${J}`:$,this.isAbsolute($))break}let X=this.#Z.get(J);if(X!==void 0)return X;let Q=this.cwd.resolve(J).fullpath();return this.#Z.set(J,Q),Q}resolvePosix(...Z){let J="";for(let q=Z.length-1;q>=0;q--){let $=Z[q];if(!$||$===".")continue;if(J=J?`${$}/${J}`:$,this.isAbsolute($))break}let X=this.#Q.get(J);if(X!==void 0)return X;let Q=this.cwd.resolve(J).fullpathPosix();return this.#Q.set(J,Q),Q}relative(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relative()}relativePosix(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.relativePosix()}basename(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.name}dirname(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return(Z.parent||Z).fullpath()}async readdir(Z=this.cwd,J={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X}=J;if(!Z.canReaddir())return[];else{let Q=await Z.readdir();return X?Q:Q.map((q)=>q.name)}}readdirSync(Z=this.cwd,J={withFileTypes:!0}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0}=J;if(!Z.canReaddir())return[];else if(X)return Z.readdirSync();else return Z.readdirSync().map((Q)=>Q.name)}async lstat(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstat()}lstatSync(Z=this.cwd){if(typeof Z==="string")Z=this.cwd.resolve(Z);return Z.lstatSync()}async readlink(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=await Z.readlink();return J?X:X?.fullpath()}readlinkSync(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=Z.readlinkSync();return J?X:X?.fullpath()}async realpath(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=await Z.realpath();return J?X:X?.fullpath()}realpathSync(Z=this.cwd,{withFileTypes:J}={withFileTypes:!1}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z.withFileTypes,Z=this.cwd;let X=Z.realpathSync();return J?X:X?.fullpath()}async walk(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=[];if(!q||q(Z))Y.push(X?Z:Z.fullpath());let K=new Set,W=(U,G)=>{K.add(U),U.readdirCB((H,M)=>{if(H)return G(H);let F=M.length;if(!F)return G();let D=()=>{if(--F===0)G()};for(let C of M){if(!q||q(C))Y.push(X?C:C.fullpath());if(Q&&C.isSymbolicLink())C.realpath().then((L)=>L?.isUnknown()?L.lstat():L).then((L)=>L?.shouldWalk(K,$)?W(L,D):D());else if(C.shouldWalk(K,$))W(C,D);else D()}},!0)},V=Z;return new Promise((U,G)=>{W(V,(H)=>{if(H)return G(H);U(Y)})})}walkSync(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=[];if(!q||q(Z))Y.push(X?Z:Z.fullpath());let K=new Set([Z]);for(let W of K){let V=W.readdirSync();for(let U of V){if(!q||q(U))Y.push(X?U:U.fullpath());let G=U;if(U.isSymbolicLink()){if(!(Q&&(G=U.realpathSync())))continue;if(G.isUnknown())G.lstatSync()}if(G.shouldWalk(K,$))K.add(G)}}return Y}[Symbol.asyncIterator](){return this.iterate()}iterate(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;return this.stream(Z,J)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J;if(!q||q(Z))yield X?Z:Z.fullpath();let Y=new Set([Z]);for(let K of Y){let W=K.readdirSync();for(let V of W){if(!q||q(V))yield X?V:V.fullpath();let U=V;if(V.isSymbolicLink()){if(!(Q&&(U=V.realpathSync())))continue;if(U.isUnknown())U.lstatSync()}if(U.shouldWalk(Y,$))Y.add(U)}}}stream(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=new d9({objectMode:!0});if(!q||q(Z))Y.write(X?Z:Z.fullpath());let K=new Set,W=[Z],V=0,U=()=>{let G=!1;while(!G){let H=W.shift();if(!H){if(V===0)Y.end();return}V++,K.add(H);let M=(D,C,L=!1)=>{if(D)return Y.emit("error",D);if(Q&&!L){let O=[];for(let v of C)if(v.isSymbolicLink())O.push(v.realpath().then((S)=>S?.isUnknown()?S.lstat():S));if(O.length){Promise.all(O).then(()=>M(null,C,!0));return}}for(let O of C)if(O&&(!q||q(O))){if(!Y.write(X?O:O.fullpath()))G=!0}V--;for(let O of C){let v=O.realpathCached()||O;if(v.shouldWalk(K,$))W.push(v)}if(G&&!Y.flowing)Y.once("drain",U);else if(!F)U()},F=!0;H.readdirCB(M,!0),F=!1}};return U(),Y}streamSync(Z=this.cwd,J={}){if(typeof Z==="string")Z=this.cwd.resolve(Z);else if(!(Z instanceof J6))J=Z,Z=this.cwd;let{withFileTypes:X=!0,follow:Q=!1,filter:q,walkFilter:$}=J,Y=new d9({objectMode:!0}),K=new Set;if(!q||q(Z))Y.write(X?Z:Z.fullpath());let W=[Z],V=0,U=()=>{let G=!1;while(!G){let H=W.shift();if(!H){if(V===0)Y.end();return}V++,K.add(H);let M=H.readdirSync();for(let F of M)if(!q||q(F)){if(!Y.write(X?F:F.fullpath()))G=!0}V--;for(let F of M){let D=F;if(F.isSymbolicLink()){if(!(Q&&(D=F.realpathSync())))continue;if(D.isUnknown())D.lstatSync()}if(D.shouldWalk(K,$))W.push(D)}}if(G&&!Y.flowing)Y.once("drain",U)};return U(),Y}chdir(Z=this.cwd){let J=this.cwd;this.cwd=typeof Z==="string"?this.cwd.resolve(Z):Z,this.cwd[OR](J)}}class RX extends hU{sep="\\";constructor(Z=process.cwd(),J={}){let{nocase:X=!0}=J;super(Z,uU,"\\",{...J,nocase:X});this.nocase=X;for(let Q=this.cwd;Q;Q=Q.parent)Q.nocase=this.nocase}parseRootPath(Z){return uU.parse(Z).root.toUpperCase()}newRoot(Z){return new $Y(this.rootPath,M7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")||Z.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(Z)}}class IX extends hU{sep="/";constructor(Z=process.cwd(),J={}){let{nocase:X=!1}=J;super(Z,G70,"/",{...J,nocase:X});this.nocase=X}parseRootPath(Z){return"/"}newRoot(Z){return new YY(this.rootPath,M7,void 0,this.roots,this.nocase,this.childrenCache(),{fs:Z})}isAbsolute(Z){return Z.startsWith("/")}}class KY extends IX{constructor(Z=process.cwd(),J={}){let{nocase:X=!0}=J;super(Z,{...J,nocase:X})}}var sl0=process.platform==="win32"?$Y:YY,_R=process.platform==="win32"?RX:process.platform==="darwin"?KY:IX;var T70=(Z)=>Z.length>=1,P70=(Z)=>Z.length>=1;class N3{#Z;#Q;#q;length;#J;#Y;#C;#N;#U;#K;#x=!0;constructor(Z,J,X,Q){if(!T70(Z))throw new TypeError("empty pattern list");if(!P70(J))throw new TypeError("empty glob list");if(J.length!==Z.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=Z.length,X<0||X>=this.length)throw new TypeError("index out of range");if(this.#Z=Z,this.#Q=J,this.#q=X,this.#J=Q,this.#q===0){if(this.isUNC()){let[q,$,Y,K,...W]=this.#Z,[V,U,G,H,...M]=this.#Q;if(W[0]==="")W.shift(),M.shift();let F=[q,$,Y,K,""].join("/"),D=[V,U,G,H,""].join("/");this.#Z=[F,...W],this.#Q=[D,...M],this.length=this.#Z.length}else if(this.isDrive()||this.isAbsolute()){let[q,...$]=this.#Z,[Y,...K]=this.#Q;if($[0]==="")$.shift(),K.shift();let W=q+"/",V=Y+"/";this.#Z=[W,...$],this.#Q=[V,...K],this.length=this.#Z.length}}}pattern(){return this.#Z[this.#q]}isString(){return typeof this.#Z[this.#q]==="string"}isGlobstar(){return this.#Z[this.#q]===m2}isRegExp(){return this.#Z[this.#q]instanceof RegExp}globString(){return this.#C=this.#C||(this.#q===0?this.isAbsolute()?this.#Q[0]+this.#Q.slice(1).join("/"):this.#Q.join("/"):this.#Q.slice(this.#q).join("/"))}hasMore(){return this.length>this.#q+1}rest(){if(this.#Y!==void 0)return this.#Y;if(!this.hasMore())return this.#Y=null;return this.#Y=new N3(this.#Z,this.#Q,this.#q+1,this.#J),this.#Y.#K=this.#K,this.#Y.#U=this.#U,this.#Y.#N=this.#N,this.#Y}isUNC(){let Z=this.#Z;return this.#U!==void 0?this.#U:this.#U=this.#J==="win32"&&this.#q===0&&Z[0]===""&&Z[1]===""&&typeof Z[2]==="string"&&!!Z[2]&&typeof Z[3]==="string"&&!!Z[3]}isDrive(){let Z=this.#Z;return this.#N!==void 0?this.#N:this.#N=this.#J==="win32"&&this.#q===0&&this.length>1&&typeof Z[0]==="string"&&/^[a-z]:$/i.test(Z[0])}isAbsolute(){let Z=this.#Z;return this.#K!==void 0?this.#K:this.#K=Z[0]===""&&Z.length>1||this.isDrive()||this.isUNC()}root(){let Z=this.#Z[0];return typeof Z==="string"&&this.isAbsolute()&&this.#q===0?Z:""}checkFollowGlobstar(){return!(this.#q===0||!this.isGlobstar()||!this.#x)}markFollowGlobstar(){if(this.#q===0||!this.isGlobstar()||!this.#x)return!1;return this.#x=!1,!0}}var A70=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class OX{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(Z,{nobrace:J,nocase:X,noext:Q,noglobstar:q,platform:$=A70}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=$,this.mmopts={dot:!0,nobrace:J,nocase:X,noext:Q,noglobstar:q,optimizationLevel:2,platform:$,nocomment:!0,nonegate:!0};for(let Y of Z)this.add(Y)}add(Z){let J=new G4(Z,this.mmopts);for(let X=0;X<J.set.length;X++){let Q=J.set[X],q=J.globParts[X];if(!Q||!q)throw new Error("invalid pattern object");while(Q[0]==="."&&q[0]===".")Q.shift(),q.shift();let $=new N3(Q,q,0,this.platform),Y=new G4($.globString(),this.mmopts),K=q[q.length-1]==="**",W=$.isAbsolute();if(W)this.absolute.push(Y);else this.relative.push(Y);if(K)if(W)this.absoluteChildren.push(Y);else this.relativeChildren.push(Y)}}ignored(Z){let J=Z.fullpath(),X=`${J}/`,Q=Z.relative()||".",q=`${Q}/`;for(let $ of this.relative)if($.match(Q)||$.match(q))return!0;for(let $ of this.absolute)if($.match(J)||$.match(X))return!0;return!1}childrenIgnored(Z){let J=Z.fullpath()+"/",X=(Z.relative()||".")+"/";for(let Q of this.relativeChildren)if(Q.match(X))return!0;for(let Q of this.absoluteChildren)if(Q.match(J))return!0;return!1}}class dU{store;constructor(Z=new Map){this.store=Z}copy(){return new dU(new Map(this.store))}hasWalked(Z,J){return this.store.get(Z.fullpath())?.has(J.globString())}storeWalked(Z,J){let X=Z.fullpath(),Q=this.store.get(X);if(Q)Q.add(J.globString());else this.store.set(X,new Set([J.globString()]))}}class SR{store=new Map;add(Z,J,X){let Q=(J?2:0)|(X?1:0),q=this.store.get(Z);this.store.set(Z,q===void 0?Q:Q&q)}entries(){return[...this.store.entries()].map(([Z,J])=>[Z,!!(J&2),!!(J&1)])}}class TR{store=new Map;add(Z,J){if(!Z.canReaddir())return;let X=this.store.get(Z);if(X){if(!X.find((Q)=>Q.globString()===J.globString()))X.push(J)}else this.store.set(Z,[J])}get(Z){let J=this.store.get(Z);if(!J)throw new Error("attempting to walk unknown path");return J}entries(){return this.keys().map((Z)=>[Z,this.store.get(Z)])}keys(){return[...this.store.keys()].filter((Z)=>Z.canReaddir())}}class _X{hasWalkedCache;matches=new SR;subwalks=new TR;patterns;follow;dot;opts;constructor(Z,J){this.opts=Z,this.follow=!!Z.follow,this.dot=!!Z.dot,this.hasWalkedCache=J?J.copy():new dU}processPatterns(Z,J){this.patterns=J;let X=J.map((Q)=>[Z,Q]);for(let[Q,q]of X){this.hasWalkedCache.storeWalked(Q,q);let $=q.root(),Y=q.isAbsolute()&&this.opts.absolute!==!1;if($){Q=Q.resolve($==="/"&&this.opts.root!==void 0?this.opts.root:$);let U=q.rest();if(!U){this.matches.add(Q,!0,!1);continue}else q=U}if(Q.isENOENT())continue;let K,W,V=!1;while(typeof(K=q.pattern())==="string"&&(W=q.rest()))Q=Q.resolve(K),q=W,V=!0;if(K=q.pattern(),W=q.rest(),V){if(this.hasWalkedCache.hasWalked(Q,q))continue;this.hasWalkedCache.storeWalked(Q,q)}if(typeof K==="string"){let U=K===".."||K===""||K===".";this.matches.add(Q.resolve(K),Y,U);continue}else if(K===m2){if(!Q.isSymbolicLink()||this.follow||q.checkFollowGlobstar())this.subwalks.add(Q,q);let U=W?.pattern(),G=W?.rest();if(!W||(U===""||U===".")&&!G)this.matches.add(Q,Y,U===""||U===".");else if(U===".."){let H=Q.parent||Q;if(!G)this.matches.add(H,Y,!0);else if(!this.hasWalkedCache.hasWalked(H,G))this.subwalks.add(H,G)}}else if(K instanceof RegExp)this.subwalks.add(Q,q)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new _X(this.opts,this.hasWalkedCache)}filterEntries(Z,J){let X=this.subwalks.get(Z),Q=this.child();for(let q of J)for(let $ of X){let Y=$.isAbsolute(),K=$.pattern(),W=$.rest();if(K===m2)Q.testGlobstar(q,$,W,Y);else if(K instanceof RegExp)Q.testRegExp(q,K,W,Y);else Q.testString(q,K,W,Y)}return Q}testGlobstar(Z,J,X,Q){if(this.dot||!Z.name.startsWith(".")){if(!J.hasMore())this.matches.add(Z,Q,!1);if(Z.canReaddir()){if(this.follow||!Z.isSymbolicLink())this.subwalks.add(Z,J);else if(Z.isSymbolicLink()){if(X&&J.checkFollowGlobstar())this.subwalks.add(Z,X);else if(J.markFollowGlobstar())this.subwalks.add(Z,J)}}}if(X){let q=X.pattern();if(typeof q==="string"&&q!==".."&&q!==""&&q!==".")this.testString(Z,q,X.rest(),Q);else if(q===".."){let $=Z.parent||Z;this.subwalks.add($,X)}else if(q instanceof RegExp)this.testRegExp(Z,q,X.rest(),Q)}}testRegExp(Z,J,X,Q){if(!J.test(Z.name))return;if(!X)this.matches.add(Z,Q,!1);else this.subwalks.add(Z,X)}testString(Z,J,X,Q){if(!Z.isNamed(J))return;if(!X)this.matches.add(Z,Q,!1);else this.subwalks.add(Z,X)}}var E70=(Z,J)=>typeof Z==="string"?new OX([Z],J):Array.isArray(Z)?new OX(Z,J):Z;class iU{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#Z=[];#Q;#q;signal;maxDepth;includeChildMatches;constructor(Z,J,X){if(this.patterns=Z,this.path=J,this.opts=X,this.#q=!X.posix&&X.platform==="win32"?"\\":"/",this.includeChildMatches=X.includeChildMatches!==!1,X.ignore||!this.includeChildMatches){if(this.#Q=E70(X.ignore??[],X),!this.includeChildMatches&&typeof this.#Q.add!=="function")throw new Error("cannot ignore child matches, ignore lacks add() method.")}if(this.maxDepth=X.maxDepth||1/0,X.signal)this.signal=X.signal,this.signal.addEventListener("abort",()=>{this.#Z.length=0})}#J(Z){return this.seen.has(Z)||!!this.#Q?.ignored?.(Z)}#Y(Z){return!!this.#Q?.childrenIgnored?.(Z)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let Z=void 0;while(!this.paused&&(Z=this.#Z.shift()))Z()}onResume(Z){if(this.signal?.aborted)return;if(!this.paused)Z();else this.#Z.push(Z)}async matchCheck(Z,J){if(J&&this.opts.nodir)return;let X;if(this.opts.realpath){if(X=Z.realpathCached()||await Z.realpath(),!X)return;Z=X}let q=Z.isUnknown()||this.opts.stat?await Z.lstat():Z;if(this.opts.follow&&this.opts.nodir&&q?.isSymbolicLink()){let $=await q.realpath();if($&&($.isUnknown()||this.opts.stat))await $.lstat()}return this.matchCheckTest(q,J)}matchCheckTest(Z,J){return Z&&(this.maxDepth===1/0||Z.depth()<=this.maxDepth)&&(!J||Z.canReaddir())&&(!this.opts.nodir||!Z.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!Z.isSymbolicLink()||!Z.realpathCached()?.isDirectory())&&!this.#J(Z)?Z:void 0}matchCheckSync(Z,J){if(J&&this.opts.nodir)return;let X;if(this.opts.realpath){if(X=Z.realpathCached()||Z.realpathSync(),!X)return;Z=X}let q=Z.isUnknown()||this.opts.stat?Z.lstatSync():Z;if(this.opts.follow&&this.opts.nodir&&q?.isSymbolicLink()){let $=q.realpathSync();if($&&($?.isUnknown()||this.opts.stat))$.lstatSync()}return this.matchCheckTest(q,J)}matchFinish(Z,J){if(this.#J(Z))return;if(!this.includeChildMatches&&this.#Q?.add){let q=`${Z.relativePosix()}/**`;this.#Q.add(q)}let X=this.opts.absolute===void 0?J:this.opts.absolute;this.seen.add(Z);let Q=this.opts.mark&&Z.isDirectory()?this.#q:"";if(this.opts.withFileTypes)this.matchEmit(Z);else if(X){let q=this.opts.posix?Z.fullpathPosix():Z.fullpath();this.matchEmit(q+Q)}else{let q=this.opts.posix?Z.relativePosix():Z.relative(),$=this.opts.dotRelative&&!q.startsWith(".."+this.#q)?"."+this.#q:"";this.matchEmit(!q?"."+Q:$+q+Q)}}async match(Z,J,X){let Q=await this.matchCheck(Z,X);if(Q)this.matchFinish(Q,J)}matchSync(Z,J,X){let Q=this.matchCheckSync(Z,X);if(Q)this.matchFinish(Q,J)}walkCB(Z,J,X){if(this.signal?.aborted)X();this.walkCB2(Z,J,new _X(this.opts),X)}walkCB2(Z,J,X,Q){if(this.#Y(Z))return Q();if(this.signal?.aborted)Q();if(this.paused){this.onResume(()=>this.walkCB2(Z,J,X,Q));return}X.processPatterns(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;q++,this.match(Y,K,W).then(()=>$())}for(let Y of X.subwalkTargets()){if(this.maxDepth!==1/0&&Y.depth()>=this.maxDepth)continue;q++;let K=Y.readdirCached();if(Y.calledReaddir())this.walkCB3(Y,K,X,$);else Y.readdirCB((W,V)=>this.walkCB3(Y,V,X,$),!0)}$()}walkCB3(Z,J,X,Q){X=X.filterEntries(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;q++,this.match(Y,K,W).then(()=>$())}for(let[Y,K]of X.subwalks.entries())q++,this.walkCB2(Y,K,X.child(),$);$()}walkCBSync(Z,J,X){if(this.signal?.aborted)X();this.walkCB2Sync(Z,J,new _X(this.opts),X)}walkCB2Sync(Z,J,X,Q){if(this.#Y(Z))return Q();if(this.signal?.aborted)Q();if(this.paused){this.onResume(()=>this.walkCB2Sync(Z,J,X,Q));return}X.processPatterns(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;this.matchSync(Y,K,W)}for(let Y of X.subwalkTargets()){if(this.maxDepth!==1/0&&Y.depth()>=this.maxDepth)continue;q++;let K=Y.readdirSync();this.walkCB3Sync(Y,K,X,$)}$()}walkCB3Sync(Z,J,X,Q){X=X.filterEntries(Z,J);let q=1,$=()=>{if(--q===0)Q()};for(let[Y,K,W]of X.matches.entries()){if(this.#J(Y))continue;this.matchSync(Y,K,W)}for(let[Y,K]of X.subwalks.entries())q++,this.walkCB2Sync(Y,K,X.child(),$);$()}}class WY extends iU{matches=new Set;constructor(Z,J,X){super(Z,J,X)}matchEmit(Z){this.matches.add(Z)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())await this.path.lstat();return await new Promise((Z,J)=>{this.walkCB(this.path,this.patterns,()=>{if(this.signal?.aborted)J(this.signal.reason);else Z(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}}class zY extends iU{results;constructor(Z,J,X){super(Z,J,X);this.results=new d9({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(Z){if(this.results.write(Z),!this.results.flowing)this.pause()}stream(){let Z=this.path;if(Z.isUnknown())Z.lstat().then(()=>{this.walkCB(Z,this.patterns,()=>this.results.end())});else this.walkCB(Z,this.patterns,()=>this.results.end());return this.results}streamSync(){if(this.path.isUnknown())this.path.lstatSync();return this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}}var k70=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class F7{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(Z,J){if(!J)throw new TypeError("glob options required");if(this.withFileTypes=!!J.withFileTypes,this.signal=J.signal,this.follow=!!J.follow,this.dot=!!J.dot,this.dotRelative=!!J.dotRelative,this.nodir=!!J.nodir,this.mark=!!J.mark,!J.cwd)this.cwd="";else if(J.cwd instanceof URL||J.cwd.startsWith("file://"))J.cwd=v70(J.cwd);if(this.cwd=J.cwd||"",this.root=J.root,this.magicalBraces=!!J.magicalBraces,this.nobrace=!!J.nobrace,this.noext=!!J.noext,this.realpath=!!J.realpath,this.absolute=J.absolute,this.includeChildMatches=J.includeChildMatches!==!1,this.noglobstar=!!J.noglobstar,this.matchBase=!!J.matchBase,this.maxDepth=typeof J.maxDepth==="number"?J.maxDepth:1/0,this.stat=!!J.stat,this.ignore=J.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof Z==="string")Z=[Z];if(this.windowsPathsNoEscape=!!J.windowsPathsNoEscape||J.allowWindowsEscape===!1,this.windowsPathsNoEscape)Z=Z.map((K)=>K.replace(/\\/g,"/"));if(this.matchBase){if(J.noglobstar)throw new TypeError("base matching requires globstar");Z=Z.map((K)=>K.includes("/")?K:`./**/${K}`)}if(this.pattern=Z,this.platform=J.platform||k70,this.opts={...J,platform:this.platform},J.scurry){if(this.scurry=J.scurry,J.nocase!==void 0&&J.nocase!==J.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let K=J.platform==="win32"?RX:J.platform==="darwin"?KY:J.platform?IX:_R;this.scurry=new K(this.cwd,{nocase:J.nocase,fs:J.fs})}this.nocase=this.scurry.nocase;let X=this.platform==="darwin"||this.platform==="win32",Q={...J,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:X,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},q=this.pattern.map((K)=>new G4(K,Q)),[$,Y]=q.reduce((K,W)=>{return K[0].push(...W.set),K[1].push(...W.globParts),K},[[],[]]);this.patterns=$.map((K,W)=>{let V=Y[W];if(!V)throw new Error("invalid pattern object");return new N3(K,V,0,this.platform)})}async walk(){return[...await new WY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new WY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new zY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new zY(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}var lU=(Z,J={})=>{if(!Array.isArray(Z))Z=[Z];for(let X of Z)if(new G4(X,J).hasMagic())return!0;return!1};function UY(Z,J={}){return new F7(Z,J).streamSync()}function AR(Z,J={}){return new F7(Z,J).stream()}function ER(Z,J={}){return new F7(Z,J).walkSync()}async function PR(Z,J={}){return new F7(Z,J).walk()}function xY(Z,J={}){return new F7(Z,J).iterateSync()}function vR(Z,J={}){return new F7(Z,J).iterate()}var f70=UY,b70=Object.assign(AR,{sync:UY}),m70=xY,y70=Object.assign(vR,{sync:xY}),c70=Object.assign(ER,{stream:UY,iterate:xY}),VY=Object.assign(PR,{glob:PR,globSync:ER,sync:c70,globStream:AR,stream:b70,globStreamSync:UY,streamSync:f70,globIterate:vR,iterate:y70,globIterateSync:xY,iterateSync:m70,Glob:F7,hasMagic:lU,escape:H3,unescape:d4});VY.glob=VY;var FT=U4(Bx(),1);import qq0 from"fs";import $q0 from"path";function EX(Z,J){return function X(){return Z.apply(J,arguments)}}var{toString:S90}=Object.prototype,{getPrototypeOf:RY}=Object,{iterator:IY,toStringTag:cO}=Symbol,OY=((Z)=>(J)=>{let X=S90.call(J);return Z[X]||(Z[X]=X.slice(8,-1).toLowerCase())})(Object.create(null)),n4=(Z)=>{return Z=Z.toLowerCase(),(J)=>OY(J)===Z},_Y=(Z)=>(J)=>typeof J===Z,{isArray:R3}=Array,C3=_Y("undefined");function vX(Z){return Z!==null&&!C3(Z)&&Z.constructor!==null&&!C3(Z.constructor)&&M6(Z.constructor.isBuffer)&&Z.constructor.isBuffer(Z)}var pO=n4("ArrayBuffer");function T90(Z){let J;if(typeof ArrayBuffer!=="undefined"&&ArrayBuffer.isView)J=ArrayBuffer.isView(Z);else J=Z&&Z.buffer&&pO(Z.buffer);return J}var P90=_Y("string"),M6=_Y("function"),uO=_Y("number"),kX=(Z)=>Z!==null&&typeof Z==="object",A90=(Z)=>Z===!0||Z===!1,CY=(Z)=>{if(OY(Z)!=="object")return!1;let J=RY(Z);return(J===null||J===Object.prototype||Object.getPrototypeOf(J)===null)&&!(cO in Z)&&!(IY in Z)},E90=(Z)=>{if(!kX(Z)||vX(Z))return!1;try{return Object.keys(Z).length===0&&Object.getPrototypeOf(Z)===Object.prototype}catch(J){return!1}},v90=n4("Date"),k90=n4("File"),f90=(Z)=>{return!!(Z&&typeof Z.uri!=="undefined")},b90=(Z)=>Z&&typeof Z.getParts!=="undefined",m90=n4("Blob"),y90=n4("FileList"),c90=(Z)=>kX(Z)&&M6(Z.pipe);function p90(){if(typeof globalThis!=="undefined")return globalThis;if(typeof self!=="undefined")return self;if(typeof window!=="undefined")return window;if(typeof global!=="undefined")return global;return{}}var mO=p90(),yO=typeof mO.FormData!=="undefined"?mO.FormData:void 0,u90=(Z)=>{if(!Z)return!1;if(yO&&Z instanceof yO)return!0;let J=RY(Z);if(!J||J===Object.prototype)return!1;if(!M6(Z.append))return!1;let X=OY(Z);return X==="formdata"||X==="object"&&M6(Z.toString)&&Z.toString()==="[object FormData]"},g90=n4("URLSearchParams"),[h90,d90,i90,l90]=["ReadableStream","Request","Response","Headers"].map(n4),o90=(Z)=>{return Z.trim?Z.trim():Z.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function fX(Z,J,{allOwnKeys:X=!1}={}){if(Z===null||typeof Z==="undefined")return;let Q,q;if(typeof Z!=="object")Z=[Z];if(R3(Z))for(Q=0,q=Z.length;Q<q;Q++)J.call(null,Z[Q],Q,Z);else{if(vX(Z))return;let $=X?Object.getOwnPropertyNames(Z):Object.keys(Z),Y=$.length,K;for(Q=0;Q<Y;Q++)K=$[Q],J.call(null,Z[K],K,Z)}}function gO(Z,J){if(vX(Z))return null;J=J.toLowerCase();let X=Object.keys(Z),Q=X.length,q;while(Q-- >0)if(q=X[Q],J===q.toLowerCase())return q;return null}var o9=(()=>{if(typeof globalThis!=="undefined")return globalThis;return typeof self!=="undefined"?self:typeof window!=="undefined"?window:global})(),hO=(Z)=>!C3(Z)&&Z!==o9;function Mx(...Z){let{caseless:J,skipUndefined:X}=hO(this)&&this||{},Q={},q=($,Y)=>{if(Y==="__proto__"||Y==="constructor"||Y==="prototype")return;let K=J&&gO(Q,Y)||Y,W=Fx(Q,K)?Q[K]:void 0;if(CY(W)&&CY($))Q[K]=Mx(W,$);else if(CY($))Q[K]=Mx({},$);else if(R3($))Q[K]=$.slice();else if(!X||!C3($))Q[K]=$};for(let $=0,Y=Z.length;$<Y;$++)Z[$]&&fX(Z[$],q);return Q}var n90=(Z,J,X,{allOwnKeys:Q}={})=>{return fX(J,(q,$)=>{if(X&&M6(q))Object.defineProperty(Z,$,{__proto__:null,value:EX(q,X),writable:!0,enumerable:!0,configurable:!0});else Object.defineProperty(Z,$,{__proto__:null,value:q,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:Q}),Z},s90=(Z)=>{if(Z.charCodeAt(0)===65279)Z=Z.slice(1);return Z},a90=(Z,J,X,Q)=>{Z.prototype=Object.create(J.prototype,Q),Object.defineProperty(Z.prototype,"constructor",{__proto__:null,value:Z,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(Z,"super",{__proto__:null,value:J.prototype}),X&&Object.assign(Z.prototype,X)},r90=(Z,J,X,Q)=>{let q,$,Y,K={};if(J=J||{},Z==null)return J;do{q=Object.getOwnPropertyNames(Z),$=q.length;while($-- >0)if(Y=q[$],(!Q||Q(Y,Z,J))&&!K[Y])J[Y]=Z[Y],K[Y]=!0;Z=X!==!1&&RY(Z)}while(Z&&(!X||X(Z,J))&&Z!==Object.prototype);return J},t90=(Z,J,X)=>{if(Z=String(Z),X===void 0||X>Z.length)X=Z.length;X-=J.length;let Q=Z.indexOf(J,X);return Q!==-1&&Q===X},e90=(Z)=>{if(!Z)return null;if(R3(Z))return Z;let J=Z.length;if(!uO(J))return null;let X=new Array(J);while(J-- >0)X[J]=Z[J];return X},ZZ0=((Z)=>{return(J)=>{return Z&&J instanceof Z}})(typeof Uint8Array!=="undefined"&&RY(Uint8Array)),JZ0=(Z,J)=>{let Q=(Z&&Z[IY]).call(Z),q;while((q=Q.next())&&!q.done){let $=q.value;J.call(Z,$[0],$[1])}},XZ0=(Z,J)=>{let X,Q=[];while((X=Z.exec(J))!==null)Q.push(X);return Q},QZ0=n4("HTMLFormElement"),qZ0=(Z)=>{return Z.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function J(X,Q,q){return Q.toUpperCase()+q})},Fx=(({hasOwnProperty:Z})=>(J,X)=>Z.call(J,X))(Object.prototype),$Z0=n4("RegExp"),dO=(Z,J)=>{let X=Object.getOwnPropertyDescriptors(Z),Q={};fX(X,(q,$)=>{let Y;if((Y=J(q,$,Z))!==!1)Q[$]=Y||q}),Object.defineProperties(Z,Q)},YZ0=(Z)=>{dO(Z,(J,X)=>{if(M6(Z)&&["arguments","caller","callee"].includes(X))return!1;let Q=Z[X];if(!M6(Q))return;if(J.enumerable=!1,"writable"in J){J.writable=!1;return}if(!J.set)J.set=()=>{throw Error("Can not rewrite read-only method '"+X+"'")}})},KZ0=(Z,J)=>{let X={},Q=(q)=>{q.forEach(($)=>{X[$]=!0})};return R3(Z)?Q(Z):Q(String(Z).split(J)),X},WZ0=()=>{},zZ0=(Z,J)=>{return Z!=null&&Number.isFinite(Z=+Z)?Z:J};function VZ0(Z){return!!(Z&&M6(Z.append)&&Z[cO]==="FormData"&&Z[IY])}var UZ0=(Z)=>{let J=new Array(10),X=(Q,q)=>{if(kX(Q)){if(J.indexOf(Q)>=0)return;if(vX(Q))return Q;if(!("toJSON"in Q)){J[q]=Q;let $=R3(Q)?[]:{};return fX(Q,(Y,K)=>{let W=X(Y,q+1);!C3(W)&&($[K]=W)}),J[q]=void 0,$}}return Q};return X(Z,0)},xZ0=n4("AsyncFunction"),GZ0=(Z)=>Z&&(kX(Z)||M6(Z))&&M6(Z.then)&&M6(Z.catch),iO=((Z,J)=>{if(Z)return setImmediate;return J?((X,Q)=>{return o9.addEventListener("message",({source:q,data:$})=>{if(q===o9&&$===X)Q.length&&Q.shift()()},!1),(q)=>{Q.push(q),o9.postMessage(X,"*")}})(`axios@${Math.random()}`,[]):(X)=>setTimeout(X)})(typeof setImmediate==="function",M6(o9.postMessage)),HZ0=typeof queueMicrotask!=="undefined"?queueMicrotask.bind(o9):typeof process!=="undefined"&&process.nextTick||iO,BZ0=(Z)=>Z!=null&&M6(Z[IY]),E={isArray:R3,isArrayBuffer:pO,isBuffer:vX,isFormData:u90,isArrayBufferView:T90,isString:P90,isNumber:uO,isBoolean:A90,isObject:kX,isPlainObject:CY,isEmptyObject:E90,isReadableStream:h90,isRequest:d90,isResponse:i90,isHeaders:l90,isUndefined:C3,isDate:v90,isFile:k90,isReactNativeBlob:f90,isReactNative:b90,isBlob:m90,isRegExp:$Z0,isFunction:M6,isStream:c90,isURLSearchParams:g90,isTypedArray:ZZ0,isFileList:y90,forEach:fX,merge:Mx,extend:n90,trim:o90,stripBOM:s90,inherits:a90,toFlatObject:r90,kindOf:OY,kindOfTest:n4,endsWith:t90,toArray:e90,forEachEntry:JZ0,matchAll:XZ0,isHTMLForm:QZ0,hasOwnProperty:Fx,hasOwnProp:Fx,reduceDescriptors:dO,freezeMethods:YZ0,toObjectSet:KZ0,toCamelCase:qZ0,noop:WZ0,toFiniteNumber:zZ0,findKey:gO,global:o9,isContextDefined:hO,isSpecCompliantForm:VZ0,toJSONObject:UZ0,isAsyncFn:xZ0,isThenable:GZ0,setImmediate:iO,asap:HZ0,isIterable:BZ0};var MZ0=E.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),lO=(Z)=>{let J={},X,Q,q;return Z&&Z.split(`
|
|
92
92
|
`).forEach(function $(Y){if(q=Y.indexOf(":"),X=Y.substring(0,q).trim().toLowerCase(),Q=Y.substring(q+1).trim(),!X||J[X]&&MZ0[X])return;if(X==="set-cookie")if(J[X])J[X].push(Q);else J[X]=[Q];else J[X]=J[X]?J[X]+", "+Q:Q}),J};var oO=Symbol("internals"),FZ0=/[^\x09\x20-\x7E\x80-\xFF]/g;function NZ0(Z){let J=0,X=Z.length;while(J<X){let Q=Z.charCodeAt(J);if(Q!==9&&Q!==32)break;J+=1}while(X>J){let Q=Z.charCodeAt(X-1);if(Q!==9&&Q!==32)break;X-=1}return J===0&&X===Z.length?Z:Z.slice(J,X)}function bX(Z){return Z&&String(Z).trim().toLowerCase()}function DZ0(Z){return NZ0(Z.replace(FZ0,""))}function SY(Z){if(Z===!1||Z==null)return Z;return E.isArray(Z)?Z.map(SY):DZ0(String(Z))}function jZ0(Z){let J=Object.create(null),X=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,Q;while(Q=X.exec(Z))J[Q[1]]=Q[2];return J}var LZ0=(Z)=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(Z.trim());function Nx(Z,J,X,Q,q){if(E.isFunction(Q))return Q.call(this,J,X);if(q)J=X;if(!E.isString(J))return;if(E.isString(Q))return J.indexOf(Q)!==-1;if(E.isRegExp(Q))return Q.test(J)}function wZ0(Z){return Z.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(J,X,Q)=>{return X.toUpperCase()+Q})}function CZ0(Z,J){let X=E.toCamelCase(" "+J);["get","set","has"].forEach((Q)=>{Object.defineProperty(Z,Q+X,{__proto__:null,value:function(q,$,Y){return this[Q].call(this,J,q,$,Y)},configurable:!0})})}class mX{constructor(Z){Z&&this.set(Z)}set(Z,J,X){let Q=this;function q(Y,K,W){let V=bX(K);if(!V)throw new Error("header name must be a non-empty string");let U=E.findKey(Q,V);if(!U||Q[U]===void 0||W===!0||W===void 0&&Q[U]!==!1)Q[U||K]=SY(Y)}let $=(Y,K)=>E.forEach(Y,(W,V)=>q(W,V,K));if(E.isPlainObject(Z)||Z instanceof this.constructor)$(Z,J);else if(E.isString(Z)&&(Z=Z.trim())&&!LZ0(Z))$(lO(Z),J);else if(E.isObject(Z)&&E.isIterable(Z)){let Y={},K,W;for(let V of Z){if(!E.isArray(V))throw TypeError("Object iterator must return a key-value pair");Y[W=V[0]]=(K=Y[W])?E.isArray(K)?[...K,V[1]]:[K,V[1]]:V[1]}$(Y,J)}else Z!=null&&q(J,Z,X);return this}get(Z,J){if(Z=bX(Z),Z){let X=E.findKey(this,Z);if(X){let Q=this[X];if(!J)return Q;if(J===!0)return jZ0(Q);if(E.isFunction(J))return J.call(this,Q,X);if(E.isRegExp(J))return J.exec(Q);throw new TypeError("parser must be boolean|regexp|function")}}}has(Z,J){if(Z=bX(Z),Z){let X=E.findKey(this,Z);return!!(X&&this[X]!==void 0&&(!J||Nx(this,this[X],X,J)))}return!1}delete(Z,J){let X=this,Q=!1;function q($){if($=bX($),$){let Y=E.findKey(X,$);if(Y&&(!J||Nx(X,X[Y],Y,J)))delete X[Y],Q=!0}}if(E.isArray(Z))Z.forEach(q);else q(Z);return Q}clear(Z){let J=Object.keys(this),X=J.length,Q=!1;while(X--){let q=J[X];if(!Z||Nx(this,this[q],q,Z,!0))delete this[q],Q=!0}return Q}normalize(Z){let J=this,X={};return E.forEach(this,(Q,q)=>{let $=E.findKey(X,q);if($){J[$]=SY(Q),delete J[q];return}let Y=Z?wZ0(q):String(q).trim();if(Y!==q)delete J[q];J[Y]=SY(Q),X[Y]=!0}),this}concat(...Z){return this.constructor.concat(this,...Z)}toJSON(Z){let J=Object.create(null);return E.forEach(this,(X,Q)=>{X!=null&&X!==!1&&(J[Q]=Z&&E.isArray(X)?X.join(", "):X)}),J}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([Z,J])=>Z+": "+J).join(`
|
|
93
93
|
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(Z){return Z instanceof this?Z:new this(Z)}static concat(Z,...J){let X=new this(Z);return J.forEach((Q)=>X.set(Q)),X}static accessor(Z){let X=(this[oO]=this[oO]={accessors:{}}).accessors,Q=this.prototype;function q($){let Y=bX($);if(!X[Y])CZ0(Q,$),X[Y]=!0}return E.isArray(Z)?Z.forEach(q):q(Z),this}}mX.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);E.reduceDescriptors(mX.prototype,({value:Z},J)=>{let X=J[0].toUpperCase()+J.slice(1);return{get:()=>Z,set(Q){this[X]=Q}}});E.freezeMethods(mX);var B2=mX;var RZ0="[REDACTED ****]";function IZ0(Z){if(E.hasOwnProp(Z,"toJSON"))return!0;let J=Object.getPrototypeOf(Z);while(J&&J!==Object.prototype){if(E.hasOwnProp(J,"toJSON"))return!0;J=Object.getPrototypeOf(J)}return!1}function OZ0(Z,J){let X=new Set(J.map(($)=>String($).toLowerCase())),Q=[],q=($)=>{if($===null||typeof $!=="object")return $;if(E.isBuffer($))return $;if(Q.indexOf($)!==-1)return;if($ instanceof B2)$=$.toJSON();Q.push($);let Y;if(E.isArray($))Y=[],$.forEach((K,W)=>{let V=q(K);if(!E.isUndefined(V))Y[W]=V});else{if(!E.isPlainObject($)&&IZ0($))return Q.pop(),$;Y=Object.create(null);for(let[K,W]of Object.entries($)){let V=X.has(K.toLowerCase())?RZ0:q(W);if(!E.isUndefined(V))Y[K]=V}}return Q.pop(),Y};return q(Z)}class R8 extends Error{static from(Z,J,X,Q,q,$){let Y=new R8(Z.message,J||Z.code,X,Q,q);if(Y.cause=Z,Y.name=Z.name,Z.status!=null&&Y.status==null)Y.status=Z.status;return $&&Object.assign(Y,$),Y}constructor(Z,J,X,Q,q){super(Z);if(Object.defineProperty(this,"message",{__proto__:null,value:Z,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,J&&(this.code=J),X&&(this.config=X),Q&&(this.request=Q),q)this.response=q,this.status=q.status}toJSON(){let Z=this.config,J=Z&&E.hasOwnProp(Z,"redact")?Z.redact:void 0,X=E.isArray(J)&&J.length>0?OZ0(Z,J):E.toJSONObject(Z);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X,code:this.code,status:this.status}}}R8.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";R8.ERR_BAD_OPTION="ERR_BAD_OPTION";R8.ECONNABORTED="ECONNABORTED";R8.ETIMEDOUT="ETIMEDOUT";R8.ECONNREFUSED="ECONNREFUSED";R8.ERR_NETWORK="ERR_NETWORK";R8.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";R8.ERR_DEPRECATED="ERR_DEPRECATED";R8.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";R8.ERR_BAD_REQUEST="ERR_BAD_REQUEST";R8.ERR_CANCELED="ERR_CANCELED";R8.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";R8.ERR_INVALID_URL="ERR_INVALID_URL";R8.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var G0=R8;var nO=U4(Bx(),1),TY=nO.default;function jx(Z){return E.isPlainObject(Z)||E.isArray(Z)}function sO(Z){return E.endsWith(Z,"[]")?Z.slice(0,-2):Z}function Dx(Z,J,X){if(!Z)return J;return Z.concat(J).map(function Q(q,$){return q=sO(q),!X&&$?"["+q+"]":q}).join(X?".":"")}function _Z0(Z){return E.isArray(Z)&&!Z.some(jx)}var SZ0=E.toFlatObject(E,{},null,function Z(J){return/^is[A-Z]/.test(J)});function TZ0(Z,J,X){if(!E.isObject(Z))throw new TypeError("target must be an object");J=J||new(TY||FormData),X=E.toFlatObject(X,{metaTokens:!0,dots:!1,indexes:!1},!1,function D(C,L){return!E.isUndefined(L[C])});let Q=X.metaTokens,q=X.visitor||G,$=X.dots,Y=X.indexes,K=X.Blob||typeof Blob!=="undefined"&&Blob,W=X.maxDepth===void 0?100:X.maxDepth,V=K&&E.isSpecCompliantForm(J);if(!E.isFunction(q))throw new TypeError("visitor must be a function");function U(D){if(D===null)return"";if(E.isDate(D))return D.toISOString();if(E.isBoolean(D))return D.toString();if(!V&&E.isBlob(D))throw new G0("Blob is not supported. Use a Buffer instead.");if(E.isArrayBuffer(D)||E.isTypedArray(D))return V&&typeof Blob==="function"?new Blob([D]):Buffer.from(D);return D}function G(D,C,L){let O=D;if(E.isReactNative(J)&&E.isReactNativeBlob(D))return J.append(Dx(L,C,$),U(D)),!1;if(D&&!L&&typeof D==="object"){if(E.endsWith(C,"{}"))C=Q?C:C.slice(0,-2),D=JSON.stringify(D);else if(E.isArray(D)&&_Z0(D)||(E.isFileList(D)||E.endsWith(C,"[]"))&&(O=E.toArray(D)))return C=sO(C),O.forEach(function v(S,p){!(E.isUndefined(S)||S===null)&&J.append(Y===!0?Dx([C],p,$):Y===null?C:C+"[]",U(S))}),!1}if(jx(D))return!0;return J.append(Dx(L,C,$),U(D)),!1}let H=[],M=Object.assign(SZ0,{defaultVisitor:G,convertValue:U,isVisitable:jx});function F(D,C,L=0){if(E.isUndefined(D))return;if(L>W)throw new G0("Object is too deeply nested ("+L+" levels). Max depth: "+W,G0.ERR_FORM_DATA_DEPTH_EXCEEDED);if(H.indexOf(D)!==-1)throw Error("Circular reference detected in "+C.join("."));H.push(D),E.forEach(D,function O(v,S){if((!(E.isUndefined(v)||v===null)&&q.call(J,v,E.isString(S)?S.trim():S,C,M))===!0)F(v,C?C.concat(S):[S],L+1)}),H.pop()}if(!E.isObject(Z))throw new TypeError("data must be an object");return F(Z),J}var o5=TZ0;function aO(Z){let J={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(Z).replace(/[!'()~]|%20/g,function X(Q){return J[Q]})}function rO(Z,J){this._pairs=[],Z&&o5(Z,this,J)}var tO=rO.prototype;tO.append=function Z(J,X){this._pairs.push([J,X])};tO.toString=function Z(J){let X=J?function(Q){return J.call(this,Q,aO)}:aO;return this._pairs.map(function Q(q){return X(q[0])+"="+X(q[1])},"").join("&")};var eO=rO;function PZ0(Z){return encodeURIComponent(Z).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function n9(Z,J,X){if(!J)return Z;let Q=X&&X.encode||PZ0,q=E.isFunction(X)?{serialize:X}:X,$=q&&q.serialize,Y;if($)Y=$(J,q);else Y=E.isURLSearchParams(J)?J.toString():new eO(J,q).toString(Q);if(Y){let K=Z.indexOf("#");if(K!==-1)Z=Z.slice(0,K);Z+=(Z.indexOf("?")===-1?"?":"&")+Y}return Z}class Z_{constructor(){this.handlers=[]}use(Z,J,X){return this.handlers.push({fulfilled:Z,rejected:J,synchronous:X?X.synchronous:!1,runWhen:X?X.runWhen:null}),this.handlers.length-1}eject(Z){if(this.handlers[Z])this.handlers[Z]=null}clear(){if(this.handlers)this.handlers=[]}forEach(Z){E.forEach(this.handlers,function J(X){if(X!==null)Z(X)})}}var Lx=Z_;var n5={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};import EZ0 from"crypto";import AZ0 from"url";var J_=AZ0.URLSearchParams;var wx="abcdefghijklmnopqrstuvwxyz",X_="0123456789",Q_={DIGIT:X_,ALPHA:wx,ALPHA_DIGIT:wx+wx.toUpperCase()+X_},vZ0=(Z=16,J=Q_.ALPHA_DIGIT)=>{let X="",{length:Q}=J,q=new Uint32Array(Z);EZ0.randomFillSync(q);for(let $=0;$<Z;$++)X+=J[q[$]%Q];return X},q_={isNode:!0,classes:{URLSearchParams:J_,FormData:TY,Blob:typeof Blob!=="undefined"&&Blob||null},ALPHABET:Q_,generateString:vZ0,protocols:["http","https","file","data"]};var Ix={};NC(Ix,{origin:()=>bZ0,navigator:()=>Cx,hasStandardBrowserWebWorkerEnv:()=>fZ0,hasStandardBrowserEnv:()=>kZ0,hasBrowserEnv:()=>Rx});var Rx=typeof window!=="undefined"&&typeof document!=="undefined",Cx=typeof navigator==="object"&&navigator||void 0,kZ0=Rx&&(!Cx||["ReactNative","NativeScript","NS"].indexOf(Cx.product)<0),fZ0=(()=>{return typeof WorkerGlobalScope!=="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts==="function"})(),bZ0=Rx&&window.location.href||"http://localhost";var c1={...Ix,...q_};function Ox(Z,J){return o5(Z,new c1.classes.URLSearchParams,{visitor:function(X,Q,q,$){if(c1.isNode&&E.isBuffer(X))return this.append(Q,X.toString("base64")),!1;return $.defaultVisitor.apply(this,arguments)},...J})}function mZ0(Z){return E.matchAll(/\w+|\[(\w*)]/g,Z).map((J)=>{return J[0]==="[]"?"":J[1]||J[0]})}function yZ0(Z){let J={},X=Object.keys(Z),Q,q=X.length,$;for(Q=0;Q<q;Q++)$=X[Q],J[$]=Z[$];return J}function cZ0(Z){function J(X,Q,q,$){let Y=X[$++];if(Y==="__proto__")return!0;let K=Number.isFinite(+Y),W=$>=X.length;if(Y=!Y&&E.isArray(q)?q.length:Y,W){if(E.hasOwnProp(q,Y))q[Y]=E.isArray(q[Y])?q[Y].concat(Q):[q[Y],Q];else q[Y]=Q;return!K}if(!q[Y]||!E.isObject(q[Y]))q[Y]=[];if(J(X,Q,q[Y],$)&&E.isArray(q[Y]))q[Y]=yZ0(q[Y]);return!K}if(E.isFormData(Z)&&E.isFunction(Z.entries)){let X={};return E.forEachEntry(Z,(Q,q)=>{J(mZ0(Q),q,X,0)}),X}return null}var PY=cZ0;var I3=(Z,J)=>Z!=null&&E.hasOwnProp(Z,J)?Z[J]:void 0;function pZ0(Z,J,X){if(E.isString(Z))try{return(J||JSON.parse)(Z),E.trim(Z)}catch(Q){if(Q.name!=="SyntaxError")throw Q}return(X||JSON.stringify)(Z)}var _x={transitional:n5,adapter:["xhr","http","fetch"],transformRequest:[function Z(J,X){let Q=X.getContentType()||"",q=Q.indexOf("application/json")>-1,$=E.isObject(J);if($&&E.isHTMLForm(J))J=new FormData(J);if(E.isFormData(J))return q?JSON.stringify(PY(J)):J;if(E.isArrayBuffer(J)||E.isBuffer(J)||E.isStream(J)||E.isFile(J)||E.isBlob(J)||E.isReadableStream(J))return J;if(E.isArrayBufferView(J))return J.buffer;if(E.isURLSearchParams(J))return X.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),J.toString();let K;if($){let W=I3(this,"formSerializer");if(Q.indexOf("application/x-www-form-urlencoded")>-1)return Ox(J,W).toString();if((K=E.isFileList(J))||Q.indexOf("multipart/form-data")>-1){let V=I3(this,"env"),U=V&&V.FormData;return o5(K?{"files[]":J}:J,U&&new U,W)}}if($||q)return X.setContentType("application/json",!1),pZ0(J);return J}],transformResponse:[function Z(J){let X=I3(this,"transitional")||_x.transitional,Q=X&&X.forcedJSONParsing,q=I3(this,"responseType"),$=q==="json";if(E.isResponse(J)||E.isReadableStream(J))return J;if(J&&E.isString(J)&&(Q&&!q||$)){let K=!(X&&X.silentJSONParsing)&&$;try{return JSON.parse(J,I3(this,"parseReviver"))}catch(W){if(K){if(W.name==="SyntaxError")throw G0.from(W,G0.ERR_BAD_RESPONSE,this,null,I3(this,"response"));throw W}}}return J}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:c1.classes.FormData,Blob:c1.classes.Blob},validateStatus:function Z(J){return J>=200&&J<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};E.forEach(["delete","get","head","post","put","patch","query"],(Z)=>{_x.headers[Z]={}});var O3=_x;function yX(Z,J){let X=this||O3,Q=J||X,q=B2.from(Q.headers),$=Q.data;return E.forEach(Z,function Y(K){$=K.call(X,$,q.normalize(),J?J.status:void 0)}),q.normalize(),$}function cX(Z){return!!(Z&&Z.__CANCEL__)}class $_ extends G0{constructor(Z,J,X){super(Z==null?"canceled":Z,G0.ERR_CANCELED,J,X);this.name="CanceledError",this.__CANCEL__=!0}}var d6=$_;function N7(Z,J,X){let Q=X.config.validateStatus;if(!X.status||!Q||Q(X.status))Z(X);else J(new G0("Request failed with status code "+X.status,X.status>=400&&X.status<500?G0.ERR_BAD_REQUEST:G0.ERR_BAD_RESPONSE,X.config,X.request,X))}function Sx(Z){if(typeof Z!=="string")return!1;return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(Z)}function Tx(Z,J){return J?Z.replace(/\/?\/$/,"")+"/"+J.replace(/^\/+/,""):Z}function s9(Z,J,X){let Q=!Sx(J);if(Z&&(Q||X===!1))return Tx(Z,J);return J}var uZ0={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function gZ0(Z){try{return new URL(Z)}catch{return null}}function Y_(Z){var J=(typeof Z==="string"?gZ0(Z):Z)||{},X=J.protocol,Q=J.host,q=J.port;if(typeof Q!=="string"||!Q||typeof X!=="string")return"";if(X=X.split(":",1)[0],Q=Q.replace(/:\d*$/,""),q=parseInt(q)||uZ0[X]||0,!hZ0(Q,q))return"";var $=Px(X+"_proxy")||Px("all_proxy");if($&&$.indexOf("://")===-1)$=X+"://"+$;return $}function hZ0(Z,J){var X=Px("no_proxy").toLowerCase();if(!X)return!0;if(X==="*")return!1;return X.split(/[,\s]/).every(function(Q){if(!Q)return!0;var q=Q.match(/^(.+):(\d+)$/),$=q?q[1]:Q,Y=q?parseInt(q[2]):0;if(Y&&Y!==J)return!0;if(!/^[.*]/.test($))return Z!==$;if($.charAt(0)==="*")$=$.slice(1);return!Z.endsWith($)})}function Px(Z){return process.env[Z.toLowerCase()]||process.env[Z.toUpperCase()]||""}var a_=U4(__(),1);import WJ0 from"http";import zJ0 from"https";import n_ from"http2";import s_ from"util";import{resolve as p_}from"path";import s5 from"zlib";var J5="1.16.0";function iX(Z){let J=/^([-+\w]{1,25}):(?:\/\/)?/.exec(Z);return J&&J[1]||""}var g30=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function lx(Z,J,X){let Q=X&&X.Blob||c1.classes.Blob,q=iX(Z);if(J===void 0&&Q)J=!0;if(q==="data"){Z=q.length?Z.slice(q.length+1):Z;let $=g30.exec(Z);if(!$)throw new G0("Invalid URL",G0.ERR_INVALID_URL);let Y=$[1],K=$[2],W=$[3],V=Buffer.from(decodeURIComponent(W),K?"base64":"utf8");if(J){if(!Q)throw new G0("Blob is not supported",G0.ERR_NOT_SUPPORT);return new Q([V],{type:Y})}return V}throw new G0("Unsupported protocol "+q,G0.ERR_NOT_SUPPORT)}import s4 from"stream";import h30 from"stream";var ox=Symbol("internals");class S_ extends h30.Transform{constructor(Z){Z=E.toFlatObject(Z,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(X,Q)=>{return!E.isUndefined(Q[X])});super({readableHighWaterMark:Z.chunkSize});let J=this[ox]={timeWindow:Z.timeWindow,chunkSize:Z.chunkSize,maxRate:Z.maxRate,minChunkSize:Z.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(X)=>{if(X==="progress"){if(!J.isCaptured)J.isCaptured=!0}})}_read(Z){let J=this[ox];if(J.onReadCallback)J.onReadCallback();return super._read(Z)}_transform(Z,J,X){let Q=this[ox],q=Q.maxRate,$=this.readableHighWaterMark,Y=Q.timeWindow,K=1000/Y,W=q/K,V=Q.minChunkSize!==!1?Math.max(Q.minChunkSize,W*0.01):0,U=(H,M)=>{let F=Buffer.byteLength(H);if(Q.bytesSeen+=F,Q.bytes+=F,Q.isCaptured&&this.emit("progress",Q.bytesSeen),this.push(H))process.nextTick(M);else Q.onReadCallback=()=>{Q.onReadCallback=null,process.nextTick(M)}},G=(H,M)=>{let F=Buffer.byteLength(H),D=null,C=$,L,O=0;if(q){let v=Date.now();if(!Q.ts||(O=v-Q.ts)>=Y)Q.ts=v,L=W-Q.bytes,Q.bytes=L<0?-L:0,O=0;L=W-Q.bytes}if(q){if(L<=0)return setTimeout(()=>{M(null,H)},Y-O);if(L<C)C=L}if(C&&F>C&&F-C>V)D=H.subarray(C),H=H.subarray(0,C);U(H,D?()=>{process.nextTick(M,null,D)}:M)};G(Z,function H(M,F){if(M)return X(M);if(F)G(F,H);else X(null)})}}var nx=S_;import{EventEmitter as VJ0}from"events";import i30 from"util";import{Readable as l30}from"stream";var{asyncIterator:T_}=Symbol,d30=async function*(Z){if(Z.stream)yield*Z.stream();else if(Z.arrayBuffer)yield await Z.arrayBuffer();else if(Z[T_])yield*Z[T_]();else yield Z},mY=d30;var o30=c1.ALPHABET.ALPHA_DIGIT+"-_",lX=typeof TextEncoder==="function"?new TextEncoder:new i30.TextEncoder,ZZ=`\r
|
|
94
94
|
`,n30=lX.encode(ZZ),s30=2;class P_{constructor(Z,J){let{escapeName:X}=this.constructor,Q=E.isString(J),q=`Content-Disposition: form-data; name="${X(Z)}"${!Q&&J.name?`; filename="${X(J.name)}"`:""}${ZZ}`;if(Q)J=lX.encode(String(J).replace(/\r?\n|\r\n?/g,ZZ));else{let $=String(J.type||"application/octet-stream").replace(/[\r\n]/g,"");q+=`Content-Type: ${$}${ZZ}`}this.headers=lX.encode(q+ZZ),this.contentLength=Q?J.byteLength:J.size,this.size=this.headers.byteLength+this.contentLength+s30,this.name=Z,this.value=J}async*encode(){yield this.headers;let{value:Z}=this;if(E.isTypedArray(Z))yield Z;else yield*mY(Z);yield n30}static escapeName(Z){return String(Z).replace(/[\r\n"]/g,(J)=>({"\r":"%0D","\n":"%0A",'"':"%22"})[J])}}var a30=(Z,J,X)=>{let{tag:Q="form-data-boundary",size:q=25,boundary:$=Q+"-"+c1.generateString(q,o30)}=X||{};if(!E.isFormData(Z))throw TypeError("FormData instance required");if($.length<1||$.length>70)throw Error("boundary must be 1-70 characters long");let Y=lX.encode("--"+$+ZZ),K=lX.encode("--"+$+"--"+ZZ),W=K.byteLength,V=Array.from(Z.entries()).map(([G,H])=>{let M=new P_(G,H);return W+=M.size,M});W+=Y.byteLength*V.length,W=E.toFiniteNumber(W);let U={"Content-Type":`multipart/form-data; boundary=${$}`};if(Number.isFinite(W))U["Content-Length"]=W;return J&&J(U),l30.from(async function*(){for(let G of V)yield Y,yield*G.encode();yield K}())},A_=a30;import r30 from"stream";class E_ extends r30.Transform{__transform(Z,J,X){this.push(Z),X()}_transform(Z,J,X){if(Z.length!==0){if(this._transform=this.__transform,Z[0]!==120){let Q=Buffer.alloc(2);Q[0]=120,Q[1]=156,this.push(Q,J)}}this.__transform(Z,J,X)}}var v_=E_;var t30=(Z,J)=>{return E.isAsyncFn(Z)?function(...X){let Q=X.pop();Z.apply(this,X).then((q)=>{try{J?Q(null,...J(q)):Q(null,q)}catch($){Q($)}},Q)}:Z},k_=t30;var e30=new Set(["localhost"]),m_=(Z)=>{let J=Z.split(".");if(J.length!==4)return!1;if(J[0]!=="127")return!1;return J.every((X)=>/^\d+$/.test(X)&&Number(X)>=0&&Number(X)<=255)},ZJ0=(Z)=>{if(Z==="::1")return!0;let J=Z.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);if(J)return m_(J[1]);let X=Z.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);if(X){let q=parseInt(X[1],16);return q>=32512&&q<=32767}let Q=Z.split(":");if(Q.length===8){for(let q=0;q<7;q++)if(!/^0+$/.test(Q[q]))return!1;return/^0*1$/.test(Q[7])}return!1},f_=(Z)=>{if(!Z)return!1;if(e30.has(Z))return!0;if(m_(Z))return!0;return ZJ0(Z)},JJ0={http:80,https:443,ws:80,wss:443,ftp:21},XJ0=(Z)=>{let J=Z,X=0;if(J.charAt(0)==="["){let $=J.indexOf("]");if($!==-1){let Y=J.slice(1,$),K=J.slice($+1);if(K.charAt(0)===":"&&/^\d+$/.test(K.slice(1)))X=Number.parseInt(K.slice(1),10);return[Y,X]}}let Q=J.indexOf(":"),q=J.lastIndexOf(":");if(Q!==-1&&Q===q&&/^\d+$/.test(J.slice(q+1)))X=Number.parseInt(J.slice(q+1),10),J=J.slice(0,q);return[J,X]},QJ0=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i,qJ0=/^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i,$J0=(Z)=>{if(typeof Z!=="string"||Z.indexOf(":")===-1)return Z;let J=Z.match(QJ0);if(J)return J[1];let X=Z.match(qJ0);if(X){let Q=parseInt(X[1],16),q=parseInt(X[2],16);return`${Q>>8}.${Q&255}.${q>>8}.${q&255}`}return Z},b_=(Z)=>{if(!Z)return Z;if(Z.charAt(0)==="["&&Z.charAt(Z.length-1)==="]")Z=Z.slice(1,-1);return $J0(Z.replace(/\.+$/,""))};function sx(Z){let J;try{J=new URL(Z)}catch($){return!1}let X=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!X)return!1;if(X==="*")return!0;let Q=Number.parseInt(J.port,10)||JJ0[J.protocol.split(":",1)[0]]||0,q=b_(J.hostname.toLowerCase());return X.split(/[\s,]+/).some(($)=>{if(!$)return!1;let[Y,K]=XJ0($);if(Y=b_(Y),!Y)return!1;if(K&&K!==Q)return!1;if(Y.charAt(0)==="*")Y=Y.slice(1);if(Y.charAt(0)===".")return q.endsWith(Y);return q===Y||f_(q)&&f_(Y)})}function YJ0(Z,J){Z=Z||10;let X=new Array(Z),Q=new Array(Z),q=0,$=0,Y;return J=J!==void 0?J:1000,function K(W){let V=Date.now(),U=Q[$];if(!Y)Y=V;X[q]=W,Q[q]=V;let G=$,H=0;while(G!==q)H+=X[G++],G=G%Z;if(q=(q+1)%Z,q===$)$=($+1)%Z;if(V-Y<J)return;let M=U&&V-U;return M?Math.round(H*1000/M):void 0}}var y_=YJ0;function KJ0(Z,J){let X=0,Q=1000/J,q,$,Y=(V,U=Date.now())=>{if(X=U,q=null,$)clearTimeout($),$=null;Z(...V)};return[(...V)=>{let U=Date.now(),G=U-X;if(G>=Q)Y(V,U);else if(q=V,!$)$=setTimeout(()=>{$=null,Y(q)},Q-G)},()=>q&&Y(q)]}var c_=KJ0;var X5=(Z,J,X=3)=>{let Q=0,q=y_(50,250);return c_(($)=>{let Y=$.loaded,K=$.lengthComputable?$.total:void 0,W=K!=null?Math.min(Y,K):Y,V=Math.max(0,W-Q),U=q(V);Q=Math.max(Q,W);let G={loaded:W,total:K,progress:K?W/K:void 0,bytes:V,rate:U?U:void 0,estimated:U&&K?(K-W)/U:void 0,event:$,lengthComputable:K!=null,[J?"download":"upload"]:!0};Z(G)},X)},P3=(Z,J)=>{let X=Z!=null;return[(Q)=>J[0]({lengthComputable:X,total:Z,loaded:Q}),J[1]]},A3=(Z)=>(...J)=>E.asap(()=>Z(...J));function oX(Z){if(!Z||typeof Z!=="string")return 0;if(!Z.startsWith("data:"))return 0;let J=Z.indexOf(",");if(J<0)return 0;let X=Z.slice(5,J),Q=Z.slice(J+1);if(/;base64/i.test(X)){let{length:Y,length:K}=Q;for(let M=0;M<K;M++)if(Q.charCodeAt(M)===37&&M+2<K){let F=Q.charCodeAt(M+1),D=Q.charCodeAt(M+2);if((F>=48&&F<=57||F>=65&&F<=70||F>=97&&F<=102)&&(D>=48&&D<=57||D>=65&&D<=70||D>=97&&D<=102))Y-=2,M+=2}let W=0,V=K-1,U=(M)=>M>=2&&Q.charCodeAt(M-2)===37&&Q.charCodeAt(M-1)===51&&(Q.charCodeAt(M)===68||Q.charCodeAt(M)===100);if(V>=0){if(Q.charCodeAt(V)===61)W++,V--;else if(U(V))W++,V-=3}if(W===1&&V>=0){if(Q.charCodeAt(V)===61)W++;else if(U(V))W++}let H=Math.floor(Y/4)*3-(W||0);return H>0?H:0}if(typeof Buffer!=="undefined"&&typeof Buffer.byteLength==="function")return Buffer.byteLength(Q,"utf8");let $=0;for(let Y=0,K=Q.length;Y<K;Y++){let W=Q.charCodeAt(Y);if(W<128)$+=1;else if(W<2048)$+=2;else if(W>=55296&&W<=56319&&Y+1<K){let V=Q.charCodeAt(Y+1);if(V>=56320&&V<=57343)$+=4,Y++;else $+=3}else $+=3}return $}var u_={flush:s5.constants.Z_SYNC_FLUSH,finishFlush:s5.constants.Z_SYNC_FLUSH},UJ0={flush:s5.constants.BROTLI_OPERATION_FLUSH,finishFlush:s5.constants.BROTLI_OPERATION_FLUSH},g_=E.isFunction(s5.createBrotliDecompress),{http:xJ0,https:GJ0}=a_.default,HJ0=/https:?/,BJ0=["content-type","content-length"];function MJ0(Z,J,X){if(X!=="content-only"){Z.set(J);return}Object.entries(J).forEach(([Q,q])=>{if(BJ0.includes(Q.toLowerCase()))Z.set(Q,q)})}var h_=Symbol("axios.http.socketListener"),yY=Symbol("axios.http.currentReq"),d_=c1.protocols.map((Z)=>{return Z+":"}),i_=(Z)=>{if(!E.isString(Z))return Z;try{return decodeURIComponent(Z)}catch(J){return Z}},l_=(Z,[J,X])=>{return Z.on("end",X).on("error",X),J};class r_{constructor(){this.sessions=Object.create(null)}getSession(Z,J){J=Object.assign({sessionTimeout:1000},J);let X=this.sessions[Z];if(X){let V=X.length;for(let U=0;U<V;U++){let[G,H]=X[U];if(!G.destroyed&&!G.closed&&s_.isDeepStrictEqual(H,J))return G}}let Q=n_.connect(Z,J),q,$=()=>{if(q)return;q=!0;let V=X,U=V.length,G=U;while(G--)if(V[G][0]===Q){if(U===1)delete this.sessions[Z];else V.splice(G,1);if(!Q.closed)Q.close();return}},Y=Q.request,{sessionTimeout:K}=J;if(K!=null){let V,U=0;Q.request=function(){let G=Y.apply(this,arguments);if(U++,V)clearTimeout(V),V=null;return G.once("close",()=>{if(!--U)V=setTimeout(()=>{V=null,$()},K)}),G}}Q.once("close",$);let W=[Q,J];return X?X.push(W):X=this.sessions[Z]=[W],Q}}var FJ0=new r_;function NJ0(Z,J,X){if(Z.beforeRedirects.proxy)Z.beforeRedirects.proxy(Z);if(Z.beforeRedirects.config)Z.beforeRedirects.config(Z,J,X)}function t_(Z,J,X,Q){let q=J;if(!q&&q!==!1){let $=Y_(X);if($){if(!sx(X))q=new URL($)}}if(Q&&Z.headers){for(let $ of Object.keys(Z.headers))if($.toLowerCase()==="proxy-authorization")delete Z.headers[$]}if(q){let $=q instanceof URL,Y=(M)=>$||E.hasOwnProp(q,M)?q[M]:void 0,K=Y("username"),W=Y("password"),V=E.hasOwnProp(q,"auth")?q.auth:void 0;if(K)V=(K||"")+":"+(W||"");if(V){let M=typeof V==="object",F=M&&E.hasOwnProp(V,"username")?V.username:void 0,D=M&&E.hasOwnProp(V,"password")?V.password:void 0;if(Boolean(F||D))V=(F||"")+":"+(D||"");else if(M)throw new G0("Invalid proxy authorization",G0.ERR_BAD_OPTION,{proxy:q});let L=Buffer.from(V,"utf8").toString("base64");Z.headers["Proxy-Authorization"]="Basic "+L}let U=!1;for(let M of Object.keys(Z.headers))if(M.toLowerCase()==="host"){U=!0;break}if(!U)Z.headers.host=Z.hostname+(Z.port?":"+Z.port:"");let G=Y("hostname")||Y("host");Z.hostname=G,Z.host=G,Z.port=Y("port"),Z.path=X;let H=Y("protocol");if(H)Z.protocol=H.includes(":")?H:`${H}:`}Z.beforeRedirects.proxy=function $(Y){t_(Y,J,Y.href,!0)}}var DJ0=typeof process!=="undefined"&&E.kindOf(process)==="process",jJ0=(Z)=>{return new Promise((J,X)=>{let Q,q,$=(W,V)=>{if(q)return;q=!0,Q&&Q(W,V)},Y=(W)=>{$(W),J(W)},K=(W)=>{$(W,!0),X(W)};Z(Y,K,(W)=>Q=W).catch(K)})},LJ0=({address:Z,family:J})=>{if(!E.isString(Z))throw TypeError("address must be a string");return{address:Z,family:J||(Z.indexOf(".")<0?6:4)}},o_=(Z,J)=>LJ0(E.isObject(Z)?Z:{address:Z,family:J}),wJ0={request(Z,J){let X=Z.protocol+"//"+Z.hostname+":"+(Z.port||(Z.protocol==="https:"?443:80)),{http2Options:Q,headers:q}=Z,$=FJ0.getSession(X,Q),{HTTP2_HEADER_SCHEME:Y,HTTP2_HEADER_METHOD:K,HTTP2_HEADER_PATH:W,HTTP2_HEADER_STATUS:V}=n_.constants,U={[Y]:Z.protocol.replace(":",""),[K]:Z.method,[W]:Z.path};E.forEach(q,(H,M)=>{M.charAt(0)!==":"&&(U[M]=H)});let G=$.request(U);return G.once("response",(H)=>{let M=G;H=Object.assign({},H);let F=H[V];delete H[V],M.headers=H,M.statusCode=+F,J(M)}),G}},e_=DJ0&&function Z(J){return jJ0(async function X(Q,q,$){let Y=(F0)=>E.hasOwnProp(J,F0)?J[F0]:void 0,K=Y("data"),W=Y("lookup"),V=Y("family"),U=Y("httpVersion");if(U===void 0)U=1;let G=Y("http2Options"),H=Y("responseType"),M=Y("responseEncoding"),F=J.method.toUpperCase(),D,C=!1,L,O;if(U=+U,Number.isNaN(U))throw TypeError(`Invalid protocol version: '${J.httpVersion}' is not a number`);if(U!==1&&U!==2)throw TypeError(`Unsupported protocol version '${U}'`);let v=U===2;if(W){let F0=k_(W,(V0)=>E.isArray(V0)?V0:[V0]);W=(V0,$0,T0)=>{F0(V0,$0,(n,t,z0)=>{if(n)return T0(n);let w0=E.isArray(t)?t.map((a0)=>o_(a0)):[o_(t,z0)];$0.all?T0(n,w0):T0(n,w0[0].address,w0[0].family)})}}let S=new VJ0;function p(F0){try{S.emit("abort",!F0||F0.type?new d6(null,J,L):F0)}catch(V0){console.warn("emit error",V0)}}function Z0(){if(O)clearTimeout(O),O=null}function X0(){let F0=J.timeout?"timeout of "+J.timeout+"ms exceeded":"timeout exceeded",V0=J.transitional||n5;if(J.timeoutErrorMessage)F0=J.timeoutErrorMessage;return new G0(F0,V0.clarifyTimeoutError?G0.ETIMEDOUT:G0.ECONNABORTED,J,L)}S.once("abort",q);let A=()=>{if(Z0(),J.cancelToken)J.cancelToken.unsubscribe(p);if(J.signal)J.signal.removeEventListener("abort",p);S.removeAllListeners()};if(J.cancelToken||J.signal){if(J.cancelToken&&J.cancelToken.subscribe(p),J.signal)J.signal.aborted?p():J.signal.addEventListener("abort",p)}$((F0,V0)=>{if(D=!0,Z0(),V0){C=!0,A();return}let{data:$0}=F0;if($0 instanceof s4.Readable||$0 instanceof s4.Duplex){let T0=s4.finished($0,()=>{T0(),A()})}else A()});let y=s9(J.baseURL,J.url,J.allowAbsoluteUrls),Q0=new URL(y,c1.hasBrowserEnv?c1.origin:void 0),k=Q0.protocol||d_[0];if(k==="data:"){if(J.maxContentLength>-1){let V0=String(J.url||y||"");if(oX(V0)>J.maxContentLength)return q(new G0("maxContentLength size of "+J.maxContentLength+" exceeded",G0.ERR_BAD_RESPONSE,J))}let F0;if(F!=="GET")return N7(Q,q,{status:405,statusText:"method not allowed",headers:{},config:J});try{F0=lx(J.url,H==="blob",{Blob:J.env&&J.env.Blob})}catch(V0){throw G0.from(V0,G0.ERR_BAD_REQUEST,J)}if(H==="text"){if(F0=F0.toString(M),!M||M==="utf8")F0=E.stripBOM(F0)}else if(H==="stream")F0=s4.Readable.from(F0);return N7(Q,q,{data:F0,status:200,statusText:"OK",headers:new B2,config:J})}if(d_.indexOf(k)===-1)return q(new G0("Unsupported protocol "+k,G0.ERR_BAD_REQUEST,J));let M0=B2.from(J.headers).normalize();M0.set("User-Agent","axios/"+J5,!1);let{onUploadProgress:P0,onDownloadProgress:E0}=J,r=J.maxRate,s=void 0,o0=void 0;if(E.isSpecCompliantForm(K)){let F0=M0.getContentType(/boundary=([-_\w\d]{10,70})/i);K=A_(K,(V0)=>{M0.set(V0)},{tag:`axios-${J5}-boundary`,boundary:F0&&F0[1]||void 0})}else if(E.isFormData(K)&&E.isFunction(K.getHeaders)&&K.getHeaders!==Object.prototype.getHeaders){if(MJ0(M0,K.getHeaders(),Y("formDataHeaderPolicy")),!M0.hasContentLength())try{let F0=await s_.promisify(K.getLength).call(K);Number.isFinite(F0)&&F0>=0&&M0.setContentLength(F0)}catch(F0){}}else if(E.isBlob(K)||E.isFile(K))K.size&&M0.setContentType(K.type||"application/octet-stream"),M0.setContentLength(K.size||0),K=s4.Readable.from(mY(K));else if(K&&!E.isStream(K)){if(Buffer.isBuffer(K));else if(E.isArrayBuffer(K))K=Buffer.from(new Uint8Array(K));else if(E.isString(K))K=Buffer.from(K,"utf-8");else return q(new G0("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",G0.ERR_BAD_REQUEST,J));if(M0.setContentLength(K.length,!1),J.maxBodyLength>-1&&K.length>J.maxBodyLength)return q(new G0("Request body larger than maxBodyLength limit",G0.ERR_BAD_REQUEST,J))}let h0=E.toFiniteNumber(M0.getContentLength());if(E.isArray(r))s=r[0],o0=r[1];else s=o0=r;if(K&&(P0||s)){if(!E.isStream(K))K=s4.Readable.from(K,{objectMode:!1});K=s4.pipeline([K,new nx({maxRate:E.toFiniteNumber(s)})],E.noop),P0&&K.on("progress",l_(K,P3(h0,X5(A3(P0),!1,3))))}let U1=void 0,n0=Y("auth");if(n0){let F0=n0.username||"",V0=n0.password||"";U1=F0+":"+V0}if(!U1&&Q0.username){let F0=i_(Q0.username),V0=i_(Q0.password);U1=F0+":"+V0}U1&&M0.delete("authorization");let p0;try{p0=n9(Q0.pathname+Q0.search,J.params,J.paramsSerializer).replace(/^\?/,"")}catch(F0){let V0=new Error(F0.message);return V0.config=J,V0.url=J.url,V0.exists=!0,q(V0)}M0.set("Accept-Encoding","gzip, compress, deflate"+(g_?", br":""),!1);let I1=Object.assign(Object.create(null),{path:p0,method:F,headers:M0.toJSON(),agents:{http:J.httpAgent,https:J.httpsAgent},auth:U1,protocol:k,family:V,beforeRedirect:NJ0,beforeRedirects:Object.create(null),http2Options:G});if(!E.isUndefined(W)&&(I1.lookup=W),J.socketPath){if(typeof J.socketPath!=="string")return q(new G0("socketPath must be a string",G0.ERR_BAD_OPTION_VALUE,J));if(J.allowedSocketPaths!=null){let F0=Array.isArray(J.allowedSocketPaths)?J.allowedSocketPaths:[J.allowedSocketPaths],V0=p_(J.socketPath);if(!F0.some((T0)=>typeof T0==="string"&&p_(T0)===V0))return q(new G0(`socketPath "${J.socketPath}" is not permitted by allowedSocketPaths`,G0.ERR_BAD_OPTION_VALUE,J))}I1.socketPath=J.socketPath}else I1.hostname=Q0.hostname.startsWith("[")?Q0.hostname.slice(1,-1):Q0.hostname,I1.port=Q0.port,t_(I1,J.proxy,k+"//"+Q0.hostname+(Q0.port?":"+Q0.port:"")+I1.path);let S1,f1=!1,w1=HJ0.test(I1.protocol);if(I1.agent=w1?J.httpsAgent:J.httpAgent,v)S1=wJ0;else{let F0=Y("transport");if(F0)S1=F0;else if(J.maxRedirects===0)S1=w1?zJ0:WJ0,f1=!0;else{if(J.maxRedirects)I1.maxRedirects=J.maxRedirects;let V0=Y("beforeRedirect");if(V0)I1.beforeRedirects.config=V0;S1=w1?GJ0:xJ0}}if(J.maxBodyLength>-1)I1.maxBodyLength=J.maxBodyLength;else I1.maxBodyLength=1/0;I1.insecureHTTPParser=Boolean(Y("insecureHTTPParser")),L=S1.request(I1,function F0(V0){if(Z0(),L.destroyed)return;let $0=[V0],T0=E.toFiniteNumber(V0.headers["content-length"]);if(E0||o0){let w0=new nx({maxRate:E.toFiniteNumber(o0)});E0&&w0.on("progress",l_(w0,P3(T0,X5(A3(E0),!0,3)))),$0.push(w0)}let n=V0,t=V0.req||L;if(J.decompress!==!1&&V0.headers["content-encoding"]){if(F==="HEAD"||V0.statusCode===204)delete V0.headers["content-encoding"];switch((V0.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":$0.push(s5.createUnzip(u_)),delete V0.headers["content-encoding"];break;case"deflate":$0.push(new v_),$0.push(s5.createUnzip(u_)),delete V0.headers["content-encoding"];break;case"br":if(g_)$0.push(s5.createBrotliDecompress(UJ0)),delete V0.headers["content-encoding"]}}n=$0.length>1?s4.pipeline($0,E.noop):$0[0];let z0={status:V0.statusCode,statusText:V0.statusMessage,headers:new B2(V0.headers),config:J,request:t};if(H==="stream"){if(J.maxContentLength>-1){let w0=J.maxContentLength,a0=n;async function*M1(){let j1=0;for await(let nZ of a0){if(j1+=nZ.length,j1>w0)throw new G0("maxContentLength size of "+w0+" exceeded",G0.ERR_BAD_RESPONSE,J,t);yield nZ}}n=s4.Readable.from(M1(),{objectMode:!1})}z0.data=n,N7(Q,q,z0)}else{let w0=[],a0=0;n.on("data",function M1(j1){if(w0.push(j1),a0+=j1.length,J.maxContentLength>-1&&a0>J.maxContentLength)C=!0,n.destroy(),p(new G0("maxContentLength size of "+J.maxContentLength+" exceeded",G0.ERR_BAD_RESPONSE,J,t))}),n.on("aborted",function M1(){if(C)return;let j1=new G0("stream has been aborted",G0.ERR_BAD_RESPONSE,J,t,z0);n.destroy(j1),q(j1)}),n.on("error",function M1(j1){if(C)return;q(G0.from(j1,null,J,t,z0))}),n.on("end",function M1(){try{let j1=w0.length===1?w0[0]:Buffer.concat(w0);if(H!=="arraybuffer"){if(j1=j1.toString(M),!M||M==="utf8")j1=E.stripBOM(j1)}z0.data=j1}catch(j1){return q(G0.from(j1,null,J,z0.request,z0))}N7(Q,q,z0)})}S.once("abort",(w0)=>{if(!n.destroyed)n.emit("error",w0),n.destroy()})}),S.once("abort",(F0)=>{if(L.close)L.close();else L.destroy(F0)}),L.on("error",function F0(V0){q(G0.from(V0,null,J,L))});let b0=new Set;if(L.on("socket",function F0(V0){if(V0.setKeepAlive(!0,60000),!V0[h_])V0.on("error",function $0(T0){let n=V0[yY];if(n&&!n.destroyed)n.destroy(T0)}),V0[h_]=!0;V0[yY]=L,b0.add(V0)}),L.once("close",function F0(){Z0();for(let V0 of b0)if(V0[yY]===L)V0[yY]=null;b0.clear()}),J.timeout){let F0=parseInt(J.timeout,10);if(Number.isNaN(F0)){p(new G0("error trying to parse `config.timeout` to int",G0.ERR_BAD_OPTION_VALUE,J,L));return}let V0=function $0(){if(D)return;p(X0())};if(f1&&F0>0)O=setTimeout(V0,F0);L.setTimeout(F0,V0)}else L.setTimeout(0);if(E.isStream(K)){let F0=!1,V0=!1;K.on("end",()=>{F0=!0}),K.once("error",(T0)=>{V0=!0,L.destroy(T0)}),K.on("close",()=>{if(!F0&&!V0)p(new d6("Request stream has been aborted",J,L))});let $0=K;if(J.maxBodyLength>-1&&J.maxRedirects===0){let T0=J.maxBodyLength,n=0;$0=s4.pipeline([K,new s4.Transform({transform(t,z0,w0){if(n+=t.length,n>T0)return w0(new G0("Request body larger than maxBodyLength limit",G0.ERR_BAD_REQUEST,J,L));w0(null,t)}})],E.noop),$0.on("error",(t)=>{if(!L.destroyed)L.destroy(t)})}$0.pipe(L)}else K&&L.write(K),L.end()})};var ZS=c1.hasStandardBrowserEnv?((Z,J)=>(X)=>{return X=new URL(X,c1.origin),Z.protocol===X.protocol&&Z.host===X.host&&(J||Z.port===X.port)})(new URL(c1.origin),c1.navigator&&/(msie|trident)/i.test(c1.navigator.userAgent)):()=>!0;var JS=c1.hasStandardBrowserEnv?{write(Z,J,X,Q,q,$,Y){if(typeof document==="undefined")return;let K=[`${Z}=${encodeURIComponent(J)}`];if(E.isNumber(X))K.push(`expires=${new Date(X).toUTCString()}`);if(E.isString(Q))K.push(`path=${Q}`);if(E.isString(q))K.push(`domain=${q}`);if($===!0)K.push("secure");if(E.isString(Y))K.push(`SameSite=${Y}`);document.cookie=K.join("; ")},read(Z){if(typeof document==="undefined")return null;let J=document.cookie.split(";");for(let X=0;X<J.length;X++){let Q=J[X].replace(/^\s+/,""),q=Q.indexOf("=");if(q!==-1&&Q.slice(0,q)===Z)return decodeURIComponent(Q.slice(q+1))}return null},remove(Z){this.write(Z,"",Date.now()-86400000,"/")}}:{write(){},read(){return null},remove(){}};var XS=(Z)=>Z instanceof B2?{...Z}:Z;function a4(Z,J){J=J||{};let X=Object.create(null);Object.defineProperty(X,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function Q(V,U,G,H){if(E.isPlainObject(V)&&E.isPlainObject(U))return E.merge.call({caseless:H},V,U);else if(E.isPlainObject(U))return E.merge({},U);else if(E.isArray(U))return U.slice();return U}function q(V,U,G,H){if(!E.isUndefined(U))return Q(V,U,G,H);else if(!E.isUndefined(V))return Q(void 0,V,G,H)}function $(V,U){if(!E.isUndefined(U))return Q(void 0,U)}function Y(V,U){if(!E.isUndefined(U))return Q(void 0,U);else if(!E.isUndefined(V))return Q(void 0,V)}function K(V,U,G){if(E.hasOwnProp(J,G))return Q(V,U);else if(E.hasOwnProp(Z,G))return Q(void 0,V)}let W={url:$,method:$,data:$,baseURL:Y,transformRequest:Y,transformResponse:Y,paramsSerializer:Y,timeout:Y,timeoutMessage:Y,withCredentials:Y,withXSRFToken:Y,adapter:Y,responseType:Y,xsrfCookieName:Y,xsrfHeaderName:Y,onUploadProgress:Y,onDownloadProgress:Y,decompress:Y,maxContentLength:Y,maxBodyLength:Y,beforeRedirect:Y,transport:Y,httpAgent:Y,httpsAgent:Y,cancelToken:Y,socketPath:Y,allowedSocketPaths:Y,responseEncoding:Y,validateStatus:K,headers:(V,U,G)=>q(XS(V),XS(U),G,!0)};return E.forEach(Object.keys({...Z,...J}),function V(U){if(U==="__proto__"||U==="constructor"||U==="prototype")return;let G=E.hasOwnProp(W,U)?W[U]:q,H=E.hasOwnProp(Z,U)?Z[U]:void 0,M=E.hasOwnProp(J,U)?J[U]:void 0,F=G(H,M,U);E.isUndefined(F)&&G!==K||(X[U]=F)}),X}var CJ0=["content-type","content-length"];function RJ0(Z,J,X){if(X!=="content-only"){Z.set(J);return}Object.entries(J).forEach(([Q,q])=>{if(CJ0.includes(Q.toLowerCase()))Z.set(Q,q)})}var IJ0=(Z)=>encodeURIComponent(Z).replace(/%([0-9A-F]{2})/gi,(J,X)=>String.fromCharCode(parseInt(X,16))),cY=(Z)=>{let J=a4({},Z),X=(H)=>E.hasOwnProp(J,H)?J[H]:void 0,Q=X("data"),q=X("withXSRFToken"),$=X("xsrfHeaderName"),Y=X("xsrfCookieName"),K=X("headers"),W=X("auth"),V=X("baseURL"),U=X("allowAbsoluteUrls"),G=X("url");if(J.headers=K=B2.from(K),J.url=n9(s9(V,G,U),Z.params,Z.paramsSerializer),W)K.set("Authorization","Basic "+btoa((W.username||"")+":"+(W.password?IJ0(W.password):"")));if(E.isFormData(Q)){if(c1.hasStandardBrowserEnv||c1.hasStandardBrowserWebWorkerEnv)K.setContentType(void 0);else if(E.isFunction(Q.getHeaders))RJ0(K,Q.getHeaders(),X("formDataHeaderPolicy"))}if(c1.hasStandardBrowserEnv){if(E.isFunction(q))q=q(J);if(q===!0||q==null&&ZS(J.url)){let M=$&&Y&&JS.read(Y);if(M)K.set($,M)}}return J};var OJ0=typeof XMLHttpRequest!=="undefined",QS=OJ0&&function(Z){return new Promise(function J(X,Q){let q=cY(Z),$=q.data,Y=B2.from(q.headers).normalize(),{responseType:K,onUploadProgress:W,onDownloadProgress:V}=q,U,G,H,M,F;function D(){M&&M(),F&&F(),q.cancelToken&&q.cancelToken.unsubscribe(U),q.signal&&q.signal.removeEventListener("abort",U)}let C=new XMLHttpRequest;C.open(q.method.toUpperCase(),q.url,!0),C.timeout=q.timeout;function L(){if(!C)return;let v=B2.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),p={data:!K||K==="text"||K==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:v,config:Z,request:C};N7(function Z0(X0){X(X0),D()},function Z0(X0){Q(X0),D()},p),C=null}if("onloadend"in C)C.onloadend=L;else C.onreadystatechange=function v(){if(!C||C.readyState!==4)return;if(C.status===0&&!(C.responseURL&&C.responseURL.startsWith("file:")))return;setTimeout(L)};if(C.onabort=function v(){if(!C)return;Q(new G0("Request aborted",G0.ECONNABORTED,Z,C)),D(),C=null},C.onerror=function v(S){let p=S&&S.message?S.message:"Network Error",Z0=new G0(p,G0.ERR_NETWORK,Z,C);Z0.event=S||null,Q(Z0),D(),C=null},C.ontimeout=function v(){let S=q.timeout?"timeout of "+q.timeout+"ms exceeded":"timeout exceeded",p=q.transitional||n5;if(q.timeoutErrorMessage)S=q.timeoutErrorMessage;Q(new G0(S,p.clarifyTimeoutError?G0.ETIMEDOUT:G0.ECONNABORTED,Z,C)),D(),C=null},$===void 0&&Y.setContentType(null),"setRequestHeader"in C)E.forEach(Y.toJSON(),function v(S,p){C.setRequestHeader(p,S)});if(!E.isUndefined(q.withCredentials))C.withCredentials=!!q.withCredentials;if(K&&K!=="json")C.responseType=q.responseType;if(V)[H,F]=X5(V,!0),C.addEventListener("progress",H);if(W&&C.upload)[G,M]=X5(W),C.upload.addEventListener("progress",G),C.upload.addEventListener("loadend",M);if(q.cancelToken||q.signal){if(U=(v)=>{if(!C)return;Q(!v||v.type?new d6(null,Z,C):v),C.abort(),D(),C=null},q.cancelToken&&q.cancelToken.subscribe(U),q.signal)q.signal.aborted?U():q.signal.addEventListener("abort",U)}let O=iX(q.url);if(O&&!c1.protocols.includes(O)){Q(new G0("Unsupported protocol "+O+":",G0.ERR_BAD_REQUEST,Z));return}C.send($||null)})};var _J0=(Z,J)=>{let{length:X}=Z=Z?Z.filter(Boolean):[];if(J||X){let Q=new AbortController,q,$=function(V){if(!q){q=!0,K();let U=V instanceof Error?V:this.reason;Q.abort(U instanceof G0?U:new d6(U instanceof Error?U.message:U))}},Y=J&&setTimeout(()=>{Y=null,$(new G0(`timeout of ${J}ms exceeded`,G0.ETIMEDOUT))},J),K=()=>{if(Z)Y&&clearTimeout(Y),Y=null,Z.forEach((V)=>{V.unsubscribe?V.unsubscribe($):V.removeEventListener("abort",$)}),Z=null};Z.forEach((V)=>V.addEventListener("abort",$));let{signal:W}=Q;return W.unsubscribe=()=>E.asap(K),W}},qS=_J0;var SJ0=function*(Z,J){let X=Z.byteLength;if(!J||X<J){yield Z;return}let Q=0,q;while(Q<X)q=Q+J,yield Z.slice(Q,q),Q=q},TJ0=async function*(Z,J){for await(let X of PJ0(Z))yield*SJ0(X,J)},PJ0=async function*(Z){if(Z[Symbol.asyncIterator]){yield*Z;return}let J=Z.getReader();try{for(;;){let{done:X,value:Q}=await J.read();if(X)break;yield Q}}finally{await J.cancel()}},ax=(Z,J,X,Q)=>{let q=TJ0(Z,J),$=0,Y,K=(W)=>{if(!Y)Y=!0,Q&&Q(W)};return new ReadableStream({async pull(W){try{let{done:V,value:U}=await q.next();if(V){K(),W.close();return}let G=U.byteLength;if(X){let H=$+=G;X(H)}W.enqueue(new Uint8Array(U))}catch(V){throw K(V),V}},cancel(W){return K(W),q.return()}},{highWaterMark:2})};var $S=65536,{isFunction:pY}=E,YS=(Z,...J)=>{try{return!!Z(...J)}catch(X){return!1}},AJ0=(Z)=>{let J=E.global??globalThis,{ReadableStream:X,TextEncoder:Q}=J;Z=E.merge.call({skipUndefined:!0},{Request:J.Request,Response:J.Response},Z);let{fetch:q,Request:$,Response:Y}=Z,K=q?pY(q):typeof fetch==="function",W=pY($),V=pY(Y);if(!K)return!1;let U=K&&pY(X),G=K&&(typeof Q==="function"?((L)=>(O)=>L.encode(O))(new Q):async(L)=>new Uint8Array(await new $(L).arrayBuffer())),H=W&&U&&YS(()=>{let L=!1,O=new $(c1.origin,{body:new X,method:"POST",get duplex(){return L=!0,"half"}}),v=O.headers.has("Content-Type");if(O.body!=null)O.body.cancel();return L&&!v}),M=V&&U&&YS(()=>E.isReadableStream(new Y("").body)),F={stream:M&&((L)=>L.body)};K&&(()=>{["text","arrayBuffer","blob","formData","stream"].forEach((L)=>{!F[L]&&(F[L]=(O,v)=>{let S=O&&O[L];if(S)return S.call(O);throw new G0(`Response type '${L}' is not supported`,G0.ERR_NOT_SUPPORT,v)})})})();let D=async(L)=>{if(L==null)return 0;if(E.isBlob(L))return L.size;if(E.isSpecCompliantForm(L))return(await new $(c1.origin,{method:"POST",body:L}).arrayBuffer()).byteLength;if(E.isArrayBufferView(L)||E.isArrayBuffer(L))return L.byteLength;if(E.isURLSearchParams(L))L=L+"";if(E.isString(L))return(await G(L)).byteLength},C=async(L,O)=>{let v=E.toFiniteNumber(L.getContentLength());return v==null?D(O):v};return async(L)=>{let{url:O,method:v,data:S,signal:p,cancelToken:Z0,timeout:X0,onDownloadProgress:A,onUploadProgress:y,responseType:Q0,headers:k,withCredentials:M0="same-origin",fetchOptions:P0,maxContentLength:E0,maxBodyLength:r}=cY(L),s=E.isNumber(E0)&&E0>-1,o0=E.isNumber(r)&&r>-1,h0=q||fetch;Q0=Q0?(Q0+"").toLowerCase():"text";let U1=qS([p,Z0&&Z0.toAbortSignal()],X0),n0=null,p0=U1&&U1.unsubscribe&&(()=>{U1.unsubscribe()}),I1;try{if(s&&typeof O==="string"&&O.startsWith("data:")){if(oX(O)>E0)throw new G0("maxContentLength size of "+E0+" exceeded",G0.ERR_BAD_RESPONSE,L,n0)}if(o0&&v!=="get"&&v!=="head"){let V0=await C(k,S);if(typeof V0==="number"&&isFinite(V0)&&V0>r)throw new G0("Request body larger than maxBodyLength limit",G0.ERR_BAD_REQUEST,L,n0)}if(y&&H&&v!=="get"&&v!=="head"&&(I1=await C(k,S))!==0){let V0=new $(O,{method:"POST",body:S,duplex:"half"}),$0;if(E.isFormData(S)&&($0=V0.headers.get("content-type")))k.setContentType($0);if(V0.body){let[T0,n]=P3(I1,X5(A3(y)));S=ax(V0.body,$S,T0,n)}}if(!E.isString(M0))M0=M0?"include":"omit";let S1=W&&"credentials"in $.prototype;if(E.isFormData(S)){let V0=k.getContentType();if(V0&&/^multipart\/form-data/i.test(V0)&&!/boundary=/i.test(V0))k.delete("content-type")}k.set("User-Agent","axios/"+J5,!1);let f1={...P0,signal:U1,method:v.toUpperCase(),headers:k.normalize().toJSON(),body:S,duplex:"half",credentials:S1?M0:void 0};n0=W&&new $(O,f1);let w1=await(W?h0(n0,P0):h0(O,f1));if(s){let V0=E.toFiniteNumber(w1.headers.get("content-length"));if(V0!=null&&V0>E0)throw new G0("maxContentLength size of "+E0+" exceeded",G0.ERR_BAD_RESPONSE,L,n0)}let b0=M&&(Q0==="stream"||Q0==="response");if(M&&w1.body&&(A||s||b0&&p0)){let V0={};["status","statusText","headers"].forEach((w0)=>{V0[w0]=w1[w0]});let $0=E.toFiniteNumber(w1.headers.get("content-length")),[T0,n]=A&&P3($0,X5(A3(A),!0))||[],t=0,z0=(w0)=>{if(s){if(t=w0,t>E0)throw new G0("maxContentLength size of "+E0+" exceeded",G0.ERR_BAD_RESPONSE,L,n0)}T0&&T0(w0)};w1=new Y(ax(w1.body,$S,z0,()=>{n&&n(),p0&&p0()}),V0)}Q0=Q0||"text";let F0=await F[E.findKey(F,Q0)||"text"](w1,L);if(s&&!M&&!b0){let V0;if(F0!=null){if(typeof F0.byteLength==="number")V0=F0.byteLength;else if(typeof F0.size==="number")V0=F0.size;else if(typeof F0==="string")V0=typeof Q==="function"?new Q().encode(F0).byteLength:F0.length}if(typeof V0==="number"&&V0>E0)throw new G0("maxContentLength size of "+E0+" exceeded",G0.ERR_BAD_RESPONSE,L,n0)}return!b0&&p0&&p0(),await new Promise((V0,$0)=>{N7(V0,$0,{data:F0,headers:B2.from(w1.headers),status:w1.status,statusText:w1.statusText,config:L,request:n0})})}catch(S1){if(p0&&p0(),U1&&U1.aborted&&U1.reason instanceof G0){let f1=U1.reason;throw f1.config=L,n0&&(f1.request=n0),S1!==f1&&(f1.cause=S1),f1}if(S1&&S1.name==="TypeError"&&/Load failed|fetch/i.test(S1.message))throw Object.assign(new G0("Network Error",G0.ERR_NETWORK,L,n0,S1&&S1.response),{cause:S1.cause||S1});throw G0.from(S1,S1&&S1.code,L,n0,S1&&S1.response)}}},EJ0=new Map,rx=(Z)=>{let J=Z&&Z.env||{},{fetch:X,Request:Q,Response:q}=J,$=[Q,q,X],Y=$.length,K=Y,W,V,U=EJ0;while(K--)W=$[K],V=U.get(W),V===void 0&&U.set(W,V=K?new Map:AJ0(J)),U=V;return V},Er0=rx();var tx={http:e_,xhr:QS,fetch:{get:rx}};E.forEach(tx,(Z,J)=>{if(Z){try{Object.defineProperty(Z,"name",{__proto__:null,value:J})}catch(X){}Object.defineProperty(Z,"adapterName",{__proto__:null,value:J})}});var KS=(Z)=>`- ${Z}`,kJ0=(Z)=>E.isFunction(Z)||Z===null||Z===!1;function fJ0(Z,J){Z=E.isArray(Z)?Z:[Z];let{length:X}=Z,Q,q,$={};for(let Y=0;Y<X;Y++){Q=Z[Y];let K;if(q=Q,!kJ0(Q)){if(q=tx[(K=String(Q)).toLowerCase()],q===void 0)throw new G0(`Unknown adapter '${K}'`)}if(q&&(E.isFunction(q)||(q=q.get(J))))break;$[K||"#"+Y]=q}if(!q){let Y=Object.entries($).map(([W,V])=>`adapter ${W} `+(V===!1?"is not supported by the environment":"is not available in the build")),K=X?Y.length>1?`since :
|