UNPKG

create-next-surf-app

Version:

![package downloads](https://img.shields.io/npm/dt/create-next-surf-app?style=for-the-badge) ![package version](https://img.shields.io/npm/v/create-next-surf-app?style=for-the-badge) ![discord](https://img.shields.io/discord/1016650973114007612?style=for-

385 lines 528 kB
#!/usr/bin/env node
(()=>{var t={7121:t=>{"use strict";t.exports=asyncForEach;function asyncForEach(t,r,i){if(t.length===0){i();return}let o=t.length;t.forEach((t=>{r(t,(()=>{if(--o===0){i()}}))}))}},8147:(t,r,i)=>{"use strict";t.exports=readdirAsync;const o=i(9581);const a=i(9270);let c={fs:i(7147),forEach:i(7121),async:true};function readdirAsync(t,r,i,u){if(typeof r==="function"){i=r;r=undefined}return o(i,new Promise(((i,o)=>{let l=[];u.facade=c;let h=new a(t,r,u);let p=h.stream;p.on("error",(t=>{o(t);p.pause()}));p.on("data",(t=>{l.push(t)}));p.on("end",(()=>{i(l)}))})))}},6516:t=>{"use strict";let r=t.exports={safe:safeCall,once:callOnce};function safeCall(t,i){i=Array.prototype.slice.call(arguments,1);let o=r.once(i.pop());i.push(o);try{t.apply(null,i)}catch(t){o(t)}}function callOnce(t){let r=false;return function onceWrapper(i){if(!r){r=true;return t.apply(this,arguments)}else if(i){throw i}}}},9270:(t,r,i)=>{"use strict";const o=i(2781).Readable;const a=i(2361).EventEmitter;const c=i(1017);const u=i(2536);const l=i(9289);const h=i(6516);class DirectoryReader{constructor(t,r,i){this.options=r=u(r,i);this.shouldRead=true;this.queue=[{path:t,basePath:r.basePath,posixBasePath:r.posixBasePath,depth:0}];this.pending=0;this.buffer=[];this.stream=new o({objectMode:true});this.stream._read=()=>{this.shouldRead=true;if(this.buffer.length>0){this.pushFromBuffer()}if(this.queue.length>0){if(this.options.facade.sync){while(this.queue.length>0){this.readNextDirectory()}}else{this.readNextDirectory()}}this.checkForEOF()}}readNextDirectory(){let t=this.options.facade;let r=this.queue.shift();this.pending++;h.safe(t.fs.readdir,r.path,((i,o)=>{if(i){this.emit("error",i);return this.finishedReadingDirectory()}try{t.forEach(o,this.processItem.bind(this,r),this.finishedReadingDirectory.bind(this,r))}catch(t){this.emit("error",t);this.finishedReadingDirectory()}}))}finishedReadingDirectory(){this.pending--;if(this.shouldRead){if(this.queue.length>0&&this.options.facade.async){this.readNextDirectory()}this.checkForEOF()}}checkForEOF(){if(this.buffer.length===0&&this.pending===0&&this.queue.length===0){this.stream.push(null)}}processItem(t,r,i){let o=this.stream;let u=this.options;let h=t.basePath+r;let p=t.posixBasePath+r;let d=c.join(t.path,r);let m=t.depth>=u.recurseDepth;let g=!m||u.stats||u.recurseFn||u.filterFn||a.listenerCount(o,"file")||a.listenerCount(o,"directory")||a.listenerCount(o,"symlink");if(!g){if(this.filter(h,p)){this.pushOrBuffer({data:h})}return i()}l(u.facade.fs,d,((r,o)=>{if(r){this.emit("error",r);return i()}try{o.path=h;o.depth=t.depth;if(this.shouldRecurse(o,p,m)){this.queue.push({path:d,basePath:h+u.sep,posixBasePath:p+"/",depth:t.depth+1})}if(this.filter(o,p)){this.pushOrBuffer({data:u.stats?o:h,file:o.isFile(),directory:o.isDirectory(),symlink:o.isSymbolicLink()})}i()}catch(t){this.emit("error",t);i()}}))}pushOrBuffer(t){this.buffer.push(t);if(this.shouldRead){this.pushFromBuffer()}}pushFromBuffer(){let t=this.stream;let r=this.buffer.shift();try{this.shouldRead=t.push(r.data)}catch(t){this.emit("error",t)}r.file&&this.emit("file",r.data);r.symlink&&this.emit("symlink",r.data);r.directory&&this.emit("directory",r.data)}shouldRecurse(t,r,i){let o=this.options;if(i){return false}else if(!t.isDirectory()){return false}else if(o.recurseGlob){return o.recurseGlob.test(r)}else if(o.recurseRegExp){return o.recurseRegExp.test(t.path)}else if(o.recurseFn){try{return o.recurseFn.call(null,t)}catch(t){this.emit("error",t)}}else{return true}}filter(t,r){let i=this.options;if(i.filterGlob){return i.filterGlob.test(r)}else if(i.filterRegExp){return i.filterRegExp.test(t.path||t)}else if(i.filterFn){try{return i.filterFn.call(null,t)}catch(t){this.emit("error",t)}}else{return true}}emit(t,r){let i=this.stream;try{i.emit(t,r)}catch(r){if(t==="error"){throw r}else{i.emit("error",r)}}}}t.exports=DirectoryReader},9913:(t,r,i)=>{"use strict";const o=i(9638);const a=i(8147);const c=i(6453);t.exports=r=readdirAsyncPath;r.readdir=r.readdirAsync=r.async=readdirAsyncPath;r.readdirAsyncStat=r.async.stat=readdirAsyncStat;r.readdirStream=r.stream=readdirStreamPath;r.readdirStreamStat=r.stream.stat=readdirStreamStat;r.readdirSync=r.sync=readdirSyncPath;r.readdirSyncStat=r.sync.stat=readdirSyncStat;function readdirSyncPath(t,r){return o(t,r,{})}function readdirSyncStat(t,r){return o(t,r,{stats:true})}function readdirAsyncPath(t,r,i){return a(t,r,i,{})}function readdirAsyncStat(t,r,i){return a(t,r,i,{stats:true})}function readdirStreamPath(t,r){return c(t,r,{})}function readdirStreamStat(t,r){return c(t,r,{stats:true})}},2536:(t,r,i)=>{"use strict";const o=i(1017);const a=i(7117);t.exports=normalizeOptions;let c=/^win/.test(process.platform);function normalizeOptions(t,r){if(t===null||t===undefined){t={}}else if(typeof t!=="object"){throw new TypeError("options must be an object")}let i,u,l,h,p=t.deep;if(p===null||p===undefined){i=0}else if(typeof p==="boolean"){i=p?Infinity:0}else if(typeof p==="number"){if(p<0||isNaN(p)){throw new Error("options.deep must be a positive number")}else if(Math.floor(p)!==p){throw new Error("options.deep must be an integer")}else{i=p}}else if(typeof p==="function"){i=Infinity;u=p}else if(p instanceof RegExp){i=Infinity;l=p}else if(typeof p==="string"&&p.length>0){i=Infinity;h=a(p,{extended:true,globstar:true})}else{throw new TypeError("options.deep must be a boolean, number, function, regular expression, or glob pattern")}let d,m,g,v=t.filter;if(v!==null&&v!==undefined){if(typeof v==="function"){d=v}else if(v instanceof RegExp){m=v}else if(typeof v==="string"&&v.length>0){g=a(v,{extended:true,globstar:true})}else{throw new TypeError("options.filter must be a function, regular expression, or glob pattern")}}let y=t.sep;if(y===null||y===undefined){y=o.sep}else if(typeof y!=="string"){throw new TypeError("options.sep must be a string")}let b=t.basePath;if(b===null||b===undefined){b=""}else if(typeof b==="string"){if(b&&b.substr(-1)!==y){b+=y}}else{throw new TypeError("options.basePath must be a string")}let w=b;if(w&&y!=="/"){w=w.replace(new RegExp("\\"+y,"g"),"/");if(c){w=w.replace(/^([a-zA-Z]\:\/|\/\/)/,"/")}}let x;if(t.fs===null||t.fs===undefined){x=r.facade}else if(typeof t.fs==="object"){x=Object.assign({},r.facade);x.fs=Object.assign({},r.facade.fs,t.fs)}else{throw new TypeError("options.fs must be an object")}return{recurseDepth:i,recurseFn:u,recurseRegExp:l,recurseGlob:h,filterFn:d,filterRegExp:m,filterGlob:g,sep:y,basePath:b,posixBasePath:w,facade:x,emit:!!r.emit,stats:!!r.stats}}},9289:(t,r,i)=>{"use strict";const o=i(6516);t.exports=stat;function stat(t,r,i){let a=false;o.safe(t.lstat,r,((o,c)=>{if(o){return i(o)}try{a=c.isSymbolicLink()}catch(t){return i(t)}if(a){symlinkStat(t,r,c,i)}else{i(null,c)}}))}function symlinkStat(t,r,i,a){o.safe(t.stat,r,((t,r)=>{if(t){return a(null,i)}try{r.isSymbolicLink=()=>true}catch(t){return a(t)}a(null,r)}))}},6453:(t,r,i)=>{"use strict";t.exports=readdirStream;const o=i(9270);let a={fs:i(7147),forEach:i(7121),async:true};function readdirStream(t,r,i){i.facade=a;let c=new o(t,r,i);return c.stream}},8220:t=>{"use strict";t.exports=syncForEach;function syncForEach(t,r,i){t.forEach((t=>{r(t,(()=>{}))}));i()}},6117:(t,r,i)=>{"use strict";const o=i(7147);const a=i(6516);r.readdir=function(t,r){r=a.once(r);try{let i=o.readdirSync(t);r(null,i)}catch(t){r(t)}};r.stat=function(t,r){r=a.once(r);try{let i=o.statSync(t);r(null,i)}catch(t){r(t)}};r.lstat=function(t,r){r=a.once(r);try{let i=o.lstatSync(t);r(null,i)}catch(t){r(t)}}},9638:(t,r,i)=>{"use strict";t.exports=readdirSync;const o=i(9270);let a={fs:i(6117),forEach:i(8220),sync:true};function readdirSync(t,r,i){i.facade=a;let c=new o(t,r,i);let u=c.stream;let l=[];let h=u.read();while(h!==null){l.push(h);h=u.read()}return l}},2068:(t,r,i)=>{"use strict";t=i.nmd(t);const wrapAnsi16=(t,r)=>(...i)=>{const o=t(...i);return`[${o+r}m`};const wrapAnsi256=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};5;${o}m`};const wrapAnsi16m=(t,r)=>(...i)=>{const o=t(...i);return`[${38+r};2;${o[0]};${o[1]};${o[2]}m`};const ansi2ansi=t=>t;const rgb2rgb=(t,r,i)=>[t,r,i];const setLazyProperty=(t,r,i)=>{Object.defineProperty(t,r,{get:()=>{const o=i();Object.defineProperty(t,r,{value:o,enumerable:true,configurable:true});return o},enumerable:true,configurable:true})};let o;const makeDynamicStyles=(t,r,a,c)=>{if(o===undefined){o=i(6931)}const u=c?10:0;const l={};for(const[i,c]of Object.entries(o)){const o=i==="ansi16"?"ansi":i;if(i===r){l[o]=t(a,u)}else if(typeof c==="object"){l[o]=t(c[r],u)}}return l};function assembleStyles(){const t=new Map;const r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};r.color.gray=r.color.blackBright;r.bgColor.bgGray=r.bgColor.bgBlackBright;r.color.grey=r.color.blackBright;r.bgColor.bgGrey=r.bgColor.bgBlackBright;for(const[i,o]of Object.entries(r)){for(const[i,a]of Object.entries(o)){r[i]={open:`[${a[0]}m`,close:`[${a[1]}m`};o[i]=r[i];t.set(a[0],a[1])}Object.defineProperty(r,i,{value:o,enumerable:false})}Object.defineProperty(r,"codes",{value:t,enumerable:false});r.color.close="";r.bgColor.close="";setLazyProperty(r.color,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,false)));setLazyProperty(r.color,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,false)));setLazyProperty(r.color,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,false)));setLazyProperty(r.bgColor,"ansi",(()=>makeDynamicStyles(wrapAnsi16,"ansi16",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi256",(()=>makeDynamicStyles(wrapAnsi256,"ansi256",ansi2ansi,true)));setLazyProperty(r.bgColor,"ansi16m",(()=>makeDynamicStyles(wrapAnsi16m,"rgb",rgb2rgb,true)));return r}Object.defineProperty(t,"exports",{enumerable:true,get:assembleStyles})},8915:t=>{"use strict";
/*!
 * arr-diff <https://github.com/jonschlinkert/arr-diff>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function diff(t){var r=arguments.length;var i=0;while(++i<r){t=diffArray(t,arguments[i])}return t};function diffArray(t,r){if(!Array.isArray(r)){return t.slice()}var i=r.length;var o=t.length;var a=-1;var c=[];while(++a<o){var u=t[a];var l=false;for(var h=0;h<i;h++){var p=r[h];if(u===p){l=true;break}}if(l===false){c.push(u)}}return c}},7493:t=>{"use strict";
/*!
 * arr-flatten <https://github.com/jonschlinkert/arr-flatten>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function(t){return flat(t,[])};function flat(t,r){var i=0,o;var a=t.length;for(;i<a;i++){o=t[i];Array.isArray(o)?flat(o,r):r.push(o)}return r}},8815:t=>{"use strict";t.exports=function union(t){if(!Array.isArray(t)){throw new TypeError("arr-union expects the first argument to be an array.")}var r=arguments.length;var i=0;while(++i<r){var o=arguments[i];if(!o)continue;if(!Array.isArray(o)){o=[o]}for(var a=0;a<o.length;a++){var c=o[a];if(t.indexOf(c)>=0){continue}t.push(c)}}return t}},9600:(t,r,i)=>{"use strict";var o=i(1530);t.exports=function(){return o([].concat.apply([],arguments))}},1530:t=>{"use strict";function uniqNoSet(t){var r=[];for(var i=0;i<t.length;i++){if(r.indexOf(t[i])===-1){r.push(t[i])}}return r}function uniqSet(t){var r=new Set;return t.filter((function(t){if(!r.has(t)){r.add(t);return true}return false}))}function uniqSetWithForEach(t){var r=[];new Set(t).forEach((function(t){r.push(t)}));return r}function doesForEachActuallyWork(){var t=false;new Set([true]).forEach((function(r){t=r}));return t===true}if("Set"in global){if(typeof Set.prototype.forEach==="function"&&doesForEachActuallyWork()){t.exports=uniqSetWithForEach}else{t.exports=uniqSet}}else{t.exports=uniqNoSet}},340:t=>{"use strict";
/*!
 * array-unique <https://github.com/jonschlinkert/array-unique>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function unique(t){if(!Array.isArray(t)){throw new TypeError("array-unique expects an array.")}var r=t.length;var i=-1;while(i++<r){var o=i+1;for(;o<t.length;++o){if(t[i]===t[o]){t.splice(o--,1)}}}return t};t.exports.immutable=function uniqueImmutable(r){if(!Array.isArray(r)){throw new TypeError("array-unique expects an array.")}var i=r.length;var o=new Array(i);for(var a=0;a<i;a++){o[a]=r[a]}return t.exports(o)}},1546:t=>{"use strict";t.exports=function(t){if(t===null||t===undefined){return[]}return Array.isArray(t)?t:[t]}},8782:t=>{"use strict";
/*!
 * assign-symbols <https://github.com/jonschlinkert/assign-symbols>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function(t,r){if(t===null||typeof t==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof r==="undefined"||typeof Symbol==="undefined"){return t}if(typeof Object.getOwnPropertySymbols!=="function"){return t}var i=Object.prototype.propertyIsEnumerable;var o=Object(t);var a=arguments.length,c=0;while(++c<a){var u=Object(arguments[c]);var l=Object.getOwnPropertySymbols(u);for(var h=0;h<l.length;h++){var p=l[h];if(i.call(u,p)){o[p]=u[p]}}}return o}},161:t=>{"use strict";function atob(t){return Buffer.from(t,"base64").toString("binary")}t.exports=atob.atob=atob},9417:t=>{"use strict";t.exports=balanced;function balanced(t,r,i){if(t instanceof RegExp)t=maybeMatch(t,i);if(r instanceof RegExp)r=maybeMatch(r,i);var o=range(t,r,i);return o&&{start:o[0],end:o[1],pre:i.slice(0,o[0]),body:i.slice(o[0]+t.length,o[1]),post:i.slice(o[1]+r.length)}}function maybeMatch(t,r){var i=r.match(t);return i?i[0]:null}balanced.range=range;function range(t,r,i){var o,a,c,u,l;var h=i.indexOf(t);var p=i.indexOf(r,h+1);var d=h;if(h>=0&&p>0){if(t===r){return[h,p]}o=[];c=i.length;while(d>=0&&!l){if(d==h){o.push(d);h=i.indexOf(t,d+1)}else if(o.length==1){l=[o.pop(),p]}else{a=o.pop();if(a<c){c=a;u=p}p=i.indexOf(r,d+1)}d=h<p&&h>=0?h:p}if(o.length){l=[c,u]}}return l}},842:(t,r,i)=>{"use strict";var o=i(3837);var a=i(9780);var c=i(4365);var u=i(6172);var l=i(5509);var h=i(4540);var p=i(198);var d=i(274);function namespace(t){var r=t?c.namespace(t):c;var i=[];function Base(t,i){if(!(this instanceof Base)){return new Base(t,i)}r.call(this,t);this.is("base");this.initBase(t,i)}o.inherits(Base,r);u(Base);Base.prototype.initBase=function(r,o){this.options=h({},this.options,o);this.cache=this.cache||{};this.define("registered",{});if(t)this[t]={};this.define("_callbacks",this._callbacks);if(l(r)){this.visit("set",r)}Base.run(this,"use",i)};Base.prototype.is=function(t){if(typeof t!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+p(t),true);this.define("_name",t);this.define("_appname",t);return this};Base.prototype.isRegistered=function(t,r){if(this.registered.hasOwnProperty(t)){return true}if(r!==false){this.registered[t]=true;this.emit("plugin",t)}return false};Base.prototype.use=function(t){t.call(this,this);return this};Base.prototype.define=function(t,r){if(l(t)){return this.visit("define",t)}a(this,t,r);return this};Base.prototype.mixin=function(t,r){Base.prototype[t]=r;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});a(Base,"use",(function(t){i.push(t);return Base}));a(Base,"run",(function(t,r,i){var o=i.length,a=0;while(o--){t[r](i[a++])}return Base}));a(Base,"extend",d.extend(Base,(function(t,r){t.prototype.mixins=t.prototype.mixins||[];a(t,"mixin",(function(r){var i=r(t.prototype,t);if(typeof i==="function"){t.prototype.mixins.push(i)}return t}));a(t,"mixins",(function(r){Base.run(r,"mixin",t.prototype.mixins);return t}));t.prototype.mixin=function(r,i){t.prototype[r]=i;return this};return Base})));a(Base,"mixin",(function(t){var r=t(Base.prototype,Base);if(typeof r==="function"){Base.prototype.mixins.push(r)}return Base}));a(Base,"mixins",(function(t){Base.run(t,"mixin",Base.prototype.mixins);return Base}));a(Base,"inherit",d.inherit);a(Base,"bubble",d.bubble);return Base}t.exports=namespace();t.exports.namespace=namespace},9780:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(567);t.exports=function defineProperty(t,r,i){if(typeof t!=="object"&&typeof t!=="function"){throw new TypeError("expected an object or function.")}if(typeof r!=="string"){throw new TypeError("expected `prop` to be a string.")}if(o(i)&&("set"in i||"get"in i)){return Object.defineProperty(t,r,i)}return Object.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:i})}},3717:(t,r,i)=>{var o=i(6891);var a=i(9417);t.exports=expandTop;var c="\0SLASH"+Math.random()+"\0";var u="\0OPEN"+Math.random()+"\0";var l="\0CLOSE"+Math.random()+"\0";var h="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(t){return parseInt(t,10)==t?parseInt(t,10):t.charCodeAt(0)}function escapeBraces(t){return t.split("\\\\").join(c).split("\\{").join(u).split("\\}").join(l).split("\\,").join(h).split("\\.").join(p)}function unescapeBraces(t){return t.split(c).join("\\").split(u).join("{").split(l).join("}").split(h).join(",").split(p).join(".")}function parseCommaParts(t){if(!t)return[""];var r=[];var i=a("{","}",t);if(!i)return t.split(",");var o=i.pre;var c=i.body;var u=i.post;var l=o.split(",");l[l.length-1]+="{"+c+"}";var h=parseCommaParts(u);if(u.length){l[l.length-1]+=h.shift();l.push.apply(l,h)}r.push.apply(r,l);return r}function expandTop(t){if(!t)return[];if(t.substr(0,2)==="{}"){t="\\{\\}"+t.substr(2)}return expand(escapeBraces(t),true).map(unescapeBraces)}function identity(t){return t}function embrace(t){return"{"+t+"}"}function isPadded(t){return/^-?0\d/.test(t)}function lte(t,r){return t<=r}function gte(t,r){return t>=r}function expand(t,r){var i=[];var c=a("{","}",t);if(!c||/\$$/.test(c.pre))return[t];var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body);var p=u||h;var d=c.body.indexOf(",")>=0;if(!p&&!d){if(c.post.match(/,.*\}/)){t=c.pre+"{"+c.body+l+c.post;return expand(t)}return[t]}var m;if(p){m=c.body.split(/\.\./)}else{m=parseCommaParts(c.body);if(m.length===1){m=expand(m[0],false).map(embrace);if(m.length===1){var g=c.post.length?expand(c.post,false):[""];return g.map((function(t){return c.pre+m[0]+t}))}}}var v=c.pre;var g=c.post.length?expand(c.post,false):[""];var y;if(p){var b=numeric(m[0]);var w=numeric(m[1]);var x=Math.max(m[0].length,m[1].length);var S=m.length==3?Math.abs(numeric(m[2])):1;var E=lte;var O=w<b;if(O){S*=-1;E=gte}var A=m.some(isPadded);y=[];for(var _=b;E(_,w);_+=S){var k;if(h){k=String.fromCharCode(_);if(k==="\\")k=""}else{k=String(_);if(A){var C=x-k.length;if(C>0){var j=new Array(C+1).join("0");if(_<0)k="-"+j+k.slice(1);else k=j+k}}}y.push(k)}}else{y=o(m,(function(t){return expand(t,false)}))}for(var P=0;P<y.length;P++){for(var R=0;R<g.length;R++){var M=v+y[P]+g[R];if(!r||p||M)i.push(M)}}return i}},3818:(t,r,i)=>{"use strict";const o=i(1383);const a=["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","punycode","querystring","readline","repl","stream","string_decoder","sys","timers","tls","tty","url","util","vm","zlib"];const c={freelist:"<6.0.0",v8:">=1.0.0",process:">=1.1.0",inspector:">=8.0.0",async_hooks:">=8.1.0",http2:">=8.4.0",perf_hooks:">=8.5.0",trace_events:">=10.0.0",worker_threads:">=12.0.0","node:test":">=18.0.0"};const u={worker_threads:">=10.5.0",wasi:">=12.16.0",diagnostics_channel:"^14.17.0 || >=15.1.0"};t.exports=({version:t=process.version,experimental:r=false}={})=>{const i=[...a];for(const[r,a]of Object.entries(c)){if(t==="*"||o.satisfies(t,a)){i.push(r)}}if(r){for(const[r,a]of Object.entries(u)){if(!i.includes(r)&&(t==="*"||o.satisfies(t,a))){i.push(r)}}}return i}},4365:(t,r,i)=>{"use strict";var o=i(5509);var a=i(6172);var c=i(3434);var u=i(8636);var l=i(7303);var h=i(1571);var p=i(9611);var d=i(8887);var m=i(4269);function namespace(t){function Cache(r){if(t){this[t]={}}if(r){this.set(r)}}a(Cache.prototype);Cache.prototype.set=function(r,i){if(Array.isArray(r)&&arguments.length===2){r=u(r)}if(o(r)||Array.isArray(r)){this.visit("set",r)}else{m(t?this[t]:this,r,i);this.emit("set",r,i)}return this};Cache.prototype.union=function(r,i){if(Array.isArray(r)&&arguments.length===2){r=u(r)}var o=t?this[t]:this;l(o,r,arrayify(i));this.emit("union",i);return this};Cache.prototype.get=function(r){r=u(arguments);var i=t?this[t]:this;var o=p(i,r);this.emit("get",r,o);return o};Cache.prototype.has=function(r){r=u(arguments);var i=t?this[t]:this;var o=p(i,r);var a=typeof o!=="undefined";this.emit("has",r,a);return a};Cache.prototype.del=function(r){if(Array.isArray(r)){this.visit("del",r)}else{h(t?this[t]:this,r);this.emit("del",r)}return this};Cache.prototype.clear=function(){if(t){this[t]={}}};Cache.prototype.visit=function(t,r){c(this,t,r);return this};return Cache}function arrayify(t){return t?Array.isArray(t)?t:[t]:[]}t.exports=namespace();t.exports.namespace=namespace},9581:t=>{"use strict";var r=global.process&&process.nextTick||global.setImmediate||function(t){setTimeout(t,0)};t.exports=function maybe(t,i){if(t){i.then((function(i){r((function(){t(null,i)}))}),(function(i){r((function(){t(i)}))}));return undefined}else{return i}}},8818:(t,r,i)=>{"use strict";const o=i(2068);const{stdout:a,stderr:c}=i(9318);const{stringReplaceAll:u,stringEncaseCRLFWithFirstIndex:l}=i(2415);const{isArray:h}=Array;const p=["ansi","ansi","ansi256","ansi16m"];const d=Object.create(null);const applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=a?a.level:0;t.level=r.level===undefined?i:r.level};class ChalkClass{constructor(t){return chalkFactory(t)}}const chalkFactory=t=>{const r={};applyOptions(r,t);r.template=(...t)=>chalkTag(r.template,...t);Object.setPrototypeOf(r,Chalk.prototype);Object.setPrototypeOf(r.template,r);r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")};r.template.Instance=ChalkClass;return r.template};function Chalk(t){return chalkFactory(t)}for(const[t,r]of Object.entries(o)){d[t]={get(){const i=createBuilder(this,createStyler(r.open,r.close,this._styler),this._isEmpty);Object.defineProperty(this,t,{value:i});return i}}}d.visible={get(){const t=createBuilder(this,this._styler,true);Object.defineProperty(this,"visible",{value:t});return t}};const m=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of m){d[t]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.color[p[r]][t](...i),o.color.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}for(const t of m){const r="bg"+t[0].toUpperCase()+t.slice(1);d[r]={get(){const{level:r}=this;return function(...i){const a=createStyler(o.bgColor[p[r]][t](...i),o.bgColor.close,this._styler);return createBuilder(this,a,this._isEmpty)}}}}const g=Object.defineProperties((()=>{}),{...d,level:{enumerable:true,get(){return this._generator.level},set(t){this._generator.level=t}}});const createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const createBuilder=(t,r,i)=>{const builder=(...t)=>{if(h(t[0])&&h(t[0].raw)){return applyStyle(builder,chalkTag(builder,...t))}return applyStyle(builder,t.length===1?""+t[0]:t.join(" "))};Object.setPrototypeOf(builder,g);builder._generator=t;builder._styler=r;builder._isEmpty=i;return builder};const applyStyle=(t,r)=>{if(t.level<=0||!r){return t._isEmpty?"":r}let i=t._styler;if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.indexOf("")!==-1){while(i!==undefined){r=u(r,i.close,i.open);i=i.parent}}const c=r.indexOf("\n");if(c!==-1){r=l(r,a,o,c)}return o+r+a};let v;const chalkTag=(t,...r)=>{const[o]=r;if(!h(o)||!h(o.raw)){return r.join(" ")}const a=r.slice(1);const c=[o.raw[0]];for(let t=1;t<o.length;t++){c.push(String(a[t-1]).replace(/[{}\\]/g,"\\$&"),String(o.raw[t]))}if(v===undefined){v=i(500)}return v(t,c.join(""))};Object.defineProperties(Chalk.prototype,d);const y=Chalk();y.supportsColor=a;y.stderr=Chalk({level:c?c.level:0});y.stderr.supportsColor=c;t.exports=y},500:t=>{"use strict";const r=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const i=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const o=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const a=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi;const c=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(t){const r=t[0]==="u";const i=t[1]==="{";if(r&&!i&&t.length===5||t[0]==="x"&&t.length===3){return String.fromCharCode(parseInt(t.slice(1),16))}if(r&&i){return String.fromCodePoint(parseInt(t.slice(2,-1),16))}return c.get(t)||t}function parseArguments(t,r){const i=[];const c=r.trim().split(/\s*,\s*/g);let u;for(const r of c){const c=Number(r);if(!Number.isNaN(c)){i.push(c)}else if(u=r.match(o)){i.push(u[2].replace(a,((t,r,i)=>r?unescape(r):i)))}else{throw new Error(`Invalid Chalk template style argument: ${r} (in style '${t}')`)}}return i}function parseStyle(t){i.lastIndex=0;const r=[];let o;while((o=i.exec(t))!==null){const t=o[1];if(o[2]){const i=parseArguments(t,o[2]);r.push([t].concat(i))}else{r.push([t])}}return r}function buildStyle(t,r){const i={};for(const t of r){for(const r of t.styles){i[r[0]]=t.inverse?null:r.slice(1)}}let o=t;for(const[t,r]of Object.entries(i)){if(!Array.isArray(r)){continue}if(!(t in o)){throw new Error(`Unknown Chalk style: ${t}`)}o=r.length>0?o[t](...r):o[t]}return o}t.exports=(t,i)=>{const o=[];const a=[];let c=[];i.replace(r,((r,i,u,l,h,p)=>{if(i){c.push(unescape(i))}else if(l){const r=c.join("");c=[];a.push(o.length===0?r:buildStyle(t,o)(r));o.push({inverse:u,styles:parseStyle(l)})}else if(h){if(o.length===0){throw new Error("Found extraneous } in Chalk template literal")}a.push(buildStyle(t,o)(c.join("")));c=[];o.pop()}else{c.push(p)}}));a.push(c.join(""));if(o.length>0){const t=`Chalk template literal is missing ${o.length} closing bracket${o.length===1?"":"s"} (\`}\`)`;throw new Error(t)}return a.join("")}},2415:t=>{"use strict";const stringReplaceAll=(t,r,i)=>{let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let c=0;let u="";do{u+=t.substr(c,o-c)+r+i;c=o+a;o=t.indexOf(r,c)}while(o!==-1);u+=t.substr(c);return u};const stringEncaseCRLFWithFirstIndex=(t,r,i,o)=>{let a=0;let c="";do{const u=t[o-1]==="\r";c+=t.substr(a,(u?o-1:o)-a)+r+(u?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);c+=t.substr(a);return c};t.exports={stringReplaceAll:stringReplaceAll,stringEncaseCRLFWithFirstIndex:stringEncaseCRLFWithFirstIndex}},274:(t,r,i)=>{"use strict";var o=i(3837);var a=i(8815);var c=i(6967);var u=i(9480);var l=i(5509);var h=t.exports;h.isObject=function isObject(t){return l(t)||typeof t==="function"};h.has=function has(t,r){r=h.arrayify(r);var i=r.length;if(h.isObject(t)){for(var o in t){if(r.indexOf(o)>-1){return true}}var a=h.nativeKeys(t);return h.has(a,r)}if(Array.isArray(t)){var c=t;while(i--){if(c.indexOf(r[i])>-1){return true}}return false}throw new TypeError("expected an array or object.")};h.hasAll=function hasAll(t,r){r=h.arrayify(r);var i=r.length;while(i--){if(!h.has(t,r[i])){return false}}return true};h.arrayify=function arrayify(t){return t?Array.isArray(t)?t:[t]:[]};h.noop=function noop(){return};h.identity=function identity(t){return t};h.hasConstructor=function hasConstructor(t){return h.isObject(t)&&typeof t.constructor!=="undefined"};h.nativeKeys=function nativeKeys(t){if(!h.hasConstructor(t))return[];var r=Object.getOwnPropertyNames(t);if("caller"in t)r.push("caller");return r};h.getDescriptor=function getDescriptor(t,r){if(!h.isObject(t)){throw new TypeError("expected an object.")}if(typeof r!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(t,r)};h.copyDescriptor=function copyDescriptor(t,r,i){if(!h.isObject(t)){throw new TypeError("expected receiving object to be an object.")}if(!h.isObject(r)){throw new TypeError("expected providing object to be an object.")}if(typeof i!=="string"){throw new TypeError("expected name to be a string.")}var o=h.getDescriptor(r,i);if(o)Object.defineProperty(t,i,o)};h.copy=function copy(t,r,i){if(!h.isObject(t)){throw new TypeError("expected receiving object to be an object.")}if(!h.isObject(r)){throw new TypeError("expected providing object to be an object.")}var o=Object.getOwnPropertyNames(r);var a=Object.keys(r);var u=o.length,l;i=h.arrayify(i);while(u--){l=o[u];if(h.has(a,l)){c(t,l,r[l])}else if(!(l in t)&&!h.has(i,l)){h.copyDescriptor(t,r,l)}}};h.inherit=function inherit(t,r,i){if(!h.isObject(t)){throw new TypeError("expected receiving object to be an object.")}if(!h.isObject(r)){throw new TypeError("expected providing object to be an object.")}var o=[];for(var a in r){o.push(a);t[a]=r[a]}o=o.concat(h.arrayify(i));var c=r.prototype||r;var u=t.prototype||t;h.copy(u,c,o)};h.extend=function(){return u.apply(null,arguments)};h.bubble=function(t,r){r=r||[];t.bubble=function(i,o){if(Array.isArray(o)){r=a([],r,o)}var c=r.length;var u=-1;while(++u<c){var l=r[u];t.on(l,i.emit.bind(i,l))}h.bubble(i,r)}}},3434:(t,r,i)=>{"use strict";
/*!
 * collection-visit <https://github.com/jonschlinkert/collection-visit>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(3178);var a=i(2144);t.exports=function(t,r,i){var c;if(typeof i==="string"&&r in t){var u=[].slice.call(arguments,2);c=t[r].apply(t,u)}else if(Array.isArray(i)){c=a.apply(null,arguments)}else{c=o.apply(null,arguments)}if(typeof c!=="undefined"){return c}return t}},7391:(t,r,i)=>{const o=i(8510);const a={};for(const t of Object.keys(o)){a[o[t]]=t}const c={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=c;for(const t of Object.keys(c)){if(!("channels"in c[t])){throw new Error("missing channels property: "+t)}if(!("labels"in c[t])){throw new Error("missing channel labels property: "+t)}if(c[t].labels.length!==c[t].channels){throw new Error("channel and label counts mismatch: "+t)}const{channels:r,labels:i}=c[t];delete c[t].channels;delete c[t].labels;Object.defineProperty(c[t],"channels",{value:r});Object.defineProperty(c[t],"labels",{value:i})}c.rgb.hsl=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(r,i,o);const c=Math.max(r,i,o);const u=c-a;let l;let h;if(c===a){l=0}else if(r===c){l=(i-o)/u}else if(i===c){l=2+(o-r)/u}else if(o===c){l=4+(r-i)/u}l=Math.min(l*60,360);if(l<0){l+=360}const p=(a+c)/2;if(c===a){h=0}else if(p<=.5){h=u/(c+a)}else{h=u/(2-c-a)}return[l,h*100,p*100]};c.rgb.hsv=function(t){let r;let i;let o;let a;let c;const u=t[0]/255;const l=t[1]/255;const h=t[2]/255;const p=Math.max(u,l,h);const d=p-Math.min(u,l,h);const diffc=function(t){return(p-t)/6/d+1/2};if(d===0){a=0;c=0}else{c=d/p;r=diffc(u);i=diffc(l);o=diffc(h);if(u===p){a=o-i}else if(l===p){a=1/3+r-o}else if(h===p){a=2/3+i-r}if(a<0){a+=1}else if(a>1){a-=1}}return[a*360,c*100,p*100]};c.rgb.hwb=function(t){const r=t[0];const i=t[1];let o=t[2];const a=c.rgb.hsl(t)[0];const u=1/255*Math.min(r,Math.min(i,o));o=1-1/255*Math.max(r,Math.max(i,o));return[a,u*100,o*100]};c.rgb.cmyk=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.min(1-r,1-i,1-o);const c=(1-r-a)/(1-a)||0;const u=(1-i-a)/(1-a)||0;const l=(1-o-a)/(1-a)||0;return[c*100,u*100,l*100,a*100]};function comparativeDistance(t,r){return(t[0]-r[0])**2+(t[1]-r[1])**2+(t[2]-r[2])**2}c.rgb.keyword=function(t){const r=a[t];if(r){return r}let i=Infinity;let c;for(const r of Object.keys(o)){const a=o[r];const u=comparativeDistance(t,a);if(u<i){i=u;c=r}}return c};c.keyword.rgb=function(t){return o[t]};c.rgb.xyz=function(t){let r=t[0]/255;let i=t[1]/255;let o=t[2]/255;r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;o=o>.04045?((o+.055)/1.055)**2.4:o/12.92;const a=r*.4124+i*.3576+o*.1805;const c=r*.2126+i*.7152+o*.0722;const u=r*.0193+i*.1192+o*.9505;return[a*100,c*100,u*100]};c.rgb.lab=function(t){const r=c.rgb.xyz(t);let i=r[0];let o=r[1];let a=r[2];i/=95.047;o/=100;a/=108.883;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;a=a>.008856?a**(1/3):7.787*a+16/116;const u=116*o-16;const l=500*(i-o);const h=200*(o-a);return[u,l,h]};c.hsl.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;let a;let c;let u;if(i===0){u=o*255;return[u,u,u]}if(o<.5){a=o*(1+i)}else{a=o+i-o*i}const l=2*o-a;const h=[0,0,0];for(let t=0;t<3;t++){c=r+1/3*-(t-1);if(c<0){c++}if(c>1){c--}if(6*c<1){u=l+(a-l)*6*c}else if(2*c<1){u=a}else if(3*c<2){u=l+(a-l)*(2/3-c)*6}else{u=l}h[t]=u*255}return h};c.hsl.hsv=function(t){const r=t[0];let i=t[1]/100;let o=t[2]/100;let a=i;const c=Math.max(o,.01);o*=2;i*=o<=1?o:2-o;a*=c<=1?c:2-c;const u=(o+i)/2;const l=o===0?2*a/(c+a):2*i/(o+i);return[r,l*100,u*100]};c.hsv.rgb=function(t){const r=t[0]/60;const i=t[1]/100;let o=t[2]/100;const a=Math.floor(r)%6;const c=r-Math.floor(r);const u=255*o*(1-i);const l=255*o*(1-i*c);const h=255*o*(1-i*(1-c));o*=255;switch(a){case 0:return[o,h,u];case 1:return[l,o,u];case 2:return[u,o,h];case 3:return[u,l,o];case 4:return[h,u,o];case 5:return[o,u,l]}};c.hsv.hsl=function(t){const r=t[0];const i=t[1]/100;const o=t[2]/100;const a=Math.max(o,.01);let c;let u;u=(2-i)*o;const l=(2-i)*a;c=i*a;c/=l<=1?l:2-l;c=c||0;u/=2;return[r,c*100,u*100]};c.hwb.rgb=function(t){const r=t[0]/360;let i=t[1]/100;let o=t[2]/100;const a=i+o;let c;if(a>1){i/=a;o/=a}const u=Math.floor(6*r);const l=1-o;c=6*r-u;if((u&1)!==0){c=1-c}const h=i+c*(l-i);let p;let d;let m;switch(u){default:case 6:case 0:p=l;d=h;m=i;break;case 1:p=h;d=l;m=i;break;case 2:p=i;d=l;m=h;break;case 3:p=i;d=h;m=l;break;case 4:p=h;d=i;m=l;break;case 5:p=l;d=i;m=h;break}return[p*255,d*255,m*255]};c.cmyk.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;const a=t[3]/100;const c=1-Math.min(1,r*(1-a)+a);const u=1-Math.min(1,i*(1-a)+a);const l=1-Math.min(1,o*(1-a)+a);return[c*255,u*255,l*255]};c.xyz.rgb=function(t){const r=t[0]/100;const i=t[1]/100;const o=t[2]/100;let a;let c;let u;a=r*3.2406+i*-1.5372+o*-.4986;c=r*-.9689+i*1.8758+o*.0415;u=r*.0557+i*-.204+o*1.057;a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92;c=c>.0031308?1.055*c**(1/2.4)-.055:c*12.92;u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92;a=Math.min(Math.max(0,a),1);c=Math.min(Math.max(0,c),1);u=Math.min(Math.max(0,u),1);return[a*255,c*255,u*255]};c.xyz.lab=function(t){let r=t[0];let i=t[1];let o=t[2];r/=95.047;i/=100;o/=108.883;r=r>.008856?r**(1/3):7.787*r+16/116;i=i>.008856?i**(1/3):7.787*i+16/116;o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*i-16;const c=500*(r-i);const u=200*(i-o);return[a,c,u]};c.lab.xyz=function(t){const r=t[0];const i=t[1];const o=t[2];let a;let c;let u;c=(r+16)/116;a=i/500+c;u=c-o/200;const l=c**3;const h=a**3;const p=u**3;c=l>.008856?l:(c-16/116)/7.787;a=h>.008856?h:(a-16/116)/7.787;u=p>.008856?p:(u-16/116)/7.787;a*=95.047;c*=100;u*=108.883;return[a,c,u]};c.lab.lch=function(t){const r=t[0];const i=t[1];const o=t[2];let a;const c=Math.atan2(o,i);a=c*360/2/Math.PI;if(a<0){a+=360}const u=Math.sqrt(i*i+o*o);return[r,u,a]};c.lch.lab=function(t){const r=t[0];const i=t[1];const o=t[2];const a=o/360*2*Math.PI;const c=i*Math.cos(a);const u=i*Math.sin(a);return[r,c,u]};c.rgb.ansi16=function(t,r=null){const[i,o,a]=t;let u=r===null?c.rgb.hsv(t)[2]:r;u=Math.round(u/50);if(u===0){return 30}let l=30+(Math.round(a/255)<<2|Math.round(o/255)<<1|Math.round(i/255));if(u===2){l+=60}return l};c.hsv.ansi16=function(t){return c.rgb.ansi16(c.hsv.rgb(t),t[2])};c.rgb.ansi256=function(t){const r=t[0];const i=t[1];const o=t[2];if(r===i&&i===o){if(r<8){return 16}if(r>248){return 231}return Math.round((r-8)/247*24)+232}const a=16+36*Math.round(r/255*5)+6*Math.round(i/255*5)+Math.round(o/255*5);return a};c.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7){if(t>50){r+=3.5}r=r/10.5*255;return[r,r,r]}const i=(~~(t>50)+1)*.5;const o=(r&1)*i*255;const a=(r>>1&1)*i*255;const c=(r>>2&1)*i*255;return[o,a,c]};c.ansi256.rgb=function(t){if(t>=232){const r=(t-232)*10+8;return[r,r,r]}t-=16;let r;const i=Math.floor(t/36)/5*255;const o=Math.floor((r=t%36)/6)/5*255;const a=r%6/5*255;return[i,o,a]};c.rgb.hex=function(t){const r=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255);const i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};c.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r){return[0,0,0]}let i=r[0];if(r[0].length===3){i=i.split("").map((t=>t+t)).join("")}const o=parseInt(i,16);const a=o>>16&255;const c=o>>8&255;const u=o&255;return[a,c,u]};c.rgb.hcg=function(t){const r=t[0]/255;const i=t[1]/255;const o=t[2]/255;const a=Math.max(Math.max(r,i),o);const c=Math.min(Math.min(r,i),o);const u=a-c;let l;let h;if(u<1){l=c/(1-u)}else{l=0}if(u<=0){h=0}else if(a===r){h=(i-o)/u%6}else if(a===i){h=2+(o-r)/u}else{h=4+(r-i)/u}h/=6;h%=1;return[h*360,u*100,l*100]};c.hsl.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=i<.5?2*r*i:2*r*(1-i);let a=0;if(o<1){a=(i-.5*o)/(1-o)}return[t[0],o*100,a*100]};c.hsv.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=r*i;let a=0;if(o<1){a=(i-o)/(1-o)}return[t[0],o*100,a*100]};c.hcg.rgb=function(t){const r=t[0]/360;const i=t[1]/100;const o=t[2]/100;if(i===0){return[o*255,o*255,o*255]}const a=[0,0,0];const c=r%1*6;const u=c%1;const l=1-u;let h=0;switch(Math.floor(c)){case 0:a[0]=1;a[1]=u;a[2]=0;break;case 1:a[0]=l;a[1]=1;a[2]=0;break;case 2:a[0]=0;a[1]=1;a[2]=u;break;case 3:a[0]=0;a[1]=l;a[2]=1;break;case 4:a[0]=u;a[1]=0;a[2]=1;break;default:a[0]=1;a[1]=0;a[2]=l}h=(1-i)*o;return[(i*a[0]+h)*255,(i*a[1]+h)*255,(i*a[2]+h)*255]};c.hcg.hsv=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);let a=0;if(o>0){a=r/o}return[t[0],a*100,o*100]};c.hcg.hsl=function(t){const r=t[1]/100;const i=t[2]/100;const o=i*(1-r)+.5*r;let a=0;if(o>0&&o<.5){a=r/(2*o)}else if(o>=.5&&o<1){a=r/(2*(1-o))}return[t[0],a*100,o*100]};c.hcg.hwb=function(t){const r=t[1]/100;const i=t[2]/100;const o=r+i*(1-r);return[t[0],(o-r)*100,(1-o)*100]};c.hwb.hcg=function(t){const r=t[1]/100;const i=t[2]/100;const o=1-i;const a=o-r;let c=0;if(a<1){c=(o-a)/(1-a)}return[t[0],a*100,c*100]};c.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};c.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};c.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};c.gray.hsl=function(t){return[0,0,t[0]]};c.gray.hsv=c.gray.hsl;c.gray.hwb=function(t){return[0,100,t[0]]};c.gray.cmyk=function(t){return[0,0,0,t[0]]};c.gray.lab=function(t){return[t[0],0,0]};c.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255;const i=(r<<16)+(r<<8)+r;const o=i.toString(16).toUpperCase();return"000000".substring(o.length)+o};c.rgb.gray=function(t){const r=(t[0]+t[1]+t[2])/3;return[r/255*100]}},6931:(t,r,i)=>{const o=i(7391);const a=i(880);const c={};const u=Object.keys(o);function wrapRaw(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}return t(r)};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}function wrapRounded(t){const wrappedFn=function(...r){const i=r[0];if(i===undefined||i===null){return i}if(i.length>1){r=i}const o=t(r);if(typeof o==="object"){for(let t=o.length,r=0;r<t;r++){o[r]=Math.round(o[r])}}return o};if("conversion"in t){wrappedFn.conversion=t.conversion}return wrappedFn}u.forEach((t=>{c[t]={};Object.defineProperty(c[t],"channels",{value:o[t].channels});Object.defineProperty(c[t],"labels",{value:o[t].labels});const r=a(t);const i=Object.keys(r);i.forEach((i=>{const o=r[i];c[t][i]=wrapRounded(o);c[t][i].raw=wrapRaw(o)}))}));t.exports=c},880:(t,r,i)=>{const o=i(7391);function buildGraph(){const t={};const r=Object.keys(o);for(let i=r.length,o=0;o<i;o++){t[r[o]]={distance:-1,parent:null}}return t}function deriveBFS(t){const r=buildGraph();const i=[t];r[t].distance=0;while(i.length){const t=i.pop();const a=Object.keys(o[t]);for(let o=a.length,c=0;c<o;c++){const o=a[c];const u=r[o];if(u.distance===-1){u.distance=r[t].distance+1;u.parent=t;i.unshift(o)}}}return r}function link(t,r){return function(i){return r(t(i))}}function wrapConversion(t,r){const i=[r[t].parent,t];let a=o[r[t].parent][t];let c=r[t].parent;while(r[c].parent){i.unshift(r[c].parent);a=link(o[r[c].parent][c],a);c=r[c].parent}a.conversion=i;return a}t.exports=function(t){const r=deriveBFS(t);const i={};const o=Object.keys(r);for(let t=o.length,a=0;a<t;a++){const t=o[a];const c=r[t];if(c.parent===null){continue}i[t]=wrapConversion(t,r)}return i}},8510:t=>{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},1904:(t,r,i)=>{var o=i(2361).EventEmitter;var a=i(2081).spawn;var c=i(1017);var u=c.dirname;var l=c.basename;var h=i(7147);i(3837).inherits(Command,o);r=t.exports=new Command;r.Command=Command;r.Option=Option;function Option(t,r){this.flags=t;this.required=t.indexOf("<")>=0;this.optional=t.indexOf("[")>=0;this.bool=t.indexOf("-no-")===-1;t=t.split(/[ ,|]+/);if(t.length>1&&!/^[[<]/.test(t[1]))this.short=t.shift();this.long=t.shift();this.description=r||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(t){return this.short===t||this.long===t};function Command(t){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=t||""}Command.prototype.command=function(t,r,i){if(typeof r==="object"&&r!==null){i=r;r=null}i=i||{};var o=t.split(/ +/);var a=new Command(o.shift());if(r){a.description(r);this.executables=true;this._execs[a._name]=true;if(i.isDefault)this.defaultExecutable=a._name}a._noHelp=!!i.noHelp;this.commands.push(a);a.parseExpectedArgs(o);a.parent=this;if(r)return this;return a};Command.prototype.arguments=function(t){return this.parseExpectedArgs(t.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(t){if(!t.length)return;var r=this;t.forEach((function(t){var i={required:false,name:"",variadic:false};switch(t[0]){case"<":i.required=true;i.name=t.slice(1,-1);break;case"[":i.name=t.slice(1,-1);break}if(i.name.length>3&&i.name.slice(-3)==="..."){i.variadic=true;i.name=i.name.slice(0,-3)}if(i.name){r._args.push(i)}}));return this};Command.prototype.action=function(t){var r=this;var listener=function(i,o){i=i||[];o=o||[];var a=r.parseOptions(o);outputHelpIfNecessary(r,a.unknown);if(a.unknown.length>0){r.unknownOption(a.unknown[0])}if(a.args.length)i=a.args.concat(i);r._args.forEach((function(t,o){if(t.required&&i[o]==null){r.missingArgument(t.name)}else if(t.variadic){if(o!==r._args.length-1){r.variadicArgNotLast(t.name)}i[o]=i.splice(o)}}));if(r._args.length){i[r._args.length]=r}else{i.push(r)}t.apply(r,i)};var i=this.parent||this;var o=i===this?"*":this._name;i.on("command:"+o,listener);if(this._alias)i.on("command:"+this._alias,listener);return this};Command.prototype.option=function(t,r,i,o){var a=this,c=new Option(t,r),u=c.name(),l=c.attributeName();if(typeof i!=="function"){if(i instanceof RegExp){var h=i;i=function(t,r){var i=h.exec(t);return i?i[0]:r}}else{o=i;i=null}}if(!c.bool||c.optional||c.required){if(!c.bool)o=true;if(o!==undefined){a[l]=o;c.defaultValue=o}}this.options.push(c);this.on("option:"+u,(function(t){if(t!==null&&i){t=i(t,a[l]===undefined?o:a[l])}if(typeof a[l]==="boolean"||typeof a[l]==="undefined"){if(t==null){a[l]=c.bool?o||true:false}else{a[l]=t}}else if(t!==null){a[l]=t}}));return this};Command.prototype.allowUnknownOption=function(t){this._allowUnknownOption=arguments.length===0||t;return this};Command.prototype.parse=function(t){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=t;this._name=this._name||l(t[1],".js");if(this.executables&&t.length<3&&!this.defaultExecutable){t.push("--help")}var r=this.parseOptions(this.normalize(t.slice(2)));var i=this.args=r.args;var o=this.parseArgs(this.args,r.unknown);var a=o.args[0];var c=null;if(a){c=this.commands.filter((function(t){return t.alias()===a}))[0]}if(this._execs[a]&&typeof this._execs[a]!=="function"){return this.executeSubCommand(t,i,r.unknown)}else if(c){i[0]=c._name;return this.executeSubCommand(t,i,r.unknown)}else if(this.defaultExecutable){i.unshift(this.defaultExecutable);return this.executeSubCommand(t,i,r.unknown)}return o};Command.prototype.executeSubCommand=function(t,r,i){r=r.concat(i);if(!r.length)this.help();if(r[0]==="help"&&r.length===1)this.help();if(r[0]==="help"){r[0]=r[1];r[1]="--help"}var o=t[1];var p=l(o,c.extname(o))+"-"+r[0];var d;var m=h.realpathSync(o);d=u(m);var g=c.join(d,p);var v=false;if(exists(g+".js")){p=g+".js";v=true}else if(exists(g+".ts")){p=g+".ts";v=true}else if(exists(g)){p=g}r=r.slice(1);var y;if(process.platform!=="win32"){if(v){r.unshift(p);r=(process.execArgv||[]).concat(r);y=a(process.argv[0],r,{stdio:"inherit",customFds:[0,1,2]})}else{y=a(p,r,{stdio:"inherit",customFds:[0,1,2]})}}else{r.unshift(p);y=a(process.execPath,r,{stdio:"inherit"})}var b=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];b.forEach((function(t){process.on(t,(function(){if(y.killed===false&&y.exitCode===null){y.kill(t)}}))}));y.on("close",process.exit.bind(process));y.on("error",(function(t){if(t.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",p)}else if(t.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",p)}process.exit(1)}));this.runningCommand=y};Command.prototype.normalize=function(t){var r=[],i,o,a;for(var c=0,u=t.length;c<u;++c){i=t[c];if(c>0){o=this.optionFor(t[c-1])}if(i==="--"){r=r.concat(t.slice(c));break}else if(o&&o.required){r.push(i)}else if(i.length>1&&i[0]==="-"&&i[1]!=="-"){i.slice(1).split("").forEach((function(t){r.push("-"+t)}))}else if(/^--/.test(i)&&~(a=i.indexOf("="))){r.push(i.slice(0,a),i.slice(a+1))}else{r.push(i)}}return r};Command.prototype.parseArgs=function(t,r){var i;if(t.length){i=t[0];if(this.listeners("command:"+i).length){this.emit("command:"+t.shift(),t,r)}else{this.emit("command:*",t)}}else{outputHelpIfNecessary(this,r);if(r.length>0){this.unknownOption(r[0])}if(this.commands.length===0&&this._args.filter((function(t){return t.required})).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(t){for(var r=0,i=this.options.length;r<i;++r){if(this.options[r].is(t)){return this.options[r]}}};Command.prototype.parseOptions=function(t){var r=[],i=t.length,o,a,c;var u=[];for(var l=0;l<i;++l){c=t[l];if(o){r.push(c);continue}if(c==="--"){o=true;continue}a=this.optionFor(c);if(a){if(a.required){c=t[++l];if(c==null)return this.optionMissingArgument(a);this.emit("option:"+a.name(),c)}else if(a.optional){c=t[l+1];if(c==null||c[0]==="-"&&c!=="-"){c=null}else{++l}this.emit("option:"+a.name(),c)}else{this.emit("option:"+a.name())}continue}if(c.length>1&&c[0]==="-"){u.push(c);if(l+1<t.length&&t[l+1][0]!=="-"){u.push(t[++l])}continue}r.push(c)}return{args:r,unknown:u}};Command.prototype.opts=function(){var t={},r=this.options.length;for(var i=0;i<r;i++){var o=this.options[i].attributeName();t[o]=o===this._versionOptionName?this._version:this[o]}return t};Command.prototype.missingArgument=function(t){console.error("error: missing required argument `%s'",t);process.exit(1)};Command.prototype.optionMissingArgument=function(t,r){if(r){console.error("error: option `%s' argument missing, got `%s'",t.flags,r)}else{console.error("error: option `%s' argument missing",t.flags)}process.exit(1)};Command.prototype.unknownOption=function(t){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",t);process.exit(1)};Command.prototype.variadicArgNotLast=function(t){console.error("error: variadic arguments must be last `%s'",t);process.exit(1)};Command.prototype.version=function(t,r){if(arguments.length===0)return this._version;this._version=t;r=r||"-V, --version";var i=new Option(r,"output the version number");this._versionOptionName=i.long.substr(2)||"version";this.options.push(i);this.on("option:"+this._versionOptionName,(function(){process.stdout.write(t+"\n");process.exit(0)}));return this};Command.prototype.description=function(t,r){if(arguments.length===0)return this._description;this._description=t;this._argsDescription=r;return this};Command.prototype.alias=function(t){var r=this;if(this.commands.length!==0){r=this.commands[this.commands.length-1]}if(arguments.length===0)return r._alias;if(t===r._name)throw new Error("Command alias can't be the same as its name");r._alias=t;return this};Command.prototype.usage=function(t){var r=this._args.map((function(t){return humanReadableArgName(t)}));var i="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+r.join(" "):"");if(arguments.length===0)return this._usage||i;this._usage=t;return this};Command.prototype.name=function(t){if(arguments.length===0)return this._name;this._name=t;return this};Command.prototype.prepareCommands=function(){return this.commands.filter((function(t){return!t._noHelp})).map((function(t){var r=t._args.map((function(t){return humanReadableArgName(t)})).join(" ");return[t._name+(t._alias?"|"+t._alias:"")+(t.options.length?" [options]":"")+(r?" "+r:""),t._description]}))};Command.prototype.largestCommandLength=function(){var t=this.prepareCommands();return t.reduce((function(t,r){return Math.max(t,r[0].length)}),0)};Command.prototype.largestOptionLength=function(){var t=[].slice.call(this.options);t.push({flags:"-h, --help"});return t.reduce((function(t,r){return Math.max(t,r.flags.length)}),0)};Command.prototype.largestArgLength=function(){return this._args.reduce((function(t,r){return Math.max(t,r.name.length)}),0)};Command.prototype.padWidth=function(){var t=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>t){t=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>t){t=this.largestCommandLength()}}return t};Command.prototype.optionHelp=function(){var t=this.padWidth();return this.options.map((function(r){return pad(r.flags,t)+"  "+r.description+(r.bool&&r.defaultValue!==undefined?" (default: "+JSON.stringify(r.defaultValue)+")":"")})).concat([pad("-h, --help",t)+"  "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var t=this.prepareCommands();var r=this.padWidth();return["Commands:",t.map((function(t){var i=t[1]?"  "+t[1]:"";return(i?pad(t[0],r):t[0])+i})).join("\n").replace(/^/gm,"  "),""].join("\n")};Command.prototype.helpInformation=function(){var t=[];if(this._description){t=[this._description,""];var r=this._argsDescription;if(r&&this._args.length){var i=this.padWidth();t.push("Arguments:");t.push("");this._args.forEach((function(o){t.push("  "+pad(o.name,i)+"  "+r[o.name])}));t.push("")}}var o=this._name;if(this._alias){o=o+"|"+this._alias}var a=["Usage: "+o+" "+this.usage(),""];var c=[];var u=this.commandHelp();if(u)c=[u];var l=["Options:",""+this.optionHelp().replace(/^/gm,"  "),""];return a.concat(t).concat(l).concat(c).join("\n")};Command.prototype.outputHelp=function(t){if(!t){t=function(t){return t}}process.stdout.write(t(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(t){this.outputHelp(t);process.exit()};function camelcase(t){return t.split("-").reduce((function(t,r){return t+r[0].toUpperCase()+r.slice(1)}))}function pad(t,r){var i=Math.max(0,r-t.length);return t+Array(i+1).join(" ")}function outputHelpIfNecessary(t,r){r=r||[];for(var i=0;i<r.length;i++){if(r[i]==="--help"||r[i]==="-h"){t.outputHelp();process.exit(0)}}}function humanReadableArgName(t){var r=t.name+(t.variadic===true?"...":"");return t.required?"<"+r+">":"["+r+"]"}function exists(t){try{if(h.statSync(t).isFile()){return true}}catch(t){return false}}},6172:t=>{if(true){t.exports=Emitter}function Emitter(t){if(t)return mixin(t)}function mixin(t){for(var r in Emitter.prototype){t[r]=Emitter.prototype[r]}return t}Emitter.prototype.on=Emitter.prototype.addEventListener=function(t,r){this._callbacks=this._callbacks||{};(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(r);return this};Emitter.prototype.once=function(t,r){function on(){this.off(t,on);r.apply(this,arguments)}on.fn=r;this.on(t,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(t,r){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length){delete this._callbacks["$"+t];return this}var o;for(var a=0;a<i.length;a++){o=i[a];if(o===r||o.fn===r){i.splice(a,1);break}}if(i.length===0){delete this._callbacks["$"+t]}return this};Emitter.prototype.emit=function(t){this._callbacks=this._callbacks||{};var r=new Array(arguments.length-1),i=this._callbacks["$"+t];for(var o=1;o<arguments.length;o++){r[o-1]=arguments[o]}if(i){i=i.slice(0);for(var o=0,a=i.length;o<a;++o){i[o].apply(this,r)}}return this};Emitter.prototype.listeners=function(t){this._callbacks=this._callbacks||{};return this._callbacks["$"+t]||[]};Emitter.prototype.hasListeners=function(t){return!!this.listeners(t).length}},6891:t=>{t.exports=function(t,i){var o=[];for(var a=0;a<t.length;a++){var c=i(t[a],a);if(r(c))o.push.apply(o,c);else o.push(c)}return o};var r=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"}},1102:t=>{"use strict";
/*!
 * copy-descriptor <https://github.com/jonschlinkert/copy-descriptor>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function copyDescriptor(t,r,i,o){if(!isObject(r)&&typeof r!=="function"){o=i;i=r;r=t}if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected the first argument to be an object")}if(!isObject(r)&&typeof r!=="function"){throw new TypeError("expected provider to be an object")}if(typeof o!=="string"){o=i}if(typeof i!=="string"){throw new TypeError("expected key to be a string")}if(!(i in r)){throw new Error('property "'+i+'" does not exist')}var a=Object.getOwnPropertyDescriptor(r,i);if(a)Object.defineProperty(t,o,a)};function isObject(t){return{}.toString.call(t)==="[object Object]"}},8634:(t,r,i)=>{"use strict";const o=i(7978);class CpFileError extends o{constructor(t,r){super(t,r);Object.assign(this,r);this.name="CpFileError"}}t.exports=CpFileError},6312:(t,r,i)=>{"use strict";const o=i(7758);const a=i(9126);const c=i(4810);const u=i(8634);const l=c(o);r.closeSync=o.closeSync.bind(o);r.createWriteStream=o.createWriteStream.bind(o);r.createReadStream=(t,r)=>new Promise(((i,a)=>{const c=o.createReadStream(t,r);c.once("error",(r=>{a(new u(`Cannot read from \`${t}\`: ${r.message}`,r))}));c.once("readable",(()=>{i(c)}));c.once("end",(()=>{i(c)}))}));r.stat=t=>l.stat(t).catch((r=>{throw new u(`Cannot stat path \`${t}\`: ${r.message}`,r)}));r.lstat=t=>l.lstat(t).catch((r=>{throw new u(`lstat \`${t}\` failed: ${r.message}`,r)}));r.utimes=(t,r,i)=>l.utimes(t,r,i).catch((r=>{throw new u(`utimes \`${t}\` failed: ${r.message}`,r)}));r.chmod=(t,r)=>l.chmod(t,r).catch((r=>{throw new u(`chmod \`${t}\` failed: ${r.message}`,r)}));r.chown=(t,r,i)=>l.chown(t,r,i).catch((r=>{throw new u(`chown \`${t}\` failed: ${r.message}`,r)}));r.openSync=(t,r,i)=>{try{return o.openSync(t,r,i)}catch(i){if(r.includes("w")){throw new u(`Cannot write to \`${t}\`: ${i.message}`,i)}throw new u(`Cannot open \`${t}\`: ${i.message}`,i)}};r.readSync=(t,r,i,a,c,l)=>{try{return o.readSync(t,r,i,a,c)}catch(t){throw new u(`Cannot read from \`${l}\`: ${t.message}`,t)}};r.writeSync=(t,r,i,a,c,l)=>{try{return o.writeSync(t,r,i,a,c)}catch(t){throw new u(`Cannot write to \`${l}\`: ${t.message}`,t)}};r.statSync=t=>{try{return o.statSync(t)}catch(r){throw new u(`stat \`${t}\` failed: ${r.message}`,r)}};r.fstatSync=(t,r)=>{try{return o.fstatSync(t)}catch(t){throw new u(`fstat \`${r}\` failed: ${t.message}`,t)}};r.futimesSync=(t,r,i,a)=>{try{return o.futimesSync(t,r,i,a)}catch(t){throw new u(`futimes \`${a}\` failed: ${t.message}`,t)}};r.utimesSync=(t,r,i)=>{try{return o.utimesSync(t,r,i)}catch(r){throw new u(`utimes \`${t}\` failed: ${r.message}`,r)}};r.chmodSync=(t,r)=>{try{return o.chmodSync(t,r)}catch(r){throw new u(`chmod \`${t}\` failed: ${r.message}`,r)}};r.chownSync=(t,r,i)=>{try{return o.chownSync(t,r,i)}catch(r){throw new u(`chown \`${t}\` failed: ${r.message}`,r)}};r.makeDir=t=>a(t,{fs:o}).catch((r=>{throw new u(`Cannot create directory \`${t}\`: ${r.message}`,r)}));r.makeDirSync=t=>{try{a.sync(t,{fs:o})}catch(r){throw new u(`Cannot create directory \`${t}\`: ${r.message}`,r)}};if(o.copyFileSync){r.copyFileSync=(t,r,i)=>{try{o.copyFileSync(t,r,i)}catch(i){throw new u(`Cannot copy from \`${t}\` to \`${r}\`: ${i.message}`,i)}}}},4544:(t,r,i)=>{"use strict";const o=i(1017);const{constants:a}=i(7147);const{Buffer:c}=i(1867);const u=i(8634);const l=i(6312);const h=i(1890);const cpFile=(t,r,i)=>{if(!t||!r){return Promise.reject(new u("`source` and `destination` required"))}i=Object.assign({overwrite:true},i);const a=new h(o.resolve(t),o.resolve(r));const c=l.stat(t).then((t=>{a.size=t.size})).then((()=>l.createReadStream(t))).then((t=>l.makeDir(o.dirname(r)).then((()=>t)))).then((t=>new Promise(((o,c)=>{const h=l.createWriteStream(r,{flags:i.overwrite?"w":"wx"});t.on("data",(()=>{a.written=h.bytesWritten}));h.on("error",(t=>{if(!i.overwrite&&t.code==="EEXIST"){o(false);return}c(new u(`Cannot write to \`${r}\`: ${t.message}`,t))}));h.on("close",(()=>{a.written=a.size;o(true)}));t.pipe(h)})))).then((i=>{if(i){return l.lstat(t).then((t=>Promise.all([l.utimes(r,t.atime,t.mtime),l.chmod(r,t.mode),l.chown(r,t.uid,t.gid)])))}}));c.on=(...t)=>{a.on(...t);return c};return c};t.exports=cpFile;t.exports["default"]=cpFile;const checkSourceIsFile=(t,r)=>{if(t.isDirectory()){throw Object.assign(new u(`EISDIR: illegal operation on a directory '${r}'`),{errno:-21,code:"EISDIR",source:r})}};const fixupAttributes=(t,r)=>{l.chmodSync(t,r.mode);l.chownSync(t,r.uid,r.gid)};const copySyncNative=(t,r,i)=>{const c=l.statSync(t);checkSourceIsFile(c,t);l.makeDirSync(o.dirname(r));const u=i.overwrite?null:a.COPYFILE_EXCL;try{l.copyFileSync(t,r,u)}catch(t){if(!i.overwrite&&t.code==="EEXIST"){return}throw t}l.utimesSync(r,c.atime,c.mtime);fixupAttributes(r,c)};const copySyncFallback=(t,r,i)=>{let a;let u;let h;let p;const d=100*1024;const m=c.alloc(d);const readSync=r=>l.readSync(h,m,0,d,r,t);const writeSync=()=>l.writeSync(p,m,0,a,undefined,r);h=l.openSync(t,"r");a=readSync(0);u=a;l.makeDirSync(o.dirname(r));try{p=l.openSync(r,i.overwrite?"w":"wx")}catch(t){if(!i.overwrite&&t.code==="EEXIST"){return}throw t}writeSync();while(a===d){a=readSync(u);writeSync();u+=a}const g=l.fstatSync(h,t);l.futimesSync(p,g.atime,g.mtime,r);l.closeSync(h);l.closeSync(p);fixupAttributes(r,g)};t.exports.sync=(t,r,i)=>{if(!t||!r){throw new u("`source` and `destination` required")}i=Object.assign({overwrite:true},i);if(l.copyFileSync){copySyncNative(t,r,i)}else{copySyncFallback(t,r,i)}}},1890:(t,r,i)=>{"use strict";const o=i(2361);const a=new WeakMap;class ProgressEmitter extends o{constructor(t,r){super();this._source=t;this._destination=r}set written(t){a.set(this,t);this.emitProgress()}get written(){return a.get(this)}emitProgress(){const{size:t,written:r}=this;this.emit("progress",{src:this._source,dest:this._destination,size:t,written:r,percent:r===t?1:r/t})}}t.exports=ProgressEmitter},9168:(t,r,i)=>{"use strict";const o=i(7978);class CpyError extends o{constructor(t,r){super(t,r);Object.assign(this,r);this.name="CpyError"}}t.exports=CpyError},4070:(t,r,i)=>{"use strict";const o=i(2361);const a=i(1017);const c=i(1546);const u=i(3398);const l=i(4544);const h=i(9168);const preprocessSrcPath=(t,r)=>r.cwd?a.resolve(r.cwd,t):t;const preprocessDestPath=(t,r,i)=>{let o=a.basename(t);const c=a.dirname(t);if(typeof i.rename==="string"){o=i.rename}else if(typeof i.rename==="function"){o=i.rename(o)}if(i.cwd){r=a.resolve(i.cwd,r)}if(i.parents){return a.join(r,c,o)}return a.join(r,o)};const cpy=(t,r,i={})=>{t=c(t);const a=new o;if(t.length===0||!r){const t=Promise.reject(new h("`files` and `destination` required"));t.on=(...r)=>{a.on(...r);return t};return t}const p=new Map;let d=0;let m=0;const g=u(t,i).catch((r=>{throw new h(`Cannot glob \`${t}\`: ${r.message}`,r)})).then((t=>{if(t.length===0){a.emit("progress",{totalFiles:0,percent:1,completedFiles:0,completedSize:0})}return Promise.all(t.map((o=>{const c=preprocessSrcPath(o,i);const u=preprocessDestPath(o,r,i);return l(c,u,i).on("progress",(r=>{const i=p.get(r.src)||{written:0,percent:0};if(i.written!==r.written||i.percent!==r.percent){m-=i.written;m+=r.written;if(r.percent===1&&i.percent!==1){d++}p.set(r.src,{written:r.written,percent:r.percent});a.emit("progress",{totalFiles:t.length,percent:d/t.length,completedFiles:d,completedSize:m})}})).then((()=>u)).catch((t=>{throw new h(`Cannot copy from \`${c}\` to \`${u}\`: ${t.message}`,t)}))})))}));g.on=(...t)=>{a.on(...t);return g};return g};t.exports=cpy;t.exports["default"]=cpy},2746:(t,r,i)=>{"use strict";const o=i(2081);const a=i(3853);const c=i(4101);function spawn(t,r,i){const u=a(t,r,i);const l=o.spawn(u.command,u.args,u.options);c.hookChildProcess(l,u);return l}function spawnSync(t,r,i){const u=a(t,r,i);const l=o.spawnSync(u.command,u.args,u.options);l.error=l.error||c.verifyENOENTSync(l.status,u);return l}t.exports=spawn;t.exports.spawn=spawn;t.exports.sync=spawnSync;t.exports._parse=a;t.exports._enoent=c},4101:t=>{"use strict";const r=process.platform==="win32";function notFoundError(t,r){return Object.assign(new Error(`${r} ${t.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${r} ${t.command}`,path:t.command,spawnargs:t.args})}function hookChildProcess(t,i){if(!r){return}const o=t.emit;t.emit=function(r,a){if(r==="exit"){const r=verifyENOENT(a,i,"spawn");if(r){return o.call(t,"error",r)}}return o.apply(t,arguments)}}function verifyENOENT(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawn")}return null}function verifyENOENTSync(t,i){if(r&&t===1&&!i.file){return notFoundError(i.original,"spawnSync")}return null}t.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},3853:(t,r,i)=>{"use strict";const o=i(1017);const a=i(7274);const c=i(4274);const u=i(1252);const l=process.platform==="win32";const h=/\.(?:com|exe)$/i;const p=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(t){t.file=a(t);const r=t.file&&u(t.file);if(r){t.args.unshift(t.file);t.command=r;return a(t)}return t.file}function parseNonShell(t){if(!l){return t}const r=detectShebang(t);const i=!h.test(r);if(t.options.forceShell||i){const i=p.test(r);t.command=o.normalize(t.command);t.command=c.command(t.command);t.args=t.args.map((t=>c.argument(t,i)));const a=[t.command].concat(t.args).join(" ");t.args=["/d","/s","/c",`"${a}"`];t.command=process.env.comspec||"cmd.exe";t.options.windowsVerbatimArguments=true}return t}function parse(t,r,i){if(r&&!Array.isArray(r)){i=r;r=null}r=r?r.slice(0):[];i=Object.assign({},i);const o={command:t,args:r,options:i,file:undefined,original:{command:t,args:r}};return i.shell?o:parseNonShell(o)}t.exports=parse},4274:t=>{"use strict";const r=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(t){t=t.replace(r,"^$1");return t}function escapeArgument(t,i){t=`${t}`;t=t.replace(/(\\*)"/g,'$1$1\\"');t=t.replace(/(\\*)$/,"$1$1");t=`"${t}"`;t=t.replace(r,"^$1");if(i){t=t.replace(r,"^$1")}return t}t.exports.command=escapeCommand;t.exports.argument=escapeArgument},1252:(t,r,i)=>{"use strict";const o=i(7147);const a=i(7032);function readShebang(t){const r=150;const i=Buffer.alloc(r);let c;try{c=o.openSync(t,"r");o.readSync(c,i,0,r,0);o.closeSync(c)}catch(t){}return a(i.toString())}t.exports=readShebang},7274:(t,r,i)=>{"use strict";const o=i(1017);const a=i(4207);const c=i(539);function resolveCommandAttempt(t,r){const i=t.options.env||process.env;const u=process.cwd();const l=t.options.cwd!=null;const h=l&&process.chdir!==undefined&&!process.chdir.disabled;if(h){try{process.chdir(t.options.cwd)}catch(t){}}let p;try{p=a.sync(t.command,{path:i[c({env:i})],pathExt:r?o.delimiter:undefined})}catch(t){}finally{if(h){process.chdir(u)}}if(p){p=o.resolve(l?t.options.cwd:"",p)}return p}function resolveCommand(t){return resolveCommandAttempt(t)||resolveCommandAttempt(t,true)}t.exports=resolveCommand},3186:t=>{"use strict";var r="%[a-f0-9]{2}";var i=new RegExp(r,"gi");var o=new RegExp("("+r+")+","gi");function decodeComponents(t,r){try{return decodeURIComponent(t.join(""))}catch(t){}if(t.length===1){return t}r=r||1;var i=t.slice(0,r);var o=t.slice(r);return Array.prototype.concat.call([],decodeComponents(i),decodeComponents(o))}function decode(t){try{return decodeURIComponent(t)}catch(a){var r=t.match(i);for(var o=1;o<r.length;o++){t=decodeComponents(r,o).join("");r=t.match(i)}return t}}function customDecodeURIComponent(t){var r={"%FE%FF":"��","%FF%FE":"��"};var i=o.exec(t);while(i){try{r[i[0]]=decodeURIComponent(i[0])}catch(t){var a=decode(i[0]);if(a!==i[0]){r[i[0]]=a}}i=o.exec(t)}r["%C2"]="�";var c=Object.keys(r);for(var u=0;u<c.length;u++){var l=c[u];t=t.replace(new RegExp(l,"g"),r[l])}return t}t.exports=function(t){if(typeof t!=="string"){throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`")}try{t=t.replace(/\+/g," ");return decodeURIComponent(t)}catch(r){return customDecodeURIComponent(t)}}},1705:t=>{"use strict";
/*!
 * @description Recursive object extending
 * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
 * @license MIT
 *
 * The MIT License (MIT)
 *
 * Copyright (c) 2013-2018 Viacheslav Lotsmanov
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
 * the Software, and to permit persons to whom the Software is furnished to do so,
 * subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */function isSpecificValue(t){return t instanceof Buffer||t instanceof Date||t instanceof RegExp?true:false}function cloneSpecificValue(t){if(t instanceof Buffer){var r=Buffer.alloc?Buffer.alloc(t.length):new Buffer(t.length);t.copy(r);return r}else if(t instanceof Date){return new Date(t.getTime())}else if(t instanceof RegExp){return new RegExp(t)}else{throw new Error("Unexpected situation")}}function deepCloneArray(t){var i=[];t.forEach((function(t,o){if(typeof t==="object"&&t!==null){if(Array.isArray(t)){i[o]=deepCloneArray(t)}else if(isSpecificValue(t)){i[o]=cloneSpecificValue(t)}else{i[o]=r({},t)}}else{i[o]=t}}));return i}function safeGetProperty(t,r){return r==="__proto__"?undefined:t[r]}var r=t.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var t=arguments[0];var i=Array.prototype.slice.call(arguments,1);var o,a,c;i.forEach((function(i){if(typeof i!=="object"||i===null||Array.isArray(i)){return}Object.keys(i).forEach((function(c){a=safeGetProperty(t,c);o=safeGetProperty(i,c);if(o===t){return}else if(typeof o!=="object"||o===null){t[c]=o;return}else if(Array.isArray(o)){t[c]=deepCloneArray(o);return}else if(isSpecificValue(o)){t[c]=cloneSpecificValue(o);return}else if(typeof a!=="object"||a===null||Array.isArray(a)){t[c]=r({},o);return}else{t[c]=r(a,o);return}}))}));return t}},6967:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(5530);t.exports=function defineProperty(t,r,i){if(typeof t!=="object"&&typeof t!=="function"){throw new TypeError("expected an object or function.")}if(typeof r!=="string"){throw new TypeError("expected `prop` to be a string.")}if(o(i)&&("set"in i||"get"in i)){return Object.defineProperty(t,r,i)}return Object.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:i})}},2774:(t,r,i)=>{"use strict";
/*!
 * is-accessor-descriptor <https://github.com/jonschlinkert/is-accessor-descriptor>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(2813);var a={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(t,r){if(typeof r==="string"){var i=Object.getOwnPropertyDescriptor(t,r);return typeof i!=="undefined"}if(o(t)!=="object"){return false}if(has(t,"value")||has(t,"writable")){return false}if(!has(t,"get")||typeof t.get!=="function"){return false}if(has(t,"set")&&typeof t[c]!=="function"&&typeof t[c]!=="undefined"){return false}for(var c in t){if(!a.hasOwnProperty(c)){continue}if(o(t[c])===a[c]){continue}if(typeof t[c]!=="undefined"){return false}}return true}function has(t,r){return{}.hasOwnProperty.call(t,r)}t.exports=isAccessorDescriptor},2813:(t,r,i)=>{var o=i(5625);var a=Object.prototype.toString;t.exports=function kindOf(t){if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(typeof t==="string"||t instanceof String){return"string"}if(typeof t==="number"||t instanceof Number){return"number"}if(typeof t==="function"||t instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}var r=a.call(t);if(r==="[object RegExp]"){return"regexp"}if(r==="[object Date]"){return"date"}if(r==="[object Arguments]"){return"arguments"}if(r==="[object Error]"){return"error"}if(o(t)){return"buffer"}if(r==="[object Set]"){return"set"}if(r==="[object WeakSet]"){return"weakset"}if(r==="[object Map]"){return"map"}if(r==="[object WeakMap]"){return"weakmap"}if(r==="[object Symbol]"){return"symbol"}if(r==="[object Int8Array]"){return"int8array"}if(r==="[object Uint8Array]"){return"uint8array"}if(r==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(r==="[object Int16Array]"){return"int16array"}if(r==="[object Uint16Array]"){return"uint16array"}if(r==="[object Int32Array]"){return"int32array"}if(r==="[object Uint32Array]"){return"uint32array"}if(r==="[object Float32Array]"){return"float32array"}if(r==="[object Float64Array]"){return"float64array"}return"object"}},6013:(t,r,i)=>{"use strict";
/*!
 * is-data-descriptor <https://github.com/jonschlinkert/is-data-descriptor>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(8190);var a={configurable:"boolean",enumerable:"boolean",writable:"boolean"};function isDataDescriptor(t,r){if(o(t)!=="object"){return false}if(typeof r==="string"){var i=Object.getOwnPropertyDescriptor(t,r);return typeof i!=="undefined"}if(!("value"in t)&&!("writable"in t)){return false}for(var c in t){if(c==="value")continue;if(!a.hasOwnProperty(c)){continue}if(o(t[c])===a[c]){continue}if(typeof t[c]!=="undefined"){return false}}return true}t.exports=isDataDescriptor},8190:(t,r,i)=>{var o=i(5625);var a=Object.prototype.toString;t.exports=function kindOf(t){if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(typeof t==="string"||t instanceof String){return"string"}if(typeof t==="number"||t instanceof Number){return"number"}if(typeof t==="function"||t instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}var r=a.call(t);if(r==="[object RegExp]"){return"regexp"}if(r==="[object Date]"){return"date"}if(r==="[object Arguments]"){return"arguments"}if(r==="[object Error]"){return"error"}if(o(t)){return"buffer"}if(r==="[object Set]"){return"set"}if(r==="[object WeakSet]"){return"weakset"}if(r==="[object Map]"){return"map"}if(r==="[object WeakMap]"){return"weakmap"}if(r==="[object Symbol]"){return"symbol"}if(r==="[object Int8Array]"){return"int8array"}if(r==="[object Uint8Array]"){return"uint8array"}if(r==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(r==="[object Int16Array]"){return"int16array"}if(r==="[object Uint16Array]"){return"uint16array"}if(r==="[object Int32Array]"){return"int32array"}if(r==="[object Uint32Array]"){return"uint32array"}if(r==="[object Float32Array]"){return"float32array"}if(r==="[object Float64Array]"){return"float64array"}return"object"}},5530:(t,r,i)=>{"use strict";
/*!
 * is-descriptor <https://github.com/jonschlinkert/is-descriptor>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(146);var a=i(2774);var c=i(6013);t.exports=function isDescriptor(t,r){if(o(t)!=="object"){return false}if("get"in t){return a(t,r)}return c(t,r)}},146:t=>{var r=Object.prototype.toString;t.exports=function kindOf(t){var i=typeof t;if(i==="undefined"){return"undefined"}if(t===null){return"null"}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(i==="string"||t instanceof String){return"string"}if(i==="number"||t instanceof Number){return"number"}if(i==="function"||t instanceof Function){if(typeof t.constructor.name!=="undefined"&&t.constructor.name.slice(0,9)==="Generator"){return"generatorfunction"}return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}i=r.call(t);if(i==="[object RegExp]"){return"regexp"}if(i==="[object Date]"){return"date"}if(i==="[object Arguments]"){return"arguments"}if(i==="[object Error]"){return"error"}if(i==="[object Promise]"){return"promise"}if(isBuffer(t)){return"buffer"}if(i==="[object Set]"){return"set"}if(i==="[object WeakSet]"){return"weakset"}if(i==="[object Map]"){return"map"}if(i==="[object WeakMap]"){return"weakmap"}if(i==="[object Symbol]"){return"symbol"}if(i==="[object Map Iterator]"){return"mapiterator"}if(i==="[object Set Iterator]"){return"setiterator"}if(i==="[object String Iterator]"){return"stringiterator"}if(i==="[object Array Iterator]"){return"arrayiterator"}if(i==="[object Int8Array]"){return"int8array"}if(i==="[object Uint8Array]"){return"uint8array"}if(i==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(i==="[object Int16Array]"){return"int16array"}if(i==="[object Uint16Array]"){return"uint16array"}if(i==="[object Int32Array]"){return"int32array"}if(i==="[object Uint32Array]"){return"uint32array"}if(i==="[object Float32Array]"){return"float32array"}if(i==="[object Float64Array]"){return"float64array"}return"object"};function isBuffer(t){return t.constructor&&typeof t.constructor.isBuffer==="function"&&t.constructor.isBuffer(t)}},2738:(t,r,i)=>{"use strict";const o=i(1017);const a=i(3433);const getExtensions=t=>t.length>1?`{${t.join(",")}}`:t[0];const getPath=(t,r)=>{const i=t[0]==="!"?t.slice(1):t;return o.isAbsolute(i)?i:o.join(r,i)};const addExtensions=(t,r)=>{if(o.extname(t)){return`**/${t}`}return`**/${t}.${getExtensions(r)}`};const getGlob=(t,r)=>{if(r.files&&!Array.isArray(r.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof r.files}\``)}if(r.extensions&&!Array.isArray(r.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof r.extensions}\``)}if(r.files&&r.extensions){return r.files.map((i=>o.join(t,addExtensions(i,r.extensions))))}if(r.files){return r.files.map((r=>o.join(t,`**/${r}`)))}if(r.extensions){return[o.join(t,`**/*.${getExtensions(r.extensions)}`)]}return[o.join(t,"**")]};t.exports=(t,r)=>{r=Object.assign({cwd:process.cwd()},r);if(typeof r.cwd!=="string"){return Promise.reject(new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof r.cwd}\``))}return Promise.all([].concat(t).map((t=>a.dir(getPath(t,r.cwd)).then((i=>i?getGlob(t,r):t))))).then((t=>[].concat.apply([],t)))};t.exports.sync=(t,r)=>{r=Object.assign({cwd:process.cwd()},r);if(typeof r.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof r.cwd}\``)}const i=[].concat(t).map((t=>a.dirSync(getPath(t,r.cwd))?getGlob(t,r):t));return[].concat.apply([],i)}},5809:(t,r,i)=>{"use strict";var o=i(2647);var a=i(8036);var c=i(3586)("expand-brackets");var u=i(7512);var l=i(2403);var h=i(6855);function brackets(t,r){c("initializing from <%s>",__filename);var i=brackets.create(t,r);return i.output}brackets.match=function(t,r,i){t=[].concat(t);var o=u({},i);var a=brackets.matcher(r,o);var c=t.length;var l=-1;var h=[];while(++l<c){var p=t[l];if(a(p)){h.push(p)}}if(h.length===0){if(o.failglob===true){throw new Error('no matches found for "'+r+'"')}if(o.nonull===true||o.nullglob===true){return[r.split("\\").join("")]}}return h};brackets.isMatch=function(t,r,i){return brackets.matcher(r,i)(t)};brackets.matcher=function(t,r){var i=brackets.makeRe(t,r);return function(t){return i.test(t)}};brackets.makeRe=function(t,r){var i=brackets.create(t,r);var o=u({strictErrors:false},r);return h(i.output,o)};brackets.create=function(t,r){var i=r&&r.snapdragon||new l(r);o(i);a(i);var c=i.parse(t,r);c.input=t;var u=i.compile(c,r);u.input=t;return u};brackets.compilers=o;brackets.parsers=a;t.exports=brackets},2647:(t,r,i)=>{"use strict";var o=i(4504);t.exports=function(t){t.compiler.set("escape",(function(t){return this.emit("\\"+t.val.replace(/^\\/,""),t)})).set("text",(function(t){return this.emit(t.val.replace(/([{}])/g,"\\$1"),t)})).set("posix",(function(t){if(t.val==="[::]"){return this.emit("\\[::\\]",t)}var r=o[t.inner];if(typeof r==="undefined"){r="["+t.inner+"]"}return this.emit(r,t)})).set("bracket",(function(t){return this.mapVisit(t.nodes)})).set("bracket.open",(function(t){return this.emit(t.val,t)})).set("bracket.inner",(function(t){var r=t.val;if(r==="["||r==="]"){return this.emit("\\"+t.val,t)}if(r==="^]"){return this.emit("^\\]",t)}if(r==="^"){return this.emit("^",t)}if(/-/.test(r)&&!/(\d-\d|\w-\w)/.test(r)){r=r.split("-").join("\\-")}var i=r.charAt(0)==="^";if(i&&r.indexOf("/")===-1){r+="/"}if(i&&r.indexOf(".")===-1){r+="."}r=r.replace(/\\([1-9])/g,"$1");return this.emit(r,t)})).set("bracket.close",(function(t){var r=t.val.replace(/^\\/,"");if(t.parent.escaped===true){return this.emit("\\"+r,t)}return this.emit(r,t)}))}},8036:(t,r,i)=>{"use strict";var o=i(8753);var a=i(6967);var c="(\\[(?=.*\\])|\\])+";var u=o.createRegex(c);function parsers(t){t.state=t.state||{};t.parser.sets.bracket=t.parser.sets.bracket||[];t.parser.capture("escape",(function(){if(this.isInside("bracket"))return;var t=this.position();var r=this.match(/^\\(.)/);if(!r)return;return t({type:"escape",val:r[0]})})).capture("text",(function(){if(this.isInside("bracket"))return;var t=this.position();var r=this.match(u);if(!r||!r[0])return;return t({type:"text",val:r[0]})})).capture("posix",(function(){var r=this.position();var i=this.match(/^\[:(.*?):\](?=.*\])/);if(!i)return;var o=this.isInside("bracket");if(o){t.posix++}return r({type:"posix",insideBracket:o,inner:i[1],val:i[0]})})).capture("bracket",(function(){})).capture("bracket.open",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^\[(?=.*\])/);if(!i)return;var c=this.prev();var u=o.last(c.nodes);if(t.slice(-1)==="\\"&&!this.isInside("bracket")){u.val=u.val.slice(0,u.val.length-1);return r({type:"escape",val:i[0]})}var l=r({type:"bracket.open",val:i[0]});if(u.type==="bracket.open"||this.isInside("bracket")){l.val="\\"+l.val;l.type="bracket.inner";l.escaped=true;return l}var h=r({type:"bracket",nodes:[l]});a(h,"parent",c);a(l,"parent",h);this.push("bracket",h);c.nodes.push(h)})).capture("bracket.inner",(function(){if(!this.isInside("bracket"))return;var t=this.position();var r=this.match(u);if(!r||!r[0])return;var i=this.input.charAt(0);var o=r[0];var a=t({type:"bracket.inner",val:o});if(o==="\\\\"){return a}var c=o.charAt(0);var l=o.slice(-1);if(c==="!"){o="^"+o.slice(1)}if(l==="\\"||o==="^"&&i==="]"){o+=this.input[0];this.consume(1)}a.val=o;return a})).capture("bracket.close",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^\]/);if(!i)return;var c=this.prev();var u=o.last(c.nodes);if(t.slice(-1)==="\\"&&!this.isInside("bracket")){u.val=u.val.slice(0,u.val.length-1);return r({type:"escape",val:i[0]})}var l=r({type:"bracket.close",rest:this.input,val:i[0]});if(u.type==="bracket.open"){l.type="bracket.inner";l.escaped=true;return l}var h=this.pop("bracket");if(!this.isType(h,"bracket")){if(this.options.strict){throw new Error('missing opening "["')}l.type="bracket.inner";l.escaped=true;return l}h.nodes.push(l);a(l,"parent",h)}))}t.exports=parsers;t.exports.TEXT_REGEX=c},8753:(t,r,i)=>{"use strict";var o=i(6855);var a=i(2527);var c;r.last=function(t){return t[t.length-1]};r.createRegex=function(t,r){if(c)return c;var i={contains:true,strictClose:false};var u=a.create(t,i);var l;if(typeof r==="string"){l=o("^(?:"+r+"|"+u+")",i)}else{l=o(u,i)}return c=l}},8557:(t,r,i)=>{r=t.exports=i(5498);r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function formatArgs(t){var i=this.useColors;t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+r.humanize(this.diff);if(!i)return;var o="color: "+this.color;t.splice(1,0,o,"color: inherit");var a=0;var c=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){if("%%"===t)return;a++;if("%c"===t){c=a}}));t.splice(c,0,o)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(t){try{if(null==t){r.storage.removeItem("debug")}else{r.storage.debug=t}}catch(t){}}function load(){var t;try{t=r.storage.debug}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}r.enable(load());function localstorage(){try{return window.localStorage}catch(t){}}},5498:(t,r,i)=>{r=t.exports=createDebug.debug=createDebug["default"]=createDebug;r.coerce=coerce;r.disable=disable;r.enable=enable;r.enabled=enabled;r.humanize=i(9923);r.names=[];r.skips=[];r.formatters={};var o;function selectColor(t){var i=0,o;for(o in t){i=(i<<5)-i+t.charCodeAt(o);i|=0}return r.colors[Math.abs(i)%r.colors.length]}function createDebug(t){function debug(){if(!debug.enabled)return;var t=debug;var i=+new Date;var a=i-(o||i);t.diff=a;t.prev=o;t.curr=i;o=i;var c=new Array(arguments.length);for(var u=0;u<c.length;u++){c[u]=arguments[u]}c[0]=r.coerce(c[0]);if("string"!==typeof c[0]){c.unshift("%O")}var l=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,(function(i,o){if(i==="%%")return i;l++;var a=r.formatters[o];if("function"===typeof a){var u=c[l];i=a.call(t,u);c.splice(l,1);l--}return i}));r.formatArgs.call(t,c);var h=debug.log||r.log||console.log.bind(console);h.apply(t,c)}debug.namespace=t;debug.enabled=r.enabled(t);debug.useColors=r.useColors();debug.color=selectColor(t);if("function"===typeof r.init){r.init(debug)}return debug}function enable(t){r.save(t);r.names=[];r.skips=[];var i=(typeof t==="string"?t:"").split(/[\s,]+/);var o=i.length;for(var a=0;a<o;a++){if(!i[a])continue;t=i[a].replace(/\*/g,".*?");if(t[0]==="-"){r.skips.push(new RegExp("^"+t.substr(1)+"$"))}else{r.names.push(new RegExp("^"+t+"$"))}}}function disable(){r.enable("")}function enabled(t){var i,o;for(i=0,o=r.skips.length;i<o;i++){if(r.skips[i].test(t)){return false}}for(i=0,o=r.names.length;i<o;i++){if(r.names[i].test(t)){return true}}return false}function coerce(t){if(t instanceof Error)return t.stack||t.message;return t}},3586:(t,r,i)=>{if(typeof process!=="undefined"&&process.type==="renderer"){t.exports=i(8557)}else{t.exports=i(8205)}},8205:(t,r,i)=>{var o=i(6224);var a=i(3837);r=t.exports=i(5498);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.colors=[6,2,3,4,5,1];r.inspectOpts=Object.keys(process.env).filter((function(t){return/^debug_/i.test(t)})).reduce((function(t,r){var i=r.substring(6).toLowerCase().replace(/_([a-z])/g,(function(t,r){return r.toUpperCase()}));var o=process.env[r];if(/^(yes|on|true|enabled)$/i.test(o))o=true;else if(/^(no|off|false|disabled)$/i.test(o))o=false;else if(o==="null")o=null;else o=Number(o);t[i]=o;return t}),{});var c=parseInt(process.env.DEBUG_FD,10)||2;if(1!==c&&2!==c){a.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var u=1===c?process.stdout:2===c?process.stderr:createWritableStdioStream(c);function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):o.isatty(c)}r.formatters.o=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts).split("\n").map((function(t){return t.trim()})).join(" ")};r.formatters.O=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts)};function formatArgs(t){var i=this.namespace;var o=this.useColors;if(o){var a=this.color;var c="  [3"+a+";1m"+i+" "+"";t[0]=c+t[0].split("\n").join("\n"+c);t.push("[3"+a+"m+"+r.humanize(this.diff)+"")}else{t[0]=(new Date).toUTCString()+" "+i+" "+t[0]}}function log(){return u.write(a.format.apply(a,arguments)+"\n")}function save(t){if(null==t){delete process.env.DEBUG}else{process.env.DEBUG=t}}function load(){return process.env.DEBUG}function createWritableStdioStream(t){var r;var a=process.binding("tty_wrap");switch(a.guessHandleType(t)){case"TTY":r=new o.WriteStream(t);r._type="tty";if(r._handle&&r._handle.unref){r._handle.unref()}break;case"FILE":var c=i(7147);r=new c.SyncWriteStream(t,{autoClose:false});r._type="fs";break;case"PIPE":case"TCP":var u=i(1808);r=new u.Socket({fd:t,readable:false,writable:true});r.readable=false;r.read=null;r._type="pipe";if(r._handle&&r._handle.unref){r._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}r.fd=t;r._isStdio=true;return r}function init(t){t.inspectOpts={};var i=Object.keys(r.inspectOpts);for(var o=0;o<i.length;o++){t.inspectOpts[i[o]]=r.inspectOpts[i[o]]}}r.enable(load())},9923:t=>{var r=1e3;var i=r*60;var o=i*60;var a=o*24;var c=a*365.25;t.exports=function(t,r){r=r||{};var i=typeof t;if(i==="string"&&t.length>0){return parse(t)}else if(i==="number"&&isNaN(t)===false){return r.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!u){return}var l=parseFloat(u[1]);var h=(u[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return l*c;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return undefined}}function fmtShort(t){if(t>=a){return Math.round(t/a)+"d"}if(t>=o){return Math.round(t/o)+"h"}if(t>=i){return Math.round(t/i)+"m"}if(t>=r){return Math.round(t/r)+"s"}return t+"ms"}function fmtLong(t){return plural(t,a,"day")||plural(t,o,"hour")||plural(t,i,"minute")||plural(t,r,"second")||t+" ms"}function plural(t,r,i){if(t<r){return}if(t<r*1.5){return Math.floor(t/r)+" "+i}return Math.ceil(t/r)+" "+i+"s"}},7512:(t,r,i)=>{"use strict";var o=i(429);t.exports=function extend(t){if(!o(t)){t={}}var r=arguments.length;for(var i=1;i<r;i++){var a=arguments[i];if(o(a)){assign(t,a)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}},2129:(t,r,i)=>{"use strict";var o=i(7512);var a=i(340);var c=i(6855);var u=i(5903);var l=i(5138);var h=i(7020);var p=i(1327);var d=1024*64;function extglob(t,r){return extglob.create(t,r).output}extglob.match=function(t,r,i){if(typeof r!=="string"){throw new TypeError("expected pattern to be a string")}t=p.arrayify(t);var o=extglob.matcher(r,i);var c=t.length;var u=-1;var l=[];while(++u<c){var h=t[u];if(o(h)){l.push(h)}}if(typeof i==="undefined"){return a(l)}if(l.length===0){if(i.failglob===true){throw new Error('no matches found for "'+r+'"')}if(i.nonull===true||i.nullglob===true){return[r.split("\\").join("")]}}return i.nodupes!==false?a(l):l};extglob.isMatch=function(t,r,i){if(typeof r!=="string"){throw new TypeError("expected pattern to be a string")}if(typeof t!=="string"){throw new TypeError("expected a string")}if(r===t){return true}if(r===""||r===" "||r==="."){return r===t}var o=p.memoize("isMatch",r,i,extglob.matcher);return o(t)};extglob.contains=function(t,r,i){if(typeof t!=="string"){throw new TypeError("expected a string")}if(r===""||r===" "||r==="."){return r===t}var a=o({},i,{contains:true});a.strictClose=false;a.strictOpen=false;return extglob.isMatch(t,r,a)};extglob.matcher=function(t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}function matcher(){var i=extglob.makeRe(t,r);return function(t){return i.test(t)}}return p.memoize("matcher",t,r,matcher)};extglob.create=function(t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}function create(){var i=new h(r);var o=i.parse(t,r);return i.compile(o,r)}return p.memoize("create",t,r,create)};extglob.capture=function(t,r,i){var a=extglob.makeRe(t,o({capture:true},i));function match(){return function(t){var r=a.exec(t);if(!r){return null}return r.slice(1)}}var c=p.memoize("capture",t,i,match);return c(r)};extglob.makeRe=function(t,r){if(t instanceof RegExp){return t}if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}if(t.length>d){throw new Error("expected pattern to be less than "+d+" characters")}function makeRe(){var i=o({strictErrors:false},r);if(i.strictErrors===true)i.strict=true;var a=extglob.create(t,i);return c(a.output,i)}var i=p.memoize("makeRe",t,r,makeRe);if(i.source.length>d){throw new SyntaxError("potentially malicious regex detected")}return i};extglob.cache=p.cache;extglob.clearCache=function(){extglob.cache.__data__={}};extglob.Extglob=h;extglob.compilers=u;extglob.parsers=l;t.exports=extglob},5903:(t,r,i)=>{"use strict";var o=i(5809);t.exports=function(t){function star(){if(typeof t.options.star==="function"){return t.options.star.apply(this,arguments)}if(typeof t.options.star==="string"){return t.options.star}return".*?"}t.use(o.compilers);t.compiler.set("escape",(function(t){return this.emit(t.val,t)})).set("dot",(function(t){return this.emit("\\"+t.val,t)})).set("qmark",(function(t){var r="[^\\\\/.]";var i=this.prev();if(t.parsed.slice(-1)==="("){var o=t.rest.charAt(0);if(o!=="!"&&o!=="="&&o!==":"){return this.emit(r,t)}return this.emit(t.val,t)}if(i.type==="text"&&i.val){return this.emit(r,t)}if(t.val.length>1){r+="{"+t.val.length+"}"}return this.emit(r,t)})).set("plus",(function(t){var r=t.parsed.slice(-1);if(r==="]"||r===")"){return this.emit(t.val,t)}var i=this.output.slice(-1);if(!this.output||/[?*+]/.test(i)&&t.parent.type!=="bracket"){return this.emit("\\+",t)}if(/\w/.test(i)&&!t.inside){return this.emit("+\\+?",t)}return this.emit("+",t)})).set("star",(function(t){var r=this.prev();var i=r.type!=="text"&&r.type!=="escape"?"(?!\\.)":"";return this.emit(i+star.call(this,t),t)})).set("paren",(function(t){return this.mapVisit(t.nodes)})).set("paren.open",(function(t){var r=this.options.capture?"(":"";switch(t.parent.prefix){case"!":case"^":return this.emit(r+"(?:(?!(?:",t);case"*":case"+":case"?":case"@":return this.emit(r+"(?:",t);default:{var i=t.val;if(this.options.bash===true){i="\\"+i}else if(!this.options.capture&&i==="("&&t.parent.rest[0]!=="?"){i+="?:"}return this.emit(i,t)}}})).set("paren.close",(function(t){var r=this.options.capture?")":"";switch(t.prefix){case"!":case"^":var i=/^(\)|$)/.test(t.rest)?"$":"";var o=star.call(this,t);if(t.parent.hasSlash&&!this.options.star&&this.options.slash!==false){o=".*?"}return this.emit(i+("))"+o+")")+r,t);case"*":case"+":case"?":return this.emit(")"+t.prefix+r,t);case"@":return this.emit(")"+r,t);default:{var a=(this.options.bash===true?"\\":"")+")";return this.emit(a,t)}}})).set("text",(function(t){var r=t.val.replace(/[\[\]]/g,"\\$&");return this.emit(r,t)}))}},7020:(t,r,i)=>{"use strict";var o=i(2403);var a=i(7898);var c=i(7512);var u=i(5903);var l=i(5138);function Extglob(t){this.options=c({source:"extglob"},t);this.snapdragon=this.options.snapdragon||new o(this.options);this.snapdragon.patterns=this.snapdragon.patterns||{};this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;u(this.snapdragon);l(this.snapdragon);a(this.snapdragon,"parse",(function(t,r){var i=o.prototype.parse.apply(this,arguments);i.input=t;var c=this.parser.stack.pop();if(c&&this.options.strict!==true){var u=c.nodes[0];u.val="\\"+u.val;var l=u.parent.nodes[1];if(l.type==="star"){l.loose=true}}a(i,"parser",this.parser);return i}));a(this,"parse",(function(t,r){return this.snapdragon.parse.apply(this.snapdragon,arguments)}));a(this,"compile",(function(t,r){return this.snapdragon.compile.apply(this.snapdragon,arguments)}))}t.exports=Extglob},5138:(t,r,i)=>{"use strict";var o=i(5809);var a=i(7898);var c=i(1327);var u="([!@*?+]?\\(|\\)|[*?.+\\\\]|\\[:?(?=.*\\])|:?\\])+";var l=c.createRegex(u);function parsers(t){t.state=t.state||{};t.use(o.parsers);t.parser.sets.paren=t.parser.sets.paren||[];t.parser.capture("paren.open",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^([!@*?+])?\(/);if(!i)return;var o=this.prev();var c=i[1];var u=i[0];var l=r({type:"paren.open",parsed:t,val:u});var h=r({type:"paren",prefix:c,nodes:[l]});if(c==="!"&&o.type==="paren"&&o.prefix==="!"){o.prefix="@";h.prefix="@"}a(h,"rest",this.input);a(h,"parsed",t);a(h,"parent",o);a(l,"parent",h);this.push("paren",h);o.nodes.push(h)})).capture("paren.close",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^\)/);if(!i)return;var o=this.pop("paren");var c=r({type:"paren.close",rest:this.input,parsed:t,val:i[0]});if(!this.isType(o,"paren")){if(this.options.strict){throw new Error('missing opening paren: "("')}c.escaped=true;return c}c.prefix=o.prefix;o.nodes.push(c);a(c,"parent",o)})).capture("escape",(function(){var t=this.position();var r=this.match(/^\\(.)/);if(!r)return;return t({type:"escape",val:r[0],ch:r[1]})})).capture("qmark",(function(){var r=this.parsed;var i=this.position();var o=this.match(/^\?+(?!\()/);if(!o)return;t.state.metachar=true;return i({type:"qmark",rest:this.input,parsed:r,val:o[0]})})).capture("star",/^\*(?!\()/).capture("plus",/^\+(?!\()/).capture("dot",/^\./).capture("text",l)}t.exports.TEXT_REGEX=u;t.exports=parsers},1327:(t,r,i)=>{"use strict";var o=i(2527);var a=i(4838);var c=t.exports;var u=c.cache=new a;c.arrayify=function(t){if(!Array.isArray(t)){return[t]}return t};c.memoize=function(t,r,i,o){var a=c.createKey(t+r,i);if(u.has(t,a)){return u.get(t,a)}var l=o(r,i);if(i&&i.cache===false){return l}u.set(t,a,l);return l};c.createKey=function(t,r){var i=t;if(typeof r==="undefined"){return i}for(var o in r){i+=";"+o+"="+String(r[o])}return i};c.createRegex=function(t){var r={contains:true,strictClose:false};return o(t,r)}},7898:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(567);t.exports=function defineProperty(t,r,i){if(typeof t!=="object"&&typeof t!=="function"){throw new TypeError("expected an object or function.")}if(typeof r!=="string"){throw new TypeError("expected `prop` to be a string.")}if(o(i)&&("set"in i||"get"in i)){return Object.defineProperty(t,r,i)}return Object.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:i})}},7198:t=>{"use strict";
/*!
 * for-in <https://github.com/jonschlinkert/for-in>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function forIn(t,r,i){for(var o in t){if(r.call(i,t[o],o,t)===false){break}}}},4838:(t,r,i)=>{"use strict";
/*!
 * fragment-cache <https://github.com/jonschlinkert/fragment-cache>
 *
 * Copyright (c) 2016-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(4643);function FragmentCache(t){this.caches=t||{}}FragmentCache.prototype={cache:function(t){return this.caches[t]||(this.caches[t]=new o)},set:function(t,r,i){var o=this.cache(t);o.set(r,i);return o},has:function(t,r){return typeof this.get(t,r)!=="undefined"},get:function(t,r){var i=this.cache(t);if(typeof r==="string"){return i.get(r)}return i}};r=t.exports=FragmentCache},6863:(t,r,i)=>{t.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var o=i(7147);var a=o.realpath;var c=o.realpathSync;var u=process.version;var l=/^v[0-5]\./.test(u);var h=i(1734);function newError(t){return t&&t.syscall==="realpath"&&(t.code==="ELOOP"||t.code==="ENOMEM"||t.code==="ENAMETOOLONG")}function realpath(t,r,i){if(l){return a(t,r,i)}if(typeof r==="function"){i=r;r=null}a(t,r,(function(o,a){if(newError(o)){h.realpath(t,r,i)}else{i(o,a)}}))}function realpathSync(t,r){if(l){return c(t,r)}try{return c(t,r)}catch(i){if(newError(i)){return h.realpathSync(t,r)}else{throw i}}}function monkeypatch(){o.realpath=realpath;o.realpathSync=realpathSync}function unmonkeypatch(){o.realpath=a;o.realpathSync=c}},1734:(t,r,i)=>{var o=i(1017);var a=process.platform==="win32";var c=i(7147);var u=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var t;if(u){var r=new Error;t=debugCallback}else t=missingCallback;return t;function debugCallback(t){if(t){r.message=t.message;t=r;missingCallback(t)}}function missingCallback(t){if(t){if(process.throwDeprecation)throw t;else if(!process.noDeprecation){var r="fs: missing callback "+(t.stack||t.message);if(process.traceDeprecation)console.trace(r);else console.error(r)}}}}function maybeCallback(t){return typeof t==="function"?t:rethrow()}var l=o.normalize;if(a){var h=/(.*?)(?:[\/\\]+|$)/g}else{var h=/(.*?)(?:[\/]+|$)/g}if(a){var p=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var p=/^[\/]*/}r.realpathSync=function realpathSync(t,r){t=o.resolve(t);if(r&&Object.prototype.hasOwnProperty.call(r,t)){return r[t]}var i=t,u={},l={};var d;var m;var g;var v;start();function start(){var r=p.exec(t);d=r[0].length;m=r[0];g=r[0];v="";if(a&&!l[g]){c.lstatSync(g);l[g]=true}}while(d<t.length){h.lastIndex=d;var y=h.exec(t);v=m;m+=y[0];g=v+y[1];d=h.lastIndex;if(l[g]||r&&r[g]===g){continue}var b;if(r&&Object.prototype.hasOwnProperty.call(r,g)){b=r[g]}else{var w=c.lstatSync(g);if(!w.isSymbolicLink()){l[g]=true;if(r)r[g]=g;continue}var x=null;if(!a){var S=w.dev.toString(32)+":"+w.ino.toString(32);if(u.hasOwnProperty(S)){x=u[S]}}if(x===null){c.statSync(g);x=c.readlinkSync(g)}b=o.resolve(v,x);if(r)r[g]=b;if(!a)u[S]=x}t=o.resolve(b,t.slice(d));start()}if(r)r[i]=t;return t};r.realpath=function realpath(t,r,i){if(typeof i!=="function"){i=maybeCallback(r);r=null}t=o.resolve(t);if(r&&Object.prototype.hasOwnProperty.call(r,t)){return process.nextTick(i.bind(null,null,r[t]))}var u=t,l={},d={};var m;var g;var v;var y;start();function start(){var r=p.exec(t);m=r[0].length;g=r[0];v=r[0];y="";if(a&&!d[v]){c.lstat(v,(function(t){if(t)return i(t);d[v]=true;LOOP()}))}else{process.nextTick(LOOP)}}function LOOP(){if(m>=t.length){if(r)r[u]=t;return i(null,t)}h.lastIndex=m;var o=h.exec(t);y=g;g+=o[0];v=y+o[1];m=h.lastIndex;if(d[v]||r&&r[v]===v){return process.nextTick(LOOP)}if(r&&Object.prototype.hasOwnProperty.call(r,v)){return gotResolvedLink(r[v])}return c.lstat(v,gotStat)}function gotStat(t,o){if(t)return i(t);if(!o.isSymbolicLink()){d[v]=true;if(r)r[v]=v;return process.nextTick(LOOP)}if(!a){var u=o.dev.toString(32)+":"+o.ino.toString(32);if(l.hasOwnProperty(u)){return gotTarget(null,l[u],v)}}c.stat(v,(function(t){if(t)return i(t);c.readlink(v,(function(t,r){if(!a)l[u]=r;gotTarget(t,r)}))}))}function gotTarget(t,a,c){if(t)return i(t);var u=o.resolve(y,a);if(r)r[c]=u;gotResolvedLink(u)}function gotResolvedLink(r){t=o.resolve(r,t.slice(m));start()}}},9611:t=>{
/*!
 * get-value <https://github.com/jonschlinkert/get-value>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
t.exports=function(t,r,i,o,a){if(!isObject(t)||!r){return t}r=toString(r);if(i)r+="."+toString(i);if(o)r+="."+toString(o);if(a)r+="."+toString(a);if(r in t){return t[r]}var c=r.split(".");var u=c.length;var l=-1;while(t&&++l<u){var h=c[l];while(h[h.length-1]==="\\"){h=h.slice(0,-1)+"."+c[++l]}t=t[h]}return t};function isObject(t){return t!==null&&(typeof t==="object"||typeof t==="function")}function toString(t){if(!t)return"";if(Array.isArray(t)){return t.join(".")}return t}},7117:t=>{t.exports=function(t,r){if(typeof t!=="string"){throw new TypeError("Expected a string")}var i=String(t);var o="";var a=r?!!r.extended:false;var c=r?!!r.globstar:false;var u=false;var l=r&&typeof r.flags==="string"?r.flags:"";var h;for(var p=0,d=i.length;p<d;p++){h=i[p];switch(h){case"\\":case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":o+="\\"+h;break;case"?":if(a){o+=".";break}case"[":case"]":if(a){o+=h;break}case"{":if(a){u=true;o+="(";break}case"}":if(a){u=false;o+=")";break}case",":if(u){o+="|";break}o+="\\"+h;break;case"*":var m=i[p-1];var g=1;while(i[p+1]==="*"){g++;p++}var v=i[p+1];if(!c){o+=".*"}else{var y=g>1&&(m==="/"||m===undefined)&&(v==="/"||v===undefined);if(y){o+="(?:[^/]*(?:/|$))*";p++}else{o+="[^/]*"}}break;default:o+=h}}if(!l||!~l.indexOf("g")){o="^"+o+"$"}return new RegExp(o,l)}},7625:(t,r,i)=>{r.setopts=setopts;r.ownProp=ownProp;r.makeAbs=makeAbs;r.finish=finish;r.mark=mark;r.isIgnored=isIgnored;r.childrenIgnored=childrenIgnored;function ownProp(t,r){return Object.prototype.hasOwnProperty.call(t,r)}var o=i(7147);var a=i(1017);var c=i(3973);var u=i(8714);var l=c.Minimatch;function alphasort(t,r){return t.localeCompare(r,"en")}function setupIgnores(t,r){t.ignore=r.ignore||[];if(!Array.isArray(t.ignore))t.ignore=[t.ignore];if(t.ignore.length){t.ignore=t.ignore.map(ignoreMap)}}function ignoreMap(t){var r=null;if(t.slice(-3)==="/**"){var i=t.replace(/(\/\*\*)+$/,"");r=new l(i,{dot:true})}return{matcher:new l(t,{dot:true}),gmatcher:r}}function setopts(t,r,i){if(!i)i={};if(i.matchBase&&-1===r.indexOf("/")){if(i.noglobstar){throw new Error("base matching requires globstar")}r="**/"+r}t.silent=!!i.silent;t.pattern=r;t.strict=i.strict!==false;t.realpath=!!i.realpath;t.realpathCache=i.realpathCache||Object.create(null);t.follow=!!i.follow;t.dot=!!i.dot;t.mark=!!i.mark;t.nodir=!!i.nodir;if(t.nodir)t.mark=true;t.sync=!!i.sync;t.nounique=!!i.nounique;t.nonull=!!i.nonull;t.nosort=!!i.nosort;t.nocase=!!i.nocase;t.stat=!!i.stat;t.noprocess=!!i.noprocess;t.absolute=!!i.absolute;t.fs=i.fs||o;t.maxLength=i.maxLength||Infinity;t.cache=i.cache||Object.create(null);t.statCache=i.statCache||Object.create(null);t.symlinks=i.symlinks||Object.create(null);setupIgnores(t,i);t.changedCwd=false;var c=process.cwd();if(!ownProp(i,"cwd"))t.cwd=c;else{t.cwd=a.resolve(i.cwd);t.changedCwd=t.cwd!==c}t.root=i.root||a.resolve(t.cwd,"/");t.root=a.resolve(t.root);if(process.platform==="win32")t.root=t.root.replace(/\\/g,"/");t.cwdAbs=u(t.cwd)?t.cwd:makeAbs(t,t.cwd);if(process.platform==="win32")t.cwdAbs=t.cwdAbs.replace(/\\/g,"/");t.nomount=!!i.nomount;i.nonegate=true;i.nocomment=true;i.allowWindowsEscape=false;t.minimatch=new l(r,i);t.options=t.minimatch.options}function finish(t){var r=t.nounique;var i=r?[]:Object.create(null);for(var o=0,a=t.matches.length;o<a;o++){var c=t.matches[o];if(!c||Object.keys(c).length===0){if(t.nonull){var u=t.minimatch.globSet[o];if(r)i.push(u);else i[u]=true}}else{var l=Object.keys(c);if(r)i.push.apply(i,l);else l.forEach((function(t){i[t]=true}))}}if(!r)i=Object.keys(i);if(!t.nosort)i=i.sort(alphasort);if(t.mark){for(var o=0;o<i.length;o++){i[o]=t._mark(i[o])}if(t.nodir){i=i.filter((function(r){var i=!/\/$/.test(r);var o=t.cache[r]||t.cache[makeAbs(t,r)];if(i&&o)i=o!=="DIR"&&!Array.isArray(o);return i}))}}if(t.ignore.length)i=i.filter((function(r){return!isIgnored(t,r)}));t.found=i}function mark(t,r){var i=makeAbs(t,r);var o=t.cache[i];var a=r;if(o){var c=o==="DIR"||Array.isArray(o);var u=r.slice(-1)==="/";if(c&&!u)a+="/";else if(!c&&u)a=a.slice(0,-1);if(a!==r){var l=makeAbs(t,a);t.statCache[l]=t.statCache[i];t.cache[l]=t.cache[i]}}return a}function makeAbs(t,r){var i=r;if(r.charAt(0)==="/"){i=a.join(t.root,r)}else if(u(r)||r===""){i=r}else if(t.changedCwd){i=a.resolve(t.cwd,r)}else{i=a.resolve(r)}if(process.platform==="win32")i=i.replace(/\\/g,"/");return i}function isIgnored(t,r){if(!t.ignore.length)return false;return t.ignore.some((function(t){return t.matcher.match(r)||!!(t.gmatcher&&t.gmatcher.match(r))}))}function childrenIgnored(t,r){if(!t.ignore.length)return false;return t.ignore.some((function(t){return!!(t.gmatcher&&t.gmatcher.match(r))}))}},1957:(t,r,i)=>{t.exports=glob;var o=i(6863);var a=i(3973);var c=a.Minimatch;var u=i(4124);var l=i(2361).EventEmitter;var h=i(1017);var p=i(9491);var d=i(8714);var m=i(9010);var g=i(7625);var v=g.setopts;var y=g.ownProp;var b=i(2492);var w=i(3837);var x=g.childrenIgnored;var S=g.isIgnored;var E=i(1223);function glob(t,r,i){if(typeof r==="function")i=r,r={};if(!r)r={};if(r.sync){if(i)throw new TypeError("callback provided to sync glob");return m(t,r)}return new Glob(t,r,i)}glob.sync=m;var O=glob.GlobSync=m.GlobSync;glob.glob=glob;function extend(t,r){if(r===null||typeof r!=="object"){return t}var i=Object.keys(r);var o=i.length;while(o--){t[i[o]]=r[i[o]]}return t}glob.hasMagic=function(t,r){var i=extend({},r);i.noprocess=true;var o=new Glob(t,i);var a=o.minimatch.set;if(!t)return false;if(a.length>1)return true;for(var c=0;c<a[0].length;c++){if(typeof a[0][c]!=="string")return true}return false};glob.Glob=Glob;u(Glob,l);function Glob(t,r,i){if(typeof r==="function"){i=r;r=null}if(r&&r.sync){if(i)throw new TypeError("callback provided to sync glob");return new O(t,r)}if(!(this instanceof Glob))return new Glob(t,r,i);v(this,t,r);this._didRealPath=false;var o=this.minimatch.set.length;this.matches=new Array(o);if(typeof i==="function"){i=E(i);this.on("error",i);this.on("end",(function(t){i(null,t)}))}var a=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(o===0)return done();var c=true;for(var u=0;u<o;u++){this._process(this.minimatch.set[u],u,false,done)}c=false;function done(){--a._processing;if(a._processing<=0){if(c){process.nextTick((function(){a._finish()}))}else{a._finish()}}}}Glob.prototype._finish=function(){p(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();g.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var t=this.matches.length;if(t===0)return this._finish();var r=this;for(var i=0;i<this.matches.length;i++)this._realpathSet(i,next);function next(){if(--t===0)r._finish()}};Glob.prototype._realpathSet=function(t,r){var i=this.matches[t];if(!i)return r();var a=Object.keys(i);var c=this;var u=a.length;if(u===0)return r();var l=this.matches[t]=Object.create(null);a.forEach((function(i,a){i=c._makeAbs(i);o.realpath(i,c.realpathCache,(function(o,a){if(!o)l[a]=true;else if(o.syscall==="stat")l[i]=true;else c.emit("error",o);if(--u===0){c.matches[t]=l;r()}}))}))};Glob.prototype._mark=function(t){return g.mark(this,t)};Glob.prototype._makeAbs=function(t){return g.makeAbs(this,t)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var t=this._emitQueue.slice(0);this._emitQueue.length=0;for(var r=0;r<t.length;r++){var i=t[r];this._emitMatch(i[0],i[1])}}if(this._processQueue.length){var o=this._processQueue.slice(0);this._processQueue.length=0;for(var r=0;r<o.length;r++){var a=o[r];this._processing--;this._process(a[0],a[1],a[2],a[3])}}}};Glob.prototype._process=function(t,r,i,o){p(this instanceof Glob);p(typeof o==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([t,r,i,o]);return}var c=0;while(typeof t[c]==="string"){c++}var u;switch(c){case t.length:this._processSimple(t.join("/"),r,o);return;case 0:u=null;break;default:u=t.slice(0,c).join("/");break}var l=t.slice(c);var h;if(u===null)h=".";else if(d(u)||d(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!u||!d(u))u="/"+u;h=u}else h=u;var m=this._makeAbs(h);if(x(this,h))return o();var g=l[0]===a.GLOBSTAR;if(g)this._processGlobStar(u,h,m,l,r,i,o);else this._processReaddir(u,h,m,l,r,i,o)};Glob.prototype._processReaddir=function(t,r,i,o,a,c,u){var l=this;this._readdir(i,c,(function(h,p){return l._processReaddir2(t,r,i,o,a,c,p,u)}))};Glob.prototype._processReaddir2=function(t,r,i,o,a,c,u,l){if(!u)return l();var p=o[0];var d=!!this.minimatch.negate;var m=p._glob;var g=this.dot||m.charAt(0)===".";var v=[];for(var y=0;y<u.length;y++){var b=u[y];if(b.charAt(0)!=="."||g){var w;if(d&&!t){w=!b.match(p)}else{w=b.match(p)}if(w)v.push(b)}}var x=v.length;if(x===0)return l();if(o.length===1&&!this.mark&&!this.stat){if(!this.matches[a])this.matches[a]=Object.create(null);for(var y=0;y<x;y++){var b=v[y];if(t){if(t!=="/")b=t+"/"+b;else b=t+b}if(b.charAt(0)==="/"&&!this.nomount){b=h.join(this.root,b)}this._emitMatch(a,b)}return l()}o.shift();for(var y=0;y<x;y++){var b=v[y];var S;if(t){if(t!=="/")b=t+"/"+b;else b=t+b}this._process([b].concat(o),a,c,l)}l()};Glob.prototype._emitMatch=function(t,r){if(this.aborted)return;if(S(this,r))return;if(this.paused){this._emitQueue.push([t,r]);return}var i=d(r)?r:this._makeAbs(r);if(this.mark)r=this._mark(r);if(this.absolute)r=i;if(this.matches[t][r])return;if(this.nodir){var o=this.cache[i];if(o==="DIR"||Array.isArray(o))return}this.matches[t][r]=true;var a=this.statCache[i];if(a)this.emit("stat",r,a);this.emit("match",r)};Glob.prototype._readdirInGlobStar=function(t,r){if(this.aborted)return;if(this.follow)return this._readdir(t,false,r);var i="lstat\0"+t;var o=this;var a=b(i,lstatcb_);if(a)o.fs.lstat(t,a);function lstatcb_(i,a){if(i&&i.code==="ENOENT")return r();var c=a&&a.isSymbolicLink();o.symlinks[t]=c;if(!c&&a&&!a.isDirectory()){o.cache[t]="FILE";r()}else o._readdir(t,false,r)}};Glob.prototype._readdir=function(t,r,i){if(this.aborted)return;i=b("readdir\0"+t+"\0"+r,i);if(!i)return;if(r&&!y(this.symlinks,t))return this._readdirInGlobStar(t,i);if(y(this.cache,t)){var o=this.cache[t];if(!o||o==="FILE")return i();if(Array.isArray(o))return i(null,o)}var a=this;a.fs.readdir(t,readdirCb(this,t,i))};function readdirCb(t,r,i){return function(o,a){if(o)t._readdirError(r,o,i);else t._readdirEntries(r,a,i)}}Glob.prototype._readdirEntries=function(t,r,i){if(this.aborted)return;if(!this.mark&&!this.stat){for(var o=0;o<r.length;o++){var a=r[o];if(t==="/")a=t+a;else a=t+"/"+a;this.cache[a]=true}}this.cache[t]=r;return i(null,r)};Glob.prototype._readdirError=function(t,r,i){if(this.aborted)return;switch(r.code){case"ENOTSUP":case"ENOTDIR":var o=this._makeAbs(t);this.cache[o]="FILE";if(o===this.cwdAbs){var a=new Error(r.code+" invalid cwd "+this.cwd);a.path=this.cwd;a.code=r.code;this.emit("error",a);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict){this.emit("error",r);this.abort()}if(!this.silent)console.error("glob error",r);break}return i()};Glob.prototype._processGlobStar=function(t,r,i,o,a,c,u){var l=this;this._readdir(i,c,(function(h,p){l._processGlobStar2(t,r,i,o,a,c,p,u)}))};Glob.prototype._processGlobStar2=function(t,r,i,o,a,c,u,l){if(!u)return l();var h=o.slice(1);var p=t?[t]:[];var d=p.concat(h);this._process(d,a,false,l);var m=this.symlinks[i];var g=u.length;if(m&&c)return l();for(var v=0;v<g;v++){var y=u[v];if(y.charAt(0)==="."&&!this.dot)continue;var b=p.concat(u[v],h);this._process(b,a,true,l);var w=p.concat(u[v],o);this._process(w,a,true,l)}l()};Glob.prototype._processSimple=function(t,r,i){var o=this;this._stat(t,(function(a,c){o._processSimple2(t,r,a,c,i)}))};Glob.prototype._processSimple2=function(t,r,i,o,a){if(!this.matches[r])this.matches[r]=Object.create(null);if(!o)return a();if(t&&d(t)&&!this.nomount){var c=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=h.join(this.root,t)}else{t=h.resolve(this.root,t);if(c)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(r,t);a()};Glob.prototype._stat=function(t,r){var i=this._makeAbs(t);var o=t.slice(-1)==="/";if(t.length>this.maxLength)return r();if(!this.stat&&y(this.cache,i)){var a=this.cache[i];if(Array.isArray(a))a="DIR";if(!o||a==="DIR")return r(null,a);if(o&&a==="FILE")return r()}var c;var u=this.statCache[i];if(u!==undefined){if(u===false)return r(null,u);else{var l=u.isDirectory()?"DIR":"FILE";if(o&&l==="FILE")return r();else return r(null,l,u)}}var h=this;var p=b("stat\0"+i,lstatcb_);if(p)h.fs.lstat(i,p);function lstatcb_(o,a){if(a&&a.isSymbolicLink()){return h.fs.stat(i,(function(o,c){if(o)h._stat2(t,i,null,a,r);else h._stat2(t,i,o,c,r)}))}else{h._stat2(t,i,o,a,r)}}};Glob.prototype._stat2=function(t,r,i,o,a){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR")){this.statCache[r]=false;return a()}var c=t.slice(-1)==="/";this.statCache[r]=o;if(r.slice(-1)==="/"&&o&&!o.isDirectory())return a(null,false,o);var u=true;if(o)u=o.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||u;if(c&&u==="FILE")return a();return a(null,u,o)}},9010:(t,r,i)=>{t.exports=globSync;globSync.GlobSync=GlobSync;var o=i(6863);var a=i(3973);var c=a.Minimatch;var u=i(1957).Glob;var l=i(3837);var h=i(1017);var p=i(9491);var d=i(8714);var m=i(7625);var g=m.setopts;var v=m.ownProp;var y=m.childrenIgnored;var b=m.isIgnored;function globSync(t,r){if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(t,r).found}function GlobSync(t,r){if(!t)throw new Error("must provide pattern");if(typeof r==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(t,r);g(this,t,r);if(this.noprocess)return this;var i=this.minimatch.set.length;this.matches=new Array(i);for(var o=0;o<i;o++){this._process(this.minimatch.set[o],o,false)}this._finish()}GlobSync.prototype._finish=function(){p.ok(this instanceof GlobSync);if(this.realpath){var t=this;this.matches.forEach((function(r,i){var a=t.matches[i]=Object.create(null);for(var c in r){try{c=t._makeAbs(c);var u=o.realpathSync(c,t.realpathCache);a[u]=true}catch(r){if(r.syscall==="stat")a[t._makeAbs(c)]=true;else throw r}}}))}m.finish(this)};GlobSync.prototype._process=function(t,r,i){p.ok(this instanceof GlobSync);var o=0;while(typeof t[o]==="string"){o++}var c;switch(o){case t.length:this._processSimple(t.join("/"),r);return;case 0:c=null;break;default:c=t.slice(0,o).join("/");break}var u=t.slice(o);var l;if(c===null)l=".";else if(d(c)||d(t.map((function(t){return typeof t==="string"?t:"[*]"})).join("/"))){if(!c||!d(c))c="/"+c;l=c}else l=c;var h=this._makeAbs(l);if(y(this,l))return;var m=u[0]===a.GLOBSTAR;if(m)this._processGlobStar(c,l,h,u,r,i);else this._processReaddir(c,l,h,u,r,i)};GlobSync.prototype._processReaddir=function(t,r,i,o,a,c){var u=this._readdir(i,c);if(!u)return;var l=o[0];var p=!!this.minimatch.negate;var d=l._glob;var m=this.dot||d.charAt(0)===".";var g=[];for(var v=0;v<u.length;v++){var y=u[v];if(y.charAt(0)!=="."||m){var b;if(p&&!t){b=!y.match(l)}else{b=y.match(l)}if(b)g.push(y)}}var w=g.length;if(w===0)return;if(o.length===1&&!this.mark&&!this.stat){if(!this.matches[a])this.matches[a]=Object.create(null);for(var v=0;v<w;v++){var y=g[v];if(t){if(t.slice(-1)!=="/")y=t+"/"+y;else y=t+y}if(y.charAt(0)==="/"&&!this.nomount){y=h.join(this.root,y)}this._emitMatch(a,y)}return}o.shift();for(var v=0;v<w;v++){var y=g[v];var x;if(t)x=[t,y];else x=[y];this._process(x.concat(o),a,c)}};GlobSync.prototype._emitMatch=function(t,r){if(b(this,r))return;var i=this._makeAbs(r);if(this.mark)r=this._mark(r);if(this.absolute){r=i}if(this.matches[t][r])return;if(this.nodir){var o=this.cache[i];if(o==="DIR"||Array.isArray(o))return}this.matches[t][r]=true;if(this.stat)this._stat(r)};GlobSync.prototype._readdirInGlobStar=function(t){if(this.follow)return this._readdir(t,false);var r;var i;var o;try{i=this.fs.lstatSync(t)}catch(t){if(t.code==="ENOENT"){return null}}var a=i&&i.isSymbolicLink();this.symlinks[t]=a;if(!a&&i&&!i.isDirectory())this.cache[t]="FILE";else r=this._readdir(t,false);return r};GlobSync.prototype._readdir=function(t,r){var i;if(r&&!v(this.symlinks,t))return this._readdirInGlobStar(t);if(v(this.cache,t)){var o=this.cache[t];if(!o||o==="FILE")return null;if(Array.isArray(o))return o}try{return this._readdirEntries(t,this.fs.readdirSync(t))}catch(r){this._readdirError(t,r);return null}};GlobSync.prototype._readdirEntries=function(t,r){if(!this.mark&&!this.stat){for(var i=0;i<r.length;i++){var o=r[i];if(t==="/")o=t+o;else o=t+"/"+o;this.cache[o]=true}}this.cache[t]=r;return r};GlobSync.prototype._readdirError=function(t,r){switch(r.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(t);this.cache[i]="FILE";if(i===this.cwdAbs){var o=new Error(r.code+" invalid cwd "+this.cwd);o.path=this.cwd;o.code=r.code;throw o}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(t)]=false;break;default:this.cache[this._makeAbs(t)]=false;if(this.strict)throw r;if(!this.silent)console.error("glob error",r);break}};GlobSync.prototype._processGlobStar=function(t,r,i,o,a,c){var u=this._readdir(i,c);if(!u)return;var l=o.slice(1);var h=t?[t]:[];var p=h.concat(l);this._process(p,a,false);var d=u.length;var m=this.symlinks[i];if(m&&c)return;for(var g=0;g<d;g++){var v=u[g];if(v.charAt(0)==="."&&!this.dot)continue;var y=h.concat(u[g],l);this._process(y,a,true);var b=h.concat(u[g],o);this._process(b,a,true)}};GlobSync.prototype._processSimple=function(t,r){var i=this._stat(t);if(!this.matches[r])this.matches[r]=Object.create(null);if(!i)return;if(t&&d(t)&&!this.nomount){var o=/[\/\\]$/.test(t);if(t.charAt(0)==="/"){t=h.join(this.root,t)}else{t=h.resolve(this.root,t);if(o)t+="/"}}if(process.platform==="win32")t=t.replace(/\\/g,"/");this._emitMatch(r,t)};GlobSync.prototype._stat=function(t){var r=this._makeAbs(t);var i=t.slice(-1)==="/";if(t.length>this.maxLength)return false;if(!this.stat&&v(this.cache,r)){var o=this.cache[r];if(Array.isArray(o))o="DIR";if(!i||o==="DIR")return o;if(i&&o==="FILE")return false}var a;var c=this.statCache[r];if(!c){var u;try{u=this.fs.lstatSync(r)}catch(t){if(t&&(t.code==="ENOENT"||t.code==="ENOTDIR")){this.statCache[r]=false;return false}}if(u&&u.isSymbolicLink()){try{c=this.fs.statSync(r)}catch(t){c=u}}else{c=u}}this.statCache[r]=c;var o=true;if(c)o=c.isDirectory()?"DIR":"FILE";this.cache[r]=this.cache[r]||o;if(i&&o==="FILE")return false;return o};GlobSync.prototype._mark=function(t){return m.mark(this,t)};GlobSync.prototype._makeAbs=function(t){return m.makeAbs(this,t)}},9038:(t,r,i)=>{"use strict";const o=i(7147);const a=i(1017);const c=i(2559);const u=i(2069);const l=i(4810);const h=i(2158);const p=["**/node_modules/**","**/bower_components/**","**/flow-typed/**","**/coverage/**","**/.git"];const d=l(o.readFile);const mapGitIgnorePatternTo=t=>r=>{if(r.startsWith("!")){return"!"+a.posix.join(t,r.slice(1))}return a.posix.join(t,r)};const parseGitIgnore=(t,r)=>{const i=h(a.relative(r.cwd,a.dirname(r.fileName)));return t.split(/\r?\n/).filter(Boolean).filter((t=>t.charAt(0)!=="#")).map(mapGitIgnorePatternTo(i))};const reduceIgnore=t=>t.reduce(((t,r)=>{t.add(parseGitIgnore(r.content,{cwd:r.cwd,fileName:r.filePath}));return t}),u());const getIsIgnoredPredecate=(t,r)=>i=>t.ignores(h(a.relative(r,i)));const getFile=(t,r)=>{const i=a.join(r,t);return d(i,"utf8").then((t=>({content:t,cwd:r,filePath:i})))};const getFileSync=(t,r)=>{const i=a.join(r,t);const c=o.readFileSync(i,"utf8");return{content:c,cwd:r,filePath:i}};const normalizeOptions=(t={})=>{const r=t.ignore||[];const i=t.cwd||process.cwd();return{ignore:r,cwd:i}};t.exports=t=>{t=normalizeOptions(t);return c("**/.gitignore",{ignore:p.concat(t.ignore),cwd:t.cwd}).then((r=>Promise.all(r.map((r=>getFile(r,t.cwd)))))).then((t=>reduceIgnore(t))).then((r=>getIsIgnoredPredecate(r,t.cwd)))};t.exports.sync=t=>{t=normalizeOptions(t);const r=c.sync("**/.gitignore",{ignore:p.concat(t.ignore),cwd:t.cwd});const i=r.map((r=>getFileSync(r,t.cwd)));const o=reduceIgnore(i);return getIsIgnoredPredecate(o,t.cwd)}},3398:(t,r,i)=>{"use strict";const o=i(7147);const a=i(9600);const c=i(1957);const u=i(2559);const l=i(2738);const h=i(9038);const DEFAULT_FILTER=()=>false;const isNegative=t=>t[0]==="!";const assertPatternsInput=t=>{if(!t.every((t=>typeof t==="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const checkCwdOption=t=>{if(t&&t.cwd&&!o.statSync(t.cwd).isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const generateGlobTasks=(t,r)=>{t=a([].concat(t));assertPatternsInput(t);checkCwdOption(r);const i=[];r=Object.assign({ignore:[],expandDirectories:true},r);t.forEach(((o,a)=>{if(isNegative(o)){return}const c=t.slice(a).filter(isNegative).map((t=>t.slice(1)));const u=Object.assign({},r,{ignore:r.ignore.concat(c)});i.push({pattern:o,options:u})}));return i};const globDirs=(t,r)=>{let i={};if(t.options.cwd){i.cwd=t.options.cwd}if(Array.isArray(t.options.expandDirectories)){i=Object.assign(i,{files:t.options.expandDirectories})}else if(typeof t.options.expandDirectories==="object"){i=Object.assign(i,t.options.expandDirectories)}return r(t.pattern,i)};const getPattern=(t,r)=>t.options.expandDirectories?globDirs(t,r):[t.pattern];const globToTask=t=>r=>{const{options:i}=t;if(i.ignore&&Array.isArray(i.ignore)&&i.expandDirectories){i.ignore=l.sync(i.ignore)}return{pattern:r,options:i}};const globby=(t,r)=>{let i;try{i=generateGlobTasks(t,r)}catch(t){return Promise.reject(t)}const o=Promise.all(i.map((t=>Promise.resolve(getPattern(t,l)).then((r=>Promise.all(r.map(globToTask(t)))))))).then((t=>a(...t)));const getFilter=()=>Promise.resolve(r&&r.gitignore?h({cwd:r.cwd,ignore:r.ignore}):DEFAULT_FILTER);return getFilter().then((t=>o.then((t=>Promise.all(t.map((t=>u(t.pattern,t.options)))))).then((t=>a(...t))).then((r=>r.filter((r=>!t(r)))))))};t.exports=globby;t.exports["default"]=globby;t.exports.sync=(t,r)=>{const i=generateGlobTasks(t,r);const getFilter=()=>r&&r.gitignore?h.sync({cwd:r.cwd,ignore:r.ignore}):DEFAULT_FILTER;const o=i.reduce(((t,r)=>{const i=getPattern(r,l.sync).map(globToTask(r));return t.concat(i)}),[]);const c=getFilter();return o.reduce(((t,r)=>a(t,u.sync(r.pattern,r.options))),[]).filter((t=>!c(t)))};t.exports.generateGlobTasks=generateGlobTasks;t.exports.hasMagic=(t,r)=>[].concat(t).some((t=>c.hasMagic(t,r)));t.exports.gitignore=h},7568:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7147);r.FILE_SYSTEM_ADAPTER={lstat:o.lstat,stat:o.stat,lstatSync:o.lstatSync,statSync:o.statSync};function getFileSystemAdapter(t){if(!t){return r.FILE_SYSTEM_ADAPTER}return Object.assign({},r.FILE_SYSTEM_ADAPTER,t)}r.getFileSystemAdapter=getFileSystemAdapter},2233:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(5503);const a=i(6918);function stat(t,r){return new Promise(((i,c)=>{a.async(t,o.prepare(r),((t,r)=>t?c(t):i(r)))}))}r.stat=stat;function statCallback(t,r,i){if(typeof r==="function"){i=r;r=undefined}if(typeof i==="undefined"){throw new TypeError('The "callback" argument must be of type Function.')}a.async(t,o.prepare(r),i)}r.statCallback=statCallback;function statSync(t,r){return a.sync(t,o.prepare(r))}r.statSync=statSync},5503:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});const o=i(7568);function prepare(t){const r=Object.assign({fs:o.getFileSystemAdapter(t?t.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},t);return r}r.prepare=prepare},6918:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function sync(t,r){const i=r.fs.lstatSync(t);if(!isFollowedSymlink(i,r)){return i}try{const i=r.fs.statSync(t);i.isSymbolicLink=()=>true;return i}catch(t){if(!r.throwErrorOnBrokenSymlinks){return i}throw t}}r.sync=sync;function async(t,r,i){r.fs.lstat(t,((o,a)=>{if(o){return i(o,undefined)}if(!isFollowedSymlink(a,r)){return i(null,a)}r.fs.stat(t,((t,o)=>{if(t){return r.throwErrorOnBrokenSymlinks?i(t):i(null,a)}o.isSymbolicLink=()=>true;i(null,o)}))}))}r.async=async;function isFollowedSymlink(t,r){return t.isSymbolicLink()&&r.followSymlinks}r.isFollowedSymlink=isFollowedSymlink},9050:(t,r,i)=>{"use strict";var o=i(6855);var a=i(340);var c=i(7273);var u=i(4610);var l=i(1014);var h=i(4809);var p=i(7444);var d=1024*64;var m={};function braces(t,r){var i=p.createKey(String(t),r);var o=[];var c=r&&r.cache===false;if(!c&&m.hasOwnProperty(i)){return m[i]}if(Array.isArray(t)){for(var u=0;u<t.length;u++){o.push.apply(o,braces.create(t[u],r))}}else{o=braces.create(t,r)}if(r&&r.nodupes===true){o=a(o)}if(!c){m[i]=o}return o}braces.expand=function(t,r){return braces.create(t,c({},r,{expand:true}))};braces.optimize=function(t,r){return braces.create(t,r)};braces.create=function(t,r){if(typeof t!=="string"){throw new TypeError("expected a string")}var i=r&&r.maxLength||d;if(t.length>=i){throw new Error("expected pattern to be less than "+i+" characters")}function create(){if(t===""||t.length<3){return[t]}if(p.isEmptySets(t)){return[]}if(p.isQuotedString(t)){return[t.slice(1,-1)]}var i=new h(r);var o=!r||r.expand!==true?i.optimize(t,r):i.expand(t,r);var c=o.output;if(r&&r.noempty===true){c=c.filter(Boolean)}if(r&&r.nodupes===true){c=a(c)}Object.defineProperty(c,"result",{enumerable:false,value:o});return c}return memoize("create",t,r,create)};braces.makeRe=function(t,r){if(typeof t!=="string"){throw new TypeError("expected a string")}var i=r&&r.maxLength||d;if(t.length>=i){throw new Error("expected pattern to be less than "+i+" characters")}function makeRe(){var i=braces(t,r);var a=c({strictErrors:false},r);return o(i,a)}return memoize("makeRe",t,r,makeRe)};braces.parse=function(t,r){var i=new h(r);return i.parse(t,r)};braces.compile=function(t,r){var i=new h(r);return i.compile(t,r)};braces.clearCache=function(){m=braces.cache={}};function memoize(t,r,i,o){var a=p.createKey(t+":"+r,i);var c=i&&i.cache===false;if(c){braces.clearCache();return o(r,i)}if(m.hasOwnProperty(a)){return m[a]}var u=o(r,i);m[a]=u;return u}braces.Braces=h;braces.compilers=u;braces.parsers=l;braces.cache=m;t.exports=braces},4809:(t,r,i)=>{"use strict";var o=i(7273);var a=i(2403);var c=i(4610);var u=i(1014);var l=i(7444);function Braces(t){this.options=o({},t)}Braces.prototype.init=function(t){if(this.isInitialized)return;this.isInitialized=true;var r=l.createOptions({},this.options,t);this.snapdragon=this.options.snapdragon||new a(r);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;c(this.snapdragon,r);u(this.snapdragon,r);l.define(this.snapdragon,"parse",(function(t,r){var i=a.prototype.parse.apply(this,arguments);this.parser.ast.input=t;var o=this.parser.stack;while(o.length){addParent({type:"brace.close",val:""},o.pop())}function addParent(t,r){l.define(t,"parent",r);r.nodes.push(t)}l.define(i,"parser",this.parser);return i}))};Braces.prototype.parse=function(t,r){if(t&&typeof t==="object"&&t.nodes)return t;this.init(r);return this.snapdragon.parse(t,r)};Braces.prototype.compile=function(t,r){if(typeof t==="string"){t=this.parse(t,r)}else{this.init(r)}return this.snapdragon.compile(t,r)};Braces.prototype.expand=function(t){var r=this.parse(t,{expand:true});return this.compile(r,{expand:true})};Braces.prototype.optimize=function(t){var r=this.parse(t,{optimize:true});return this.compile(r,{optimize:true})};t.exports=Braces},4610:(t,r,i)=>{"use strict";var o=i(7444);t.exports=function(t,r){t.compiler.set("bos",(function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1})).set("bracket",(function(t){var r=t.close;var i=!t.escaped?"[":"\\[";var a=t.negated;var c=t.inner;c=c.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(c==="]-"){c="\\]\\-"}if(a&&c.indexOf(".")===-1){c+="."}if(a&&c.indexOf("/")===-1){c+="/"}var u=i+a+c+r;var l=t.parent.queue;var h=o.arrayify(l.pop());l.push(o.join(h,u));l.push.apply(l,[])})).set("brace",(function(t){t.queue=isEscaped(t)?[t.val]:[];t.count=1;return this.mapVisit(t.nodes)})).set("brace.open",(function(t){t.parent.open=t.val})).set("text",(function(t){var i=t.parent.queue;var a=t.escaped;var c=[t.val];if(t.optimize===false){r=o.extend({},r,{optimize:false})}if(t.multiplier>1){t.parent.count*=t.multiplier}if(r.quantifiers===true&&o.isQuantifier(t.val)){a=true}else if(t.val.length>1){if(isType(t.parent,"brace")&&!isEscaped(t)){var u=o.expand(t.val,r);c=u.segs;if(u.isOptimized){t.parent.isOptimized=true}if(!c.length){var l=u.val||t.val;if(r.unescape!==false){l=l.replace(/\\([,.])/g,"$1");l=l.replace(/["'`]/g,"")}c=[l];a=true}}}else if(t.val===","){if(r.expand){t.parent.queue.push([""]);c=[""]}else{c=["|"]}}else{a=true}if(a&&isType(t.parent,"brace")){if(t.parent.nodes.length<=4&&t.parent.count===1){t.parent.escaped=true}else if(t.parent.length<=3){t.parent.escaped=true}}if(!hasQueue(t.parent)){t.parent.queue=c;return}var h=o.arrayify(i.pop());if(t.parent.count>1&&r.expand){h=multiply(h,t.parent.count);t.parent.count=1}i.push(o.join(o.flatten(h),c.shift()));i.push.apply(i,c)})).set("brace.close",(function(t){var i=t.parent.queue;var a=t.parent.parent;var c=a.queue.pop();var u=t.parent.open;var l=t.val;if(u&&l&&isOptimized(t,r)){u="(";l=")"}var h=o.last(i);if(t.parent.count>1&&r.expand){h=multiply(i.pop(),t.parent.count);t.parent.count=1;i.push(h)}if(l&&typeof h==="string"&&h.length===1){u="";l=""}if((isLiteralBrace(t,r)||noInner(t))&&!t.parent.hasEmpty){i.push(o.join(u,i.pop()||""));i=o.flatten(o.join(i,l))}if(typeof c==="undefined"){a.queue=[i]}else{a.queue.push(o.flatten(o.join(c,i)))}})).set("eos",(function(t){if(this.input)return;if(r.optimize!==false){this.output=o.last(o.flatten(this.ast.queue))}else if(Array.isArray(o.last(this.ast.queue))){this.output=o.flatten(this.ast.queue.pop())}else{this.output=o.flatten(this.ast.queue)}if(t.parent.count>1&&r.expand){this.output=multiply(this.output,t.parent.count)}this.output=o.arrayify(this.output);this.ast.queue=[]}))};function multiply(t,r,i){return o.flatten(o.repeat(o.arrayify(t),r))}function isEscaped(t){return t.escaped===true}function isOptimized(t,r){if(t.parent.isOptimized)return true;return isType(t.parent,"brace")&&!isEscaped(t.parent)&&r.expand!==true}function isLiteralBrace(t,r){return isEscaped(t.parent)||r.optimize!==false}function noInner(t,r){if(t.parent.queue.length===1){return true}var i=t.parent.nodes;return i.length===3&&isType(i[0],"brace.open")&&!isType(i[1],"text")&&isType(i[2],"brace.close")}function isType(t,r){return typeof t!=="undefined"&&t.type===r}function hasQueue(t){return Array.isArray(t.queue)&&t.queue.length}},1014:(t,r,i)=>{"use strict";var o=i(5244);var a=i(7444);t.exports=function(t,r){t.parser.set("bos",(function(){if(!this.parsed){this.ast=this.nodes[0]=new o(this.ast)}})).set("escape",(function(){var t=this.position();var i=this.match(/^(?:\\(.)|\$\{)/);if(!i)return;var c=this.prev();var u=a.last(c.nodes);var l=t(new o({type:"text",multiplier:1,val:i[0]}));if(l.val==="\\\\"){return l}if(l.val==="${"){var h=this.input;var p=-1;var d;while(d=h[++p]){this.consume(1);l.val+=d;if(d==="\\"){l.val+=h[++p];continue}if(d==="}"){break}}}if(this.options.unescape!==false){l.val=l.val.replace(/\\([{}])/g,"$1")}if(u.val==='"'&&this.input.charAt(0)==='"'){u.val=l.val;this.consume(1);return}return concatNodes.call(this,t,l,c,r)})).set("bracket",(function(){var t=this.isInside("brace");var r=this.position();var i=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!i)return;var a=this.prev();var c=i[0];var u=i[1]?"^":"";var l=i[2]||"";var h=i[3]||"";if(t&&a.type==="brace"){a.text=a.text||"";a.text+=c}var p=this.input.slice(0,2);if(l===""&&p==="\\]"){l+=p;this.consume(2);var d=this.input;var m=-1;var g;while(g=d[++m]){this.consume(1);if(g==="]"){h=g;break}l+=g}}return r(new o({type:"bracket",val:c,escaped:h!=="]",negated:u,inner:l,close:h}))})).set("multiplier",(function(){var t=this.isInside("brace");var i=this.position();var a=this.match(/^\{((?:,|\{,+\})+)\}/);if(!a)return;this.multiplier=true;var c=this.prev();var u=a[0];if(t&&c.type==="brace"){c.text=c.text||"";c.text+=u}var l=i(new o({type:"text",multiplier:1,match:a,val:u}));return concatNodes.call(this,i,l,c,r)})).set("brace.open",(function(){var t=this.position();var r=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!r)return;var i=this.prev();var c=a.last(i.nodes);if(c&&c.val&&isExtglobChar(c.val.slice(-1))){c.optimize=false}var u=t(new o({type:"brace.open",val:r[0]}));var l=t(new o({type:"brace",nodes:[]}));l.push(u);i.push(l);this.push("brace",l)})).set("brace.close",(function(){var t=this.position();var r=this.match(/^\}/);if(!r||!r[0])return;var i=this.pop("brace");var c=t(new o({type:"brace.close",val:r[0]}));if(!this.isType(i,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}c.type="text";c.multiplier=0;c.escaped=true;return c}var u=this.prev();var l=a.last(u.nodes);if(l.text){var h=a.last(l.nodes);if(h.val===")"&&/[!@*?+]\(/.test(l.text)){var p=l.nodes[0];var d=l.nodes[1];if(p.type==="brace.open"&&d&&d.type==="text"){d.optimize=false}}}if(i.nodes.length>2){var m=i.nodes[1];if(m.type==="text"&&m.val===","){i.nodes.splice(1,1);i.nodes.push(m)}}i.push(c)})).set("boundary",(function(){var t=this.position();var r=this.match(/^[$^](?!\{)/);if(!r)return;return t(new o({type:"text",val:r[0]}))})).set("nobrace",(function(){var t=this.isInside("brace");var r=this.position();var i=this.match(/^\{[^,]?\}/);if(!i)return;var a=this.prev();var c=i[0];if(t&&a.type==="brace"){a.text=a.text||"";a.text+=c}return r(new o({type:"text",multiplier:0,val:c}))})).set("text",(function(){var t=this.isInside("brace");var i=this.position();var a=this.match(/^((?!\\)[^${}[\]])+/);if(!a)return;var c=this.prev();var u=a[0];if(t&&c.type==="brace"){c.text=c.text||"";c.text+=u}var l=i(new o({type:"text",multiplier:1,val:u}));return concatNodes.call(this,i,l,c,r)}))};function isExtglobChar(t){return t==="!"||t==="@"||t==="*"||t==="?"||t==="+"}function concatNodes(t,r,i,o){r.orig=r.val;var c=this.prev();var u=a.last(c.nodes);var l=false;if(r.val.length>1){var h=r.val.charAt(0);var p=r.val.slice(-1);l=h==='"'&&p==='"'||h==="'"&&p==="'"||h==="`"&&p==="`"}if(l&&o.unescape!==false){r.val=r.val.slice(1,r.val.length-1);r.escaped=true}if(r.match){var d=r.match[1];if(!d||d.indexOf("}")===-1){d=r.match[0]}var m=d.replace(/\{/g,",").replace(/\}/g,"");r.multiplier*=m.length;r.val=""}var g=u.type==="text"&&u.multiplier===1&&r.multiplier===1&&r.val;if(g){u.val+=r.val;return}c.push(r)}},7444:(t,r,i)=>{"use strict";var o=i(4960);var a=t.exports;a.extend=i(7273);a.flatten=i(7493);a.isObject=i(5509);a.fillRange=i(6753);a.repeat=i(3301);a.unique=i(340);a.define=function(t,r,i){Object.defineProperty(t,r,{writable:true,configurable:true,enumerable:false,value:i})};a.isEmptySets=function(t){return/^(?:\{,\})+$/.test(t)};a.isQuotedString=function(t){var r=t.charAt(0);if(r==="'"||r==='"'||r==="`"){return t.slice(-1)===r}return false};a.createKey=function(t,r){var i=t;if(typeof r==="undefined"){return i}var o=Object.keys(r);for(var a=0;a<o.length;a++){var c=o[a];i+=";"+c+"="+String(r[c])}return i};a.createOptions=function(t){var r=a.extend.apply(null,arguments);if(typeof r.expand==="boolean"){r.optimize=!r.expand}if(typeof r.optimize==="boolean"){r.expand=!r.optimize}if(r.optimize===true){r.makeRe=true}return r};a.join=function(t,r,i){i=i||{};t=a.arrayify(t);r=a.arrayify(r);if(!t.length)return r;if(!r.length)return t;var o=t.length;var c=-1;var u=[];while(++c<o){var l=t[c];if(Array.isArray(l)){for(var h=0;h<l.length;h++){l[h]=a.join(l[h],r,i)}u.push(l);continue}for(var p=0;p<r.length;p++){var d=r[p];if(Array.isArray(d)){u.push(a.join(l,d,i))}else{u.push(l+d)}}}return u};a.split=function(t,r){var i=a.extend({sep:","},r);if(typeof i.keepQuotes!=="boolean"){i.keepQuotes=true}if(i.unescape===false){i.keepEscaping=true}return o(t,i,a.escapeBrackets(i))};a.expand=function(t,r){var i=a.extend({rangeLimit:1e4},r);var o=a.split(t,i);var c={segs:o};if(a.isQuotedString(t)){return c}if(i.rangeLimit===true){i.rangeLimit=1e4}if(o.length>1){if(i.optimize===false){c.val=o[0];return c}c.segs=a.stringifyArray(c.segs)}else if(o.length===1){var u=t.split("..");if(u.length===1){c.val=c.segs[c.segs.length-1]||c.val||t;c.segs=[];return c}if(u.length===2&&u[0]===u[1]){c.escaped=true;c.val=u[0];c.segs=[];return c}if(u.length>1){if(i.optimize!==false){i.optimize=true;delete i.expand}if(i.optimize!==true){var l=Math.min(u[0],u[1]);var h=Math.max(u[0],u[1]);var p=u[2]||1;if(i.rangeLimit!==false&&(h-l)/p>=i.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}u.push(i);c.segs=a.fillRange.apply(null,u);if(!c.segs.length){c.escaped=true;c.val=t;return c}if(i.optimize===true){c.segs=a.stringifyArray(c.segs)}if(c.segs===""){c.val=t}else{c.val=c.segs[0]}return c}}else{c.val=t}return c};a.escapeBrackets=function(t){return function(r){if(r.escaped&&r.val==="b"){r.val="\\b";return}if(r.val!=="("&&r.val!=="[")return;var i=a.extend({},t);var o=[];var c=[];var u=[];var l=r.val;var h=r.str;var p=r.idx-1;while(++p<h.length){var d=h[p];if(d==="\\"){l+=(i.keepEscaping===false?"":d)+h[++p];continue}if(d==="("){c.push(d);u.push(d)}if(d==="["){o.push(d);u.push(d)}if(d===")"){c.pop();u.pop();if(!u.length){l+=d;break}}if(d==="]"){o.pop();u.pop();if(!u.length){l+=d;break}}l+=d}r.split=false;r.val=l.slice(1);r.idx=p}};a.isQuantifier=function(t){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(t)};a.stringifyArray=function(t){return[a.arrayify(t).join("|")]};a.arrayify=function(t){if(typeof t==="undefined"){return[]}if(typeof t==="string"){return[t]}return t};a.isString=function(t){return t!=null&&typeof t==="string"};a.last=function(t,r){return t[t.length-(r||1)]};a.escapeRegex=function(t){return t.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},7273:(t,r,i)=>{"use strict";var o=i(4977);t.exports=function extend(t){if(!o(t)){t={}}var r=arguments.length;for(var i=1;i<r;i++){var a=arguments[i];if(o(a)){assign(t,a)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}},4977:t=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function isExtendable(t){return typeof t!=="undefined"&&t!==null&&(typeof t==="object"||typeof t==="function")}},4774:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015-2018, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5509);var a=i(567);var c=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;t.exports=function defineProperty(t,r,i){if(!o(t)&&typeof t!=="function"&&!Array.isArray(t)){throw new TypeError("expected an object, function, or array")}if(typeof r!=="string"){throw new TypeError('expected "key" to be a string')}if(a(i)){c(t,r,i);return t}c(t,r,{configurable:true,enumerable:false,writable:true,value:i});return t}},8319:(t,r,i)=>{"use strict";var o=i(2141);var a=i(8782);t.exports=Object.assign||function(t){if(t===null||typeof t==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(t)){t={}}for(var r=1;r<arguments.length;r++){var i=arguments[r];if(isString(i)){i=toObject(i)}if(isObject(i)){assign(t,i);a(t,i)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function isString(t){return t&&typeof t==="string"}function toObject(t){var r={};for(var i in t){r[i]=t[i]}return r}function isObject(t){return t&&typeof t==="object"||o(t)}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function isEnum(t,r){return Object.prototype.propertyIsEnumerable.call(t,r)}},2559:(t,r,i)=>{const o=i(9490);t.exports=o.async;t.exports["default"]=o.async;t.exports.async=o.async;t.exports.sync=o.sync;t.exports.stream=o.stream;t.exports.generateTasks=o.generateTasks},2562:function(t,r,i){"use strict";var o=this&&this.__extends||function(){var extendStatics=function(t,r){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)if(r.hasOwnProperty(i))t[i]=r[i]};return extendStatics(t,r)};return function(t,r){extendStatics(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(r,"__esModule",{value:true});var a=i(2781);var c=i(2233);var u=i(4689);var l=function(t){o(FileSystemStream,t);function FileSystemStream(){return t!==null&&t.apply(this,arguments)||this}FileSystemStream.prototype.read=function(t,r){var i=this;var o=t.map(this.getFullEntryPath,this);var c=new a.Transform({objectMode:true});c._transform=function(a,u,l){return i.getEntry(o[a],t[a]).then((function(t){if(t!==null&&r(t)){c.push(t)}if(a===o.length-1){c.end()}l()}))};for(var u=0;u<o.length;u++){c.write(u)}return c};FileSystemStream.prototype.getEntry=function(t,r){var i=this;return this.getStat(t).then((function(t){return i.makeEntry(t,r)})).catch((function(){return null}))};FileSystemStream.prototype.getStat=function(t){return c.stat(t,{throwErrorOnBrokenSymlinks:false})};return FileSystemStream}(u.default);r["default"]=l},8923:function(t,r,i){"use strict";var o=this&&this.__extends||function(){var extendStatics=function(t,r){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)if(r.hasOwnProperty(i))t[i]=r[i]};return extendStatics(t,r)};return function(t,r){extendStatics(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(r,"__esModule",{value:true});var a=i(2233);var c=i(4689);var u=function(t){o(FileSystemSync,t);function FileSystemSync(){return t!==null&&t.apply(this,arguments)||this}FileSystemSync.prototype.read=function(t,r){var i=this;var o=[];t.forEach((function(t){var a=i.getFullEntryPath(t);var c=i.getEntry(a,t);if(c===null||!r(c)){return}o.push(c)}));return o};FileSystemSync.prototype.getEntry=function(t,r){try{var i=this.getStat(t);return this.makeEntry(i,r)}catch(t){return null}};FileSystemSync.prototype.getStat=function(t){return a.statSync(t,{throwErrorOnBrokenSymlinks:false})};return FileSystemSync}(c.default);r["default"]=u},4689:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(1017);var a=function(){function FileSystem(t){this.options=t}FileSystem.prototype.getFullEntryPath=function(t){return o.resolve(this.options.cwd,t)};FileSystem.prototype.makeEntry=function(t,r){t.path=r;t.depth=r.split("/").length;return t};return FileSystem}();r["default"]=a},9490:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(6704);var a=i(6197);var c=i(4089);var u=i(5382);var l=i(569);var h=i(4201);var p=i(1954);function sync(t,r){assertPatternsInput(t);var i=getWorks(t,l.default,r);return h.flatten(i)}r.sync=sync;function async(t,r){try{assertPatternsInput(t)}catch(t){return Promise.reject(t)}var i=getWorks(t,c.default,r);return Promise.all(i).then(h.flatten)}r.async=async;function stream(t,r){assertPatternsInput(t);var i=getWorks(t,u.default,r);return p.merge(i)}r.stream=stream;function generateTasks(t,r){assertPatternsInput(t);var i=[].concat(t);var c=o.prepare(r);return a.generate(i,c)}r.generateTasks=generateTasks;function getWorks(t,r,i){var c=[].concat(t);var u=o.prepare(i);var l=a.generate(c,u);var h=new r(u);return l.map(h.read,h)}function assertPatternsInput(t){if([].concat(t).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(t){return typeof t==="string"}},6704:function(t,r){"use strict";var i=this&&this.__assign||function(){i=Object.assign||function(t){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))t[a]=r[a]}return t};return i.apply(this,arguments)};Object.defineProperty(r,"__esModule",{value:true});function prepare(t){var r=i({cwd:process.cwd(),deep:true,ignore:[],dot:false,stats:false,onlyFiles:true,onlyDirectories:false,followSymlinkedDirectories:true,unique:true,markDirectories:false,absolute:false,nobrace:false,brace:true,noglobstar:false,globstar:true,noext:false,extension:true,nocase:false,case:true,matchBase:false,transform:null},t);if(r.onlyDirectories){r.onlyFiles=false}r.brace=!r.nobrace;r.globstar=!r.noglobstar;r.extension=!r.noext;r.case=!r.nocase;if(t){r.brace="brace"in t?t.brace:r.brace;r.globstar="globstar"in t?t.globstar:r.globstar;r.extension="extension"in t?t.extension:r.extension;r.case="case"in t?t.case:r.case}return r}r.prepare=prepare},6197:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(9516);function generate(t,r){var i=t.map(o.unixifyPattern);var a=r.ignore.map(o.unixifyPattern);var c=getPositivePatterns(i);var u=getNegativePatternsAsPositive(i,a);var l=!r.case?[]:c.filter(o.isStaticPattern);var h=!r.case?c:c.filter(o.isDynamicPattern);var p=convertPatternsToTasks(l,u,false);var d=convertPatternsToTasks(h,u,true);return p.concat(d)}r.generate=generate;function convertPatternsToTasks(t,r,i){var o=groupPatternsByBaseDirectory(t);if("."in o){var a=convertPatternGroupToTask(".",t,r,i);return[a]}return convertPatternGroupsToTasks(o,r,i)}r.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(t){return o.getPositivePatterns(t)}r.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(t,r){var i=o.getNegativePatterns(t).concat(r);var a=i.map(o.convertToPositivePattern);return a}r.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(t){return t.reduce((function(t,r){var i=o.getBaseDirectory(r);if(i in t){t[i].push(r)}else{t[i]=[r]}return t}),{})}r.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(t,r,i){return Object.keys(t).map((function(o){return convertPatternGroupToTask(o,t[o],r,i)}))}r.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(t,r,i,a){return{base:t,dynamic:a,positive:r,negative:i,patterns:[].concat(r,i.map(o.convertToNegativePattern))}}r.convertPatternGroupToTask=convertPatternGroupToTask},5425:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(3514);var a=i(9516);var c=function(){function DeepFilter(t,r){this.options=t;this.micromatchOptions=r}DeepFilter.prototype.getFilter=function(t,r){var i=this;var o=this.getMaxPatternDepth(t);var a=this.getNegativePatternsRe(r);return function(t){return i.filter(t,a,o)}};DeepFilter.prototype.getMaxPatternDepth=function(t){var r=t.some(a.hasGlobStar);return r?Infinity:a.getMaxNaivePatternsDepth(t)};DeepFilter.prototype.getNegativePatternsRe=function(t){var r=t.filter(a.isAffectDepthOfReadingPattern);return a.convertPatternsToRe(r,this.micromatchOptions)};DeepFilter.prototype.filter=function(t,r,i){if(this.isSkippedByDeepOption(t.depth)){return false}if(this.isSkippedByMaxPatternDepth(t.depth,i)){return false}if(this.isSkippedSymlinkedDirectory(t)){return false}if(this.isSkippedDotDirectory(t)){return false}return this.isSkippedByNegativePatterns(t,r)};DeepFilter.prototype.isSkippedByDeepOption=function(t){return!this.options.deep||typeof this.options.deep==="number"&&t>=this.options.deep};DeepFilter.prototype.isSkippedByMaxPatternDepth=function(t,r){return r!==Infinity&&t>=r};DeepFilter.prototype.isSkippedSymlinkedDirectory=function(t){return!this.options.followSymlinkedDirectories&&t.isSymbolicLink()};DeepFilter.prototype.isSkippedDotDirectory=function(t){return!this.options.dot&&o.isDotDirectory(t.path)};DeepFilter.prototype.isSkippedByNegativePatterns=function(t,r){return!a.matchAny(t.path,r)};return DeepFilter}();r["default"]=c},3054:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(3514);var a=i(9516);var c=function(){function EntryFilter(t,r){this.options=t;this.micromatchOptions=r;this.index=new Map}EntryFilter.prototype.getFilter=function(t,r){var i=this;var o=a.convertPatternsToRe(t,this.micromatchOptions);var c=a.convertPatternsToRe(r,this.micromatchOptions);return function(t){return i.filter(t,o,c)}};EntryFilter.prototype.filter=function(t,r,i){if(this.options.unique){if(this.isDuplicateEntry(t)){return false}this.createIndexRecord(t)}if(this.onlyFileFilter(t)||this.onlyDirectoryFilter(t)){return false}if(this.isSkippedByAbsoluteNegativePatterns(t,i)){return false}return this.isMatchToPatterns(t.path,r)&&!this.isMatchToPatterns(t.path,i)};EntryFilter.prototype.isDuplicateEntry=function(t){return this.index.has(t.path)};EntryFilter.prototype.createIndexRecord=function(t){this.index.set(t.path,undefined)};EntryFilter.prototype.onlyFileFilter=function(t){return this.options.onlyFiles&&!t.isFile()};EntryFilter.prototype.onlyDirectoryFilter=function(t){return this.options.onlyDirectories&&!t.isDirectory()};EntryFilter.prototype.isSkippedByAbsoluteNegativePatterns=function(t,r){if(!this.options.absolute){return false}var i=o.makeAbsolute(this.options.cwd,t.path);return this.isMatchToPatterns(i,r)};EntryFilter.prototype.isMatchToPatterns=function(t,r){return a.matchAny(t,r)||a.matchAny(t+"/",r)};return EntryFilter}();r["default"]=c},4089:function(t,r,i){"use strict";var o=this&&this.__extends||function(){var extendStatics=function(t,r){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)if(r.hasOwnProperty(i))t[i]=r[i]};return extendStatics(t,r)};return function(t,r){extendStatics(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(r,"__esModule",{value:true});var a=i(9913);var c=i(6073);var u=i(2562);var l=function(t){o(ReaderAsync,t);function ReaderAsync(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(ReaderAsync.prototype,"fsAdapter",{get:function(){return new u.default(this.options)},enumerable:true,configurable:true});ReaderAsync.prototype.read=function(t){var r=this;var i=this.getRootDirectory(t);var o=this.getReaderOptions(t);var a=[];return new Promise((function(c,u){var l=r.api(i,t,o);l.on("error",(function(t){r.isEnoentCodeError(t)?c([]):u(t);l.pause()}));l.on("data",(function(t){return a.push(r.transform(t))}));l.on("end",(function(){return c(a)}))}))};ReaderAsync.prototype.api=function(t,r,i){if(r.dynamic){return this.dynamicApi(t,i)}return this.staticApi(r,i)};ReaderAsync.prototype.dynamicApi=function(t,r){return a.readdirStreamStat(t,r)};ReaderAsync.prototype.staticApi=function(t,r){return this.fsAdapter.read(t.patterns,r.filter)};return ReaderAsync}(c.default);r["default"]=l},5382:function(t,r,i){"use strict";var o=this&&this.__extends||function(){var extendStatics=function(t,r){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)if(r.hasOwnProperty(i))t[i]=r[i]};return extendStatics(t,r)};return function(t,r){extendStatics(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(r,"__esModule",{value:true});var a=i(2781);var c=i(9913);var u=i(6073);var l=i(2562);var h=function(t){o(TransformStream,t);function TransformStream(r){var i=t.call(this,{objectMode:true})||this;i.reader=r;return i}TransformStream.prototype._transform=function(t,r,i){i(null,this.reader.transform(t))};return TransformStream}(a.Transform);var p=function(t){o(ReaderStream,t);function ReaderStream(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(ReaderStream.prototype,"fsAdapter",{get:function(){return new l.default(this.options)},enumerable:true,configurable:true});ReaderStream.prototype.read=function(t){var r=this;var i=this.getRootDirectory(t);var o=this.getReaderOptions(t);var a=new h(this);var c=this.api(i,t,o);return c.on("error",(function(t){return r.isEnoentCodeError(t)?null:a.emit("error",t)})).pipe(a)};ReaderStream.prototype.api=function(t,r,i){if(r.dynamic){return this.dynamicApi(t,i)}return this.staticApi(r,i)};ReaderStream.prototype.dynamicApi=function(t,r){return c.readdirStreamStat(t,r)};ReaderStream.prototype.staticApi=function(t,r){return this.fsAdapter.read(t.patterns,r.filter)};return ReaderStream}(u.default);r["default"]=p},569:function(t,r,i){"use strict";var o=this&&this.__extends||function(){var extendStatics=function(t,r){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)if(r.hasOwnProperty(i))t[i]=r[i]};return extendStatics(t,r)};return function(t,r){extendStatics(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(r,"__esModule",{value:true});var a=i(9913);var c=i(6073);var u=i(8923);var l=function(t){o(ReaderSync,t);function ReaderSync(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(ReaderSync.prototype,"fsAdapter",{get:function(){return new u.default(this.options)},enumerable:true,configurable:true});ReaderSync.prototype.read=function(t){var r=this.getRootDirectory(t);var i=this.getReaderOptions(t);try{var o=this.api(r,t,i);return o.map(this.transform,this)}catch(t){if(this.isEnoentCodeError(t)){return[]}throw t}};ReaderSync.prototype.api=function(t,r,i){if(r.dynamic){return this.dynamicApi(t,i)}return this.staticApi(r,i)};ReaderSync.prototype.dynamicApi=function(t,r){return a.readdirSyncStat(t,r)};ReaderSync.prototype.staticApi=function(t,r){return this.fsAdapter.read(t.patterns,r.filter)};return ReaderSync}(c.default);r["default"]=l},6073:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(1017);var a=i(5425);var c=i(3054);var u=i(3514);var l=function(){function Reader(t){this.options=t;this.micromatchOptions=this.getMicromatchOptions();this.entryFilter=new c.default(t,this.micromatchOptions);this.deepFilter=new a.default(t,this.micromatchOptions)}Reader.prototype.getRootDirectory=function(t){return o.resolve(this.options.cwd,t.base)};Reader.prototype.getReaderOptions=function(t){return{basePath:t.base==="."?"":t.base,filter:this.entryFilter.getFilter(t.positive,t.negative),deep:this.deepFilter.getFilter(t.positive,t.negative),sep:"/"}};Reader.prototype.getMicromatchOptions=function(){return{dot:this.options.dot,nobrace:!this.options.brace,noglobstar:!this.options.globstar,noext:!this.options.extension,nocase:!this.options.case,matchBase:this.options.matchBase}};Reader.prototype.transform=function(t){if(this.options.absolute){t.path=u.makeAbsolute(this.options.cwd,t.path)}if(this.options.markDirectories&&t.isDirectory()){t.path+="/"}var r=this.options.stats?t:t.path;if(this.options.transform===null){return r}return this.options.transform(r)};Reader.prototype.isEnoentCodeError=function(t){return t.code==="ENOENT"};return Reader}();r["default"]=l},4201:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});function flatten(t){return t.reduce((function(t,r){return[].concat(t,r)}),[])}r.flatten=flatten},3514:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(1017);function isDotDirectory(t){return o.basename(t).startsWith(".")}r.isDotDirectory=isDotDirectory;function normalize(t){return t.replace(/\\/g,"/")}r.normalize=normalize;function makeAbsolute(t,r){return normalize(o.resolve(t,r))}r.makeAbsolute=makeAbsolute},9516:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(1017);var a=i(3138);var c=i(4466);var u=i(8859);var l="**";function isStaticPattern(t){return!isDynamicPattern(t)}r.isStaticPattern=isStaticPattern;function isDynamicPattern(t){return c(t,{strict:false})}r.isDynamicPattern=isDynamicPattern;function unixifyPattern(t){return t.replace(/\\/g,"/")}r.unixifyPattern=unixifyPattern;function convertToPositivePattern(t){return isNegativePattern(t)?t.slice(1):t}r.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(t){return"!"+t}r.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(t){return t.startsWith("!")&&t[1]!=="("}r.isNegativePattern=isNegativePattern;function isPositivePattern(t){return!isNegativePattern(t)}r.isPositivePattern=isPositivePattern;function getNegativePatterns(t){return t.filter(isNegativePattern)}r.getNegativePatterns=getNegativePatterns;function getPositivePatterns(t){return t.filter(isPositivePattern)}r.getPositivePatterns=getPositivePatterns;function getBaseDirectory(t){return a(t)}r.getBaseDirectory=getBaseDirectory;function hasGlobStar(t){return t.indexOf(l)!==-1}r.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(t){return t.endsWith("/"+l)}r.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(t){var r=o.basename(t);return endsWithSlashGlobStar(t)||isStaticPattern(r)}r.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function getNaiveDepth(t){var r=getBaseDirectory(t);var i=t.split("/").length;var o=r.split("/").length;if(r==="."){return i-o}return i-o-1}r.getNaiveDepth=getNaiveDepth;function getMaxNaivePatternsDepth(t){return t.reduce((function(t,r){var i=getNaiveDepth(r);return i>t?i:t}),0)}r.getMaxNaivePatternsDepth=getMaxNaivePatternsDepth;function makeRe(t,r){return u.makeRe(t,r)}r.makeRe=makeRe;function convertPatternsToRe(t,r){return t.map((function(t){return makeRe(t,r)}))}r.convertPatternsToRe=convertPatternsToRe;function matchAny(t,r){return r.some((function(r){return r.test(t)}))}r.matchAny=matchAny},1954:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});var o=i(2578);function merge(t){var r=o(t);t.forEach((function(t){t.on("error",(function(t){return r.emit("error",t)}))}));return r}r.merge=merge},6753:(t,r,i)=>{"use strict";
/*!
 * fill-range <https://github.com/jonschlinkert/fill-range>
 *
 * Copyright (c) 2014-2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(3837);var a=i(5680);var c=i(3112);var u=i(6976);var l=i(7517);function fillRange(t,r,i,u){if(typeof t==="undefined"){return[]}if(typeof r==="undefined"||t===r){var l=typeof t==="string";if(a(t)&&!toNumber(t)){return[l?"0":0]}return[t]}if(typeof i!=="number"&&typeof i!=="string"){u=i;i=undefined}if(typeof u==="function"){u={transform:u}}var h=c({step:i},u);if(h.step&&!isValidNumber(h.step)){if(h.strictRanges===true){throw new TypeError("expected options.step to be a number")}return[]}h.isNumber=isValidNumber(t)&&isValidNumber(r);if(!h.isNumber&&!isValid(t,r)){if(h.strictRanges===true){throw new RangeError("invalid range arguments: "+o.inspect([t,r]))}return[]}h.isPadded=isPadded(t)||isPadded(r);h.toString=h.stringify||typeof h.step==="string"||typeof t==="string"||typeof r==="string"||!h.isNumber;if(h.isPadded){h.maxLength=Math.max(String(t).length,String(r).length)}if(typeof h.optimize==="boolean")h.toRegex=h.optimize;if(typeof h.makeRe==="boolean")h.toRegex=h.makeRe;return expand(t,r,h)}function expand(t,r,i){var o=i.isNumber?toNumber(t):t.charCodeAt(0);var a=i.isNumber?toNumber(r):r.charCodeAt(0);var c=Math.abs(toNumber(i.step))||1;if(i.toRegex&&c===1){return toRange(o,a,t,r,i)}var u={greater:[],lesser:[]};var l=o<a;var h=new Array(Math.round((l?a-o:o-a)/c));var p=0;while(l?o<=a:o>=a){var d=i.isNumber?o:String.fromCharCode(o);if(i.toRegex&&(d>=0||!i.isNumber)){u.greater.push(d)}else{u.lesser.push(Math.abs(d))}if(i.isPadded){d=zeros(d,i)}if(i.toString){d=String(d)}if(typeof i.transform==="function"){h[p++]=i.transform(d,o,a,c,p,h,i)}else{h[p++]=d}if(l){o+=c}else{o-=c}}if(i.toRegex===true){return toSequence(h,u,i)}return h}function toRange(t,r,i,o,a){if(a.isPadded){return l(i,o,a)}if(a.isNumber){return l(Math.min(t,r),Math.max(t,r),a)}var i=String.fromCharCode(Math.min(t,r));var o=String.fromCharCode(Math.max(t,r));return"["+i+"-"+o+"]"}function toSequence(t,r,i){var o="",a="";if(r.greater.length){o=r.greater.join("|")}if(r.lesser.length){a="-("+r.lesser.join("|")+")"}var c=o&&a?o+"|"+a:o||a;if(i.capture){return"("+c+")"}return c}function zeros(t,r){if(r.isPadded){var i=String(t);var o=i.length;var a="";if(i.charAt(0)==="-"){a="-";i=i.slice(1)}var c=r.maxLength-o;var l=u("0",c);t=a+l+i}if(r.stringify){return String(t)}return t}function toNumber(t){return Number(t)||0}function isPadded(t){return/^-?0\d/.test(t)}function isValid(t,r){return(isValidNumber(t)||isValidLetter(t))&&(isValidNumber(r)||isValidLetter(r))}function isValidLetter(t){return typeof t==="string"&&t.length===1&&/^\w+$/.test(t)}function isValidNumber(t){return a(t)&&!/\./.test(t)}t.exports=fillRange},3112:(t,r,i)=>{"use strict";var o=i(2662);t.exports=function extend(t){if(!o(t)){t={}}var r=arguments.length;for(var i=1;i<r;i++){var a=arguments[i];if(o(a)){assign(t,a)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}},2662:t=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function isExtendable(t){return typeof t!=="undefined"&&t!==null&&(typeof t==="object"||typeof t==="function")}},3138:(t,r,i)=>{"use strict";var o=i(1017);var a=i(7910);var c=i(7610);var u=i(2037).platform()==="win32";t.exports=function globParent(t){if(u&&t.indexOf("/")<0)t=t.split("\\").join("/");if(/[\{\[].*[\/]*.*[\}\]]$/.test(t))t+="/";t+="a";do{t=c.posix(t)}while(a(t)||/(^|[^\\])([\{\[]|\([^\)]+$)/.test(t));return t.replace(/\\([\*\?\|\[\]\(\)\{\}])/g,"$1")}},7910:(t,r,i)=>{
/*!
 * is-glob <https://github.com/jonschlinkert/is-glob>
 *
 * Copyright (c) 2014-2016, Jon Schlinkert.
 * Licensed under the MIT License.
 */
var o=i(6435);t.exports=function isGlob(t){if(typeof t!=="string"||t===""){return false}if(o(t))return true;var r=/(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;var i;while(i=r.exec(t)){if(i[2])return true;t=t.slice(i.index+i[0].length)}return false}},2069:t=>{function make_array(t){return Array.isArray(t)?t:[t]}const r=/^\s+$/;const i=/^\\!/;const o=/^\\#/;const a="/";const c=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const define=(t,r,i)=>Object.defineProperty(t,r,{value:i});const u=/([0-z])-([0-z])/g;const sanitizeRange=t=>t.replace(u,((t,r,i)=>r.charCodeAt(0)<=i.charCodeAt(0)?t:""));const l=[[/\\?\s+$/,t=>t.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,t=>`\\${t}`],[/\[([^\]/]*)($|\])/g,(t,r,i)=>i==="]"?`[${sanitizeRange(r)}]`:`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]];const h=[[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,r,i)=>r+6<i.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(t,r)=>`${r}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(t,r)=>{const i=r?`${r}[^/]+`:"[^/]*";return`${i}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const p=[...l,[/(?:[^*/])$/,t=>`${t}(?=$|\\/)`],...h];const d=[...l,[/(?:[^*])$/,t=>`${t}(?=$|\\/$)`],...h];const m=Object.create(null);const make_regex=(t,r,i)=>{const o=m[t];if(o){return o}const a=r?d:p;const c=a.reduce(((r,i)=>r.replace(i[0],i[1].bind(t))),t);return m[t]=i?new RegExp(c,"i"):new RegExp(c)};const checkPattern=t=>t&&typeof t==="string"&&!r.test(t)&&t.indexOf("#")!==0;const createRule=(t,r)=>{const a=t;let c=false;if(t.indexOf("!")===0){c=true;t=t.substr(1)}t=t.replace(i,"!").replace(o,"#");const u=make_regex(t,c,r);return{origin:a,pattern:t,negative:c,regex:u}};class IgnoreBase{constructor({ignorecase:t=true}={}){this._rules=[];this._ignorecase=t;define(this,c,true);this._initCache()}_initCache(){this._cache=Object.create(null)}add(t){this._added=false;if(typeof t==="string"){t=t.split(/\r?\n/g)}make_array(t).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(t){return this.add(t)}_addPattern(t){if(t&&t[c]){this._rules=this._rules.concat(t._rules);this._added=true;return}if(checkPattern(t)){const r=createRule(t,this._ignorecase);this._added=true;this._rules.push(r)}}filter(t){return make_array(t).filter((t=>this._filter(t)))}createFilter(){return t=>this._filter(t)}ignores(t){return!this._filter(t)}_filter(t,r){if(!t){return false}if(t in this._cache){return this._cache[t]}if(!r){r=t.split(a)}r.pop();return this._cache[t]=r.length?this._filter(r.join(a)+a,r)&&this._test(t):this._test(t)}_test(t){let r=0;this._rules.forEach((i=>{if(!(r^i.negative)){r=i.negative^i.regex.test(t)}}));return!r}}if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const t=IgnoreBase.prototype._filter;const make_posix=t=>/^\\\\\?\\/.test(t)||/[^\x00-\x80]+/.test(t)?t:t.replace(/\\/g,"/");IgnoreBase.prototype._filter=function filterWin32(r,i){r=make_posix(r);return t.call(this,r,i)}}t.exports=t=>new IgnoreBase(t)},2141:(t,r,i)=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(7810);t.exports=function isExtendable(t){return o(t)||typeof t==="function"||Array.isArray(t)}},3509:t=>{var r=Object.prototype.toString;t.exports=function kindOf(t){if(t===void 0)return"undefined";if(t===null)return"null";var i=typeof t;if(i==="boolean")return"boolean";if(i==="string")return"string";if(i==="number")return"number";if(i==="symbol")return"symbol";if(i==="function"){return isGeneratorFn(t)?"generatorfunction":"function"}if(isArray(t))return"array";if(isBuffer(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"}i=r.call(t);switch(i){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 i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(t){return typeof t.constructor==="function"?t.constructor.name:null}function isArray(t){if(Array.isArray)return Array.isArray(t);return t instanceof Array}function isError(t){return t instanceof Error||typeof t.message==="string"&&t.constructor&&typeof t.constructor.stackTraceLimit==="number"}function isDate(t){if(t instanceof Date)return true;return typeof t.toDateString==="function"&&typeof t.getDate==="function"&&typeof t.setDate==="function"}function isRegexp(t){if(t instanceof RegExp)return true;return typeof t.flags==="string"&&typeof t.ignoreCase==="boolean"&&typeof t.multiline==="boolean"&&typeof t.global==="boolean"}function isGeneratorFn(t,r){return ctorName(t)==="GeneratorFunction"}function isGeneratorObj(t){return typeof t.throw==="function"&&typeof t.return==="function"&&typeof t.next==="function"}function isArguments(t){try{if(typeof t.length==="number"&&typeof t.callee==="function"){return true}}catch(t){if(t.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(t){if(t.constructor&&typeof t.constructor.isBuffer==="function"){return t.constructor.isBuffer(t)}return false}},8859:(t,r,i)=>{"use strict";var o=i(3837);var a=i(9050);var c=i(6855);var u=i(8319);var l=i(187);var h=i(4113);var p=i(7611);var d=i(143);var m=1024*64;function micromatch(t,r,i){r=d.arrayify(r);t=d.arrayify(t);var o=r.length;if(t.length===0||o===0){return[]}if(o===1){return micromatch.match(t,r[0],i)}var a=[];var c=[];var u=-1;while(++u<o){var l=r[u];if(typeof l==="string"&&l.charCodeAt(0)===33){a.push.apply(a,micromatch.match(t,l.slice(1),i))}else{c.push.apply(c,micromatch.match(t,l,i))}}var h=d.diff(c,a);if(!i||i.nodupes!==false){return d.unique(h)}return h}micromatch.match=function(t,r,i){if(Array.isArray(r)){throw new TypeError("expected pattern to be a string")}var o=d.unixify(i);var a=memoize("match",r,i,micromatch.matcher);var c=[];t=d.arrayify(t);var u=t.length;var l=-1;while(++l<u){var h=t[l];if(h===r||a(h)){c.push(d.value(h,o,i))}}if(typeof i==="undefined"){return d.unique(c)}if(c.length===0){if(i.failglob===true){throw new Error('no matches found for "'+r+'"')}if(i.nonull===true||i.nullglob===true){return[i.unescape?d.unescape(r):r]}}if(i.ignore){c=micromatch.not(c,i.ignore,i)}return i.nodupes!==false?d.unique(c):c};micromatch.isMatch=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(isEmptyString(t)||isEmptyString(r)){return false}var a=d.equalsPattern(i);if(a(t)){return true}var c=memoize("isMatch",r,i,micromatch.matcher);return c(t)};micromatch.some=function(t,r,i){if(typeof t==="string"){t=[t]}for(var o=0;o<t.length;o++){if(micromatch(t[o],r,i).length===1){return true}}return false};micromatch.every=function(t,r,i){if(typeof t==="string"){t=[t]}for(var o=0;o<t.length;o++){if(micromatch(t[o],r,i).length!==1){return false}}return true};micromatch.any=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(isEmptyString(t)||isEmptyString(r)){return false}if(typeof r==="string"){r=[r]}for(var a=0;a<r.length;a++){if(micromatch.isMatch(t,r[a],i)){return true}}return false};micromatch.all=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(typeof r==="string"){r=[r]}for(var a=0;a<r.length;a++){if(!micromatch.isMatch(t,r[a],i)){return false}}return true};micromatch.not=function(t,r,i){var o=u({},i);var a=o.ignore;delete o.ignore;var c=d.unixify(o);t=d.arrayify(t).map(c);var l=d.diff(t,micromatch(t,r,o));if(a){l=d.diff(l,micromatch(t,a))}return o.nodupes!==false?d.unique(l):l};micromatch.contains=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(typeof r==="string"){if(isEmptyString(t)||isEmptyString(r)){return false}var a=d.equalsPattern(r,i);if(a(t)){return true}var c=d.containsPattern(r,i);if(c(t)){return true}}var l=u({},i,{contains:true});return micromatch.any(t,r,l)};micromatch.matchBase=function(t,r){if(t&&t.indexOf("/")!==-1||!r)return false;return r.basename===true||r.matchBase===true};micromatch.matchKeys=function(t,r,i){if(!d.isObject(t)){throw new TypeError("expected the first argument to be an object")}var o=micromatch(Object.keys(t),r,i);return d.pick(t,o)};micromatch.matcher=function matcher(t,r){if(Array.isArray(t)){return compose(t,r,matcher)}if(t instanceof RegExp){return test(t)}if(!d.isString(t)){throw new TypeError("expected pattern to be an array, string or regex")}if(!d.hasSpecialChars(t)){if(r&&r.nocase===true){t=t.toLowerCase()}return d.matchPath(t,r)}var i=micromatch.makeRe(t,r);if(micromatch.matchBase(t,r)){return d.matchBasename(i,r)}function test(t){var i=d.equalsPattern(r);var o=d.unixify(r);return function(r){if(i(r)){return true}if(t.test(o(r))){return true}return false}}var o=test(i);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:i.result});return o};micromatch.capture=function(t,r,i){var o=micromatch.makeRe(t,u({capture:true},i));var a=d.unixify(i);function match(){return function(t){var r=o.exec(a(t));if(!r){return null}return r.slice(1)}}var c=memoize("capture",t,i,match);return c(r)};micromatch.makeRe=function(t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}if(t.length>m){throw new Error("expected pattern to be less than "+m+" characters")}function makeRe(){var i=micromatch.create(t,r);var o=[];var a=i.map((function(t){t.ast.state=t.state;o.push(t.ast);return t.output}));var u=c(a.join("|"),r);Object.defineProperty(u,"result",{configurable:true,enumerable:false,value:o});return u}return memoize("makeRe",t,r,makeRe)};micromatch.braces=function(t,r){if(typeof t!=="string"&&!Array.isArray(t)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(r&&r.nobrace===true||!/\{.*\}/.test(t)){return d.arrayify(t)}return a(t,r)}return memoize("braces",t,r,expand)};micromatch.braceExpand=function(t,r){var i=u({},r,{expand:true});return micromatch.braces(t,i)};micromatch.create=function(t,r){return memoize("create",t,r,(function(){function create(t,r){return micromatch.compile(micromatch.parse(t,r),r)}t=micromatch.braces(t,r);var i=t.length;var o=-1;var a=[];while(++o<i){a.push(create(t[o],r))}return a}))};micromatch.parse=function(t,r){if(typeof t!=="string"){throw new TypeError("expected a string")}function parse(){var i=d.instantiate(null,r);h(i,r);var o=i.parse(t,r);d.define(o,"snapdragon",i);o.input=t;return o}return memoize("parse",t,r,parse)};micromatch.compile=function(t,r){if(typeof t==="string"){t=micromatch.parse(t,r)}return memoize("compile",t.input,r,(function(){var i=d.instantiate(t,r);l(i,r);return i.compile(t,r)}))};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(t){return String(t)===""||String(t)==="./"}function compose(t,r,i){var o;return memoize("compose",String(t),r,(function(){return function(a){if(!o){o=[];for(var c=0;c<t.length;c++){o.push(i(t[c],r))}}var u=o.length;while(u--){if(o[u](a)===true){return true}}return false}}))}function memoize(t,r,i,o){var a=d.createKey(t+"="+r,i);if(i&&i.cache===false){return o(r,i)}if(p.has(t,a)){return p.get(t,a)}var c=o(r,i);p.set(t,a,c);return c}micromatch.compilers=l;micromatch.parsers=h;micromatch.caches=p.caches;t.exports=micromatch},7611:(t,r,i)=>{t.exports=new(i(4838))},187:(t,r,i)=>{"use strict";var o=i(2316);var a=i(2129);t.exports=function(t){var r=t.compiler.compilers;var i=t.options;t.use(o.compilers);var c=r.escape;var u=r.qmark;var l=r.slash;var h=r.star;var p=r.text;var d=r.plus;var m=r.dot;if(i.extglob===false||i.noext===true){t.compiler.use(escapeExtglobs)}else{t.use(a.compilers)}t.use((function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}}));t.compiler.set("dot",m).set("escape",c).set("plus",d).set("slash",l).set("qmark",u).set("star",h).set("text",p)};function escapeExtglobs(t){t.set("paren",(function(t){var r="";visit(t,(function(t){if(t.val)r+=(/^\W/.test(t.val)?"\\":"")+t.val}));return this.emit(r,t)}));function visit(t,r){return t.nodes?mapVisit(t.nodes,r):r(t)}function mapVisit(t,r){var i=t.length;var o=-1;while(++o<i){visit(t[o],r)}}}},4113:(t,r,i)=>{"use strict";var o=i(2129);var a=i(2316);var c=i(2527);var u=i(6855);var l;var h="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var createNotRegex=function(t){return l||(l=textRegex(h))};t.exports=function(t){var r=t.parser.parsers;t.use(a.parsers);var i=r.escape;var c=r.slash;var u=r.qmark;var l=r.plus;var h=r.star;var p=r.dot;t.use(o.parsers);t.parser.use((function(){this.notRegex=/^\!+(?!\()/})).capture("escape",i).capture("slash",c).capture("qmark",u).capture("star",h).capture("plus",l).capture("dot",p).capture("text",(function(){if(this.isInside("bracket"))return;var t=this.position();var r=this.match(createNotRegex(this.options));if(!r||!r[0])return;var i=r[0].replace(/([[\]^$])/g,"\\$1");return t({type:"text",val:i})}))};function textRegex(t){var r=c.create(t,{contains:true,strictClose:false});var i="(?:[\\^]|\\\\|";return u(i+r+")",{strictClose:false})}},143:(t,r,i)=>{"use strict";var o=t.exports;var a=i(1017);var c=i(2403);o.define=i(4774);o.diff=i(8915);o.extend=i(8319);o.pick=i(9962);o.typeOf=i(3509);o.unique=i(340);o.isWindows=function(){return a.sep==="\\"||process.platform==="win32"};o.instantiate=function(t,r){var i;if(o.typeOf(t)==="object"&&t.snapdragon){i=t.snapdragon}else if(o.typeOf(r)==="object"&&r.snapdragon){i=r.snapdragon}else{i=new c(r)}o.define(i,"parse",(function(t,r){var i=c.prototype.parse.apply(this,arguments);i.input=t;var a=this.parser.stack.pop();if(a&&this.options.strictErrors!==true){var u=a.nodes[0];var l=a.nodes[1];if(a.type==="bracket"){if(l.val.charAt(0)==="["){l.val="\\"+l.val}}else{u.val="\\"+u.val;var h=u.parent.nodes[1];if(h.type==="star"){h.loose=true}}}o.define(i,"parser",this.parser);return i}));return i};o.createKey=function(t,r){if(o.typeOf(r)!=="object"){return t}var i=t;var a=Object.keys(r);for(var c=0;c<a.length;c++){var u=a[c];i+=";"+u+"="+String(r[u])}return i};o.arrayify=function(t){if(typeof t==="string")return[t];return t?Array.isArray(t)?t:[t]:[]};o.isString=function(t){return typeof t==="string"};o.isObject=function(t){return o.typeOf(t)==="object"};o.hasSpecialChars=function(t){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(t)};o.escapeRegex=function(t){return t.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};o.toPosixPath=function(t){return t.replace(/\\+/g,"/")};o.unescape=function(t){return o.toPosixPath(t.replace(/\\(?=[*+?!.])/g,""))};o.stripPrefix=function(t){if(t.charAt(0)!=="."){return t}var r=t.charAt(1);if(o.isSlash(r)){return t.slice(2)}return t};o.isSlash=function(t){return t==="/"||t==="\\/"||t==="\\"||t==="\\\\"};o.matchPath=function(t,r){return r&&r.contains?o.containsPattern(t,r):o.equalsPattern(t,r)};o._equals=function(t,r,i){return i===t||i===r};o._contains=function(t,r,i){return t.indexOf(i)!==-1||r.indexOf(i)!==-1};o.equalsPattern=function(t,r){var i=o.unixify(r);r=r||{};return function fn(a){var c=o._equals(a,i(a),t);if(c===true||r.nocase!==true){return c}var u=a.toLowerCase();return o._equals(u,i(u),t)}};o.containsPattern=function(t,r){var i=o.unixify(r);r=r||{};return function(a){var c=o._contains(a,i(a),t);if(c===true||r.nocase!==true){return c}var u=a.toLowerCase();return o._contains(u,i(u),t)}};o.matchBasename=function(t){return function(r){return t.test(a.basename(r))}};o.value=function(t,r,i){if(i&&i.unixify===false){return t}return r(t)};o.unixify=function(t){t=t||{};return function(r){if(o.isWindows()||t.unixify===true){r=o.toPosixPath(r)}if(t.stripPrefix!==false){r=o.stripPrefix(r)}if(t.unescape===true){r=o.unescape(r)}return r}}},2158:t=>{"use strict";t.exports=t=>{const r=/^\\\\\?\\/.test(t);const i=/[^\u0000-\u0080]+/.test(t);if(r||i){return t}return t.replace(/\\/g,"/")}},7517:(t,r,i)=>{"use strict";
/*!
 * to-regex-range <https://github.com/jonschlinkert/to-regex-range>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(6976);var a=i(5680);var c={};function toRegexRange(t,r,i){if(a(t)===false){throw new RangeError("toRegexRange: first argument is invalid.")}if(typeof r==="undefined"||t===r){return String(t)}if(a(r)===false){throw new RangeError("toRegexRange: second argument is invalid.")}i=i||{};var o=String(i.relaxZeros);var u=String(i.shorthand);var l=String(i.capture);var h=t+":"+r+"="+o+u+l;if(c.hasOwnProperty(h)){return c[h].result}var p=Math.min(t,r);var d=Math.max(t,r);if(Math.abs(p-d)===1){var m=t+"|"+r;if(i.capture){return"("+m+")"}return m}var g=padding(t)||padding(r);var v=[];var y=[];var b={min:t,max:r,a:p,b:d};if(g){b.isPadded=g;b.maxLen=String(b.max).length}if(p<0){var w=d<0?Math.abs(d):1;var x=Math.abs(p);y=splitToPatterns(w,x,b,i);p=b.a=0}if(d>=0){v=splitToPatterns(p,d,b,i)}b.negatives=y;b.positives=v;b.result=siftPatterns(y,v,i);if(i.capture&&v.length+y.length>1){b.result="("+b.result+")"}c[h]=b;return b.result}function siftPatterns(t,r,i){var o=filterPatterns(t,r,"-",false,i)||[];var a=filterPatterns(r,t,"",false,i)||[];var c=filterPatterns(t,r,"-?",true,i)||[];var u=o.concat(c).concat(a);return u.join("|")}function splitToRanges(t,r){t=Number(t);r=Number(r);var i=1;var o=[r];var a=+countNines(t,i);while(t<=a&&a<=r){o=push(o,a);i+=1;a=+countNines(t,i)}var c=1;a=countZeros(r+1,c)-1;while(t<a&&a<=r){o=push(o,a);c+=1;a=countZeros(r+1,c)-1}o.sort(compare);return o}function rangeToPattern(t,r,i){if(t===r){return{pattern:String(t),digits:[]}}var o=zip(String(t),String(r));var a=o.length,c=-1;var u="";var l=0;while(++c<a){var h=o[c];var p=h[0];var d=h[1];if(p===d){u+=p}else if(p!=="0"||d!=="9"){u+=toCharacterClass(p,d)}else{l+=1}}if(l){u+=i.shorthand?"\\d":"[0-9]"}return{pattern:u,digits:[l]}}function splitToPatterns(t,r,i,o){var a=splitToRanges(t,r);var c=a.length;var u=-1;var l=[];var h=t;var p;while(++u<c){var d=a[u];var m=rangeToPattern(h,d,o);var g="";if(!i.isPadded&&p&&p.pattern===m.pattern){if(p.digits.length>1){p.digits.pop()}p.digits.push(m.digits[0]);p.string=p.pattern+toQuantifier(p.digits);h=d+1;continue}if(i.isPadded){g=padZeros(d,i)}m.string=g+m.pattern+toQuantifier(m.digits);l.push(m);h=d+1;p=m}return l}function filterPatterns(t,r,i,o,a){var c=[];for(var u=0;u<t.length;u++){var l=t[u];var h=l.string;if(a.relaxZeros!==false){if(i==="-"&&h.charAt(0)==="0"){if(h.charAt(1)==="{"){h="0*"+h.replace(/^0\{\d+\}/,"")}else{h="0*"+h.slice(1)}}}if(!o&&!contains(r,"string",h)){c.push(i+h)}if(o&&contains(r,"string",h)){c.push(i+h)}}return c}function zip(t,r){var i=[];for(var o in t)i.push([t[o],r[o]]);return i}function compare(t,r){return t>r?1:r>t?-1:0}function push(t,r){if(t.indexOf(r)===-1)t.push(r);return t}function contains(t,r,i){for(var o=0;o<t.length;o++){if(t[o][r]===i){return true}}return false}function countNines(t,r){return String(t).slice(0,-r)+o("9",r)}function countZeros(t,r){return t-t%Math.pow(10,r)}function toQuantifier(t){var r=t[0];var i=t[1]?","+t[1]:"";if(!i&&(!r||r===1)){return""}return"{"+r+i+"}"}function toCharacterClass(t,r){return"["+t+(r-t===1?"":"-")+r+"]"}function padding(t){return/^-?(0+)\d/.exec(t)}function padZeros(t,r){if(r.isPadded){var i=Math.abs(r.maxLen-String(t).length);switch(i){case 0:return"";case 1:return"0";default:{return"0{"+i+"}"}}}return t}t.exports=toRegexRange},7356:t=>{"use strict";t.exports=clone;var r=Object.getPrototypeOf||function(t){return t.__proto__};function clone(t){if(t===null||typeof t!=="object")return t;if(t instanceof Object)var i={__proto__:r(t)};else var i=Object.create(null);Object.getOwnPropertyNames(t).forEach((function(r){Object.defineProperty(i,r,Object.getOwnPropertyDescriptor(t,r))}));return i}},7758:(t,r,i)=>{var o=i(7147);var a=i(263);var c=i(3086);var u=i(7356);var l=i(3837);var h;var p;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){h=Symbol.for("graceful-fs.queue");p=Symbol.for("graceful-fs.previous")}else{h="___graceful-fs.queue";p="___graceful-fs.previous"}function noop(){}function publishQueue(t,r){Object.defineProperty(t,h,{get:function(){return r}})}var d=noop;if(l.debuglog)d=l.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))d=function(){var t=l.format.apply(l,arguments);t="GFS4: "+t.split(/\n/).join("\nGFS4: ");console.error(t)};if(!o[h]){var m=global[h]||[];publishQueue(o,m);o.close=function(t){function close(r,i){return t.call(o,r,(function(t){if(!t){resetQueue()}if(typeof i==="function")i.apply(this,arguments)}))}Object.defineProperty(close,p,{value:t});return close}(o.close);o.closeSync=function(t){function closeSync(r){t.apply(o,arguments);resetQueue()}Object.defineProperty(closeSync,p,{value:t});return closeSync}(o.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){d(o[h]);i(9491).equal(o[h].length,0)}))}}if(!global[h]){publishQueue(global,o[h])}t.exports=patch(u(o));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!o.__patched){t.exports=patch(o);o.__patched=true}function patch(t){a(t);t.gracefulify=patch;t.createReadStream=createReadStream;t.createWriteStream=createWriteStream;var r=t.readFile;t.readFile=readFile;function readFile(t,i,o){if(typeof i==="function")o=i,i=null;return go$readFile(t,i,o);function go$readFile(t,i,o,a){return r(t,i,(function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$readFile,[t,i,o],r,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var i=t.writeFile;t.writeFile=writeFile;function writeFile(t,r,o,a){if(typeof o==="function")a=o,o=null;return go$writeFile(t,r,o,a);function go$writeFile(t,r,o,a,c){return i(t,r,o,(function(i){if(i&&(i.code==="EMFILE"||i.code==="ENFILE"))enqueue([go$writeFile,[t,r,o,a],i,c||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var o=t.appendFile;if(o)t.appendFile=appendFile;function appendFile(t,r,i,a){if(typeof i==="function")a=i,i=null;return go$appendFile(t,r,i,a);function go$appendFile(t,r,i,a,c){return o(t,r,i,(function(o){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$appendFile,[t,r,i,a],o,c||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var u=t.copyFile;if(u)t.copyFile=copyFile;function copyFile(t,r,i,o){if(typeof i==="function"){o=i;i=0}return go$copyFile(t,r,i,o);function go$copyFile(t,r,i,o,a){return u(t,r,i,(function(c){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([go$copyFile,[t,r,i,o],c,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}var l=t.readdir;t.readdir=readdir;var h=/^v[0-5]\./;function readdir(t,r,i){if(typeof r==="function")i=r,r=null;var o=h.test(process.version)?function go$readdir(t,r,i,o){return l(t,fs$readdirCallback(t,r,i,o))}:function go$readdir(t,r,i,o){return l(t,r,fs$readdirCallback(t,r,i,o))};return o(t,r,i);function fs$readdirCallback(t,r,i,a){return function(c,u){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([o,[t,r,i],c,a||Date.now(),Date.now()]);else{if(u&&u.sort)u.sort();if(typeof i==="function")i.call(this,c,u)}}}}if(process.version.substr(0,4)==="v0.8"){var p=c(t);ReadStream=p.ReadStream;WriteStream=p.WriteStream}var d=t.ReadStream;if(d){ReadStream.prototype=Object.create(d.prototype);ReadStream.prototype.open=ReadStream$open}var m=t.WriteStream;if(m){WriteStream.prototype=Object.create(m.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(t,"ReadStream",{get:function(){return ReadStream},set:function(t){ReadStream=t},enumerable:true,configurable:true});Object.defineProperty(t,"WriteStream",{get:function(){return WriteStream},set:function(t){WriteStream=t},enumerable:true,configurable:true});var g=ReadStream;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(t){g=t},enumerable:true,configurable:true});var v=WriteStream;Object.defineProperty(t,"FileWriteStream",{get:function(){return v},set:function(t){v=t},enumerable:true,configurable:true});function ReadStream(t,r){if(this instanceof ReadStream)return d.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var t=this;open(t.path,t.flags,t.mode,(function(r,i){if(r){if(t.autoClose)t.destroy();t.emit("error",r)}else{t.fd=i;t.emit("open",i);t.read()}}))}function WriteStream(t,r){if(this instanceof WriteStream)return m.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var t=this;open(t.path,t.flags,t.mode,(function(r,i){if(r){t.destroy();t.emit("error",r)}else{t.fd=i;t.emit("open",i)}}))}function createReadStream(r,i){return new t.ReadStream(r,i)}function createWriteStream(r,i){return new t.WriteStream(r,i)}var y=t.open;t.open=open;function open(t,r,i,o){if(typeof i==="function")o=i,i=null;return go$open(t,r,i,o);function go$open(t,r,i,o,a){return y(t,r,i,(function(c,u){if(c&&(c.code==="EMFILE"||c.code==="ENFILE"))enqueue([go$open,[t,r,i,o],c,a||Date.now(),Date.now()]);else{if(typeof o==="function")o.apply(this,arguments)}}))}}return t}function enqueue(t){d("ENQUEUE",t[0].name,t[1]);o[h].push(t);retry()}var g;function resetQueue(){var t=Date.now();for(var r=0;r<o[h].length;++r){if(o[h][r].length>2){o[h][r][3]=t;o[h][r][4]=t}}retry()}function retry(){clearTimeout(g);g=undefined;if(o[h].length===0)return;var t=o[h].shift();var r=t[0];var i=t[1];var a=t[2];var c=t[3];var u=t[4];if(c===undefined){d("RETRY",r.name,i);r.apply(null,i)}else if(Date.now()-c>=6e4){d("TIMEOUT",r.name,i);var l=i.pop();if(typeof l==="function")l.call(null,a)}else{var p=Date.now()-u;var m=Math.max(u-c,1);var v=Math.min(m*1.2,100);if(p>=v){d("RETRY",r.name,i);r.apply(null,i.concat([c]))}else{o[h].push(t)}}if(g===undefined){g=setTimeout(retry,0)}}},3086:(t,r,i)=>{var o=i(2781).Stream;t.exports=legacy;function legacy(t){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(r,i){if(!(this instanceof ReadStream))return new ReadStream(r,i);o.call(this);var a=this;this.path=r;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;i=i||{};var c=Object.keys(i);for(var u=0,l=c.length;u<l;u++){var h=c[u];this[h]=i[h]}if(this.encoding)this.setEncoding(this.encoding);if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.end===undefined){this.end=Infinity}else if("number"!==typeof this.end){throw TypeError("end must be a Number")}if(this.start>this.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){a._read()}));return}t.open(this.path,this.flags,this.mode,(function(t,r){if(t){a.emit("error",t);a.readable=false;return}a.fd=r;a.emit("open",r);a._read()}))}function WriteStream(r,i){if(!(this instanceof WriteStream))return new WriteStream(r,i);o.call(this);this.path=r;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var a=Object.keys(i);for(var c=0,u=a.length;c<u;c++){var l=a[c];this[l]=i[l]}if(this.start!==undefined){if("number"!==typeof this.start){throw TypeError("start must be a Number")}if(this.start<0){throw new Error("start must be >= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=t.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},263:(t,r,i)=>{var o=i(2057);var a=process.cwd;var c=null;var u=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!c)c=a.call(process);return c};try{process.cwd()}catch(t){}if(typeof process.chdir==="function"){var l=process.chdir;process.chdir=function(t){c=null;l.call(process,t)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,l)}t.exports=patch;function patch(t){if(o.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(t)}if(!t.lutimes){patchLutimes(t)}t.chown=chownFix(t.chown);t.fchown=chownFix(t.fchown);t.lchown=chownFix(t.lchown);t.chmod=chmodFix(t.chmod);t.fchmod=chmodFix(t.fchmod);t.lchmod=chmodFix(t.lchmod);t.chownSync=chownFixSync(t.chownSync);t.fchownSync=chownFixSync(t.fchownSync);t.lchownSync=chownFixSync(t.lchownSync);t.chmodSync=chmodFixSync(t.chmodSync);t.fchmodSync=chmodFixSync(t.fchmodSync);t.lchmodSync=chmodFixSync(t.lchmodSync);t.stat=statFix(t.stat);t.fstat=statFix(t.fstat);t.lstat=statFix(t.lstat);t.statSync=statFixSync(t.statSync);t.fstatSync=statFixSync(t.fstatSync);t.lstatSync=statFixSync(t.lstatSync);if(t.chmod&&!t.lchmod){t.lchmod=function(t,r,i){if(i)process.nextTick(i)};t.lchmodSync=function(){}}if(t.chown&&!t.lchown){t.lchown=function(t,r,i,o){if(o)process.nextTick(o)};t.lchownSync=function(){}}if(u==="win32"){t.rename=typeof t.rename!=="function"?t.rename:function(r){function rename(i,o,a){var c=Date.now();var u=0;r(i,o,(function CB(l){if(l&&(l.code==="EACCES"||l.code==="EPERM")&&Date.now()-c<6e4){setTimeout((function(){t.stat(o,(function(t,c){if(t&&t.code==="ENOENT")r(i,o,CB);else a(l)}))}),u);if(u<100)u+=10;return}if(a)a(l)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,r);return rename}(t.rename)}t.read=typeof t.read!=="function"?t.read:function(r){function read(i,o,a,c,u,l){var h;if(l&&typeof l==="function"){var p=0;h=function(d,m,g){if(d&&d.code==="EAGAIN"&&p<10){p++;return r.call(t,i,o,a,c,u,h)}l.apply(this,arguments)}}return r.call(t,i,o,a,c,u,h)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,r);return read}(t.read);t.readSync=typeof t.readSync!=="function"?t.readSync:function(r){return function(i,o,a,c,u){var l=0;while(true){try{return r.call(t,i,o,a,c,u)}catch(t){if(t.code==="EAGAIN"&&l<10){l++;continue}throw t}}}}(t.readSync);function patchLchmod(t){t.lchmod=function(r,i,a){t.open(r,o.O_WRONLY|o.O_SYMLINK,i,(function(r,o){if(r){if(a)a(r);return}t.fchmod(o,i,(function(r){t.close(o,(function(t){if(a)a(r||t)}))}))}))};t.lchmodSync=function(r,i){var a=t.openSync(r,o.O_WRONLY|o.O_SYMLINK,i);var c=true;var u;try{u=t.fchmodSync(a,i);c=false}finally{if(c){try{t.closeSync(a)}catch(t){}}else{t.closeSync(a)}}return u}}function patchLutimes(t){if(o.hasOwnProperty("O_SYMLINK")&&t.futimes){t.lutimes=function(r,i,a,c){t.open(r,o.O_SYMLINK,(function(r,o){if(r){if(c)c(r);return}t.futimes(o,i,a,(function(r){t.close(o,(function(t){if(c)c(r||t)}))}))}))};t.lutimesSync=function(r,i,a){var c=t.openSync(r,o.O_SYMLINK);var u;var l=true;try{u=t.futimesSync(c,i,a);l=false}finally{if(l){try{t.closeSync(c)}catch(t){}}else{t.closeSync(c)}}return u}}else if(t.futimes){t.lutimes=function(t,r,i,o){if(o)process.nextTick(o)};t.lutimesSync=function(){}}}function chmodFix(r){if(!r)return r;return function(i,o,a){return r.call(t,i,o,(function(t){if(chownErOk(t))t=null;if(a)a.apply(this,arguments)}))}}function chmodFixSync(r){if(!r)return r;return function(i,o){try{return r.call(t,i,o)}catch(t){if(!chownErOk(t))throw t}}}function chownFix(r){if(!r)return r;return function(i,o,a,c){return r.call(t,i,o,a,(function(t){if(chownErOk(t))t=null;if(c)c.apply(this,arguments)}))}}function chownFixSync(r){if(!r)return r;return function(i,o,a){try{return r.call(t,i,o,a)}catch(t){if(!chownErOk(t))throw t}}}function statFix(r){if(!r)return r;return function(i,o,a){if(typeof o==="function"){a=o;o=null}function callback(t,r){if(r){if(r.uid<0)r.uid+=4294967296;if(r.gid<0)r.gid+=4294967296}if(a)a.apply(this,arguments)}return o?r.call(t,i,o,callback):r.call(t,i,callback)}}function statFixSync(r){if(!r)return r;return function(i,o){var a=o?r.call(t,i,o):r.call(t,i);if(a){if(a.uid<0)a.uid+=4294967296;if(a.gid<0)a.gid+=4294967296}return a}}function chownErOk(t){if(!t)return true;if(t.code==="ENOSYS")return true;var r=!process.getuid||process.getuid()!==0;if(r){if(t.code==="EINVAL"||t.code==="EPERM")return true}return false}}},1621:t=>{"use strict";t.exports=(t,r=process.argv)=>{const i=t.startsWith("-")?"":t.length===1?"-":"--";const o=r.indexOf(i+t);const a=r.indexOf("--");return o!==-1&&(a===-1||o<a)}},8887:(t,r,i)=>{"use strict";
/*!
 * has-value <https://github.com/jonschlinkert/has-value>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(5509);var a=i(4079);var c=i(9611);t.exports=function(t,r){return a(o(t)&&r?c(t,r):t)}},4079:(t,r,i)=>{"use strict";
/*!
 * has-values <https://github.com/jonschlinkert/has-values>
 *
 * Copyright (c) 2014-2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(1066);var a=i(5680);t.exports=function hasValue(t){if(a(t)){return true}switch(o(t)){case"null":case"boolean":case"function":return true;case"string":case"arguments":return t.length!==0;case"error":return t.message!=="";case"array":var r=t.length;if(r===0){return false}for(var i=0;i<r;i++){if(hasValue(t[i])){return true}}return false;case"file":case"map":case"set":return t.size!==0;case"object":var c=Object.keys(t);if(c.length===0){return false}for(var i=0;i<c.length;i++){var u=c[i];if(hasValue(t[u])){return true}}return false;default:{return false}}}},1066:(t,r,i)=>{var o=i(5625);var a=Object.prototype.toString;t.exports=function kindOf(t){if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(typeof t==="string"||t instanceof String){return"string"}if(typeof t==="number"||t instanceof Number){return"number"}if(typeof t==="function"||t instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}var r=a.call(t);if(r==="[object RegExp]"){return"regexp"}if(r==="[object Date]"){return"date"}if(r==="[object Arguments]"){return"arguments"}if(r==="[object Error]"){return"error"}if(r==="[object Promise]"){return"promise"}if(o(t)){return"buffer"}if(r==="[object Set]"){return"set"}if(r==="[object WeakSet]"){return"weakset"}if(r==="[object Map]"){return"map"}if(r==="[object WeakMap]"){return"weakmap"}if(r==="[object Symbol]"){return"symbol"}if(r==="[object Int8Array]"){return"int8array"}if(r==="[object Uint8Array]"){return"uint8array"}if(r==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(r==="[object Int16Array]"){return"int16array"}if(r==="[object Uint16Array]"){return"uint16array"}if(r==="[object Int32Array]"){return"int32array"}if(r==="[object Uint32Array]"){return"uint32array"}if(r==="[object Float32Array]"){return"float32array"}if(r==="[object Float64Array]"){return"float64array"}return"object"}},2492:(t,r,i)=>{var o=i(2940);var a=Object.create(null);var c=i(1223);t.exports=o(inflight);function inflight(t,r){if(a[t]){a[t].push(r);return null}else{a[t]=[r];return makeres(t)}}function makeres(t){return c((function RES(){var r=a[t];var i=r.length;var o=slice(arguments);try{for(var c=0;c<i;c++){r[c].apply(null,o)}}finally{if(r.length>i){r.splice(0,i);process.nextTick((function(){RES.apply(null,o)}))}else{delete a[t]}}}))}function slice(t){var r=t.length;var i=[];for(var o=0;o<r;o++)i[o]=t[o];return i}},4124:(t,r,i)=>{try{var o=i(3837);if(typeof o.inherits!=="function")throw"";t.exports=o.inherits}catch(r){t.exports=i(8544)}},8544:t=>{if(typeof Object.create==="function"){t.exports=function inherits(t,r){if(r){t.super_=r;t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}}else{t.exports=function inherits(t,r){if(r){t.super_=r;var TempCtor=function(){};TempCtor.prototype=r.prototype;t.prototype=new TempCtor;t.prototype.constructor=t}}}},8885:(t,r)=>{r.parse=r.decode=decode;r.stringify=r.encode=encode;r.safe=safe;r.unsafe=unsafe;var i=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(t,r){var o=[];var a="";if(typeof r==="string"){r={section:r,whitespace:false}}else{r=r||{};r.whitespace=r.whitespace===true}var c=r.whitespace?" = ":"=";Object.keys(t).forEach((function(r,u,l){var h=t[r];if(h&&Array.isArray(h)){h.forEach((function(t){a+=safe(r+"[]")+c+safe(t)+"\n"}))}else if(h&&typeof h==="object")o.push(r);else a+=safe(r)+c+safe(h)+i}));if(r.section&&a.length)a="["+safe(r.section)+"]"+i+a;o.forEach((function(o,c,u){var l=dotSplit(o).join("\\.");var h=(r.section?r.section+".":"")+l;var p=encode(t[o],{section:h,whitespace:r.whitespace});if(a.length&&p.length)a+=i;a+=p}));return a}function dotSplit(t){return t.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function decode(t){var r={};var i=r;var o=null;var a=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var c=t.split(/[\r\n]+/g);c.forEach((function(t,c,u){if(!t||t.match(/^\s*[;#]/))return;var l=t.match(a);if(!l)return;if(l[1]!==undefined){o=unsafe(l[1]);if(o==="__proto__"){i={};return}i=r[o]=r[o]||{};return}var h=unsafe(l[2]);if(h==="__proto__")return;var p=l[3]?unsafe(l[4]):true;switch(p){case"true":case"false":case"null":p=JSON.parse(p)}if(h.length>2&&h.slice(-2)==="[]"){h=h.substring(0,h.length-2);if(h==="__proto__")return;if(!i[h])i[h]=[];else if(!Array.isArray(i[h]))i[h]=[i[h]]}if(Array.isArray(i[h]))i[h].push(p);else i[h]=p}));Object.keys(r).filter((function(t,i,o){if(!r[t]||typeof r[t]!=="object"||Array.isArray(r[t]))return false;var a=dotSplit(t);var c=r;var u=a.pop();var l=u.replace(/\\\./g,".");a.forEach((function(t,r,i){if(t==="__proto__")return;if(!c[t]||typeof c[t]!=="object")c[t]={};c=c[t]}));if(c===r&&l===u)return false;c[l]=r[t];return true})).forEach((function(t,i,o){delete r[t]}));return r}function isQuoted(t){return t.charAt(0)==='"'&&t.slice(-1)==='"'||t.charAt(0)==="'"&&t.slice(-1)==="'"}function safe(t){return typeof t!=="string"||t.match(/[=\r\n]/)||t.match(/^\[/)||t.length>1&&isQuoted(t)||t!==t.trim()?JSON.stringify(t):t.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(t,r){t=(t||"").trim();if(isQuoted(t)){if(t.charAt(0)==="'")t=t.substr(1,t.length-2);try{t=JSON.parse(t)}catch(t){}}else{var i=false;var o="";for(var a=0,c=t.length;a<c;a++){var u=t.charAt(a);if(i){if("\\;#".indexOf(u)!==-1)o+=u;else o+="\\"+u;i=false}else if(";#".indexOf(u)!==-1)break;else if(u==="\\")i=true;else o+=u}if(i)o+="\\";return o.trim()}return t}},6649:(t,r,i)=>{"use strict";
/*!
 * is-accessor-descriptor <https://github.com/jonschlinkert/is-accessor-descriptor>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5619);var a={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(t,r){if(typeof r==="string"){var i=Object.getOwnPropertyDescriptor(t,r);return typeof i!=="undefined"}if(o(t)!=="object"){return false}if(has(t,"value")||has(t,"writable")){return false}if(!has(t,"get")||typeof t.get!=="function"){return false}if(has(t,"set")&&typeof t[c]!=="function"&&typeof t[c]!=="undefined"){return false}for(var c in t){if(!a.hasOwnProperty(c)){continue}if(o(t[c])===a[c]){continue}if(typeof t[c]!=="undefined"){return false}}return true}function has(t,r){return{}.hasOwnProperty.call(t,r)}t.exports=isAccessorDescriptor},5619:t=>{var r=Object.prototype.toString;t.exports=function kindOf(t){if(t===void 0)return"undefined";if(t===null)return"null";var i=typeof t;if(i==="boolean")return"boolean";if(i==="string")return"string";if(i==="number")return"number";if(i==="symbol")return"symbol";if(i==="function"){return isGeneratorFn(t)?"generatorfunction":"function"}if(isArray(t))return"array";if(isBuffer(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"}i=r.call(t);switch(i){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 i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(t){return typeof t.constructor==="function"?t.constructor.name:null}function isArray(t){if(Array.isArray)return Array.isArray(t);return t instanceof Array}function isError(t){return t instanceof Error||typeof t.message==="string"&&t.constructor&&typeof t.constructor.stackTraceLimit==="number"}function isDate(t){if(t instanceof Date)return true;return typeof t.toDateString==="function"&&typeof t.getDate==="function"&&typeof t.setDate==="function"}function isRegexp(t){if(t instanceof RegExp)return true;return typeof t.flags==="string"&&typeof t.ignoreCase==="boolean"&&typeof t.multiline==="boolean"&&typeof t.global==="boolean"}function isGeneratorFn(t,r){return ctorName(t)==="GeneratorFunction"}function isGeneratorObj(t){return typeof t.throw==="function"&&typeof t.return==="function"&&typeof t.next==="function"}function isArguments(t){try{if(typeof t.length==="number"&&typeof t.callee==="function"){return true}}catch(t){if(t.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(t){if(t.constructor&&typeof t.constructor.isBuffer==="function"){return t.constructor.isBuffer(t)}return false}},5625:t=>{
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
t.exports=function(t){return t!=null&&(isBuffer(t)||isSlowBuffer(t)||!!t._isBuffer)};function isBuffer(t){return!!t.constructor&&typeof t.constructor.isBuffer==="function"&&t.constructor.isBuffer(t)}function isSlowBuffer(t){return typeof t.readFloatLE==="function"&&typeof t.slice==="function"&&isBuffer(t.slice(0,0))}},1598:(t,r,i)=>{"use strict";
/*!
 * is-data-descriptor <https://github.com/jonschlinkert/is-data-descriptor>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(3131);t.exports=function isDataDescriptor(t,r){var i={configurable:"boolean",enumerable:"boolean",writable:"boolean"};if(o(t)!=="object"){return false}if(typeof r==="string"){var a=Object.getOwnPropertyDescriptor(t,r);return typeof a!=="undefined"}if(!("value"in t)&&!("writable"in t)){return false}for(var c in t){if(c==="value")continue;if(!i.hasOwnProperty(c)){continue}if(o(t[c])===i[c]){continue}if(typeof t[c]!=="undefined"){return false}}return true}},3131:t=>{var r=Object.prototype.toString;t.exports=function kindOf(t){if(t===void 0)return"undefined";if(t===null)return"null";var i=typeof t;if(i==="boolean")return"boolean";if(i==="string")return"string";if(i==="number")return"number";if(i==="symbol")return"symbol";if(i==="function"){return isGeneratorFn(t)?"generatorfunction":"function"}if(isArray(t))return"array";if(isBuffer(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"}i=r.call(t);switch(i){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 i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(t){return typeof t.constructor==="function"?t.constructor.name:null}function isArray(t){if(Array.isArray)return Array.isArray(t);return t instanceof Array}function isError(t){return t instanceof Error||typeof t.message==="string"&&t.constructor&&typeof t.constructor.stackTraceLimit==="number"}function isDate(t){if(t instanceof Date)return true;return typeof t.toDateString==="function"&&typeof t.getDate==="function"&&typeof t.setDate==="function"}function isRegexp(t){if(t instanceof RegExp)return true;return typeof t.flags==="string"&&typeof t.ignoreCase==="boolean"&&typeof t.multiline==="boolean"&&typeof t.global==="boolean"}function isGeneratorFn(t,r){return ctorName(t)==="GeneratorFunction"}function isGeneratorObj(t){return typeof t.throw==="function"&&typeof t.return==="function"&&typeof t.next==="function"}function isArguments(t){try{if(typeof t.length==="number"&&typeof t.callee==="function"){return true}}catch(t){if(t.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(t){if(t.constructor&&typeof t.constructor.isBuffer==="function"){return t.constructor.isBuffer(t)}return false}},567:(t,r,i)=>{"use strict";
/*!
 * is-descriptor <https://github.com/jonschlinkert/is-descriptor>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(8267);var a=i(6649);var c=i(1598);t.exports=function isDescriptor(t,r){if(o(t)!=="object"){return false}if("get"in t){return a(t,r)}return c(t,r)}},8267:t=>{var r=Object.prototype.toString;t.exports=function kindOf(t){if(t===void 0)return"undefined";if(t===null)return"null";var i=typeof t;if(i==="boolean")return"boolean";if(i==="string")return"string";if(i==="number")return"number";if(i==="symbol")return"symbol";if(i==="function"){return isGeneratorFn(t)?"generatorfunction":"function"}if(isArray(t))return"array";if(isBuffer(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"}i=r.call(t);switch(i){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 i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(t){return typeof t.constructor==="function"?t.constructor.name:null}function isArray(t){if(Array.isArray)return Array.isArray(t);return t instanceof Array}function isError(t){return t instanceof Error||typeof t.message==="string"&&t.constructor&&typeof t.constructor.stackTraceLimit==="number"}function isDate(t){if(t instanceof Date)return true;return typeof t.toDateString==="function"&&typeof t.getDate==="function"&&typeof t.setDate==="function"}function isRegexp(t){if(t instanceof RegExp)return true;return typeof t.flags==="string"&&typeof t.ignoreCase==="boolean"&&typeof t.multiline==="boolean"&&typeof t.global==="boolean"}function isGeneratorFn(t,r){return ctorName(t)==="GeneratorFunction"}function isGeneratorObj(t){return typeof t.throw==="function"&&typeof t.return==="function"&&typeof t.next==="function"}function isArguments(t){try{if(typeof t.length==="number"&&typeof t.callee==="function"){return true}}catch(t){if(t.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(t){if(t.constructor&&typeof t.constructor.isBuffer==="function"){return t.constructor.isBuffer(t)}return false}},429:t=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function isExtendable(t){return typeof t!=="undefined"&&t!==null&&(typeof t==="object"||typeof t==="function")}},6435:t=>{
/*!
 * is-extglob <https://github.com/jonschlinkert/is-extglob>
 *
 * Copyright (c) 2014-2016, Jon Schlinkert.
 * Licensed under the MIT License.
 */
t.exports=function isExtglob(t){if(typeof t!=="string"||t===""){return false}var r;while(r=/(\\).|([@?!+*]\(.*\))/g.exec(t)){if(r[2])return true;t=t.slice(r.index+r[0].length)}return false}},4466:(t,r,i)=>{
/*!
 * is-glob <https://github.com/jonschlinkert/is-glob>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */
var o=i(6435);var a={"{":"}","(":")","[":"]"};var strictCheck=function(t){if(t[0]==="!"){return true}var r=0;var i=-2;var o=-2;var c=-2;var u=-2;var l=-2;while(r<t.length){if(t[r]==="*"){return true}if(t[r+1]==="?"&&/[\].+)]/.test(t[r])){return true}if(o!==-1&&t[r]==="["&&t[r+1]!=="]"){if(o<r){o=t.indexOf("]",r)}if(o>r){if(l===-1||l>o){return true}l=t.indexOf("\\",r);if(l===-1||l>o){return true}}}if(c!==-1&&t[r]==="{"&&t[r+1]!=="}"){c=t.indexOf("}",r);if(c>r){l=t.indexOf("\\",r);if(l===-1||l>c){return true}}}if(u!==-1&&t[r]==="("&&t[r+1]==="?"&&/[:!=]/.test(t[r+2])&&t[r+3]!==")"){u=t.indexOf(")",r);if(u>r){l=t.indexOf("\\",r);if(l===-1||l>u){return true}}}if(i!==-1&&t[r]==="("&&t[r+1]!=="|"){if(i<r){i=t.indexOf("|",r)}if(i!==-1&&t[i+1]!==")"){u=t.indexOf(")",i);if(u>i){l=t.indexOf("\\",i);if(l===-1||l>u){return true}}}}if(t[r]==="\\"){var h=t[r+1];r+=2;var p=a[h];if(p){var d=t.indexOf(p,r);if(d!==-1){r=d+1}}if(t[r]==="!"){return true}}else{r++}}return false};var relaxedCheck=function(t){if(t[0]==="!"){return true}var r=0;while(r<t.length){if(/[*?{}()[\]]/.test(t[r])){return true}if(t[r]==="\\"){var i=t[r+1];r+=2;var o=a[i];if(o){var c=t.indexOf(o,r);if(c!==-1){r=c+1}}if(t[r]==="!"){return true}}else{r++}}return false};t.exports=function isGlob(t,r){if(typeof t!=="string"||t===""){return false}if(o(t)){return true}var i=strictCheck;if(r&&r.strict===false){i=relaxedCheck}return i(t)}},5680:(t,r,i)=>{"use strict";
/*!
 * is-number <https://github.com/jonschlinkert/is-number>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(6961);t.exports=function isNumber(t){var r=o(t);if(r==="string"){if(!t.trim())return false}else if(r!=="number"){return false}return t-t+1>=0}},7810:(t,r,i)=>{"use strict";
/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5509);function isObjectObject(t){return o(t)===true&&Object.prototype.toString.call(t)==="[object Object]"}t.exports=function isPlainObject(t){var r,i;if(isObjectObject(t)===false)return false;r=t.constructor;if(typeof r!=="function")return false;i=r.prototype;if(isObjectObject(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}},9125:(t,r)=>{
/*!
 * is-windows <https://github.com/jonschlinkert/is-windows>
 *
 * Copyright © 2015-2018, Jon Schlinkert.
 * Released under the MIT License.
 */
(function(i){if(r&&typeof r==="object"&&"object"!=="undefined"){t.exports=i()}else if(typeof define==="function"&&define.amd){define([],i)}else if(typeof window!=="undefined"){window.isWindows=i()}else if(typeof global!=="undefined"){global.isWindows=i()}else if(typeof self!=="undefined"){self.isWindows=i()}else{this.isWindows=i()}})((function(){"use strict";return function isWindows(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))},893:t=>{var r={}.toString;t.exports=Array.isArray||function(t){return r.call(t)=="[object Array]"}},7126:(t,r,i)=>{var o=i(7147);var a;if(process.platform==="win32"||global.TESTING_WINDOWS){a=i(2001)}else{a=i(9728)}t.exports=isexe;isexe.sync=sync;function isexe(t,r,i){if(typeof r==="function"){i=r;r={}}if(!i){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(i,o){isexe(t,r||{},(function(t,r){if(t){o(t)}else{i(r)}}))}))}a(t,r||{},(function(t,o){if(t){if(t.code==="EACCES"||r&&r.ignoreErrors){t=null;o=false}}i(t,o)}))}function sync(t,r){try{return a.sync(t,r||{})}catch(t){if(r&&r.ignoreErrors||t.code==="EACCES"){return false}else{throw t}}}},9728:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function isexe(t,r,i){o.stat(t,(function(t,o){i(t,t?false:checkStat(o,r))}))}function sync(t,r){return checkStat(o.statSync(t),r)}function checkStat(t,r){return t.isFile()&&checkMode(t,r)}function checkMode(t,r){var i=t.mode;var o=t.uid;var a=t.gid;var c=r.uid!==undefined?r.uid:process.getuid&&process.getuid();var u=r.gid!==undefined?r.gid:process.getgid&&process.getgid();var l=parseInt("100",8);var h=parseInt("010",8);var p=parseInt("001",8);var d=l|h;var m=i&p||i&h&&a===u||i&l&&o===c||i&d&&c===0;return m}},2001:(t,r,i)=>{t.exports=isexe;isexe.sync=sync;var o=i(7147);function checkPathExt(t,r){var i=r.pathExt!==undefined?r.pathExt:process.env.PATHEXT;if(!i){return true}i=i.split(";");if(i.indexOf("")!==-1){return true}for(var o=0;o<i.length;o++){var a=i[o].toLowerCase();if(a&&t.substr(-a.length).toLowerCase()===a){return true}}return false}function checkStat(t,r,i){if(!t.isSymbolicLink()&&!t.isFile()){return false}return checkPathExt(r,i)}function isexe(t,r,i){o.stat(t,(function(o,a){i(o,o?false:checkStat(a,t,r))}))}function sync(t,r){return checkStat(o.statSync(t),t,r)}},5509:t=>{"use strict";
/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function isObject(t){return t!=null&&typeof t==="object"&&Array.isArray(t)===false}},6961:(t,r,i)=>{var o=i(5625);var a=Object.prototype.toString;t.exports=function kindOf(t){if(typeof t==="undefined"){return"undefined"}if(t===null){return"null"}if(t===true||t===false||t instanceof Boolean){return"boolean"}if(typeof t==="string"||t instanceof String){return"string"}if(typeof t==="number"||t instanceof Number){return"number"}if(typeof t==="function"||t instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(t)){return"array"}if(t instanceof RegExp){return"regexp"}if(t instanceof Date){return"date"}var r=a.call(t);if(r==="[object RegExp]"){return"regexp"}if(r==="[object Date]"){return"date"}if(r==="[object Arguments]"){return"arguments"}if(r==="[object Error]"){return"error"}if(o(t)){return"buffer"}if(r==="[object Set]"){return"set"}if(r==="[object WeakSet]"){return"weakset"}if(r==="[object Map]"){return"map"}if(r==="[object WeakMap]"){return"weakmap"}if(r==="[object Symbol]"){return"symbol"}if(r==="[object Int8Array]"){return"int8array"}if(r==="[object Uint8Array]"){return"uint8array"}if(r==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(r==="[object Int16Array]"){return"int16array"}if(r==="[object Uint16Array]"){return"uint16array"}if(r==="[object Int32Array]"){return"int32array"}if(r==="[object Uint32Array]"){return"uint32array"}if(r==="[object Float32Array]"){return"float32array"}if(r==="[object Float64Array]"){return"float64array"}return"object"}},5215:t=>{"use strict";const{FORCE_COLOR:r,NODE_DISABLE_COLORS:i,TERM:o}=process.env;const a={enabled:!i&&o!=="dumb"&&r!=="0",reset:init(0,0),bold:init(1,22),dim:init(2,22),italic:init(3,23),underline:init(4,24),inverse:init(7,27),hidden:init(8,28),strikethrough:init(9,29),black:init(30,39),red:init(31,39),green:init(32,39),yellow:init(33,39),blue:init(34,39),magenta:init(35,39),cyan:init(36,39),white:init(37,39),gray:init(90,39),grey:init(90,39),bgBlack:init(40,49),bgRed:init(41,49),bgGreen:init(42,49),bgYellow:init(43,49),bgBlue:init(44,49),bgMagenta:init(45,49),bgCyan:init(46,49),bgWhite:init(47,49)};function run(t,r){let i=0,o,a="",c="";for(;i<t.length;i++){o=t[i];a+=o.open;c+=o.close;if(r.includes(o.close)){r=r.replace(o.rgx,o.close+o.open)}}return a+r+c}function chain(t,r){let i={has:t,keys:r};i.reset=a.reset.bind(i);i.bold=a.bold.bind(i);i.dim=a.dim.bind(i);i.italic=a.italic.bind(i);i.underline=a.underline.bind(i);i.inverse=a.inverse.bind(i);i.hidden=a.hidden.bind(i);i.strikethrough=a.strikethrough.bind(i);i.black=a.black.bind(i);i.red=a.red.bind(i);i.green=a.green.bind(i);i.yellow=a.yellow.bind(i);i.blue=a.blue.bind(i);i.magenta=a.magenta.bind(i);i.cyan=a.cyan.bind(i);i.white=a.white.bind(i);i.gray=a.gray.bind(i);i.grey=a.grey.bind(i);i.bgBlack=a.bgBlack.bind(i);i.bgRed=a.bgRed.bind(i);i.bgGreen=a.bgGreen.bind(i);i.bgYellow=a.bgYellow.bind(i);i.bgBlue=a.bgBlue.bind(i);i.bgMagenta=a.bgMagenta.bind(i);i.bgCyan=a.bgCyan.bind(i);i.bgWhite=a.bgWhite.bind(i);return i}function init(t,r){let i={open:`[${t}m`,close:`[${r}m`,rgx:new RegExp(`\\x1b\\[${r}m`,"g")};return function(r){if(this!==void 0&&this.has!==void 0){this.has.includes(t)||(this.has.push(t),this.keys.push(i));return r===void 0?this:a.enabled?run(this.keys,r+""):r+""}return r===void 0?chain([t],[i]):a.enabled?run([i],r+""):r+""}}t.exports=a},7129:(t,r,i)=>{"use strict";const o=i(665);const a=Symbol("max");const c=Symbol("length");const u=Symbol("lengthCalculator");const l=Symbol("allowStale");const h=Symbol("maxAge");const p=Symbol("dispose");const d=Symbol("noDisposeOnSet");const m=Symbol("lruList");const g=Symbol("cache");const v=Symbol("updateAgeOnGet");const naiveLength=()=>1;class LRUCache{constructor(t){if(typeof t==="number")t={max:t};if(!t)t={};if(t.max&&(typeof t.max!=="number"||t.max<0))throw new TypeError("max must be a non-negative number");const r=this[a]=t.max||Infinity;const i=t.length||naiveLength;this[u]=typeof i!=="function"?naiveLength:i;this[l]=t.stale||false;if(t.maxAge&&typeof t.maxAge!=="number")throw new TypeError("maxAge must be a number");this[h]=t.maxAge||0;this[p]=t.dispose;this[d]=t.noDisposeOnSet||false;this[v]=t.updateAgeOnGet||false;this.reset()}set max(t){if(typeof t!=="number"||t<0)throw new TypeError("max must be a non-negative number");this[a]=t||Infinity;trim(this)}get max(){return this[a]}set allowStale(t){this[l]=!!t}get allowStale(){return this[l]}set maxAge(t){if(typeof t!=="number")throw new TypeError("maxAge must be a non-negative number");this[h]=t;trim(this)}get maxAge(){return this[h]}set lengthCalculator(t){if(typeof t!=="function")t=naiveLength;if(t!==this[u]){this[u]=t;this[c]=0;this[m].forEach((t=>{t.length=this[u](t.value,t.key);this[c]+=t.length}))}trim(this)}get lengthCalculator(){return this[u]}get length(){return this[c]}get itemCount(){return this[m].length}rforEach(t,r){r=r||this;for(let i=this[m].tail;i!==null;){const o=i.prev;forEachStep(this,t,i,r);i=o}}forEach(t,r){r=r||this;for(let i=this[m].head;i!==null;){const o=i.next;forEachStep(this,t,i,r);i=o}}keys(){return this[m].toArray().map((t=>t.key))}values(){return this[m].toArray().map((t=>t.value))}reset(){if(this[p]&&this[m]&&this[m].length){this[m].forEach((t=>this[p](t.key,t.value)))}this[g]=new Map;this[m]=new o;this[c]=0}dump(){return this[m].map((t=>isStale(this,t)?false:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[m]}set(t,r,i){i=i||this[h];if(i&&typeof i!=="number")throw new TypeError("maxAge must be a number");const o=i?Date.now():0;const l=this[u](r,t);if(this[g].has(t)){if(l>this[a]){del(this,this[g].get(t));return false}const u=this[g].get(t);const h=u.value;if(this[p]){if(!this[d])this[p](t,h.value)}h.now=o;h.maxAge=i;h.value=r;this[c]+=l-h.length;h.length=l;this.get(t);trim(this);return true}const v=new Entry(t,r,l,o,i);if(v.length>this[a]){if(this[p])this[p](t,r);return false}this[c]+=v.length;this[m].unshift(v);this[g].set(t,this[m].head);trim(this);return true}has(t){if(!this[g].has(t))return false;const r=this[g].get(t).value;return!isStale(this,r)}get(t){return get(this,t,true)}peek(t){return get(this,t,false)}pop(){const t=this[m].tail;if(!t)return null;del(this,t);return t.value}del(t){del(this,this[g].get(t))}load(t){this.reset();const r=Date.now();for(let i=t.length-1;i>=0;i--){const o=t[i];const a=o.e||0;if(a===0)this.set(o.k,o.v);else{const t=a-r;if(t>0){this.set(o.k,o.v,t)}}}}prune(){this[g].forEach(((t,r)=>get(this,r,false)))}}const get=(t,r,i)=>{const o=t[g].get(r);if(o){const r=o.value;if(isStale(t,r)){del(t,o);if(!t[l])return undefined}else{if(i){if(t[v])o.value.now=Date.now();t[m].unshiftNode(o)}}return r.value}};const isStale=(t,r)=>{if(!r||!r.maxAge&&!t[h])return false;const i=Date.now()-r.now;return r.maxAge?i>r.maxAge:t[h]&&i>t[h]};const trim=t=>{if(t[c]>t[a]){for(let r=t[m].tail;t[c]>t[a]&&r!==null;){const i=r.prev;del(t,r);r=i}}};const del=(t,r)=>{if(r){const i=r.value;if(t[p])t[p](i.key,i.value);t[c]-=i.length;t[g].delete(i.key);t[m].removeNode(r)}};class Entry{constructor(t,r,i,o,a){this.key=t;this.value=r;this.length=i;this.now=o;this.maxAge=a||0}}const forEachStep=(t,r,i,o)=>{let a=i.value;if(isStale(t,a)){del(t,i);if(!t[l])a=undefined}if(a)r.call(o,a.value,a.key,t)};t.exports=LRUCache},9126:(t,r,i)=>{"use strict";const o=i(7147);const a=i(1017);const c=i(4810);const u=i(3689);const l={mode:511&~process.umask(),fs:o};const h=u.satisfies(process.version,">=10.12.0");const checkPath=t=>{if(process.platform==="win32"){const r=/[<>:"|?*]/.test(t.replace(a.parse(t).root,""));if(r){const r=new Error(`Path contains invalid characters: ${t}`);r.code="EINVAL";throw r}}};const permissionError=t=>{const r=new Error(`operation not permitted, mkdir '${t}'`);r.code="EPERM";r.errno=-4048;r.path=t;r.syscall="mkdir";return r};const makeDir=(t,r)=>Promise.resolve().then((()=>{checkPath(t);r=Object.assign({},l,r);const i=c(r.fs.mkdir);const u=c(r.fs.stat);if(h&&r.fs.mkdir===o.mkdir){const o=a.resolve(t);return i(o,{mode:r.mode,recursive:true}).then((()=>o))}const make=t=>i(t,r.mode).then((()=>t)).catch((r=>{if(r.code==="EPERM"){throw r}if(r.code==="ENOENT"){if(a.dirname(t)===t){throw permissionError(t)}if(r.message.includes("null bytes")){throw r}return make(a.dirname(t)).then((()=>make(t)))}return u(t).then((r=>r.isDirectory()?t:Promise.reject())).catch((()=>{throw r}))}));return make(a.resolve(t))}));t.exports=makeDir;t.exports["default"]=makeDir;t.exports.sync=(t,r)=>{checkPath(t);r=Object.assign({},l,r);if(h&&r.fs.mkdirSync===o.mkdirSync){const i=a.resolve(t);o.mkdirSync(i,{mode:r.mode,recursive:true});return i}const make=t=>{try{r.fs.mkdirSync(t,r.mode)}catch(i){if(i.code==="EPERM"){throw i}if(i.code==="ENOENT"){if(a.dirname(t)===t){throw permissionError(t)}if(i.message.includes("null bytes")){throw i}make(a.dirname(t));return make(t)}try{if(!r.fs.statSync(t).isDirectory()){throw new Error("The path is not a directory")}}catch(t){throw i}}return t};return make(a.resolve(t))}},3689:(t,r)=>{r=t.exports=SemVer;var i;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){i=function(){var t=Array.prototype.slice.call(arguments,0);t.unshift("SEMVER");console.log.apply(console,t)}}else{i=function(){}}r.SEMVER_SPEC_VERSION="2.0.0";var o=256;var a=Number.MAX_SAFE_INTEGER||9007199254740991;var c=16;var u=r.re=[];var l=r.src=[];var h=0;var p=h++;l[p]="0|[1-9]\\d*";var d=h++;l[d]="[0-9]+";var m=h++;l[m]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var g=h++;l[g]="("+l[p]+")\\."+"("+l[p]+")\\."+"("+l[p]+")";var v=h++;l[v]="("+l[d]+")\\."+"("+l[d]+")\\."+"("+l[d]+")";var y=h++;l[y]="(?:"+l[p]+"|"+l[m]+")";var b=h++;l[b]="(?:"+l[d]+"|"+l[m]+")";var w=h++;l[w]="(?:-("+l[y]+"(?:\\."+l[y]+")*))";var x=h++;l[x]="(?:-?("+l[b]+"(?:\\."+l[b]+")*))";var S=h++;l[S]="[0-9A-Za-z-]+";var E=h++;l[E]="(?:\\+("+l[S]+"(?:\\."+l[S]+")*))";var O=h++;var A="v?"+l[g]+l[w]+"?"+l[E]+"?";l[O]="^"+A+"$";var _="[v=\\s]*"+l[v]+l[x]+"?"+l[E]+"?";var k=h++;l[k]="^"+_+"$";var C=h++;l[C]="((?:<|>)?=?)";var j=h++;l[j]=l[d]+"|x|X|\\*";var P=h++;l[P]=l[p]+"|x|X|\\*";var R=h++;l[R]="[v=\\s]*("+l[P]+")"+"(?:\\.("+l[P]+")"+"(?:\\.("+l[P]+")"+"(?:"+l[w]+")?"+l[E]+"?"+")?)?";var M=h++;l[M]="[v=\\s]*("+l[j]+")"+"(?:\\.("+l[j]+")"+"(?:\\.("+l[j]+")"+"(?:"+l[x]+")?"+l[E]+"?"+")?)?";var T=h++;l[T]="^"+l[C]+"\\s*"+l[R]+"$";var I=h++;l[I]="^"+l[C]+"\\s*"+l[M]+"$";var N=h++;l[N]="(?:^|[^\\d])"+"(\\d{1,"+c+"})"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:\\.(\\d{1,"+c+"}))?"+"(?:$|[^\\d])";var $=h++;l[$]="(?:~>?)";var D=h++;l[D]="(\\s*)"+l[$]+"\\s+";u[D]=new RegExp(l[D],"g");var L="$1~";var B=h++;l[B]="^"+l[$]+l[R]+"$";var G=h++;l[G]="^"+l[$]+l[M]+"$";var U=h++;l[U]="(?:\\^)";var q=h++;l[q]="(\\s*)"+l[U]+"\\s+";u[q]=new RegExp(l[q],"g");var V="$1^";var W=h++;l[W]="^"+l[U]+l[R]+"$";var z=h++;l[z]="^"+l[U]+l[M]+"$";var H=h++;l[H]="^"+l[C]+"\\s*("+_+")$|^$";var Y=h++;l[Y]="^"+l[C]+"\\s*("+A+")$|^$";var X=h++;l[X]="(\\s*)"+l[C]+"\\s*("+_+"|"+l[R]+")";u[X]=new RegExp(l[X],"g");var Q="$1$2$3";var K=h++;l[K]="^\\s*("+l[R]+")"+"\\s+-\\s+"+"("+l[R]+")"+"\\s*$";var J=h++;l[J]="^\\s*("+l[M]+")"+"\\s+-\\s+"+"("+l[M]+")"+"\\s*$";var Z=h++;l[Z]="(<|>)?=?\\s*\\*";for(var ee=0;ee<h;ee++){i(ee,l[ee]);if(!u[ee]){u[ee]=new RegExp(l[ee])}}r.parse=parse;function parse(t,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(t instanceof SemVer){return t}if(typeof t!=="string"){return null}if(t.length>o){return null}var i=r.loose?u[k]:u[O];if(!i.test(t)){return null}try{return new SemVer(t,r)}catch(t){return null}}r.valid=valid;function valid(t,r){var i=parse(t,r);return i?i.version:null}r.clean=clean;function clean(t,r){var i=parse(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null}r.SemVer=SemVer;function SemVer(t,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(t instanceof SemVer){if(t.loose===r.loose){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError("Invalid Version: "+t)}if(t.length>o){throw new TypeError("version is longer than "+o+" characters")}if(!(this instanceof SemVer)){return new SemVer(t,r)}i("SemVer",t,r);this.options=r;this.loose=!!r.loose;var c=t.trim().match(r.loose?u[k]:u[O]);if(!c){throw new TypeError("Invalid Version: "+t)}this.raw=t;this.major=+c[1];this.minor=+c[2];this.patch=+c[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!c[4]){this.prerelease=[]}else{this.prerelease=c[4].split(".").map((function(t){if(/^[0-9]+$/.test(t)){var r=+t;if(r>=0&&r<a){return r}}return t}))}this.build=c[5]?c[5].split("."):[];this.format()}SemVer.prototype.format=function(){this.version=this.major+"."+this.minor+"."+this.patch;if(this.prerelease.length){this.version+="-"+this.prerelease.join(".")}return this.version};SemVer.prototype.toString=function(){return this.version};SemVer.prototype.compare=function(t){i("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return this.compareMain(t)||this.comparePre(t)};SemVer.prototype.compareMain=function(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return compareIdentifiers(this.major,t.major)||compareIdentifiers(this.minor,t.minor)||compareIdentifiers(this.patch,t.patch)};SemVer.prototype.comparePre=function(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}var r=0;do{var o=this.prerelease[r];var a=t.prerelease[r];i("prerelease compare",r,o,a);if(o===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(o===undefined){return-1}else if(o===a){continue}else{return compareIdentifiers(o,a)}}while(++r)};SemVer.prototype.inc=function(t,r){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r);this.inc("pre",r);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r)}this.inc("pre",r);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{var i=this.prerelease.length;while(--i>=0){if(typeof this.prerelease[i]==="number"){this.prerelease[i]++;i=-2}}if(i===-1){this.prerelease.push(0)}}if(r){if(this.prerelease[0]===r){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error("invalid increment argument: "+t)}this.format();this.raw=this.version;return this};r.inc=inc;function inc(t,r,i,o){if(typeof i==="string"){o=i;i=undefined}try{return new SemVer(t,i).inc(r,o).version}catch(t){return null}}r.diff=diff;function diff(t,r){if(eq(t,r)){return null}else{var i=parse(t);var o=parse(r);var a="";if(i.prerelease.length||o.prerelease.length){a="pre";var c="prerelease"}for(var u in i){if(u==="major"||u==="minor"||u==="patch"){if(i[u]!==o[u]){return a+u}}}return c}}r.compareIdentifiers=compareIdentifiers;var te=/^[0-9]+$/;function compareIdentifiers(t,r){var i=te.test(t);var o=te.test(r);if(i&&o){t=+t;r=+r}return t===r?0:i&&!o?-1:o&&!i?1:t<r?-1:1}r.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(t,r){return compareIdentifiers(r,t)}r.major=major;function major(t,r){return new SemVer(t,r).major}r.minor=minor;function minor(t,r){return new SemVer(t,r).minor}r.patch=patch;function patch(t,r){return new SemVer(t,r).patch}r.compare=compare;function compare(t,r,i){return new SemVer(t,i).compare(new SemVer(r,i))}r.compareLoose=compareLoose;function compareLoose(t,r){return compare(t,r,true)}r.rcompare=rcompare;function rcompare(t,r,i){return compare(r,t,i)}r.sort=sort;function sort(t,i){return t.sort((function(t,o){return r.compare(t,o,i)}))}r.rsort=rsort;function rsort(t,i){return t.sort((function(t,o){return r.rcompare(t,o,i)}))}r.gt=gt;function gt(t,r,i){return compare(t,r,i)>0}r.lt=lt;function lt(t,r,i){return compare(t,r,i)<0}r.eq=eq;function eq(t,r,i){return compare(t,r,i)===0}r.neq=neq;function neq(t,r,i){return compare(t,r,i)!==0}r.gte=gte;function gte(t,r,i){return compare(t,r,i)>=0}r.lte=lte;function lte(t,r,i){return compare(t,r,i)<=0}r.cmp=cmp;function cmp(t,r,i,o){switch(r){case"===":if(typeof t==="object")t=t.version;if(typeof i==="object")i=i.version;return t===i;case"!==":if(typeof t==="object")t=t.version;if(typeof i==="object")i=i.version;return t!==i;case"":case"=":case"==":return eq(t,i,o);case"!=":return neq(t,i,o);case">":return gt(t,i,o);case">=":return gte(t,i,o);case"<":return lt(t,i,o);case"<=":return lte(t,i,o);default:throw new TypeError("Invalid operator: "+r)}}r.Comparator=Comparator;function Comparator(t,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}if(!(this instanceof Comparator)){return new Comparator(t,r)}i("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===re){this.value=""}else{this.value=this.operator+this.semver.version}i("comp",this)}var re={};Comparator.prototype.parse=function(t){var r=this.options.loose?u[H]:u[Y];var i=t.match(r);if(!i){throw new TypeError("Invalid comparator: "+t)}this.operator=i[1];if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=re}else{this.semver=new SemVer(i[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(t){i("Comparator.test",t,this.options.loose);if(this.semver===re){return true}if(typeof t==="string"){t=new SemVer(t,this.options)}return cmp(t,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}var i;if(this.operator===""){i=new Range(t.value,r);return satisfies(this.value,i,r)}else if(t.operator===""){i=new Range(this.value,r);return satisfies(t.semver,i,r)}var o=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">");var a=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<");var c=this.semver.version===t.semver.version;var u=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<=");var l=cmp(this.semver,"<",t.semver,r)&&((this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<"));var h=cmp(this.semver,">",t.semver,r)&&((this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">"));return o||a||c&&u||l||h};r.Range=Range;function Range(t,r){if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof Comparator){return new Range(t.value,r)}if(!(this instanceof Range)){return new Range(t,r)}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t;this.set=t.split(/\s*\|\|\s*/).map((function(t){return this.parseRange(t.trim())}),this).filter((function(t){return t.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+t)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(t){return t.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(t){var r=this.options.loose;t=t.trim();var o=r?u[J]:u[K];t=t.replace(o,hyphenReplace);i("hyphen replace",t);t=t.replace(u[X],Q);i("comparator trim",t,u[X]);t=t.replace(u[D],L);t=t.replace(u[q],V);t=t.split(/\s+/).join(" ");var a=r?u[H]:u[Y];var c=t.split(" ").map((function(t){return parseComparator(t,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){c=c.filter((function(t){return!!t.match(a)}))}c=c.map((function(t){return new Comparator(t,this.options)}),this);return c};Range.prototype.intersects=function(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(i){return i.every((function(i){return t.set.some((function(t){return t.every((function(t){return i.intersects(t,r)}))}))}))}))};r.toComparators=toComparators;function toComparators(t,r){return new Range(t,r).set.map((function(t){return t.map((function(t){return t.value})).join(" ").trim().split(" ")}))}function parseComparator(t,r){i("comp",t,r);t=replaceCarets(t,r);i("caret",t);t=replaceTildes(t,r);i("tildes",t);t=replaceXRanges(t,r);i("xrange",t);t=replaceStars(t,r);i("stars",t);return t}function isX(t){return!t||t.toLowerCase()==="x"||t==="*"}function replaceTildes(t,r){return t.trim().split(/\s+/).map((function(t){return replaceTilde(t,r)})).join(" ")}function replaceTilde(t,r){var o=r.loose?u[G]:u[B];return t.replace(o,(function(r,o,a,c,u){i("tilde",t,r,o,a,c,u);var l;if(isX(o)){l=""}else if(isX(a)){l=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(isX(c)){l=">="+o+"."+a+".0 <"+o+"."+(+a+1)+".0"}else if(u){i("replaceTilde pr",u);l=">="+o+"."+a+"."+c+"-"+u+" <"+o+"."+(+a+1)+".0"}else{l=">="+o+"."+a+"."+c+" <"+o+"."+(+a+1)+".0"}i("tilde return",l);return l}))}function replaceCarets(t,r){return t.trim().split(/\s+/).map((function(t){return replaceCaret(t,r)})).join(" ")}function replaceCaret(t,r){i("caret",t,r);var o=r.loose?u[z]:u[W];return t.replace(o,(function(r,o,a,c,u){i("caret",t,r,o,a,c,u);var l;if(isX(o)){l=""}else if(isX(a)){l=">="+o+".0.0 <"+(+o+1)+".0.0"}else if(isX(c)){if(o==="0"){l=">="+o+"."+a+".0 <"+o+"."+(+a+1)+".0"}else{l=">="+o+"."+a+".0 <"+(+o+1)+".0.0"}}else if(u){i("replaceCaret pr",u);if(o==="0"){if(a==="0"){l=">="+o+"."+a+"."+c+"-"+u+" <"+o+"."+a+"."+(+c+1)}else{l=">="+o+"."+a+"."+c+"-"+u+" <"+o+"."+(+a+1)+".0"}}else{l=">="+o+"."+a+"."+c+"-"+u+" <"+(+o+1)+".0.0"}}else{i("no pr");if(o==="0"){if(a==="0"){l=">="+o+"."+a+"."+c+" <"+o+"."+a+"."+(+c+1)}else{l=">="+o+"."+a+"."+c+" <"+o+"."+(+a+1)+".0"}}else{l=">="+o+"."+a+"."+c+" <"+(+o+1)+".0.0"}}i("caret return",l);return l}))}function replaceXRanges(t,r){i("replaceXRanges",t,r);return t.split(/\s+/).map((function(t){return replaceXRange(t,r)})).join(" ")}function replaceXRange(t,r){t=t.trim();var o=r.loose?u[I]:u[T];return t.replace(o,(function(r,o,a,c,u,l){i("xRange",t,r,o,a,c,u,l);var h=isX(a);var p=h||isX(c);var d=p||isX(u);var m=d;if(o==="="&&m){o=""}if(h){if(o===">"||o==="<"){r="<0.0.0"}else{r="*"}}else if(o&&m){if(p){c=0}u=0;if(o===">"){o=">=";if(p){a=+a+1;c=0;u=0}else{c=+c+1;u=0}}else if(o==="<="){o="<";if(p){a=+a+1}else{c=+c+1}}r=o+a+"."+c+"."+u}else if(p){r=">="+a+".0.0 <"+(+a+1)+".0.0"}else if(d){r=">="+a+"."+c+".0 <"+a+"."+(+c+1)+".0"}i("xRange return",r);return r}))}function replaceStars(t,r){i("replaceStars",t,r);return t.trim().replace(u[Z],"")}function hyphenReplace(t,r,i,o,a,c,u,l,h,p,d,m,g){if(isX(i)){r=""}else if(isX(o)){r=">="+i+".0.0"}else if(isX(a)){r=">="+i+"."+o+".0"}else{r=">="+r}if(isX(h)){l=""}else if(isX(p)){l="<"+(+h+1)+".0.0"}else if(isX(d)){l="<"+h+"."+(+p+1)+".0"}else if(m){l="<="+h+"."+p+"."+d+"-"+m}else{l="<="+l}return(r+" "+l).trim()}Range.prototype.test=function(t){if(!t){return false}if(typeof t==="string"){t=new SemVer(t,this.options)}for(var r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false};function testSet(t,r,o){for(var a=0;a<t.length;a++){if(!t[a].test(r)){return false}}if(r.prerelease.length&&!o.includePrerelease){for(a=0;a<t.length;a++){i(t[a].semver);if(t[a].semver===re){continue}if(t[a].semver.prerelease.length>0){var c=t[a].semver;if(c.major===r.major&&c.minor===r.minor&&c.patch===r.patch){return true}}}return false}return true}r.satisfies=satisfies;function satisfies(t,r,i){try{r=new Range(r,i)}catch(t){return false}return r.test(t)}r.maxSatisfying=maxSatisfying;function maxSatisfying(t,r,i){var o=null;var a=null;try{var c=new Range(r,i)}catch(t){return null}t.forEach((function(t){if(c.test(t)){if(!o||a.compare(t)===-1){o=t;a=new SemVer(o,i)}}}));return o}r.minSatisfying=minSatisfying;function minSatisfying(t,r,i){var o=null;var a=null;try{var c=new Range(r,i)}catch(t){return null}t.forEach((function(t){if(c.test(t)){if(!o||a.compare(t)===1){o=t;a=new SemVer(o,i)}}}));return o}r.minVersion=minVersion;function minVersion(t,r){t=new Range(t,r);var i=new SemVer("0.0.0");if(t.test(i)){return i}i=new SemVer("0.0.0-0");if(t.test(i)){return i}i=null;for(var o=0;o<t.set.length;++o){var a=t.set[o];a.forEach((function(t){var r=new SemVer(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!i||gt(i,r)){i=r}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+t.operator)}}))}if(i&&t.test(i)){return i}return null}r.validRange=validRange;function validRange(t,r){try{return new Range(t,r).range||"*"}catch(t){return null}}r.ltr=ltr;function ltr(t,r,i){return outside(t,r,"<",i)}r.gtr=gtr;function gtr(t,r,i){return outside(t,r,">",i)}r.outside=outside;function outside(t,r,i,o){t=new SemVer(t,o);r=new Range(r,o);var a,c,u,l,h;switch(i){case">":a=gt;c=lte;u=lt;l=">";h=">=";break;case"<":a=lt;c=gte;u=gt;l="<";h="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(t,r,o)){return false}for(var p=0;p<r.set.length;++p){var d=r.set[p];var m=null;var g=null;d.forEach((function(t){if(t.semver===re){t=new Comparator(">=0.0.0")}m=m||t;g=g||t;if(a(t.semver,m.semver,o)){m=t}else if(u(t.semver,g.semver,o)){g=t}}));if(m.operator===l||m.operator===h){return false}if((!g.operator||g.operator===l)&&c(t,g.semver)){return false}else if(g.operator===h&&u(t,g.semver)){return false}}return true}r.prerelease=prerelease;function prerelease(t,r){var i=parse(t,r);return i&&i.prerelease.length?i.prerelease:null}r.intersects=intersects;function intersects(t,r,i){t=new Range(t,i);r=new Range(r,i);return t.intersects(r)}r.coerce=coerce;function coerce(t){if(t instanceof SemVer){return t}if(typeof t!=="string"){return null}var r=t.match(u[N]);if(r==null){return null}return parse(r[1]+"."+(r[2]||"0")+"."+(r[3]||"0"))}},4643:t=>{"use strict";
/*!
 * map-cache <https://github.com/jonschlinkert/map-cache>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var r=Object.prototype.hasOwnProperty;t.exports=MapCache;function MapCache(t){this.__data__=t||{}}MapCache.prototype.set=function mapSet(t,r){if(t!=="__proto__"){this.__data__[t]=r}return this};MapCache.prototype.get=function mapGet(t){return t==="__proto__"?undefined:this.__data__[t]};MapCache.prototype.has=function mapHas(t){return t!=="__proto__"&&r.call(this.__data__,t)};MapCache.prototype.del=function mapDelete(t){return this.has(t)&&delete this.__data__[t]}},2144:(t,r,i)=>{"use strict";var o=i(3837);var a=i(3178);t.exports=function mapVisit(t,r,i){if(isObject(i)){return a.apply(null,arguments)}if(!Array.isArray(i)){throw new TypeError("expected an array: "+o.inspect(i))}var c=[].slice.call(arguments,3);for(var u=0;u<i.length;u++){var l=i[u];if(isObject(l)){a.apply(null,[t,r,l].concat(c))}else{t[r].apply(t,[l].concat(c))}}};function isObject(t){return t&&(typeof t==="function"||!Array.isArray(t)&&typeof t==="object")}},2578:(t,r,i)=>{"use strict";const o=i(2781);const a=o.PassThrough;const c=Array.prototype.slice;t.exports=merge2;function merge2(){const t=[];const r=c.call(arguments);let i=false;let o=r[r.length-1];if(o&&!Array.isArray(o)&&o.pipe==null){r.pop()}else{o={}}const u=o.end!==false;const l=o.pipeError===true;if(o.objectMode==null){o.objectMode=true}if(o.highWaterMark==null){o.highWaterMark=64*1024}const h=a(o);function addStream(){for(let r=0,i=arguments.length;r<i;r++){t.push(pauseStreams(arguments[r],o))}mergeStream();return this}function mergeStream(){if(i){return}i=true;let r=t.shift();if(!r){process.nextTick(endStream);return}if(!Array.isArray(r)){r=[r]}let o=r.length+1;function next(){if(--o>0){return}i=false;mergeStream()}function pipe(t){function onend(){t.removeListener("merge2UnpipeEnd",onend);t.removeListener("end",onend);if(l){t.removeListener("error",onerror)}next()}function onerror(t){h.emit("error",t)}if(t._readableState.endEmitted){return next()}t.on("merge2UnpipeEnd",onend);t.on("end",onend);if(l){t.on("error",onerror)}t.pipe(h,{end:false});t.resume()}for(let t=0;t<r.length;t++){pipe(r[t])}next()}function endStream(){i=false;h.emit("queueDrain");if(u){h.end()}}h.setMaxListeners(0);h.add=addStream;h.on("unpipe",(function(t){t.emit("merge2UnpipeEnd")}));if(r.length){addStream.apply(null,r)}return h}function pauseStreams(t,r){if(!Array.isArray(t)){if(!t._readableState&&t.pipe){t=t.pipe(a(r))}if(!t._readableState||!t.pause||!t.pipe){throw new Error("Only readable stream can be merged.")}t.pause()}else{for(let i=0,o=t.length;i<o;i++){t[i]=pauseStreams(t[i],r)}}return t}},3973:(t,r,i)=>{t.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return i(1017)}catch(t){}}()||{sep:"/"};minimatch.sep=o.sep;var a=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var c=i(3717);var u={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var l="[^/]";var h=l+"*?";var p="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var d="(?:(?!(?:\\/|^)\\.).)*?";var m=charSet("().*{}+?[]^$\\!");function charSet(t){return t.split("").reduce((function(t,r){t[r]=true;return t}),{})}var g=/\/+/;minimatch.filter=filter;function filter(t,r){r=r||{};return function(i,o,a){return minimatch(i,t,r)}}function ext(t,r){r=r||{};var i={};Object.keys(t).forEach((function(r){i[r]=t[r]}));Object.keys(r).forEach((function(t){i[t]=r[t]}));return i}minimatch.defaults=function(t){if(!t||typeof t!=="object"||!Object.keys(t).length){return minimatch}var r=minimatch;var i=function minimatch(i,o,a){return r(i,o,ext(t,a))};i.Minimatch=function Minimatch(i,o){return new r.Minimatch(i,ext(t,o))};i.Minimatch.defaults=function defaults(i){return r.defaults(ext(t,i)).Minimatch};i.filter=function filter(i,o){return r.filter(i,ext(t,o))};i.defaults=function defaults(i){return r.defaults(ext(t,i))};i.makeRe=function makeRe(i,o){return r.makeRe(i,ext(t,o))};i.braceExpand=function braceExpand(i,o){return r.braceExpand(i,ext(t,o))};i.match=function(i,o,a){return r.match(i,o,ext(t,a))};return i};Minimatch.defaults=function(t){return minimatch.defaults(t).Minimatch};function minimatch(t,r,i){assertValidPattern(r);if(!i)i={};if(!i.nocomment&&r.charAt(0)==="#"){return false}return new Minimatch(r,i).match(t)}function Minimatch(t,r){if(!(this instanceof Minimatch)){return new Minimatch(t,r)}assertValidPattern(t);if(!r)r={};t=t.trim();if(!r.allowWindowsEscape&&o.sep!=="/"){t=t.split(o.sep).join("/")}this.options=r;this.set=[];this.pattern=t;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!r.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var t=this.pattern;var r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=true;return}if(!t){this.empty=true;return}this.parseNegate();var i=this.globSet=this.braceExpand();if(r.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,i);i=this.globParts=i.map((function(t){return t.split(g)}));this.debug(this.pattern,i);i=i.map((function(t,r,i){return t.map(this.parse,this)}),this);this.debug(this.pattern,i);i=i.filter((function(t){return t.indexOf(false)===-1}));this.debug(this.pattern,i);this.set=i}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var t=this.pattern;var r=false;var i=this.options;var o=0;if(i.nonegate)return;for(var a=0,c=t.length;a<c&&t.charAt(a)==="!";a++){r=!r;o++}if(o)this.pattern=t.substr(o);this.negate=r}minimatch.braceExpand=function(t,r){return braceExpand(t,r)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(t,r){if(!r){if(this instanceof Minimatch){r=this.options}else{r={}}}t=typeof t==="undefined"?this.pattern:t;assertValidPattern(t);if(r.nobrace||!/\{(?:(?!\{).)*\}/.test(t)){return[t]}return c(t)}var v=1024*64;var assertValidPattern=function(t){if(typeof t!=="string"){throw new TypeError("invalid pattern")}if(t.length>v){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var y={};function parse(t,r){assertValidPattern(t);var i=this.options;if(t==="**"){if(!i.noglobstar)return a;else t="*"}if(t==="")return"";var o="";var c=!!i.nocase;var p=false;var d=[];var g=[];var v;var b=false;var w=-1;var x=-1;var S=t.charAt(0)==="."?"":i.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var E=this;function clearStateChar(){if(v){switch(v){case"*":o+=h;c=true;break;case"?":o+=l;c=true;break;default:o+="\\"+v;break}E.debug("clearStateChar %j %j",v,o);v=false}}for(var O=0,A=t.length,_;O<A&&(_=t.charAt(O));O++){this.debug("%s\t%s %s %j",t,O,o,_);if(p&&m[_]){o+="\\"+_;p=false;continue}switch(_){case"/":{return false}case"\\":clearStateChar();p=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",t,O,o,_);if(b){this.debug("  in class");if(_==="!"&&O===x+1)_="^";o+=_;continue}E.debug("call clearStateChar %j",v);clearStateChar();v=_;if(i.noext)clearStateChar();continue;case"(":if(b){o+="(";continue}if(!v){o+="\\(";continue}d.push({type:v,start:O-1,reStart:o.length,open:u[v].open,close:u[v].close});o+=v==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",v,o);v=false;continue;case")":if(b||!d.length){o+="\\)";continue}clearStateChar();c=true;var k=d.pop();o+=k.close;if(k.type==="!"){g.push(k)}k.reEnd=o.length;continue;case"|":if(b||!d.length||p){o+="\\|";p=false;continue}clearStateChar();o+="|";continue;case"[":clearStateChar();if(b){o+="\\"+_;continue}b=true;x=O;w=o.length;o+=_;continue;case"]":if(O===x+1||!b){o+="\\"+_;p=false;continue}var C=t.substring(x+1,O);try{RegExp("["+C+"]")}catch(t){var j=this.parse(C,y);o=o.substr(0,w)+"\\["+j[0]+"\\]";c=c||j[1];b=false;continue}c=true;b=false;o+=_;continue;default:clearStateChar();if(p){p=false}else if(m[_]&&!(_==="^"&&b)){o+="\\"}o+=_}}if(b){C=t.substr(x+1);j=this.parse(C,y);o=o.substr(0,w)+"\\["+j[0];c=c||j[1]}for(k=d.pop();k;k=d.pop()){var P=o.slice(k.reStart+k.open.length);this.debug("setting tail",o,k);P=P.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(t,r,i){if(!i){i="\\"}return r+r+i+"|"}));this.debug("tail=%j\n   %s",P,P,k,o);var R=k.type==="*"?h:k.type==="?"?l:"\\"+k.type;c=true;o=o.slice(0,k.reStart)+R+"\\("+P}clearStateChar();if(p){o+="\\\\"}var M=false;switch(o.charAt(0)){case"[":case".":case"(":M=true}for(var T=g.length-1;T>-1;T--){var I=g[T];var N=o.slice(0,I.reStart);var $=o.slice(I.reStart,I.reEnd-8);var D=o.slice(I.reEnd-8,I.reEnd);var L=o.slice(I.reEnd);D+=L;var B=N.split("(").length-1;var G=L;for(O=0;O<B;O++){G=G.replace(/\)[+*?]?/,"")}L=G;var U="";if(L===""&&r!==y){U="$"}var q=N+$+L+U+D;o=q}if(o!==""&&c){o="(?=.)"+o}if(M){o=S+o}if(r===y){return[o,c]}if(!c){return globUnescape(t)}var V=i.nocase?"i":"";try{var W=new RegExp("^"+o+"$",V)}catch(t){return new RegExp("$.")}W._glob=t;W._src=o;return W}minimatch.makeRe=function(t,r){return new Minimatch(t,r||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var t=this.set;if(!t.length){this.regexp=false;return this.regexp}var r=this.options;var i=r.noglobstar?h:r.dot?p:d;var o=r.nocase?"i":"";var c=t.map((function(t){return t.map((function(t){return t===a?i:typeof t==="string"?regExpEscape(t):t._src})).join("\\/")})).join("|");c="^(?:"+c+")$";if(this.negate)c="^(?!"+c+").*$";try{this.regexp=new RegExp(c,o)}catch(t){this.regexp=false}return this.regexp}minimatch.match=function(t,r,i){i=i||{};var o=new Minimatch(r,i);t=t.filter((function(t){return o.match(t)}));if(o.options.nonull&&!t.length){t.push(r)}return t};Minimatch.prototype.match=function match(t,r){if(typeof r==="undefined")r=this.partial;this.debug("match",t,this.pattern);if(this.comment)return false;if(this.empty)return t==="";if(t==="/"&&r)return true;var i=this.options;if(o.sep!=="/"){t=t.split(o.sep).join("/")}t=t.split(g);this.debug(this.pattern,"split",t);var a=this.set;this.debug(this.pattern,"set",a);var c;var u;for(u=t.length-1;u>=0;u--){c=t[u];if(c)break}for(u=0;u<a.length;u++){var l=a[u];var h=t;if(i.matchBase&&l.length===1){h=[c]}var p=this.matchOne(h,l,r);if(p){if(i.flipNegate)return true;return!this.negate}}if(i.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(t,r,i){var o=this.options;this.debug("matchOne",{this:this,file:t,pattern:r});this.debug("matchOne",t.length,r.length);for(var c=0,u=0,l=t.length,h=r.length;c<l&&u<h;c++,u++){this.debug("matchOne loop");var p=r[u];var d=t[c];this.debug(r,p,d);if(p===false)return false;if(p===a){this.debug("GLOBSTAR",[r,p,d]);var m=c;var g=u+1;if(g===h){this.debug("** at the end");for(;c<l;c++){if(t[c]==="."||t[c]===".."||!o.dot&&t[c].charAt(0)===".")return false}return true}while(m<l){var v=t[m];this.debug("\nglobstar while",t,m,r,g,v);if(this.matchOne(t.slice(m),r.slice(g),i)){this.debug("globstar found match!",m,l,v);return true}else{if(v==="."||v===".."||!o.dot&&v.charAt(0)==="."){this.debug("dot detected!",t,m,r,g);break}this.debug("globstar swallow a segment, and continue");m++}}if(i){this.debug("\n>>> no match, partial?",t,m,r,g);if(m===l)return true}return false}var y;if(typeof p==="string"){y=d===p;this.debug("string match",p,d,y)}else{y=d.match(p);this.debug("pattern match",p,d,y)}if(!y)return false}if(c===l&&u===h){return true}else if(c===l){return i}else if(u===h){return c===l-1&&t[c]===""}throw new Error("wtf?")};function globUnescape(t){return t.replace(/\\(.)/g,"$1")}function regExpEscape(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},5871:t=>{t.exports=function(t,r){if(!r)r={};var i={bools:{},strings:{},unknownFn:null};if(typeof r["unknown"]==="function"){i.unknownFn=r["unknown"]}if(typeof r["boolean"]==="boolean"&&r["boolean"]){i.allBools=true}else{[].concat(r["boolean"]).filter(Boolean).forEach((function(t){i.bools[t]=true}))}var o={};Object.keys(r.alias||{}).forEach((function(t){o[t]=[].concat(r.alias[t]);o[t].forEach((function(r){o[r]=[t].concat(o[t].filter((function(t){return r!==t})))}))}));[].concat(r.string).filter(Boolean).forEach((function(t){i.strings[t]=true;if(o[t]){i.strings[o[t]]=true}}));var a=r["default"]||{};var c={_:[]};Object.keys(i.bools).forEach((function(t){setArg(t,a[t]===undefined?false:a[t])}));var u=[];if(t.indexOf("--")!==-1){u=t.slice(t.indexOf("--")+1);t=t.slice(0,t.indexOf("--"))}function argDefined(t,r){return i.allBools&&/^--[^=]+$/.test(r)||i.strings[t]||i.bools[t]||o[t]}function setArg(t,r,a){if(a&&i.unknownFn&&!argDefined(t,a)){if(i.unknownFn(a)===false)return}var u=!i.strings[t]&&isNumber(r)?Number(r):r;setKey(c,t.split("."),u);(o[t]||[]).forEach((function(t){setKey(c,t.split("."),u)}))}function setKey(t,r,o){var a=t;for(var c=0;c<r.length-1;c++){var u=r[c];if(isConstructorOrProto(a,u))return;if(a[u]===undefined)a[u]={};if(a[u]===Object.prototype||a[u]===Number.prototype||a[u]===String.prototype)a[u]={};if(a[u]===Array.prototype)a[u]=[];a=a[u]}var u=r[r.length-1];if(isConstructorOrProto(a,u))return;if(a===Object.prototype||a===Number.prototype||a===String.prototype)a={};if(a===Array.prototype)a=[];if(a[u]===undefined||i.bools[u]||typeof a[u]==="boolean"){a[u]=o}else if(Array.isArray(a[u])){a[u].push(o)}else{a[u]=[a[u],o]}}function aliasIsBoolean(t){return o[t].some((function(t){return i.bools[t]}))}for(var l=0;l<t.length;l++){var h=t[l];if(/^--.+=/.test(h)){var p=h.match(/^--([^=]+)=([\s\S]*)$/);var d=p[1];var m=p[2];if(i.bools[d]){m=m!=="false"}setArg(d,m,h)}else if(/^--no-.+/.test(h)){var d=h.match(/^--no-(.+)/)[1];setArg(d,false,h)}else if(/^--.+/.test(h)){var d=h.match(/^--(.+)/)[1];var g=t[l+1];if(g!==undefined&&!/^-/.test(g)&&!i.bools[d]&&!i.allBools&&(o[d]?!aliasIsBoolean(d):true)){setArg(d,g,h);l++}else if(/^(true|false)$/.test(g)){setArg(d,g==="true",h);l++}else{setArg(d,i.strings[d]?"":true,h)}}else if(/^-[^-]+/.test(h)){var v=h.slice(1,-1).split("");var y=false;for(var b=0;b<v.length;b++){var g=h.slice(b+2);if(g==="-"){setArg(v[b],g,h);continue}if(/[A-Za-z]/.test(v[b])&&/=/.test(g)){setArg(v[b],g.split("=")[1],h);y=true;break}if(/[A-Za-z]/.test(v[b])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(g)){setArg(v[b],g,h);y=true;break}if(v[b+1]&&v[b+1].match(/\W/)){setArg(v[b],h.slice(b+2),h);y=true;break}else{setArg(v[b],i.strings[v[b]]?"":true,h)}}var d=h.slice(-1)[0];if(!y&&d!=="-"){if(t[l+1]&&!/^(-|--)[^-]/.test(t[l+1])&&!i.bools[d]&&(o[d]?!aliasIsBoolean(d):true)){setArg(d,t[l+1],h);l++}else if(t[l+1]&&/^(true|false)$/.test(t[l+1])){setArg(d,t[l+1]==="true",h);l++}else{setArg(d,i.strings[d]?"":true,h)}}}else{if(!i.unknownFn||i.unknownFn(h)!==false){c._.push(i.strings["_"]||!isNumber(h)?h:Number(h))}if(r.stopEarly){c._.push.apply(c._,t.slice(l+1));break}}}Object.keys(a).forEach((function(t){if(!hasKey(c,t.split("."))){setKey(c,t.split("."),a[t]);(o[t]||[]).forEach((function(r){setKey(c,r.split("."),a[t])}))}}));if(r["--"]){c["--"]=new Array;u.forEach((function(t){c["--"].push(t)}))}else{u.forEach((function(t){c._.push(t)}))}return c};function hasKey(t,r){var i=t;r.slice(0,-1).forEach((function(t){i=i[t]||{}}));var o=r[r.length-1];return o in i}function isNumber(t){if(typeof t==="number")return true;if(/^0x[0-9a-f]+$/i.test(t))return true;return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t)}function isConstructorOrProto(t,r){return r==="constructor"&&typeof t[r]==="function"||r==="__proto__"}},4540:(t,r,i)=>{"use strict";var o=i(9395);var a=i(7198);function mixinDeep(t,r){var i=arguments.length,o=0;while(++o<i){var c=arguments[o];if(isObject(c)){a(c,copy,t)}}return t}function copy(t,r){if(!isValidKey(r)){return}var i=this[r];if(isObject(t)&&isObject(i)){mixinDeep(i,t)}else{this[r]=t}}function isObject(t){return o(t)&&!Array.isArray(t)}function isValidKey(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}t.exports=mixinDeep},9395:(t,r,i)=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(7810);t.exports=function isExtendable(t){return o(t)||typeof t==="function"||Array.isArray(t)}},2316:(t,r,i)=>{"use strict";var o=i(3837);var a=i(6855);var c=i(6254);var u=i(4482);var l=i(8826);var h=i(8672);var p=i(5156);var d=1024*64;function nanomatch(t,r,i){r=p.arrayify(r);t=p.arrayify(t);var o=r.length;if(t.length===0||o===0){return[]}if(o===1){return nanomatch.match(t,r[0],i)}var a=false;var c=[];var u=[];var l=-1;while(++l<o){var h=r[l];if(typeof h==="string"&&h.charCodeAt(0)===33){c.push.apply(c,nanomatch.match(t,h.slice(1),i));a=true}else{u.push.apply(u,nanomatch.match(t,h,i))}}if(a&&u.length===0){if(i&&i.unixify===false){u=t.slice()}else{var d=p.unixify(i);for(var m=0;m<t.length;m++){u.push(d(t[m]))}}}var g=p.diff(u,c);if(!i||i.nodupes!==false){return p.unique(g)}return g}nanomatch.match=function(t,r,i){if(Array.isArray(r)){throw new TypeError("expected pattern to be a string")}var o=p.unixify(i);var a=memoize("match",r,i,nanomatch.matcher);var c=[];t=p.arrayify(t);var u=t.length;var l=-1;while(++l<u){var h=t[l];if(h===r||a(h)){c.push(p.value(h,o,i))}}if(typeof i==="undefined"){return p.unique(c)}if(c.length===0){if(i.failglob===true){throw new Error('no matches found for "'+r+'"')}if(i.nonull===true||i.nullglob===true){return[i.unescape?p.unescape(r):r]}}if(i.ignore){c=nanomatch.not(c,i.ignore,i)}return i.nodupes!==false?p.unique(c):c};nanomatch.isMatch=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(p.isEmptyString(t)||p.isEmptyString(r)){return false}var a=p.equalsPattern(i);if(a(t)){return true}var c=memoize("isMatch",r,i,nanomatch.matcher);return c(t)};nanomatch.some=function(t,r,i){if(typeof t==="string"){t=[t]}for(var o=0;o<t.length;o++){if(nanomatch(t[o],r,i).length===1){return true}}return false};nanomatch.every=function(t,r,i){if(typeof t==="string"){t=[t]}for(var o=0;o<t.length;o++){if(nanomatch(t[o],r,i).length!==1){return false}}return true};nanomatch.any=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(p.isEmptyString(t)||p.isEmptyString(r)){return false}if(typeof r==="string"){r=[r]}for(var a=0;a<r.length;a++){if(nanomatch.isMatch(t,r[a],i)){return true}}return false};nanomatch.all=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(typeof r==="string"){r=[r]}for(var a=0;a<r.length;a++){if(!nanomatch.isMatch(t,r[a],i)){return false}}return true};nanomatch.not=function(t,r,i){var o=c({},i);var a=o.ignore;delete o.ignore;t=p.arrayify(t);var u=p.diff(t,nanomatch(t,r,o));if(a){u=p.diff(u,nanomatch(t,a))}return o.nodupes!==false?p.unique(u):u};nanomatch.contains=function(t,r,i){if(typeof t!=="string"){throw new TypeError('expected a string: "'+o.inspect(t)+'"')}if(typeof r==="string"){if(p.isEmptyString(t)||p.isEmptyString(r)){return false}var a=p.equalsPattern(r,i);if(a(t)){return true}var u=p.containsPattern(r,i);if(u(t)){return true}}var l=c({},i,{contains:true});return nanomatch.any(t,r,l)};nanomatch.matchBase=function(t,r){if(t&&t.indexOf("/")!==-1||!r)return false;return r.basename===true||r.matchBase===true};nanomatch.matchKeys=function(t,r,i){if(!p.isObject(t)){throw new TypeError("expected the first argument to be an object")}var o=nanomatch(Object.keys(t),r,i);return p.pick(t,o)};nanomatch.matcher=function matcher(t,r){if(p.isEmptyString(t)){return function(){return false}}if(Array.isArray(t)){return compose(t,r,matcher)}if(t instanceof RegExp){return test(t)}if(!p.isString(t)){throw new TypeError("expected pattern to be an array, string or regex")}if(!p.hasSpecialChars(t)){if(r&&r.nocase===true){t=t.toLowerCase()}return p.matchPath(t,r)}var i=nanomatch.makeRe(t,r);if(nanomatch.matchBase(t,r)){return p.matchBasename(i,r)}function test(t){var i=p.equalsPattern(r);var o=p.unixify(r);return function(r){if(i(r)){return true}if(t.test(o(r))){return true}return false}}var o=test(i);p.define(o,"result",i.result);return o};nanomatch.capture=function(t,r,i){var o=nanomatch.makeRe(t,c({capture:true},i));var a=p.unixify(i);function match(){return function(t){var r=o.exec(a(t));if(!r){return null}return r.slice(1)}}var u=memoize("capture",t,i,match);return u(r)};nanomatch.makeRe=function(t,r){if(t instanceof RegExp){return t}if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}if(t.length>d){throw new Error("expected pattern to be less than "+d+" characters")}function makeRe(){var i=p.extend({wrap:false},r);var o=nanomatch.create(t,i);var c=a(o.output,i);p.define(c,"result",o);return c}return memoize("makeRe",t,r,makeRe)};nanomatch.create=function(t,r){if(typeof t!=="string"){throw new TypeError("expected a string")}function create(){return nanomatch.compile(nanomatch.parse(t,r),r)}return memoize("create",t,r,create)};nanomatch.parse=function(t,r){if(typeof t!=="string"){throw new TypeError("expected a string")}function parse(){var i=p.instantiate(null,r);l(i,r);var o=i.parse(t,r);p.define(o,"snapdragon",i);o.input=t;return o}return memoize("parse",t,r,parse)};nanomatch.compile=function(t,r){if(typeof t==="string"){t=nanomatch.parse(t,r)}function compile(){var i=p.instantiate(t,r);u(i,r);return i.compile(t,r)}return memoize("compile",t.input,r,compile)};nanomatch.clearCache=function(){nanomatch.cache.__data__={}};function compose(t,r,i){var o;return memoize("compose",String(t),r,(function(){return function(a){if(!o){o=[];for(var c=0;c<t.length;c++){o.push(i(t[c],r))}}var u=o.length;while(u--){if(o[u](a)===true){return true}}return false}}))}function memoize(t,r,i,o){var a=p.createKey(t+"="+r,i);if(i&&i.cache===false){return o(r,i)}if(h.has(t,a)){return h.get(t,a)}var c=o(r,i);h.set(t,a,c);return c}nanomatch.compilers=u;nanomatch.parsers=l;nanomatch.cache=h;t.exports=nanomatch},8672:(t,r,i)=>{t.exports=new(i(4838))},4482:t=>{"use strict";t.exports=function(t,r){function slash(){if(r&&typeof r.slash==="string"){return r.slash}if(r&&typeof r.slash==="function"){return r.slash.call(t)}return"\\\\/"}function star(){if(r&&typeof r.star==="string"){return r.star}if(r&&typeof r.star==="function"){return r.star.call(t)}return"[^"+slash()+"]*?"}var i=t.ast=t.parser.ast;i.state=t.parser.state;t.compiler.state=i.state;t.compiler.set("not",(function(t){var r=this.prev();if(this.options.nonegate===true||r.type!=="bos"){return this.emit("\\"+t.val,t)}return this.emit(t.val,t)})).set("escape",(function(t){if(this.options.unescape&&/^[-\w_.]/.test(t.val)){return this.emit(t.val,t)}return this.emit("\\"+t.val,t)})).set("quoted",(function(t){return this.emit(t.val,t)})).set("dollar",(function(t){if(t.parent.type==="bracket"){return this.emit(t.val,t)}return this.emit("\\"+t.val,t)})).set("dot",(function(t){if(t.dotfiles===true)this.dotfiles=true;return this.emit("\\"+t.val,t)})).set("backslash",(function(t){return this.emit(t.val,t)})).set("slash",(function(t,r,i){var o="["+slash()+"]";var a=t.parent;var c=this.prev();while(a.type==="paren"&&!a.hasSlash){a.hasSlash=true;a=a.parent}if(c.addQmark){o+="?"}if(t.rest.slice(0,2)==="\\b"){return this.emit(o,t)}if(t.parsed==="**"||t.parsed==="./**"){this.output="(?:"+this.output;return this.emit(o+")?",t)}if(t.parsed==="!**"&&this.options.nonegate!==true){return this.emit(o+"?\\b",t)}return this.emit(o,t)})).set("bracket",(function(t){var r=t.close;var i=!t.escaped?"[":"\\[";var o=t.negated;var a=t.inner;var c=t.val;if(t.escaped===true){a=a.replace(/\\?(\W)/g,"\\$1");o=""}if(a==="]-"){a="\\]\\-"}if(o&&a.indexOf(".")===-1){a+="."}if(o&&a.indexOf("/")===-1){a+="/"}c=i+o+a+r;return this.emit(c,t)})).set("square",(function(t){var r=(/^\W/.test(t.val)?"\\":"")+t.val;return this.emit(r,t)})).set("qmark",(function(t){var r=this.prev();var i="[^.\\\\/]";if(this.options.dot||r.type!=="bos"&&r.type!=="slash"){i="[^\\\\/]"}if(t.parsed.slice(-1)==="("){var o=t.rest.charAt(0);if(o==="!"||o==="="||o===":"){return this.emit(t.val,t)}}if(t.val.length>1){i+="{"+t.val.length+"}"}return this.emit(i,t)})).set("plus",(function(t){var r=t.parsed.slice(-1);if(r==="]"||r===")"){return this.emit(t.val,t)}if(!this.output||/[?*+]/.test(i)&&t.parent.type!=="bracket"){return this.emit("\\+",t)}var i=this.output.slice(-1);if(/\w/.test(i)&&!t.inside){return this.emit("+\\+?",t)}return this.emit("+",t)})).set("globstar",(function(t,r,i){if(!this.output){this.state.leadingGlobstar=true}var o=this.prev();var a=this.prev(2);var c=this.next();var u=this.next(2);var l=o.type;var h=t.val;if(o.type==="slash"&&c.type==="slash"){if(a.type==="text"){this.output+="?";if(u.type!=="text"){this.output+="\\b"}}}var p=t.parsed;if(p.charAt(0)==="!"){p=p.slice(1)}var d=t.isInside.paren||t.isInside.brace;if(p&&l!=="slash"&&l!=="bos"&&!d){h=star()}else{h=this.options.dot!==true?"(?:(?!(?:["+slash()+"]|^)\\.).)*?":"(?:(?!(?:["+slash()+"]|^)(?:\\.{1,2})($|["+slash()+"]))(?!\\.{2}).)*?"}if((l==="slash"||l==="bos")&&this.options.dot!==true){h="(?!\\.)"+h}if(o.type==="slash"&&c.type==="slash"&&a.type!=="text"){if(u.type==="text"||u.type==="star"){t.addQmark=true}}if(this.options.capture){h="("+h+")"}return this.emit(h,t)})).set("star",(function(t,r,i){var o=r[i-2]||{};var a=this.prev();var c=this.next();var u=a.type;function isStart(t){return t.type==="bos"||t.type==="slash"}if(this.output===""&&this.options.contains!==true){this.output="(?!["+slash()+"])"}if(u==="bracket"&&this.options.bash===false){var l=c&&c.type==="bracket"?star():"*?";if(!a.nodes||a.nodes[1].type!=="posix"){return this.emit(l,t)}}var h=!this.dotfiles&&u!=="text"&&u!=="escape"?this.options.dot?"(?!(?:^|["+slash()+"])\\.{1,2}(?:$|["+slash()+"]))":"(?!\\.)":"";if(isStart(a)||isStart(o)&&u==="not"){if(h!=="(?!\\.)"){h+="(?!(\\.{2}|\\.["+slash()+"]))(?=.)"}else{h+="(?=.)"}}else if(h==="(?!\\.)"){h=""}if(a.type==="not"&&o.type==="bos"&&this.options.dot===true){this.output="(?!\\.)"+this.output}var p=h+star();if(this.options.capture){p="("+p+")"}return this.emit(p,t)})).set("text",(function(t){return this.emit(t.val,t)})).set("eos",(function(t){var r=this.prev();var i=t.val;this.output="(?:\\.["+slash()+"](?=.))?"+this.output;if(this.state.metachar&&r.type!=="qmark"&&r.type!=="slash"){i+=this.options.contains?"["+slash()+"]?":"(?:["+slash()+"]|$)"}return this.emit(i,t)}));if(r&&typeof r.compilers==="function"){r.compilers(t.compiler)}}},8826:(t,r,i)=>{"use strict";var o=i(2527);var a=i(6855);var c;var u="[\\[!*+?$^\"'.\\\\/]+";var l=createTextRegex(u);t.exports=function(t,r){var i=t.parser;var o=i.options;i.state={slashes:0,paths:[]};i.ast.state=i.state;i.capture("prefix",(function(){if(this.parsed)return;var t=this.match(/^\.[\\/]/);if(!t)return;this.state.strictOpen=!!this.options.strictOpen;this.state.addPrefix=true})).capture("escape",(function(){if(this.isInside("bracket"))return;var t=this.position();var r=this.match(/^(?:\\(.)|([$^]))/);if(!r)return;return t({type:"escape",val:r[2]||r[1]})})).capture("quoted",(function(){var t=this.position();var r=this.match(/^["']/);if(!r)return;var i=r[0];if(this.input.indexOf(i)===-1){return t({type:"escape",val:i})}var o=advanceTo(this.input,i);this.consume(o.len);return t({type:"quoted",val:o.esc})})).capture("not",(function(){var t=this.parsed;var r=this.position();var i=this.match(this.notRegex||/^!+/);if(!i)return;var o=i[0];var a=o.length%2===1;if(t===""&&!a){o=""}if(t===""&&a&&this.options.nonegate!==true){this.bos.val="(?!^(?:";this.append=")$).*";o=""}return r({type:"not",val:o})})).capture("dot",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^\.+/);if(!i)return;var o=i[0];this.state.dot=o==="."&&(t===""||t.slice(-1)==="/");return r({type:"dot",dotfiles:this.state.dot,val:o})})).capture("plus",/^\+(?!\()/).capture("qmark",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^\?+(?!\()/);if(!i)return;this.state.metachar=true;this.state.qmark=true;return r({type:"qmark",parsed:t,val:i[0]})})).capture("globstar",(function(){var t=this.parsed;var r=this.position();var i=this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);if(!i)return;var a=o.noglobstar!==true?"globstar":"star";var c=r({type:a,parsed:t});this.state.metachar=true;while(this.input.slice(0,4)==="/**/"){this.input=this.input.slice(3)}c.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")};if(a==="globstar"){this.state.globstar=true;c.val="**"}else{this.state.star=true;c.val="*"}return c})).capture("star",(function(){var t=this.position();var r=/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;var i=this.match(r);if(!i)return;this.state.metachar=true;this.state.star=true;return t({type:"star",val:i[0]})})).capture("slash",(function(){var t=this.position();var r=this.match(/^\//);if(!r)return;this.state.slashes++;return t({type:"slash",val:r[0]})})).capture("backslash",(function(){var t=this.position();var r=this.match(/^\\(?![*+?(){}[\]'"])/);if(!r)return;var i=r[0];if(this.isInside("bracket")){i="\\"}else if(i.length>1){i="\\\\"}return t({type:"backslash",val:i})})).capture("square",(function(){if(this.isInside("bracket"))return;var t=this.position();var r=this.match(/^\[([^!^\\])\]/);if(!r)return;return t({type:"square",val:r[1]})})).capture("bracket",(function(){var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var i=r[0];var o=r[1]?"^":"";var a=(r[2]||"").replace(/\\\\+/,"\\\\");var c=r[3]||"";if(r[2]&&a.length<r[2].length){i=i.replace(/\\\\+/,"\\\\")}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var h=-1;var p;while(p=l[++h]){this.consume(1);if(p==="]"){c=p;break}a+=p}}return t({type:"bracket",val:i,escaped:c!=="]",negated:o,inner:a,close:c})})).capture("text",(function(){if(this.isInside("bracket"))return;var t=this.position();var r=this.match(l);if(!r||!r[0])return;return t({type:"text",val:r[0]})}));if(r&&typeof r.parsers==="function"){r.parsers(t.parser)}};function advanceTo(t,r){var i=t.charAt(0);var o={len:1,val:"",esc:""};var a=0;function advance(){if(i!=="\\"){o.esc+="\\"+i;o.val+=i}i=t.charAt(++a);o.len++;if(i==="\\"){advance();advance()}}while(i&&i!==r){advance()}return o}function createTextRegex(t){if(c)return c;var r={contains:true,strictClose:false};var i=o.create(t,r);var u=a("^(?:[*]\\((?=.)|"+i+")",r);return c=u}t.exports.not=u},5156:(t,r,i)=>{"use strict";var o=t.exports;var a=i(1017);var c=i(9125)();var u=i(2403);o.define=i(9783);o.diff=i(8915);o.extend=i(6254);o.pick=i(9962);o.typeOf=i(5690);o.unique=i(340);o.isEmptyString=function(t){return String(t)===""||String(t)==="./"};o.isWindows=function(){return a.sep==="\\"||c===true};o.last=function(t,r){return t[t.length-(r||1)]};o.instantiate=function(t,r){var i;if(o.typeOf(t)==="object"&&t.snapdragon){i=t.snapdragon}else if(o.typeOf(r)==="object"&&r.snapdragon){i=r.snapdragon}else{i=new u(r)}o.define(i,"parse",(function(t,r){var i=u.prototype.parse.call(this,t,r);i.input=t;var a=this.parser.stack.pop();if(a&&this.options.strictErrors!==true){var c=a.nodes[0];var l=a.nodes[1];if(a.type==="bracket"){if(l.val.charAt(0)==="["){l.val="\\"+l.val}}else{c.val="\\"+c.val;var h=c.parent.nodes[1];if(h.type==="star"){h.loose=true}}}o.define(i,"parser",this.parser);return i}));return i};o.createKey=function(t,r){if(typeof r==="undefined"){return t}var i=t;for(var o in r){if(r.hasOwnProperty(o)){i+=";"+o+"="+String(r[o])}}return i};o.arrayify=function(t){if(typeof t==="string")return[t];return t?Array.isArray(t)?t:[t]:[]};o.isString=function(t){return typeof t==="string"};o.isRegex=function(t){return o.typeOf(t)==="regexp"};o.isObject=function(t){return o.typeOf(t)==="object"};o.escapeRegex=function(t){return t.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")};o.combineDupes=function(t,r){r=o.arrayify(r).join("|").split("|");r=r.map((function(t){return t.replace(/\\?([+*\\/])/g,"\\$1")}));var i=r.join("|");var a=new RegExp("("+i+")(?=\\1)","g");return t.replace(a,"")};o.hasSpecialChars=function(t){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(t)};o.toPosixPath=function(t){return t.replace(/\\+/g,"/")};o.unescape=function(t){return o.toPosixPath(t.replace(/\\(?=[*+?!.])/g,""))};o.stripDrive=function(t){return o.isWindows()?t.replace(/^[a-z]:[\\/]+?/i,"/"):t};o.stripPrefix=function(t){if(t.charAt(0)==="."&&(t.charAt(1)==="/"||t.charAt(1)==="\\")){return t.slice(2)}return t};o.isSimpleChar=function(t){return t.trim()===""||t==="."};o.isSlash=function(t){return t==="/"||t==="\\/"||t==="\\"||t==="\\\\"};o.matchPath=function(t,r){return r&&r.contains?o.containsPattern(t,r):o.equalsPattern(t,r)};o._equals=function(t,r,i){return i===t||i===r};o._contains=function(t,r,i){return t.indexOf(i)!==-1||r.indexOf(i)!==-1};o.equalsPattern=function(t,r){var i=o.unixify(r);r=r||{};return function fn(a){var c=o._equals(a,i(a),t);if(c===true||r.nocase!==true){return c}var u=a.toLowerCase();return o._equals(u,i(u),t)}};o.containsPattern=function(t,r){var i=o.unixify(r);r=r||{};return function(a){var c=o._contains(a,i(a),t);if(c===true||r.nocase!==true){return c}var u=a.toLowerCase();return o._contains(u,i(u),t)}};o.matchBasename=function(t){return function(r){return t.test(r)||t.test(a.basename(r))}};o.identity=function(t){return t};o.value=function(t,r,i){if(i&&i.unixify===false){return t}if(i&&typeof i.unixify==="function"){return i.unixify(t)}return r(t)};o.unixify=function(t){var r=t||{};return function(t){if(r.stripPrefix!==false){t=o.stripPrefix(t)}if(r.unescape===true){t=o.unescape(t)}if(r.unixify===true||o.isWindows()){t=o.toPosixPath(t)}return t}}},9783:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015-2018, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5509);var a=i(567);var c=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;t.exports=function defineProperty(t,r,i){if(!o(t)&&typeof t!=="function"&&!Array.isArray(t)){throw new TypeError("expected an object, function, or array")}if(typeof r!=="string"){throw new TypeError('expected "key" to be a string')}if(a(i)){c(t,r,i);return t}c(t,r,{configurable:true,enumerable:false,writable:true,value:i});return t}},6254:(t,r,i)=>{"use strict";var o=i(513);var a=i(8782);t.exports=Object.assign||function(t){if(t===null||typeof t==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(t)){t={}}for(var r=1;r<arguments.length;r++){var i=arguments[r];if(isString(i)){i=toObject(i)}if(isObject(i)){assign(t,i);a(t,i)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function isString(t){return t&&typeof t==="string"}function toObject(t){var r={};for(var i in t){r[i]=t[i]}return r}function isObject(t){return t&&typeof t==="object"||o(t)}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function isEnum(t,r){return Object.prototype.propertyIsEnumerable.call(t,r)}},513:(t,r,i)=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(7810);t.exports=function isExtendable(t){return o(t)||typeof t==="function"||Array.isArray(t)}},5690:t=>{var r=Object.prototype.toString;t.exports=function kindOf(t){if(t===void 0)return"undefined";if(t===null)return"null";var i=typeof t;if(i==="boolean")return"boolean";if(i==="string")return"string";if(i==="number")return"number";if(i==="symbol")return"symbol";if(i==="function"){return isGeneratorFn(t)?"generatorfunction":"function"}if(isArray(t))return"array";if(isBuffer(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"}i=r.call(t);switch(i){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 i.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(t){return typeof t.constructor==="function"?t.constructor.name:null}function isArray(t){if(Array.isArray)return Array.isArray(t);return t instanceof Array}function isError(t){return t instanceof Error||typeof t.message==="string"&&t.constructor&&typeof t.constructor.stackTraceLimit==="number"}function isDate(t){if(t instanceof Date)return true;return typeof t.toDateString==="function"&&typeof t.getDate==="function"&&typeof t.setDate==="function"}function isRegexp(t){if(t instanceof RegExp)return true;return typeof t.flags==="string"&&typeof t.ignoreCase==="boolean"&&typeof t.multiline==="boolean"&&typeof t.global==="boolean"}function isGeneratorFn(t,r){return ctorName(t)==="GeneratorFunction"}function isGeneratorObj(t){return typeof t.throw==="function"&&typeof t.return==="function"&&typeof t.next==="function"}function isArguments(t){try{if(typeof t.length==="number"&&typeof t.callee==="function"){return true}}catch(t){if(t.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(t){if(t.constructor&&typeof t.constructor.isBuffer==="function"){return t.constructor.isBuffer(t)}return false}},7978:(t,r,i)=>{var o=i(3837).inherits;var NestedError=function(t,r){this.nested=r;if(t instanceof Error){r=t}else if(typeof t!=="undefined"){Object.defineProperty(this,"message",{value:t,writable:true,enumerable:false,configurable:true})}Error.captureStackTrace(this,this.constructor);var i=Object.getOwnPropertyDescriptor(this,"stack");var o=buildStackDescriptor(i,r);Object.defineProperty(this,"stack",o)};function buildStackDescriptor(t,r){if(t.get){return{get:function(){var r=t.get.call(this);return buildCombinedStacks(r,this.nested)}}}else{var i=t.value;return{value:buildCombinedStacks(i,r)}}}function buildCombinedStacks(t,r){if(r){t+="\nCaused By: "+r.stack}return t}o(NestedError,Error);NestedError.prototype.name="NestedError";t.exports=NestedError},2448:(t,r,i)=>{"use strict";var o=i(6961);var a=i(1102);var c=i(6967);function copy(t,r,i){if(!isObject(t)){throw new TypeError("expected receiving object to be an object.")}if(!isObject(r)){throw new TypeError("expected providing object to be an object.")}var o=nativeKeys(r);var u=Object.keys(r);var l=o.length;i=arrayify(i);while(l--){var h=o[l];if(has(u,h)){c(t,h,r[h])}else if(!(h in t)&&!has(i,h)){a(t,r,h)}}}function isObject(t){return o(t)==="object"||typeof t==="function"}function has(t,r){r=arrayify(r);var i=r.length;if(isObject(t)){for(var o in t){if(r.indexOf(o)>-1){return true}}var a=nativeKeys(t);return has(a,r)}if(Array.isArray(t)){var c=t;while(i--){if(c.indexOf(r[i])>-1){return true}}return false}throw new TypeError("expected an array or object.")}function arrayify(t){return t?Array.isArray(t)?t:[t]:[]}function hasConstructor(t){return isObject(t)&&typeof t.constructor!=="undefined"}function nativeKeys(t){if(!hasConstructor(t))return[];return Object.getOwnPropertyNames(t)}t.exports=copy;t.exports.has=has},3178:(t,r,i)=>{"use strict";
/*!
 * object-visit <https://github.com/jonschlinkert/object-visit>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5509);t.exports=function visit(t,r,i,a){if(!o(t)&&typeof t!=="function"){throw new Error("object-visit expects `thisArg` to be an object.")}if(typeof r!=="string"){throw new Error("object-visit expects `method` name to be a string")}if(typeof t[r]!=="function"){return t}var c=[].slice.call(arguments,3);i=i||{};for(var u in i){var l=[u,i[u]].concat(c);t[r].apply(t,l)}return t}},9962:(t,r,i)=>{"use strict";
/*!
 * object.pick <https://github.com/jonschlinkert/object.pick>
 *
 * Copyright (c) 2014-2015 Jon Schlinkert, contributors.
 * Licensed under the MIT License
 */var o=i(5509);t.exports=function pick(t,r){if(!o(t)&&typeof t!=="function"){return{}}var i={};if(typeof r==="string"){if(r in t){i[r]=t[r]}return i}var a=r.length;var c=-1;while(++c<a){var u=r[c];if(u in t){i[u]=t[u]}}return i}},1223:(t,r,i)=>{var o=i(2940);t.exports=o(once);t.exports.strict=o(onceStrict);once.proto=once((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})}));function once(t){var f=function(){if(f.called)return f.value;f.called=true;return f.value=t.apply(this,arguments)};f.called=false;return f}function onceStrict(t){var f=function(){if(f.called)throw new Error(f.onceError);f.called=true;return f.value=t.apply(this,arguments)};var r=t.name||"Function wrapped with `once`";f.onceError=r+" shouldn't be called more than once";f.called=false;return f}},198:t=>{
/*!
 * pascalcase <https://github.com/jonschlinkert/pascalcase>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
function pascalcase(t){if(typeof t!=="string"){throw new TypeError("expected a string.")}t=t.replace(/([A-Z])/g," $1");if(t.length===1){return t.toUpperCase()}t=t.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();t=t.charAt(0).toUpperCase()+t.slice(1);return t.replace(/[\W_]+(\w|$)/g,(function(t,r){return r.toUpperCase()}))}t.exports=pascalcase},7610:(t,r,i)=>{"use strict";var o=i(1017);var a=i(3837).inspect;function assertPath(t){if(typeof t!=="string"){throw new TypeError("Path must be a string. Received "+a(t))}}function posix(t){assertPath(t);if(t.length===0)return".";var r=t.charCodeAt(0);var i=r===47;var o=-1;var a=true;for(var c=t.length-1;c>=1;--c){r=t.charCodeAt(c);if(r===47){if(!a){o=c;break}}else{a=false}}if(o===-1)return i?"/":".";if(i&&o===1)return"//";return t.slice(0,o)}function win32(t){assertPath(t);var r=t.length;if(r===0)return".";var i=-1;var o=-1;var a=true;var c=0;var u=t.charCodeAt(0);if(r>1){if(u===47||u===92){i=c=1;u=t.charCodeAt(1);if(u===47||u===92){var l=2;var h=l;for(;l<r;++l){u=t.charCodeAt(l);if(u===47||u===92)break}if(l<r&&l!==h){h=l;for(;l<r;++l){u=t.charCodeAt(l);if(u!==47&&u!==92)break}if(l<r&&l!==h){h=l;for(;l<r;++l){u=t.charCodeAt(l);if(u===47||u===92)break}if(l===r){return t}if(l!==h){i=c=l+1}}}}}else if(u>=65&&u<=90||u>=97&&u<=122){u=t.charCodeAt(1);if(t.charCodeAt(1)===58){i=c=2;if(r>2){u=t.charCodeAt(2);if(u===47||u===92)i=c=3}}}}else if(u===47||u===92){return t[0]}for(var p=r-1;p>=c;--p){u=t.charCodeAt(p);if(u===47||u===92){if(!a){o=p;break}}else{a=false}}if(o===-1){if(i===-1)return".";else o=i}return t.slice(0,o)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},8714:t=>{"use strict";function posix(t){return t.charAt(0)==="/"}function win32(t){var r=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var i=r.exec(t);var o=i[1]||"";var a=Boolean(o&&o.charAt(1)!==":");return Boolean(i[2]||a)}t.exports=process.platform==="win32"?win32:posix;t.exports.posix=posix;t.exports.win32=win32},539:t=>{"use strict";const pathKey=(t={})=>{const r=t.env||process.env;const i=t.platform||process.platform;if(i!=="win32"){return"PATH"}return Object.keys(r).reverse().find((t=>t.toUpperCase()==="PATH"))||"Path"};t.exports=pathKey;t.exports["default"]=pathKey},3433:(t,r,i)=>{"use strict";const o=i(7147);const a=i(8479);function type(t,r,i){if(typeof i!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof i}`))}return a(o[t])(i).then((t=>t[r]())).catch((t=>{if(t.code==="ENOENT"){return false}throw t}))}function typeSync(t,r,i){if(typeof i!=="string"){throw new TypeError(`Expected a string, got ${typeof i}`)}try{return o[t](i)[r]()}catch(t){if(t.code==="ENOENT"){return false}throw t}}r.file=type.bind(null,"stat","isFile");r.dir=type.bind(null,"stat","isDirectory");r.symlink=type.bind(null,"lstat","isSymbolicLink");r.fileSync=typeSync.bind(null,"statSync","isFile");r.dirSync=typeSync.bind(null,"statSync","isDirectory");r.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},8479:t=>{"use strict";const processFn=(t,r)=>function(){const i=r.promiseModule;const o=new Array(arguments.length);for(let t=0;t<arguments.length;t++){o[t]=arguments[t]}return new i(((i,a)=>{if(r.errorFirst){o.push((function(t,o){if(r.multiArgs){const r=new Array(arguments.length-1);for(let t=1;t<arguments.length;t++){r[t-1]=arguments[t]}if(t){r.unshift(t);a(r)}else{i(r)}}else if(t){a(t)}else{i(o)}}))}else{o.push((function(t){if(r.multiArgs){const t=new Array(arguments.length-1);for(let r=0;r<arguments.length;r++){t[r]=arguments[r]}i(t)}else{i(t)}}))}t.apply(this,o)}))};t.exports=(t,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const filter=t=>{const match=r=>typeof r==="string"?t===r:r.test(t);return r.include?r.include.some(match):!r.exclude.some(match)};let i;if(typeof t==="function"){i=function(){if(r.excludeMain){return t.apply(this,arguments)}return processFn(t,r).apply(this,arguments)}}else{i=Object.create(Object.getPrototypeOf(t))}for(const o in t){const a=t[o];i[o]=typeof a==="function"&&filter(o)?processFn(a,r):a}return i}},4810:t=>{"use strict";const processFn=(t,r)=>function(...i){const o=r.promiseModule;return new o(((o,a)=>{if(r.multiArgs){i.push(((...t)=>{if(r.errorFirst){if(t[0]){a(t)}else{t.shift();o(t)}}else{o(t)}}))}else if(r.errorFirst){i.push(((t,r)=>{if(t){a(t)}else{o(r)}}))}else{i.push(o)}t.apply(this,i)}))};t.exports=(t,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const i=typeof t;if(!(t!==null&&(i==="object"||i==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${t===null?"null":i}\``)}const filter=t=>{const match=r=>typeof r==="string"?t===r:r.test(t);return r.include?r.include.some(match):!r.exclude.some(match)};let o;if(i==="function"){o=function(...i){return r.excludeMain?t(...i):processFn(t,r).apply(this,i)}}else{o=Object.create(Object.getPrototypeOf(t))}for(const i in t){const a=t[i];o[i]=typeof a==="function"&&filter(i)?processFn(a,r):a}return o}},4504:t=>{"use strict";t.exports={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"}},7280:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},4203:(t,r,i)=>{"use strict";const o=i(7280);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},2574:(t,r,i)=>{"use strict";const o=i(7280);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},2408:(t,r,i)=>{"use strict";t.exports={DatePart:i(7280),Meridiem:i(4853),Day:i(4203),Hours:i(2574),Milliseconds:i(4909),Minutes:i(5876),Month:i(9461),Seconds:i(5884),Year:i(359)}},4853:(t,r,i)=>{"use strict";const o=i(7280);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},4909:(t,r,i)=>{"use strict";const o=i(7280);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},5876:(t,r,i)=>{"use strict";const o=i(7280);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},9461:(t,r,i)=>{"use strict";const o=i(7280);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},5884:(t,r,i)=>{"use strict";const o=i(7280);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},359:(t,r,i)=>{"use strict";const o=i(7280);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},2257:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,u){try{var l=t[c](u);var h=l.value}catch(t){i(t);return}if(l.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(5215);const a=i(461);const c=i(9571),u=c.erase,l=c.cursor;const h=i(8091),p=h.style,d=h.clear,m=h.figures,g=h.wrap,v=h.entriesToDisplay;const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=p.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=d("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}complete(t){var r=this;return _asyncToGenerator((function*(){const i=r.completing=r.suggest(r.input,r.choices);const o=yield i;if(r.completing!==i)return;r.suggestions=o.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));r.completing=false;const a=Math.max(o.length-1,0);r.moveSelect(Math.min(a,r.select));t&&t()}))()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let c;let u=i?m.arrowUp:a?m.arrowDown:" ";let l=r?o.cyan().underline(t.title):t.title;u=(r?o.cyan(m.pointer)+" ":"  ")+u;if(t.description){c=` - ${t.description}`;if(u.length+l.length+c.length>=this.out.columns||t.description.split(/\r?\n/).length>1){c="\n"+g(t.description,{margin:3,width:this.out.columns})}}return u+" "+l+o.gray(c||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(d(this.outputText,this.out.columns));super.render();let t=v(this.select,this.choices.length,this.limit),r=t.startIndex,i=t.endIndex;this.outputText=[p.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),p.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const t=this.suggestions.slice(r,i).map(((t,o)=>this.renderOption(t,this.select===o+r,o===0&&r>0,o+r===i-1&&i<this.choices.length))).join("\n");this.outputText+=`\n`+(t||o.gray(this.fallback.title))}this.out.write(u.line+l.to(0)+this.outputText)}}t.exports=AutocompletePrompt},5441:(t,r,i)=>{"use strict";const o=i(5215);const a=i(9571),c=a.cursor;const u=i(4140);const l=i(8091),h=l.clear,p=l.style,d=l.figures;class AutocompleteMultiselectPrompt extends u{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=h("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n    ${d.arrowUp}/${d.arrowDown}: Highlight option\n    ${d.arrowLeft}/${d.arrowRight}/[space]: Toggle selection\n    [a,b,c]/delete: Filter choices\n    enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(d.radioOn):d.radioOff)+"  "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(c.hide);super.render();let t=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=h(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},9486:(t,r,i)=>{"use strict";const o=i(5215);const a=i(461);const c=i(8091),u=c.style,l=c.clear;const h=i(9571),p=h.erase,d=h.cursor;class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(p.line+d.to(0)+this.outputText)}}t.exports=ConfirmPrompt},4177:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,u){try{var l=t[c](u);var h=l.value}catch(t){i(t);return}if(l.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(5215);const a=i(461);const c=i(8091),u=c.style,l=c.clear,h=c.figures;const p=i(9571),d=p.erase,m=p.cursor;const g=i(2408),v=g.DatePart,y=g.Meridiem,b=g.Day,w=g.Hours,x=g.Milliseconds,S=g.Minutes,E=g.Month,O=g.Seconds,A=g.Year;const _=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const k={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new b(t),3:t=>new E(t),4:t=>new A(t),5:t=>new y(t),6:t=>new w(t),7:t=>new S(t),8:t=>new O(t),9:t=>new x(t)};const C={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(C,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=l("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=_.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in k?k[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof v)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r==="string"){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color="red";t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof v)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(m.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(d.line+m.to(0)+this.outputText)}}t.exports=DatePrompt},2838:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(16),SelectPrompt:i(8614),TogglePrompt:i(8001),DatePrompt:i(4177),NumberPrompt:i(7072),MultiselectPrompt:i(4140),AutocompletePrompt:i(2257),AutocompleteMultiselectPrompt:i(5441),ConfirmPrompt:i(9486)}},4140:(t,r,i)=>{"use strict";const o=i(5215);const a=i(9571),c=a.cursor;const u=i(461);const l=i(8091),h=l.clear,p=l.figures,d=l.style,m=l.wrap,g=l.entriesToDisplay;class MultiselectPrompt extends u{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=h("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+`    ${p.arrowUp}/${p.arrowDown}: Highlight option\n`+`    ${p.arrowLeft}/${p.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?`    a: Toggle all\n`:"")+`    enter/return: Complete answer`}return""}renderOption(t,r,i,a){const c=(r.selected?o.green(p.radioOn):p.radioOff)+" "+a+" ";let u,l;if(r.disabled){u=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{u=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){l=` - ${r.description}`;if(c.length+u.length+l.length>=this.out.columns||r.description.split(/\r?\n/).length>1){l="\n"+m(r.description,{margin:c.length,width:this.out.columns})}}}return c+u+o.gray(l||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let r=g(this.cursor,t.length,this.optionsPerPage),i=r.startIndex,a=r.endIndex;let c,u=[];for(let r=i;r<a;r++){if(r===i&&i>0){c=p.arrowUp}else if(r===a-1&&a<t.length){c=p.arrowDown}else{c=" "}u.push(this.renderOption(this.cursor,t[r],r,c))}return"\n"+u.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(c.hide);super.render();let t=[d.symbol(this.done,this.aborted),o.bold(this.msg),d.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=h(t,this.out.columns)}}t.exports=MultiselectPrompt},7072:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,u){try{var l=t[c](u);var h=l.value}catch(t){i(t);return}if(l.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(5215);const a=i(461);const c=i(9571),u=c.cursor,l=c.erase;const h=i(8091),p=h.style,d=h.figures,m=h.clear,g=h.lines;const v=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=p.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||v.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){yield t.validate();if(t.error){t.color=`red`;t.fire();t.render();return}let r=t.value;t.value=r!==``?r:t.initial;t.done=true;t.aborted=false;t.error=false;t.fire();t.render();t.out.write(`\n`);t.close()}))()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(u.down(g(this.outputError,this.out.columns)-1)+m(this.outputError,this.out.columns));this.out.write(m(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:d.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(l.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore)}}t.exports=NumberPrompt},461:(t,r,i)=>{"use strict";const o=i(4521);const a=i(8091),c=a.action;const u=i(2361);const l=i(9571),h=l.beep,p=l.cursor;const d=i(5215);class Prompt extends u{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=c(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(p.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(h)}render(){this.onRender(d);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},8614:(t,r,i)=>{"use strict";const o=i(5215);const a=i(461);const c=i(8091),u=c.style,l=c.clear,h=c.figures,p=c.wrap,d=c.entriesToDisplay;const m=i(9571),g=m.cursor;class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=l("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(g.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();let t=d(this.cursor,this.choices.length,this.optionsPerPage),r=t.startIndex,i=t.endIndex;this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let t=r;t<i;t++){let a,c,u="",l=this.choices[t];if(t===r&&r>0){c=h.arrowUp}else if(t===i-1&&i<this.choices.length){c=h.arrowDown}else{c=" "}if(l.disabled){a=this.cursor===t?o.gray().underline(l.title):o.strikethrough().gray(l.title);c=(this.cursor===t?o.bold().gray(h.pointer)+" ":"  ")+c}else{a=this.cursor===t?o.cyan().underline(l.title):l.title;c=(this.cursor===t?o.cyan(h.pointer)+" ":"  ")+c;if(l.description&&this.cursor===t){u=` - ${l.description}`;if(c.length+a.length+u.length>=this.out.columns||l.description.split(/\r?\n/).length>1){u="\n"+p(l.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${c} ${a}${o.gray(u)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},16:(t,r,i)=>{"use strict";function asyncGeneratorStep(t,r,i,o,a,c,u){try{var l=t[c](u);var h=l.value}catch(t){i(t);return}if(l.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(5215);const a=i(461);const c=i(9571),u=c.erase,l=c.cursor;const h=i(8091),p=h.style,d=h.clear,m=h.lines,g=h.figures;class TextPrompt extends a{constructor(t={}){super(t);this.transform=p.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=d(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var t=this;return _asyncToGenerator((function*(){let r=yield t.validator(t.value);if(typeof r===`string`){t.errorMsg=r;r=false}t.error=!r}))()}submit(){var t=this;return _asyncToGenerator((function*(){t.value=t.value||t.initial;t.cursorOffset=0;t.cursor=t.rendered.length;yield t.validate();if(t.error){t.red=true;t.fire();t.render();return}t.done=true;t.aborted=false;t.fire();t.render();t.out.write("\n");t.close()}))()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(l.down(m(this.outputError,this.out.columns)-1)+d(this.outputError,this.out.columns));this.out.write(d(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[p.symbol(this.done,this.aborted),o.bold(this.msg),p.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":g.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(u.line+l.to(0)+this.outputText+l.save+this.outputError+l.restore+l.move(this.cursorOffset,0))}}t.exports=TextPrompt},8001:(t,r,i)=>{"use strict";const o=i(5215);const a=i(461);const c=i(8091),u=c.style,l=c.clear;const h=i(9571),p=h.cursor,d=h.erase;class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(l(this.outputText,this.out.columns));super.render();this.outputText=[u.symbol(this.done,this.aborted),o.bold(this.msg),u.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(d.line+p.to(0)+this.outputText)}}t.exports=TogglePrompt},5357:(t,r,i)=>{"use strict";function ownKeys(t,r){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);if(r){o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))}i.push.apply(i,o)}return i}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};if(r%2){ownKeys(Object(i),true).forEach((function(r){_defineProperty(t,r,i[r])}))}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(i))}else{ownKeys(Object(i)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(i,r))}))}}return t}function _defineProperty(t,r,i){if(r in t){Object.defineProperty(t,r,{value:i,enumerable:true,configurable:true,writable:true})}else{t[r]=i}return t}function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,u=false,l;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();c=t.done;return t},e:function e(t){u=true;l=t},f:function f(){try{if(!c&&i.return!=null)i.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}function asyncGeneratorStep(t,r,i,o,a,c,u){try{var l=t[c](u);var h=l.value}catch(t){i(t);return}if(l.done){r(h)}else{Promise.resolve(h).then(o,a)}}function _asyncToGenerator(t){return function(){var r=this,i=arguments;return new Promise((function(o,a){var c=t.apply(r,i);function _next(t){asyncGeneratorStep(c,o,a,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(c,o,a,_next,_throw,"throw",t)}_next(undefined)}))}}const o=i(7627);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator((function*(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const c={};const u=prompt._override||{};t=[].concat(t);let l,h,p,d,m,g;const v=function(){var t=_asyncToGenerator((function*(t,r,i=false){if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?yield t.format(r,c):r}));return function getFormattedAnswer(r,i){return t.apply(this,arguments)}}();var y=_createForOfIteratorHelper(t),b;try{for(y.s();!(b=y.n()).done;){h=b.value;var w=h;d=w.name;m=w.type;if(typeof m==="function"){m=yield m(l,_objectSpread({},c),h);h["type"]=m}if(!m)continue;for(let t in h){if(a.includes(t))continue;let r=h[t];h[t]=typeof r==="function"?yield r(l,_objectSpread({},c),g):r}g=h;if(typeof h.message!=="string"){throw new Error("prompt message is required")}var x=h;d=x.name;m=x.type;if(o[m]===void 0){throw new Error(`prompt type (${m}) is not defined`)}if(u[h.name]!==undefined){l=yield v(h,u[h.name]);if(l!==undefined){c[d]=l;continue}}try{l=prompt._injected?getInjectedAnswer(prompt._injected,h.initial):yield o[m](h);c[d]=l=yield v(h,l,true);p=yield r(h,l,c)}catch(t){p=!(yield i(h,c))}if(p)return c}}catch(t){y.e(t)}finally{y.f()}return c}));return _prompt.apply(this,arguments)}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},7627:(t,r,i)=>{"use strict";const o=r;const a=i(2838);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,c)=>{const u=new a[t](r);const l=i.onAbort||noop;const h=i.onSubmit||noop;const p=i.onExit||noop;u.on("state",r.onState||noop);u.on("submit",(t=>o(h(t))));u.on("exit",(t=>o(p(t))));u.on("abort",(t=>c(l(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},9001:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},3952:(t,r,i)=>{"use strict";function _createForOfIteratorHelper(t,r){var i=typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=_unsupportedIterableToArray(t))||r&&t&&typeof t.length==="number"){if(i)t=i;var o=0;var a=function F(){};return{s:a,n:function n(){if(o>=t.length)return{done:true};return{done:false,value:t[o++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var c=true,u=false,l;return{s:function s(){i=i.call(t)},n:function n(){var t=i.next();c=t.done;return t},e:function e(t){u=true;l=t},f:function f(){try{if(!c&&i.return!=null)i.return()}finally{if(u)throw l}}}}function _unsupportedIterableToArray(t,r){if(!t)return;if(typeof t==="string")return _arrayLikeToArray(t,r);var i=Object.prototype.toString.call(t).slice(8,-1);if(i==="Object"&&t.constructor)i=t.constructor.name;if(i==="Map"||i==="Set")return Array.from(t);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(t,r)}function _arrayLikeToArray(t,r){if(r==null||r>t.length)r=t.length;for(var i=0,o=new Array(r);i<r;i++)o[i]=t[i];return o}const o=i(8007);const a=i(9571),c=a.erase,u=a.cursor;const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return c.line+u.to(0);let i=0;const o=t.split(/\r?\n/);var a=_createForOfIteratorHelper(o),l;try{for(a.s();!(l=a.n()).done;){let t=l.value;i+=1+Math.floor(Math.max(width(t)-1,0)/r)}}catch(t){a.e(t)}finally{a.f()}return c.lines(i)}},4464:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},8845:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},8091:(t,r,i)=>{"use strict";t.exports={action:i(9001),clear:i(3952),style:i(8295),strip:i(8007),figures:i(8845),lines:i(3802),wrap:i(1288),entriesToDisplay:i(4464)}},3802:(t,r,i)=>{"use strict";const o=i(8007);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},8007:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},8295:(t,r,i)=>{"use strict";const o=i(5215);const a=i(8845);const c=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>c[t]||c.default;const u=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?u.aborted:i?u.exited:t?u.done:u.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:c,render:render,symbols:u,symbol:symbol,delimiter:delimiter,item:item}},1288:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},9646:(t,r,i)=>{function isNodeLT(t){t=(Array.isArray(t)?t:t.split(".")).map(Number);let r=0,i=process.versions.node.split(".").map(Number);for(;r<t.length;r++){if(i[r]>t[r])return false;if(t[r]>i[r])return true}return false}t.exports=isNodeLT("8.6.0")?i(5357):i(5379)},8377:t=>{"use strict";class DatePart{constructor({token:t,date:r,parts:i,locales:o}){this.token=t;this.date=r||new Date;this.parts=i||[this];this.locales=o||{}}up(){}down(){}next(){const t=this.parts.indexOf(this);return this.parts.find(((r,i)=>i>t&&r instanceof DatePart))}setTo(t){}prev(){let t=[].concat(this.parts).reverse();const r=t.indexOf(this);return t.find(((t,i)=>i>r&&t instanceof DatePart))}toString(){return String(this.date)}}t.exports=DatePart},6784:(t,r,i)=>{"use strict";const o=i(8377);const pos=t=>{t=t%10;return t===1?"st":t===2?"nd":t===3?"rd":"th"};class Day extends o{constructor(t={}){super(t)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(t){this.date.setDate(parseInt(t.substr(-2)))}toString(){let t=this.date.getDate();let r=this.date.getDay();return this.token==="DD"?String(t).padStart(2,"0"):this.token==="Do"?t+pos(t):this.token==="d"?r+1:this.token==="ddd"?this.locales.weekdaysShort[r]:this.token==="dddd"?this.locales.weekdays[r]:t}}t.exports=Day},754:(t,r,i)=>{"use strict";const o=i(8377);class Hours extends o{constructor(t={}){super(t)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(t){this.date.setHours(parseInt(t.substr(-2)))}toString(){let t=this.date.getHours();if(/h/.test(this.token))t=t%12||12;return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Hours},8108:(t,r,i)=>{"use strict";t.exports={DatePart:i(8377),Meridiem:i(2616),Day:i(6784),Hours:i(754),Milliseconds:i(4316),Minutes:i(1770),Month:i(8086),Seconds:i(1823),Year:i(9208)}},2616:(t,r,i)=>{"use strict";const o=i(8377);class Meridiem extends o{constructor(t={}){super(t)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let t=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?t.toUpperCase():t}}t.exports=Meridiem},4316:(t,r,i)=>{"use strict";const o=i(8377);class Milliseconds extends o{constructor(t={}){super(t)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(t){this.date.setMilliseconds(parseInt(t.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}t.exports=Milliseconds},1770:(t,r,i)=>{"use strict";const o=i(8377);class Minutes extends o{constructor(t={}){super(t)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(t){this.date.setMinutes(parseInt(t.substr(-2)))}toString(){let t=this.date.getMinutes();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Minutes},8086:(t,r,i)=>{"use strict";const o=i(8377);class Month extends o{constructor(t={}){super(t)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(t){t=parseInt(t.substr(-2))-1;this.date.setMonth(t<0?0:t)}toString(){let t=this.date.getMonth();let r=this.token.length;return r===2?String(t+1).padStart(2,"0"):r===3?this.locales.monthsShort[t]:r===4?this.locales.months[t]:String(t+1)}}t.exports=Month},1823:(t,r,i)=>{"use strict";const o=i(8377);class Seconds extends o{constructor(t={}){super(t)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(t){this.date.setSeconds(parseInt(t.substr(-2)))}toString(){let t=this.date.getSeconds();return this.token.length>1?String(t).padStart(2,"0"):t}}t.exports=Seconds},9208:(t,r,i)=>{"use strict";const o=i(8377);class Year extends o{constructor(t={}){super(t)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(t){this.date.setFullYear(t.substr(-4))}toString(){let t=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?t.substr(-2):t}}t.exports=Year},1098:(t,r,i)=>{"use strict";const o=i(5215);const a=i(4185);const{erase:c,cursor:u}=i(9571);const{style:l,clear:h,figures:p,wrap:d,entriesToDisplay:m}=i(9501);const getVal=(t,r)=>t[r]&&(t[r].value||t[r].title||t[r]);const getTitle=(t,r)=>t[r]&&(t[r].title||t[r].value||t[r]);const getIndex=(t,r)=>{const i=t.findIndex((t=>t.value===r||t.title===r));return i>-1?i:undefined};class AutocompletePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.suggest=t.suggest;this.choices=t.choices;this.initial=typeof t.initial==="number"?t.initial:getIndex(t.choices,t.initial);this.select=this.initial||t.cursor||0;this.i18n={noMatches:t.noMatches||"no matches found"};this.fallback=t.fallback||this.initial;this.clearFirst=t.clearFirst||false;this.suggestions=[];this.input="";this.limit=t.limit||10;this.cursor=0;this.transform=l.render(t.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=h("",this.out.columns);this.complete(this.render);this.render()}set fallback(t){this._fb=Number.isSafeInteger(parseInt(t))?parseInt(t):t}get fallback(){let t;if(typeof this._fb==="number")t=this.choices[this._fb];else if(typeof this._fb==="string")t={title:this._fb};return t||this._fb||{title:this.i18n.noMatches}}moveSelect(t){this.select=t;if(this.suggestions.length>0)this.value=getVal(this.suggestions,t);else this.value=this.fallback.value;this.fire()}async complete(t){const r=this.completing=this.suggest(this.input,this.choices);const i=await r;if(this.completing!==r)return;this.suggestions=i.map(((t,r,i)=>({title:getTitle(i,r),value:getVal(i,r),description:t.description})));this.completing=false;const o=Math.max(i.length-1,0);this.moveSelect(Math.min(o,this.select));t&&t()}reset(){this.input="";this.complete((()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()}));this.render()}exit(){if(this.clearFirst&&this.input.length>0){this.reset()}else{this.done=this.exited=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}abort(){this.done=this.aborted=true;this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=this.exited=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){let i=this.input.slice(0,this.cursor);let o=this.input.slice(this.cursor);this.input=`${i}${t}${o}`;this.cursor=i.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let t=this.input.slice(0,this.cursor-1);let r=this.input.slice(this.cursor);this.input=`${t}${r}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let t=this.input.slice(0,this.cursor);let r=this.input.slice(this.cursor+1);this.input=`${t}${r}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions.length-1);this.render()}up(){if(this.select===0){this.moveSelect(this.suggestions.length-1)}else{this.moveSelect(this.select-1)}this.render()}down(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else{this.moveSelect(this.select+1)}this.render()}next(){if(this.select===this.suggestions.length-1){this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){this.moveSelect(Math.min(this.select+this.limit,this.suggestions.length-1));this.render()}prevPage(){this.moveSelect(Math.max(this.select-this.limit,0));this.render()}left(){if(this.cursor<=0)return this.bell();this.cursor=this.cursor-1;this.render()}right(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();this.cursor=this.cursor+1;this.render()}renderOption(t,r,i,a){let c;let u=i?p.arrowUp:a?p.arrowDown:" ";let l=r?o.cyan().underline(t.title):t.title;u=(r?o.cyan(p.pointer)+" ":"  ")+u;if(t.description){c=` - ${t.description}`;if(u.length+l.length+c.length>=this.out.columns||t.description.split(/\r?\n/).length>1){c="\n"+d(t.description,{margin:3,width:this.out.columns})}}return u+" "+l+o.gray(c||"")}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(h(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=m(this.select,this.choices.length,this.limit);this.outputText=[l.symbol(this.done,this.aborted,this.exited),o.bold(this.msg),l.delimiter(this.completing),this.done&&this.suggestions[this.select]?this.suggestions[this.select].title:this.rendered=this.transform.render(this.input)].join(" ");if(!this.done){const i=this.suggestions.slice(t,r).map(((i,o)=>this.renderOption(i,this.select===o+t,o===0&&t>0,o+t===r-1&&r<this.choices.length))).join("\n");this.outputText+=`\n`+(i||o.gray(this.fallback.title))}this.out.write(c.line+u.to(0)+this.outputText)}}t.exports=AutocompletePrompt},8178:(t,r,i)=>{"use strict";const o=i(5215);const{cursor:a}=i(9571);const c=i(1944);const{clear:u,style:l,figures:h}=i(9501);class AutocompleteMultiselectPrompt extends c{constructor(t={}){t.overrideRender=true;super(t);this.inputValue="";this.clear=u("",this.out.columns);this.filteredOptions=this.value;this.render()}last(){this.cursor=this.filteredOptions.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.filteredOptions.length;this.render()}up(){if(this.cursor===0){this.cursor=this.filteredOptions.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.filteredOptions.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.filteredOptions[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.filteredOptions[this.cursor].selected=true;this.render()}delete(){if(this.inputValue.length){this.inputValue=this.inputValue.substr(0,this.inputValue.length-1);this.updateFilteredOptions()}}updateFilteredOptions(){const t=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter((t=>{if(this.inputValue){if(typeof t.title==="string"){if(t.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof t.value==="string"){if(t.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true}));const r=this.filteredOptions.findIndex((r=>r===t));this.cursor=r<0?0:r;this.render()}handleSpaceToggle(){const t=this.filteredOptions[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}handleInputChange(t){this.inputValue=this.inputValue+t;this.updateFilteredOptions()}_(t,r){if(t===" "){this.handleSpaceToggle()}else{this.handleInputChange(t)}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return`\nInstructions:\n    ${h.arrowUp}/${h.arrowDown}: Highlight option\n    ${h.arrowLeft}/${h.arrowRight}/[space]: Toggle selection\n    [a,b,c]/delete: Filter choices\n    enter/return: Complete answer\n`}return""}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:o.gray("Enter something to filter")}\n`}renderOption(t,r,i){let a;if(r.disabled)a=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title);else a=t===i?o.cyan().underline(r.title):r.title;return(r.selected?o.green(h.radioOn):h.radioOff)+"  "+a}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+t);this.clear=u(t,this.out.columns)}}t.exports=AutocompleteMultiselectPrompt},1491:(t,r,i)=>{const o=i(5215);const a=i(4185);const{style:c,clear:u}=i(9501);const{erase:l,cursor:h}=i(9571);class ConfirmPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=t.initial;this.initialValue=!!t.initial;this.yesMsg=t.yes||"yes";this.yesOption=t.yesOption||"(Y/n)";this.noMsg=t.no||"no";this.noOption=t.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.value=this.value||false;this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}_(t,r){if(t.toLowerCase()==="y"){this.value=true;return this.submit()}if(t.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:o.gray(this.initialValue?this.yesOption:this.noOption)].join(" ");this.out.write(l.line+h.to(0)+this.outputText)}}t.exports=ConfirmPrompt},5667:(t,r,i)=>{"use strict";const o=i(5215);const a=i(4185);const{style:c,clear:u,figures:l}=i(9501);const{erase:h,cursor:p}=i(9571);const{DatePart:d,Meridiem:m,Day:g,Hours:v,Milliseconds:y,Minutes:b,Month:w,Seconds:x,Year:S}=i(8108);const E=/\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;const O={1:({token:t})=>t.replace(/\\(.)/g,"$1"),2:t=>new g(t),3:t=>new w(t),4:t=>new S(t),5:t=>new m(t),6:t=>new v(t),7:t=>new b(t),8:t=>new x(t),9:t=>new y(t)};const A={months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthsShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),weekdaysShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(",")};class DatePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.cursor=0;this.typed="";this.locales=Object.assign(A,t.locales);this._date=t.initial||new Date;this.errorMsg=t.error||"Please Enter A Valid Value";this.validator=t.validate||(()=>true);this.mask=t.mask||"YYYY-MM-DD HH:mm:ss";this.clear=u("",this.out.columns);this.render()}get value(){return this.date}get date(){return this._date}set date(t){if(t)this._date.setTime(t.getTime())}set mask(t){let r;this.parts=[];while(r=E.exec(t)){let t=r.shift();let i=r.findIndex((t=>t!=null));this.parts.push(i in O?O[i]({token:r[i]||t,date:this.date,parts:this.parts,locales:this.locales}):r[i]||t)}let i=this.parts.reduce(((t,r)=>{if(typeof r==="string"&&typeof t[t.length-1]==="string")t[t.length-1]+=r;else t.push(r);return t}),[]);this.parts.splice(0);this.parts.push(...i);this.reset()}moveCursor(t){this.typed="";this.cursor=t;this.fire()}reset(){this.moveCursor(this.parts.findIndex((t=>t instanceof d)));this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t==="string"){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color="red";this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let t=this.parts[this.cursor].prev();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}right(){let t=this.parts[this.cursor].next();if(t==null)return this.bell();this.moveCursor(this.parts.indexOf(t));this.render()}next(){let t=this.parts[this.cursor].next();this.moveCursor(t?this.parts.indexOf(t):this.parts.findIndex((t=>t instanceof d)));this.render()}_(t){if(/\d/.test(t)){this.typed+=t;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(p.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(false),this.parts.reduce(((t,r,i)=>t.concat(i===this.cursor&&!this.done?o.cyan().underline(r.toString()):r)),[]).join("")].join(" ");if(this.error){this.outputText+=this.errorMsg.split("\n").reduce(((t,r,i)=>t+`\n${i?` `:l.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(h.line+p.to(0)+this.outputText)}}t.exports=DatePrompt},9098:(t,r,i)=>{"use strict";t.exports={TextPrompt:i(5387),SelectPrompt:i(6514),TogglePrompt:i(2093),DatePrompt:i(5667),NumberPrompt:i(2952),MultiselectPrompt:i(1944),AutocompletePrompt:i(1098),AutocompleteMultiselectPrompt:i(8178),ConfirmPrompt:i(1491)}},1944:(t,r,i)=>{"use strict";const o=i(5215);const{cursor:a}=i(9571);const c=i(4185);const{clear:u,figures:l,style:h,wrap:p,entriesToDisplay:d}=i(9501);class MultiselectPrompt extends c{constructor(t={}){super(t);this.msg=t.message;this.cursor=t.cursor||0;this.scrollIndex=t.cursor||0;this.hint=t.hint||"";this.warn=t.warn||"- This option is disabled -";this.minSelected=t.min;this.showMinError=false;this.maxChoices=t.max;this.instructions=t.instructions;this.optionsPerPage=t.optionsPerPage||10;this.value=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),description:t&&t.description,value:t&&(t.value===undefined?r:t.value),selected:t&&t.selected,disabled:t&&t.disabled}}));this.clear=u("",this.out.columns);if(!t.overrideRender){this.render()}}reset(){this.value.map((t=>!t.selected));this.cursor=0;this.fire();this.render()}selected(){return this.value.filter((t=>t.selected))}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const t=this.value.filter((t=>t.selected));if(this.minSelected&&t.length<this.minSelected){this.showMinError=true;this.render()}else{this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length-1;this.render()}next(){this.cursor=(this.cursor+1)%this.value.length;this.render()}up(){if(this.cursor===0){this.cursor=this.value.length-1}else{this.cursor--}this.render()}down(){if(this.cursor===this.value.length-1){this.cursor=0}else{this.cursor++}this.render()}left(){this.value[this.cursor].selected=false;this.render()}right(){if(this.value.filter((t=>t.selected)).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const t=this.value[this.cursor];if(t.selected){t.selected=false;this.render()}else if(t.disabled||this.value.filter((t=>t.selected)).length>=this.maxChoices){return this.bell()}else{t.selected=true;this.render()}}toggleAll(){if(this.maxChoices!==undefined||this.value[this.cursor].disabled){return this.bell()}const t=!this.value[this.cursor].selected;this.value.filter((t=>!t.disabled)).forEach((r=>r.selected=t));this.render()}_(t,r){if(t===" "){this.handleSpaceToggle()}else if(t==="a"){this.toggleAll()}else{return this.bell()}}renderInstructions(){if(this.instructions===undefined||this.instructions){if(typeof this.instructions==="string"){return this.instructions}return"\nInstructions:\n"+`    ${l.arrowUp}/${l.arrowDown}: Highlight option\n`+`    ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n`+(this.maxChoices===undefined?`    a: Toggle all\n`:"")+`    enter/return: Complete answer`}return""}renderOption(t,r,i,a){const c=(r.selected?o.green(l.radioOn):l.radioOff)+" "+a+" ";let u,h;if(r.disabled){u=t===i?o.gray().underline(r.title):o.strikethrough().gray(r.title)}else{u=t===i?o.cyan().underline(r.title):r.title;if(t===i&&r.description){h=` - ${r.description}`;if(c.length+u.length+h.length>=this.out.columns||r.description.split(/\r?\n/).length>1){h="\n"+p(r.description,{margin:c.length,width:this.out.columns})}}}return c+u+o.gray(h||"")}paginateOptions(t){if(t.length===0){return o.red("No matches for this query.")}let{startIndex:r,endIndex:i}=d(this.cursor,t.length,this.optionsPerPage);let a,c=[];for(let o=r;o<i;o++){if(o===r&&r>0){a=l.arrowUp}else if(o===i-1&&i<t.length){a=l.arrowDown}else{a=" "}c.push(this.renderOption(this.cursor,t[o],o,a))}return"\n"+c.join("\n")}renderOptions(t){if(!this.done){return this.paginateOptions(t)}return""}renderDoneOrInstructions(){if(this.done){return this.value.filter((t=>t.selected)).map((t=>t.title)).join(", ")}const t=[o.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){t.push(o.yellow(this.warn))}return t.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();let t=[h.symbol(this.done,this.aborted),o.bold(this.msg),h.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){t+=o.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}t+=this.renderOptions(this.value);this.out.write(this.clear+t);this.clear=u(t,this.out.columns)}}t.exports=MultiselectPrompt},2952:(t,r,i)=>{const o=i(5215);const a=i(4185);const{cursor:c,erase:u}=i(9571);const{style:l,figures:h,clear:p,lines:d}=i(9501);const m=/[0-9]/;const isDef=t=>t!==undefined;const round=(t,r)=>{let i=Math.pow(10,r);return Math.round(t*i)/i};class NumberPrompt extends a{constructor(t={}){super(t);this.transform=l.render(t.style);this.msg=t.message;this.initial=isDef(t.initial)?t.initial:"";this.float=!!t.float;this.round=t.round||2;this.inc=t.increment||1;this.min=isDef(t.min)?t.min:-Infinity;this.max=isDef(t.max)?t.max:Infinity;this.errorMsg=t.error||`Please Enter A Valid Value`;this.validator=t.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(t){if(!t&&t!==0){this.placeholder=true;this.rendered=o.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${round(t,this.round)}`);this._value=round(t,this.round)}this.fire()}get value(){return this._value}parse(t){return this.float?parseFloat(t):parseInt(t)}valid(t){return t===`-`||t===`.`&&this.float||m.test(t)}reset(){this.typed=``;this.value=``;this.fire();this.render()}exit(){this.abort()}abort(){let t=this.value;this.value=t!==``?t:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let t=this.value;this.value=t!==``?t:this.initial;this.done=true;this.aborted=false;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}up(){this.typed=``;if(this.value===""){this.value=this.min-this.inc}if(this.value>=this.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value===""){this.value=this.min+this.inc}if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let t=this.value.toString();if(t.length===0)return this.bell();this.value=this.parse(t=t.slice(0,-1))||``;if(this.value!==""&&this.value<this.min){this.value=this.min}this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(t,r){if(!this.valid(t))return this.bell();const i=Date.now();if(i-this.lastHit>1e3)this.typed=``;this.typed+=t;this.lastHit=i;this.color=`cyan`;if(t===`.`)return this.fire();this.value=Math.min(this.parse(this.typed),this.max);if(this.value>this.max)this.value=this.max;if(this.value<this.min)this.value=this.min;this.fire();this.render()}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(c.down(d(this.outputError,this.out.columns)-1)+p(this.outputError,this.out.columns));this.out.write(p(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),!this.done||!this.done&&!this.placeholder?o[this.color]().underline(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?` `:h.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(u.line+c.to(0)+this.outputText+c.save+this.outputError+c.restore)}}t.exports=NumberPrompt},4185:(t,r,i)=>{"use strict";const o=i(4521);const{action:a}=i(9501);const c=i(2361);const{beep:u,cursor:l}=i(9571);const h=i(5215);class Prompt extends c{constructor(t={}){super();this.firstRender=true;this.in=t.stdin||process.stdin;this.out=t.stdout||process.stdout;this.onRender=(t.onRender||(()=>void 0)).bind(this);const r=o.createInterface({input:this.in,escapeCodeTimeout:50});o.emitKeypressEvents(this.in,r);if(this.in.isTTY)this.in.setRawMode(true);const i=["SelectPrompt","MultiselectPrompt"].indexOf(this.constructor.name)>-1;const keypress=(t,r)=>{let o=a(r,i);if(o===false){this._&&this._(t,r)}else if(typeof this[o]==="function"){this[o](r)}else{this.bell()}};this.close=()=>{this.out.write(l.show);this.in.removeListener("keypress",keypress);if(this.in.isTTY)this.in.setRawMode(false);r.close();this.emit(this.aborted?"abort":this.exited?"exit":"submit",this.value);this.closed=true};this.in.on("keypress",keypress)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted,exited:!!this.exited})}bell(){this.out.write(u)}render(){this.onRender(h);if(this.firstRender)this.firstRender=false}}t.exports=Prompt},6514:(t,r,i)=>{"use strict";const o=i(5215);const a=i(4185);const{style:c,clear:u,figures:l,wrap:h,entriesToDisplay:p}=i(9501);const{cursor:d}=i(9571);class SelectPrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.hint=t.hint||"- Use arrow-keys. Return to submit.";this.warn=t.warn||"- This option is disabled";this.cursor=t.initial||0;this.choices=t.choices.map(((t,r)=>{if(typeof t==="string")t={title:t,value:r};return{title:t&&(t.title||t.value||t),value:t&&(t.value===undefined?r:t.value),description:t&&t.description,selected:t&&t.selected,disabled:t&&t.disabled}}));this.optionsPerPage=t.optionsPerPage||10;this.value=(this.choices[this.cursor]||{}).value;this.clear=u("",this.out.columns);this.render()}moveCursor(t){this.cursor=t;this.value=this.choices[t].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){if(!this.selection.disabled){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}else this.bell()}first(){this.moveCursor(0);this.render()}last(){this.moveCursor(this.choices.length-1);this.render()}up(){if(this.cursor===0){this.moveCursor(this.choices.length-1)}else{this.moveCursor(this.cursor-1)}this.render()}down(){if(this.cursor===this.choices.length-1){this.moveCursor(0)}else{this.moveCursor(this.cursor+1)}this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(t,r){if(t===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(d.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();let{startIndex:t,endIndex:r}=p(this.cursor,this.choices.length,this.optionsPerPage);this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(false),this.done?this.selection.title:this.selection.disabled?o.yellow(this.warn):o.gray(this.hint)].join(" ");if(!this.done){this.outputText+="\n";for(let i=t;i<r;i++){let a,c,u="",p=this.choices[i];if(i===t&&t>0){c=l.arrowUp}else if(i===r-1&&r<this.choices.length){c=l.arrowDown}else{c=" "}if(p.disabled){a=this.cursor===i?o.gray().underline(p.title):o.strikethrough().gray(p.title);c=(this.cursor===i?o.bold().gray(l.pointer)+" ":"  ")+c}else{a=this.cursor===i?o.cyan().underline(p.title):p.title;c=(this.cursor===i?o.cyan(l.pointer)+" ":"  ")+c;if(p.description&&this.cursor===i){u=` - ${p.description}`;if(c.length+a.length+u.length>=this.out.columns||p.description.split(/\r?\n/).length>1){u="\n"+h(p.description,{margin:3,width:this.out.columns})}}}this.outputText+=`${c} ${a}${o.gray(u)}\n`}}this.out.write(this.outputText)}}t.exports=SelectPrompt},5387:(t,r,i)=>{const o=i(5215);const a=i(4185);const{erase:c,cursor:u}=i(9571);const{style:l,clear:h,lines:p,figures:d}=i(9501);class TextPrompt extends a{constructor(t={}){super(t);this.transform=l.render(t.style);this.scale=this.transform.scale;this.msg=t.message;this.initial=t.initial||``;this.validator=t.validate||(()=>true);this.value=``;this.errorMsg=t.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.clear=h(``,this.out.columns);this.render()}set value(t){if(!t&&this.initial){this.placeholder=true;this.rendered=o.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(t)}this._value=t;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.cursorOffset=0;this.fire();this.render()}exit(){this.abort()}abort(){this.value=this.value||this.initial;this.done=this.aborted=true;this.error=false;this.red=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let t=await this.validator(this.value);if(typeof t===`string`){this.errorMsg=t;t=false}this.error=!t}async submit(){this.value=this.value||this.initial;this.cursorOffset=0;this.cursor=this.rendered.length;await this.validate();if(this.error){this.red=true;this.fire();this.render();return}this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(t){if(this.placeholder)return;this.cursor=this.cursor+t;this.cursorOffset+=t}_(t,r){let i=this.value.slice(0,this.cursor);let o=this.value.slice(this.cursor);this.value=`${i}${t}${o}`;this.red=false;this.cursor=this.placeholder?0:i.length+1;this.render()}delete(){if(this.isCursorAtStart())return this.bell();let t=this.value.slice(0,this.cursor-1);let r=this.value.slice(this.cursor);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtStart()){this.cursorOffset=0}else{this.cursorOffset++;this.moveCursor(-1)}this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let t=this.value.slice(0,this.cursor);let r=this.value.slice(this.cursor+1);this.value=`${t}${r}`;this.red=false;if(this.isCursorAtEnd()){this.cursorOffset=0}else{this.cursorOffset++}this.render()}first(){this.cursor=0;this.render()}last(){this.cursor=this.value.length;this.render()}left(){if(this.cursor<=0||this.placeholder)return this.bell();this.moveCursor(-1);this.render()}right(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();this.moveCursor(1);this.render()}isCursorAtStart(){return this.cursor===0||this.placeholder&&this.cursor===1}isCursorAtEnd(){return this.cursor===this.rendered.length||this.placeholder&&this.cursor===this.rendered.length+1}render(){if(this.closed)return;if(!this.firstRender){if(this.outputError)this.out.write(u.down(p(this.outputError,this.out.columns)-1)+h(this.outputError,this.out.columns));this.out.write(h(this.outputText,this.out.columns))}super.render();this.outputError="";this.outputText=[l.symbol(this.done,this.aborted),o.bold(this.msg),l.delimiter(this.done),this.red?o.red(this.rendered):this.rendered].join(` `);if(this.error){this.outputError+=this.errorMsg.split(`\n`).reduce(((t,r,i)=>t+`\n${i?" ":d.pointerSmall} ${o.red().italic(r)}`),``)}this.out.write(c.line+u.to(0)+this.outputText+u.save+this.outputError+u.restore+u.move(this.cursorOffset,0))}}t.exports=TextPrompt},2093:(t,r,i)=>{const o=i(5215);const a=i(4185);const{style:c,clear:u}=i(9501);const{cursor:l,erase:h}=i(9571);class TogglePrompt extends a{constructor(t={}){super(t);this.msg=t.message;this.value=!!t.initial;this.active=t.active||"on";this.inactive=t.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}exit(){this.abort()}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){this.done=true;this.aborted=false;this.fire();this.render();this.out.write("\n");this.close()}deactivate(){if(this.value===false)return this.bell();this.value=false;this.render()}activate(){if(this.value===true)return this.bell();this.value=true;this.render()}delete(){this.deactivate()}left(){this.deactivate()}right(){this.activate()}down(){this.deactivate()}up(){this.activate()}next(){this.value=!this.value;this.fire();this.render()}_(t,r){if(t===" "){this.value=!this.value}else if(t==="1"){this.value=true}else if(t==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u(this.outputText,this.out.columns));super.render();this.outputText=[c.symbol(this.done,this.aborted),o.bold(this.msg),c.delimiter(this.done),this.value?this.inactive:o.cyan().underline(this.inactive),o.gray("/"),this.value?o.cyan().underline(this.active):this.active].join(" ");this.out.write(h.line+l.to(0)+this.outputText)}}t.exports=TogglePrompt},5379:(t,r,i)=>{"use strict";const o=i(1558);const a=["suggest","format","onState","validate","onRender","type"];const noop=()=>{};async function prompt(t=[],{onSubmit:r=noop,onCancel:i=noop}={}){const c={};const u=prompt._override||{};t=[].concat(t);let l,h,p,d,m,g;const getFormattedAnswer=async(t,r,i=false)=>{if(!i&&t.validate&&t.validate(r)!==true){return}return t.format?await t.format(r,c):r};for(h of t){({name:d,type:m}=h);if(typeof m==="function"){m=await m(l,{...c},h);h["type"]=m}if(!m)continue;for(let t in h){if(a.includes(t))continue;let r=h[t];h[t]=typeof r==="function"?await r(l,{...c},g):r}g=h;if(typeof h.message!=="string"){throw new Error("prompt message is required")}({name:d,type:m}=h);if(o[m]===void 0){throw new Error(`prompt type (${m}) is not defined`)}if(u[h.name]!==undefined){l=await getFormattedAnswer(h,u[h.name]);if(l!==undefined){c[d]=l;continue}}try{l=prompt._injected?getInjectedAnswer(prompt._injected,h.initial):await o[m](h);c[d]=l=await getFormattedAnswer(h,l,true);p=await r(h,l,c)}catch(t){p=!await i(h,c)}if(p)return c}return c}function getInjectedAnswer(t,r){const i=t.shift();if(i instanceof Error){throw i}return i===undefined?r:i}function inject(t){prompt._injected=(prompt._injected||[]).concat(t)}function override(t){prompt._override=Object.assign({},t)}t.exports=Object.assign(prompt,{prompt:prompt,prompts:o,inject:inject,override:override})},1558:(t,r,i)=>{"use strict";const o=r;const a=i(9098);const noop=t=>t;function toPrompt(t,r,i={}){return new Promise(((o,c)=>{const u=new a[t](r);const l=i.onAbort||noop;const h=i.onSubmit||noop;const p=i.onExit||noop;u.on("state",r.onState||noop);u.on("submit",(t=>o(h(t))));u.on("exit",(t=>o(p(t))));u.on("abort",(t=>c(l(t))))}))}o.text=t=>toPrompt("TextPrompt",t);o.password=t=>{t.style="password";return o.text(t)};o.invisible=t=>{t.style="invisible";return o.text(t)};o.number=t=>toPrompt("NumberPrompt",t);o.date=t=>toPrompt("DatePrompt",t);o.confirm=t=>toPrompt("ConfirmPrompt",t);o.list=t=>{const r=t.separator||",";return toPrompt("TextPrompt",t,{onSubmit:t=>t.split(r).map((t=>t.trim()))})};o.toggle=t=>toPrompt("TogglePrompt",t);o.select=t=>toPrompt("SelectPrompt",t);o.multiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("MultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};o.autocompleteMultiselect=t=>{t.choices=[].concat(t.choices||[]);const toSelected=t=>t.filter((t=>t.selected)).map((t=>t.value));return toPrompt("AutocompleteMultiselectPrompt",t,{onAbort:toSelected,onSubmit:toSelected})};const byTitle=(t,r)=>Promise.resolve(r.filter((r=>r.title.slice(0,t.length).toLowerCase()===t.toLowerCase())));o.autocomplete=t=>{t.suggest=t.suggest||byTitle;t.choices=[].concat(t.choices||[]);return toPrompt("AutocompletePrompt",t)}},2337:t=>{"use strict";t.exports=(t,r)=>{if(t.meta&&t.name!=="escape")return;if(t.ctrl){if(t.name==="a")return"first";if(t.name==="c")return"abort";if(t.name==="d")return"abort";if(t.name==="e")return"last";if(t.name==="g")return"reset"}if(r){if(t.name==="j")return"down";if(t.name==="k")return"up"}if(t.name==="return")return"submit";if(t.name==="enter")return"submit";if(t.name==="backspace")return"delete";if(t.name==="delete")return"deleteForward";if(t.name==="abort")return"abort";if(t.name==="escape")return"exit";if(t.name==="tab")return"next";if(t.name==="pagedown")return"nextPage";if(t.name==="pageup")return"prevPage";if(t.name==="home")return"home";if(t.name==="end")return"end";if(t.name==="up")return"up";if(t.name==="down")return"down";if(t.name==="right")return"right";if(t.name==="left")return"left";return false}},4679:(t,r,i)=>{"use strict";const o=i(6439);const{erase:a,cursor:c}=i(9571);const width=t=>[...o(t)].length;t.exports=function(t,r){if(!r)return a.line+c.to(0);let i=0;const o=t.split(/\r?\n/);for(let t of o){i+=1+Math.floor(Math.max(width(t)-1,0)/r)}return a.lines(i)}},6740:t=>{"use strict";t.exports=(t,r,i)=>{i=i||r;let o=Math.min(r-i,t-Math.floor(i/2));if(o<0)o=0;let a=Math.min(o+i,r);return{startIndex:o,endIndex:a}}},1918:t=>{"use strict";const r={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const i={arrowUp:r.arrowUp,arrowDown:r.arrowDown,arrowLeft:r.arrowLeft,arrowRight:r.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const o=process.platform==="win32"?i:r;t.exports=o},9501:(t,r,i)=>{"use strict";t.exports={action:i(2337),clear:i(4679),style:i(5290),strip:i(6439),figures:i(1918),lines:i(409),wrap:i(8861),entriesToDisplay:i(6740)}},409:(t,r,i)=>{"use strict";const o=i(6439);t.exports=function(t,r){let i=String(o(t)||"").split(/\r?\n/);if(!r)return i.length;return i.map((t=>Math.ceil(t.length/r))).reduce(((t,r)=>t+r))}},6439:t=>{"use strict";t.exports=t=>{const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const i=new RegExp(r,"g");return typeof t==="string"?t.replace(i,""):t}},5290:(t,r,i)=>{"use strict";const o=i(5215);const a=i(1918);const c=Object.freeze({password:{scale:1,render:t=>"*".repeat(t.length)},emoji:{scale:2,render:t=>"😃".repeat(t.length)},invisible:{scale:0,render:t=>""},default:{scale:1,render:t=>`${t}`}});const render=t=>c[t]||c.default;const u=Object.freeze({aborted:o.red(a.cross),done:o.green(a.tick),exited:o.yellow(a.cross),default:o.cyan("?")});const symbol=(t,r,i)=>r?u.aborted:i?u.exited:t?u.done:u.default;const delimiter=t=>o.gray(t?a.ellipsis:a.pointerSmall);const item=(t,r)=>o.gray(t?r?a.pointerSmall:"+":a.line);t.exports={styles:c,render:render,symbols:u,symbol:symbol,delimiter:delimiter,item:item}},8861:t=>{"use strict";t.exports=(t,r={})=>{const i=Number.isSafeInteger(parseInt(r.margin))?new Array(parseInt(r.margin)).fill(" ").join(""):r.margin||"";const o=r.width;return(t||"").split(/\r?\n/g).map((t=>t.split(/\s+/g).reduce(((t,r)=>{if(r.length+i.length>=o||t[t.length-1].length+r.length+1<o)t[t.length-1]+=` ${r}`;else t.push(`${i}${r}`);return t}),[i]).join("\n"))).join("\n")}},7353:(t,r,i)=>{var o=i(5588);var a=i(1017).join;var c=i(1705);var u="/etc";var l=process.platform==="win32";var h=l?process.env.USERPROFILE:process.env.HOME;t.exports=function(t,r,p,d){if("string"!==typeof t)throw new Error("rc(name): name *must* be string");if(!p)p=i(5871)(process.argv.slice(2));r=("string"===typeof r?o.json(r):r)||{};d=d||o.parse;var m=o.env(t+"_");var g=[r];var v=[];function addConfigFile(t){if(v.indexOf(t)>=0)return;var r=o.file(t);if(r){g.push(d(r));v.push(t)}}if(!l)[a(u,t,"config"),a(u,t+"rc")].forEach(addConfigFile);if(h)[a(h,".config",t,"config"),a(h,".config",t),a(h,"."+t,"config"),a(h,"."+t+"rc")].forEach(addConfigFile);addConfigFile(o.find("."+t+"rc"));if(m.config)addConfigFile(m.config);if(p.config)addConfigFile(p.config);return c.apply(null,g.concat([m,p,v.length?{configs:v,config:v[v.length-1]}:undefined]))}},5588:(t,r,i)=>{"use strict";var o=i(7147);var a=i(8885);var c=i(1017);var u=i(7035);var l=r.parse=function(t){if(/^\s*{/.test(t))return JSON.parse(u(t));return a.parse(t)};var h=r.file=function(){var t=[].slice.call(arguments).filter((function(t){return t!=null}));for(var r in t)if("string"!==typeof t[r])return;var i=c.join.apply(null,t);var a;try{return o.readFileSync(i,"utf-8")}catch(t){return}};var p=r.json=function(){var t=h.apply(null,arguments);return t?l(t):null};var d=r.env=function(t,r){r=r||process.env;var i={};var o=t.length;for(var a in r){if(a.toLowerCase().indexOf(t.toLowerCase())===0){var c=a.substring(o).split("__");var u;while((u=c.indexOf(""))>-1){c.splice(u,1)}var l=i;c.forEach((function _buildSubObj(t,i){if(!t||typeof l!=="object")return;if(i===c.length-1)l[t]=r[a];if(l[t]===undefined)l[t]={};l=l[t]}))}}return i};var m=r.find=function(){var t=c.join.apply(null,[].slice.call(arguments));function find(t,r){var i=c.join(t,r);try{o.statSync(i);return i}catch(i){if(c.dirname(t)!==t)return find(c.dirname(t),r)}}return find(process.cwd(),t)}},7035:t=>{"use strict";var r=1;var i=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(t,r,i){return t.slice(r,i).replace(/\S/g," ")}t.exports=function(t,o){o=o||{};var a;var c;var u=false;var l=false;var h=0;var p="";var d=o.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var m=0;m<t.length;m++){a=t[m];c=t[m+1];if(!l&&a==='"'){var g=t[m-1]==="\\"&&t[m-2]!=="\\";if(!g){u=!u}}if(u){continue}if(!l&&a+c==="//"){p+=t.slice(h,m);h=m;l=r;m++}else if(l===r&&a+c==="\r\n"){m++;l=false;p+=d(t,h,m);h=m;continue}else if(l===r&&a==="\n"){l=false;p+=d(t,h,m);h=m}else if(!l&&a+c==="/*"){p+=t.slice(h,m);h=m;l=i;m++;continue}else if(l===i&&a+c==="*/"){m++;l=false;p+=d(t,h,m+1);h=m+1;continue}}return p+(l?d(t.substr(h)):t.substr(h))}},2527:(t,r,i)=>{"use strict";var o=i(8755);var a=i(5634);function toRegex(t,r){return new RegExp(toRegex.create(t,r))}toRegex.create=function(t,r){if(typeof t!=="string"){throw new TypeError("expected a string")}var i=o({},r);if(i.contains===true){i.strictNegate=false}var c=i.strictOpen!==false?"^":"";var u=i.strictClose!==false?"$":"";var l=i.endChar?i.endChar:"+";var h=t;if(i.strictNegate===false){h="(?:(?!(?:"+t+")).)"+l}else{h="(?:(?!^(?:"+t+")$).)"+l}var p=c+h+u;if(i.safe===true&&a(p)===false){throw new Error("potentially unsafe regular expression: "+p)}return p};t.exports=toRegex},8755:(t,r,i)=>{"use strict";var o=i(7347);var a=i(8782);t.exports=Object.assign||function(t){if(t===null||typeof t==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(t)){t={}}for(var r=1;r<arguments.length;r++){var i=arguments[r];if(isString(i)){i=toObject(i)}if(isObject(i)){assign(t,i);a(t,i)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function isString(t){return t&&typeof t==="string"}function toObject(t){var r={};for(var i in t){r[i]=t[i]}return r}function isObject(t){return t&&typeof t==="object"||o(t)}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function isEnum(t,r){return Object.prototype.propertyIsEnumerable.call(t,r)}},7347:(t,r,i)=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(7810);t.exports=function isExtendable(t){return o(t)||typeof t==="function"||Array.isArray(t)}},8506:(t,r,i)=>{const o=i(1867).Buffer;function decodeBase64(t){return o.from(t,"base64").toString("utf8")}function encodeBase64(t){return o.from(t,"utf8").toString("base64")}t.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},2968:(t,r,i)=>{var o=i(7310);var a=i(8506);var c=a.decodeBase64;var u=a.encodeBase64;var l=":_authToken";var h=":username";var p=":_password";t.exports=function(){var t;var r;if(arguments.length>=2){t=arguments[0];r=arguments[1]}else if(typeof arguments[0]==="string"){t=arguments[0]}else{r=arguments[0]}r=r||{};r.npmrc=r.npmrc||i(7353)("npm",{registry:"https://registry.npmjs.org/"});t=t||r.npmrc.registry;return getRegistryAuthInfo(t,r)||getLegacyAuthInfo(r.npmrc)};function getRegistryAuthInfo(t,r){var i=o.parse(t,false,true);var a;while(a!=="/"&&i.pathname!==a){a=i.pathname||"/";var c="//"+i.host+a.replace(/\/$/,"");var u=getAuthInfoForUrl(c,r.npmrc);if(u){return u}if(!r.recursive){return/\/$/.test(t)?undefined:getRegistryAuthInfo(o.resolve(t,"."),r)}i.pathname=o.resolve(normalizePath(a),"..")||"/"}return undefined}function getLegacyAuthInfo(t){if(t._auth){return{token:t._auth,type:"Basic"}}return undefined}function normalizePath(t){return t[t.length-1]==="/"?t:t+"/"}function getAuthInfoForUrl(t,r){var i=getBearerToken(r[t+l]||r[t+"/"+l]);if(i){return i}var o=r[t+h]||r[t+"/"+h];var a=r[t+p]||r[t+"/"+p];var c=getTokenForUsernameAndPassword(o,a);if(c){return c}return undefined}function getBearerToken(t){if(!t){return undefined}var r=t.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]}));return{token:r,type:"Bearer"}}function getTokenForUsernameAndPassword(t,r){if(!t||!r){return undefined}var i=c(r.replace(/^\$\{?([^}]*)\}?$/,(function(t,r){return process.env[r]})));var o=u(t+":"+i);return{token:o,type:"Basic",password:i,username:t}}},4182:(t,r,i)=>{"use strict";t.exports=function(t){var r=i(7353)("npm",{registry:"https://registry.npmjs.org/"});var o=r[t+":registry"]||r.registry;return o.slice(-1)==="/"?o:o+"/"}},3301:t=>{"use strict";
/*!
 * repeat-element <https://github.com/jonschlinkert/repeat-element>
 *
 * Copyright (c) 2015-present, Jon Schlinkert.
 * Licensed under the MIT license.
 */t.exports=function repeat(t,r){if(Array.prototype.fill){return new Array(r).fill(t)}var i=new Array(r);for(var o=0;o<r;o++){i[o]=t}return i}},6976:t=>{"use strict";
/*!
 * repeat-string <https://github.com/jonschlinkert/repeat-string>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var r="";var i;t.exports=repeat;function repeat(t,o){if(typeof t!=="string"){throw new TypeError("expected a string")}if(o===1)return t;if(o===2)return t+t;var a=t.length*o;if(i!==t||typeof i==="undefined"){i=t;r=""}else if(r.length>=a){return r.substr(0,a)}while(a>r.length&&o>1){if(o&1){r+=t}o>>=1;t+=t}r+=t;r=r.substr(0,a);return r}},1279:(t,r,i)=>{var o=i(5874);var a=i(1451);var c=i(1408);var u=i(9177);t.exports=function(t){var r=0,i,l,h={type:a.ROOT,stack:[]},p=h,d=h.stack,m=[];var repeatErr=function(r){o.error(t,"Nothing to repeat at column "+(r-1))};var g=o.strToChars(t);i=g.length;while(r<i){l=g[r++];switch(l){case"\\":l=g[r++];switch(l){case"b":d.push(u.wordBoundary());break;case"B":d.push(u.nonWordBoundary());break;case"w":d.push(c.words());break;case"W":d.push(c.notWords());break;case"d":d.push(c.ints());break;case"D":d.push(c.notInts());break;case"s":d.push(c.whitespace());break;case"S":d.push(c.notWhitespace());break;default:if(/\d/.test(l)){d.push({type:a.REFERENCE,value:parseInt(l,10)})}else{d.push({type:a.CHAR,value:l.charCodeAt(0)})}}break;case"^":d.push(u.begin());break;case"$":d.push(u.end());break;case"[":var v;if(g[r]==="^"){v=true;r++}else{v=false}var y=o.tokenizeClass(g.slice(r),t);r+=y[1];d.push({type:a.SET,set:y[0],not:v});break;case".":d.push(c.anyChar());break;case"(":var b={type:a.GROUP,stack:[],remember:true};l=g[r];if(l==="?"){l=g[r+1];r+=2;if(l==="="){b.followedBy=true}else if(l==="!"){b.notFollowedBy=true}else if(l!==":"){o.error(t,"Invalid group, character '"+l+"' after '?' at column "+(r-1))}b.remember=false}d.push(b);m.push(p);p=b;d=b.stack;break;case")":if(m.length===0){o.error(t,"Unmatched ) at column "+(r-1))}p=m.pop();d=p.options?p.options[p.options.length-1]:p.stack;break;case"|":if(!p.options){p.options=[p.stack];delete p.stack}var w=[];p.options.push(w);d=w;break;case"{":var x=/^(\d+)(,(\d+)?)?\}/.exec(g.slice(r)),S,E;if(x!==null){if(d.length===0){repeatErr(r)}S=parseInt(x[1],10);E=x[2]?x[3]?parseInt(x[3],10):Infinity:S;r+=x[0].length;d.push({type:a.REPETITION,min:S,max:E,value:d.pop()})}else{d.push({type:a.CHAR,value:123})}break;case"?":if(d.length===0){repeatErr(r)}d.push({type:a.REPETITION,min:0,max:1,value:d.pop()});break;case"+":if(d.length===0){repeatErr(r)}d.push({type:a.REPETITION,min:1,max:Infinity,value:d.pop()});break;case"*":if(d.length===0){repeatErr(r)}d.push({type:a.REPETITION,min:0,max:Infinity,value:d.pop()});break;default:d.push({type:a.CHAR,value:l.charCodeAt(0)})}}if(m.length!==0){o.error(t,"Unterminated group")}return h};t.exports.types=a},9177:(t,r,i)=>{var o=i(1451);r.wordBoundary=function(){return{type:o.POSITION,value:"b"}};r.nonWordBoundary=function(){return{type:o.POSITION,value:"B"}};r.begin=function(){return{type:o.POSITION,value:"^"}};r.end=function(){return{type:o.POSITION,value:"$"}}},1408:(t,r,i)=>{var o=i(1451);var INTS=function(){return[{type:o.RANGE,from:48,to:57}]};var WORDS=function(){return[{type:o.CHAR,value:95},{type:o.RANGE,from:97,to:122},{type:o.RANGE,from:65,to:90}].concat(INTS())};var WHITESPACE=function(){return[{type:o.CHAR,value:9},{type:o.CHAR,value:10},{type:o.CHAR,value:11},{type:o.CHAR,value:12},{type:o.CHAR,value:13},{type:o.CHAR,value:32},{type:o.CHAR,value:160},{type:o.CHAR,value:5760},{type:o.CHAR,value:6158},{type:o.CHAR,value:8192},{type:o.CHAR,value:8193},{type:o.CHAR,value:8194},{type:o.CHAR,value:8195},{type:o.CHAR,value:8196},{type:o.CHAR,value:8197},{type:o.CHAR,value:8198},{type:o.CHAR,value:8199},{type:o.CHAR,value:8200},{type:o.CHAR,value:8201},{type:o.CHAR,value:8202},{type:o.CHAR,value:8232},{type:o.CHAR,value:8233},{type:o.CHAR,value:8239},{type:o.CHAR,value:8287},{type:o.CHAR,value:12288},{type:o.CHAR,value:65279}]};var NOTANYCHAR=function(){return[{type:o.CHAR,value:10},{type:o.CHAR,value:13},{type:o.CHAR,value:8232},{type:o.CHAR,value:8233}]};r.words=function(){return{type:o.SET,set:WORDS(),not:false}};r.notWords=function(){return{type:o.SET,set:WORDS(),not:true}};r.ints=function(){return{type:o.SET,set:INTS(),not:false}};r.notInts=function(){return{type:o.SET,set:INTS(),not:true}};r.whitespace=function(){return{type:o.SET,set:WHITESPACE(),not:false}};r.notWhitespace=function(){return{type:o.SET,set:WHITESPACE(),not:true}};r.anyChar=function(){return{type:o.SET,set:NOTANYCHAR(),not:true}}},1451:t=>{t.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},5874:(t,r,i)=>{var o=i(1451);var a=i(1408);var c="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var u={0:0,t:9,n:10,v:11,f:12,r:13};r.strToChars=function(t){var r=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;t=t.replace(r,(function(t,r,i,o,a,l,h,p){if(i){return t}var d=r?8:o?parseInt(o,16):a?parseInt(a,16):l?parseInt(l,8):h?c.indexOf(h):u[p];var m=String.fromCharCode(d);if(/[\[\]{}\^$.|?*+()]/.test(m)){m="\\"+m}return m}));return t};r.tokenizeClass=function(t,i){var c=[];var u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var l,h;while((l=u.exec(t))!=null){if(l[1]){c.push(a.words())}else if(l[2]){c.push(a.ints())}else if(l[3]){c.push(a.whitespace())}else if(l[4]){c.push(a.notWords())}else if(l[5]){c.push(a.notInts())}else if(l[6]){c.push(a.notWhitespace())}else if(l[7]){c.push({type:o.RANGE,from:(l[8]||l[9]).charCodeAt(0),to:l[10].charCodeAt(0)})}else if(h=l[12]){c.push({type:o.CHAR,value:h.charCodeAt(0)})}else{return[c,u.lastIndex]}}r.error(i,"Unterminated character class")};r.error=function(t,r){throw new SyntaxError("Invalid regular expression: /"+t+"/: "+r)}},4959:(t,r,i)=>{const o=i(9491);const a=i(1017);const c=i(7147);let u=undefined;try{u=i(1957)}catch(t){}const l={nosort:true,silent:true};let h=0;const p=process.platform==="win32";const defaults=t=>{const r=["unlink","chmod","stat","lstat","rmdir","readdir"];r.forEach((r=>{t[r]=t[r]||c[r];r=r+"Sync";t[r]=t[r]||c[r]}));t.maxBusyTries=t.maxBusyTries||3;t.emfileWait=t.emfileWait||1e3;if(t.glob===false){t.disableGlob=true}if(t.disableGlob!==true&&u===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}t.disableGlob=t.disableGlob||false;t.glob=t.glob||l};const rimraf=(t,r,i)=>{if(typeof r==="function"){i=r;r={}}o(t,"rimraf: missing path");o.equal(typeof t,"string","rimraf: path should be a string");o.equal(typeof i,"function","rimraf: callback function required");o(r,"rimraf: invalid options argument provided");o.equal(typeof r,"object","rimraf: options should be object");defaults(r);let a=0;let c=null;let l=0;const next=t=>{c=c||t;if(--l===0)i(c)};const afterGlob=(t,o)=>{if(t)return i(t);l=o.length;if(l===0)return i();o.forEach((t=>{const CB=i=>{if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&a<r.maxBusyTries){a++;return setTimeout((()=>rimraf_(t,r,CB)),a*100)}if(i.code==="EMFILE"&&h<r.emfileWait){return setTimeout((()=>rimraf_(t,r,CB)),h++)}if(i.code==="ENOENT")i=null}h=0;next(i)};rimraf_(t,r,CB)}))};if(r.disableGlob||!u.hasMagic(t))return afterGlob(null,[t]);r.lstat(t,((i,o)=>{if(!i)return afterGlob(null,[t]);u(t,r.glob,afterGlob)}))};const rimraf_=(t,r,i)=>{o(t);o(r);o(typeof i==="function");r.lstat(t,((o,a)=>{if(o&&o.code==="ENOENT")return i(null);if(o&&o.code==="EPERM"&&p)fixWinEPERM(t,r,o,i);if(a&&a.isDirectory())return rmdir(t,r,o,i);r.unlink(t,(o=>{if(o){if(o.code==="ENOENT")return i(null);if(o.code==="EPERM")return p?fixWinEPERM(t,r,o,i):rmdir(t,r,o,i);if(o.code==="EISDIR")return rmdir(t,r,o,i)}return i(o)}))}))};const fixWinEPERM=(t,r,i,a)=>{o(t);o(r);o(typeof a==="function");r.chmod(t,438,(o=>{if(o)a(o.code==="ENOENT"?null:i);else r.stat(t,((o,c)=>{if(o)a(o.code==="ENOENT"?null:i);else if(c.isDirectory())rmdir(t,r,i,a);else r.unlink(t,a)}))}))};const fixWinEPERMSync=(t,r,i)=>{o(t);o(r);try{r.chmodSync(t,438)}catch(t){if(t.code==="ENOENT")return;else throw i}let a;try{a=r.statSync(t)}catch(t){if(t.code==="ENOENT")return;else throw i}if(a.isDirectory())rmdirSync(t,r,i);else r.unlinkSync(t)};const rmdir=(t,r,i,a)=>{o(t);o(r);o(typeof a==="function");r.rmdir(t,(o=>{if(o&&(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM"))rmkids(t,r,a);else if(o&&o.code==="ENOTDIR")a(i);else a(o)}))};const rmkids=(t,r,i)=>{o(t);o(r);o(typeof i==="function");r.readdir(t,((o,c)=>{if(o)return i(o);let u=c.length;if(u===0)return r.rmdir(t,i);let l;c.forEach((o=>{rimraf(a.join(t,o),r,(o=>{if(l)return;if(o)return i(l=o);if(--u===0)r.rmdir(t,i)}))}))}))};const rimrafSync=(t,r)=>{r=r||{};defaults(r);o(t,"rimraf: missing path");o.equal(typeof t,"string","rimraf: path should be a string");o(r,"rimraf: missing options");o.equal(typeof r,"object","rimraf: options should be object");let i;if(r.disableGlob||!u.hasMagic(t)){i=[t]}else{try{r.lstatSync(t);i=[t]}catch(o){i=u.sync(t,r.glob)}}if(!i.length)return;for(let t=0;t<i.length;t++){const o=i[t];let a;try{a=r.lstatSync(o)}catch(t){if(t.code==="ENOENT")return;if(t.code==="EPERM"&&p)fixWinEPERMSync(o,r,t)}try{if(a&&a.isDirectory())rmdirSync(o,r,null);else r.unlinkSync(o)}catch(t){if(t.code==="ENOENT")return;if(t.code==="EPERM")return p?fixWinEPERMSync(o,r,t):rmdirSync(o,r,t);if(t.code!=="EISDIR")throw t;rmdirSync(o,r,t)}}};const rmdirSync=(t,r,i)=>{o(t);o(r);try{r.rmdirSync(t)}catch(o){if(o.code==="ENOENT")return;if(o.code==="ENOTDIR")throw i;if(o.code==="ENOTEMPTY"||o.code==="EEXIST"||o.code==="EPERM")rmkidsSync(t,r)}};const rmkidsSync=(t,r)=>{o(t);o(r);r.readdirSync(t).forEach((i=>rimrafSync(a.join(t,i),r)));const i=p?100:1;let c=0;do{let o=true;try{const a=r.rmdirSync(t,r);o=false;return a}finally{if(++c<i&&o)continue}}while(true)};t.exports=rimraf;rimraf.sync=rimrafSync},1867:(t,r,i)=>{
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},5634:(t,r,i)=>{var o=i(1279);var a=o.types;t.exports=function(t,r){if(!r)r={};var i=r.limit===undefined?25:r.limit;if(isRegExp(t))t=t.source;else if(typeof t!=="string")t=String(t);try{t=o(t)}catch(t){return false}var c=0;return function walk(t,r){if(t.type===a.REPETITION){r++;c++;if(r>1)return false;if(c>i)return false}if(t.options){for(var o=0,u=t.options.length;o<u;o++){var l=walk({stack:t.options[o]},r);if(!l)return false}}var h=t.stack||t.value&&t.value.stack;if(!h)return true;for(var o=0;o<h.length;o++){var l=walk(h[o],r);if(!l)return false}return true}(t,0)};function isRegExp(t){return{}.toString.call(t)==="[object RegExp]"}},1532:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}h("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}h("comp",this)}parse(t){const r=this.options.loose?c[u.COMPARATORLOOSE]:c[u.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new p(i[2],this.options.loose)}}toString(){return this.value}test(t){h("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new p(t,this.options)}catch(t){return false}}return l(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new d(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new d(this.value,r).test(t.semver)}const i=(this.operator===">="||this.operator===">")&&(t.operator===">="||t.operator===">");const o=(this.operator==="<="||this.operator==="<")&&(t.operator==="<="||t.operator==="<");const a=this.semver.version===t.semver.version;const c=(this.operator===">="||this.operator==="<=")&&(t.operator===">="||t.operator==="<=");const u=l(this.semver,"<",t.semver,r)&&(this.operator===">="||this.operator===">")&&(t.operator==="<="||t.operator==="<");const h=l(this.semver,">",t.semver,r)&&(this.operator==="<="||this.operator==="<")&&(t.operator===">="||t.operator===">");return i||o||a&&c||u||h}}t.exports=Comparator;const a=i(785);const{re:c,t:u}=i(9523);const l=i(5098);const h=i(427);const p=i(8088);const d=i(9828)},9828:(t,r,i)=>{class Range{constructor(t,r){r=c(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof u){this.raw=t.value;this.set=[[t]];this.format();return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t;this.set=t.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${t}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.format()}format(){this.range=this.set.map((t=>t.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(t){t=t.trim();const r=Object.keys(this.options).join(",");const i=`parseRange:${r}:${t}`;const o=a.get(i);if(o){return o}const c=this.options.loose;const h=c?p[d.HYPHENRANGELOOSE]:p[d.HYPHENRANGE];t=t.replace(h,hyphenReplace(this.options.includePrerelease));l("hyphen replace",t);t=t.replace(p[d.COMPARATORTRIM],m);l("comparator trim",t);t=t.replace(p[d.TILDETRIM],g);t=t.replace(p[d.CARETTRIM],v);t=t.split(/\s+/).join(" ");let y=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(c){y=y.filter((t=>{l("loose invalid filter",t,this.options);return!!t.match(p[d.COMPARATORLOOSE])}))}l("range list",y);const b=new Map;const w=y.map((t=>new u(t,this.options)));for(const t of w){if(isNullSet(t)){return[t]}b.set(t.value,t)}if(b.size>1&&b.has("")){b.delete("")}const x=[...b.values()];a.set(i,x);return x}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new h(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const o=i(7129);const a=new o({max:1e3});const c=i(785);const u=i(1532);const l=i(427);const h=i(8088);const{re:p,t:d,comparatorTrimReplace:m,tildeTrimReplace:g,caretTrimReplace:v}=i(9523);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{l("comp",t,r);t=replaceCarets(t,r);l("caret",t);t=replaceTildes(t,r);l("tildes",t);t=replaceXRanges(t,r);l("xrange",t);t=replaceStars(t,r);l("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?p[d.TILDELOOSE]:p[d.TILDE];return t.replace(i,((r,i,o,a,c)=>{l("tilde",t,r,i,o,a,c);let u;if(isX(i)){u=""}else if(isX(o)){u=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){u=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(c){l("replaceTilde pr",c);u=`>=${i}.${o}.${a}-${c} <${i}.${+o+1}.0-0`}else{u=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}l("tilde return",u);return u}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{l("caret",t,r);const i=r.loose?p[d.CARETLOOSE]:p[d.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,c,u)=>{l("caret",t,r,i,a,c,u);let h;if(isX(i)){h=""}else if(isX(a)){h=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(c)){if(i==="0"){h=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{h=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(u){l("replaceCaret pr",u);if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${c}-${u} <${i}.${a}.${+c+1}-0`}else{h=`>=${i}.${a}.${c}-${u} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${c}-${u} <${+i+1}.0.0-0`}}else{l("no pr");if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${c}${o} <${i}.${a}.${+c+1}-0`}else{h=`>=${i}.${a}.${c}${o} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${c} <${+i+1}.0.0-0`}}l("caret return",h);return h}))};const replaceXRanges=(t,r)=>{l("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?p[d.XRANGELOOSE]:p[d.XRANGE];return t.replace(i,((i,o,a,c,u,h)=>{l("xRange",t,i,o,a,c,u,h);const p=isX(a);const d=p||isX(c);const m=d||isX(u);const g=m;if(o==="="&&g){o=""}h=r.includePrerelease?"-0":"";if(p){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&g){if(d){c=0}u=0;if(o===">"){o=">=";if(d){a=+a+1;c=0;u=0}else{c=+c+1;u=0}}else if(o==="<="){o="<";if(d){a=+a+1}else{c=+c+1}}if(o==="<"){h="-0"}i=`${o+a}.${c}.${u}${h}`}else if(d){i=`>=${a}.0.0${h} <${+a+1}.0.0-0`}else if(m){i=`>=${a}.${c}.0${h} <${a}.${+c+1}.0-0`}l("xRange return",i);return i}))};const replaceStars=(t,r)=>{l("replaceStars",t,r);return t.trim().replace(p[d.STAR],"")};const replaceGTE0=(t,r)=>{l("replaceGTE0",t,r);return t.trim().replace(p[r.includePrerelease?d.GTE0PRE:d.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,c,u,l,h,p,d,m,g,v)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(c)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(u){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(p)){h=""}else if(isX(d)){h=`<${+p+1}.0.0-0`}else if(isX(m)){h=`<${p}.${+d+1}.0-0`}else if(g){h=`<=${p}.${d}.${m}-${g}`}else if(t){h=`<${p}.${d}.${+m+1}-0`}else{h=`<=${h}`}return`${i} ${h}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){l(t[i].semver);if(t[i].semver===u.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},8088:(t,r,i)=>{const o=i(427);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:c}=i(2293);const{re:u,t:l}=i(9523);const h=i(785);const{compareIdentifiers:p}=i(2463);class SemVer{constructor(t,r){r=h(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid Version: ${t}`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?u[l.LOOSE]:u[l.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>c||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>c||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>c||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<c){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return p(this.major,t.major)||p(this.minor,t.minor)||p(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return p(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return p(i,a)}}while(++r)}inc(t,r){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r);this.inc("pre",r);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r)}this.inc("pre",r);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":if(this.prerelease.length===0){this.prerelease=[0]}else{let t=this.prerelease.length;while(--t>=0){if(typeof this.prerelease[t]==="number"){this.prerelease[t]++;t=-2}}if(t===-1){this.prerelease.push(0)}}if(r){if(p(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=[r,0]}}else{this.prerelease=[r,0]}}break;default:throw new Error(`invalid increment argument: ${t}`)}this.format();this.raw=this.version;return this}}t.exports=SemVer},8848:(t,r,i)=>{const o=i(5925);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},5098:(t,r,i)=>{const o=i(1898);const a=i(6017);const c=i(4123);const u=i(5522);const l=i(194);const h=i(7520);const cmp=(t,r,i,p)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,p);case"!=":return a(t,i,p);case">":return c(t,i,p);case">=":return u(t,i,p);case"<":return l(t,i,p);case"<=":return h(t,i,p);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},3466:(t,r,i)=>{const o=i(8088);const a=i(5925);const{re:c,t:u}=i(9523);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(c[u.COERCE])}else{let r;while((r=c[u.COERCERTL].exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||r.index+r[0].length!==i.index+i[0].length){i=r}c[u.COERCERTL].lastIndex=r.index+r[1].length+r[2].length}c[u.COERCERTL].lastIndex=-1}if(i===null){return null}return a(`${i[2]}.${i[3]||"0"}.${i[4]||"0"}`,r)};t.exports=coerce},2156:(t,r,i)=>{const o=i(8088);const compareBuild=(t,r,i)=>{const a=new o(t,i);const c=new o(r,i);return a.compare(c)||a.compareBuild(c)};t.exports=compareBuild},2804:(t,r,i)=>{const o=i(4309);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},4309:(t,r,i)=>{const o=i(8088);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},4297:(t,r,i)=>{const o=i(5925);const a=i(1898);const diff=(t,r)=>{if(a(t,r)){return null}else{const i=o(t);const a=o(r);const c=i.prerelease.length||a.prerelease.length;const u=c?"pre":"";const l=c?"prerelease":"";for(const t in i){if(t==="major"||t==="minor"||t==="patch"){if(i[t]!==a[t]){return u+t}}}return l}};t.exports=diff},1898:(t,r,i)=>{const o=i(4309);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},4123:(t,r,i)=>{const o=i(4309);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},5522:(t,r,i)=>{const o=i(4309);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},900:(t,r,i)=>{const o=i(8088);const inc=(t,r,i,a)=>{if(typeof i==="string"){a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a).version}catch(t){return null}};t.exports=inc},194:(t,r,i)=>{const o=i(4309);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},7520:(t,r,i)=>{const o=i(4309);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},6688:(t,r,i)=>{const o=i(8088);const major=(t,r)=>new o(t,r).major;t.exports=major},8447:(t,r,i)=>{const o=i(8088);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},6017:(t,r,i)=>{const o=i(4309);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},5925:(t,r,i)=>{const{MAX_LENGTH:o}=i(2293);const{re:a,t:c}=i(9523);const u=i(8088);const l=i(785);const parse=(t,r)=>{r=l(r);if(t instanceof u){return t}if(typeof t!=="string"){return null}if(t.length>o){return null}const i=r.loose?a[c.LOOSE]:a[c.FULL];if(!i.test(t)){return null}try{return new u(t,r)}catch(t){return null}};t.exports=parse},2866:(t,r,i)=>{const o=i(8088);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},4016:(t,r,i)=>{const o=i(5925);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},6417:(t,r,i)=>{const o=i(4309);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},8701:(t,r,i)=>{const o=i(2156);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},6055:(t,r,i)=>{const o=i(9828);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},1426:(t,r,i)=>{const o=i(2156);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},9601:(t,r,i)=>{const o=i(5925);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},1383:(t,r,i)=>{const o=i(9523);t.exports={re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i(2293).SEMVER_SPEC_VERSION,SemVer:i(8088),compareIdentifiers:i(2463).compareIdentifiers,rcompareIdentifiers:i(2463).rcompareIdentifiers,parse:i(5925),valid:i(9601),clean:i(8848),inc:i(900),diff:i(4297),major:i(6688),minor:i(8447),patch:i(2866),prerelease:i(4016),compare:i(4309),rcompare:i(6417),compareLoose:i(2804),compareBuild:i(2156),sort:i(1426),rsort:i(8701),gt:i(4123),lt:i(194),eq:i(1898),neq:i(6017),gte:i(5522),lte:i(7520),cmp:i(5098),coerce:i(3466),Comparator:i(1532),Range:i(9828),satisfies:i(6055),toComparators:i(2706),maxSatisfying:i(579),minSatisfying:i(832),minVersion:i(4179),validRange:i(2098),outside:i(420),gtr:i(9380),ltr:i(3323),intersects:i(7008),simplifyRange:i(5297),subset:i(7863)}},2293:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;t.exports={SEMVER_SPEC_VERSION:r,MAX_LENGTH:i,MAX_SAFE_INTEGER:o,MAX_SAFE_COMPONENT_LENGTH:a}},427:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},2463:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},785:t=>{const r=["includePrerelease","loose","rtl"];const parseOptions=t=>!t?{}:typeof t!=="object"?{loose:true}:r.filter((r=>t[r])).reduce(((t,r)=>{t[r]=true;return t}),{});t.exports=parseOptions},9523:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o}=i(2293);const a=i(427);r=t.exports={};const c=r.re=[];const u=r.src=[];const l=r.t={};let h=0;const createToken=(t,r,i)=>{const o=h++;a(t,o,r);l[t]=o;u[o]=r;c[o]=new RegExp(r,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","[0-9]+");createToken("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");createToken("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})\\.`+`(${u[l.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.`+`(${u[l.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER","[0-9A-Za-z-]+");createToken("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`);createToken("FULL",`^${u[l.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`);createToken("LOOSE",`^${u[l.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:\\.(${u[l.XRANGEIDENTIFIER]})`+`(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})`+`(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`);createToken("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`+`(?:$|[^\\d])`);createToken("COERCERTL",u[l.COERCE],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${u[l.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9380:(t,r,i)=>{const o=i(420);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},7008:(t,r,i)=>{const o=i(9828);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r)};t.exports=intersects},3323:(t,r,i)=>{const o=i(420);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},579:(t,r,i)=>{const o=i(8088);const a=i(9828);const maxSatisfying=(t,r,i)=>{let c=null;let u=null;let l=null;try{l=new a(r,i)}catch(t){return null}t.forEach((t=>{if(l.test(t)){if(!c||u.compare(t)===-1){c=t;u=new o(c,i)}}}));return c};t.exports=maxSatisfying},832:(t,r,i)=>{const o=i(8088);const a=i(9828);const minSatisfying=(t,r,i)=>{let c=null;let u=null;let l=null;try{l=new a(r,i)}catch(t){return null}t.forEach((t=>{if(l.test(t)){if(!c||u.compare(t)===1){c=t;u=new o(c,i)}}}));return c};t.exports=minSatisfying},4179:(t,r,i)=>{const o=i(8088);const a=i(9828);const c=i(4123);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let u=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!u||c(r,u)){u=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(u&&(!i||c(i,u))){i=u}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},420:(t,r,i)=>{const o=i(8088);const a=i(1532);const{ANY:c}=a;const u=i(9828);const l=i(6055);const h=i(4123);const p=i(194);const d=i(7520);const m=i(5522);const outside=(t,r,i,g)=>{t=new o(t,g);r=new u(r,g);let v,y,b,w,x;switch(i){case">":v=h;y=d;b=p;w=">";x=">=";break;case"<":v=p;y=m;b=h;w="<";x="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(l(t,r,g)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let u=null;let l=null;o.forEach((t=>{if(t.semver===c){t=new a(">=0.0.0")}u=u||t;l=l||t;if(v(t.semver,u.semver,g)){u=t}else if(b(t.semver,l.semver,g)){l=t}}));if(u.operator===w||u.operator===x){return false}if((!l.operator||l.operator===w)&&y(t,l.semver)){return false}else if(l.operator===x&&b(t,l.semver)){return false}}return true};t.exports=outside},5297:(t,r,i)=>{const o=i(6055);const a=i(4309);t.exports=(t,r,i)=>{const c=[];let u=null;let l=null;const h=t.sort(((t,r)=>a(t,r,i)));for(const t of h){const a=o(t,r,i);if(a){l=t;if(!u){u=t}}else{if(l){c.push([u,l])}l=null;u=null}}if(u){c.push([u,null])}const p=[];for(const[t,r]of c){if(t===r){p.push(t)}else if(!r&&t===h[0]){p.push("*")}else if(!r){p.push(`>=${t}`)}else if(t===h[0]){p.push(`<=${r}`)}else{p.push(`${t} - ${r}`)}}const d=p.join(" || ");const m=typeof r.raw==="string"?r.raw:String(r);return d.length<m.length?d:r}},7863:(t,r,i)=>{const o=i(9828);const a=i(1532);const{ANY:c}=a;const u=i(6055);const l=i(4309);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===c){if(r.length===1&&r[0].semver===c){return true}else if(i.includePrerelease){t=[new a(">=0.0.0-0")]}else{t=[new a(">=0.0.0")]}}if(r.length===1&&r[0].semver===c){if(i.includePrerelease){return true}else{r=[new a(">=0.0.0")]}}const o=new Set;let h,p;for(const r of t){if(r.operator===">"||r.operator===">="){h=higherGT(h,r,i)}else if(r.operator==="<"||r.operator==="<="){p=lowerLT(p,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let d;if(h&&p){d=l(h.semver,p.semver,i);if(d>0){return null}else if(d===0&&(h.operator!==">="||p.operator!=="<=")){return null}}for(const t of o){if(h&&!u(t,String(h),i)){return null}if(p&&!u(t,String(p),i)){return null}for(const o of r){if(!u(t,String(o),i)){return false}}return true}let m,g;let v,y;let b=p&&!i.includePrerelease&&p.semver.prerelease.length?p.semver:false;let w=h&&!i.includePrerelease&&h.semver.prerelease.length?h.semver:false;if(b&&b.prerelease.length===1&&p.operator==="<"&&b.prerelease[0]===0){b=false}for(const t of r){y=y||t.operator===">"||t.operator===">=";v=v||t.operator==="<"||t.operator==="<=";if(h){if(w){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch){w=false}}if(t.operator===">"||t.operator===">="){m=higherGT(h,t,i);if(m===t&&m!==h){return false}}else if(h.operator===">="&&!u(h.semver,String(t),i)){return false}}if(p){if(b){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===b.major&&t.semver.minor===b.minor&&t.semver.patch===b.patch){b=false}}if(t.operator==="<"||t.operator==="<="){g=lowerLT(p,t,i);if(g===t&&g!==p){return false}}else if(p.operator==="<="&&!u(p.semver,String(t),i)){return false}}if(!t.operator&&(p||h)&&d!==0){return false}}if(h&&v&&!p&&d!==0){return false}if(p&&y&&!h&&d!==0){return false}if(w||b){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=l(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=l(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},2706:(t,r,i)=>{const o=i(9828);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},2098:(t,r,i)=>{const o=i(9828);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},4269:(t,r,i)=>{"use strict";
/*!
 * set-value <https://github.com/jonschlinkert/set-value>
 *
 * Copyright (c) 2014-2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(4960);var a=i(7512);var c=i(7810);var u=i(429);t.exports=function(t,r,i){if(!u(t)){return t}if(Array.isArray(r)){r=[].concat.apply([],r).join(".")}if(typeof r!=="string"){return t}var l=o(r,{sep:".",brackets:true}).filter(isValidKey);var h=l.length;var p=-1;var d=t;while(++p<h){var m=l[p];if(p!==h-1){if(!u(d[m])){d[m]={}}d=d[m];continue}if(c(d[m])&&c(i)){d[m]=a({},d[m],i)}else{d[m]=i}}return t};function isValidKey(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}},7032:(t,r,i)=>{"use strict";const o=i(2638);t.exports=(t="")=>{const r=t.match(o);if(!r){return null}const[i,a]=r[0].replace(/#! ?/,"").split(" ");const c=i.split("/").pop();if(c==="env"){return a}return a?`${c} ${a}`:c}},2638:t=>{"use strict";t.exports=/^#!(.*)/},9571:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const c={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const u={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:c,erase:u,beep:o}},5244:(t,r,i)=>{"use strict";var o=i(5509);var a=i(5432);var c=i(2297);var u;function Node(t,r,i){if(typeof r!=="string"){i=r;r=null}a(this,"parent",i);a(this,"isNode",true);a(this,"expect",null);if(typeof r!=="string"&&o(t)){lazyKeys();var c=Object.keys(t);for(var l=0;l<c.length;l++){var h=c[l];if(u.indexOf(h)===-1){this[h]=t[h]}}}else{this.type=r;this.val=t}}Node.isNode=function(t){return c.isNode(t)};Node.prototype.define=function(t,r){a(this,t,r);return this};Node.prototype.isEmpty=function(t){return c.isEmpty(this,t)};Node.prototype.push=function(t){assert(Node.isNode(t),"expected node to be an instance of Node");a(t,"parent",this);this.nodes=this.nodes||[];return this.nodes.push(t)};Node.prototype.unshift=function(t){assert(Node.isNode(t),"expected node to be an instance of Node");a(t,"parent",this);this.nodes=this.nodes||[];return this.nodes.unshift(t)};Node.prototype.pop=function(){return this.nodes&&this.nodes.pop()};Node.prototype.shift=function(){return this.nodes&&this.nodes.shift()};Node.prototype.remove=function(t){assert(Node.isNode(t),"expected node to be an instance of Node");this.nodes=this.nodes||[];var r=t.index;if(r!==-1){t.index=-1;return this.nodes.splice(r,1)}return null};Node.prototype.find=function(t){return c.findNode(this.nodes,t)};Node.prototype.isType=function(t){return c.isType(this,t)};Node.prototype.hasType=function(t){return c.hasType(this,t)};Object.defineProperty(Node.prototype,"siblings",{set:function(){throw new Error("node.siblings is a getter and cannot be defined")},get:function(){return this.parent?this.parent.nodes:null}});Object.defineProperty(Node.prototype,"index",{set:function(t){a(this,"idx",t)},get:function(){if(!Array.isArray(this.siblings)){return-1}var t=this.idx!==-1?this.siblings[this.idx]:null;if(t!==this){this.idx=this.siblings.indexOf(this)}return this.idx}});Object.defineProperty(Node.prototype,"prev",{set:function(){throw new Error("node.prev is a getter and cannot be defined")},get:function(){if(Array.isArray(this.siblings)){return this.siblings[this.index-1]||this.parent.prev}return null}});Object.defineProperty(Node.prototype,"next",{set:function(){throw new Error("node.next is a getter and cannot be defined")},get:function(){if(Array.isArray(this.siblings)){return this.siblings[this.index+1]||this.parent.next}return null}});Object.defineProperty(Node.prototype,"first",{get:function(){return this.nodes?this.nodes[0]:null}});Object.defineProperty(Node.prototype,"last",{get:function(){return this.nodes?c.last(this.nodes):null}});Object.defineProperty(Node.prototype,"scope",{get:function(){if(this.isScope!==true){return this.parent?this.parent.scope:this}return this}});function lazyKeys(){if(!u){u=Object.getOwnPropertyNames(Node.prototype)}}function assert(t,r){if(!t)throw new Error(r)}r=t.exports=Node},5432:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(567);t.exports=function defineProperty(t,r,i){if(typeof t!=="object"&&typeof t!=="function"){throw new TypeError("expected an object or function.")}if(typeof r!=="string"){throw new TypeError("expected `prop` to be a string.")}if(o(i)&&("set"in i||"get"in i)){return Object.defineProperty(t,r,i)}return Object.defineProperty(t,r,{configurable:true,enumerable:false,writable:true,value:i})}},2297:(t,r,i)=>{"use strict";var o=i(6961);var a=t.exports;a.isNode=function(t){return o(t)==="object"&&t.isNode===true};a.noop=function(t){append(this,"",t)};a.identity=function(t){append(this,t.val,t)};a.append=function(t){return function(r){append(this,t,r)}};a.toNoop=function(t,r){if(r){t.nodes=r}else{delete t.nodes;t.type="text";t.val=""}};a.visit=function(t,r){assert(a.isNode(t),"expected node to be an instance of Node");assert(isFunction(r),"expected a visitor function");r(t);return t.nodes?a.mapVisit(t,r):t};a.mapVisit=function(t,r){assert(a.isNode(t),"expected node to be an instance of Node");assert(isArray(t.nodes),"expected node.nodes to be an array");assert(isFunction(r),"expected a visitor function");for(var i=0;i<t.nodes.length;i++){a.visit(t.nodes[i],r)}return t};a.addOpen=function(t,r,i,o){assert(a.isNode(t),"expected node to be an instance of Node");assert(isFunction(r),"expected Node to be a constructor function");if(typeof i==="function"){o=i;i=""}if(typeof o==="function"&&!o(t))return;var c=new r({type:t.type+".open",val:i});var u=t.unshift||t.unshiftNode;if(typeof u==="function"){u.call(t,c)}else{a.unshiftNode(t,c)}return c};a.addClose=function(t,r,i,o){assert(a.isNode(t),"expected node to be an instance of Node");assert(isFunction(r),"expected Node to be a constructor function");if(typeof i==="function"){o=i;i=""}if(typeof o==="function"&&!o(t))return;var c=new r({type:t.type+".close",val:i});var u=t.push||t.pushNode;if(typeof u==="function"){u.call(t,c)}else{a.pushNode(t,c)}return c};a.wrapNodes=function(t,r,i){assert(a.isNode(t),"expected node to be an instance of Node");assert(isFunction(r),"expected Node to be a constructor function");a.addOpen(t,r,i);a.addClose(t,r,i);return t};a.pushNode=function(t,r){assert(a.isNode(t),"expected parent node to be an instance of Node");assert(a.isNode(r),"expected node to be an instance of Node");r.define("parent",t);t.nodes=t.nodes||[];t.nodes.push(r);return r};a.unshiftNode=function(t,r){assert(a.isNode(t),"expected parent node to be an instance of Node");assert(a.isNode(r),"expected node to be an instance of Node");r.define("parent",t);t.nodes=t.nodes||[];t.nodes.unshift(r)};a.popNode=function(t){assert(a.isNode(t),"expected node to be an instance of Node");if(typeof t.pop==="function"){return t.pop()}return t.nodes&&t.nodes.pop()};a.shiftNode=function(t){assert(a.isNode(t),"expected node to be an instance of Node");if(typeof t.shift==="function"){return t.shift()}return t.nodes&&t.nodes.shift()};a.removeNode=function(t,r){assert(a.isNode(t),"expected parent.node to be an instance of Node");assert(a.isNode(r),"expected node to be an instance of Node");if(!t.nodes){return null}if(typeof t.remove==="function"){return t.remove(r)}var i=t.nodes.indexOf(r);if(i!==-1){return t.nodes.splice(i,1)}};a.isType=function(t,r){assert(a.isNode(t),"expected node to be an instance of Node");switch(o(r)){case"array":var i=r.slice();for(var c=0;c<i.length;c++){if(a.isType(t,i[c])){return true}}return false;case"string":return t.type===r;case"regexp":return r.test(t.type);default:{throw new TypeError('expected "type" to be an array, string or regexp')}}};a.hasType=function(t,r){assert(a.isNode(t),"expected node to be an instance of Node");if(!Array.isArray(t.nodes))return false;for(var i=0;i<t.nodes.length;i++){if(a.isType(t.nodes[i],r)){return true}}return false};a.firstOfType=function(t,r){for(var i=0;i<t.length;i++){var o=t[i];if(a.isType(o,r)){return o}}};a.findNode=function(t,r){if(!Array.isArray(t)){return null}if(typeof r==="number"){return t[r]}return a.firstOfType(t,r)};a.isOpen=function(t){assert(a.isNode(t),"expected node to be an instance of Node");return t.type.slice(-5)===".open"};a.isClose=function(t){assert(a.isNode(t),"expected node to be an instance of Node");return t.type.slice(-6)===".close"};a.hasOpen=function(t){assert(a.isNode(t),"expected node to be an instance of Node");var r=t.first||t.nodes?t.nodes[0]:null;if(a.isNode(r)){return r.type===t.type+".open"}return false};a.hasClose=function(t){assert(a.isNode(t),"expected node to be an instance of Node");var r=t.last||t.nodes?t.nodes[t.nodes.length-1]:null;if(a.isNode(r)){return r.type===t.type+".close"}return false};a.hasOpenAndClose=function(t){return a.hasOpen(t)&&a.hasClose(t)};a.addType=function(t,r){assert(a.isNode(r),"expected node to be an instance of Node");assert(isObject(t),"expected state to be an object");var i=r.parent?r.parent.type:r.type.replace(/\.open$/,"");if(!t.hasOwnProperty("inside")){t.inside={}}if(!t.inside.hasOwnProperty(i)){t.inside[i]=[]}var o=t.inside[i];o.push(r);return o};a.removeType=function(t,r){assert(a.isNode(r),"expected node to be an instance of Node");assert(isObject(t),"expected state to be an object");var i=r.parent?r.parent.type:r.type.replace(/\.close$/,"");if(t.inside.hasOwnProperty(i)){return t.inside[i].pop()}};a.isEmpty=function(t,r){assert(a.isNode(t),"expected node to be an instance of Node");if(!Array.isArray(t.nodes)){if(t.type!=="text"){return true}if(typeof r==="function"){return r(t,t.parent)}return!a.trim(t.val)}for(var i=0;i<t.nodes.length;i++){var o=t.nodes[i];if(a.isOpen(o)||a.isClose(o)){continue}if(!a.isEmpty(o,r)){return false}}return true};a.isInsideType=function(t,r){assert(isObject(t),"expected state to be an object");assert(isString(r),"expected type to be a string");if(!t.hasOwnProperty("inside")){return false}if(!t.inside.hasOwnProperty(r)){return false}return t.inside[r].length>0};a.isInside=function(t,r,i){assert(a.isNode(r),"expected node to be an instance of Node");assert(isObject(t),"expected state to be an object");if(Array.isArray(i)){for(var c=0;c<i.length;c++){if(a.isInside(t,r,i[c])){return true}}return false}var u=r.parent;if(typeof i==="string"){return u&&u.type===i||a.isInsideType(t,i)}if(o(i)==="regexp"){if(u&&u.type&&i.test(u.type)){return true}var l=Object.keys(t.inside);var h=l.length;var p=-1;while(++p<h){var d=l[p];var m=t.inside[d];if(Array.isArray(m)&&m.length!==0&&i.test(d)){return true}}}return false};a.last=function(t,r){return t[t.length-(r||1)]};a.arrayify=function(t){if(typeof t==="string"&&t!==""){return[t]}if(!Array.isArray(t)){return[]}return t};a.stringify=function(t){return a.arrayify(t).join(",")};a.trim=function(t){return typeof t==="string"?t.trim():""};function isObject(t){return o(t)==="object"}function isString(t){return typeof t==="string"}function isFunction(t){return typeof t==="function"}function isArray(t){return Array.isArray(t)}function append(t,r,i){if(typeof t.append!=="function"){return t.emit(r,i)}return t.append(r,i)}function assert(t,r){if(!t)throw new Error(r)}},2403:(t,r,i)=>{"use strict";var o=i(842);var a=i(6967);var c=i(9424);var u=i(182);var l=i(3620);var h={};var p={};function Snapdragon(t){o.call(this,null,t);this.options=l.extend({source:"string"},this.options);this.compiler=new c(this.options);this.parser=new u(this.options);Object.defineProperty(this,"compilers",{get:function(){return this.compiler.compilers}});Object.defineProperty(this,"parsers",{get:function(){return this.parser.parsers}});Object.defineProperty(this,"regex",{get:function(){return this.parser.regex}})}o.extend(Snapdragon);Snapdragon.prototype.capture=function(){return this.parser.capture.apply(this.parser,arguments)};Snapdragon.prototype.use=function(t){t.call(this,this);return this};Snapdragon.prototype.parse=function(t,r){this.options=l.extend({},this.options,r);var i=this.parser.parse(t,this.options);a(i,"parser",this.parser);return i};Snapdragon.prototype.compile=function(t,r){this.options=l.extend({},this.options,r);var i=this.compiler.compile(t,this.options);a(i,"compiler",this.compiler);return i};t.exports=Snapdragon;t.exports.Compiler=c;t.exports.Parser=u},9424:(t,r,i)=>{"use strict";var o=i(9656);var a=i(6967);var c=i(5830)("snapdragon:compiler");var u=i(3620);function Compiler(t,r){c("initializing",__filename);this.options=u.extend({source:"string"},t);this.state=r||{};this.compilers={};this.output="";this.set("eos",(function(t){return this.emit(t.val,t)}));this.set("noop",(function(t){return this.emit(t.val,t)}));this.set("bos",(function(t){return this.emit(t.val,t)}));o(this)}Compiler.prototype={error:function(t,r){var i=r.position||{start:{column:0}};var o=this.options.source+" column:"+i.start.column+": "+t;var a=new Error(o);a.reason=t;a.column=i.start.column;a.source=this.pattern;if(this.options.silent){this.errors.push(a)}else{throw a}},define:function(t,r){a(this,t,r);return this},emit:function(t,r){this.output+=t;return t},set:function(t,r){this.compilers[t]=r;return this},get:function(t){return this.compilers[t]},prev:function(t){return this.ast.nodes[this.idx-(t||1)]||{type:"bos",val:""}},next:function(t){return this.ast.nodes[this.idx+(t||1)]||{type:"eos",val:""}},visit:function(t,r,i){var o=this.compilers[t.type];this.idx=i;if(typeof o!=="function"){throw this.error('compiler "'+t.type+'" is not registered',t)}return o.call(this,t,r,i)},mapVisit:function(t){if(!Array.isArray(t)){throw new TypeError("expected an array")}var r=t.length;var i=-1;while(++i<r){this.visit(t[i],t,i)}return this},compile:function(t,r){var o=u.extend({},this.options,r);this.ast=t;this.parsingErrors=this.ast.errors;this.output="";if(o.sourcemap){var a=i(8240);a(this);this.mapVisit(this.ast.nodes);this.applySourceMaps();this.map=o.sourcemap==="generator"?this.map:this.map.toJSON();return this}this.mapVisit(this.ast.nodes);return this}};t.exports=Compiler},182:(t,r,i)=>{"use strict";var o=i(9656);var a=i(3837);var c=i(4643);var u=i(6967);var l=i(5830)("snapdragon:parser");var h=i(6252);var p=i(3620);function Parser(t){l("initializing",__filename);this.options=p.extend({source:"string"},t);this.init(this.options);o(this)}Parser.prototype={constructor:Parser,init:function(t){this.orig="";this.input="";this.parsed="";this.column=1;this.line=1;this.regex=new c;this.errors=this.errors||[];this.parsers=this.parsers||{};this.types=this.types||[];this.sets=this.sets||{};this.fns=this.fns||[];this.currentType="root";var r=this.position();this.bos=r({type:"bos",val:""});this.ast={type:"root",errors:this.errors,nodes:[this.bos]};u(this.bos,"parent",this.ast);this.nodes=[this.ast];this.count=0;this.setCount=0;this.stack=[]},error:function(t,r){var i=r.position||{start:{column:0,line:0}};var o=i.start.line;var a=i.start.column;var c=this.options.source;var u=c+" <line:"+o+" column:"+a+">: "+t;var l=new Error(u);l.source=c;l.reason=t;l.pos=i;if(this.options.silent){this.errors.push(l)}else{throw l}},define:function(t,r){u(this,t,r);return this},position:function(){var t={line:this.line,column:this.column};var r=this;return function(i){u(i,"position",new h(t,r));return i}},set:function(t,r){if(this.types.indexOf(t)===-1){this.types.push(t)}this.parsers[t]=r.bind(this);return this},get:function(t){return this.parsers[t]},push:function(t,r){this.sets[t]=this.sets[t]||[];this.count++;this.stack.push(r);return this.sets[t].push(r)},pop:function(t){this.sets[t]=this.sets[t]||[];this.count--;this.stack.pop();return this.sets[t].pop()},isInside:function(t){this.sets[t]=this.sets[t]||[];return this.sets[t].length>0},isType:function(t,r){return t&&t.type===r},prev:function(t){return this.stack.length>0?p.last(this.stack,t):p.last(this.nodes,t)},consume:function(t){this.input=this.input.substr(t)},updatePosition:function(t,r){var i=t.match(/\n/g);if(i)this.line+=i.length;var o=t.lastIndexOf("\n");this.column=~o?r-o:this.column+r;this.parsed+=t;this.consume(r)},match:function(t){var r=t.exec(this.input);if(r){this.updatePosition(r[0],r[0].length);return r}},capture:function(t,r){if(typeof r==="function"){return this.set.apply(this,arguments)}this.regex.set(t,r);this.set(t,function(){var i=this.parsed;var o=this.position();var a=this.match(r);if(!a||!a[0])return;var c=this.prev();var l=o({type:t,val:a[0],parsed:i,rest:this.input});if(a[1]){l.inner=a[1]}u(l,"inside",this.stack.length>0);u(l,"parent",c);c.nodes.push(l)}.bind(this));return this},capturePair:function(t,r,i,o){this.sets[t]=this.sets[t]||[];this.set(t+".open",(function(){var i=this.parsed;var a=this.position();var c=this.match(r);if(!c||!c[0])return;var l=c[0];this.setCount++;this.specialChars=true;var h=a({type:t+".open",val:l,rest:this.input});if(typeof c[1]!=="undefined"){h.inner=c[1]}var p=this.prev();var d=a({type:t,nodes:[h]});u(d,"rest",this.input);u(d,"parsed",i);u(d,"prefix",c[1]);u(d,"parent",p);u(h,"parent",d);if(typeof o==="function"){o.call(this,h,d)}this.push(t,d);p.nodes.push(d)}));this.set(t+".close",(function(){var r=this.position();var o=this.match(i);if(!o||!o[0])return;var a=this.pop(t);var c=r({type:t+".close",rest:this.input,suffix:o[1],val:o[0]});if(!this.isType(a,t)){if(this.options.strict){throw new Error('missing opening "'+t+'"')}this.setCount--;c.escaped=true;return c}if(c.suffix==="\\"){a.escaped=true;c.escaped=true}a.nodes.push(c);u(c,"parent",a)}));return this},eos:function(){var t=this.position();if(this.input)return;var r=this.prev();while(r.type!=="root"&&!r.visited){if(this.options.strict===true){throw new SyntaxError("invalid syntax:"+a.inspect(r,null,2))}if(!hasDelims(r)){r.parent.escaped=true;r.escaped=true}visit(r,(function(t){if(!hasDelims(t.parent)){t.parent.escaped=true;t.escaped=true}}));r=r.parent}var i=t({type:"eos",val:this.append||""});u(i,"parent",this.ast);return i},next:function(){var t=this.parsed;var r=this.types.length;var i=-1;var o;while(++i<r){if(o=this.parsers[this.types[i]].call(this)){u(o,"rest",this.input);u(o,"parsed",t);this.last=o;return o}}},parse:function(t){if(typeof t!=="string"){throw new TypeError("expected a string")}this.init(this.options);this.orig=t;this.input=t;var r=this;function parse(){t=r.input;var i=r.next();if(i){var o=r.prev();if(o){u(i,"parent",o);if(o.nodes){o.nodes.push(i)}}if(r.sets.hasOwnProperty(o.type)){r.currentType=o.type}}if(r.input&&t===r.input){throw new Error('no parsers registered for: "'+r.input.slice(0,5)+'"')}}while(this.input)parse();if(this.stack.length&&this.options.strict){var i=this.stack.pop();throw this.error("missing opening "+i.type+': "'+this.orig+'"')}var o=this.eos();var a=this.prev();if(a.type!=="eos"){this.ast.nodes.push(o)}return this.ast}};function visit(t,r){if(!t.visited){u(t,"visited",true);return t.nodes?mapVisit(t.nodes,r):r(t)}return t}function mapVisit(t,r){var i=t.length;var o=-1;while(++o<i){visit(t[o],r)}}function hasOpen(t){return t.nodes&&t.nodes[0].type===t.type+".open"}function hasClose(t){return t.nodes&&p.last(t.nodes).type===t.type+".close"}function hasDelims(t){return hasOpen(t)&&hasClose(t)}t.exports=Parser},6252:(t,r,i)=>{"use strict";var o=i(6967);t.exports=function Position(t,r){this.start=t;this.end={line:r.line,column:r.column};o(this,"content",r.orig);o(this,"source",r.options.source)}},8240:(t,r,i)=>{"use strict";var o=i(7147);var a=i(1017);var c=i(6967);var u=i(3620);t.exports=mixin;function mixin(t){c(t,"_comment",t.comment);t.map=new u.SourceMap.SourceMapGenerator;t.position={line:1,column:1};t.content={};t.files={};for(var i in r){c(t,i,r[i])}}r.updatePosition=function(t){var r=t.match(/\n/g);if(r)this.position.line+=r.length;var i=t.lastIndexOf("\n");this.position.column=~i?t.length-i:this.position.column+t.length};r.emit=function(t,r){var i=r.position||{};var o=i.source;if(o){if(i.filepath){o=u.unixify(i.filepath)}this.map.addMapping({source:o,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:i.start.line,column:i.start.column-1}});if(i.content){this.addContent(o,i)}if(i.filepath){this.addFile(o,i)}this.updatePosition(t);this.output+=t}return t};r.addFile=function(t,r){if(typeof r.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.files,t))return;this.files[t]=r.content};r.addContent=function(t,r){if(typeof r.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.content,t))return;this.map.setSourceContent(t,r.content)};r.applySourceMaps=function(){Object.keys(this.files).forEach((function(t){var r=this.files[t];this.map.setSourceContent(t,r);if(this.options.inputSourcemaps===true){var i=u.sourceMapResolve.resolveSync(r,t,o.readFileSync);if(i){var c=new u.SourceMap.SourceMapConsumer(i.map);var l=i.sourcesRelativeTo;this.map.applySourceMap(c,t,u.unixify(a.dirname(l)))}}}),this)};r.comment=function(t){if(/^# sourceMappingURL=/.test(t.comment)){return this.emit("",t.position)}return this._comment(t)}},3620:(t,r,i)=>{"use strict";r.extend=i(7512);r.SourceMap=i(4040);r.sourceMapResolve=i(3649);r.unixify=function(t){return t.split(/\\+/).join("/")};r.isString=function(t){return t&&typeof t==="string"};r.arrayify=function(t){if(typeof t==="string")return[t];return t?Array.isArray(t)?t:[t]:[]};r.last=function(t,r){return t[t.length-(r||1)]}},105:(t,r,i)=>{r=t.exports=i(6543);r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function useColors(){if(typeof window!=="undefined"&&window.process&&window.process.type==="renderer"){return true}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}};function formatArgs(t){var i=this.useColors;t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+r.humanize(this.diff);if(!i)return;var o="color: "+this.color;t.splice(1,0,o,"color: inherit");var a=0;var c=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){if("%%"===t)return;a++;if("%c"===t){c=a}}));t.splice(c,0,o)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(t){try{if(null==t){r.storage.removeItem("debug")}else{r.storage.debug=t}}catch(t){}}function load(){var t;try{t=r.storage.debug}catch(t){}if(!t&&typeof process!=="undefined"&&"env"in process){t=process.env.DEBUG}return t}r.enable(load());function localstorage(){try{return window.localStorage}catch(t){}}},6543:(t,r,i)=>{r=t.exports=createDebug.debug=createDebug["default"]=createDebug;r.coerce=coerce;r.disable=disable;r.enable=enable;r.enabled=enabled;r.humanize=i(7330);r.names=[];r.skips=[];r.formatters={};var o;function selectColor(t){var i=0,o;for(o in t){i=(i<<5)-i+t.charCodeAt(o);i|=0}return r.colors[Math.abs(i)%r.colors.length]}function createDebug(t){function debug(){if(!debug.enabled)return;var t=debug;var i=+new Date;var a=i-(o||i);t.diff=a;t.prev=o;t.curr=i;o=i;var c=new Array(arguments.length);for(var u=0;u<c.length;u++){c[u]=arguments[u]}c[0]=r.coerce(c[0]);if("string"!==typeof c[0]){c.unshift("%O")}var l=0;c[0]=c[0].replace(/%([a-zA-Z%])/g,(function(i,o){if(i==="%%")return i;l++;var a=r.formatters[o];if("function"===typeof a){var u=c[l];i=a.call(t,u);c.splice(l,1);l--}return i}));r.formatArgs.call(t,c);var h=debug.log||r.log||console.log.bind(console);h.apply(t,c)}debug.namespace=t;debug.enabled=r.enabled(t);debug.useColors=r.useColors();debug.color=selectColor(t);if("function"===typeof r.init){r.init(debug)}return debug}function enable(t){r.save(t);r.names=[];r.skips=[];var i=(typeof t==="string"?t:"").split(/[\s,]+/);var o=i.length;for(var a=0;a<o;a++){if(!i[a])continue;t=i[a].replace(/\*/g,".*?");if(t[0]==="-"){r.skips.push(new RegExp("^"+t.substr(1)+"$"))}else{r.names.push(new RegExp("^"+t+"$"))}}}function disable(){r.enable("")}function enabled(t){var i,o;for(i=0,o=r.skips.length;i<o;i++){if(r.skips[i].test(t)){return false}}for(i=0,o=r.names.length;i<o;i++){if(r.names[i].test(t)){return true}}return false}function coerce(t){if(t instanceof Error)return t.stack||t.message;return t}},5830:(t,r,i)=>{if(typeof process!=="undefined"&&process.type==="renderer"){t.exports=i(105)}else{t.exports=i(7199)}},7199:(t,r,i)=>{var o=i(6224);var a=i(3837);r=t.exports=i(6543);r.init=init;r.log=log;r.formatArgs=formatArgs;r.save=save;r.load=load;r.useColors=useColors;r.colors=[6,2,3,4,5,1];r.inspectOpts=Object.keys(process.env).filter((function(t){return/^debug_/i.test(t)})).reduce((function(t,r){var i=r.substring(6).toLowerCase().replace(/_([a-z])/g,(function(t,r){return r.toUpperCase()}));var o=process.env[r];if(/^(yes|on|true|enabled)$/i.test(o))o=true;else if(/^(no|off|false|disabled)$/i.test(o))o=false;else if(o==="null")o=null;else o=Number(o);t[i]=o;return t}),{});var c=parseInt(process.env.DEBUG_FD,10)||2;if(1!==c&&2!==c){a.deprecate((function(){}),"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")()}var u=1===c?process.stdout:2===c?process.stderr:createWritableStdioStream(c);function useColors(){return"colors"in r.inspectOpts?Boolean(r.inspectOpts.colors):o.isatty(c)}r.formatters.o=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts).split("\n").map((function(t){return t.trim()})).join(" ")};r.formatters.O=function(t){this.inspectOpts.colors=this.useColors;return a.inspect(t,this.inspectOpts)};function formatArgs(t){var i=this.namespace;var o=this.useColors;if(o){var a=this.color;var c="  [3"+a+";1m"+i+" "+"";t[0]=c+t[0].split("\n").join("\n"+c);t.push("[3"+a+"m+"+r.humanize(this.diff)+"")}else{t[0]=(new Date).toUTCString()+" "+i+" "+t[0]}}function log(){return u.write(a.format.apply(a,arguments)+"\n")}function save(t){if(null==t){delete process.env.DEBUG}else{process.env.DEBUG=t}}function load(){return process.env.DEBUG}function createWritableStdioStream(t){var r;var a=process.binding("tty_wrap");switch(a.guessHandleType(t)){case"TTY":r=new o.WriteStream(t);r._type="tty";if(r._handle&&r._handle.unref){r._handle.unref()}break;case"FILE":var c=i(7147);r=new c.SyncWriteStream(t,{autoClose:false});r._type="fs";break;case"PIPE":case"TCP":var u=i(1808);r=new u.Socket({fd:t,readable:false,writable:true});r.readable=false;r.read=null;r._type="pipe";if(r._handle&&r._handle.unref){r._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}r.fd=t;r._isStdio=true;return r}function init(t){t.inspectOpts={};var i=Object.keys(r.inspectOpts);for(var o=0;o<i.length;o++){t.inspectOpts[i[o]]=r.inspectOpts[i[o]]}}r.enable(load())},7330:t=>{var r=1e3;var i=r*60;var o=i*60;var a=o*24;var c=a*365.25;t.exports=function(t,r){r=r||{};var i=typeof t;if(i==="string"&&t.length>0){return parse(t)}else if(i==="number"&&isNaN(t)===false){return r.long?fmtLong(t):fmtShort(t)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function parse(t){t=String(t);if(t.length>100){return}var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!u){return}var l=parseFloat(u[1]);var h=(u[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return l*c;case"days":case"day":case"d":return l*a;case"hours":case"hour":case"hrs":case"hr":case"h":return l*o;case"minutes":case"minute":case"mins":case"min":case"m":return l*i;case"seconds":case"second":case"secs":case"sec":case"s":return l*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return undefined}}function fmtShort(t){if(t>=a){return Math.round(t/a)+"d"}if(t>=o){return Math.round(t/o)+"h"}if(t>=i){return Math.round(t/i)+"m"}if(t>=r){return Math.round(t/r)+"s"}return t+"ms"}function fmtLong(t){return plural(t,a,"day")||plural(t,o,"hour")||plural(t,i,"minute")||plural(t,r,"second")||t+" ms"}function plural(t,r,i){if(t<r){return}if(t<r*1.5){return Math.floor(t/r)+" "+i}return Math.ceil(t/r)+" "+i+"s"}},7631:(t,r,i)=>{var o=i(7728);var a=Object.prototype.hasOwnProperty;var c=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=c?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(t,r){var i=new ArraySet;for(var o=0,a=t.length;o<a;o++){i.add(t[o],r)}return i};ArraySet.prototype.size=function ArraySet_size(){return c?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(t,r){var i=c?t:o.toSetString(t);var u=c?this.has(t):a.call(this._set,i);var l=this._array.length;if(!u||r){this._array.push(t)}if(!u){if(c){this._set.set(t,l)}else{this._set[i]=l}}};ArraySet.prototype.has=function ArraySet_has(t){if(c){return this._set.has(t)}else{var r=o.toSetString(t);return a.call(this._set,r)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(t){if(c){var r=this._set.get(t);if(r>=0){return r}}else{var i=o.toSetString(t);if(a.call(this._set,i)){return this._set[i]}}throw new Error('"'+t+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(t){if(t>=0&&t<this._array.length){return this._array[t]}throw new Error("No element indexed by "+t)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};r.I=ArraySet},9625:(t,r,i)=>{var o=i(9976);var a=5;var c=1<<a;var u=c-1;var l=c;function toVLQSigned(t){return t<0?(-t<<1)+1:(t<<1)+0}function fromVLQSigned(t){var r=(t&1)===1;var i=t>>1;return r?-i:i}r.encode=function base64VLQ_encode(t){var r="";var i;var c=toVLQSigned(t);do{i=c&u;c>>>=a;if(c>0){i|=l}r+=o.encode(i)}while(c>0);return r};r.decode=function base64VLQ_decode(t,r,i){var c=t.length;var h=0;var p=0;var d,m;do{if(r>=c){throw new Error("Expected more digits in base 64 VLQ value.")}m=o.decode(t.charCodeAt(r++));if(m===-1){throw new Error("Invalid base64 digit: "+t.charAt(r-1))}d=!!(m&l);m&=u;h=h+(m<<p);p+=a}while(d);i.value=fromVLQSigned(h);i.rest=r}},9976:(t,r)=>{var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(t){if(0<=t&&t<i.length){return i[t]}throw new TypeError("Must be between 0 and 63: "+t)};r.decode=function(t){var r=65;var i=90;var o=97;var a=122;var c=48;var u=57;var l=43;var h=47;var p=26;var d=52;if(r<=t&&t<=i){return t-r}if(o<=t&&t<=a){return t-o+p}if(c<=t&&t<=u){return t-c+d}if(t==l){return 62}if(t==h){return 63}return-1}},9287:(t,r)=>{r.GREATEST_LOWER_BOUND=1;r.LEAST_UPPER_BOUND=2;function recursiveSearch(t,i,o,a,c,u){var l=Math.floor((i-t)/2)+t;var h=c(o,a[l],true);if(h===0){return l}else if(h>0){if(i-l>1){return recursiveSearch(l,i,o,a,c,u)}if(u==r.LEAST_UPPER_BOUND){return i<a.length?i:-1}else{return l}}else{if(l-t>1){return recursiveSearch(t,l,o,a,c,u)}if(u==r.LEAST_UPPER_BOUND){return l}else{return t<0?-1:t}}}r.search=function search(t,i,o,a){if(i.length===0){return-1}var c=recursiveSearch(-1,i.length,t,i,o,a||r.GREATEST_LOWER_BOUND);if(c<0){return-1}while(c-1>=0){if(o(i[c],i[c-1],true)!==0){break}--c}return c}},9078:(t,r,i)=>{var o=i(7728);function generatedPositionAfter(t,r){var i=t.generatedLine;var a=r.generatedLine;var c=t.generatedColumn;var u=r.generatedColumn;return a>i||a==i&&u>=c||o.compareByGeneratedPositionsInflated(t,r)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(t,r){this._array.forEach(t,r)};MappingList.prototype.add=function MappingList_add(t){if(generatedPositionAfter(this._last,t)){this._last=t;this._array.push(t)}else{this._sorted=false;this._array.push(t)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(o.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};r.H=MappingList},2742:(t,r)=>{function swap(t,r,i){var o=t[r];t[r]=t[i];t[i]=o}function randomIntInRange(t,r){return Math.round(t+Math.random()*(r-t))}function doQuickSort(t,r,i,o){if(i<o){var a=randomIntInRange(i,o);var c=i-1;swap(t,a,o);var u=t[o];for(var l=i;l<o;l++){if(r(t[l],u)<=0){c+=1;swap(t,c,l)}}swap(t,c+1,l);var h=c+1;doQuickSort(t,r,i,h-1);doQuickSort(t,r,h+1,o)}}r.U=function(t,r){doQuickSort(t,r,0,t.length-1)}},3290:(t,r,i)=>{var o;var a=i(7728);var c=i(9287);var u=i(7631).I;var l=i(9625);var h=i(2742).U;function SourceMapConsumer(t){var r=t;if(typeof t==="string"){r=JSON.parse(t.replace(/^\)\]\}'/,""))}return r.sections!=null?new IndexedSourceMapConsumer(r):new BasicSourceMapConsumer(r)}SourceMapConsumer.fromSourceMap=function(t){return BasicSourceMapConsumer.fromSourceMap(t)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{get:function(){if(!this.__generatedMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{get:function(){if(!this.__originalMappings){this._parseMappings(this._mappings,this.sourceRoot)}return this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function SourceMapConsumer_charIsMappingSeparator(t,r){var i=t.charAt(r);return i===";"||i===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(t,r){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function SourceMapConsumer_eachMapping(t,r,i){var o=r||null;var c=i||SourceMapConsumer.GENERATED_ORDER;var u;switch(c){case SourceMapConsumer.GENERATED_ORDER:u=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:u=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;u.map((function(t){var r=t.source===null?null:this._sources.at(t.source);if(r!=null&&l!=null){r=a.join(l,r)}return{source:r,generatedLine:t.generatedLine,generatedColumn:t.generatedColumn,originalLine:t.originalLine,originalColumn:t.originalColumn,name:t.name===null?null:this._names.at(t.name)}}),this).forEach(t,o)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(t){var r=a.getArg(t,"line");var i={source:a.getArg(t,"source"),originalLine:r,originalColumn:a.getArg(t,"column",0)};if(this.sourceRoot!=null){i.source=a.relative(this.sourceRoot,i.source)}if(!this._sources.has(i.source)){return[]}i.source=this._sources.indexOf(i.source);var o=[];var u=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,c.LEAST_UPPER_BOUND);if(u>=0){var l=this._originalMappings[u];if(t.column===undefined){var h=l.originalLine;while(l&&l.originalLine===h){o.push({line:a.getArg(l,"generatedLine",null),column:a.getArg(l,"generatedColumn",null),lastColumn:a.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++u]}}else{var p=l.originalColumn;while(l&&l.originalLine===r&&l.originalColumn==p){o.push({line:a.getArg(l,"generatedLine",null),column:a.getArg(l,"generatedColumn",null),lastColumn:a.getArg(l,"lastGeneratedColumn",null)});l=this._originalMappings[++u]}}}return o};r.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(t){var r=t;if(typeof t==="string"){r=JSON.parse(t.replace(/^\)\]\}'/,""))}var i=a.getArg(r,"version");var o=a.getArg(r,"sources");var c=a.getArg(r,"names",[]);var l=a.getArg(r,"sourceRoot",null);var h=a.getArg(r,"sourcesContent",null);var p=a.getArg(r,"mappings");var d=a.getArg(r,"file",null);if(i!=this._version){throw new Error("Unsupported version: "+i)}o=o.map(String).map(a.normalize).map((function(t){return l&&a.isAbsolute(l)&&a.isAbsolute(t)?a.relative(l,t):t}));this._names=u.fromArray(c.map(String),true);this._sources=u.fromArray(o,true);this.sourceRoot=l;this.sourcesContent=h;this._mappings=p;this.file=d}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(t){var r=Object.create(BasicSourceMapConsumer.prototype);var i=r._names=u.fromArray(t._names.toArray(),true);var o=r._sources=u.fromArray(t._sources.toArray(),true);r.sourceRoot=t._sourceRoot;r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot);r.file=t._file;var c=t._mappings.toArray().slice();var l=r.__generatedMappings=[];var p=r.__originalMappings=[];for(var d=0,m=c.length;d<m;d++){var g=c[d];var v=new Mapping;v.generatedLine=g.generatedLine;v.generatedColumn=g.generatedColumn;if(g.source){v.source=o.indexOf(g.source);v.originalLine=g.originalLine;v.originalColumn=g.originalColumn;if(g.name){v.name=i.indexOf(g.name)}p.push(v)}l.push(v)}h(r.__originalMappings,a.compareByOriginalPositions);return r};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map((function(t){return this.sourceRoot!=null?a.join(this.sourceRoot,t):t}),this)}});function Mapping(){this.generatedLine=0;this.generatedColumn=0;this.source=null;this.originalLine=null;this.originalColumn=null;this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(t,r){var i=1;var o=0;var c=0;var u=0;var p=0;var d=0;var m=t.length;var g=0;var v={};var y={};var b=[];var w=[];var x,S,E,O,A;while(g<m){if(t.charAt(g)===";"){i++;g++;o=0}else if(t.charAt(g)===","){g++}else{x=new Mapping;x.generatedLine=i;for(O=g;O<m;O++){if(this._charIsMappingSeparator(t,O)){break}}S=t.slice(g,O);E=v[S];if(E){g+=S.length}else{E=[];while(g<O){l.decode(t,g,y);A=y.value;g=y.rest;E.push(A)}if(E.length===2){throw new Error("Found a source, but no line and column")}if(E.length===3){throw new Error("Found a source and line, but no column")}v[S]=E}x.generatedColumn=o+E[0];o=x.generatedColumn;if(E.length>1){x.source=p+E[1];p+=E[1];x.originalLine=c+E[2];c=x.originalLine;x.originalLine+=1;x.originalColumn=u+E[3];u=x.originalColumn;if(E.length>4){x.name=d+E[4];d+=E[4]}}w.push(x);if(typeof x.originalLine==="number"){b.push(x)}}}h(w,a.compareByGeneratedPositionsDeflated);this.__generatedMappings=w;h(b,a.compareByOriginalPositions);this.__originalMappings=b};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(t,r,i,o,a,u){if(t[i]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+t[i])}if(t[o]<0){throw new TypeError("Column must be greater than or equal to 0, got "+t[o])}return c.search(t,r,a,u)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var i=this._generatedMappings[t+1];if(r.generatedLine===i.generatedLine){r.lastGeneratedColumn=i.generatedColumn-1;continue}}r.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(t){var r={generatedLine:a.getArg(t,"line"),generatedColumn:a.getArg(t,"column")};var i=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",a.compareByGeneratedPositionsDeflated,a.getArg(t,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(i>=0){var o=this._generatedMappings[i];if(o.generatedLine===r.generatedLine){var c=a.getArg(o,"source",null);if(c!==null){c=this._sources.at(c);if(this.sourceRoot!=null){c=a.join(this.sourceRoot,c)}}var u=a.getArg(o,"name",null);if(u!==null){u=this._names.at(u)}return{source:c,line:a.getArg(o,"originalLine",null),column:a.getArg(o,"originalColumn",null),name:u}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function BasicSourceMapConsumer_hasContentsOfAllSources(){if(!this.sourcesContent){return false}return this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(t){return t==null}))};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(t,r){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){t=a.relative(this.sourceRoot,t)}if(this._sources.has(t)){return this.sourcesContent[this._sources.indexOf(t)]}var i;if(this.sourceRoot!=null&&(i=a.urlParse(this.sourceRoot))){var o=t.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(o)){return this.sourcesContent[this._sources.indexOf(o)]}if((!i.path||i.path=="/")&&this._sources.has("/"+t)){return this.sourcesContent[this._sources.indexOf("/"+t)]}}if(r){return null}else{throw new Error('"'+t+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(t){var r=a.getArg(t,"source");if(this.sourceRoot!=null){r=a.relative(this.sourceRoot,r)}if(!this._sources.has(r)){return{line:null,column:null,lastColumn:null}}r=this._sources.indexOf(r);var i={source:r,originalLine:a.getArg(t,"line"),originalColumn:a.getArg(t,"column")};var o=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",a.compareByOriginalPositions,a.getArg(t,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(o>=0){var c=this._originalMappings[o];if(c.source===i.source){return{line:a.getArg(c,"generatedLine",null),column:a.getArg(c,"generatedColumn",null),lastColumn:a.getArg(c,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};o=BasicSourceMapConsumer;function IndexedSourceMapConsumer(t){var r=t;if(typeof t==="string"){r=JSON.parse(t.replace(/^\)\]\}'/,""))}var i=a.getArg(r,"version");var o=a.getArg(r,"sections");if(i!=this._version){throw new Error("Unsupported version: "+i)}this._sources=new u;this._names=new u;var c={line:-1,column:0};this._sections=o.map((function(t){if(t.url){throw new Error("Support for url field in sections not implemented.")}var r=a.getArg(t,"offset");var i=a.getArg(r,"line");var o=a.getArg(r,"column");if(i<c.line||i===c.line&&o<c.column){throw new Error("Section offsets must be ordered and non-overlapping.")}c=r;return{generatedOffset:{generatedLine:i+1,generatedColumn:o+1},consumer:new SourceMapConsumer(a.getArg(t,"map"))}}))}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var t=[];for(var r=0;r<this._sections.length;r++){for(var i=0;i<this._sections[r].consumer.sources.length;i++){t.push(this._sections[r].consumer.sources[i])}}return t}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(t){var r={generatedLine:a.getArg(t,"line"),generatedColumn:a.getArg(t,"column")};var i=c.search(r,this._sections,(function(t,r){var i=t.generatedLine-r.generatedOffset.generatedLine;if(i){return i}return t.generatedColumn-r.generatedOffset.generatedColumn}));var o=this._sections[i];if(!o){return{source:null,line:null,column:null,name:null}}return o.consumer.originalPositionFor({line:r.generatedLine-(o.generatedOffset.generatedLine-1),column:r.generatedColumn-(o.generatedOffset.generatedLine===r.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:t.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every((function(t){return t.consumer.hasContentsOfAllSources()}))};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(t,r){for(var i=0;i<this._sections.length;i++){var o=this._sections[i];var a=o.consumer.sourceContentFor(t,true);if(a){return a}}if(r){return null}else{throw new Error('"'+t+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(t){for(var r=0;r<this._sections.length;r++){var i=this._sections[r];if(i.consumer.sources.indexOf(a.getArg(t,"source"))===-1){continue}var o=i.consumer.generatedPositionFor(t);if(o){var c={line:o.line+(i.generatedOffset.generatedLine-1),column:o.column+(i.generatedOffset.generatedLine===o.line?i.generatedOffset.generatedColumn-1:0)};return c}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(t,r){this.__generatedMappings=[];this.__originalMappings=[];for(var i=0;i<this._sections.length;i++){var o=this._sections[i];var c=o.consumer._generatedMappings;for(var u=0;u<c.length;u++){var l=c[u];var p=o.consumer._sources.at(l.source);if(o.consumer.sourceRoot!==null){p=a.join(o.consumer.sourceRoot,p)}this._sources.add(p);p=this._sources.indexOf(p);var d=o.consumer._names.at(l.name);this._names.add(d);d=this._names.indexOf(d);var m={source:p,generatedLine:l.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(o.generatedOffset.generatedLine===l.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:d};this.__generatedMappings.push(m);if(typeof m.originalLine==="number"){this.__originalMappings.push(m)}}}h(this.__generatedMappings,a.compareByGeneratedPositionsDeflated);h(this.__originalMappings,a.compareByOriginalPositions)};o=IndexedSourceMapConsumer},6755:(t,r,i)=>{var o=i(9625);var a=i(7728);var c=i(7631).I;var u=i(9078).H;function SourceMapGenerator(t){if(!t){t={}}this._file=a.getArg(t,"file",null);this._sourceRoot=a.getArg(t,"sourceRoot",null);this._skipValidation=a.getArg(t,"skipValidation",false);this._sources=new c;this._names=new c;this._mappings=new u;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(t){var r=t.sourceRoot;var i=new SourceMapGenerator({file:t.file,sourceRoot:r});t.eachMapping((function(t){var o={generated:{line:t.generatedLine,column:t.generatedColumn}};if(t.source!=null){o.source=t.source;if(r!=null){o.source=a.relative(r,o.source)}o.original={line:t.originalLine,column:t.originalColumn};if(t.name!=null){o.name=t.name}}i.addMapping(o)}));t.sources.forEach((function(r){var o=t.sourceContentFor(r);if(o!=null){i.setSourceContent(r,o)}}));return i};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(t){var r=a.getArg(t,"generated");var i=a.getArg(t,"original",null);var o=a.getArg(t,"source",null);var c=a.getArg(t,"name",null);if(!this._skipValidation){this._validateMapping(r,i,o,c)}if(o!=null){o=String(o);if(!this._sources.has(o)){this._sources.add(o)}}if(c!=null){c=String(c);if(!this._names.has(c)){this._names.add(c)}}this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:o,name:c})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(t,r){var i=t;if(this._sourceRoot!=null){i=a.relative(this._sourceRoot,i)}if(r!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[a.toSetString(i)]=r}else if(this._sourcesContents){delete this._sourcesContents[a.toSetString(i)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(t,r,i){var o=r;if(r==null){if(t.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}o=t.file}var u=this._sourceRoot;if(u!=null){o=a.relative(u,o)}var l=new c;var h=new c;this._mappings.unsortedForEach((function(r){if(r.source===o&&r.originalLine!=null){var c=t.originalPositionFor({line:r.originalLine,column:r.originalColumn});if(c.source!=null){r.source=c.source;if(i!=null){r.source=a.join(i,r.source)}if(u!=null){r.source=a.relative(u,r.source)}r.originalLine=c.line;r.originalColumn=c.column;if(c.name!=null){r.name=c.name}}}var p=r.source;if(p!=null&&!l.has(p)){l.add(p)}var d=r.name;if(d!=null&&!h.has(d)){h.add(d)}}),this);this._sources=l;this._names=h;t.sources.forEach((function(r){var o=t.sourceContentFor(r);if(o!=null){if(i!=null){r=a.join(i,r)}if(u!=null){r=a.relative(u,r)}this.setSourceContent(r,o)}}),this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(t,r,i,o){if(r&&typeof r.line!=="number"&&typeof r.column!=="number"){throw new Error("original.line and original.column are not numbers -- you probably meant to omit "+"the original mapping entirely and only map the generated position. If so, pass "+"null for the original mapping instead of an object with empty or null values.")}if(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!i&&!o){return}else if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&i){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:i,original:r,name:o}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var t=0;var r=1;var i=0;var c=0;var u=0;var l=0;var h="";var p;var d;var m;var g;var v=this._mappings.toArray();for(var y=0,b=v.length;y<b;y++){d=v[y];p="";if(d.generatedLine!==r){t=0;while(d.generatedLine!==r){p+=";";r++}}else{if(y>0){if(!a.compareByGeneratedPositionsInflated(d,v[y-1])){continue}p+=","}}p+=o.encode(d.generatedColumn-t);t=d.generatedColumn;if(d.source!=null){g=this._sources.indexOf(d.source);p+=o.encode(g-l);l=g;p+=o.encode(d.originalLine-1-c);c=d.originalLine-1;p+=o.encode(d.originalColumn-i);i=d.originalColumn;if(d.name!=null){m=this._names.indexOf(d.name);p+=o.encode(m-u);u=m}}h+=p}return h};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(t,r){return t.map((function(t){if(!this._sourcesContents){return null}if(r!=null){t=a.relative(r,t)}var i=a.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null}),this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){t.file=this._file}if(this._sourceRoot!=null){t.sourceRoot=this._sourceRoot}if(this._sourcesContents){t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)}return t};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};r.SourceMapGenerator=SourceMapGenerator},6727:(t,r,i)=>{var o=i(6755).SourceMapGenerator;var a=i(7728);var c=/(\r?\n)/;var u=10;var l="$$$isSourceNode$$$";function SourceNode(t,r,i,o,a){this.children=[];this.sourceContents={};this.line=t==null?null:t;this.column=r==null?null:r;this.source=i==null?null:i;this.name=a==null?null:a;this[l]=true;if(o!=null)this.add(o)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(t,r,i){var o=new SourceNode;var u=t.split(c);var l=0;var shiftNextLine=function(){var t=getNextLine();var r=getNextLine()||"";return t+r;function getNextLine(){return l<u.length?u[l++]:undefined}};var h=1,p=0;var d=null;r.eachMapping((function(t){if(d!==null){if(h<t.generatedLine){addMappingWithCode(d,shiftNextLine());h++;p=0}else{var r=u[l];var i=r.substr(0,t.generatedColumn-p);u[l]=r.substr(t.generatedColumn-p);p=t.generatedColumn;addMappingWithCode(d,i);d=t;return}}while(h<t.generatedLine){o.add(shiftNextLine());h++}if(p<t.generatedColumn){var r=u[l];o.add(r.substr(0,t.generatedColumn));u[l]=r.substr(t.generatedColumn);p=t.generatedColumn}d=t}),this);if(l<u.length){if(d){addMappingWithCode(d,shiftNextLine())}o.add(u.splice(l).join(""))}r.sources.forEach((function(t){var c=r.sourceContentFor(t);if(c!=null){if(i!=null){t=a.join(i,t)}o.setSourceContent(t,c)}}));return o;function addMappingWithCode(t,r){if(t===null||t.source===undefined){o.add(r)}else{var c=i?a.join(i,t.source):t.source;o.add(new SourceNode(t.originalLine,t.originalColumn,c,r,t.name))}}};SourceNode.prototype.add=function SourceNode_add(t){if(Array.isArray(t)){t.forEach((function(t){this.add(t)}),this)}else if(t[l]||typeof t==="string"){if(t){this.children.push(t)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(t){if(Array.isArray(t)){for(var r=t.length-1;r>=0;r--){this.prepend(t[r])}}else if(t[l]||typeof t==="string"){this.children.unshift(t)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t)}return this};SourceNode.prototype.walk=function SourceNode_walk(t){var r;for(var i=0,o=this.children.length;i<o;i++){r=this.children[i];if(r[l]){r.walk(t)}else{if(r!==""){t(r,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(t){var r;var i;var o=this.children.length;if(o>0){r=[];for(i=0;i<o-1;i++){r.push(this.children[i]);r.push(t)}r.push(this.children[i]);this.children=r}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(t,r){var i=this.children[this.children.length-1];if(i[l]){i.replaceRight(t,r)}else if(typeof i==="string"){this.children[this.children.length-1]=i.replace(t,r)}else{this.children.push("".replace(t,r))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(t,r){this.sourceContents[a.toSetString(t)]=r};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(t){for(var r=0,i=this.children.length;r<i;r++){if(this.children[r][l]){this.children[r].walkSourceContents(t)}}var o=Object.keys(this.sourceContents);for(var r=0,i=o.length;r<i;r++){t(a.fromSetString(o[r]),this.sourceContents[o[r]])}};SourceNode.prototype.toString=function SourceNode_toString(){var t="";this.walk((function(r){t+=r}));return t};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(t){var r={code:"",line:1,column:0};var i=new o(t);var a=false;var c=null;var l=null;var h=null;var p=null;this.walk((function(t,o){r.code+=t;if(o.source!==null&&o.line!==null&&o.column!==null){if(c!==o.source||l!==o.line||h!==o.column||p!==o.name){i.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:r.line,column:r.column},name:o.name})}c=o.source;l=o.line;h=o.column;p=o.name;a=true}else if(a){i.addMapping({generated:{line:r.line,column:r.column}});c=null;a=false}for(var d=0,m=t.length;d<m;d++){if(t.charCodeAt(d)===u){r.line++;r.column=0;if(d+1===m){c=null;a=false}else if(a){i.addMapping({source:o.source,original:{line:o.line,column:o.column},generated:{line:r.line,column:r.column},name:o.name})}}else{r.column++}}}));this.walkSourceContents((function(t,r){i.setSourceContent(t,r)}));return{code:r.code,map:i}};r.SourceNode=SourceNode},7728:(t,r)=>{function getArg(t,r,i){if(r in t){return t[r]}else if(arguments.length===3){return i}else{throw new Error('"'+r+'" is a required argument.')}}r.getArg=getArg;var i=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var o=/^data:.+\,.+$/;function urlParse(t){var r=t.match(i);if(!r){return null}return{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}}r.urlParse=urlParse;function urlGenerate(t){var r="";if(t.scheme){r+=t.scheme+":"}r+="//";if(t.auth){r+=t.auth+"@"}if(t.host){r+=t.host}if(t.port){r+=":"+t.port}if(t.path){r+=t.path}return r}r.urlGenerate=urlGenerate;function normalize(t){var i=t;var o=urlParse(t);if(o){if(!o.path){return t}i=o.path}var a=r.isAbsolute(i);var c=i.split(/\/+/);for(var u,l=0,h=c.length-1;h>=0;h--){u=c[h];if(u==="."){c.splice(h,1)}else if(u===".."){l++}else if(l>0){if(u===""){c.splice(h+1,l);l=0}else{c.splice(h,2);l--}}}i=c.join("/");if(i===""){i=a?"/":"."}if(o){o.path=i;return urlGenerate(o)}return i}r.normalize=normalize;function join(t,r){if(t===""){t="."}if(r===""){r="."}var i=urlParse(r);var a=urlParse(t);if(a){t=a.path||"/"}if(i&&!i.scheme){if(a){i.scheme=a.scheme}return urlGenerate(i)}if(i||r.match(o)){return r}if(a&&!a.host&&!a.path){a.host=r;return urlGenerate(a)}var c=r.charAt(0)==="/"?r:normalize(t.replace(/\/+$/,"")+"/"+r);if(a){a.path=c;return urlGenerate(a)}return c}r.join=join;r.isAbsolute=function(t){return t.charAt(0)==="/"||!!t.match(i)};function relative(t,r){if(t===""){t="."}t=t.replace(/\/$/,"");var i=0;while(r.indexOf(t+"/")!==0){var o=t.lastIndexOf("/");if(o<0){return r}t=t.slice(0,o);if(t.match(/^([^\/]+:\/)?\/*$/)){return r}++i}return Array(i+1).join("../")+r.substr(t.length+1)}r.relative=relative;var a=function(){var t=Object.create(null);return!("__proto__"in t)}();function identity(t){return t}function toSetString(t){if(isProtoString(t)){return"$"+t}return t}r.toSetString=a?identity:toSetString;function fromSetString(t){if(isProtoString(t)){return t.slice(1)}return t}r.fromSetString=a?identity:fromSetString;function isProtoString(t){if(!t){return false}var r=t.length;if(r<9){return false}if(t.charCodeAt(r-1)!==95||t.charCodeAt(r-2)!==95||t.charCodeAt(r-3)!==111||t.charCodeAt(r-4)!==116||t.charCodeAt(r-5)!==111||t.charCodeAt(r-6)!==114||t.charCodeAt(r-7)!==112||t.charCodeAt(r-8)!==95||t.charCodeAt(r-9)!==95){return false}for(var i=r-10;i>=0;i--){if(t.charCodeAt(i)!==36){return false}}return true}function compareByOriginalPositions(t,r,i){var o=t.source-r.source;if(o!==0){return o}o=t.originalLine-r.originalLine;if(o!==0){return o}o=t.originalColumn-r.originalColumn;if(o!==0||i){return o}o=t.generatedColumn-r.generatedColumn;if(o!==0){return o}o=t.generatedLine-r.generatedLine;if(o!==0){return o}return t.name-r.name}r.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(t,r,i){var o=t.generatedLine-r.generatedLine;if(o!==0){return o}o=t.generatedColumn-r.generatedColumn;if(o!==0||i){return o}o=t.source-r.source;if(o!==0){return o}o=t.originalLine-r.originalLine;if(o!==0){return o}o=t.originalColumn-r.originalColumn;if(o!==0){return o}return t.name-r.name}r.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(t,r){if(t===r){return 0}if(t>r){return 1}return-1}function compareByGeneratedPositionsInflated(t,r){var i=t.generatedLine-r.generatedLine;if(i!==0){return i}i=t.generatedColumn-r.generatedColumn;if(i!==0){return i}i=strcmp(t.source,r.source);if(i!==0){return i}i=t.originalLine-r.originalLine;if(i!==0){return i}i=t.originalColumn-r.originalColumn;if(i!==0){return i}return strcmp(t.name,r.name)}r.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated},4040:(t,r,i)=>{r.SourceMapGenerator=i(6755).SourceMapGenerator;r.SourceMapConsumer=i(3290).SourceMapConsumer;r.SourceNode=i(6727).SourceNode},4811:(t,r,i)=>{var o=i(3186);function customDecodeUriComponent(t){return o(t.replace(/\+/g,"%2B"))}t.exports=customDecodeUriComponent},2629:(t,r,i)=>{var o=i(7310);function resolveUrl(){return Array.prototype.reduce.call(arguments,(function(t,r){return o.resolve(t,r)}))}t.exports=resolveUrl},3649:(t,r,i)=>{var o=i(6598);var a=i(2629);var c=i(4811);var u=i(8987);var l=i(161);function callbackAsync(t,r,i){setImmediate((function(){t(r,i)}))}function parseMapToJSON(t,r){try{return JSON.parse(t.replace(/^\)\]\}'/,""))}catch(t){t.sourceMapData=r;throw t}}function readSync(t,r,i){var o=c(r);try{return String(t(o))}catch(t){t.sourceMapData=i;throw t}}function resolveSourceMap(t,r,i,o){var a;try{a=resolveSourceMapHelper(t,r)}catch(t){return callbackAsync(o,t)}if(!a||a.map){return callbackAsync(o,null,a)}var u=c(a.url);i(u,(function(t,r){if(t){t.sourceMapData=a;return o(t)}a.map=String(r);try{a.map=parseMapToJSON(a.map,a)}catch(t){return o(t)}o(null,a)}))}function resolveSourceMapSync(t,r,i){var o=resolveSourceMapHelper(t,r);if(!o||o.map){return o}o.map=readSync(i,o.url,o);o.map=parseMapToJSON(o.map,o);return o}var h=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/;var p=/^(?:application|text)\/json$/;var d="utf-8";function base64ToBuf(t){var r=l(t);var i=r.length;var o=new Uint8Array(i);for(var a=0;a<i;a++){o[a]=r.charCodeAt(a)}return o}function decodeBase64String(t){if(typeof TextDecoder==="undefined"||typeof Uint8Array==="undefined"){return l(t)}var r=base64ToBuf(t);var i=new TextDecoder(d,{fatal:true});return i.decode(r)}function resolveSourceMapHelper(t,r){r=u(r);var i=o.getFrom(t);if(!i){return null}var c=i.match(h);if(c){var l=c[1]||"text/plain";var d=c[2]||"";var m=c[3]||"";var g={sourceMappingURL:i,url:null,sourcesRelativeTo:r,map:m};if(!p.test(l)){var v=new Error("Unuseful data uri mime type: "+l);v.sourceMapData=g;throw v}try{g.map=parseMapToJSON(d===";base64"?decodeBase64String(m):decodeURIComponent(m),g)}catch(v){v.sourceMapData=g;throw v}return g}var y=a(r,i);return{sourceMappingURL:i,url:y,sourcesRelativeTo:y,map:null}}function resolveSources(t,r,i,o,a){if(typeof o==="function"){a=o;o={}}var u=t.sources?t.sources.length:0;var l={sourcesResolved:[],sourcesContent:[]};if(u===0){callbackAsync(a,null,l);return}var done=function(){u--;if(u===0){a(null,l)}};resolveSourcesHelper(t,r,o,(function(t,r,o){l.sourcesResolved[o]=t;if(typeof r==="string"){l.sourcesContent[o]=r;callbackAsync(done,null)}else{var a=c(t);i(a,(function(t,r){l.sourcesContent[o]=t?t:String(r);done()}))}}))}function resolveSourcesSync(t,r,i,o){var a={sourcesResolved:[],sourcesContent:[]};if(!t.sources||t.sources.length===0){return a}resolveSourcesHelper(t,r,o,(function(t,r,o){a.sourcesResolved[o]=t;if(i!==null){if(typeof r==="string"){a.sourcesContent[o]=r}else{var u=c(t);try{a.sourcesContent[o]=String(i(u))}catch(t){a.sourcesContent[o]=t}}}}));return a}var m=/\/?$/;function resolveSourcesHelper(t,r,i,o){i=i||{};r=u(r);var c;var l;var h;for(var p=0,d=t.sources.length;p<d;p++){h=null;if(typeof i.sourceRoot==="string"){h=i.sourceRoot}else if(typeof t.sourceRoot==="string"&&i.sourceRoot!==false){h=t.sourceRoot}if(h===null||h===""){c=a(r,t.sources[p])}else{c=a(r,h.replace(m,"/"),t.sources[p])}l=(t.sourcesContent||[])[p];o(c,l,p)}}function resolve(t,r,i,o,a){if(typeof o==="function"){a=o;o={}}if(t===null){var u=r;var l={sourceMappingURL:null,url:u,sourcesRelativeTo:u,map:null};var h=c(u);i(h,(function(t,r){if(t){t.sourceMapData=l;return a(t)}l.map=String(r);try{l.map=parseMapToJSON(l.map,l)}catch(t){return a(t)}_resolveSources(l)}))}else{resolveSourceMap(t,r,i,(function(t,r){if(t){return a(t)}if(!r){return a(null,null)}_resolveSources(r)}))}function _resolveSources(t){resolveSources(t.map,t.sourcesRelativeTo,i,o,(function(r,i){if(r){return a(r)}t.sourcesResolved=i.sourcesResolved;t.sourcesContent=i.sourcesContent;a(null,t)}))}}function resolveSync(t,r,i,o){var a;if(t===null){var c=r;a={sourceMappingURL:null,url:c,sourcesRelativeTo:c,map:null};a.map=readSync(i,c,a);a.map=parseMapToJSON(a.map,a)}else{a=resolveSourceMapSync(t,r,i);if(!a){return null}}var u=resolveSourcesSync(a.map,a.sourcesRelativeTo,i,o);a.sourcesResolved=u.sourcesResolved;a.sourcesContent=u.sourcesContent;return a}t.exports={resolveSourceMap:resolveSourceMap,resolveSourceMapSync:resolveSourceMapSync,resolveSources:resolveSources,resolveSourcesSync:resolveSourcesSync,resolve:resolve,resolveSync:resolveSync,parseMapToJSON:parseMapToJSON}},6598:function(t){void function(r,i){if(typeof define==="function"&&define.amd){define(i)}else if(true){t.exports=i()}else{}}(this,(function(){var t=/[#@] sourceMappingURL=([^\s'"]*)/;var r=RegExp("(?:"+"/\\*"+"(?:\\s*\r?\n(?://)?)?"+"(?:"+t.source+")"+"\\s*"+"\\*/"+"|"+"//(?:"+t.source+")"+")"+"\\s*");return{regex:r,_innerRegex:t,getFrom:function(t){var i=t.match(r);return i?i[1]||i[2]||"":null},existsIn:function(t){return r.test(t)},removeFrom:function(t){return t.replace(r,"")},insertBefore:function(t,i){var o=t.match(r);if(o){return t.slice(0,o.index)+i+t.slice(o.index)}else{return t+i}}}}))},4960:(t,r,i)=>{"use strict";
/*!
 * split-string <https://github.com/jonschlinkert/split-string>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(2064);t.exports=function(t,r,i){if(typeof t!=="string"){throw new TypeError("expected a string")}if(typeof r==="function"){i=r;r=null}if(typeof r==="string"){r={sep:r}}var a=o({sep:"."},r);var c=a.quotes||['"',"'","`"];var u;if(a.brackets===true){u={"<":">","(":")","[":"]","{":"}"}}else if(a.brackets){u=a.brackets}var l=[];var h=[];var p=[""];var d=a.sep;var m=t.length;var g=-1;var v;function expected(){if(u&&h.length){return u[h[h.length-1]]}}while(++g<m){var y=t[g];var b=t[g+1];var w={val:y,idx:g,arr:p,str:t};l.push(w);if(y==="\\"){w.val=keepEscaping(a,t,g)===true?y+b:b;w.escaped=true;if(typeof i==="function"){i(w)}p[p.length-1]+=w.val;g++;continue}if(u&&u[y]){h.push(y);var x=expected();var S=g+1;if(t.indexOf(x,S+1)!==-1){while(h.length&&S<m){var E=t[++S];if(E==="\\"){E++;continue}if(c.indexOf(E)!==-1){S=getClosingQuote(t,E,S+1);continue}x=expected();if(h.length&&t.indexOf(x,S+1)===-1){break}if(u[E]){h.push(E);continue}if(x===E){h.pop()}}}v=S;if(v===-1){p[p.length-1]+=y;continue}y=t.slice(g,v+1);w.val=y;w.idx=g=v}if(c.indexOf(y)!==-1){v=getClosingQuote(t,y,g+1);if(v===-1){p[p.length-1]+=y;continue}if(keepQuotes(y,a)===true){y=t.slice(g,v+1)}else{y=t.slice(g+1,v)}w.val=y;w.idx=g=v}if(typeof i==="function"){i(w,l);y=w.val;g=w.idx}if(w.val===d&&w.split!==false){p.push("");continue}p[p.length-1]+=w.val}return p};function getClosingQuote(t,r,i,o){var a=t.indexOf(r,i);if(t.charAt(a-1)==="\\"){return getClosingQuote(t,r,a+1)}return a}function keepQuotes(t,r){if(r.keepDoubleQuotes===true&&t==='"')return true;if(r.keepSingleQuotes===true&&t==="'")return true;return r.keepQuotes}function keepEscaping(t,r,i){if(typeof t.keepEscaping==="function"){return t.keepEscaping(r,i)}return t.keepEscaping===true||r[i+1]==="\\"}},2064:(t,r,i)=>{"use strict";var o=i(5776);var a=i(8782);t.exports=Object.assign||function(t){if(t===null||typeof t==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(t)){t={}}for(var r=1;r<arguments.length;r++){var i=arguments[r];if(isString(i)){i=toObject(i)}if(isObject(i)){assign(t,i);a(t,i)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function isString(t){return t&&typeof t==="string"}function toObject(t){var r={};for(var i in t){r[i]=t[i]}return r}function isObject(t){return t&&typeof t==="object"||o(t)}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function isEnum(t,r){return Object.prototype.propertyIsEnumerable.call(t,r)}},5776:(t,r,i)=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(7810);t.exports=function isExtendable(t){return o(t)||typeof t==="function"||Array.isArray(t)}},9480:(t,r,i)=>{"use strict";
/*!
 * static-extend <https://github.com/jonschlinkert/static-extend>
 *
 * Copyright (c) 2016, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(2448);var a=i(6967);var c=i(3837);function extend(t,r){if(typeof t!=="function"){throw new TypeError("expected Parent to be a function.")}return function(i,u){if(typeof i!=="function"){throw new TypeError("expected Ctor to be a function.")}c.inherits(i,t);o(i,t);if(typeof u==="object"){var l=Object.create(u);for(var h in l){i.prototype[h]=l[h]}}a(i.prototype,"_parent_",{configurable:true,set:function(){},get:function(){return t.prototype}});if(typeof r==="function"){r(i,t)}i.extend=extend(i,r)}}t.exports=extend},9318:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6224);const c=i(1621);const{env:u}=process;let l;if(c("no-color")||c("no-colors")||c("color=false")||c("color=never")){l=0}else if(c("color")||c("colors")||c("color=true")||c("color=always")){l=1}if("FORCE_COLOR"in u){if(u.FORCE_COLOR==="true"){l=1}else if(u.FORCE_COLOR==="false"){l=0}else{l=u.FORCE_COLOR.length===0?1:Math.min(parseInt(u.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,r){if(l===0){return 0}if(c("color=16m")||c("color=full")||c("color=truecolor")){return 3}if(c("color=256")){return 2}if(t&&!r&&l===undefined){return 0}const i=l||0;if(u.TERM==="dumb"){return i}if(process.platform==="win32"){const t=o.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in u){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in u))||u.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in u){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(u.TEAMCITY_VERSION)?1:0}if(u.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in u){const t=parseInt((u.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(u.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(u.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(u.TERM)){return 1}if("COLORTERM"in u){return 1}return i}function getSupportLevel(t){const r=supportsColor(t,t&&t.isTTY);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},8636:(t,r,i)=>{"use strict";
/*!
 * to-object-path <https://github.com/jonschlinkert/to-object-path>
 *
 * Copyright (c) 2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(6961);t.exports=function toPath(t){if(o(t)!=="arguments"){t=arguments}return filter(t).join(".")};function filter(t){var r=t.length;var i=-1;var a=[];while(++i<r){var c=t[i];if(o(c)==="arguments"||Array.isArray(c)){a.push.apply(a,filter(c))}else if(typeof c==="string"){a.push(c)}}return a}},6855:(t,r,i)=>{"use strict";var o=i(5634);var a=i(3162);var c=i(4964);var u=i(2527);var l=1024*64;var h={};t.exports=function(t,r){if(!Array.isArray(t)){return makeRe(t,r)}return makeRe(t.join("|"),r)};function makeRe(t,r){if(t instanceof RegExp){return t}if(typeof t!=="string"){throw new TypeError("expected a string")}if(t.length>l){throw new Error("expected pattern to be less than "+l+" characters")}var i=t;if(!r||r&&r.cache!==false){i=createKey(t,r);if(h.hasOwnProperty(i)){return h[i]}}var a=c({},r);if(a.contains===true){if(a.negate===true){a.strictNegate=false}else{a.strict=false}}if(a.strict===false){a.strictOpen=false;a.strictClose=false}var p=a.strictOpen!==false?"^":"";var d=a.strictClose!==false?"$":"";var m=a.flags||"";var g;if(a.nocase===true&&!/i/.test(m)){m+="i"}try{if(a.negate||typeof a.strictNegate==="boolean"){t=u.create(t,a)}var v=p+"(?:"+t+")"+d;g=new RegExp(v,m);if(a.safe===true&&o(g)===false){throw new Error("potentially unsafe regular expression: "+g.source)}}catch(o){if(a.strictErrors===true||a.safe===true){o.key=i;o.pattern=t;o.originalOptions=r;o.createdOptions=a;throw o}try{g=new RegExp("^"+t.replace(/(\W)/g,"\\$1")+"$")}catch(t){g=/.^/}}if(a.cache!==false){memoize(g,i,t,a)}return g}function memoize(t,r,i,o){a(t,"cached",true);a(t,"pattern",i);a(t,"options",o);a(t,"key",r);h[r]=t}function createKey(t,r){if(!r)return t;var i=t;for(var o in r){if(r.hasOwnProperty(o)){i+=";"+o+"="+String(r[o])}}return i}t.exports.makeRe=makeRe},3162:(t,r,i)=>{"use strict";
/*!
 * define-property <https://github.com/jonschlinkert/define-property>
 *
 * Copyright (c) 2015-2018, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5509);var a=i(567);var c=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;t.exports=function defineProperty(t,r,i){if(!o(t)&&typeof t!=="function"&&!Array.isArray(t)){throw new TypeError("expected an object, function, or array")}if(typeof r!=="string"){throw new TypeError('expected "key" to be a string')}if(a(i)){c(t,r,i);return t}c(t,r,{configurable:true,enumerable:false,writable:true,value:i});return t}},4964:(t,r,i)=>{"use strict";var o=i(7489);var a=i(8782);t.exports=Object.assign||function(t){if(t===null||typeof t==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(t)){t={}}for(var r=1;r<arguments.length;r++){var i=arguments[r];if(isString(i)){i=toObject(i)}if(isObject(i)){assign(t,i);a(t,i)}}return t};function assign(t,r){for(var i in r){if(hasOwn(r,i)){t[i]=r[i]}}}function isString(t){return t&&typeof t==="string"}function toObject(t){var r={};for(var i in t){r[i]=t[i]}return r}function isObject(t){return t&&typeof t==="object"||o(t)}function hasOwn(t,r){return Object.prototype.hasOwnProperty.call(t,r)}function isEnum(t,r){return Object.prototype.propertyIsEnumerable.call(t,r)}},7489:(t,r,i)=>{"use strict";
/*!
 * is-extendable <https://github.com/jonschlinkert/is-extendable>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(7810);t.exports=function isExtendable(t){return o(t)||typeof t==="function"||Array.isArray(t)}},7303:(t,r,i)=>{"use strict";var o=i(429);var a=i(8815);var c=i(9611);var u=i(4269);t.exports=function unionValue(t,r,i){if(!o(t)){throw new TypeError("union-value expects the first argument to be an object.")}if(typeof r!=="string"){throw new TypeError("union-value expects `prop` to be a string.")}var l=arrayify(c(t,r));u(t,r,a(l,arrayify(i)));return t};function arrayify(t){if(t===null||typeof t==="undefined"){return[]}if(Array.isArray(t)){return t}return[t]}},1571:(t,r,i)=>{"use strict";
/*!
 * unset-value <https://github.com/jonschlinkert/unset-value>
 *
 * Copyright (c) 2015, 2017, Jon Schlinkert.
 * Released under the MIT License.
 */var o=i(5509);var a=i(509);t.exports=function unset(t,r){if(!o(t)){throw new TypeError("expected an object.")}if(t.hasOwnProperty(r)){delete t[r];return true}if(a(t,r)){var i=r.split(".");var c=i.pop();while(i.length&&i[i.length-1].slice(-1)==="\\"){c=i.pop().slice(0,-1)+"."+c}while(i.length)t=t[r=i.shift()];return delete t[c]}return true}},509:(t,r,i)=>{"use strict";
/*!
 * has-value <https://github.com/jonschlinkert/has-value>
 *
 * Copyright (c) 2014-2016, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(8883);var a=i(5757);var c=i(9611);t.exports=function(t,r,i){if(o(t)){return a(c(t,r),i)}return a(t,r)}},8883:(t,r,i)=>{"use strict";
/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */var o=i(893);t.exports=function isObject(t){return t!=null&&typeof t==="object"&&o(t)===false}},5757:t=>{"use strict";
/*!
 * has-values <https://github.com/jonschlinkert/has-values>
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */t.exports=function hasValue(t,r){if(t===null||t===undefined){return false}if(typeof t==="boolean"){return true}if(typeof t==="number"){if(t===0&&r===true){return false}return true}if(t.length!==undefined){return t.length!==0}for(var i in t){if(t.hasOwnProperty(i)){return true}}return false}},91:(t,r,i)=>{const{URL:o}=i(7310);const{join:a}=i(1017);const c=i(7147);const{promisify:u}=i(3837);const{tmpdir:l}=i(2037);const h=i(4182);const p=u(c.writeFile);const d=u(c.mkdir);const m=u(c.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=l();const o=a(i,"update-check");if(!c.existsSync(o)){await d(o)}let u=`${t.name}-${r}.json`;if(t.scope){u=`${t.scope}-${u}`}return a(o,u)};const evaluateCache=async(t,r,i)=>{if(c.existsSync(t)){const o=await m(t,"utf8");const{lastUpdate:a,latest:c}=JSON.parse(o);const u=a+i;if(u>r){return{shouldCheck:false,latest:c}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await p(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const c={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){c.headers.authorization=`${r.type} ${r.token}`}const{get:u}=i(t.protocol==="https:"?5687:3685);u(c,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const c=h(r);const u=new o(t,c);let l=null;try{l=await loadPackage(u)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(2968);const r=t(c,{recursive:true});l=await loadPackage(u,r)}else{throw t}}const p=l["dist-tags"][a];if(!p){throw new Error(`Distribution tag ${a} is not available`)}return p};const g={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:c}=Object.assign({},g,r);const u=await getFile(i,a);let l=null;let h=true;({shouldCheck:h,latest:l}=await evaluateCache(u,o,c));if(h){l=await getMostRecent(i,a);await updateCache(u,l,o)}const p=compareVersions(t.version,l);if(p===-1){return{latest:l,fromCache:!h}}return null}},8987:(t,r,i)=>{var o=i(1017);"use strict";function urix(t){if(o.sep==="\\"){return t.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/")}return t}t.exports=urix},9656:t=>{"use strict";
/*!
 * use <https://github.com/jonschlinkert/use>
 *
 * Copyright (c) 2015-2017, Jon Schlinkert.
 * Released under the MIT License.
 */t.exports=function base(t,r){if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected an object or function")}var i=isObject(r)?r:{};var o=typeof i.prop==="string"?i.prop:"fns";if(!Array.isArray(t[o])){define(t,o,[])}define(t,"use",use);define(t,"run",(function(r){if(!isObject(r))return;if(!r.use||!r.run){define(r,o,r[o]||[]);define(r,"use",use)}if(!r[o]||r[o].indexOf(base)===-1){r.use(base)}var i=this||t;var a=i[o];var c=a.length;var u=-1;while(++u<c){r.use(a[u])}return r}));function use(r,a,c){var u=1;if(typeof r==="string"||Array.isArray(r)){a=wrap(r,a);u++}else{c=a;a=r}if(typeof a!=="function"){throw new TypeError("expected a function")}var l=this||t;var h=l[o];var p=[].slice.call(arguments,u);p.unshift(l);if(typeof i.hook==="function"){i.hook.apply(l,p)}var d=a.apply(l,p);if(typeof d==="function"&&h.indexOf(d)===-1){h.push(d)}return l}function wrap(t,r){return function plugin(){return this.type===t?r.apply(this,arguments):plugin}}return t};function isObject(t){return t&&typeof t==="object"&&!Array.isArray(t)}function define(t,r,i){Object.defineProperty(t,r,{configurable:true,writable:true,value:i})}},4006:(t,r,i)=>{"use strict";var o=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var a=i(3818);var c=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}c.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));a({version:"*"}).forEach((function(i){if(t.toLowerCase()===i){r.push(i+" is a core module name")}}));if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var u=t.match(o);if(u){var l=u[1];var h=u[2];if(encodeURIComponent(l)===l&&encodeURIComponent(h)===h){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},4207:(t,r,i)=>{const o=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const a=i(1017);const c=o?";":":";const u=i(7126);const getNotFoundError=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"});const getPathInfo=(t,r)=>{const i=r.colon||c;const a=t.match(/\//)||o&&t.match(/\\/)?[""]:[...o?[process.cwd()]:[],...(r.path||process.env.PATH||"").split(i)];const u=o?r.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const l=o?u.split(i):[""];if(o){if(t.indexOf(".")!==-1&&l[0]!=="")l.unshift("")}return{pathEnv:a,pathExt:l,pathExtExe:u}};const which=(t,r,i)=>{if(typeof r==="function"){i=r;r={}}if(!r)r={};const{pathEnv:o,pathExt:c,pathExtExe:l}=getPathInfo(t,r);const h=[];const step=i=>new Promise(((c,u)=>{if(i===o.length)return r.all&&h.length?c(h):u(getNotFoundError(t));const l=o[i];const p=/^".*"$/.test(l)?l.slice(1,-1):l;const d=a.join(p,t);const m=!p&&/^\.[\\\/]/.test(t)?t.slice(0,2)+d:d;c(subStep(m,i,0))}));const subStep=(t,i,o)=>new Promise(((a,p)=>{if(o===c.length)return a(step(i+1));const d=c[o];u(t+d,{pathExt:l},((c,u)=>{if(!c&&u){if(r.all)h.push(t+d);else return a(t+d)}return a(subStep(t,i,o+1))}))}));return i?step(0).then((t=>i(null,t)),i):step(0)};const whichSync=(t,r)=>{r=r||{};const{pathEnv:i,pathExt:o,pathExtExe:c}=getPathInfo(t,r);const l=[];for(let h=0;h<i.length;h++){const p=i[h];const d=/^".*"$/.test(p)?p.slice(1,-1):p;const m=a.join(d,t);const g=!d&&/^\.[\\\/]/.test(t)?t.slice(0,2)+m:m;for(let t=0;t<o.length;t++){const i=g+o[t];try{const t=u.sync(i,{pathExt:c});if(t){if(r.all)l.push(i);else return i}}catch(t){}}}if(r.all&&l.length)return l;if(r.nothrow)return null;throw getNotFoundError(t)};t.exports=which;which.sync=whichSync},2940:t=>{t.exports=wrappy;function wrappy(t,r){if(t&&r)return wrappy(t)(r);if(typeof t!=="function")throw new TypeError("need wrapper function");Object.keys(t).forEach((function(r){wrapper[r]=t[r]}));return wrapper;function wrapper(){var r=new Array(arguments.length);for(var i=0;i<r.length;i++){r[i]=arguments[i]}var o=t.apply(this,r);var a=r[r.length-1];if(typeof o==="function"&&o!==a){Object.keys(a).forEach((function(t){o[t]=a[t]}))}return o}}},4091:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},665:(t,r,i)=>{"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(t&&typeof t.forEach==="function"){t.forEach((function(t){r.push(t)}))}else if(arguments.length>0){for(var i=0,o=arguments.length;i<o;i++){r.push(arguments[i])}}return r}Yallist.prototype.removeNode=function(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}var r=t.next;var i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}t.list.length--;t.next=null;t.prev=null;t.list=null;return r};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}var r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}var r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++){push(this,arguments[t])}return this.length};Yallist.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++){unshift(this,arguments[t])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var t=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return t};Yallist.prototype.shift=function(){if(!this.head){return undefined}var t=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return t};Yallist.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,o=0;i!==null;o++){t.call(r,i.value,o,this);i=i.next}};Yallist.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,o=this.length-1;i!==null;o--){t.call(r,i.value,o,this);i=i.prev}};Yallist.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++){i=i.next}if(r===t&&i!==null){return i.value}};Yallist.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++){i=i.prev}if(r===t&&i!==null){return i.value}};Yallist.prototype.map=function(t,r){r=r||this;var i=new Yallist;for(var o=this.head;o!==null;){i.push(t.call(r,o.value,this));o=o.next}return i};Yallist.prototype.mapReverse=function(t,r){r=r||this;var i=new Yallist;for(var o=this.tail;o!==null;){i.push(t.call(r,o.value,this));o=o.prev}return i};Yallist.prototype.reduce=function(t,r){var i;var o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;o!==null;a++){i=t(i,o.value,a);o=o.next}return i};Yallist.prototype.reduceReverse=function(t,r){var i;var o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;o!==null;a--){i=t(i,o.value,a);o=o.prev}return i};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){t[r]=i.value;i=i.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){t[r]=i.value;i=i.prev}return t};Yallist.prototype.slice=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}for(;a!==null&&o<r;o++,a=a.next){i.push(a.value)}return i};Yallist.prototype.sliceReverse=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=this.length,a=this.tail;a!==null&&o>r;o--){a=a.prev}for(;a!==null&&o>t;o--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(t,r,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}var c=[];for(var o=0;a&&o<r;o++){c.push(a.value);a=this.removeNode(a)}if(a===null){a=this.tail}if(a!==this.head&&a!==this.tail){a=a.prev}for(var o=0;o<i.length;o++){a=insert(this,a,i[o])}return c};Yallist.prototype.reverse=function(){var t=this.head;var r=this.tail;for(var i=t;i!==null;i=i.prev){var o=i.prev;i.prev=i.next;i.next=o}this.head=r;this.tail=t;return this};function insert(t,r,i){var o=r===t.head?new Node(i,null,r,t):new Node(i,r,r.next,t);if(o.next===null){t.tail=o}if(o.prev===null){t.head=o}t.length++;return o}function push(t,r){t.tail=new Node(r,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}function Node(t,r,i,o){if(!(this instanceof Node)){return new Node(t,r,i,o)}this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}try{i(4091)(Yallist)}catch(t){}},5478:(t,r,i)=>{"use strict";i.r(r);var o=i(8818);var a=i.n(o);var c=i(1904);var u=i.n(c);var l=i(1017);var h=i.n(l);var p=i(9646);var d=i.n(p);var m=i(91);var g=i.n(m);var v=i(4070);var y=i.n(v);var b=i(7147);var w=i.n(b);var x=i(2037);var S=i.n(x);function makeDir(t,r={recursive:true}){return w().promises.mkdir(t,r)}var E=i(2081);var O=i(4959);var A=i.n(O);function isInGitRepository(){try{(0,E.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(t){}return false}function isInMercurialRepository(){try{(0,E.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(t){}return false}function tryGitInit(t){let r=false;try{(0,E.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,E.execSync)("git init",{stdio:"ignore"});r=true;(0,E.execSync)("git checkout -b main",{stdio:"ignore"});(0,E.execSync)("git add -A",{stdio:"ignore"});(0,E.execSync)('git commit -m "Initial commit from create-next-surf-app"',{stdio:"ignore"});return true}catch(i){if(r){try{A().sync(h().join(t,".git"))}catch(t){}}return false}}var _=i(2746);var k=i.n(_);function install(t,r,{packageManager:i,isOnline:o,devDependencies:c}){const u=[];const l=[];return new Promise(((h,p)=>{let d;let m=i;const g=i==="yarn";if(r&&r.length){if(g){d=["add","--exact"];if(!o)d.push("--offline");d.push("--cwd",t);if(c)d.push("--dev");d.push(...r)}else{d=["install","--save-exact"];d.push(c?"--save-dev":"--save");d.push(...r)}}else{d=["install"];if(!o){console.log(a().yellow("You appear to be offline."));if(g){console.log(a().yellow("Falling back to the local Yarn cache."));console.log();d.push("--offline")}else{console.log()}}}if(g){d.push(...l)}else{d.push(...u)}const v=k()(m,d,{stdio:"inherit",env:{...process.env,ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}});v.on("close",(t=>{if(t!==0){p({command:`${m} ${d.join(" ")}`});return}h()}))}))}function isFolderEmpty(t,r){const i=[".DS_Store",".git",".gitattributes",".gitignore",".gitlab-ci.yml",".hg",".hgcheck",".hgignore",".idea",".npmignore",".travis.yml","LICENSE","Thumbs.db","docs","mkdocs.yml","npm-debug.log","yarn-debug.log","yarn-error.log"];const o=w().readdirSync(t).filter((t=>!i.includes(t))).filter((t=>!/\.iml$/.test(t)));if(o.length>0){console.log(`The directory ${a().green(r)} contains files that could conflict:`);console.log();for(const r of o){try{const i=w().lstatSync(h().join(t,r));if(i.isDirectory()){console.log(`  ${a().blue(r)}/`)}else{console.log(`  ${r}`)}}catch{console.log(`  ${r}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}const C=require("dns");var j=i.n(C);var P=i(7310);var R=i.n(P);function getProxy(){if(process.env.https_proxy){return process.env.https_proxy}try{const t=(0,E.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:undefined}catch(t){return}}function getOnline(){return new Promise((t=>{j().lookup("registry.yarnpkg.com",(r=>{if(!r){return t(true)}const i=getProxy();if(!i){return t(false)}const{hostname:o}=R().parse(i);if(!o){return t(false)}j().lookup(o,(r=>{t(r==null)}))}))}))}async function isWriteable(t){try{await w().promises.access(t,(w().constants||w()).W_OK);return true}catch(t){return false}}class DownloadError extends Error{}async function createApp({appPath:t,packageManager:r}){const o=h().resolve(t);const c="default";if(!await isWriteable(h().dirname(o))){console.error("The application path is not writable, please check folder permissions and try again.");console.error("It is likely you do not have write permissions for this folder.");process.exit(1)}const u=h().basename(o);await makeDir(o);if(!isFolderEmpty(o,u)){process.exit(1)}const l=r==="yarn";const p=!l||await getOnline();const d=process.cwd();console.log(`🚀 Setting up your new Web3 frontend in ${a().green(o)}.`);console.log();process.chdir(o);console.log(a().bold(`Using ${r}.`));const m={name:u,version:"0.1.0",private:true,scripts:{dev:"next dev",build:"next build",start:"next start",lint:"next lint"}};w().writeFileSync(h().join(o,"package.json"),JSON.stringify(m,null,2)+S().EOL);const g={packageManager:r,isOnline:p};const v=["react@^18","react-dom@^18","next","wagmi","ethers","@rainbow-me/rainbowkit","@surfdb/client-sdk","siwe"];const b=["eslint","eslint-config-next","typescript","@types/react","@types/node","@types/react-dom"];if(v.length){console.log();console.log("Installing dependencies:");for(const t of v){console.log(`- ${a().cyan(t)}`)}console.log();await install(o,v,g)}if(b.length){console.log();console.log("Installing devDependencies:");for(const t of b){console.log(`- ${a().cyan(t)}`)}console.log();const t={devDependencies:true,...g};await install(o,b,t)}console.log();await y()("**",o,{parents:true,cwd:i.ab+"default",rename:t=>{switch(t){case"env.example":case"gitignore":case"eslintrc.json":{return".".concat(t)}case"README-template.md":{return"README.md"}default:{return t}}}});if(tryGitInit(o)){console.log("Initialized a git repository.");console.log()}let x;if(h().join(d,u)===t){x=u}else{x=t}console.log(`${a().green("Success!")} Created ${u} at ${t}`);console.log("Inside that directory, you can run several commands:");console.log();console.log(a().cyan(`  ${r} ${l?"":"run "}dev`));console.log("    Starts the development server.");console.log();console.log(a().cyan(`  ${r} ${l?"":"run "}build`));console.log("    Builds the app for production.");console.log();console.log(a().cyan(`  ${r} start`));console.log("    Runs the built app in production mode.");console.log();console.log("We suggest that you begin by typing:");console.log();console.log(a().cyan("  cd"),x);console.log(`  ${a().cyan(`${r} ${l?"":"run "}dev`)}`);console.log()}function getPkgManager(){try{const t=process.env.npm_config_user_agent;if(t){if(t.startsWith("yarn")){return"yarn"}else if(t.startsWith("pnpm")){return"pnpm"}}try{(0,E.execSync)("yarn --version",{stdio:"ignore"});return"yarn"}catch{(0,E.execSync)("pnpm --version",{stdio:"ignore"});return"pnpm"}}catch{return"npm"}}var M=i(4006);var T=i.n(M);function validateNpmName(t){const r=T()(t);if(r.validForNewPackages){return{valid:true}}return{valid:false,problems:[...r.errors||[],...r.warnings||[]]}}const I=JSON.parse('{"name":"create-next-surf-app","version":"0.0.1","repository":{"type":"git","url":"https://github.com/surfDB/surfDB/tree/main/packages/create-next-surf-app"},"license":"MIT","keywords":["nextjs","surfDB","ceramic","SIWE","DAO","decentralized","web","app","template"],"homepage":"https://docs.surfdb.xyz/","bin":"./index.js"}');let N="";const $=new(u().Command)(I.name).version(I.version).arguments("<project-directory>").usage(`${a().green("<project-directory>")} [options]`).action((t=>{N=t})).option("--use-npm",`\n  Explicitly tell the CLI to bootstrap the app using npm\n`).option("--use-pnpm",`\n  Explicitly tell the CLI to bootstrap the app using pnpm\n`).parse(process.argv);async function run(){if(typeof N==="string"){N=N.trim()}if(!N){const t=await d()({type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:t=>{const r=validateNpmName(h().basename(h().resolve(t)));if(r.valid){return true}return"Invalid project name: "+r.problems[0]}});if(typeof t.path==="string"){N=t.path.trim()}}if(!N){console.log();console.log("Please specify the project directory:");console.log(`  ${a().cyan($.name())} ${a().green("<project-directory>")}`);console.log();console.log("For example:");console.log(`  ${a().cyan($.name())} ${a().green("my-next-app")}`);console.log();console.log(`Run ${a().cyan(`${$.name()} --help`)} to see all options.`);process.exit(1)}const t=h().resolve(N);const r=h().basename(t);const{valid:i,problems:o}=validateNpmName(r);if(!i){console.error(`Could not create a project called ${a().red(`"${r}"`)} because of npm naming restrictions:`);o.forEach((t=>console.error(`    ${a().red.bold("*")} ${t}`)));process.exit(1)}const c=!!$.useNpm?"npm":!!$.usePnpm?"pnpm":"yarn";try{await createApp({appPath:t,packageManager:c})}catch(r){if(!(r instanceof DownloadError)){throw r}const i=await d()({type:"confirm",name:"builtin",message:`Could not download because of a connectivity issue between your machine and GitHub.\n`+`Do you want to use the default template instead?`,initial:true});if(!i.builtin){throw r}await createApp({appPath:t,packageManager:c})}}const D=g()(I).catch((()=>null));async function notifyUpdate(){try{const t=await D;if(t===null||t===void 0?void 0:t.latest){const t=getPkgManager();console.log();console.log(a().yellow.bold("A new version of `create-next-surf-app` is available!"));console.log("You can update by running: "+a().cyan(t==="yarn"?"yarn global create-next-surf-app":`${t} install --global create-next-surf-app`));console.log()}process.exit()}catch{}}run().then(notifyUpdate).catch((async t=>{console.log();console.log("Aborting installation.");if(t.command){console.log(`  ${a().cyan(t.command)} has failed.`)}else{console.log(a().red("Unexpected error. Please report it as a bug:"));console.log(t)}console.log();await notifyUpdate();process.exit(1)}))},9491:t=>{"use strict";t.exports=require("assert")},4300:t=>{"use strict";t.exports=require("buffer")},2081:t=>{"use strict";t.exports=require("child_process")},2057:t=>{"use strict";t.exports=require("constants")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},1808:t=>{"use strict";t.exports=require("net")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},6224:t=>{"use strict";t.exports=require("tty")},7310:t=>{"use strict";t.exports=require("url")},3837:t=>{"use strict";t.exports=require("util")}};var r={};function __nccwpck_require__(i){var o=r[i];if(o!==undefined){return o.exports}var a=r[i]={id:i,loaded:false,exports:{}};var c=true;try{t[i].call(a.exports,a,a.exports,__nccwpck_require__);c=false}finally{if(c)delete r[i]}a.loaded=true;return a.exports}(()=>{__nccwpck_require__.n=t=>{var r=t&&t.__esModule?()=>t["default"]:()=>t;__nccwpck_require__.d(r,{a:r});return r}})();(()=>{__nccwpck_require__.d=(t,r)=>{for(var i in r){if(__nccwpck_require__.o(r,i)&&!__nccwpck_require__.o(t,i)){Object.defineProperty(t,i,{enumerable:true,get:r[i]})}}}})();(()=>{__nccwpck_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r)})();(()=>{__nccwpck_require__.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var i=__nccwpck_require__(5478);module.exports=i})();