@stencil/core
Version:
A Compiler for Web Components and Progressive Web Apps
1 lines • 32 kB
JavaScript
(()=>{var t={623:t=>{"use strict";function e(t,e,s){t instanceof RegExp&&(t=r(t,s)),e instanceof RegExp&&(e=r(e,s));var n=i(t,e,s);return n&&{start:n[0],end:n[1],pre:s.slice(0,n[0]),body:s.slice(n[0]+t.length,n[1]),post:s.slice(n[1]+e.length)}}function r(t,e){var r=e.match(t);return r?r[0]:null}function i(t,e,r){var i,s,n,o,a,c=r.indexOf(t),h=r.indexOf(e,c+1),l=c;if(c>=0&&h>0){for(i=[],n=r.length;l>=0&&!a;)l==c?(i.push(l),c=r.indexOf(t,l+1)):1==i.length?a=[i.pop(),h]:((s=i.pop())<n&&(n=s,o=h),h=r.indexOf(e,l+1)),l=c<h&&c>=0?c:h;i.length&&(a=[n,o])}return a}t.exports=e,e.range=i},334:(t,e,r)=>{t.exports=l,l.realpath=l,l.sync=u,l.realpathSync=u,l.monkeypatch=function(){i.realpath=l,i.realpathSync=u},l.unmonkeypatch=function(){i.realpath=s,i.realpathSync=n};var i=r(147),s=i.realpath,n=i.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),c=r(59);function h(t){return t&&"realpath"===t.syscall&&("ELOOP"===t.code||"ENOMEM"===t.code||"ENAMETOOLONG"===t.code)}function l(t,e,r){if(a)return s(t,e,r);"function"==typeof e&&(r=e,e=null),s(t,e,(function(i,s){h(i)?c.realpath(t,e,r):r(i,s)}))}function u(t,e){if(a)return n(t,e);try{return n(t,e)}catch(r){if(h(r))return c.realpathSync(t,e);throw r}}},59:(t,e,r)=>{var i=r(17),s="win32"===process.platform,n=r(147),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(t){return"function"==typeof t?t:function(){var t;if(o){var e=new Error;t=function(t){t&&(e.message=t.message,r(t=e))}}else t=r;return t;function r(t){if(t){if(process.throwDeprecation)throw t;if(!process.noDeprecation){var e="fs: missing callback "+(t.stack||t.message);process.traceDeprecation?console.trace(e):console.error(e)}}}}()}i.normalize;if(s)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(s)var h=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else h=/^[\/]*/;e.realpathSync=function(t,e){if(t=i.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return e[t];var r,o,a,l,u=t,p={},f={};function d(){var e=h.exec(t);r=e[0].length,o=e[0],a=e[0],l="",s&&!f[a]&&(n.lstatSync(a),f[a]=!0)}for(d();r<t.length;){c.lastIndex=r;var g=c.exec(t);if(l=o,o+=g[0],a=l+g[1],r=c.lastIndex,!(f[a]||e&&e[a]===a)){var m;if(e&&Object.prototype.hasOwnProperty.call(e,a))m=e[a];else{var y=n.lstatSync(a);if(!y.isSymbolicLink()){f[a]=!0,e&&(e[a]=a);continue}var b=null;if(!s){var v=y.dev.toString(32)+":"+y.ino.toString(32);p.hasOwnProperty(v)&&(b=p[v])}null===b&&(n.statSync(a),b=n.readlinkSync(a)),m=i.resolve(l,b),e&&(e[a]=m),s||(p[v]=b)}t=i.resolve(m,t.slice(r)),d()}}return e&&(e[u]=t),t},e.realpath=function(t,e,r){if("function"!=typeof r&&(r=a(e),e=null),t=i.resolve(t),e&&Object.prototype.hasOwnProperty.call(e,t))return process.nextTick(r.bind(null,null,e[t]));var o,l,u,p,f=t,d={},g={};function m(){var e=h.exec(t);o=e[0].length,l=e[0],u=e[0],p="",s&&!g[u]?n.lstat(u,(function(t){if(t)return r(t);g[u]=!0,y()})):process.nextTick(y)}function y(){if(o>=t.length)return e&&(e[f]=t),r(null,t);c.lastIndex=o;var i=c.exec(t);return p=l,l+=i[0],u=p+i[1],o=c.lastIndex,g[u]||e&&e[u]===u?process.nextTick(y):e&&Object.prototype.hasOwnProperty.call(e,u)?_(e[u]):n.lstat(u,b)}function b(t,i){if(t)return r(t);if(!i.isSymbolicLink())return g[u]=!0,e&&(e[u]=u),process.nextTick(y);if(!s){var o=i.dev.toString(32)+":"+i.ino.toString(32);if(d.hasOwnProperty(o))return v(null,d[o],u)}n.stat(u,(function(t){if(t)return r(t);n.readlink(u,(function(t,e){s||(d[o]=e),v(t,e)}))}))}function v(t,s,n){if(t)return r(t);var o=i.resolve(p,s);e&&(e[n]=o),_(o)}function _(e){t=i.resolve(e,t.slice(o)),m()}m()}},772:(t,e,r)=>{function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.setopts=function(t,e,r){r||(r={});if(r.matchBase&&-1===e.indexOf("/")){if(r.noglobstar)throw new Error("base matching requires globstar");e="**/"+e}t.windowsPathsNoEscape=!!r.windowsPathsNoEscape||!1===r.allowWindowsEscape,t.windowsPathsNoEscape&&(e=e.replace(/\\/g,"/"));t.silent=!!r.silent,t.pattern=e,t.strict=!1!==r.strict,t.realpath=!!r.realpath,t.realpathCache=r.realpathCache||Object.create(null),t.follow=!!r.follow,t.dot=!!r.dot,t.mark=!!r.mark,t.nodir=!!r.nodir,t.nodir&&(t.mark=!0);t.sync=!!r.sync,t.nounique=!!r.nounique,t.nonull=!!r.nonull,t.nosort=!!r.nosort,t.nocase=!!r.nocase,t.stat=!!r.stat,t.noprocess=!!r.noprocess,t.absolute=!!r.absolute,t.fs=r.fs||s,t.maxLength=r.maxLength||1/0,t.cache=r.cache||Object.create(null),t.statCache=r.statCache||Object.create(null),t.symlinks=r.symlinks||Object.create(null),function(t,e){t.ignore=e.ignore||[],Array.isArray(t.ignore)||(t.ignore=[t.ignore]);t.ignore.length&&(t.ignore=t.ignore.map(l))}(t,r),t.changedCwd=!1;var o=process.cwd();i(r,"cwd")?(t.cwd=n.resolve(r.cwd),t.changedCwd=t.cwd!==o):t.cwd=n.resolve(o);t.root=r.root||n.resolve(t.cwd,"/"),t.root=n.resolve(t.root),t.cwdAbs=a(t.cwd)?t.cwd:u(t,t.cwd),t.nomount=!!r.nomount,"win32"===process.platform&&(t.root=t.root.replace(/\\/g,"/"),t.cwd=t.cwd.replace(/\\/g,"/"),t.cwdAbs=t.cwdAbs.replace(/\\/g,"/"));r.nonegate=!0,r.nocomment=!0,t.minimatch=new c(e,r),t.options=t.minimatch.options},e.ownProp=i,e.makeAbs=u,e.finish=function(t){for(var e=t.nounique,r=e?[]:Object.create(null),i=0,s=t.matches.length;i<s;i++){var n=t.matches[i];if(n&&0!==Object.keys(n).length){var o=Object.keys(n);e?r.push.apply(r,o):o.forEach((function(t){r[t]=!0}))}else if(t.nonull){var a=t.minimatch.globSet[i];e?r.push(a):r[a]=!0}}e||(r=Object.keys(r));t.nosort||(r=r.sort(h));if(t.mark){for(i=0;i<r.length;i++)r[i]=t._mark(r[i]);t.nodir&&(r=r.filter((function(e){var r=!/\/$/.test(e),i=t.cache[e]||t.cache[u(t,e)];return r&&i&&(r="DIR"!==i&&!Array.isArray(i)),r})))}t.ignore.length&&(r=r.filter((function(e){return!p(t,e)})));t.found=r},e.mark=function(t,e){var r=u(t,e),i=t.cache[r],s=e;if(i){var n="DIR"===i||Array.isArray(i),o="/"===e.slice(-1);if(n&&!o?s+="/":!n&&o&&(s=s.slice(0,-1)),s!==e){var a=u(t,s);t.statCache[a]=t.statCache[r],t.cache[a]=t.cache[r]}}return s},e.isIgnored=p,e.childrenIgnored=function(t,e){return!!t.ignore.length&&t.ignore.some((function(t){return!(!t.gmatcher||!t.gmatcher.match(e))}))};var s=r(147),n=r(17),o=r(171),a=r(17).isAbsolute,c=o.Minimatch;function h(t,e){return t.localeCompare(e,"en")}function l(t){var e=null;if("/**"===t.slice(-3)){var r=t.replace(/(\/\*\*)+$/,"");e=new c(r,{dot:!0})}return{matcher:new c(t,{dot:!0}),gmatcher:e}}function u(t,e){var r=e;return r="/"===e.charAt(0)?n.join(t.root,e):a(e)||""===e?e:t.changedCwd?n.resolve(t.cwd,e):n.resolve(e),"win32"===process.platform&&(r=r.replace(/\\/g,"/")),r}function p(t,e){return!!t.ignore.length&&t.ignore.some((function(t){return t.matcher.match(e)||!(!t.gmatcher||!t.gmatcher.match(e))}))}},884:(t,e,r)=>{t.exports=b;var i=r(334),s=r(171),n=(s.Minimatch,r(378)),o=r(361).EventEmitter,a=r(17),c=r(491),h=r(17).isAbsolute,l=r(751),u=r(772),p=u.setopts,f=u.ownProp,d=r(844),g=(r(837),u.childrenIgnored),m=u.isIgnored,y=r(778);function b(t,e,r){if("function"==typeof e&&(r=e,e={}),e||(e={}),e.sync){if(r)throw new TypeError("callback provided to sync glob");return l(t,e)}return new _(t,e,r)}b.sync=l;var v=b.GlobSync=l.GlobSync;function _(t,e,r){if("function"==typeof e&&(r=e,e=null),e&&e.sync){if(r)throw new TypeError("callback provided to sync glob");return new v(t,e)}if(!(this instanceof _))return new _(t,e,r);p(this,t,e),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),"function"==typeof r&&(r=y(r),this.on("error",r),this.on("end",(function(t){r(null,t)})));var s=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===i)return a();for(var n=!0,o=0;o<i;o++)this._process(this.minimatch.set[o],o,!1,a);function a(){--s._processing,s._processing<=0&&(n?process.nextTick((function(){s._finish()})):s._finish())}n=!1}b.glob=b,b.hasMagic=function(t,e){var r=function(t,e){if(null===e||"object"!=typeof e)return t;for(var r=Object.keys(e),i=r.length;i--;)t[r[i]]=e[r[i]];return t}({},e);r.noprocess=!0;var i=new _(t,r).minimatch.set;if(!t)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if("string"!=typeof i[0][s])return!0;return!1},b.Glob=_,n(_,o),_.prototype._finish=function(){if(c(this instanceof _),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();u.finish(this),this.emit("end",this.found)}},_.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var t=this.matches.length;if(0===t)return this._finish();for(var e=this,r=0;r<this.matches.length;r++)this._realpathSet(r,i)}function i(){0==--t&&e._finish()}},_.prototype._realpathSet=function(t,e){var r=this.matches[t];if(!r)return e();var s=Object.keys(r),n=this,o=s.length;if(0===o)return e();var a=this.matches[t]=Object.create(null);s.forEach((function(r,s){r=n._makeAbs(r),i.realpath(r,n.realpathCache,(function(i,s){i?"stat"===i.syscall?a[r]=!0:n.emit("error",i):a[s]=!0,0==--o&&(n.matches[t]=a,e())}))}))},_.prototype._mark=function(t){return u.mark(this,t)},_.prototype._makeAbs=function(t){return u.makeAbs(this,t)},_.prototype.abort=function(){this.aborted=!0,this.emit("abort")},_.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},_.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var e=0;e<t.length;e++){var r=t[e];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(e=0;e<i.length;e++){var s=i[e];this._processing--,this._process(s[0],s[1],s[2],s[3])}}}},_.prototype._process=function(t,e,r,i){if(c(this instanceof _),c("function"==typeof i),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([t,e,r,i]);else{for(var n,o=0;"string"==typeof t[o];)o++;switch(o){case t.length:return void this._processSimple(t.join("/"),e,i);case 0:n=null;break;default:n=t.slice(0,o).join("/")}var a,l=t.slice(o);null===n?a=".":h(n)||h(t.map((function(t){return"string"==typeof t?t:"[*]"})).join("/"))?(n&&h(n)||(n="/"+n),a=n):a=n;var u=this._makeAbs(a);if(g(this,a))return i();l[0]===s.GLOBSTAR?this._processGlobStar(n,a,u,l,e,r,i):this._processReaddir(n,a,u,l,e,r,i)}},_.prototype._processReaddir=function(t,e,r,i,s,n,o){var a=this;this._readdir(r,n,(function(c,h){return a._processReaddir2(t,e,r,i,s,n,h,o)}))},_.prototype._processReaddir2=function(t,e,r,i,s,n,o,c){if(!o)return c();for(var h=i[0],l=!!this.minimatch.negate,u=h._glob,p=this.dot||"."===u.charAt(0),f=[],d=0;d<o.length;d++){if("."!==(m=o[d]).charAt(0)||p)(l&&!t?!m.match(h):m.match(h))&&f.push(m)}var g=f.length;if(0===g)return c();if(1===i.length&&!this.mark&&!this.stat){this.matches[s]||(this.matches[s]=Object.create(null));for(d=0;d<g;d++){var m=f[d];t&&(m="/"!==t?t+"/"+m:t+m),"/"!==m.charAt(0)||this.nomount||(m=a.join(this.root,m)),this._emitMatch(s,m)}return c()}i.shift();for(d=0;d<g;d++){m=f[d];t&&(m="/"!==t?t+"/"+m:t+m),this._process([m].concat(i),s,n,c)}c()},_.prototype._emitMatch=function(t,e){if(!this.aborted&&!m(this,e))if(this.paused)this._emitQueue.push([t,e]);else{var r=h(e)?e:this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if("DIR"===i||Array.isArray(i))return}this.matches[t][e]=!0;var s=this.statCache[r];s&&this.emit("stat",e,s),this.emit("match",e)}}},_.prototype._readdirInGlobStar=function(t,e){if(!this.aborted){if(this.follow)return this._readdir(t,!1,e);var r=this,i=d("lstat\0"+t,(function(i,s){if(i&&"ENOENT"===i.code)return e();var n=s&&s.isSymbolicLink();r.symlinks[t]=n,n||!s||s.isDirectory()?r._readdir(t,!1,e):(r.cache[t]="FILE",e())}));i&&r.fs.lstat(t,i)}},_.prototype._readdir=function(t,e,r){if(!this.aborted&&(r=d("readdir\0"+t+"\0"+e,r))){if(e&&!f(this.symlinks,t))return this._readdirInGlobStar(t,r);if(f(this.cache,t)){var i=this.cache[t];if(!i||"FILE"===i)return r();if(Array.isArray(i))return r(null,i)}this.fs.readdir(t,function(t,e,r){return function(i,s){i?t._readdirError(e,i,r):t._readdirEntries(e,s,r)}}(this,t,r))}},_.prototype._readdirEntries=function(t,e,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<e.length;i++){var s=e[i];s="/"===t?t+s:t+"/"+s,this.cache[s]=!0}return this.cache[t]=e,r(null,e)}},_.prototype._readdirError=function(t,e,r){if(!this.aborted){switch(e.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);if(this.cache[i]="FILE",i===this.cwdAbs){var s=new Error(e.code+" invalid cwd "+this.cwd);s.path=this.cwd,s.code=e.code,this.emit("error",s),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:this.cache[this._makeAbs(t)]=!1,this.strict&&(this.emit("error",e),this.abort()),this.silent||console.error("glob error",e)}return r()}},_.prototype._processGlobStar=function(t,e,r,i,s,n,o){var a=this;this._readdir(r,n,(function(c,h){a._processGlobStar2(t,e,r,i,s,n,h,o)}))},_.prototype._processGlobStar2=function(t,e,r,i,s,n,o,a){if(!o)return a();var c=i.slice(1),h=t?[t]:[],l=h.concat(c);this._process(l,s,!1,a);var u=this.symlinks[r],p=o.length;if(u&&n)return a();for(var f=0;f<p;f++){if("."!==o[f].charAt(0)||this.dot){var d=h.concat(o[f],c);this._process(d,s,!0,a);var g=h.concat(o[f],i);this._process(g,s,!0,a)}}a()},_.prototype._processSimple=function(t,e,r){var i=this;this._stat(t,(function(s,n){i._processSimple2(t,e,s,n,r)}))},_.prototype._processSimple2=function(t,e,r,i,s){if(this.matches[e]||(this.matches[e]=Object.create(null)),!i)return s();if(t&&h(t)&&!this.nomount){var n=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=a.join(this.root,t):(t=a.resolve(this.root,t),n&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t),s()},_.prototype._stat=function(t,e){var r=this._makeAbs(t),i="/"===t.slice(-1);if(t.length>this.maxLength)return e();if(!this.stat&&f(this.cache,r)){var s=this.cache[r];if(Array.isArray(s)&&(s="DIR"),!i||"DIR"===s)return e(null,s);if(i&&"FILE"===s)return e()}var n=this.statCache[r];if(void 0!==n){if(!1===n)return e(null,n);var o=n.isDirectory()?"DIR":"FILE";return i&&"FILE"===o?e():e(null,o,n)}var a=this,c=d("stat\0"+r,(function(i,s){if(s&&s.isSymbolicLink())return a.fs.stat(r,(function(i,n){i?a._stat2(t,r,null,s,e):a._stat2(t,r,i,n,e)}));a._stat2(t,r,i,s,e)}));c&&a.fs.lstat(r,c)},_.prototype._stat2=function(t,e,r,i,s){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[e]=!1,s();var n="/"===t.slice(-1);if(this.statCache[e]=i,"/"===e.slice(-1)&&i&&!i.isDirectory())return s(null,!1,i);var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||o,n&&"FILE"===o?s():s(null,o,i)}},751:(t,e,r)=>{t.exports=f,f.GlobSync=d;var i=r(334),s=r(171),n=(s.Minimatch,r(884).Glob,r(837),r(17)),o=r(491),a=r(17).isAbsolute,c=r(772),h=c.setopts,l=c.ownProp,u=c.childrenIgnored,p=c.isIgnored;function f(t,e){if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new d(t,e).found}function d(t,e){if(!t)throw new Error("must provide pattern");if("function"==typeof e||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof d))return new d(t,e);if(h(this,t,e),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,!1);this._finish()}d.prototype._finish=function(){if(o.ok(this instanceof d),this.realpath){var t=this;this.matches.forEach((function(e,r){var s=t.matches[r]=Object.create(null);for(var n in e)try{n=t._makeAbs(n),s[i.realpathSync(n,t.realpathCache)]=!0}catch(e){if("stat"!==e.syscall)throw e;s[t._makeAbs(n)]=!0}}))}c.finish(this)},d.prototype._process=function(t,e,r){o.ok(this instanceof d);for(var i,n=0;"string"==typeof t[n];)n++;switch(n){case t.length:return void this._processSimple(t.join("/"),e);case 0:i=null;break;default:i=t.slice(0,n).join("/")}var c,h=t.slice(n);null===i?c=".":a(i)||a(t.map((function(t){return"string"==typeof t?t:"[*]"})).join("/"))?(i&&a(i)||(i="/"+i),c=i):c=i;var l=this._makeAbs(c);u(this,c)||(h[0]===s.GLOBSTAR?this._processGlobStar(i,c,l,h,e,r):this._processReaddir(i,c,l,h,e,r))},d.prototype._processReaddir=function(t,e,r,i,s,o){var a=this._readdir(r,o);if(a){for(var c=i[0],h=!!this.minimatch.negate,l=c._glob,u=this.dot||"."===l.charAt(0),p=[],f=0;f<a.length;f++){if("."!==(m=a[f]).charAt(0)||u)(h&&!t?!m.match(c):m.match(c))&&p.push(m)}var d=p.length;if(0!==d)if(1!==i.length||this.mark||this.stat){i.shift();for(f=0;f<d;f++){var g;m=p[f];g=t?[t,m]:[m],this._process(g.concat(i),s,o)}}else{this.matches[s]||(this.matches[s]=Object.create(null));for(var f=0;f<d;f++){var m=p[f];t&&(m="/"!==t.slice(-1)?t+"/"+m:t+m),"/"!==m.charAt(0)||this.nomount||(m=n.join(this.root,m)),this._emitMatch(s,m)}}}},d.prototype._emitMatch=function(t,e){if(!p(this,e)){var r=this._makeAbs(e);if(this.mark&&(e=this._mark(e)),this.absolute&&(e=r),!this.matches[t][e]){if(this.nodir){var i=this.cache[r];if("DIR"===i||Array.isArray(i))return}this.matches[t][e]=!0,this.stat&&this._stat(e)}}},d.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,!1);var e,r;try{r=this.fs.lstatSync(t)}catch(t){if("ENOENT"===t.code)return null}var i=r&&r.isSymbolicLink();return this.symlinks[t]=i,i||!r||r.isDirectory()?e=this._readdir(t,!1):this.cache[t]="FILE",e},d.prototype._readdir=function(t,e){if(e&&!l(this.symlinks,t))return this._readdirInGlobStar(t);if(l(this.cache,t)){var r=this.cache[t];if(!r||"FILE"===r)return null;if(Array.isArray(r))return r}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(e){return this._readdirError(t,e),null}},d.prototype._readdirEntries=function(t,e){if(!this.mark&&!this.stat)for(var r=0;r<e.length;r++){var i=e[r];i="/"===t?t+i:t+"/"+i,this.cache[i]=!0}return this.cache[t]=e,e},d.prototype._readdirError=function(t,e){switch(e.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(t);if(this.cache[r]="FILE",r===this.cwdAbs){var i=new Error(e.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=e.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=!1;break;default:if(this.cache[this._makeAbs(t)]=!1,this.strict)throw e;this.silent||console.error("glob error",e)}},d.prototype._processGlobStar=function(t,e,r,i,s,n){var o=this._readdir(r,n);if(o){var a=i.slice(1),c=t?[t]:[],h=c.concat(a);this._process(h,s,!1);var l=o.length;if(!this.symlinks[r]||!n)for(var u=0;u<l;u++){if("."!==o[u].charAt(0)||this.dot){var p=c.concat(o[u],a);this._process(p,s,!0);var f=c.concat(o[u],i);this._process(f,s,!0)}}}},d.prototype._processSimple=function(t,e){var r=this._stat(t);if(this.matches[e]||(this.matches[e]=Object.create(null)),r){if(t&&a(t)&&!this.nomount){var i=/[\/\\]$/.test(t);"/"===t.charAt(0)?t=n.join(this.root,t):(t=n.resolve(this.root,t),i&&(t+="/"))}"win32"===process.platform&&(t=t.replace(/\\/g,"/")),this._emitMatch(e,t)}},d.prototype._stat=function(t){var e=this._makeAbs(t),r="/"===t.slice(-1);if(t.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,e)){var i=this.cache[e];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return i;if(r&&"FILE"===i)return!1}var s=this.statCache[e];if(!s){var n;try{n=this.fs.lstatSync(e)}catch(t){if(t&&("ENOENT"===t.code||"ENOTDIR"===t.code))return this.statCache[e]=!1,!1}if(n&&n.isSymbolicLink())try{s=this.fs.statSync(e)}catch(t){s=n}else s=n}this.statCache[e]=s;i=!0;return s&&(i=s.isDirectory()?"DIR":"FILE"),this.cache[e]=this.cache[e]||i,(!r||"FILE"!==i)&&i},d.prototype._mark=function(t){return c.mark(this,t)},d.prototype._makeAbs=function(t){return c.makeAbs(this,t)}},844:(t,e,r)=>{var i=r(479),s=Object.create(null),n=r(778);t.exports=i((function(t,e){return s[t]?(s[t].push(e),null):(s[t]=[e],function(t){return n((function e(){var r=s[t],i=r.length,n=function(t){for(var e=t.length,r=[],i=0;i<e;i++)r[i]=t[i];return r}(arguments);try{for(var o=0;o<i;o++)r[o].apply(null,n)}finally{r.length>i?(r.splice(0,i),process.nextTick((function(){e.apply(null,n)}))):delete s[t]}}))}(t))}))},378:(t,e,r)=>{try{var i=r(837);if("function"!=typeof i.inherits)throw"";t.exports=i.inherits}catch(e){t.exports=r(717)}},717:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},696:t=>{const e="object"==typeof process&&process&&"win32"===process.platform;t.exports=e?{sep:"\\"}:{sep:"/"}},171:(t,e,r)=>{const i=t.exports=(t,e,r={})=>(m(e),!(!r.nocomment&&"#"===e.charAt(0))&&new v(e,r).match(t));t.exports=i;const s=r(696);i.sep=s.sep;const n=Symbol("globstar **");i.GLOBSTAR=n;const o=r(282),a={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},c="[^/]",h=c+"*?",l=t=>t.split("").reduce(((t,e)=>(t[e]=!0,t)),{}),u=l("().*{}+?[]^$\\!"),p=l("[.("),f=/\/+/;i.filter=(t,e={})=>(r,s,n)=>i(r,t,e);const d=(t,e={})=>{const r={};return Object.keys(t).forEach((e=>r[e]=t[e])),Object.keys(e).forEach((t=>r[t]=e[t])),r};i.defaults=t=>{if(!t||"object"!=typeof t||!Object.keys(t).length)return i;const e=i,r=(r,i,s)=>e(r,i,d(t,s));return(r.Minimatch=class extends e.Minimatch{constructor(e,r){super(e,d(t,r))}}).defaults=r=>e.defaults(d(t,r)).Minimatch,r.filter=(r,i)=>e.filter(r,d(t,i)),r.defaults=r=>e.defaults(d(t,r)),r.makeRe=(r,i)=>e.makeRe(r,d(t,i)),r.braceExpand=(r,i)=>e.braceExpand(r,d(t,i)),r.match=(r,i,s)=>e.match(r,i,d(t,s)),r},i.braceExpand=(t,e)=>g(t,e);const g=(t,e={})=>(m(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t)?[t]:o(t)),m=t=>{if("string"!=typeof t)throw new TypeError("invalid pattern");if(t.length>65536)throw new TypeError("pattern is too long")},y=Symbol("subparse");i.makeRe=(t,e)=>new v(t,e||{}).makeRe(),i.match=(t,e,r={})=>{const i=new v(e,r);return t=t.filter((t=>i.match(t))),i.options.nonull&&!t.length&&t.push(e),t};const b=t=>t.replace(/[[\]\\]/g,"\\$&");class v{constructor(t,e){m(t),e||(e={}),this.options=e,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!e.windowsPathsNoEscape||!1===e.allowWindowsEscape,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!e.partial,this.make()}debug(){}make(){const t=this.pattern,e=this.options;if(!e.nocomment&&"#"===t.charAt(0))return void(this.comment=!0);if(!t)return void(this.empty=!0);this.parseNegate();let r=this.globSet=this.braceExpand();e.debug&&(this.debug=(...t)=>console.error(...t)),this.debug(this.pattern,r),r=this.globParts=r.map((t=>t.split(f))),this.debug(this.pattern,r),r=r.map(((t,e,r)=>t.map(this.parse,this))),this.debug(this.pattern,r),r=r.filter((t=>-1===t.indexOf(!1))),this.debug(this.pattern,r),this.set=r}parseNegate(){if(this.options.nonegate)return;const t=this.pattern;let e=!1,r=0;for(let i=0;i<t.length&&"!"===t.charAt(i);i++)e=!e,r++;r&&(this.pattern=t.slice(r)),this.negate=e}matchOne(t,e,r){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var s=0,o=0,a=t.length,c=e.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var h,l=e[o],u=t[s];if(this.debug(e,l,u),!1===l)return!1;if(l===n){this.debug("GLOBSTAR",[e,l,u]);var p=s,f=o+1;if(f===c){for(this.debug("** at the end");s<a;s++)if("."===t[s]||".."===t[s]||!i.dot&&"."===t[s].charAt(0))return!1;return!0}for(;p<a;){var d=t[p];if(this.debug("\nglobstar while",t,p,e,f,d),this.matchOne(t.slice(p),e.slice(f),r))return this.debug("globstar found match!",p,a,d),!0;if("."===d||".."===d||!i.dot&&"."===d.charAt(0)){this.debug("dot detected!",t,p,e,f);break}this.debug("globstar swallow a segment, and continue"),p++}return!(!r||(this.debug("\n>>> no match, partial?",t,p,e,f),p!==a))}if("string"==typeof l?(h=u===l,this.debug("string match",l,u,h)):(h=u.match(l),this.debug("pattern match",l,u,h)),!h)return!1}if(s===a&&o===c)return!0;if(s===a)return r;if(o===c)return s===a-1&&""===t[s];throw new Error("wtf?")}braceExpand(){return g(this.pattern,this.options)}parse(t,e){m(t);const r=this.options;if("**"===t){if(!r.noglobstar)return n;t="*"}if(""===t)return"";let i="",s=!1,o=!1;const l=[],f=[];let d,g,v,_,w=!1,E=-1,k=-1,O="."===t.charAt(0),A=r.dot||O;const x=t=>"."===t.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",S=()=>{if(d){switch(d){case"*":i+=h,s=!0;break;case"?":i+=c,s=!0;break;default:i+="\\"+d}this.debug("clearStateChar %j %j",d,i),d=!1}};for(let e,n=0;n<t.length&&(e=t.charAt(n));n++)if(this.debug("%s\t%s %s %j",t,n,i,e),o){if("/"===e)return!1;u[e]&&(i+="\\"),i+=e,o=!1}else switch(e){case"/":return!1;case"\\":if(w&&"-"===t.charAt(n+1)){i+=e;continue}S(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",t,n,i,e),w){this.debug(" in class"),"!"===e&&n===k+1&&(e="^"),i+=e;continue}this.debug("call clearStateChar %j",d),S(),d=e,r.noext&&S();continue;case"(":{if(w){i+="(";continue}if(!d){i+="\\(";continue}const e={type:d,start:n-1,reStart:i.length,open:a[d].open,close:a[d].close};this.debug(this.pattern,"\t",e),l.push(e),i+=e.open,0===e.start&&"!"!==e.type&&(O=!0,i+=x(t.slice(n+1))),this.debug("plType %j %j",d,i),d=!1;continue}case")":{const t=l[l.length-1];if(w||!t){i+="\\)";continue}l.pop(),S(),s=!0,v=t,i+=v.close,"!"===v.type&&f.push(Object.assign(v,{reEnd:i.length}));continue}case"|":{const e=l[l.length-1];if(w||!e){i+="\\|";continue}S(),i+="|",0===e.start&&"!"!==e.type&&(O=!0,i+=x(t.slice(n+1)));continue}case"[":if(S(),w){i+="\\"+e;continue}w=!0,k=n,E=i.length,i+=e;continue;case"]":if(n===k+1||!w){i+="\\"+e;continue}g=t.substring(k+1,n);try{RegExp("["+b(g.replace(/\\([^-\]])/g,"$1"))+"]"),i+=e}catch(t){i=i.substring(0,E)+"(?:$.)"}s=!0,w=!1;continue;default:S(),!u[e]||"^"===e&&w||(i+="\\"),i+=e}for(w&&(g=t.slice(k+1),_=this.parse(g,y),i=i.substring(0,E)+"\\["+_[0],s=s||_[1]),v=l.pop();v;v=l.pop()){let t;t=i.slice(v.reStart+v.open.length),this.debug("setting tail",i,v),t=t.replace(/((?:\\{2}){0,64})(\\?)\|/g,((t,e,r)=>(r||(r="\\"),e+e+r+"|"))),this.debug("tail=%j\n %s",t,t,v,i);const e="*"===v.type?h:"?"===v.type?c:"\\"+v.type;s=!0,i=i.slice(0,v.reStart)+e+"\\("+t}S(),o&&(i+="\\\\");const j=p[i.charAt(0)];for(let t=f.length-1;t>-1;t--){const r=f[t],s=i.slice(0,r.reStart),n=i.slice(r.reStart,r.reEnd-8);let o=i.slice(r.reEnd);const a=i.slice(r.reEnd-8,r.reEnd)+o,c=s.split(")").length,h=s.split("(").length-c;let l=o;for(let t=0;t<h;t++)l=l.replace(/\)[+*?]?/,"");o=l;i=s+n+o+(""===o&&e!==y?"(?:$|\\/)":"")+a}if(""!==i&&s&&(i="(?=.)"+i),j&&(i=(O?"":A?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)")+i),e===y)return[i,s];if(r.nocase&&!s&&(s=t.toUpperCase()!==t.toLowerCase()),!s)return(t=>t.replace(/\\(.)/g,"$1"))(t);const I=r.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",I),{_glob:t,_src:i})}catch(t){return new RegExp("$.")}}makeRe(){if(this.regexp||!1===this.regexp)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const e=this.options,r=e.noglobstar?h:e.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=e.nocase?"i":"";let s=t.map((t=>(t=t.map((t=>"string"==typeof t?t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):t===n?n:t._src)).reduce(((t,e)=>(t[t.length-1]===n&&e===n||t.push(e),t)),[]),t.forEach(((e,i)=>{e===n&&t[i-1]!==n&&(0===i?t.length>1?t[i+1]="(?:\\/|"+r+"\\/)?"+t[i+1]:t[i]=r:i===t.length-1?t[i-1]+="(?:\\/|"+r+")?":(t[i-1]+="(?:\\/|\\/"+r+"\\/)"+t[i+1],t[i+1]=n))})),t.filter((t=>t!==n)).join("/")))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch(t){this.regexp=!1}return this.regexp}match(t,e=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return""===t;if("/"===t&&e)return!0;const r=this.options;"/"!==s.sep&&(t=t.split(s.sep).join("/")),t=t.split(f),this.debug(this.pattern,"split",t);const i=this.set;let n;this.debug(this.pattern,"set",i);for(let e=t.length-1;e>=0&&(n=t[e],!n);e--);for(let s=0;s<i.length;s++){const o=i[s];let a=t;r.matchBase&&1===o.length&&(a=[n]);if(this.matchOne(a,o,e))return!!r.flipNegate||!this.negate}return!r.flipNegate&&this.negate}static defaults(t){return i.defaults(t).Minimatch}}i.Minimatch=v},282:(t,e,r)=>{var i=r(623);t.exports=function(t){if(!t)return[];"{}"===t.substr(0,2)&&(t="\\{\\}"+t.substr(2));return m(function(t){return t.split("\\\\").join(s).split("\\{").join(n).split("\\}").join(o).split("\\,").join(a).split("\\.").join(c)}(t),!0).map(l)};var s="\0SLASH"+Math.random()+"\0",n="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",a="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function h(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function l(t){return t.split(s).join("\\").split(n).join("{").split(o).join("}").split(a).join(",").split(c).join(".")}function u(t){if(!t)return[""];var e=[],r=i("{","}",t);if(!r)return t.split(",");var s=r.pre,n=r.body,o=r.post,a=s.split(",");a[a.length-1]+="{"+n+"}";var c=u(o);return o.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}function p(t){return"{"+t+"}"}function f(t){return/^-?0\d/.test(t)}function d(t,e){return t<=e}function g(t,e){return t>=e}function m(t,e){var r=[],s=i("{","}",t);if(!s)return[t];var n=s.pre,a=s.post.length?m(s.post,!1):[""];if(/\$$/.test(s.pre))for(var c=0;c<a.length;c++){var l=n+"{"+s.body+"}"+a[c];r.push(l)}else{var y,b,v=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),_=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),w=v||_,E=s.body.indexOf(",")>=0;if(!w&&!E)return s.post.match(/,.*\}/)?m(t=s.pre+"{"+s.body+o+s.post):[t];if(w)y=s.body.split(/\.\./);else if(1===(y=u(s.body)).length&&1===(y=m(y[0],!1).map(p)).length)return a.map((function(t){return s.pre+y[0]+t}));if(w){var k=h(y[0]),O=h(y[1]),A=Math.max(y[0].length,y[1].length),x=3==y.length?Math.abs(h(y[2])):1,S=d;O<k&&(x*=-1,S=g);var j=y.some(f);b=[];for(var I=k;S(I,O);I+=x){var N;if(_)"\\"===(N=String.fromCharCode(I))&&(N="");else if(N=String(I),j){var R=A-N.length;if(R>0){var L=new Array(R+1).join("0");N=I<0?"-"+L+N.slice(1):L+N}}b.push(N)}}else{b=[];for(var T=0;T<y.length;T++)b.push.apply(b,m(y[T],!1))}for(T=0;T<b.length;T++)for(c=0;c<a.length;c++){l=n+b[T]+a[c];(!e||w||l)&&r.push(l)}}return r}},778:(t,e,r)=>{var i=r(479);function s(t){var e=function(){return e.called?e.value:(e.called=!0,e.value=t.apply(this,arguments))};return e.called=!1,e}function n(t){var e=function(){if(e.called)throw new Error(e.onceError);return e.called=!0,e.value=t.apply(this,arguments)},r=t.name||"Function wrapped with `once`";return e.onceError=r+" shouldn't be called more than once",e.called=!1,e}t.exports=i(s),t.exports.strict=i(n),s.proto=s((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return s(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return n(this)},configurable:!0})}))},479:t=>{t.exports=function t(e,r){if(e&&r)return t(e)(r);if("function"!=typeof e)throw new TypeError("need wrapper function");return Object.keys(e).forEach((function(t){i[t]=e[t]})),i;function i(){for(var t=new Array(arguments.length),r=0;r<t.length;r++)t[r]=arguments[r];var i=e.apply(this,t),s=t[t.length-1];return"function"==typeof i&&i!==s&&Object.keys(s).forEach((function(t){i[t]=s[t]})),i}}},609:(t,e,r)=>{t.exports=r(884)},491:t=>{"use strict";t.exports=require("assert")},361:t=>{"use strict";t.exports=require("events")},147:t=>{"use strict";t.exports=require("fs")},17:t=>{"use strict";t.exports=require("path")},837:t=>{"use strict";t.exports=require("util")}},e={};var r=function r(i){var s=e[i];if(void 0!==s)return s.exports;var n=e[i]={exports:{}};return t[i](n,n.exports,r),n.exports}(609),i=exports;for(var s in r)i[s]=r[s];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})();