gx
chenyc
2025-06-12 7b72ac13a83764a662159d4a49b7fffb90476ecb
1
(()=>{var __webpack_modules__={509:e=>{const t=Symbol("arg flag");class ArgError extends Error{constructor(e,t){super(e);this.name="ArgError";this.code=t;Object.setPrototypeOf(this,ArgError.prototype)}}function arg(e,{argv:r=process.argv.slice(2),permissive:i=false,stopAtPositional:n=false}={}){if(!e){throw new ArgError("argument specification object is required","ARG_CONFIG_NO_SPEC")}const s={_:[]};const a={};const o={};for(const r of Object.keys(e)){if(!r){throw new ArgError("argument key cannot be an empty string","ARG_CONFIG_EMPTY_KEY")}if(r[0]!=="-"){throw new ArgError(`argument key must start with '-' but found: '${r}'`,"ARG_CONFIG_NONOPT_KEY")}if(r.length===1){throw new ArgError(`argument key must have a name; singular '-' keys are not allowed: ${r}`,"ARG_CONFIG_NONAME_KEY")}if(typeof e[r]==="string"){a[r]=e[r];continue}let i=e[r];let n=false;if(Array.isArray(i)&&i.length===1&&typeof i[0]==="function"){const[e]=i;i=(t,r,i=[])=>{i.push(e(t,r,i[i.length-1]));return i};n=e===Boolean||e[t]===true}else if(typeof i==="function"){n=i===Boolean||i[t]===true}else{throw new ArgError(`type missing or not a function or valid array type: ${r}`,"ARG_CONFIG_VAD_TYPE")}if(r[1]!=="-"&&r.length>2){throw new ArgError(`short argument keys (with a single hyphen) must have only one character: ${r}`,"ARG_CONFIG_SHORTOPT_TOOLONG")}o[r]=[i,n]}for(let e=0,t=r.length;e<t;e++){const t=r[e];if(n&&s._.length>0){s._=s._.concat(r.slice(e));break}if(t==="--"){s._=s._.concat(r.slice(e+1));break}if(t.length>1&&t[0]==="-"){const n=t[1]==="-"||t.length===2?[t]:t.slice(1).split("").map((e=>`-${e}`));for(let t=0;t<n.length;t++){const c=n[t];const[l,h]=c[1]==="-"?c.split(/=(.*)/,2):[c,undefined];let u=l;while(u in a){u=a[u]}if(!(u in o)){if(i){s._.push(c);continue}else{throw new ArgError(`unknown or unexpected option: ${l}`,"ARG_UNKNOWN_OPTION")}}const[p,d]=o[u];if(!d&&t+1<n.length){throw new ArgError(`option requires argument (but was followed by another short argument): ${l}`,"ARG_MISSING_REQUIRED_SHORTARG")}if(d){s[u]=p(true,u,s[u])}else if(h===undefined){if(r.length<e+2||r[e+1].length>1&&r[e+1][0]==="-"&&!(r[e+1].match(/^-?\d*(\.(?=\d))?\d*$/)&&(p===Number||typeof BigInt!=="undefined"&&p===BigInt))){const e=l===u?"":` (alias for ${u})`;throw new ArgError(`option requires argument: ${l}${e}`,"ARG_MISSING_REQUIRED_LONGARG")}s[u]=p(r[e+1],u,s[u]);++e}else{s[u]=p(h,u,s[u])}}}else{s._.push(t)}}return s}arg.flag=e=>{e[t]=true;return e};arg.COUNT=arg.flag(((e,t,r)=>(r||0)+1));arg.ArgError=ArgError;e.exports=arg},519:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var i=range(e,t,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+e.length,i[1]),post:r.slice(i[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var i,n,s,a,o;var c=r.indexOf(e);var l=r.indexOf(t,c+1);var h=c;if(c>=0&&l>0){if(e===t){return[c,l]}i=[];s=r.length;while(h>=0&&!o){if(h==c){i.push(h);c=r.indexOf(e,h+1)}else if(i.length==1){o=[i.pop(),l]}else{n=i.pop();if(n<s){s=n;a=l}l=r.indexOf(t,h+1)}h=c<l&&c>=0?c:l}if(i.length){o=[s,a]}}return o}},870:(e,t,r)=>{var i=r(232);var n=r(519);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var a="\0OPEN"+Math.random()+"\0";var o="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var l="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(a).split("\\}").join(o).split("\\,").join(c).split("\\.").join(l)}function unescapeBraces(e){return e.split(s).join("\\").split(a).join("{").split(o).join("}").split(c).join(",").split(l).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=n("{","}",e);if(!r)return e.split(",");var i=r.pre;var s=r.body;var a=r.post;var o=i.split(",");o[o.length-1]+="{"+s+"}";var c=parseCommaParts(a);if(a.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=n("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var a=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var l=a||c;var h=s.body.indexOf(",")>=0;if(!l&&!h){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+o+s.post;return expand(e)}return[e]}var u;if(l){u=s.body.split(/\.\./)}else{u=parseCommaParts(s.body);if(u.length===1){u=expand(u[0],false).map(embrace);if(u.length===1){var p=s.post.length?expand(s.post,false):[""];return p.map((function(e){return s.pre+u[0]+e}))}}}var d=s.pre;var p=s.post.length?expand(s.post,false):[""];var v;if(l){var g=numeric(u[0]);var b=numeric(u[1]);var y=Math.max(u[0].length,u[1].length);var _=u.length==3?Math.abs(numeric(u[2])):1;var w=lte;var k=b<g;if(k){_*=-1;w=gte}var E=u.some(isPadded);v=[];for(var S=g;w(S,b);S+=_){var x;if(c){x=String.fromCharCode(S);if(x==="\\")x=""}else{x=String(S);if(E){var O=y-x.length;if(O>0){var A=new Array(O+1).join("0");if(S<0)x="-"+A+x.slice(1);else x=A+x}}}v.push(x)}}else{v=i(u,(function(e){return expand(e,false)}))}for(var G=0;G<v.length;G++){for(var j=0;j<p.length;j++){var N=d+v[G]+p[j];if(!t||l||N)r.push(N)}}return r}},232:e=>{e.exports=function(e,r){var i=[];for(var n=0;n<e.length;n++){var s=r(e[n],n);if(t(s))i.push.apply(i,s);else i.push(s)}return i};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},369:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var i=r(896);var n=i.realpath;var s=i.realpathSync;var a=process.version;var o=/^v[0-5]\./.test(a);var c=r(84);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(o){return n(e,t,r)}if(typeof t==="function"){r=t;t=null}n(e,t,(function(i,n){if(newError(i)){c.realpath(e,t,r)}else{r(i,n)}}))}function realpathSync(e,t){if(o){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){i.realpath=realpath;i.realpathSync=realpathSync}function unmonkeypatch(){i.realpath=n;i.realpathSync=s}},84:(e,t,r)=>{var i=r(928);var n=process.platform==="win32";var s=r(896);var a=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(a){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var o=i.normalize;if(n){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(n){var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var l=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,a={},o={};var h;var u;var p;var d;start();function start(){var t=l.exec(e);h=t[0].length;u=t[0];p=t[0];d="";if(n&&!o[p]){s.lstatSync(p);o[p]=true}}while(h<e.length){c.lastIndex=h;var v=c.exec(e);d=u;u+=v[0];p=d+v[1];h=c.lastIndex;if(o[p]||t&&t[p]===p){continue}var g;if(t&&Object.prototype.hasOwnProperty.call(t,p)){g=t[p]}else{var b=s.lstatSync(p);if(!b.isSymbolicLink()){o[p]=true;if(t)t[p]=p;continue}var y=null;if(!n){var _=b.dev.toString(32)+":"+b.ino.toString(32);if(a.hasOwnProperty(_)){y=a[_]}}if(y===null){s.statSync(p);y=s.readlinkSync(p)}g=i.resolve(d,y);if(t)t[p]=g;if(!n)a[_]=y}e=i.resolve(g,e.slice(h));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=i.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var a=e,o={},h={};var u;var p;var d;var v;start();function start(){var t=l.exec(e);u=t[0].length;p=t[0];d=t[0];v="";if(n&&!h[d]){s.lstat(d,(function(e){if(e)return r(e);h[d]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(u>=e.length){if(t)t[a]=e;return r(null,e)}c.lastIndex=u;var i=c.exec(e);v=p;p+=i[0];d=v+i[1];u=c.lastIndex;if(h[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return s.lstat(d,gotStat)}function gotStat(e,i){if(e)return r(e);if(!i.isSymbolicLink()){h[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!n){var a=i.dev.toString(32)+":"+i.ino.toString(32);if(o.hasOwnProperty(a)){return gotTarget(null,o[a],d)}}s.stat(d,(function(e){if(e)return r(e);s.readlink(d,(function(e,t){if(!n)o[a]=t;gotTarget(e,t)}))}))}function gotTarget(e,n,s){if(e)return r(e);var a=i.resolve(v,n);if(t)t[s]=a;gotResolvedLink(a)}function gotResolvedLink(t){e=i.resolve(t,e.slice(u));start()}}},578:(e,t,r)=>{"use strict";const i=r(896);const n=r(928);const s=r(948);function readSizeRecursive(e,t,r,a){let o;let c;if(!a){o=r;c=null}else{o=a;c=r}i.lstat(t,(function lstat(r,a){let l=!r?a.size||0:0;if(a){if(e.has(a.ino)){return o(null,0)}e.add(a.ino)}if(!r&&a.isDirectory()){i.readdir(t,((r,i)=>{if(r){return o(r)}s(i,5e3,((r,i)=>{readSizeRecursive(e,n.join(t,r),c,((e,t)=>{if(!e){l+=t}i(e)}))}),(e=>{o(e,l)}))}))}else{if(c&&c.test(t)){l=0}o(r,l)}}))}e.exports=(...e)=>{e.unshift(new Set);return readSizeRecursive(...e)}},392:(e,t,r)=>{t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=r(896);var n=r(928);var s=r(975);var a=r(928).isAbsolute;var o=s.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new o(r,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===false;if(e.windowsPathsNoEscape){t=t.replace(/\\/g,"/")}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||i;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))e.cwd=n.resolve(s);else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==s}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);e.cwdAbs=a(e.cwd)?e.cwd:makeAbs(e,e.cwd);e.nomount=!!r.nomount;if(process.platform==="win32"){e.root=e.root.replace(/\\/g,"/");e.cwd=e.cwd.replace(/\\/g,"/");e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")}r.nonegate=true;r.nocomment=true;e.minimatch=new o(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var i=0,n=e.matches.length;i<n;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[i];if(t)r.push(a);else r[a]=true}}else{var o=Object.keys(s);if(t)r.push.apply(r,o);else o.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var i=0;i<r.length;i++){r[i]=e._mark(r[i])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var i=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var i=e.cache[r];var n=t;if(i){var s=i==="DIR"||Array.isArray(i);var a=t.slice(-1)==="/";if(s&&!a)n+="/";else if(!s&&a)n=n.slice(0,-1);if(n!==t){var o=makeAbs(e,n);e.statCache[o]=e.statCache[r];e.cache[o]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=n.join(e.root,t)}else if(a(t)||t===""){r=t}else if(e.changedCwd){r=n.resolve(e.cwd,t)}else{r=n.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},759:(e,t,r)=>{e.exports=glob;var i=r(369);var n=r(975);var s=n.Minimatch;var a=r(871);var o=r(434).EventEmitter;var c=r(928);var l=r(613);var h=r(928).isAbsolute;var u=r(442);var p=r(392);var d=p.setopts;var v=p.ownProp;var g=r(109);var b=r(23);var y=p.childrenIgnored;var _=p.isIgnored;var w=r(733);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return u(e,t)}return new Glob(e,t,r)}glob.sync=u;var k=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var i=r.length;while(i--){e[r[i]]=t[r[i]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,o);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new k(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);d(this,e,t);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var a=0;a<i;a++){this._process(this.minimatch.set[a],a,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r);var s=this;var a=n.length;if(a===0)return t();var o=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else s.emit("error",i);if(--a===0){s.matches[e]=o;t()}}))}))};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,i){l(this instanceof Glob);l(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,i]);return}var s=0;while(typeof e[s]==="string"){s++}var a;switch(s){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:a=null;break;default:a=e.slice(0,s).join("/");break}var o=e.slice(s);var c;if(a===null)c=".";else if(h(a)||h(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!a||!h(a))a="/"+a;c=a}else c=a;var u=this._makeAbs(c);if(y(this,c))return i();var p=o[0]===n.GLOBSTAR;if(p)this._processGlobStar(a,c,u,o,t,r,i);else this._processReaddir(a,c,u,o,t,r,i)};Glob.prototype._processReaddir=function(e,t,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){return o._processReaddir2(e,t,r,i,n,s,l,a)}))};Glob.prototype._processReaddir2=function(e,t,r,i,n,s,a,o){if(!a)return o();var l=i[0];var h=!!this.minimatch.negate;var u=l._glob;var p=this.dot||u.charAt(0)===".";var d=[];for(var v=0;v<a.length;v++){var g=a[v];if(g.charAt(0)!=="."||p){var b;if(h&&!e){b=!g.match(l)}else{b=g.match(l)}if(b)d.push(g)}}var y=d.length;if(y===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<y;v++){var g=d[v];if(e){if(e!=="/")g=e+"/"+g;else g=e+g}if(g.charAt(0)==="/"&&!this.nomount){g=c.join(this.root,g)}this._emitMatch(n,g)}return o()}i.shift();for(var v=0;v<y;v++){var g=d[v];var _;if(e){if(e!=="/")g=e+"/"+g;else g=e+g}this._process([g].concat(i),n,s,o)}o()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(_(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=h(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var i=this;var n=g(r,lstatcb_);if(n)i.fs.lstat(e,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return t();var s=n&&n.isSymbolicLink();i.symlinks[e]=s;if(!s&&n&&!n.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=g("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!v(this.symlinks,e))return this._readdirInGlobStar(e,r);if(v(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(i,n){if(i)e._readdirError(t,i,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<t.length;i++){var n=t[i];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){o._processGlobStar2(e,t,r,i,n,s,l,a)}))};Glob.prototype._processGlobStar2=function(e,t,r,i,n,s,a,o){if(!a)return o();var c=i.slice(1);var l=e?[e]:[];var h=l.concat(c);this._process(h,n,false,o);var u=this.symlinks[r];var p=a.length;if(u&&s)return o();for(var d=0;d<p;d++){var v=a[d];if(v.charAt(0)==="."&&!this.dot)continue;var g=l.concat(a[d],c);this._process(g,n,true,o);var b=l.concat(a[d],i);this._process(b,n,true,o)}o()};Glob.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,(function(n,s){i._processSimple2(e,t,n,s,r)}))};Glob.prototype._processSimple2=function(e,t,r,i,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!i)return n();if(e&&h(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&v(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return t(null,n);if(i&&n==="FILE")return t()}var s;var a=this.statCache[r];if(a!==undefined){if(a===false)return t(null,a);else{var o=a.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return t();else return t(null,o,a)}}var c=this;var l=g("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return c.fs.stat(r,(function(i,s){if(i)c._stat2(e,r,null,n,t);else c._stat2(e,r,i,s,t)}))}else{c._stat2(e,r,i,n,t)}}};Glob.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var s=e.slice(-1)==="/";this.statCache[t]=i;if(t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var a=true;if(i)a=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||a;if(s&&a==="FILE")return n();return n(null,a,i)}},156:(e,t,r)=>{var i=r(519);e.exports=expandTop;var n="\0SLASH"+Math.random()+"\0";var s="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var o="\0COMMA"+Math.random()+"\0";var c="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(n).split("\\{").join(s).split("\\}").join(a).split("\\,").join(o).split("\\.").join(c)}function unescapeBraces(e){return e.split(n).join("\\").split(s).join("{").split(a).join("}").split(o).join(",").split(c).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var a=r.post;var o=n.split(",");o[o.length-1]+="{"+s+"}";var c=parseCommaParts(a);if(a.length){o[o.length-1]+=c.shift();o.push.apply(o,c)}t.push.apply(t,o);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var n=i("{","}",e);if(!n)return[e];var s=n.pre;var o=n.post.length?expand(n.post,false):[""];if(/\$$/.test(n.pre)){for(var c=0;c<o.length;c++){var l=s+"{"+n.body+"}"+o[c];r.push(l)}}else{var h=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var p=h||u;var d=n.body.indexOf(",")>=0;if(!p&&!d){if(n.post.match(/,.*\}/)){e=n.pre+"{"+n.body+a+n.post;return expand(e)}return[e]}var v;if(p){v=n.body.split(/\.\./)}else{v=parseCommaParts(n.body);if(v.length===1){v=expand(v[0],false).map(embrace);if(v.length===1){return o.map((function(e){return n.pre+v[0]+e}))}}}var g;if(p){var b=numeric(v[0]);var y=numeric(v[1]);var _=Math.max(v[0].length,v[1].length);var w=v.length==3?Math.abs(numeric(v[2])):1;var k=lte;var E=y<b;if(E){w*=-1;k=gte}var S=v.some(isPadded);g=[];for(var x=b;k(x,y);x+=w){var O;if(u){O=String.fromCharCode(x);if(O==="\\")O=""}else{O=String(x);if(S){var A=_-O.length;if(A>0){var G=new Array(A+1).join("0");if(x<0)O="-"+G+O.slice(1);else O=G+O}}}g.push(O)}}else{g=[];for(var j=0;j<v.length;j++){g.push.apply(g,expand(v[j],false))}}for(var j=0;j<g.length;j++){for(var c=0;c<o.length;c++){var l=s+g[j]+o[c];if(!t||p||l)r.push(l)}}}return r}},876:e=>{const t=typeof process==="object"&&process&&process.platform==="win32";e.exports=t?{sep:"\\"}:{sep:"/"}},975:(e,t,r)=>{const i=e.exports=(e,t,r={})=>{assertValidPattern(t);if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)};e.exports=i;const n=r(876);i.sep=n.sep;const s=Symbol("globstar **");i.GLOBSTAR=s;const a=r(156);const o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const c="[^/]";const l=c+"*?";const h="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const u="(?:(?!(?:\\/|^)\\.).)*?";const charSet=e=>e.split("").reduce(((e,t)=>{e[t]=true;return e}),{});const p=charSet("().*{}+?[]^$\\!");const d=charSet("[.(");const v=/\/+/;i.filter=(e,t={})=>(r,n,s)=>i(r,e,t);const ext=(e,t={})=>{const r={};Object.keys(e).forEach((t=>r[t]=e[t]));Object.keys(t).forEach((e=>r[e]=t[e]));return r};i.defaults=e=>{if(!e||typeof e!=="object"||!Object.keys(e).length){return i}const t=i;const m=(r,i,n)=>t(r,i,ext(e,n));m.Minimatch=class Minimatch extends t.Minimatch{constructor(t,r){super(t,ext(e,r))}};m.Minimatch.defaults=r=>t.defaults(ext(e,r)).Minimatch;m.filter=(r,i)=>t.filter(r,ext(e,i));m.defaults=r=>t.defaults(ext(e,r));m.makeRe=(r,i)=>t.makeRe(r,ext(e,i));m.braceExpand=(r,i)=>t.braceExpand(r,ext(e,i));m.match=(r,i,n)=>t.match(r,i,ext(e,n));return m};i.braceExpand=(e,t)=>braceExpand(e,t);const braceExpand=(e,t={})=>{assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return a(e)};const g=1024*64;const assertValidPattern=e=>{if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>g){throw new TypeError("pattern is too long")}};const b=Symbol("subparse");i.makeRe=(e,t)=>new Minimatch(e,t||{}).makeRe();i.match=(e,t,r={})=>{const i=new Minimatch(t,r);e=e.filter((e=>i.match(e)));if(i.options.nonull&&!e.length){e.push(t)}return e};const globUnescape=e=>e.replace(/\\(.)/g,"$1");const charUnescape=e=>e.replace(/\\([^-\]])/g,"$1");const regExpEscape=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=e=>e.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(e,t){assertValidPattern(e);if(!t)t={};this.options=t;this.set=[];this.pattern=e;this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}debug(){}make(){const e=this.pattern;const t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();let r=this.globSet=this.braceExpand();if(t.debug)this.debug=(...e)=>console.error(...e);this.debug(this.pattern,r);r=this.globParts=r.map((e=>e.split(v)));this.debug(this.pattern,r);r=r.map(((e,t,r)=>e.map(this.parse,this)));this.debug(this.pattern,r);r=r.filter((e=>e.indexOf(false)===-1));this.debug(this.pattern,r);this.set=r}parseNegate(){if(this.options.nonegate)return;const e=this.pattern;let t=false;let r=0;for(let i=0;i<e.length&&e.charAt(i)==="!";i++){t=!t;r++}if(r)this.pattern=e.slice(r);this.negate=t}matchOne(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var n=0,a=0,o=e.length,c=t.length;n<o&&a<c;n++,a++){this.debug("matchOne loop");var l=t[a];var h=e[n];this.debug(t,l,h);if(l===false)return false;if(l===s){this.debug("GLOBSTAR",[t,l,h]);var u=n;var p=a+1;if(p===c){this.debug("** at the end");for(;n<o;n++){if(e[n]==="."||e[n]===".."||!i.dot&&e[n].charAt(0)===".")return false}return true}while(u<o){var d=e[u];this.debug("\nglobstar while",e,u,t,p,d);if(this.matchOne(e.slice(u),t.slice(p),r)){this.debug("globstar found match!",u,o,d);return true}else{if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,u,t,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",e,u,t,p);if(u===o)return true}return false}var v;if(typeof l==="string"){v=h===l;this.debug("string match",l,h,v)}else{v=h.match(l);this.debug("pattern match",l,h,v)}if(!v)return false}if(n===o&&a===c){return true}else if(n===o){return r}else if(a===c){return n===o-1&&e[n]===""}throw new Error("wtf?")}braceExpand(){return braceExpand(this.pattern,this.options)}parse(e,t){assertValidPattern(e);const r=this.options;if(e==="**"){if(!r.noglobstar)return s;else e="*"}if(e==="")return"";let i="";let n=false;let a=false;const h=[];const u=[];let v;let g=false;let y=-1;let _=-1;let w;let k;let E;let S=e.charAt(0)===".";let x=r.dot||S;const patternStart=()=>S?"":x?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=e=>e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(v){switch(v){case"*":i+=l;n=true;break;case"?":i+=c;n=true;break;default:i+="\\"+v;break}this.debug("clearStateChar %j %j",v,i);v=false}};for(let t=0,s;t<e.length&&(s=e.charAt(t));t++){this.debug("%s\t%s %s %j",e,t,i,s);if(a){if(s==="/"){return false}if(p[s]){i+="\\"}i+=s;a=false;continue}switch(s){case"/":{return false}case"\\":if(g&&e.charAt(t+1)==="-"){i+=s;continue}clearStateChar();a=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,t,i,s);if(g){this.debug("  in class");if(s==="!"&&t===_+1)s="^";i+=s;continue}this.debug("call clearStateChar %j",v);clearStateChar();v=s;if(r.noext)clearStateChar();continue;case"(":{if(g){i+="(";continue}if(!v){i+="\\(";continue}const r={type:v,start:t-1,reStart:i.length,open:o[v].open,close:o[v].close};this.debug(this.pattern,"\t",r);h.push(r);i+=r.open;if(r.start===0&&r.type!=="!"){S=true;i+=subPatternStart(e.slice(t+1))}this.debug("plType %j %j",v,i);v=false;continue}case")":{const e=h[h.length-1];if(g||!e){i+="\\)";continue}h.pop();clearStateChar();n=true;k=e;i+=k.close;if(k.type==="!"){u.push(Object.assign(k,{reEnd:i.length}))}continue}case"|":{const r=h[h.length-1];if(g||!r){i+="\\|";continue}clearStateChar();i+="|";if(r.start===0&&r.type!=="!"){S=true;i+=subPatternStart(e.slice(t+1))}continue}case"[":clearStateChar();if(g){i+="\\"+s;continue}g=true;_=t;y=i.length;i+=s;continue;case"]":if(t===_+1||!g){i+="\\"+s;continue}w=e.substring(_+1,t);try{RegExp("["+braExpEscape(charUnescape(w))+"]");i+=s}catch(e){i=i.substring(0,y)+"(?:$.)"}n=true;g=false;continue;default:clearStateChar();if(p[s]&&!(s==="^"&&g)){i+="\\"}i+=s;break}}if(g){w=e.slice(_+1);E=this.parse(w,b);i=i.substring(0,y)+"\\["+E[0];n=n||E[1]}for(k=h.pop();k;k=h.pop()){let e;e=i.slice(k.reStart+k.open.length);this.debug("setting tail",i,k);e=e.replace(/((?:\\{2}){0,64})(\\?)\|/g,((e,t,r)=>{if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n   %s",e,e,k,i);const t=k.type==="*"?l:k.type==="?"?c:"\\"+k.type;n=true;i=i.slice(0,k.reStart)+t+"\\("+e}clearStateChar();if(a){i+="\\\\"}const O=d[i.charAt(0)];for(let e=u.length-1;e>-1;e--){const r=u[e];const n=i.slice(0,r.reStart);const s=i.slice(r.reStart,r.reEnd-8);let a=i.slice(r.reEnd);const o=i.slice(r.reEnd-8,r.reEnd)+a;const c=n.split(")").length;const l=n.split("(").length-c;let h=a;for(let e=0;e<l;e++){h=h.replace(/\)[+*?]?/,"")}a=h;const p=a===""&&t!==b?"(?:$|\\/)":"";i=n+s+a+p+o}if(i!==""&&n){i="(?=.)"+i}if(O){i=patternStart()+i}if(t===b){return[i,n]}if(r.nocase&&!n){n=e.toUpperCase()!==e.toLowerCase()}if(!n){return globUnescape(e)}const A=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",A),{_glob:e,_src:i})}catch(e){return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===false)return this.regexp;const e=this.set;if(!e.length){this.regexp=false;return this.regexp}const t=this.options;const r=t.noglobstar?l:t.dot?h:u;const i=t.nocase?"i":"";let n=e.map((e=>{e=e.map((e=>typeof e==="string"?regExpEscape(e):e===s?s:e._src)).reduce(((e,t)=>{if(!(e[e.length-1]===s&&t===s)){e.push(t)}return e}),[]);e.forEach(((t,i)=>{if(t!==s||e[i-1]===s){return}if(i===0){if(e.length>1){e[i+1]="(?:\\/|"+r+"\\/)?"+e[i+1]}else{e[i]=r}}else if(i===e.length-1){e[i-1]+="(?:\\/|"+r+")?"}else{e[i-1]+="(?:\\/|\\/"+r+"\\/)"+e[i+1];e[i+1]=s}}));return e.filter((e=>e!==s)).join("/")})).join("|");n="^(?:"+n+")$";if(this.negate)n="^(?!"+n+").*$";try{this.regexp=new RegExp(n,i)}catch(e){this.regexp=false}return this.regexp}match(e,t=this.partial){this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;const r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(v);this.debug(this.pattern,"split",e);const i=this.set;this.debug(this.pattern,"set",i);let s;for(let t=e.length-1;t>=0;t--){s=e[t];if(s)break}for(let n=0;n<i.length;n++){const a=i[n];let o=e;if(r.matchBase&&a.length===1){o=[s]}const c=this.matchOne(o,a,t);if(c){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate}static defaults(e){return i.defaults(e).Minimatch}}i.Minimatch=Minimatch},442:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(369);var n=r(975);var s=n.Minimatch;var a=r(759).Glob;var o=r(23);var c=r(928);var l=r(613);var h=r(928).isAbsolute;var u=r(392);var p=u.setopts;var d=u.ownProp;var v=u.childrenIgnored;var g=u.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);p(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){l.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var a=i.realpathSync(s,e.realpathCache);n[a]=true}catch(t){if(t.syscall==="stat")n[e._makeAbs(s)]=true;else throw t}}}))}u.finish(this)};GlobSync.prototype._process=function(e,t,r){l.ok(this instanceof GlobSync);var i=0;while(typeof e[i]==="string"){i++}var s;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var a=e.slice(i);var o;if(s===null)o=".";else if(h(s)||h(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!s||!h(s))s="/"+s;o=s}else o=s;var c=this._makeAbs(o);if(v(this,o))return;var u=a[0]===n.GLOBSTAR;if(u)this._processGlobStar(s,o,c,a,t,r);else this._processReaddir(s,o,c,a,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i[0];var l=!!this.minimatch.negate;var h=o._glob;var u=this.dot||h.charAt(0)===".";var p=[];for(var d=0;d<a.length;d++){var v=a[d];if(v.charAt(0)!=="."||u){var g;if(l&&!e){g=!v.match(o)}else{g=v.match(o)}if(g)p.push(v)}}var b=p.length;if(b===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<b;d++){var v=p[d];if(e){if(e.slice(-1)!=="/")v=e+"/"+v;else v=e+v}if(v.charAt(0)==="/"&&!this.nomount){v=c.join(this.root,v)}this._emitMatch(n,v)}return}i.shift();for(var d=0;d<b;d++){var v=p[d];var y;if(e)y=[e,v];else y=[v];this._process(y.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(e,t){if(g(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var i;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[e]=n;if(!n&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e);if(d(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i.slice(1);var c=e?[e]:[];var l=c.concat(o);this._process(l,n,false);var h=a.length;var u=this.symlinks[r];if(u&&s)return;for(var p=0;p<h;p++){var d=a[p];if(d.charAt(0)==="."&&!this.dot)continue;var v=c.concat(a[p],o);this._process(v,n,true);var g=c.concat(a[p],i);this._process(g,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&h(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&d(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[t];if(!s){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{s=this.fs.statSync(t)}catch(e){s=a}}else{s=a}}this.statCache[t]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return u.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return u.makeAbs(this,e)}},109:(e,t,r)=>{var i=r(641);var n=Object.create(null);var s=r(733);e.exports=i(inflight);function inflight(e,t){if(n[e]){n[e].push(t);return null}else{n[e]=[t];return makeres(e)}}function makeres(e){return s((function RES(){var t=n[e];var r=t.length;var i=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,i)}}finally{if(t.length>r){t.splice(0,r);process.nextTick((function(){RES.apply(null,i)}))}else{delete n[e]}}}))}function slice(e){var t=e.length;var r=[];for(var i=0;i<t;i++)r[i]=e[i];return r}},871:(e,t,r)=>{try{var i=r(23);if(typeof i.inherits!=="function")throw"";e.exports=i.inherits}catch(t){e.exports=r(484)}},484:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var TempCtor=function(){};TempCtor.prototype=t.prototype;e.prototype=new TempCtor;e.prototype.constructor=e}}}},785:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var i=function(){try{return r(928)}catch(e){}}()||{sep:"/"};minimatch.sep=i.sep;var n=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(870);var a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var o="[^/]";var c=o+"*?";var l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var h="(?:(?!(?:\\/|^)\\.).)*?";var u=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var p=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,i,n){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach((function(t){r[t]=e[t]}));Object.keys(t).forEach((function(e){r[e]=t[e]}));return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,i,n){return t(r,i,ext(e,n))};r.Minimatch=function Minimatch(r,i){return new t.Minimatch(r,ext(e,i))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,i){return t.filter(r,ext(e,i))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,i){return t.makeRe(r,ext(e,i))};r.braceExpand=function braceExpand(r,i){return t.braceExpand(r,ext(e,i))};r.match=function(r,i,n){return t.match(r,i,ext(e,n))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){assertValidPattern(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&i.sep!=="/"){e=e.split(i.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map((function(e){return e.split(p)}));this.debug(this.pattern,r);r=r.map((function(e,t,r){return e.map(this.parse,this)}),this);this.debug(this.pattern,r);r=r.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var i=0;if(r.nonegate)return;for(var n=0,s=e.length;n<s&&e.charAt(n)==="!";n++){t=!t;i++}if(i)this.pattern=e.substr(i);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var d=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>d){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var v={};function parse(e,t){assertValidPattern(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return n;else e="*"}if(e==="")return"";var i="";var s=!!r.nocase;var l=false;var h=[];var p=[];var d;var g=false;var b=-1;var y=-1;var _=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(d){switch(d){case"*":i+=c;s=true;break;case"?":i+=o;s=true;break;default:i+="\\"+d;break}w.debug("clearStateChar %j %j",d,i);d=false}}for(var k=0,E=e.length,S;k<E&&(S=e.charAt(k));k++){this.debug("%s\t%s %s %j",e,k,i,S);if(l&&u[S]){i+="\\"+S;l=false;continue}switch(S){case"/":{return false}case"\\":clearStateChar();l=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,k,i,S);if(g){this.debug("  in class");if(S==="!"&&k===y+1)S="^";i+=S;continue}w.debug("call clearStateChar %j",d);clearStateChar();d=S;if(r.noext)clearStateChar();continue;case"(":if(g){i+="(";continue}if(!d){i+="\\(";continue}h.push({type:d,start:k-1,reStart:i.length,open:a[d].open,close:a[d].close});i+=d==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",d,i);d=false;continue;case")":if(g||!h.length){i+="\\)";continue}clearStateChar();s=true;var x=h.pop();i+=x.close;if(x.type==="!"){p.push(x)}x.reEnd=i.length;continue;case"|":if(g||!h.length||l){i+="\\|";l=false;continue}clearStateChar();i+="|";continue;case"[":clearStateChar();if(g){i+="\\"+S;continue}g=true;y=k;b=i.length;i+=S;continue;case"]":if(k===y+1||!g){i+="\\"+S;l=false;continue}var O=e.substring(y+1,k);try{RegExp("["+O+"]")}catch(e){var A=this.parse(O,v);i=i.substr(0,b)+"\\["+A[0]+"\\]";s=s||A[1];g=false;continue}s=true;g=false;i+=S;continue;default:clearStateChar();if(l){l=false}else if(u[S]&&!(S==="^"&&g)){i+="\\"}i+=S}}if(g){O=e.substr(y+1);A=this.parse(O,v);i=i.substr(0,b)+"\\["+A[0];s=s||A[1]}for(x=h.pop();x;x=h.pop()){var G=i.slice(x.reStart+x.open.length);this.debug("setting tail",i,x);G=G.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,r){if(!r){r="\\"}return t+t+r+"|"}));this.debug("tail=%j\n   %s",G,G,x,i);var j=x.type==="*"?c:x.type==="?"?o:"\\"+x.type;s=true;i=i.slice(0,x.reStart)+j+"\\("+G}clearStateChar();if(l){i+="\\\\"}var N=false;switch(i.charAt(0)){case"[":case".":case"(":N=true}for(var I=p.length-1;I>-1;I--){var M=p[I];var R=i.slice(0,M.reStart);var T=i.slice(M.reStart,M.reEnd-8);var C=i.slice(M.reEnd-8,M.reEnd);var D=i.slice(M.reEnd);C+=D;var L=R.split("(").length-1;var P=D;for(k=0;k<L;k++){P=P.replace(/\)[+*?]?/,"")}D=P;var $="";if(D===""&&t!==v){$="$"}var q=R+T+D+$+C;i=q}if(i!==""&&s){i="(?=.)"+i}if(N){i=_+i}if(t===v){return[i,s]}if(!s){return globUnescape(e)}var F=r.nocase?"i":"";try{var B=new RegExp("^"+i+"$",F)}catch(e){return new RegExp("$.")}B._glob=e;B._src=i;return B}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?l:h;var i=t.nocase?"i":"";var s=e.map((function(e){return e.map((function(e){return e===n?r:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,i)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var i=new Minimatch(t,r);e=e.filter((function(e){return i.match(e)}));if(i.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(i.sep!=="/"){e=e.split(i.sep).join("/")}e=e.split(p);this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var s;var a;for(a=e.length-1;a>=0;a--){s=e[a];if(s)break}for(a=0;a<n.length;a++){var o=n[a];var c=e;if(r.matchBase&&o.length===1){c=[s]}var l=this.matchOne(c,o,t);if(l){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,a=0,o=e.length,c=t.length;s<o&&a<c;s++,a++){this.debug("matchOne loop");var l=t[a];var h=e[s];this.debug(t,l,h);if(l===false)return false;if(l===n){this.debug("GLOBSTAR",[t,l,h]);var u=s;var p=a+1;if(p===c){this.debug("** at the end");for(;s<o;s++){if(e[s]==="."||e[s]===".."||!i.dot&&e[s].charAt(0)===".")return false}return true}while(u<o){var d=e[u];this.debug("\nglobstar while",e,u,t,p,d);if(this.matchOne(e.slice(u),t.slice(p),r)){this.debug("globstar found match!",u,o,d);return true}else{if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",e,u,t,p);break}this.debug("globstar swallow a segment, and continue");u++}}if(r){this.debug("\n>>> no match, partial?",e,u,t,p);if(u===o)return true}return false}var v;if(typeof l==="string"){v=h===l;this.debug("string match",l,h,v)}else{v=h.match(l);this.debug("pattern match",l,h,v)}if(!v)return false}if(s===o&&a===c){return true}else if(s===o){return r}else if(a===c){return s===o-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},102:(e,t,r)=>{const i=r(79);const n=r(290);const{mkdirpNative:s,mkdirpNativeSync:a}=r(937);const{mkdirpManual:o,mkdirpManualSync:c}=r(892);const{useNative:l,useNativeSync:h}=r(557);const mkdirp=(e,t)=>{e=n(e);t=i(t);return l(t)?s(e,t):o(e,t)};const mkdirpSync=(e,t)=>{e=n(e);t=i(t);return h(t)?a(e,t):c(e,t)};mkdirp.sync=mkdirpSync;mkdirp.native=(e,t)=>s(n(e),i(t));mkdirp.manual=(e,t)=>o(n(e),i(t));mkdirp.nativeSync=(e,t)=>a(n(e),i(t));mkdirp.manualSync=(e,t)=>c(n(e),i(t));e.exports=mkdirp},93:(e,t,r)=>{const{dirname:i}=r(928);const findMade=(e,t,r=undefined)=>{if(r===t)return Promise.resolve();return e.statAsync(t).then((e=>e.isDirectory()?r:undefined),(r=>r.code==="ENOENT"?findMade(e,i(t),t):undefined))};const findMadeSync=(e,t,r=undefined)=>{if(r===t)return undefined;try{return e.statSync(t).isDirectory()?r:undefined}catch(r){return r.code==="ENOENT"?findMadeSync(e,i(t),t):undefined}};e.exports={findMade:findMade,findMadeSync:findMadeSync}},892:(e,t,r)=>{const{dirname:i}=r(928);const mkdirpManual=(e,t,r)=>{t.recursive=false;const n=i(e);if(n===e){return t.mkdirAsync(e,t).catch((e=>{if(e.code!=="EISDIR")throw e}))}return t.mkdirAsync(e,t).then((()=>r||e),(i=>{if(i.code==="ENOENT")return mkdirpManual(n,t).then((r=>mkdirpManual(e,t,r)));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then((e=>{if(e.isDirectory())return r;else throw i}),(()=>{throw i}))}))};const mkdirpManualSync=(e,t,r)=>{const n=i(e);t.recursive=false;if(n===e){try{return t.mkdirSync(e,t)}catch(e){if(e.code!=="EISDIR")throw e;else return}}try{t.mkdirSync(e,t);return r||e}catch(i){if(i.code==="ENOENT")return mkdirpManualSync(e,t,mkdirpManualSync(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch(e){throw i}}};e.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},937:(e,t,r)=>{const{dirname:i}=r(928);const{findMade:n,findMadeSync:s}=r(93);const{mkdirpManual:a,mkdirpManualSync:o}=r(892);const mkdirpNative=(e,t)=>{t.recursive=true;const r=i(e);if(r===e)return t.mkdirAsync(e,t);return n(t,e).then((r=>t.mkdirAsync(e,t).then((()=>r)).catch((r=>{if(r.code==="ENOENT")return a(e,t);else throw r}))))};const mkdirpNativeSync=(e,t)=>{t.recursive=true;const r=i(e);if(r===e)return t.mkdirSync(e,t);const n=s(t,e);try{t.mkdirSync(e,t);return n}catch(r){if(r.code==="ENOENT")return o(e,t);else throw r}};e.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},79:(e,t,r)=>{const{promisify:i}=r(23);const n=r(896);const optsArg=e=>{if(!e)e={mode:511,fs:n};else if(typeof e==="object")e={mode:511,fs:n,...e};else if(typeof e==="number")e={mode:e,fs:n};else if(typeof e==="string")e={mode:parseInt(e,8),fs:n};else throw new TypeError("invalid options argument");e.mkdir=e.mkdir||e.fs.mkdir||n.mkdir;e.mkdirAsync=i(e.mkdir);e.stat=e.stat||e.fs.stat||n.stat;e.statAsync=i(e.stat);e.statSync=e.statSync||e.fs.statSync||n.statSync;e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||n.mkdirSync;return e};e.exports=optsArg},290:(e,t,r)=>{const i=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:n,parse:s}=r(928);const pathArg=e=>{if(/\0/.test(e)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"})}e=n(e);if(i==="win32"){const t=/[*|"<>?:]/;const{root:r}=s(e);if(t.test(e.substr(r.length))){throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}}return e};e.exports=pathArg},557:(e,t,r)=>{const i=r(896);const n=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const s=n.replace(/^v/,"").split(".");const a=+s[0]>10||+s[0]===10&&+s[1]>=12;const o=!a?()=>false:e=>e.mkdir===i.mkdir;const c=!a?()=>false:e=>e.mkdirSync===i.mkdirSync;e.exports={useNative:o,useNativeSync:c}},733:(e,t,r)=>{var i=r(641);e.exports=i(once);e.exports.strict=i(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(e){var f=function(){if(f.called)return f.value;f.called=true;return f.value=e.apply(this,arguments)};f.called=false;return f}function onceStrict(e){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=e.apply(this,arguments)};var t=e.name||"Function wrapped with `once`";f.onceError=t+" shouldn't be called more than once";f.called=false;return f}},391:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var i=r[1]||"";var n=Boolean(i&&i.charAt(1)!==":");return Boolean(r[2]||n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},367:(e,t,r)=>{t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var i=r(896);var n=r(928);var s=r(785);var a=r(391);var o=s.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new o(r,{dot:true})}return{matcher:new o(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||i;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))e.cwd=s;else{e.cwd=n.resolve(r.cwd);e.changedCwd=e.cwd!==s}e.root=r.root||n.resolve(e.cwd,"/");e.root=n.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=a(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new o(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var i=0,n=e.matches.length;i<n;i++){var s=e.matches[i];if(!s||Object.keys(s).length===0){if(e.nonull){var a=e.minimatch.globSet[i];if(t)r.push(a);else r[a]=true}}else{var o=Object.keys(s);if(t)r.push.apply(r,o);else o.forEach((function(e){r[e]=true}))}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var i=0;i<r.length;i++){r[i]=e._mark(r[i])}if(e.nodir){r=r.filter((function(t){var r=!/\/$/.test(t);var i=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&i)r=i!=="DIR"&&!Array.isArray(i);return r}))}}if(e.ignore.length)r=r.filter((function(t){return!isIgnored(e,t)}));e.found=r}function mark(e,t){var r=makeAbs(e,t);var i=e.cache[r];var n=t;if(i){var s=i==="DIR"||Array.isArray(i);var a=t.slice(-1)==="/";if(s&&!a)n+="/";else if(!s&&a)n=n.slice(0,-1);if(n!==t){var o=makeAbs(e,n);e.statCache[o]=e.statCache[r];e.cache[o]=e.cache[r]}}return n}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=n.join(e.root,t)}else if(a(t)||t===""){r=t}else if(e.changedCwd){r=n.resolve(e.cwd,t)}else{r=n.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))}))}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some((function(e){return!!(e.gmatcher&&e.gmatcher.match(t))}))}},28:(e,t,r)=>{e.exports=glob;var i=r(369);var n=r(785);var s=n.Minimatch;var a=r(871);var o=r(434).EventEmitter;var c=r(928);var l=r(613);var h=r(391);var u=r(441);var p=r(367);var d=p.setopts;var v=p.ownProp;var g=r(109);var b=r(23);var y=p.childrenIgnored;var _=p.isIgnored;var w=r(733);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return u(e,t)}return new Glob(e,t,r)}glob.sync=u;var k=glob.GlobSync=u.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var i=r.length;while(i--){e[r[i]]=t[r[i]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var i=new Glob(e,r);var n=i.minimatch.set;if(!e)return false;if(n.length>1)return true;for(var s=0;s<n[0].length;s++){if(typeof n[0][s]!=="string")return true}return false};glob.Glob=Glob;a(Glob,o);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new k(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);d(this,e,t);this._didRealPath=false;var i=this.minimatch.set.length;this.matches=new Array(i);if(typeof r==="function"){r=w(r);this.on("error",r);this.on("end",(function(e){r(null,e)}))}var n=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(i===0)return done();var s=true;for(var a=0;a<i;a++){this._process(this.minimatch.set[a],a,false,done)}s=false;function done(){--n._processing;if(n._processing<=0){if(s){process.nextTick((function(){n._finish()}))}else{n._finish()}}}}Glob.prototype._finish=function(){l(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r);var s=this;var a=n.length;if(a===0)return t();var o=this.matches[e]=Object.create(null);n.forEach((function(r,n){r=s._makeAbs(r);i.realpath(r,s.realpathCache,(function(i,n){if(!i)o[n]=true;else if(i.syscall==="stat")o[r]=true;else s.emit("error",i);if(--a===0){s.matches[e]=o;t()}}))}))};Glob.prototype._mark=function(e){return p.mark(this,e)};Glob.prototype._makeAbs=function(e){return p.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<i.length;t++){var n=i[t];this._processing--;this._process(n[0],n[1],n[2],n[3])}}}};Glob.prototype._process=function(e,t,r,i){l(this instanceof Glob);l(typeof i==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,i]);return}var s=0;while(typeof e[s]==="string"){s++}var a;switch(s){case e.length:this._processSimple(e.join("/"),t,i);return;case 0:a=null;break;default:a=e.slice(0,s).join("/");break}var o=e.slice(s);var c;if(a===null)c=".";else if(h(a)||h(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!a||!h(a))a="/"+a;c=a}else c=a;var u=this._makeAbs(c);if(y(this,c))return i();var p=o[0]===n.GLOBSTAR;if(p)this._processGlobStar(a,c,u,o,t,r,i);else this._processReaddir(a,c,u,o,t,r,i)};Glob.prototype._processReaddir=function(e,t,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){return o._processReaddir2(e,t,r,i,n,s,l,a)}))};Glob.prototype._processReaddir2=function(e,t,r,i,n,s,a,o){if(!a)return o();var l=i[0];var h=!!this.minimatch.negate;var u=l._glob;var p=this.dot||u.charAt(0)===".";var d=[];for(var v=0;v<a.length;v++){var g=a[v];if(g.charAt(0)!=="."||p){var b;if(h&&!e){b=!g.match(l)}else{b=g.match(l)}if(b)d.push(g)}}var y=d.length;if(y===0)return o();if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var v=0;v<y;v++){var g=d[v];if(e){if(e!=="/")g=e+"/"+g;else g=e+g}if(g.charAt(0)==="/"&&!this.nomount){g=c.join(this.root,g)}this._emitMatch(n,g)}return o()}i.shift();for(var v=0;v<y;v++){var g=d[v];var _;if(e){if(e!=="/")g=e+"/"+g;else g=e+g}this._process([g].concat(i),n,s,o)}o()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(_(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=h(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;var n=this.statCache[r];if(n)this.emit("stat",t,n);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var i=this;var n=g(r,lstatcb_);if(n)i.fs.lstat(e,n);function lstatcb_(r,n){if(r&&r.code==="ENOENT")return t();var s=n&&n.isSymbolicLink();i.symlinks[e]=s;if(!s&&n&&!n.isDirectory()){i.cache[e]="FILE";t()}else i._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=g("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!v(this.symlinks,e))return this._readdirInGlobStar(e,r);if(v(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return r();if(Array.isArray(i))return r(null,i)}var n=this;n.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(i,n){if(i)e._readdirError(t,i,r);else e._readdirEntries(t,n,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var i=0;i<t.length;i++){var n=t[i];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);this.cache[i]="FILE";if(i===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;this.emit("error",n);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,i,n,s,a){var o=this;this._readdir(r,s,(function(c,l){o._processGlobStar2(e,t,r,i,n,s,l,a)}))};Glob.prototype._processGlobStar2=function(e,t,r,i,n,s,a,o){if(!a)return o();var c=i.slice(1);var l=e?[e]:[];var h=l.concat(c);this._process(h,n,false,o);var u=this.symlinks[r];var p=a.length;if(u&&s)return o();for(var d=0;d<p;d++){var v=a[d];if(v.charAt(0)==="."&&!this.dot)continue;var g=l.concat(a[d],c);this._process(g,n,true,o);var b=l.concat(a[d],i);this._process(b,n,true,o)}o()};Glob.prototype._processSimple=function(e,t,r){var i=this;this._stat(e,(function(n,s){i._processSimple2(e,t,n,s,r)}))};Glob.prototype._processSimple2=function(e,t,r,i,n){if(!this.matches[t])this.matches[t]=Object.create(null);if(!i)return n();if(e&&h(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);n()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var i=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&v(this.cache,r)){var n=this.cache[r];if(Array.isArray(n))n="DIR";if(!i||n==="DIR")return t(null,n);if(i&&n==="FILE")return t()}var s;var a=this.statCache[r];if(a!==undefined){if(a===false)return t(null,a);else{var o=a.isDirectory()?"DIR":"FILE";if(i&&o==="FILE")return t();else return t(null,o,a)}}var c=this;var l=g("stat\0"+r,lstatcb_);if(l)c.fs.lstat(r,l);function lstatcb_(i,n){if(n&&n.isSymbolicLink()){return c.fs.stat(r,(function(i,s){if(i)c._stat2(e,r,null,n,t);else c._stat2(e,r,i,s,t)}))}else{c._stat2(e,r,i,n,t)}}};Glob.prototype._stat2=function(e,t,r,i,n){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return n()}var s=e.slice(-1)==="/";this.statCache[t]=i;if(t.slice(-1)==="/"&&i&&!i.isDirectory())return n(null,false,i);var a=true;if(i)a=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||a;if(s&&a==="FILE")return n();return n(null,a,i)}},441:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var i=r(369);var n=r(785);var s=n.Minimatch;var a=r(28).Glob;var o=r(23);var c=r(928);var l=r(613);var h=r(391);var u=r(367);var p=u.setopts;var d=u.ownProp;var v=u.childrenIgnored;var g=u.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);p(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var i=0;i<r;i++){this._process(this.minimatch.set[i],i,false)}this._finish()}GlobSync.prototype._finish=function(){l.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach((function(t,r){var n=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var a=i.realpathSync(s,e.realpathCache);n[a]=true}catch(t){if(t.syscall==="stat")n[e._makeAbs(s)]=true;else throw t}}}))}u.finish(this)};GlobSync.prototype._process=function(e,t,r){l.ok(this instanceof GlobSync);var i=0;while(typeof e[i]==="string"){i++}var s;switch(i){case e.length:this._processSimple(e.join("/"),t);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var a=e.slice(i);var o;if(s===null)o=".";else if(h(s)||h(e.map((function(e){return typeof e==="string"?e:"[*]"})).join("/"))){if(!s||!h(s))s="/"+s;o=s}else o=s;var c=this._makeAbs(o);if(v(this,o))return;var u=a[0]===n.GLOBSTAR;if(u)this._processGlobStar(s,o,c,a,t,r);else this._processReaddir(s,o,c,a,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i[0];var l=!!this.minimatch.negate;var h=o._glob;var u=this.dot||h.charAt(0)===".";var p=[];for(var d=0;d<a.length;d++){var v=a[d];if(v.charAt(0)!=="."||u){var g;if(l&&!e){g=!v.match(o)}else{g=v.match(o)}if(g)p.push(v)}}var b=p.length;if(b===0)return;if(i.length===1&&!this.mark&&!this.stat){if(!this.matches[n])this.matches[n]=Object.create(null);for(var d=0;d<b;d++){var v=p[d];if(e){if(e.slice(-1)!=="/")v=e+"/"+v;else v=e+v}if(v.charAt(0)==="/"&&!this.nomount){v=c.join(this.root,v)}this._emitMatch(n,v)}return}i.shift();for(var d=0;d<b;d++){var v=p[d];var y;if(e)y=[e,v];else y=[v];this._process(y.concat(i),n,s)}};GlobSync.prototype._emitMatch=function(e,t){if(g(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var i=this.cache[r];if(i==="DIR"||Array.isArray(i))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var i;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var n=r&&r.isSymbolicLink();this.symlinks[e]=n;if(!n&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e);if(d(this.cache,e)){var i=this.cache[e];if(!i||i==="FILE")return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var i=t[r];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;throw i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,i,n,s){var a=this._readdir(r,s);if(!a)return;var o=i.slice(1);var c=e?[e]:[];var l=c.concat(o);this._process(l,n,false);var h=a.length;var u=this.symlinks[r];if(u&&s)return;for(var p=0;p<h;p++){var d=a[p];if(d.charAt(0)==="."&&!this.dot)continue;var v=c.concat(a[p],o);this._process(v,n,true);var g=c.concat(a[p],i);this._process(g,n,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&h(e)&&!this.nomount){var i=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(i)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&d(this.cache,t)){var i=this.cache[t];if(Array.isArray(i))i="DIR";if(!r||i==="DIR")return i;if(r&&i==="FILE")return false}var n;var s=this.statCache[t];if(!s){var a;try{a=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(a&&a.isSymbolicLink()){try{s=this.fs.statSync(t)}catch(e){s=a}}else{s=a}}this.statCache[t]=s;var i=true;if(s)i=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(r&&i==="FILE")return false;return i};GlobSync.prototype._mark=function(e){return u.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return u.makeAbs(this,e)}},517:(e,t,r)=>{e.exports=rimraf;rimraf.sync=rimrafSync;var i=r(613);var n=r(928);var s=r(896);var a=undefined;try{a=r(28)}catch(e){}var o=parseInt("666",8);var c={nosort:true,silent:true};var l=0;var h=process.platform==="win32";function defaults(e){var t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach((function(t){e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]}));e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&a===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||c}function rimraf(e,t,r){if(typeof t==="function"){r=t;t={}}i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i.equal(typeof r,"function","rimraf: callback function required");i(t,"rimraf: invalid options argument provided");i.equal(typeof t,"object","rimraf: options should be object");defaults(t);var n=0;var s=null;var o=0;if(t.disableGlob||!a.hasMagic(e))return afterGlob(null,[e]);t.lstat(e,(function(r,i){if(!r)return afterGlob(null,[e]);a(e,t.glob,afterGlob)}));function next(e){s=s||e;if(--o===0)r(s)}function afterGlob(e,i){if(e)return r(e);o=i.length;if(o===0)return r();i.forEach((function(e){rimraf_(e,t,(function CB(r){if(r){if((r.code==="EBUSY"||r.code==="ENOTEMPTY"||r.code==="EPERM")&&n<t.maxBusyTries){n++;var i=n*100;return setTimeout((function(){rimraf_(e,t,CB)}),i)}if(r.code==="EMFILE"&&l<t.emfileWait){return setTimeout((function(){rimraf_(e,t,CB)}),l++)}if(r.code==="ENOENT")r=null}l=0;next(r)}))}))}}function rimraf_(e,t,r){i(e);i(t);i(typeof r==="function");t.lstat(e,(function(i,n){if(i&&i.code==="ENOENT")return r(null);if(i&&i.code==="EPERM"&&h)fixWinEPERM(e,t,i,r);if(n&&n.isDirectory())return rmdir(e,t,i,r);t.unlink(e,(function(i){if(i){if(i.code==="ENOENT")return r(null);if(i.code==="EPERM")return h?fixWinEPERM(e,t,i,r):rmdir(e,t,i,r);if(i.code==="EISDIR")return rmdir(e,t,i,r)}return r(i)}))}))}function fixWinEPERM(e,t,r,n){i(e);i(t);i(typeof n==="function");if(r)i(r instanceof Error);t.chmod(e,o,(function(i){if(i)n(i.code==="ENOENT"?null:r);else t.stat(e,(function(i,s){if(i)n(i.code==="ENOENT"?null:r);else if(s.isDirectory())rmdir(e,t,r,n);else t.unlink(e,n)}))}))}function fixWinEPERMSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.chmodSync(e,o)}catch(e){if(e.code==="ENOENT")return;else throw r}try{var n=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(n.isDirectory())rmdirSync(e,t,r);else t.unlinkSync(e)}function rmdir(e,t,r,n){i(e);i(t);if(r)i(r instanceof Error);i(typeof n==="function");t.rmdir(e,(function(i){if(i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM"))rmkids(e,t,n);else if(i&&i.code==="ENOTDIR")n(r);else n(i)}))}function rmkids(e,t,r){i(e);i(t);i(typeof r==="function");t.readdir(e,(function(i,s){if(i)return r(i);var a=s.length;if(a===0)return t.rmdir(e,r);var o;s.forEach((function(i){rimraf(n.join(e,i),t,(function(i){if(o)return;if(i)return r(o=i);if(--a===0)t.rmdir(e,r)}))}))}))}function rimrafSync(e,t){t=t||{};defaults(t);i(e,"rimraf: missing path");i.equal(typeof e,"string","rimraf: path should be a string");i(t,"rimraf: missing options");i.equal(typeof t,"object","rimraf: options should be object");var r;if(t.disableGlob||!a.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(i){r=a.sync(e,t.glob)}}if(!r.length)return;for(var n=0;n<r.length;n++){var e=r[n];try{var s=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM"&&h)fixWinEPERMSync(e,t,r)}try{if(s&&s.isDirectory())rmdirSync(e,t,null);else t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return h?fixWinEPERMSync(e,t,r):rmdirSync(e,t,r);if(r.code!=="EISDIR")throw r;rmdirSync(e,t,r)}}}function rmdirSync(e,t,r){i(e);i(t);if(r)i(r instanceof Error);try{t.rmdirSync(e)}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR")throw r;if(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")rmkidsSync(e,t)}}function rmkidsSync(e,t){i(e);i(t);t.readdirSync(e).forEach((function(r){rimrafSync(n.join(e,r),t)}));var r=h?100:1;var s=0;do{var a=true;try{var o=t.rmdirSync(e,t);a=false;return o}finally{if(++s<r&&a)continue}}while(true)}},948:e=>{"use strict";e.exports=function eachAsync(e,t,r,i){var n=0;var s=0;var a=e.length-1;var o=false;var c;var l;var h;if(typeof t==="number"){c=t;h=r;l=i||function noop(){}}else{h=t;l=r||function noop(){};c=e.length}if(!e.length){return l()}var u=h.length;var p=function shouldCallNextIterator(){return!o&&n<c&&s<a};var d=function iteratorCallback(e){if(o){return}n--;if(e||s===a&&!n){o=true;l(e)}else if(p()){v(++s)}};var v=function processIterator(){n++;var t=u===2?[e[s],d]:[e[s],s,d];h.apply(null,t);if(p()){processIterator(++s)}};v()}},641:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach((function(t){wrapper[t]=e[t]}));return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var i=e.apply(this,t);var n=t[t.length-1];if(typeof i==="function"&&i!==n){Object.keys(n).forEach((function(e){i[e]=n[e]}))}return i}}},152:(module,__unused_webpack_exports,__webpack_require__)=>{const{resolve:resolve,relative:relative,dirname:dirname,sep:sep}=__webpack_require__(928);const glob=__webpack_require__(759);const shebangRegEx=__webpack_require__(820);const rimraf=__webpack_require__(517);const crypto=__webpack_require__(982);const{writeFileSync:writeFileSync,unlink:unlink,existsSync:existsSync,symlinkSync:symlinkSync}=__webpack_require__(896);const{hasTypeModule:hasTypeModule}=__webpack_require__(350);const mkdirp=__webpack_require__(102);const{version:nccVersion}=__webpack_require__(330);process.noDeprecation=true;const usage=`Usage: ncc <cmd> <opts>\n\nCommands:\n  build <input-file> [opts]\n  run <input-file> [opts]\n  cache clean|dir|size\n  help\n  version\n\nOptions:\n  -o, --out [file]         Output directory for build (defaults to dist)\n  -m, --minify             Minify output\n  -C, --no-cache           Skip build cache population\n  -s, --source-map         Generate source map\n  -a, --asset-builds       Build nested JS assets recursively, useful for\n                           when code is loaded as an asset eg for workers.\n  --no-source-map-register Skip source-map-register source map support\n  -e, --external [mod]     Skip bundling 'mod'. Can be used many times\n  -q, --quiet              Disable build summaries / non-error outputs\n  -w, --watch              Start a watched build\n  -t, --transpile-only     Use transpileOnly option with the ts-loader\n  --v8-cache               Emit a build using the v8 compile cache\n  --license [file]         Adds a file containing licensing information to the output\n  --stats-out [file]       Emit webpack stats as json to the specified output file\n  --target [es]            ECMAScript target to use for output (default: es2015)\n                           Learn more: https://webpack.js.org/configuration/target\n  -d, --debug              Show debug logs\n`;let api=false;if(require.main===require.cache[eval("__filename")]){runCmd(process.argv.slice(2),process.stdout,process.stderr).then((e=>{if(!e)process.exit()})).catch((e=>{if(!e.silent)console.error(e.nccError?e.message:e);process.exit(e.exitCode||1)}))}else{module.exports=runCmd;api=true}function renderSummary(e,t,r,i,n,s){if(n&&!n.endsWith(sep))n+=sep;const a=Math.round(Buffer.byteLength(e,"utf8")/1024);const o=t?Math.round(Buffer.byteLength(t,"utf8")/1024):0;const c=Object.create(null);let l=a;let h=8+(t?4:0);for(const e of Object.keys(r)){const t=r[e].source;const i=Math.round((t.byteLength||Buffer.byteLength(t,"utf8"))/1024);c[e]=i;l+=i;if(e.length>h)h=e.length}const u=Object.keys(r).sort(((e,t)=>c[e]>c[t]?1:-1));const p=l.toString().length;let d=`${a.toString().padStart(p," ")}kB  ${n}index${i}`;let v=t?`${o.toString().padStart(p," ")}kB  ${n}index${i}.map`:"";let g="",b=true;for(const e of u){if(b)b=false;else g+="\n";if(a<c[e]&&d){g+=d+"\n";d=null}if(o&&o<c[e]&&v){g+=v+"\n";v=null}g+=`${c[e].toString().padStart(p," ")}kB  ${n}${e}`}if(d){g+=(b?"":"\n")+d;b=false}if(v)g+=(b?"":"\n")+v;g+=`\n${l}kB  [${s}ms] - ncc ${nccVersion}`;return g}function nccError(e,t=1){const r=new Error(e);r.nccError=true;r.exitCode=t;throw r}function showHelp(){nccError(usage,2)}function showVersion(){process.stdout.write(__webpack_require__(330).version+"\n")}async function runCmd(argv,stdout,stderr){let args;try{args=__webpack_require__(509)({"--help":Boolean,"-h":"--help","--version":Boolean,"-v":"--version","--asset-builds":Boolean,"-a":"--asset-builds","--debug":Boolean,"-d":"--debug","--external":[String],"-e":"--external","--out":String,"-o":"--out","--minify":Boolean,"-m":"--minify","--source-map":Boolean,"-s":"--source-map","--no-cache":Boolean,"-C":"--no-cache","--no-asset-builds":Boolean,"--no-source-map-register":Boolean,"--quiet":Boolean,"-q":"--quiet","--watch":Boolean,"-w":"--watch","--v8-cache":Boolean,"--transpile-only":Boolean,"-t":"--transpile-only","--license":String,"--stats-out":String,"--target":String},{permissive:false,argv:argv})}catch(e){if(e.message.indexOf("Unknown or unexpected option")===-1)throw e;nccError(e.message+`\n${usage}`,2)}if(args["--help"]){return showHelp()}else if(args["--version"]){return showVersion()}if(args._.length===0)nccError(`Error: No command specified\n${usage}`,2);let run=false;let outDir=args["--out"];const quiet=args["--quiet"];const statsOutFile=args["--stats-out"];switch(args._[0]){case"cache":if(args._.length>2)errTooManyArguments("cache");const flags=Object.keys(args).filter((e=>e.startsWith("--")));if(flags.length)errFlagNotCompatible(flags[0],"cache");const cacheDir=__webpack_require__(821);switch(args._[1]){case"clean":rimraf.sync(cacheDir);break;case"dir":stdout.write(cacheDir+"\n");break;case"size":__webpack_require__(578)(cacheDir,((e,t)=>{if(e){if(e.code==="ENOENT"){stdout.write("0MB\n");return}throw e}stdout.write(`${(t/1024/1024).toFixed(2)}MB\n`)}));break;default:errInvalidCommand("cache "+args._[1])}break;case"run":if(args._.length>2)errTooManyArguments("run");if(args["--out"])errFlagNotCompatible("--out","run");if(args["--watch"])errFlagNotCompatible("--watch","run");outDir=resolve(__webpack_require__(857).tmpdir(),crypto.createHash("sha256").update(resolve(args._[1]||".")).digest("hex"));if(existsSync(outDir))rimraf.sync(outDir);mkdirp.sync(outDir);run=true;case"build":if(args._.length>2)errTooManyArguments("build");let startTime=Date.now();let ps;const buildFile=eval("require.resolve")(resolve(args._[1]||"."));const esm=buildFile.endsWith(".mjs")||!buildFile.endsWith(".cjs")&&hasTypeModule(buildFile);const ext=buildFile.endsWith(".cjs")?".cjs":esm&&(buildFile.endsWith(".mjs")||!hasTypeModule(buildFile))?".mjs":".js";const ncc=__webpack_require__(377)(buildFile,{debugLog:args["--debug"],minify:args["--minify"],externals:args["--external"],sourceMap:args["--source-map"]||run,sourceMapRegister:args["--no-source-map-register"]?false:undefined,assetBuilds:args["--asset-builds"]?true:false,cache:args["--no-cache"]?false:undefined,watch:args["--watch"],v8cache:args["--v8-cache"],transpileOnly:args["--transpile-only"],license:args["--license"],quiet:quiet,target:args["--target"]});async function handler({err:err,code:code,map:map,assets:assets,symlinks:symlinks,stats:stats}){if(err){stderr.write(err+"\n");stdout.write("Watching for changes...\n");return}outDir=outDir||resolve(eval("'dist'"));mkdirp.sync(outDir);await Promise.all((await new Promise(((e,t)=>glob(outDir+"/**/*.(js|cjs)",((r,i)=>r?t(r):e(i)))))).map((e=>new Promise(((t,r)=>unlink(e,(e=>e?r(e):t())))))));writeFileSync(`${outDir}/index${ext}`,code,{mode:code.match(shebangRegEx)?511:438});if(map)writeFileSync(`${outDir}/index${ext}.map`,map);for(const e of Object.keys(assets)){const t=outDir+"/"+e;mkdirp.sync(dirname(t));writeFileSync(t,assets[e].source,{mode:assets[e].permissions})}for(const e of Object.keys(symlinks)){const t=outDir+"/"+e;symlinkSync(symlinks[e],t)}if(!quiet){stdout.write(renderSummary(code,map,assets,ext,run?"":relative(process.cwd(),outDir),Date.now()-startTime)+"\n");if(args["--watch"])stdout.write("Watching for changes...\n")}if(statsOutFile)writeFileSync(statsOutFile,JSON.stringify(stats.toJson()));if(run){const e=resolve("/node_modules");let t=dirname(buildFile)+"/node_modules";do{if(t===e){t=undefined;break}if(existsSync(t))break}while(t=resolve(t,"../../node_modules"));if(t)symlinkSync(t,outDir+"/node_modules","junction");ps=__webpack_require__(317).fork(`${outDir}/index${ext}`,{stdio:api?"pipe":"inherit"});if(api){ps.stdout.pipe(stdout);ps.stderr.pipe(stderr)}return new Promise(((e,t)=>{function exit(r){__webpack_require__(517).sync(outDir);if(r===0)e();else t({silent:true,exitCode:r});process.off("SIGTERM",exit);process.off("SIGINT",exit)}ps.on("exit",exit);process.on("SIGTERM",exit);process.on("SIGINT",exit)}))}}if(args["--watch"]){ncc.handler(handler);ncc.rebuild((()=>{if(ps)ps.kill();startTime=Date.now();stdout.write("File change, rebuilding...\n")}));return true}else{return ncc.then(handler)}break;case"help":showHelp();break;case"version":showVersion();break;default:errInvalidCommand(args._[0],2)}function errTooManyArguments(e){nccError(`Error: Too many ${e} arguments provided\n${usage}`,2)}function errFlagNotCompatible(e,t){nccError(`Error: ${e} flag is not compatible with ncc ${t}\n${usage}`,2)}function errInvalidCommand(e){nccError(`Error: Invalid command "${e}"\n${usage}`,2)}process.on("unhandledRejection",(e=>{throw e}))}},350:(__unused_webpack_module,exports,__webpack_require__)=>{const{resolve:resolve}=__webpack_require__(928);const{readFileSync:readFileSync}=__webpack_require__(896);exports.hasTypeModule=function hasTypeModule(path){while(path!==(path=resolve(path,".."))){try{return JSON.parse(readFileSync(eval("resolve")(path,"package.json")).toString()).type==="module"}catch(e){if(e.code==="ENOENT")continue;throw e}}}},821:(e,t,r)=>{e.exports=r(857).tmpdir()+"/ncc-cache"},820:e=>{e.exports=/^#![^\n\r]*[\r\n]/},377:e=>{"use strict";e.exports=require("./index.js")},613:e=>{"use strict";e.exports=require("assert")},317:e=>{"use strict";e.exports=require("child_process")},982:e=>{"use strict";e.exports=require("crypto")},434:e=>{"use strict";e.exports=require("events")},896:e=>{"use strict";e.exports=require("fs")},857:e=>{"use strict";e.exports=require("os")},928:e=>{"use strict";e.exports=require("path")},23:e=>{"use strict";e.exports=require("util")},330:e=>{"use strict";e.exports=JSON.parse('{"name":"@vercel/ncc","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","version":"0.38.3","repository":"vercel/ncc","license":"MIT","main":"./dist/ncc/index.js","bin":{"ncc":"./dist/ncc/cli.js"},"files":["dist"],"scripts":{"build":"node scripts/build.js","build-test-binary":"cd test/binary && node-gyp rebuild && cp build/Release/hello.node ../integration/hello.node","test":"node --expose-gc --max_old_space_size=4096 node_modules/jest/bin/jest.js","test-coverage":"node --expose-gc --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --coverage --globals \\"{\\\\\\"coverage\\\\\\":true}\\"","prepublishOnly":"node scripts/build.js --no-cache"},"devDependencies":{"@azure/cosmos":"^3.17.3","@bugsnag/js":"^7.21.0","@ffmpeg-installer/ffmpeg":"^1.0.17","@google-cloud/bigquery":"^5.7.0","@google-cloud/firestore":"^6.7.0","@sentry/node":"^7.66.0","@slack/web-api":"^6.9.0","@vercel/webpack-asset-relocator-loader":"1.7.3","analytics-node":"^6.2.0","apollo-server-express":"^2.2.2","arg":"^5.0.2","auth0":"^2.14.0","aws-sdk":"^2.1448.0","axios":"^1.7.7","azure-storage":"^2.10.2","browserify-middleware":"^8.1.1","bytes":"^3.1.2","canvas":"3.0.0-rc2","chromeless":"^1.5.2","consolidate":"^0.16.0","copy":"^0.3.2","core-js":"^2.5.7","cowsay":"^1.3.1","esm":"^3.2.22","express":"^4.18.2","fetch-h2":"^3.0.2","firebase":"^7.24.0","firebase-admin":"^11.10.1","fluent-ffmpeg":"^2.1.2","fontkit":"^1.7.7","get-folder-size":"^2.0.0","glob":"^8.0.3","got":"^12.5.2","graceful-fs":"^4.2.11","graphql":"^15.5.1","hot-shots":"^8.5.0","ioredis":"^5.3.2","isomorphic-unfetch":"^4.0.2","jest":"^27.5.1","jimp":"^0.16.1","jugglingdb":"2.0.1","koa":"^2.14.2","leveldown":"^6.0.0","license-webpack-plugin":"^4.0.2","lighthouse":"^8.1.0","loopback":"^3.24.0","mailgun":"^0.5.0","mariadb":"^2.0.1-beta","memcached":"^2.2.2","memory-fs":"^0.5.0","mkdirp":"^1.0.4","mongoose":"^5.3.12","mysql":"^2.16.0","node-gyp":"^9.4.0","npm":"^6.13.4","oracledb":"^6.1.0","passport":"^0.6.0","passport-google-oauth":"^2.0.0","path-platform":"^0.11.15","pdfkit":"^0.13.0","pg":"^8.11.3","pug":"^3.0.1","react":"^17.0.2","react-dom":"^17.0.2","redis":"^3.1.1","request":"^2.88.0","rxjs":"^7.8.1","saslprep":"^1.0.2","sequelize":"^6.32.1","sharp":"^0.32.5","shebang-loader":"^0.0.1","socket.io":"^4.7.2","source-map-support":"^0.5.9","stripe":"^8.167.0","swig":"^1.4.2","terser":"^5.33.0","the-answer":"^1.0.0","tiny-json-http":"^7.5.1","ts-loader":"^9.4.4","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.1.0","twilio":"^3.23.2","typescript":"^5.2.2","vm2":"^3.9.19","vue":"^2.5.17","vue-server-renderer":"^2.5.17","web-vitals":"^0.2.4","webpack":"5.94.0","when":"^3.7.8"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"}')}};var __webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(t!==undefined){return t.exports}var r=__webpack_module_cache__[e]={exports:{}};var i=true;try{__webpack_modules__[e](r,r.exports,__webpack_require__);i=false}finally{if(i)delete __webpack_module_cache__[e]}return r.exports}if(typeof __webpack_require__!=="undefined")__webpack_require__.ab=__dirname+"/";var __webpack_exports__=__webpack_require__(152);module.exports=__webpack_exports__})();