UNPKG

79.9 kBJavaScriptView Raw
1"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var crypto=_interopDefault(require("crypto")),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function encode(t){for(var e=0,r=0,n=0,i=0,o="",s=0;s<t.length;s++){var a=t[s];if(s>0&&(o+=";"),0!==a.length){for(var u=0,c=[],l=0,p=a;l<p.length;l++){var f=p[l],h=encodeInteger(f[0]-u);u=f[0],f.length>1&&(h+=encodeInteger(f[1]-e)+encodeInteger(f[2]-r)+encodeInteger(f[3]-n),e=f[1],r=f[2],n=f[3]),5===f.length&&(h+=encodeInteger(f[4]-i),i=f[4]),c.push(h)}o+=c.join(",")}}return o}function encodeInteger(t){var e="";t=t<0?-t<<1|1:t<<1;do{var r=31&t;(t>>=5)>0&&(r|=32),e+=chars[r]}while(t>0);return e}var Chunk=function(t,e,r){this.start=t,this.end=e,this.original=r,this.intro="",this.outro="",this.content=r,this.storeName=!1,this.edited=!1,Object.defineProperties(this,{previous:{writable:!0,value:null},next:{writable:!0,value:null}})};Chunk.prototype.appendLeft=function(t){this.outro+=t},Chunk.prototype.appendRight=function(t){this.intro=this.intro+t},Chunk.prototype.clone=function(){var t=new Chunk(this.start,this.end,this.original);return t.intro=this.intro,t.outro=this.outro,t.content=this.content,t.storeName=this.storeName,t.edited=this.edited,t},Chunk.prototype.contains=function(t){return this.start<t&&t<this.end},Chunk.prototype.eachNext=function(t){for(var e=this;e;)t(e),e=e.next},Chunk.prototype.eachPrevious=function(t){for(var e=this;e;)t(e),e=e.previous},Chunk.prototype.edit=function(t,e,r){return this.content=t,r||(this.intro="",this.outro=""),this.storeName=e,this.edited=!0,this},Chunk.prototype.prependLeft=function(t){this.outro=t+this.outro},Chunk.prototype.prependRight=function(t){this.intro=t+this.intro},Chunk.prototype.split=function(t){var e=t-this.start,r=this.original.slice(0,e),n=this.original.slice(e);this.original=r;var i=new Chunk(t,this.end,n);return i.outro=this.outro,this.outro="",this.end=t,this.edited?(i.edit("",!1),this.content=""):this.content=r,i.next=this.next,i.next&&(i.next.previous=i),i.previous=this,this.next=i,i},Chunk.prototype.toString=function(){return this.intro+this.content+this.outro},Chunk.prototype.trimEnd=function(t){if(this.outro=this.outro.replace(t,""),this.outro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&this.split(this.start+e.length).edit("",void 0,!0),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(t,""),!!this.intro.length||void 0)},Chunk.prototype.trimStart=function(t){if(this.intro=this.intro.replace(t,""),this.intro.length)return!0;var e=this.content.replace(t,"");return e.length?(e!==this.content&&(this.split(this.end-e.length),this.edit("",void 0,!0)),!0):(this.edit("",void 0,!0),this.outro=this.outro.replace(t,""),!!this.outro.length||void 0)};var btoa=function(){throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")};"undefined"!=typeof window&&"function"==typeof window.btoa?btoa=window.btoa:"function"==typeof Buffer&&(btoa=function(t){return new Buffer(t).toString("base64")});var SourceMap=function(t){this.version=3,this.file=t.file,this.sources=t.sources,this.sourcesContent=t.sourcesContent,this.names=t.names,this.mappings=encode(t.mappings)};function guessIndent(t){var e=t.split("\n"),r=e.filter(function(t){return/^\t+/.test(t)}),n=e.filter(function(t){return/^ {2,}/.test(t)});if(0===r.length&&0===n.length)return null;if(r.length>=n.length)return"\t";var i=n.reduce(function(t,e){var r=/^ +/.exec(e)[0].length;return Math.min(r,t)},1/0);return new Array(i+1).join(" ")}function getRelativePath(t,e){var r=t.split(/[\/\\]/),n=e.split(/[\/\\]/);for(r.pop();r[0]===n[0];)r.shift(),n.shift();if(r.length)for(var i=r.length;i--;)r[i]="..";return r.concat(n).join("/")}SourceMap.prototype.toString=function(){return JSON.stringify(this)},SourceMap.prototype.toUrl=function(){return"data:application/json;charset=utf-8;base64,"+btoa(this.toString())};var toString=Object.prototype.toString;function isObject(t){return"[object Object]"===toString.call(t)}function getLocator(t){for(var e=t.split("\n"),r=[],n=0,i=0;n<e.length;n++)r.push(i),i+=e[n].length+1;return function(t){for(var e=0,n=r.length;e<n;){var i=e+n>>1;t<r[i]?n=i:e=i+1}var o=e-1;return{line:o,column:t-r[o]}}}var Mappings=function(t){this.hires=t,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null};Mappings.prototype.addEdit=function(t,e,r,n){if(e.length){var i=[this.generatedCodeColumn,t,r.line,r.column];n>=0&&i.push(n),this.rawSegments.push(i)}else this.pending&&this.rawSegments.push(this.pending);this.advance(e),this.pending=null},Mappings.prototype.addUneditedChunk=function(t,e,r,n,i){for(var o=e.start,s=!0;o<e.end;)(this.hires||s||i[o])&&this.rawSegments.push([this.generatedCodeColumn,t,n.line,n.column]),"\n"===r[o]?(n.line+=1,n.column=0,this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0):(n.column+=1,this.generatedCodeColumn+=1),o+=1,s=!1;this.pending=[this.generatedCodeColumn,t,n.line,n.column]},Mappings.prototype.advance=function(t){if(t){var e=t.split("\n");if(e.length>1){for(var r=0;r<e.length-1;r++)this.generatedCodeLine++,this.raw[this.generatedCodeLine]=this.rawSegments=[];this.generatedCodeColumn=0}this.generatedCodeColumn+=e[e.length-1].length}};var n="\n",warned={insertLeft:!1,insertRight:!1,storeName:!1},MagicString=function(t,e){void 0===e&&(e={});var r=new Chunk(0,t.length,t);Object.defineProperties(this,{original:{writable:!0,value:t},outro:{writable:!0,value:""},intro:{writable:!0,value:""},firstChunk:{writable:!0,value:r},lastChunk:{writable:!0,value:r},lastSearchedChunk:{writable:!0,value:r},byStart:{writable:!0,value:{}},byEnd:{writable:!0,value:{}},filename:{writable:!0,value:e.filename},indentExclusionRanges:{writable:!0,value:e.indentExclusionRanges},sourcemapLocations:{writable:!0,value:{}},storedNames:{writable:!0,value:{}},indentStr:{writable:!0,value:guessIndent(t)}}),this.byStart[0]=r,this.byEnd[t.length]=r};MagicString.prototype.addSourcemapLocation=function(t){this.sourcemapLocations[t]=!0},MagicString.prototype.append=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.outro+=t,this},MagicString.prototype.appendLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var r=this.byEnd[t];return r?r.appendLeft(e):this.intro+=e,this},MagicString.prototype.appendRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var r=this.byStart[t];return r?r.appendRight(e):this.outro+=e,this},MagicString.prototype.clone=function(){for(var t=new MagicString(this.original,{filename:this.filename}),e=this.firstChunk,r=t.firstChunk=t.lastSearchedChunk=e.clone();e;){t.byStart[r.start]=r,t.byEnd[r.end]=r;var n=e.next,i=n&&n.clone();i&&(r.next=i,i.previous=r,r=i),e=n}return t.lastChunk=r,this.indentExclusionRanges&&(t.indentExclusionRanges=this.indentExclusionRanges.slice()),Object.keys(this.sourcemapLocations).forEach(function(e){t.sourcemapLocations[e]=!0}),t},MagicString.prototype.generateDecodedMap=function(t){var e=this;t=t||{};var r=Object.keys(this.storedNames),n=new Mappings(t.hires),i=getLocator(this.original);return this.intro&&n.advance(this.intro),this.firstChunk.eachNext(function(t){var o=i(t.start);t.intro.length&&n.advance(t.intro),t.edited?n.addEdit(0,t.content,o,t.storeName?r.indexOf(t.original):-1):n.addUneditedChunk(0,t,e.original,o,e.sourcemapLocations),t.outro.length&&n.advance(t.outro)}),{file:t.file?t.file.split(/[\/\\]/).pop():null,sources:[t.source?getRelativePath(t.file||"",t.source):null],sourcesContent:t.includeContent?[this.original]:[null],names:r,mappings:n.raw}},MagicString.prototype.generateMap=function(t){return new SourceMap(this.generateDecodedMap(t))},MagicString.prototype.getIndentString=function(){return null===this.indentStr?"\t":this.indentStr},MagicString.prototype.indent=function(t,e){var r=/^[^\r\n]/gm;if(isObject(t)&&(e=t,t=void 0),""===(t=void 0!==t?t:this.indentStr||"\t"))return this;var n={};(e=e||{}).exclude&&("number"==typeof e.exclude[0]?[e.exclude]:e.exclude).forEach(function(t){for(var e=t[0];e<t[1];e+=1)n[e]=!0});var i=!1!==e.indentStart,o=function(e){return i?""+t+e:(i=!0,e)};this.intro=this.intro.replace(r,o);for(var s=0,a=this.firstChunk;a;){var u=a.end;if(a.edited)n[s]||(a.content=a.content.replace(r,o),a.content.length&&(i="\n"===a.content[a.content.length-1]));else for(s=a.start;s<u;){if(!n[s]){var c=this.original[s];"\n"===c?i=!0:"\r"!==c&&i&&(i=!1,s===a.start?a.prependRight(t):(this._splitChunk(a,s),(a=a.next).prependRight(t)))}s+=1}s=a.end,a=a.next}return this.outro=this.outro.replace(r,o),this},MagicString.prototype.insert=function(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")},MagicString.prototype.insertLeft=function(t,e){return warned.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),warned.insertLeft=!0),this.appendLeft(t,e)},MagicString.prototype.insertRight=function(t,e){return warned.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),warned.insertRight=!0),this.prependRight(t,e)},MagicString.prototype.move=function(t,e,r){if(r>=t&&r<=e)throw new Error("Cannot move a selection inside itself");this._split(t),this._split(e),this._split(r);var n=this.byStart[t],i=this.byEnd[e],o=n.previous,s=i.next,a=this.byStart[r];if(!a&&i===this.lastChunk)return this;var u=a?a.previous:this.lastChunk;return o&&(o.next=s),s&&(s.previous=o),u&&(u.next=n),a&&(a.previous=i),n.previous||(this.firstChunk=i.next),i.next||(this.lastChunk=n.previous,this.lastChunk.next=null),n.previous=u,i.next=a||null,u||(this.firstChunk=n),a||(this.lastChunk=i),this},MagicString.prototype.overwrite=function(t,e,r,n){if("string"!=typeof r)throw new TypeError("replacement content must be a string");for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(e>this.original.length)throw new Error("end is out of bounds");if(t===e)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(t),this._split(e),!0===n&&(warned.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),warned.storeName=!0),n={storeName:!0});var i=void 0!==n&&n.storeName,o=void 0!==n&&n.contentOnly;if(i){var s=this.original.slice(t,e);this.storedNames[s]=!0}var a=this.byStart[t],u=this.byEnd[e];if(a){if(e>a.end&&a.next!==this.byStart[a.end])throw new Error("Cannot overwrite across a split point");if(a.edit(r,i,o),a!==u){for(var c=a.next;c!==u;)c.edit("",!1),c=c.next;c.edit("",!1)}}else{var l=new Chunk(t,e,"").edit(r,i);u.next=l,l.previous=u}return this},MagicString.prototype.prepend=function(t){if("string"!=typeof t)throw new TypeError("outro content must be a string");return this.intro=t+this.intro,this},MagicString.prototype.prependLeft=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var r=this.byEnd[t];return r?r.prependLeft(e):this.intro=e+this.intro,this},MagicString.prototype.prependRight=function(t,e){if("string"!=typeof e)throw new TypeError("inserted content must be a string");this._split(t);var r=this.byStart[t];return r?r.prependRight(e):this.outro=e+this.outro,this},MagicString.prototype.remove=function(t,e){for(;t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;if(t===e)return this;if(t<0||e>this.original.length)throw new Error("Character is out of bounds");if(t>e)throw new Error("end must be greater than start");this._split(t),this._split(e);for(var r=this.byStart[t];r;)r.intro="",r.outro="",r.edit(""),r=e>r.end?this.byStart[r.end]:null;return this},MagicString.prototype.lastChar=function(){if(this.outro.length)return this.outro[this.outro.length-1];var t=this.lastChunk;do{if(t.outro.length)return t.outro[t.outro.length-1];if(t.content.length)return t.content[t.content.length-1];if(t.intro.length)return t.intro[t.intro.length-1]}while(t=t.previous);return this.intro.length?this.intro[this.intro.length-1]:""},MagicString.prototype.lastLine=function(){var t=this.outro.lastIndexOf(n);if(-1!==t)return this.outro.substr(t+1);var e=this.outro,r=this.lastChunk;do{if(r.outro.length>0){if(-1!==(t=r.outro.lastIndexOf(n)))return r.outro.substr(t+1)+e;e=r.outro+e}if(r.content.length>0){if(-1!==(t=r.content.lastIndexOf(n)))return r.content.substr(t+1)+e;e=r.content+e}if(r.intro.length>0){if(-1!==(t=r.intro.lastIndexOf(n)))return r.intro.substr(t+1)+e;e=r.intro+e}}while(r=r.previous);return-1!==(t=this.intro.lastIndexOf(n))?this.intro.substr(t+1)+e:this.intro+e},MagicString.prototype.slice=function(t,e){for(void 0===t&&(t=0),void 0===e&&(e=this.original.length);t<0;)t+=this.original.length;for(;e<0;)e+=this.original.length;for(var r="",n=this.firstChunk;n&&(n.start>t||n.end<=t);){if(n.start<e&&n.end>=e)return r;n=n.next}if(n&&n.edited&&n.start!==t)throw new Error("Cannot use replaced character "+t+" as slice start anchor.");for(var i=n;n;){!n.intro||i===n&&n.start!==t||(r+=n.intro);var o=n.start<e&&n.end>=e;if(o&&n.edited&&n.end!==e)throw new Error("Cannot use replaced character "+e+" as slice end anchor.");var s=i===n?t-n.start:0,a=o?n.content.length+e-n.end:n.content.length;if(r+=n.content.slice(s,a),!n.outro||o&&n.end!==e||(r+=n.outro),o)break;n=n.next}return r},MagicString.prototype.snip=function(t,e){var r=this.clone();return r.remove(0,t),r.remove(e,r.original.length),r},MagicString.prototype._split=function(t){if(!this.byStart[t]&&!this.byEnd[t])for(var e=this.lastSearchedChunk,r=t>e.end;e;){if(e.contains(t))return this._splitChunk(e,t);e=r?this.byStart[e.end]:this.byEnd[e.start]}},MagicString.prototype._splitChunk=function(t,e){if(t.edited&&t.content.length){var r=getLocator(this.original)(e);throw new Error("Cannot split a chunk that has already been edited ("+r.line+":"+r.column+' – "'+t.original+'")')}var n=t.split(e);return this.byEnd[e]=t,this.byStart[e]=n,this.byEnd[n.end]=n,t===this.lastChunk&&(this.lastChunk=n),this.lastSearchedChunk=t,!0},MagicString.prototype.toString=function(){for(var t=this.intro,e=this.firstChunk;e;)t+=e.toString(),e=e.next;return t+this.outro},MagicString.prototype.isEmpty=function(){var t=this.firstChunk;do{if(t.intro.length&&t.intro.trim()||t.content.length&&t.content.trim()||t.outro.length&&t.outro.trim())return!1}while(t=t.next);return!0},MagicString.prototype.length=function(){var t=this.firstChunk,e=0;do{e+=t.intro.length+t.content.length+t.outro.length}while(t=t.next);return e},MagicString.prototype.trimLines=function(){return this.trim("[\\r\\n]")},MagicString.prototype.trim=function(t){return this.trimStart(t).trimEnd(t)},MagicString.prototype.trimEndAborted=function(t){var e=new RegExp((t||"\\s")+"+$");if(this.outro=this.outro.replace(e,""),this.outro.length)return!0;var r=this.lastChunk;do{var n=r.end,i=r.trimEnd(e);if(r.end!==n&&(this.lastChunk===r&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.previous}while(r);return!1},MagicString.prototype.trimEnd=function(t){return this.trimEndAborted(t),this},MagicString.prototype.trimStartAborted=function(t){var e=new RegExp("^"+(t||"\\s")+"+");if(this.intro=this.intro.replace(e,""),this.intro.length)return!0;var r=this.firstChunk;do{var n=r.end,i=r.trimStart(e);if(r.end!==n&&(r===this.lastChunk&&(this.lastChunk=r.next),this.byEnd[r.end]=r,this.byStart[r.next.start]=r.next,this.byEnd[r.next.end]=r.next),i)return!0;r=r.next}while(r);return!1},MagicString.prototype.trimStart=function(t){return this.trimStartAborted(t),this};var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e){return t(e={exports:{}},e.exports),e.exports}var isBuffer=function(t){return t instanceof Buffer},inherits_browser=createCommonjsModule(function(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),inherits=createCommonjsModule(function(t){try{var e=util;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=inherits_browser}}),util=createCommonjsModule(function(t,e){var r=/%[sdj%]/g;e.format=function(t){if(!d(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(o(arguments[n]));return e.join(" ")}n=1;for(var i=arguments,s=i.length,a=String(t).replace(r,function(t){if("%%"===t)return"%";if(n>=s)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(t){return"[Circular]"}default:return t}}),u=i[n];n<s;u=i[++n])h(u)||!b(u)?a+=" "+u:a+=" "+o(u);return a},e.deprecate=function(t,r){if(m(commonjsGlobal.process))return function(){return e.deprecate(t,r).apply(this,arguments)};if(!0===process.noDeprecation)return t;var n=!1;return function(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return t.apply(this,arguments)}};var n,i={};function o(t,r){var n={seen:[],stylize:a};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),f(r)?n.showHidden=r:r&&e._extend(n,r),m(n.showHidden)&&(n.showHidden=!1),m(n.depth)&&(n.depth=2),m(n.colors)&&(n.colors=!1),m(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),u(n,t,n.depth)}function s(t,e){var r=o.styles[e];return r?"["+o.colors[r][0]+"m"+t+"["+o.colors[r][1]+"m":t}function a(t,e){return t}function u(t,r,n){if(t.customInspect&&r&&w(r.inspect)&&r.inspect!==e.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,t);return d(i)||(i=u(t,i,n)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(d(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}if(g(e))return t.stylize(""+e,"number");if(f(e))return t.stylize(""+e,"boolean");if(h(e))return t.stylize("null","null")}(t,r);if(o)return o;var s=Object.keys(r),a=function(t){var e={};return t.forEach(function(t,r){e[t]=!0}),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(r)),_(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return c(r);if(0===s.length){if(w(r)){var b=r.name?": "+r.name:"";return t.stylize("[Function"+b+"]","special")}if(y(r))return t.stylize(RegExp.prototype.toString.call(r),"regexp");if(v(r))return t.stylize(Date.prototype.toString.call(r),"date");if(_(r))return c(r)}var C,x="",S=!1,O=["{","}"];(p(r)&&(S=!0,O=["[","]"]),w(r))&&(x=" [Function"+(r.name?": "+r.name:"")+"]");return y(r)&&(x=" "+RegExp.prototype.toString.call(r)),v(r)&&(x=" "+Date.prototype.toUTCString.call(r)),_(r)&&(x=" "+c(r)),0!==s.length||S&&0!=r.length?n<0?y(r)?t.stylize(RegExp.prototype.toString.call(r),"regexp"):t.stylize("[Object]","special"):(t.seen.push(r),C=S?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)E(e,String(s))?o.push(l(t,e,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(l(t,e,r,n,i,!0))}),o}(t,r,n,a,s):s.map(function(e){return l(t,r,n,a,e,S)}),t.seen.pop(),function(t,e,r){if(t.reduce(function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1];return r[0]+e+" "+t.join(", ")+" "+r[1]}(C,x,O)):O[0]+x+O[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,r,n,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),E(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=h(r)?u(t,c.value,null):u(t,c.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),m(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function p(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function h(t){return null===t}function g(t){return"number"==typeof t}function d(t){return"string"==typeof t}function m(t){return void 0===t}function y(t){return b(t)&&"[object RegExp]"===C(t)}function b(t){return"object"==typeof t&&null!==t}function v(t){return b(t)&&"[object Date]"===C(t)}function _(t){return b(t)&&("[object Error]"===C(t)||t instanceof Error)}function w(t){return"function"==typeof t}function C(t){return Object.prototype.toString.call(t)}function x(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(n)&&(n=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(n)){var r=process.pid;i[t]=function(){var n=e.format.apply(e,arguments);console.error("%s %d: %s",t,r,n)}}else i[t]=function(){};return i[t]},e.inspect=o,o.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=p,e.isBoolean=f,e.isNull=h,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=d,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=y,e.isObject=b,e.isDate=v,e.isError=_,e.isFunction=w,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=isBuffer;var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){var t,r;console.log("%s - %s",(t=new Date,r=[x(t.getHours()),x(t.getMinutes()),x(t.getSeconds())].join(":"),[t.getDate(),S[t.getMonth()],r].join(" ")),e.format.apply(e,arguments))},e.inherits=inherits,e._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}),util_1=util.format,util_2=util.deprecate,util_3=util.debuglog,util_4=util.inspect,util_5=util.isArray,util_6=util.isBoolean,util_7=util.isNull,util_8=util.isNullOrUndefined,util_9=util.isNumber,util_10=util.isString,util_11=util.isSymbol,util_12=util.isUndefined,util_13=util.isRegExp,util_14=util.isObject,util_15=util.isDate,util_16=util.isError,util_17=util.isFunction,util_18=util.isPrimitive,util_19=util.isBuffer,util_20=util.log,util_21=util.inherits,util_22=util._extend,path=createCommonjsModule(function(t){var e="win32"===process.platform;function r(t,e){for(var r=[],n=0;n<t.length;n++){var i=t[n];i&&"."!==i&&(".."===i?r.length&&".."!==r[r.length-1]?r.pop():e&&r.push(".."):r.push(i))}return r}function n(t){for(var e=t.length-1,r=0;r<=e&&!t[r];r++);for(var n=e;n>=0&&!t[n];n--);return 0===r&&n===e?t:r>n?[]:t.slice(r,n+1)}var i=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=/^([\s\S]*?)((?:\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))(?:[\\\/]*)$/,s={};function a(t){var e=i.exec(t),r=(e[1]||"")+(e[2]||""),n=e[3]||"",s=o.exec(n);return[r,s[1],s[2],s[3]]}function u(t){var e=i.exec(t),r=e[1]||"",n=!!r&&":"!==r[1];return{device:r,isUnc:n,isAbsolute:n||!!e[2],tail:e[3]}}function c(t){return"\\\\"+t.replace(/^[\\\/]+/,"").replace(/[\\\/]+/g,"\\")}s.resolve=function(){for(var t="",e="",n=!1,i=arguments.length-1;i>=-1;i--){var o;if(i>=0?o=arguments[i]:t?(o=process.env["="+t])&&o.substr(0,3).toLowerCase()===t.toLowerCase()+"\\"||(o=t+"\\"):o=process.cwd(),!util.isString(o))throw new TypeError("Arguments to path.resolve must be strings");if(o){var s=u(o),a=s.device,l=s.isUnc,p=s.isAbsolute,f=s.tail;if((!a||!t||a.toLowerCase()===t.toLowerCase())&&(t||(t=a),n||(e=f+"\\"+e,n=p),t&&n))break}}return l&&(t=c(t)),t+(n?"\\":"")+(e=r(e.split(/[\\\/]+/),!n).join("\\"))||"."},s.normalize=function(t){var e=u(t),n=e.device,i=e.isUnc,o=e.isAbsolute,s=e.tail,a=/[\\\/]$/.test(s);return(s=r(s.split(/[\\\/]+/),!o).join("\\"))||o||(s="."),s&&a&&(s+="\\"),i&&(n=c(n)),n+(o?"\\":"")+s},s.isAbsolute=function(t){return u(t).isAbsolute},s.join=function(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(!util.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&t.push(r)}var n=t.join("\\");return/^[\\\/]{2}[^\\\/]/.test(t[0])||(n=n.replace(/^[\\\/]{2,}/,"\\")),s.normalize(n)},s.relative=function(t,e){t=s.resolve(t),e=s.resolve(e);for(var r=t.toLowerCase(),i=e.toLowerCase(),o=n(e.split("\\")),a=n(r.split("\\")),u=n(i.split("\\")),c=Math.min(a.length,u.length),l=c,p=0;p<c;p++)if(a[p]!==u[p]){l=p;break}if(0==l)return e;var f=[];for(p=l;p<a.length;p++)f.push("..");return(f=f.concat(o.slice(l))).join("\\")},s._makeLong=function(t){if(!util.isString(t))return t;if(!t)return"";var e=s.resolve(t);return/^[a-zA-Z]\:\\/.test(e)?"\\\\?\\"+e:/^\\\\[^?.]/.test(e)?"\\\\?\\UNC\\"+e.substring(2):t},s.dirname=function(t){var e=a(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},s.basename=function(t,e){var r=a(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},s.extname=function(t){return a(t)[3]},s.format=function(t){if(!util.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!util.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);var r=t.dir,n=t.base||"";return r?r[r.length-1]===s.sep?r+n:r+s.sep+n:n},s.parse=function(t){if(!util.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=a(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},s.sep="\\",s.delimiter=";";var l=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,p={};function f(t){return l.exec(t).slice(1)}p.resolve=function(){for(var t="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var i=n>=0?arguments[n]:process.cwd();if(!util.isString(i))throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,e="/"===i[0])}return(e?"/":"")+(t=r(t.split("/"),!e).join("/"))||"."},p.normalize=function(t){var e=p.isAbsolute(t),n=t&&"/"===t[t.length-1];return(t=r(t.split("/"),!e).join("/"))||e||(t="."),t&&n&&(t+="/"),(e?"/":"")+t},p.isAbsolute=function(t){return"/"===t.charAt(0)},p.join=function(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];if(!util.isString(r))throw new TypeError("Arguments to path.join must be strings");r&&(t+=t?"/"+r:r)}return p.normalize(t)},p.relative=function(t,e){t=p.resolve(t).substr(1),e=p.resolve(e).substr(1);for(var r=n(t.split("/")),i=n(e.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a<o;a++)if(r[a]!==i[a]){s=a;break}var u=[];for(a=s;a<r.length;a++)u.push("..");return(u=u.concat(i.slice(s))).join("/")},p._makeLong=function(t){return t},p.dirname=function(t){var e=f(t),r=e[0],n=e[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},p.basename=function(t,e){var r=f(t)[2];return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},p.extname=function(t){return f(t)[3]},p.format=function(t){if(!util.isObject(t))throw new TypeError("Parameter 'pathObject' must be an object, not "+typeof t);var e=t.root||"";if(!util.isString(e))throw new TypeError("'pathObject.root' must be a string or undefined, not "+typeof t.root);return(t.dir?t.dir+p.sep:"")+(t.base||"")},p.parse=function(t){if(!util.isString(t))throw new TypeError("Parameter 'pathString' must be a string, not "+typeof t);var e=f(t);if(!e||4!==e.length)throw new TypeError("Invalid path '"+t+"'");return e[1]=e[1]||"",e[2]=e[2]||"",e[3]=e[3]||"",{root:e[0],dir:e[0]+e[1].slice(0,-1),base:e[2],ext:e[3],name:e[2].slice(0,e[2].length-e[3].length)}},p.sep="/",p.delimiter=":",t.exports=e?s:p,t.exports.posix=p,t.exports.win32=s}),path_1=path.extname,path_2=path.resolve,path_3=path.sep,path_4=path.posix,path_5=path.win32,filenameRegex=function(){return/([^\\\/]+)$/},arrFlatten=function(t){return flat(t,[])};function flat(t,e){for(var r,n=0,i=t.length;n<i;n++)r=t[n],Array.isArray(r)?flat(r,e):e.push(r);return e}var slice=[].slice;function diff(t,e){var r=arguments.length,n=t.length,i=-1,o=[];if(1===r)return t;for(r>2&&(e=arrFlatten(slice.call(arguments,1)));++i<n;)~e.indexOf(t[i])||o.push(t[i]);return o}var arrDiff=diff,arrayUnique=function(t){if(!Array.isArray(t))throw new TypeError("array-unique expects an array.");for(var e=t.length,r=-1;r++<e;)for(var n=r+1;n<t.length;++n)t[r]===t[n]&&t.splice(n--,1);return t},toString$1={}.toString,isarray=Array.isArray||function(t){return"[object Array]"==toString$1.call(t)},isobject=function(t){return null!=t&&"object"==typeof t&&!1===isarray(t)},isBuffer_1=function(t){return null!=t&&(isBuffer$1(t)||isSlowBuffer(t)||!!t._isBuffer)};function isBuffer$1(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function isSlowBuffer(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&isBuffer$1(t.slice(0,0))}var toString$2=Object.prototype.toString,kindOf=function(t){if(void 0===t)return"undefined";if(null===t)return"null";if(!0===t||!1===t||t instanceof Boolean)return"boolean";if("string"==typeof t||t instanceof String)return"string";if("number"==typeof t||t instanceof Number)return"number";if("function"==typeof t||t instanceof Function)return"function";if(void 0!==Array.isArray&&Array.isArray(t))return"array";if(t instanceof RegExp)return"regexp";if(t instanceof Date)return"date";var e=toString$2.call(t);return"[object RegExp]"===e?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":isBuffer_1(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},isNumber=function(t){var e=kindOf(t);if("number"!==e&&"string"!==e)return!1;var r=+t;return r-r+1>=0&&""!==t},isNumber$1=function(t){var e=typeof t;if("string"===e||t instanceof String){if(!t.trim())return!1}else if("number"!==e&&!(t instanceof Number))return!1;return t-t+1>=0},toString$3=Object.prototype.toString,kindOf$1=function(t){if(void 0===t)return"undefined";if(null===t)return"null";var e=typeof t;if("boolean"===e)return"boolean";if("string"===e)return"string";if("number"===e)return"number";if("symbol"===e)return"symbol";if("function"===e)return isGeneratorFn(t)?"generatorfunction":"function";if(isArray(t))return"array";if(isBuffer$2(t))return"buffer";if(isArguments(t))return"arguments";if(isDate(t))return"date";if(isError(t))return"error";if(isRegexp(t))return"regexp";switch(ctorName(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(t))return"generator";switch(e=toString$3.call(t)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return e.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(t){return t.constructor?t.constructor.name:null}function isArray(t){return Array.isArray?Array.isArray(t):t instanceof Array}function isError(t){return t instanceof Error||"string"==typeof t.message&&t.constructor&&"number"==typeof t.constructor.stackTraceLimit}function isDate(t){return t instanceof Date||"function"==typeof t.toDateString&&"function"==typeof t.getDate&&"function"==typeof t.setDate}function isRegexp(t){return t instanceof RegExp||"string"==typeof t.flags&&"boolean"==typeof t.ignoreCase&&"boolean"==typeof t.multiline&&"boolean"==typeof t.global}function isGeneratorFn(t,e){return"GeneratorFunction"===ctorName(t)}function isGeneratorObj(t){return"function"==typeof t.throw&&"function"==typeof t.return&&"function"==typeof t.next}function isArguments(t){try{if("number"==typeof t.length&&"function"==typeof t.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}function isBuffer$2(t){return!(!t.constructor||"function"!=typeof t.constructor.isBuffer)&&t.constructor.isBuffer(t)}var max=Math.pow(2,32),node=random,cryptographic=!0;function random(){return crypto.randomBytes(4).readUInt32BE(0)/max}node.cryptographic=cryptographic;var randomatic_1=randomatic,isCrypto=!!node.cryptographic,type={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};function randomatic(t,e,r){if(void 0===t)throw new Error("randomatic expects a string or number.");var n=!1;1===arguments.length&&("string"==typeof t?e=t.length:isNumber$1(t)&&(r={},e=t,t="*")),"object"===kindOf$1(e)&&e.hasOwnProperty("chars")&&(e=(t=(r=e).chars).length,n=!0);var i=r||{},o="",s="";if(-1!==t.indexOf("?")&&(o+=i.chars),-1!==t.indexOf("a")&&(o+=type.lower),-1!==t.indexOf("A")&&(o+=type.upper),-1!==t.indexOf("0")&&(o+=type.number),-1!==t.indexOf("!")&&(o+=type.special),-1!==t.indexOf("*")&&(o+=type.all),n&&(o+=t),i.exclude){var a="string"===kindOf$1(i.exclude)?i.exclude:i.exclude.join("");a=a.replace(new RegExp("[\\]]+","g"),""),o=o.replace(new RegExp("["+a+"]+","g"),""),-1!==i.exclude.indexOf("]")&&(o=o.replace(new RegExp("[\\]]+","g"),""))}for(;e--;)s+=o.charAt(parseInt(node()*o.length,10));return s}type.all=type.lower+type.upper+type.number+type.special,randomatic_1.isCrypto=isCrypto;var cache,res="",repeatString=repeat;function repeat(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(cache!==t||void 0===cache)cache=t,res="";else if(res.length>=r)return res.substr(0,r);for(;r>res.length&&e>1;)1&e&&(res+=t),e>>=1,t+=t;return res=(res+=t).substr(0,r)}var repeatElement=function(t,e){for(var r=new Array(e),n=0;n<e;n++)r[n]=t;return r},fillRange_1=fillRange;function fillRange(t,e,r,n,i){if(null==t||null==e)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof r&&(i=r,n={},r=null),"function"==typeof n&&(i=n,n={}),isobject(r)&&(n=r,r="");var o,s=!1,a="",u=n||{};void 0===u.silent&&(u.silent=!0),r=r||u.step;var c=t,l=e;if(e="-0"===e.toString()?0:e,(u.optimize||u.makeRe)&&(r=r?r+="~":r,o=!0,s=!0,a="~"),"string"==typeof r){var p=stepRe().exec(r);if(p){var f=p.index,h=p[0];if("+"===h)return repeatElement(t,e);if("?"===h)return[randomatic_1(t,e)];">"===h?(r=r.substr(0,f)+r.substr(f+1),o=!0):"|"===h?(r=r.substr(0,f)+r.substr(f+1),o=!0,s=!0,a=h):"~"===h&&(r=r.substr(0,f)+r.substr(f+1),o=!0,s=!0,a=h)}else if(!isNumber(r)){if(!u.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(t)||/[.&*()[\]^%$#@!]/.test(e)){if(!u.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!noAlphaNum(t)||!noAlphaNum(e)||hasBoth(t)||hasBoth(e)){if(!u.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var g=isNumber(zeros(t)),d=isNumber(zeros(e));if(!g&&d||g&&!d){if(!u.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var m=g,y=formatStep(r);m?(t=+t,e=+e):(t=t.charCodeAt(0),e=e.charCodeAt(0));var b=t>e;(t<0||e<0)&&(o=!1,s=!1);var v,_,w=isPadded(c,l),C=[],x=0;if(s&&shouldExpand(t,e,y,m,w,u))return"|"!==a&&"~"!==a||(a=detectSeparator(t,e,y,m,b)),wrap([c,l],a,u);for(;b?t>=e:t<=e;)w&&m&&(_=w(t)),null!==(v="function"==typeof i?i(t,m,_,x++):m?formatPadding(t,_):s&&isInvalidChar(t)?null:String.fromCharCode(t))&&C.push(v),b?t-=y:t+=y;return!s&&!o||u.noexpand?C:("|"!==a&&"~"!==a||(a=detectSeparator(t,e,y,m,b)),1===C.length||t<0||e<0?C:wrap(C,a,u))}function wrap(t,e,r){"~"===e&&(e="-");var n=t.join(e),i=r&&r.regexPrefix;return"|"===e&&(n="("+(n=i?i+n:n)+")"),"-"===e&&(n="["+(n=i&&"^"===i?i+n:n)+"]"),[n]}function isCharClass(t,e,r,n,i){return!i&&(n?t<=9&&e<=9:t<e&&1===r)}function shouldExpand(t,e,r,n,i,o){return(!n||!(t>9||e>9))&&(!i&&1===r&&t<e)}function detectSeparator(t,e,r,n,i){return isCharClass(t,e,r,n,i)?"~":"|"}function formatStep(t){return Math.abs(t>>0)||1}function formatPadding(t,e){var r=e?e+t:t;return e&&"-"===t.toString().charAt(0)&&(r="-"+e+t.toString().substr(1)),r.toString()}function isInvalidChar(t){var e=toStr(t);return"\\"===e||"["===e||"]"===e||"^"===e||"("===e||")"===e||"`"===e}function toStr(t){return String.fromCharCode(t)}function stepRe(){return/\?|>|\||\+|\~/g}function noAlphaNum(t){return/[a-z0-9]/i.test(t)}function hasBoth(t){return/[a-z][0-9]|[0-9][a-z]/i.test(t)}function zeros(t){return/^-*0+$/.test(t.toString())?"0":t}function hasZeros(t){return/[^.]\.|^-*0+[0-9]/.test(t)}function isPadded(t,e){if(hasZeros(t)||hasZeros(e)){var r=length(t),n=length(e),i=r>=n?r:n;return function(t){return repeatString("0",i-length(t))}}return!1}function length(t){return t.toString().length}var expandRange=function(t,e,r){if("string"!=typeof t)throw new TypeError("expand-range expects a string.");"function"==typeof e&&(r=e,e={}),"boolean"==typeof e&&((e={}).makeRe=!0);var n=e||{},i=t.split(".."),o=i.length;return o>3?t:1===o?i:("boolean"==typeof r&&!0===r&&(n.makeRe=!0),i.push(n),fillRange_1.apply(null,i.concat(r)))},before=function(t,e){return t.replace(e,function(t){var e=randomize();return cache$1[e]=t,"__ID"+e+"__"})},after=function(t){return t.replace(/__ID(.{5})__/g,function(t,e){return cache$1[e]})};function randomize(){return Math.random().toString().slice(2,7)}var braceRe,patternRe,cache$1={},preserve={before:before,after:after},braces_1=function(t,e){if("string"!=typeof t)throw new Error("braces expects a string");return braces(t,e)};function braces(t,e,r){if(""===t)return[];Array.isArray(e)||(r=e,e=[]);var n=r||{};e=e||[],void 0===n.nodupes&&(n.nodupes=!0);var i,o=n.fn;switch("function"==typeof n&&(o=n,n={}),patternRe instanceof RegExp||(patternRe=patternRegex()),(t.match(patternRe)||[])[0]){case"\\,":return escapeCommas(t,e,n);case"\\.":return escapeDots(t,e,n);case"/.":return escapePaths(t,e,n);case" ":return splitWhitespace(t);case"{,}":return exponential(t,n,braces);case"{}":return emptyBraces(t,e,n);case"\\{":case"\\}":return escapeBraces(t,e,n);case"${":if(!/\{[^{]+\{/.test(t))return e.concat(t);i=!0,t=preserve.before(t,es6Regex())}braceRe instanceof RegExp||(braceRe=braceRegex());var s=braceRe.exec(t);if(null==s)return[t];var a,u,c=s[1],l=s[2];if(""===l)return[t];if(-1!==l.indexOf(".."))u=(a=expandRange(l,n,o)||l.split(",")).length;else{if('"'===l[0]||"'"===l[0])return e.concat(t.split(/['"]/).join(""));if(a=l.split(","),n.makeRe)return braces(t.replace(c,wrap$1(a,"|")),n);1===(u=a.length)&&n.bash&&(a[0]=wrap$1(a[0],"\\"))}for(var p,f=a.length,h=0;f--;){var g=a[h++];if(/(\.[^.\/])/.test(g))return u>1?a:[t];if(p=splice(t,c,g),/\{[^{}]+?\}/.test(p))e=braces(p,e,n);else if(""!==p){if(n.nodupes&&-1!==e.indexOf(p))continue;e.push(i?preserve.after(p):p)}}return n.strict?filter(e,filterEmpty):e}function exponential(t,e,r){"function"==typeof e&&(r=e,e=null);var n,i,o=e||{},s="__ESC_EXP__",a=t.split("{,}");if(o.nodupes)return r(a.join(""),o);n=a.length-1;for(var u=(i=r(a.join(s),o)).length,c=[],l=0;u--;){var p=i[l++];if(-1===p.indexOf(s))c.push(p);else if((p=p.split("__ESC_EXP__").join(""))&&!1!==o.nodupes)c.push(p);else{var f=Math.pow(2,n);c.push.apply(c,repeatElement(p,f))}}return c}function wrap$1(t,e){return"|"===e?"("+t.join(e)+")":","===e?"{"+t.join(e)+"}":"-"===e?"["+t.join(e)+"]":"\\"===e?"\\{"+t+"\\}":void 0}function emptyBraces(t,e,r){return braces(t.split("{}").join("\\{\\}"),e,r)}function filterEmpty(t){return!!t&&"\\"!==t}function splitWhitespace(t){for(var e=t.split(" "),r=e.length,n=[],i=0;r--;)n.push.apply(n,braces(e[i++]));return n}function escapeBraces(t,e,r){return/\{[^{]+\{/.test(t)?map(braces(t=(t=t.split("\\{").join("__LT_BRACE__")).split("\\}").join("__RT_BRACE__"),e,r),function(t){return(t=t.split("__LT_BRACE__").join("{")).split("__RT_BRACE__").join("}")}):e.concat(t.split("\\").join(""))}function escapeDots(t,e,r){return/[^\\]\..+\\\./.test(t)?map(braces(t=t.split("\\.").join("__ESC_DOT__"),e,r),function(t){return t.split("__ESC_DOT__").join(".")}):e.concat(t.split("\\").join(""))}function escapePaths(t,e,r){return map(braces(t=t.split("/.").join("__ESC_PATH__"),e,r),function(t){return t.split("__ESC_PATH__").join("/.")})}function escapeCommas(t,e,r){return/\w,/.test(t)?map(braces(t=t.split("\\,").join("__ESC_COMMA__"),e,r),function(t){return t.split("__ESC_COMMA__").join(",")}):e.concat(t.split("\\").join(""))}function patternRegex(){return/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function braceRegex(){return/.*(\\?\{([^}]+)\})/}function es6Regex(){return/\$\{([^}]+)\}/}function splice(t,e,r){var n=t.indexOf(e);return t.substr(0,n)+r+t.substr(n+e.length)}function map(t,e){if(null==t)return[];for(var r=t.length,n=new Array(r),i=-1;++i<r;)n[i]=e(t[i],i,t);return n}function filter(t,e){if(null==t)return[];if("function"!=typeof e)throw new TypeError("braces: filter expects a callback function.");for(var r=t.length,n=t.slice(),i=0;r--;)e(t[r],i++)||n.splice(r,1);return n}var isPosixBracket=function(t){return"string"==typeof t&&/\[([:.=+])(?:[^\[\]]|)+\1\]/.test(t)},POSIX={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},expandBrackets=brackets;function brackets(t){if(!isPosixBracket(t))return t;var e=!1;-1!==t.indexOf("[^")&&(e=!0,t=t.split("[^").join("[")),-1!==t.indexOf("[!")&&(e=!0,t=t.split("[!").join("["));for(var r=t.split("["),n=t.split("]"),i=r.length!==n.length,o=t.split(/(?::\]\[:|\[?\[:|:\]\]?)/),s=o.length,a=0,u="",c="",l=[];s--;){var p=o[a++];"^[!"!==p&&"[!"!==p||(p="",e=!0);var f=e?"^":"",h=POSIX[p];h?l.push("["+f+h+"]"):p&&(/^\[?\w-\w\]?$/.test(p)?a===o.length?l.push("["+f+p):1===a?l.push(f+p+"]"):l.push(f+p):1===a?c+=p:a===o.length?u+=p:l.push("["+f+p+"]"))}var g=l.join("|"),d=l.length||1;return d>1&&(g="(?:"+g+")",d=1),c&&(d++,"["===c.charAt(0)&&(i?c="\\["+c.slice(1):c+="]"),g=c+g),u&&(d++,"]"===u.slice(-1)&&(u=i?u.slice(0,u.length-1)+"\\]":"["+u),g+=u),d>1&&(-1===(g=g.split("][").join("]|[")).indexOf("|")||/\(\?/.test(g)||(g="(?:"+g+")")),g=g.replace(/\[+=|=\]+/g,"\\b")}brackets.makeRe=function(t){try{return new RegExp(brackets(t))}catch(t){}},brackets.isMatch=function(t,e){try{return brackets.makeRe(e).test(t)}catch(t){return!1}},brackets.match=function(t,e){for(var r=t.length,n=0,i=t.slice(),o=brackets.makeRe(e);n<r;){var s=t[n++];o.test(s)&&i.splice(n,1)}return i};var re,isExtglob=function(t){return"string"==typeof t&&/[@?!+*]\(/.test(t)},cache$2={},extglob_1=extglob;function extglob(t,e){e=e||{};var r,n={},i=0,o=(t=(t=t.replace(/!\(([^\w*()])/g,"$1!(")).replace(/([*\/])\.!\([*]\)/g,function(t,e){return escape("/"===e?"\\/[^.]+":"[^.]+")}))+String(!!e.regex)+String(!!e.contains)+String(!!e.escape);if(cache$2.hasOwnProperty(o))return cache$2[o];for(re instanceof RegExp||(re=regex()),e.negate=!1;r=re.exec(t);){var s=r[1],a=r[3];"!"===s&&(e.negate=!0);var u="__EXTGLOB_"+i+++"__";n[u]=wrap$2(a,s,e.escape),t=t.split(r[0]).join(u)}for(var c=Object.keys(n),l=c.length;l--;){var p=c[l];t=t.split(p).join(n[p])}var f=e.regex?toRegex(t,e.contains,e.negate):t;return f=f.split(".").join("\\."),cache$2[o]=f}function wrap$2(t,e,r){switch(r&&(t=escape(t)),e){case"!":return"(?!"+t+")[^/]"+(r?"%%%~":"*?");case"@":return"(?:"+t+")";case"+":return"(?:"+t+")+";case"*":return"(?:"+t+")"+(r?"%%":"*");case"?":return"(?:"+t+"|)";default:return t}}function escape(t){return t=(t=t.split("*").join("[^/]%%%~")).split(".").join("\\.")}function regex(){return/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/}function negate(t){return"(?!^"+t+").*$"}function toRegex(t,e,r){var n=e?"^":"";return t="(?:"+t+")"+(e?"$":""),r&&(t=n+negate(t)),new RegExp(n+t)}var isGlob=function(t){return"string"==typeof t&&(/[*!?{}(|)[\]]/.test(t)||isExtglob(t))},isWin="win32"===process.platform,removeTrailingSeparator=function(t){var e=t.length-1;if(e<2)return t;for(;isSeparator(t,e);)e--;return t.substr(0,e+1)};function isSeparator(t,e){var r=t[e];return e>0&&("/"===r||isWin&&"\\"===r)}var normalizePath=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");return t=t.replace(/[\\\/]+/g,"/"),!1!==e&&(t=removeTrailingSeparator(t)),t},isExtendable=function(t){return null!=t&&("object"==typeof t||"function"==typeof t)},forIn=function(t,e,r){for(var n in t)if(!1===e.call(r,t[n],n,t))break},hasOwn=Object.prototype.hasOwnProperty,forOwn=function(t,e,r){forIn(t,function(n,i){if(hasOwn.call(t,i))return e.call(r,t[i],i,t)})},object_omit=function(t,e){if(!isExtendable(t))return{};var r,n=(e=[].concat.apply([],[].slice.call(arguments,1)))[e.length-1],i={};"function"==typeof n&&(r=e.pop());var o="function"==typeof r;return e.length||o?(forOwn(t,function(n,s){-1===e.indexOf(s)&&(o?r(n,s,t)&&(i[s]=n):i[s]=n)}),i):t},globParent=function(t){t+="a";do{t=path.dirname(t)}while(isGlob(t));return t},globBase=function(t){if("string"!=typeof t)throw new TypeError("glob-base expects a string.");var e={};return e.base=globParent(t),e.isGlob=isGlob(t),"."!==e.base?(e.glob=t.substr(e.base.length),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1))):e.glob=t,e.isGlob||(e.base=dirname(t),e.glob="."!==e.base?t.substr(e.base.length):t),"./"===e.glob.substr(0,2)&&(e.glob=e.glob.substr(2)),"/"===e.glob.charAt(0)&&(e.glob=e.glob.substr(1)),e};function dirname(t){return"/"===t.slice(-1)?t:path.dirname(t)}var isDotfile=function(t){if(46===t.charCodeAt(0)&&-1===t.indexOf("/",1))return!0;var e=t.lastIndexOf("/");return-1!==e&&46===t.charCodeAt(e+1)},parseGlob=createCommonjsModule(function(t){var e=t.exports.cache={};function r(t,e,r){return t&&-1!==e.indexOf(r)}function n(t){return t=(t=t.split("__SLASH__").join("/")).split("__DOT__").join(".")}t.exports=function(t){if(e.hasOwnProperty(t))return e[t];var i={};i.orig=t,i.is={},t=t.replace(/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g,function(t,e,r,n){var i=e||r||n;return i?t.split(i).join(i.split("/").join("__SLASH__").split(".").join("__DOT__")):t});var o=globBase(t);i.is.glob=o.isGlob,i.glob=o.glob,i.base=o.base;var s=/([^\/]*)$/.exec(t);i.path={},i.path.dirname="",i.path.basename=s[1]||"",i.path.dirname=t.split(i.path.basename).join("")||"";var a=(i.path.basename||"").split(".")||"";i.path.filename=a[0]||"",i.path.extname=a.slice(1).join(".")||"",i.path.ext="",isGlob(i.path.dirname)&&!i.path.basename&&(/\/$/.test(i.glob)||(i.path.basename=i.glob),i.path.dirname=i.base),-1!==t.indexOf("/")||i.is.globstar||(i.path.dirname="",i.path.basename=i.orig);var u=i.path.basename.indexOf(".");if(-1!==u&&(i.path.filename=i.path.basename.slice(0,u),i.path.extname=i.path.basename.slice(u)),"."===i.path.extname.charAt(0)){var c=i.path.extname.split(".");i.path.ext=c[c.length-1]}i.glob=n(i.glob),i.path.dirname=n(i.path.dirname),i.path.basename=n(i.path.basename),i.path.filename=n(i.path.filename),i.path.extname=n(i.path.extname);var l=t&&i.is.glob;return i.is.negated=t&&"!"===t.charAt(0),i.is.extglob=t&&isExtglob(t),i.is.braces=r(l,t,"{"),i.is.brackets=r(l,t,"[:"),i.is.globstar=r(l,t,"**"),i.is.dotfile=isDotfile(i.path.basename)||isDotfile(i.path.filename),i.is.dotdir=function(t){if(-1!==t.indexOf("/."))return!0;if("."===t.charAt(0)&&"/"!==t.charAt(1))return!0;return!1}(i.path.dirname),e[t]=i}}),parseGlob_1=parseGlob.cache,isPrimitive=function(t){return null==t||"function"!=typeof t&&"object"!=typeof t},isEqualShallow=function(t,e){if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var r,n=0,i=0;for(r in e)if(i++,!isPrimitive(e[r])||!t.hasOwnProperty(r)||t[r]!==e[r])return!1;for(r in t)n++;return n===i},basic={},cache$3={},regexCache_1=regexCache;function regexCache(t,e,r){var n,i,o="_default_";if(!e&&!r)return"function"!=typeof t?t:basic[o]||(basic[o]=t(e));if("string"==typeof e){if(!r)return basic[e]||(basic[e]=t(e));o=e}else r=e;return(i=cache$3[o])&&isEqualShallow(i.opts,r)?i.regex:(memo(o,r,n=t(e,r)),n)}function memo(t,e,r){cache$3[t]={regex:r,opts:e}}var cache_1=cache$3,basic_1=basic;regexCache_1.cache=cache_1,regexCache_1.basic=basic_1;var unesc,temp,utils_1=createCommonjsModule(function(t){var e=process&&"win32"===process.platform,r=t.exports;r.diff=arrDiff,r.unique=arrayUnique,r.braces=braces_1,r.brackets=expandBrackets,r.extglob=extglob_1,r.isExtglob=isExtglob,r.isGlob=isGlob,r.typeOf=kindOf,r.normalize=normalizePath,r.omit=object_omit,r.parseGlob=parseGlob,r.cache=regexCache_1,r.filename=function(t){var e=t.match(filenameRegex());return e&&e[0]},r.isPath=function(t,e){return e=e||{},function(n){var i=r.unixify(n,e);return e.nocase?t.toLowerCase()===i.toLowerCase():t===i}},r.hasPath=function(t,e){return function(n){return-1!==r.unixify(t,e).indexOf(n)}},r.matchPath=function(t,e){return e&&e.contains?r.hasPath(t,e):r.isPath(t,e)},r.hasFilename=function(t){return function(e){var n=r.filename(e);return n&&t.test(n)}},r.arrayify=function(t){return Array.isArray(t)?t:[t]},r.unixify=function(t,n){return n&&!1===n.unixify?t:n&&!0===n.unixify||e||"\\"===path.sep?r.normalize(t,!1):n&&!0===n.unescape?t?t.toString().replace(/\\(\w)/g,"$1"):"":t},r.escapePath=function(t){return t.replace(/[\\.]/g,"\\$&")},r.unescapeGlob=function(t){return t.replace(/[\\"']/g,"")},r.escapeRe=function(t){return t.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")},t.exports=r}),chars$1={};function reverse(t,e){return Object.keys(t).reduce(function(r,n){var i=e?e+n:n;return r[t[n]]=i,r},{})}chars$1.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},chars$1.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},chars$1.UNESC=unesc||(unesc=reverse(chars$1.ESC,"\\")),chars$1.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},chars$1.TEMP=temp||(temp=reverse(chars$1.ESC_TEMP));var chars_1=chars$1,glob=createCommonjsModule(function(t){var e=t.exports=function t(e,r){if(!(this instanceof t))return new t(e,r);this.options=r||{},this.pattern=e,this.history=[],this.tokens={},this.init(e)};e.prototype.init=function(t){this.orig=t,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},e.prototype.track=function(t){this.options.track&&this.history.push({msg:t,pattern:this.pattern})},e.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)&&(this.pattern=this.pattern.slice(1),!0)},e.prototype.braces=function(){if(!0!==this.options.nobraces&&!0!==this.options.nobrace){var t=this.pattern.match(/[\{\(\[]/g),e=this.pattern.match(/[\}\)\]]/g);t&&e&&t.length!==e.length&&(this.options.makeRe=!1);var r=utils_1.braces(this.pattern,this.options);this.pattern=r.join("|")}},e.prototype.brackets=function(){!0!==this.options.nobrackets&&(this.pattern=utils_1.brackets(this.pattern))},e.prototype.extglob=function(){!0!==this.options.noextglob&&utils_1.isExtglob(this.pattern)&&(this.pattern=utils_1.extglob(this.pattern,{escape:!0}))},e.prototype.parse=function(t){return this.tokens=utils_1.parseGlob(t||this.pattern,!0),this.tokens},e.prototype._replace=function(t,e,r){this.track('before (find): "'+t+'" (replace with): "'+e+'"'),r&&(e=e.split("?").join("%~").split("*").join("%%")),this.pattern=t&&e&&"string"==typeof t?this.pattern.split(t).join(e):this.pattern.replace(t,e),this.track("after")},e.prototype.escape=function(t){this.track("before escape: ");this.pattern=t.replace(/["\\](['"]?[^"'\\]['"]?)/g,function(t,e){var r=chars_1.ESC,n=r&&r[e];return n||(/[a-z]/i.test(t)?t.split("\\").join(""):t)}),this.track("after escape: ")},e.prototype.unescape=function(t){this.pattern=t.replace(/__([A-Z]+)_([A-Z]+)__/g,function(t,e){return chars_1[e][t]}),this.pattern=function(t){return t=(t=t.split("%~").join("?")).split("%%").join("*")}(this.pattern)}}),expand_1=expand;function expand(t,e){if("string"!=typeof t)throw new TypeError("micromatch.expand(): argument should be a string.");var r=new glob(t,e||{}),n=r.options;if(!utils_1.isGlob(t))return r.pattern=r.pattern.replace(/([\/.])/g,"\\$1"),r;if(r.pattern=r.pattern.replace(/(\+)(?!\()/g,"\\$1"),r.pattern=r.pattern.split("$").join("\\$"),"boolean"!=typeof n.braces&&"boolean"!=typeof n.nobraces&&(n.braces=!0),".*"===r.pattern)return{pattern:"\\."+star,tokens:i,options:n};if("*"===r.pattern)return{pattern:oneStar(n.dot),tokens:i,options:n};r.parse();var i=r.tokens;return i.is.negated=n.negated,!0!==n.dotfiles&&!i.is.dotfile||!1===n.dot||(n.dotfiles=!0,n.dot=!0),!0!==n.dotdirs&&!i.is.dotdir||!1===n.dot||(n.dotdirs=!0,n.dot=!0),/[{,]\./.test(r.pattern)&&(n.makeRe=!1,n.dot=!0),!0!==n.nonegate&&(n.negated=r.negated),"."===r.pattern.charAt(0)&&"/"!==r.pattern.charAt(1)&&(r.pattern="\\"+r.pattern),r.track("before braces"),i.is.braces&&r.braces(),r.track("after braces"),r.track("before extglob"),i.is.extglob&&r.extglob(),r.track("after extglob"),r.track("before brackets"),i.is.brackets&&r.brackets(),r.track("after brackets"),r._replace("[!","[^"),r._replace("(?","(%~"),r._replace(/\[\]/,"\\[\\]"),r._replace("/[","/"+(n.dot?dotfiles:nodot)+"[",!0),r._replace("/?","/"+(n.dot?dotfiles:nodot)+"[^/]",!0),r._replace("/.","/(?=.)\\.",!0),r._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),-1!==r.pattern.indexOf("[^")&&(r.pattern=negateSlash(r.pattern)),!1!==n.globstar&&"**"===r.pattern?r.pattern=globstar(n.dot):(r.pattern=balance(r.pattern,"[","]"),r.escape(r.pattern),i.is.globstar&&(r.pattern=collapse(r.pattern,"/**"),r.pattern=collapse(r.pattern,"**/"),r._replace("/**/","(?:/"+globstar(n.dot)+"/|/)",!0),r._replace(/\*{2,}/g,"**"),r._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),r._replace(/\*\*\/\*(\w)/g,globstar(n.dot)+"\\/"+(n.dot?dotfiles:nodot)+"[^/]*?$1",!0),!0!==n.dot&&r._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==i.path.dirname||/,\*\*|\*\*,/.test(r.orig))&&r._replace("**",globstar(n.dot),!0)),r._replace(/\/\*$/,"\\/"+oneStar(n.dot),!0),r._replace(/(?!\/)\*$/,star,!0),r._replace(/([^\/]+)\*/,"$1"+oneStar(!0),!0),r._replace("*",oneStar(n.dot),!0),r._replace("?.","?\\.",!0),r._replace("?:","?:",!0),r._replace(/\?+/g,function(t){var e=t.length;return 1===e?qmark:qmark+"{"+e+"}"}),r._replace(/\.([*\w]+)/g,"\\.$1"),r._replace(/\[\^[\\\/]+\]/g,qmark),r._replace(/\/+/g,"\\/"),r._replace(/\\{2,}/g,"\\")),r.unescape(r.pattern),r._replace("__UNESC_STAR__","*"),r._replace("?.","?\\."),r._replace("[^\\/]",qmark),r.pattern.length>1&&/^[\[?*]/.test(r.pattern)&&(r.pattern=(n.dot?dotfiles:nodot)+r.pattern),r}function collapse(t,e){var r=t.split(e),n=""===r[0],i=""===r[r.length-1];return r=r.filter(Boolean),n&&r.unshift(""),i&&r.push(""),r.join(e)}function negateSlash(t){return t.replace(/\[\^([^\]]*?)\]/g,function(t,e){return-1===e.indexOf("/")&&(e="\\/"+e),"[^"+e+"]"})}function balance(t,e,r){var n=t.split(e);return n.join("").length!==t.split(r).join("").length?(t=n.join("\\"+e)).split(r).join("\\"+r):t}var qmark="[^/]",star=qmark+"*?",nodot="(?!\\.)(?=.)",dotfileGlob="(?:\\/|^)\\.{1,2}($|\\/)",dotfiles="(?!"+dotfileGlob+")(?=.)",twoStarDot="(?:(?!"+dotfileGlob+").)*?";function oneStar(t){return t?"(?!"+dotfileGlob+")(?=.)"+star:nodot+star}function globstar(t){return t?twoStarDot:"(?:(?!(?:\\/|^)\\.).)*?"}function micromatch(t,e,r){if(!t||!e)return[];if(void 0===(r=r||{}).cache&&(r.cache=!0),!Array.isArray(e))return match(t,e,r);for(var n=e.length,i=0,o=[],s=[];n--;){var a=e[i++];"string"==typeof a&&33===a.charCodeAt(0)?o.push.apply(o,match(t,a.slice(1),r)):s.push.apply(s,match(t,a,r))}return utils_1.diff(s,o)}function match(t,e,r){if("string"!==utils_1.typeOf(t)&&!Array.isArray(t))throw new Error(msg("match","files","a string or array"));t=utils_1.arrayify(t);var n=(r=r||{}).negate||!1,i=e;"string"==typeof e&&((n="!"===e.charAt(0))&&(e=e.slice(1)),!0===r.nonegate&&(n=!1));for(var o=matcher(e,r),s=t.length,a=0,u=[];a<s;){var c=t[a++],l=utils_1.unixify(c,r);o(l)&&u.push(l)}if(0===u.length){if(!0===r.failglob)throw new Error('micromatch.match() found no matches for: "'+i+'".');(r.nonull||r.nullglob)&&u.push(utils_1.unescapeGlob(i))}return n&&(u=utils_1.diff(t,u)),r.ignore&&r.ignore.length&&(e=r.ignore,r=utils_1.omit(r,["ignore"]),u=utils_1.diff(u,micromatch(u,e,r))),r.nodupes?utils_1.unique(u):u}function filter$1(t,e){if(!Array.isArray(t)&&"string"!=typeof t)throw new TypeError(msg("filter","patterns","a string or array"));for(var r=(t=utils_1.arrayify(t)).length,n=0,i=Array(r);n<r;)i[n]=matcher(t[n++],e);return function(t){if(null==t)return[];var r=i.length,n=0,o=!0;for(t=utils_1.unixify(t,e);n<r;){if(!(0,i[n++])(t)){o=!1;break}}return o}}function isMatch(t,e,r){if("string"!=typeof t)throw new TypeError(msg("isMatch","filepath","a string"));return t=utils_1.unixify(t,r),"object"===utils_1.typeOf(e)?matcher(t,e):matcher(e,r)(t)}function contains(t,e,r){if("string"!=typeof t)throw new TypeError(msg("contains","pattern","a string"));return(r=r||{}).contains=""!==e,t=utils_1.unixify(t,r),r.contains&&!utils_1.isGlob(e)?-1!==t.indexOf(e):matcher(e,r)(t)}function any(t,e,r){if(!Array.isArray(e)&&"string"!=typeof e)throw new TypeError(msg("any","patterns","a string or array"));var n=(e=utils_1.arrayify(e)).length;for(t=utils_1.unixify(t,r);n--;){if(matcher(e[n],r)(t))return!0}return!1}function matchKeys(t,e,r){if("object"!==utils_1.typeOf(t))throw new TypeError(msg("matchKeys","first argument","an object"));var n=matcher(e,r),i={};for(var o in t)t.hasOwnProperty(o)&&n(o)&&(i[o]=t[o]);return i}function matcher(t,e){if("function"==typeof t)return t;if(t instanceof RegExp)return function(e){return t.test(e)};if("string"!=typeof t)throw new TypeError(msg("matcher","pattern","a string, regex, or function"));if(t=utils_1.unixify(t,e),!utils_1.isGlob(t))return utils_1.matchPath(t,e);var r=makeRe(t,e);return e&&e.matchBase?utils_1.hasFilename(r,e):function(t){return t=utils_1.unixify(t,e),r.test(t)}}function toRegex$1(t,e){var r=Object.create(e||{}),n=r.flags||"";r.nocase&&-1===n.indexOf("i")&&(n+="i");var i,o=expand_1(t,r);r.negated=r.negated||o.negated,r.negate=r.negated,t=wrapGlob(o.pattern,r);try{return i=new RegExp(t,n)}catch(t){if(t.reason="micromatch invalid regex: ("+i+")",r.strict)throw new SyntaxError(t)}return/$^/}function wrapGlob(t,e){var r=e&&!e.contains?"^":"";return t="(?:"+t+")"+(e&&!e.contains?"$":""),e&&e.negate?r+"(?!^"+t+").*$":r+t}function makeRe(t,e){if("string"!==utils_1.typeOf(t))throw new Error(msg("makeRe","glob","a string"));return utils_1.cache(toRegex$1,t,e)}function msg(t,e,r){return"micromatch."+t+"(): "+e+" should be "+r+"."}micromatch.any=any,micromatch.braces=micromatch.braceExpand=utils_1.braces,micromatch.contains=contains,micromatch.expand=expand_1,micromatch.filter=filter$1,micromatch.isMatch=isMatch,micromatch.makeRe=makeRe,micromatch.match=match,micromatch.matcher=matcher,micromatch.matchKeys=matchKeys;var micromatch_1=micromatch;function ensureArray(t){return Array.isArray(t)?t:null==t?[]:[t]}function createFilter(t,e){var r=function(t){return isRegexp$1(t)?t:{test:micromatch_1.matcher(path_2(t).split(path_3).join("/"))}};return t=ensureArray(t).map(r),e=ensureArray(e).map(r),function(r){if("string"!=typeof r)return!1;if(/\0/.test(r))return!1;r=r.split(path_3).join("/");for(var n=0;n<e.length;++n){if(e[n].test(r))return!1}for(var i=0;i<t.length;++i){if(t[i].test(r))return!0}return!t.length}}function isRegexp$1(t){return t instanceof RegExp}var reservedWords="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public".split(" "),builtins="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl".split(" "),blacklisted=Object.create(null);function escape$1(t){return t.replace(/[-[\]\/{}()*+?.\\^$|]/g,"\\$&")}function ensureFunction(t){return"function"==typeof t?t:function(){return t}}function longest(t,e){return e.length-t.length}function getReplacements(t){if(t.values)return Object.assign({},t.values);var e=Object.assign({},t);return delete e.delimiters,delete e.include,delete e.exclude,delete e.sourcemap,delete e.sourceMap,e}function mapToFunctions(t){return Object.keys(t).reduce(function(e,r){return e[r]=ensureFunction(t[r]),e},{})}function replace(t){void 0===t&&(t={});var e=createFilter(t.include,t.exclude),r=t.delimiters,n=mapToFunctions(getReplacements(t)),i=Object.keys(n).sort(longest).map(escape$1),o=r?new RegExp(escape$1(r[0])+"("+i.join("|")+")"+escape$1(r[1]),"g"):new RegExp("\\b("+i.join("|")+")\\b","g");return{name:"replace",transform:function(r,i){if(!e(i))return null;for(var s,a,u,c,l=new MagicString(r),p=!1;s=o.exec(r);)p=!0,u=(a=s.index)+s[0].length,c=String(n[s[1]](i)),l.overwrite(a,u,c);if(!p)return null;var f={code:l.toString()};return!1!==t.sourceMap&&!1!==t.sourcemap&&(f.map=l.generateMap({hires:!0})),f}}}reservedWords.concat(builtins).forEach(function(t){return blacklisted[t]=!0});var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(t,e){return t(e={exports:{}},e.exports),e.exports}var n$1=1e3,r=60*n$1,o=60*r,s=24*o,i=7*s,c=365.25*s,u=function(t,e){e=e||{};var n=typeof t;if("string"===n&&t.length>0)return function(t){if(!((t=String(t)).length>100)){var e=/^((?:\d+)?\-?\d?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*c;case"weeks":case"week":case"w":return n*i;case"days":case"day":case"d":return n*s;case"hours":case"hour":case"hrs":case"hr":case"h":return n*o;case"minutes":case"minute":case"mins":case"min":case"m":return n*r;case"seconds":case"second":case"secs":case"sec":case"s":return n*n$1;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(t);if("number"===n&&!1===isNaN(t))return e.long?function(t){var e=Math.abs(t);return e>=s?a(t,e,s,"day"):e>=o?a(t,e,o,"hour"):e>=r?a(t,e,r,"minute"):e>=n$1?a(t,e,n$1,"second"):t+" ms"}(t):function(t){var e=Math.abs(t);return e>=s?Math.round(t/s)+"d":e>=o?Math.round(t/o)+"h":e>=r?Math.round(t/r)+"m":e>=n$1?Math.round(t/n$1)+"s":t+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function a(t,e,r,n){var i=e>=1.5*r;return Math.round(t/r)+" "+n+(i?"s":"")}var l=function(t){function e(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return r.colors[Math.abs(e)%r.colors.length]}function r(t){let o;function s(...t){if(!s.enabled)return;const e=s,n=Number(new Date),i=n-(o||n);e.diff=i,e.prev=o,e.curr=n,o=n,t[0]=r.coerce(t[0]),"string"!=typeof t[0]&&t.unshift("%O");let a=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(n,i)=>{if("%%"===n)return n;a++;const o=r.formatters[i];if("function"==typeof o){const r=t[a];n=o.call(e,r),t.splice(a,1),a--}return n}),r.formatArgs.call(e,t),(e.log||r.log).apply(e,t)}return s.namespace=t,s.enabled=r.enabled(t),s.useColors=r.useColors(),s.color=e(t),s.destroy=n,s.extend=i,"function"==typeof r.init&&r.init(s),r.instances.push(s),s}function n(){const t=r.instances.indexOf(this);return-1!==t&&(r.instances.splice(t,1),!0)}function i(t,e){const n=r(this.namespace+(void 0===e?":":e)+t);return n.log=this.log,n}function o(t){return t.toString().substring(2,t.toString().length-2).replace(/\.\*\?$/,"*")}return r.debug=r,r.default=r,r.coerce=function(t){return t instanceof Error?t.stack||t.message:t},r.disable=function(){const t=[...r.names.map(o),...r.skips.map(o).map(t=>"-"+t)].join(",");return r.enable(""),t},r.enable=function(t){let e;r.save(t),r.names=[],r.skips=[];const n=("string"==typeof t?t:"").split(/[\s,]+/),i=n.length;for(e=0;e<i;e++)n[e]&&("-"===(t=n[e].replace(/\*/g,".*?"))[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$")));for(e=0;e<r.instances.length;e++){const t=r.instances[e];t.enabled=r.enabled(t.namespace)}},r.enabled=function(t){if("*"===t[t.length-1])return!0;let e,n;for(e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e<n;e++)if(r.names[e].test(t))return!0;return!1},r.humanize=u,Object.keys(t).forEach(e=>{r[e]=t[e]}),r.instances=[],r.names=[],r.skips=[],r.formatters={},r.selectColor=e,r.enable(r.load()),r},f=t(function(t,e){e.log=function(...t){return"object"==typeof console&&console.log&&console.log(...t)},e.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))}),e.splice(i,0,r)},e.save=function(t){try{t?e.storage.setItem("debug",t):e.storage.removeItem("debug")}catch(t){}},e.load=function(){let t;try{t=e.storage.getItem("debug")}catch(t){}return!t&&"undefined"!=typeof process&&"env"in process&&(t=process.env.DEBUG),t},e.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},e.storage=function(){try{return localStorage}catch(t){}}(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.exports=l(e);const{formatters:r}=t.exports;r.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});f.log,f.formatArgs,f.save,f.load,f.useColors,f.storage,f.colors;var p={isatty:function(){return!1},ReadStream:function(){throw new Error("tty.ReadStream is not implemented")},WriteStream:function(){throw new Error("tty.ReadStream is not implemented")}},d=function(t){return t instanceof Buffer},g=t(function(t){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}),C=t(function(t){try{var e=m;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=g}}),m=t(function(t,r){var n=/%[sdj%]/g;r.format=function(t){if(!y(t)){for(var e=[],r=0;r<arguments.length;r++)e.push(s(arguments[r]));return e.join(" ")}r=1;for(var i=arguments,o=i.length,a=String(t).replace(n,function(t){if("%%"===t)return"%";if(r>=o)return t;switch(t){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return t}}),u=i[r];r<o;u=i[++r])g(u)||!_(u)?a+=" "+u:a+=" "+s(u);return a},r.deprecate=function(t,n){if(b(e.process))return function(){return r.deprecate(t,n).apply(this,arguments)};if(!0===process.noDeprecation)return t;var i=!1;return function(){if(!i){if(process.throwDeprecation)throw new Error(n);process.traceDeprecation?console.trace(n):console.error(n),i=!0}return t.apply(this,arguments)}};var i,o={};function s(t,e){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(e)?n.showHidden=e:e&&r._extend(n,e),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=a),c(n,t,n.depth)}function a(t,e){var r=s.styles[e];return r?"["+s.colors[r][0]+"m"+t+"["+s.colors[r][1]+"m":t}function u(t,e){return t}function c(t,e,n){if(t.customInspect&&e&&S(e.inspect)&&e.inspect!==r.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return y(i)||(i=c(t,i,n)),i}var o=function(t,e){if(b(e))return t.stylize("undefined","undefined");if(y(e)){var r="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(r,"string")}return m(e)?t.stylize(""+e,"number"):h(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}(t,e);if(o)return o;var s=Object.keys(e),a=function(t){var e={};return s.forEach(function(t,r){e[t]=!0}),e}();if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),x(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(e);if(0===s.length){if(S(e)){var u=e.name?": "+e.name:"";return t.stylize("[Function"+u+"]","special")}if(v(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toString.call(e),"date");if(x(e))return l(e)}var d,_="",C=!1,E=["{","}"];return f(e)&&(C=!0,E=["[","]"]),S(e)&&(_=" [Function"+(e.name?": "+e.name:"")+"]"),v(e)&&(_=" "+RegExp.prototype.toString.call(e)),w(e)&&(_=" "+Date.prototype.toUTCString.call(e)),x(e)&&(_=" "+l(e)),0!==s.length||C&&0!=e.length?n<0?v(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),d=C?function(t,e,r,n,i){for(var o=[],s=0,a=e.length;s<a;++s)A(e,String(s))?o.push(p(t,e,r,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(t,e,r,n,i,!0))}),o}(t,e,n,a,s):s.map(function(r){return p(t,e,n,a,r,C)}),t.seen.pop(),function(t,e,r){return t.reduce(function(t,e){return e.indexOf("\n"),t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?r[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+r[1]:r[0]+e+" "+t.join(", ")+" "+r[1]}(d,_,E)):E[0]+_+E[1]}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(a=t.stylize("[Setter]","special")),A(n,i)||(s="["+i+"]"),a||(t.seen.indexOf(u.value)<0?(a=g(r)?c(t,u.value,null):c(t,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t){return Array.isArray(t)}function h(t){return"boolean"==typeof t}function g(t){return null===t}function m(t){return"number"==typeof t}function y(t){return"string"==typeof t}function b(t){return void 0===t}function v(t){return _(t)&&"[object RegExp]"===E(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===E(t)}function x(t){return _(t)&&("[object Error]"===E(t)||t instanceof Error)}function S(t){return"function"==typeof t}function E(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}r.debuglog=function(t){if(b(i)&&(i=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!o[t])if(new RegExp("\\b"+t+"\\b","i").test(i)){var e=process.pid;o[t]=function(){var n=r.format.apply(r,arguments);console.error("%s %d: %s",t,e,n)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=f,r.isBoolean=h,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=y,r.isSymbol=function(t){return"symbol"==typeof t},r.isUndefined=b,r.isRegExp=v,r.isObject=_,r.isDate=w,r.isError=x,r.isFunction=S,r.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},r.isBuffer=d;var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){var t,e;console.log("%s - %s",(e=[O((t=new Date).getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":"),[t.getDate(),j[t.getMonth()],e].join(" ")),r.format.apply(r,arguments))},r.inherits=C,r._extend=function(t,e){if(!e||!_(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}),y=(m.format,m.deprecate,m.debuglog,m.inspect,m.isArray,m.isBoolean,m.isNull,m.isNullOrUndefined,m.isNumber,m.isString,m.isSymbol,m.isUndefined,m.isRegExp,m.isObject,m.isDate,m.isError,m.isFunction,m.isPrimitive,m.isBuffer,m.log,m.inherits,m._extend,y),h=(t,e)=>{e=e||process.argv;const r=t.startsWith("-")?"":1===t.length?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return-1!==n&&(-1===i||n<i)};const b=process.env;let v;function F(t){return function(t){return 0!==t&&{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}(function(t){if(!1===v)return 0;if(h("color=16m")||h("color=full")||h("color=truecolor"))return 3;if(h("color=256"))return 2;if(t&&!t.isTTY&&!0!==v)return 0;const e=v?1:0;if("win32"===process.platform){const t=y.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in b)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(t=>t in b)||"codeship"===b.CI_NAME?1:e;if("TEAMCITY_VERSION"in b)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(b.TEAMCITY_VERSION)?1:0;if("truecolor"===b.COLORTERM)return 3;if("TERM_PROGRAM"in b){const t=parseInt((b.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(b.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(b.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(b.TERM)?1:"COLORTERM"in b?1:(b.TERM,e)}(t))}h("no-color")||h("no-colors")||h("color=false")?v=!1:(h("color")||h("colors")||h("color=true")||h("color=always"))&&(v=!0),"FORCE_COLOR"in b&&(v=0===b.FORCE_COLOR.length||0!==parseInt(b.FORCE_COLOR,10));var w={supportsColor:F,stdout:F(process.stdout),stderr:F(process.stderr)},O=t(function(t,e){e.init=function(t){t.inspectOpts={};const r=Object.keys(e.inspectOpts);for(let n=0;n<r.length;n++)t.inspectOpts[r[n]]=e.inspectOpts[r[n]]},e.log=function(...t){return process.stderr.write(m.format(...t)+"\n")},e.formatArgs=function(r){const{namespace:n,useColors:i}=this;if(i){const e=this.color,i="[3"+(e<8?e:"8;5;"+e),o=` ${i};1m${n} `;r[0]=o+r[0].split("\n").join("\n"+o),r.push(i+"m+"+t.exports.humanize(this.diff)+"")}else r[0]=(e.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+r[0]},e.save=function(t){t?process.env.DEBUG=t:delete process.env.DEBUG},e.load=function(){return process.env.DEBUG},e.useColors=function(){return"colors"in e.inspectOpts?Boolean(e.inspectOpts.colors):p.isatty(process.stderr.fd)},e.colors=[6,2,3,4,5,1];try{const r=w;r&&(r.stderr||r).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(t){}e.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{const r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(t,e)=>e.toUpperCase());let n=process.env[e];return n=!!/^(yes|on|true|enabled)$/i.test(n)||!/^(no|off|false|disabled)$/i.test(n)&&("null"===n?null:Number(n)),t[r]=n,t},{}),t.exports=l(e);const{formatters:r}=t.exports;r.o=function(t){return this.inspectOpts.colors=this.useColors,m.inspect(t,this.inspectOpts).replace(/\s*\n\s*/g," ")},r.O=function(t){return this.inspectOpts.colors=this.useColors,m.inspect(t,this.inspectOpts)}}),x=(O.init,O.log,O.formatArgs,O.save,O.load,O.useColors,O.colors,O.inspectOpts,t(function(t){"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?t.exports=f:t.exports=O})),debug=t=>x(`bearer:${t}`),debug$1=debug("core");const plugins=()=>{const t={BEARER_INTEGRATION_ID:process.env.BEARER_INTEGRATION_ID,BEARER_INTEGRATION_HOST:process.env.BEARER_INTEGRATION_HOST||"https://int.staging.bearer.sh/",BEARER_AUTHORIZATION_HOST:process.env.BEARER_AUTHORIZATION_HOST||"https://int.staging.bearer.sh/"};return process.env.BEARER_DEBUG&&debug$1.extend("plugins")("withVariables %j",t),[replace(t)]};exports.plugins=plugins,exports.default=plugins;
2
\No newline at end of file