@eventcatalog/create-eventcatalog 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- module.exports=(()=>{var e={5296:e=>{"use strict";e.exports=asyncForEach;function asyncForEach(e,t,r){if(e.length===0){r();return}let n=e.length;e.forEach(e=>{t(e,()=>{if(--n===0){r()}})})}},9660:(e,t,r)=>{"use strict";e.exports=readdirAsync;const n=r(3279);const i=r(8191);let s={fs:r(5747),forEach:r(5296),async:true};function readdirAsync(e,t,r,o){if(typeof t==="function"){r=t;t=undefined}return n(r,new Promise((r,n)=>{let a=[];o.facade=s;let c=new i(e,t,o);let u=c.stream;u.on("error",e=>{n(e);u.pause()});u.on("data",e=>{a.push(e)});u.on("end",()=>{r(a)})}))}},9731:e=>{"use strict";let t=e.exports={safe:safeCall,once:callOnce};function safeCall(e,r){r=Array.prototype.slice.call(arguments,1);let n=t.once(r.pop());r.push(n);try{e.apply(null,r)}catch(e){n(e)}}function callOnce(e){let t=false;return function onceWrapper(r){if(!t){t=true;return e.apply(this,arguments)}else if(r){throw r}}}},8191:(e,t,r)=>{"use strict";const n=r(2413).Readable;const i=r(8614).EventEmitter;const s=r(5622);const o=r(5891);const a=r(4666);const c=r(9731);class DirectoryReader{constructor(e,t,r){this.options=t=o(t,r);this.shouldRead=true;this.queue=[{path:e,basePath:t.basePath,posixBasePath:t.posixBasePath,depth:0}];this.pending=0;this.buffer=[];this.stream=new n({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 e=this.options.facade;let t=this.queue.shift();this.pending++;c.safe(e.fs.readdir,t.path,(r,n)=>{if(r){this.emit("error",r);return this.finishedReadingDirectory()}try{e.forEach(n,this.processItem.bind(this,t),this.finishedReadingDirectory.bind(this,t))}catch(e){this.emit("error",e);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(e,t,r){let n=this.stream;let o=this.options;let c=e.basePath+t;let u=e.posixBasePath+t;let l=s.join(e.path,t);let f=e.depth>=o.recurseDepth;let h=!f||o.stats||o.recurseFn||o.filterFn||i.listenerCount(n,"file")||i.listenerCount(n,"directory")||i.listenerCount(n,"symlink");if(!h){if(this.filter(c,u)){this.pushOrBuffer({data:c})}return r()}a(o.facade.fs,l,(t,n)=>{if(t){this.emit("error",t);return r()}try{n.path=c;n.depth=e.depth;if(this.shouldRecurse(n,u,f)){this.queue.push({path:l,basePath:c+o.sep,posixBasePath:u+"/",depth:e.depth+1})}if(this.filter(n,u)){this.pushOrBuffer({data:o.stats?n:c,file:n.isFile(),directory:n.isDirectory(),symlink:n.isSymbolicLink()})}r()}catch(e){this.emit("error",e);r()}})}pushOrBuffer(e){this.buffer.push(e);if(this.shouldRead){this.pushFromBuffer()}}pushFromBuffer(){let e=this.stream;let t=this.buffer.shift();try{this.shouldRead=e.push(t.data)}catch(e){this.emit("error",e)}t.file&&this.emit("file",t.data);t.symlink&&this.emit("symlink",t.data);t.directory&&this.emit("directory",t.data)}shouldRecurse(e,t,r){let n=this.options;if(r){return false}else if(!e.isDirectory()){return false}else if(n.recurseGlob){return n.recurseGlob.test(t)}else if(n.recurseRegExp){return n.recurseRegExp.test(e.path)}else if(n.recurseFn){try{return n.recurseFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}filter(e,t){let r=this.options;if(r.filterGlob){return r.filterGlob.test(t)}else if(r.filterRegExp){return r.filterRegExp.test(e.path||e)}else if(r.filterFn){try{return r.filterFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}emit(e,t){let r=this.stream;try{r.emit(e,t)}catch(t){if(e==="error"){throw t}else{r.emit("error",t)}}}}e.exports=DirectoryReader},7250:(e,t,r)=>{"use strict";const n=r(8714);const i=r(9660);const s=r(3357);e.exports=t=readdirAsyncPath;t.readdir=t.readdirAsync=t.async=readdirAsyncPath;t.readdirAsyncStat=t.async.stat=readdirAsyncStat;t.readdirStream=t.stream=readdirStreamPath;t.readdirStreamStat=t.stream.stat=readdirStreamStat;t.readdirSync=t.sync=readdirSyncPath;t.readdirSyncStat=t.sync.stat=readdirSyncStat;function readdirSyncPath(e,t){return n(e,t,{})}function readdirSyncStat(e,t){return n(e,t,{stats:true})}function readdirAsyncPath(e,t,r){return i(e,t,r,{})}function readdirAsyncStat(e,t,r){return i(e,t,r,{stats:true})}function readdirStreamPath(e,t){return s(e,t,{})}function readdirStreamStat(e,t){return s(e,t,{stats:true})}},5891:(e,t,r)=>{"use strict";const n=r(5622);const i=r(8650);e.exports=normalizeOptions;let s=/^win/.test(process.platform);function normalizeOptions(e,t){if(e===null||e===undefined){e={}}else if(typeof e!=="object"){throw new TypeError("options must be an object")}let r,o,a,c,u=e.deep;if(u===null||u===undefined){r=0}else if(typeof u==="boolean"){r=u?Infinity:0}else if(typeof u==="number"){if(u<0||isNaN(u)){throw new Error("options.deep must be a positive number")}else if(Math.floor(u)!==u){throw new Error("options.deep must be an integer")}else{r=u}}else if(typeof u==="function"){r=Infinity;o=u}else if(u instanceof RegExp){r=Infinity;a=u}else if(typeof u==="string"&&u.length>0){r=Infinity;c=i(u,{extended:true,globstar:true})}else{throw new TypeError("options.deep must be a boolean, number, function, regular expression, or glob pattern")}let l,f,h,p=e.filter;if(p!==null&&p!==undefined){if(typeof p==="function"){l=p}else if(p instanceof RegExp){f=p}else if(typeof p==="string"&&p.length>0){h=i(p,{extended:true,globstar:true})}else{throw new TypeError("options.filter must be a function, regular expression, or glob pattern")}}let d=e.sep;if(d===null||d===undefined){d=n.sep}else if(typeof d!=="string"){throw new TypeError("options.sep must be a string")}let m=e.basePath;if(m===null||m===undefined){m=""}else if(typeof m==="string"){if(m&&m.substr(-1)!==d){m+=d}}else{throw new TypeError("options.basePath must be a string")}let y=m;if(y&&d!=="/"){y=y.replace(new RegExp("\\"+d,"g"),"/");if(s){y=y.replace(/^([a-zA-Z]\:\/|\/\/)/,"/")}}let v;if(e.fs===null||e.fs===undefined){v=t.facade}else if(typeof e.fs==="object"){v=Object.assign({},t.facade);v.fs=Object.assign({},t.facade.fs,e.fs)}else{throw new TypeError("options.fs must be an object")}return{recurseDepth:r,recurseFn:o,recurseRegExp:a,recurseGlob:c,filterFn:l,filterRegExp:f,filterGlob:h,sep:d,basePath:m,posixBasePath:y,facade:v,emit:!!t.emit,stats:!!t.stats}}},4666:(e,t,r)=>{"use strict";const n=r(9731);e.exports=stat;function stat(e,t,r){let i=false;n.safe(e.lstat,t,(n,s)=>{if(n){return r(n)}try{i=s.isSymbolicLink()}catch(e){return r(e)}if(i){symlinkStat(e,t,s,r)}else{r(null,s)}})}function symlinkStat(e,t,r,i){n.safe(e.stat,t,(e,t)=>{if(e){return i(null,r)}try{t.isSymbolicLink=(()=>true)}catch(e){return i(e)}i(null,t)})}},3357:(e,t,r)=>{"use strict";e.exports=readdirStream;const n=r(8191);let i={fs:r(5747),forEach:r(5296),async:true};function readdirStream(e,t,r){r.facade=i;let s=new n(e,t,r);return s.stream}},8105:e=>{"use strict";e.exports=syncForEach;function syncForEach(e,t,r){e.forEach(e=>{t(e,()=>{})});r()}},7818:(e,t,r)=>{"use strict";const n=r(5747);const i=r(9731);t.readdir=function(e,t){t=i.once(t);try{let r=n.readdirSync(e);t(null,r)}catch(e){t(e)}};t.stat=function(e,t){t=i.once(t);try{let r=n.statSync(e);t(null,r)}catch(e){t(e)}};t.lstat=function(e,t){t=i.once(t);try{let r=n.lstatSync(e);t(null,r)}catch(e){t(e)}}},8714:(e,t,r)=>{"use strict";e.exports=readdirSync;const n=r(8191);let i={fs:r(7818),forEach:r(8105),sync:true};function readdirSync(e,t,r){r.facade=i;let s=new n(e,t,r);let o=s.stream;let a=[];let c=o.read();while(c!==null){a.push(c);c=o.read()}return a}},8650:e=>{e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("Expected a string")}var r=String(e);var n="";var i=t?!!t.extended:false;var s=t?!!t.globstar:false;var o=false;var a=t&&typeof t.flags==="string"?t.flags:"";var c;for(var u=0,l=r.length;u<l;u++){c=r[u];switch(c){case"\\":case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":n+="\\"+c;break;case"?":if(i){n+=".";break}case"[":case"]":if(i){n+=c;break}case"{":if(i){o=true;n+="(";break}case"}":if(i){o=false;n+=")";break}case",":if(o){n+="|";break}n+="\\"+c;break;case"*":var f=r[u-1];var h=1;while(r[u+1]==="*"){h++;u++}var p=r[u+1];if(!s){n+=".*"}else{var d=h>1&&(f==="/"||f===undefined)&&(p==="/"||p===undefined);if(d){n+="(?:[^/]*(?:/|$))*";u++}else{n+="[^/]*"}}break;default:n+=c}}if(!a||!~a.indexOf("g")){n="^"+n+"$"}return new RegExp(n,a)}},1493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const{toString:r}=Object.prototype;const n=e=>t=>typeof t===e;const i=e=>{const t=r.call(e).slice(8,-1);if(t){return t}return undefined};const s=e=>t=>i(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(is.array(e)){return"Array"}if(is.buffer(e)){return"Buffer"}const t=i(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}is.undefined=n("undefined");is.string=n("string");const o=n("number");is.number=(e=>o(e)&&!is.nan(e));is.bigint=n("bigint");is.function_=n("function");is.null_=(e=>e===null);is.class_=(e=>is.function_(e)&&e.toString().startsWith("class "));is.boolean=(e=>e===true||e===false);is.symbol=n("symbol");is.numericString=(e=>is.string(e)&&!is.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e)));is.array=Array.isArray;is.buffer=(e=>{var t,r,n,i;return(i=(n=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,e))!==null&&i!==void 0?i:false});is.nullOrUndefined=(e=>is.null_(e)||is.undefined(e));is.object=(e=>!is.null_(e)&&(typeof e==="object"||is.function_(e)));is.iterable=(e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])});is.asyncIterable=(e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])});is.generator=(e=>is.iterable(e)&&is.function_(e.next)&&is.function_(e.throw));is.asyncGenerator=(e=>is.asyncIterable(e)&&is.function_(e.next)&&is.function_(e.throw));is.nativePromise=(e=>s("Promise")(e));const a=e=>{var t,r;return is.function_((t=e)===null||t===void 0?void 0:t.then)&&is.function_((r=e)===null||r===void 0?void 0:r.catch)};is.promise=(e=>is.nativePromise(e)||a(e));is.generatorFunction=s("GeneratorFunction");is.asyncGeneratorFunction=(e=>i(e)==="AsyncGeneratorFunction");is.asyncFunction=(e=>i(e)==="AsyncFunction");is.boundFunction=(e=>is.function_(e)&&!e.hasOwnProperty("prototype"));is.regExp=s("RegExp");is.date=s("Date");is.error=s("Error");is.map=(e=>s("Map")(e));is.set=(e=>s("Set")(e));is.weakMap=(e=>s("WeakMap")(e));is.weakSet=(e=>s("WeakSet")(e));is.int8Array=s("Int8Array");is.uint8Array=s("Uint8Array");is.uint8ClampedArray=s("Uint8ClampedArray");is.int16Array=s("Int16Array");is.uint16Array=s("Uint16Array");is.int32Array=s("Int32Array");is.uint32Array=s("Uint32Array");is.float32Array=s("Float32Array");is.float64Array=s("Float64Array");is.bigInt64Array=s("BigInt64Array");is.bigUint64Array=s("BigUint64Array");is.arrayBuffer=s("ArrayBuffer");is.sharedArrayBuffer=s("SharedArrayBuffer");is.dataView=s("DataView");is.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);is.urlInstance=(e=>s("URL")(e));is.urlString=(e=>{if(!is.string(e)){return false}try{new URL(e);return true}catch(e){return false}});is.truthy=(e=>Boolean(e));is.falsy=(e=>!e);is.nan=(e=>Number.isNaN(e));const c=new Set(["undefined","string","number","bigint","boolean","symbol"]);is.primitive=(e=>is.null_(e)||c.has(typeof e));is.integer=(e=>Number.isInteger(e));is.safeInteger=(e=>Number.isSafeInteger(e));is.plainObject=(e=>{if(i(e)!=="Object"){return false}const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})});const u=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);is.typedArray=(e=>{const t=i(e);if(t===undefined){return false}return u.has(t)});const l=e=>is.safeInteger(e)&&e>=0;is.arrayLike=(e=>!is.nullOrUndefined(e)&&!is.function_(e)&&l(e.length));is.inRange=((e,t)=>{if(is.number(t)){return e>=Math.min(0,t)&&e<=Math.max(t,0)}if(is.array(t)&&t.length===2){return e>=Math.min(...t)&&e<=Math.max(...t)}throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)});const f=1;const h=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=(e=>is.object(e)&&e.nodeType===f&&is.string(e.nodeName)&&!is.plainObject(e)&&h.every(t=>t in e));is.observable=(e=>{var t,r,n,i;if(!e){return false}if(e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))){return true}if(e===((i=(n=e)["@@observable"])===null||i===void 0?void 0:i.call(n))){return true}return false});is.nodeStream=(e=>is.object(e)&&is.function_(e.pipe)&&!is.observable(e));is.infinite=(e=>e===Infinity||e===-Infinity);const p=e=>t=>is.integer(t)&&Math.abs(t%2)===e;is.evenInteger=p(0);is.oddInteger=p(1);is.emptyArray=(e=>is.array(e)&&e.length===0);is.nonEmptyArray=(e=>is.array(e)&&e.length>0);is.emptyString=(e=>is.string(e)&&e.length===0);is.nonEmptyString=(e=>is.string(e)&&e.length>0);const d=e=>is.string(e)&&!/\S/.test(e);is.emptyStringOrWhitespace=(e=>is.emptyString(e)||d(e));is.emptyObject=(e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length===0);is.nonEmptyObject=(e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length>0);is.emptySet=(e=>is.set(e)&&e.size===0);is.nonEmptySet=(e=>is.set(e)&&e.size>0);is.emptyMap=(e=>is.map(e)&&e.size===0);is.nonEmptyMap=(e=>is.map(e)&&e.size>0);const m=(e,t,r)=>{if(!is.function_(t)){throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return e.call(r,t)};is.any=((e,...t)=>{const r=is.array(e)?e:[e];return r.some(e=>m(Array.prototype.some,e,t))});is.all=((e,...t)=>m(Array.prototype.every,e,t));const y=(e,t,r)=>{if(!e){throw new TypeError(`Expected value which is \`${t}\`, received value of type \`${is(r)}\`.`)}};t.assert={undefined:e=>y(is.undefined(e),"undefined",e),string:e=>y(is.string(e),"string",e),number:e=>y(is.number(e),"number",e),bigint:e=>y(is.bigint(e),"bigint",e),function_:e=>y(is.function_(e),"Function",e),null_:e=>y(is.null_(e),"null",e),class_:e=>y(is.class_(e),"Class",e),boolean:e=>y(is.boolean(e),"boolean",e),symbol:e=>y(is.symbol(e),"symbol",e),numericString:e=>y(is.numericString(e),"string with a number",e),array:e=>y(is.array(e),"Array",e),buffer:e=>y(is.buffer(e),"Buffer",e),nullOrUndefined:e=>y(is.nullOrUndefined(e),"null or undefined",e),object:e=>y(is.object(e),"Object",e),iterable:e=>y(is.iterable(e),"Iterable",e),asyncIterable:e=>y(is.asyncIterable(e),"AsyncIterable",e),generator:e=>y(is.generator(e),"Generator",e),asyncGenerator:e=>y(is.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>y(is.nativePromise(e),"native Promise",e),promise:e=>y(is.promise(e),"Promise",e),generatorFunction:e=>y(is.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>y(is.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>y(is.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>y(is.boundFunction(e),"Function",e),regExp:e=>y(is.regExp(e),"RegExp",e),date:e=>y(is.date(e),"Date",e),error:e=>y(is.error(e),"Error",e),map:e=>y(is.map(e),"Map",e),set:e=>y(is.set(e),"Set",e),weakMap:e=>y(is.weakMap(e),"WeakMap",e),weakSet:e=>y(is.weakSet(e),"WeakSet",e),int8Array:e=>y(is.int8Array(e),"Int8Array",e),uint8Array:e=>y(is.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>y(is.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>y(is.int16Array(e),"Int16Array",e),uint16Array:e=>y(is.uint16Array(e),"Uint16Array",e),int32Array:e=>y(is.int32Array(e),"Int32Array",e),uint32Array:e=>y(is.uint32Array(e),"Uint32Array",e),float32Array:e=>y(is.float32Array(e),"Float32Array",e),float64Array:e=>y(is.float64Array(e),"Float64Array",e),bigInt64Array:e=>y(is.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>y(is.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>y(is.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>y(is.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>y(is.dataView(e),"DataView",e),urlInstance:e=>y(is.urlInstance(e),"URL",e),urlString:e=>y(is.urlString(e),"string with a URL",e),truthy:e=>y(is.truthy(e),"truthy",e),falsy:e=>y(is.falsy(e),"falsy",e),nan:e=>y(is.nan(e),"NaN",e),primitive:e=>y(is.primitive(e),"primitive",e),integer:e=>y(is.integer(e),"integer",e),safeInteger:e=>y(is.safeInteger(e),"integer",e),plainObject:e=>y(is.plainObject(e),"plain object",e),typedArray:e=>y(is.typedArray(e),"TypedArray",e),arrayLike:e=>y(is.arrayLike(e),"array-like",e),domElement:e=>y(is.domElement(e),"Element",e),observable:e=>y(is.observable(e),"Observable",e),nodeStream:e=>y(is.nodeStream(e),"Node.js Stream",e),infinite:e=>y(is.infinite(e),"infinite number",e),emptyArray:e=>y(is.emptyArray(e),"empty array",e),nonEmptyArray:e=>y(is.nonEmptyArray(e),"non-empty array",e),emptyString:e=>y(is.emptyString(e),"empty string",e),nonEmptyString:e=>y(is.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>y(is.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>y(is.emptyObject(e),"empty object",e),nonEmptyObject:e=>y(is.nonEmptyObject(e),"non-empty object",e),emptySet:e=>y(is.emptySet(e),"empty set",e),nonEmptySet:e=>y(is.nonEmptySet(e),"non-empty set",e),emptyMap:e=>y(is.emptyMap(e),"empty map",e),nonEmptyMap:e=>y(is.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>y(is.evenInteger(e),"even integer",e),oddInteger:e=>y(is.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>y(is.directInstanceOf(e,t),"T",e),inRange:(e,t)=>y(is.inRange(e,t),"in range",e),any:(e,...t)=>y(is.any(e,...t),"predicate returns truthy for any value",t),all:(e,...t)=>y(is.all(e,...t),"predicate returns truthy for all values",t)};Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}});t.default=is;e.exports=is;e.exports.default=is;e.exports.assert=t.assert},4529:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8093);const i=r(1669);const s=Number(process.versions.node.split(".")[0]);const o=e=>{if(e.timings){return e.timings}const t={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};e.timings=t;const r=e=>{const r=e.emit.bind(e);e.emit=((n,...i)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(n,...i)})};r(e);const o=()=>{t.abort=Date.now();if(!t.response||s>=13){t.phases.total=Date.now()-t.start}};e.prependOnceListener("abort",o);const a=e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;if(i.types.isProxy(e)){return}const r=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",r);n.default(e,{connect:()=>{t.connect=Date.now();if(t.lookup===undefined){e.removeListener("lookup",r);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now();t.phases.tls=t.secureConnect-t.connect}})};if(e.socket){a(e.socket)}else{e.prependOnceListener("socket",a)}const c=()=>{var e;t.upload=Date.now();t.phases.request=t.upload-((e=t.secureConnect)!==null&&e!==void 0?e:t.connect)};const u=()=>{if(typeof e.writableFinished==="boolean"){return e.writableFinished}return e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0)};if(u()){c()}else{e.prependOnceListener("finish",c)}e.prependOnceListener("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;e.timings=t;r(e);e.prependOnceListener("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start});e.prependOnceListener("aborted",o)});return t};t.default=o;e.exports=o;e.exports.default=o},6164:e=>{"use strict";e.exports=function diff(e){var t=arguments.length;var r=0;while(++r<t){e=diffArray(e,arguments[r])}return e};function diffArray(e,t){if(!Array.isArray(t)){return e.slice()}var r=t.length;var n=e.length;var i=-1;var s=[];while(++i<n){var o=e[i];var a=false;for(var c=0;c<r;c++){var u=t[c];if(o===u){a=true;break}}if(a===false){s.push(o)}}return s}},9108:e=>{"use strict";e.exports=function(e){return flat(e,[])};function flat(e,t){var r=0,n;var i=e.length;for(;r<i;r++){n=e[r];Array.isArray(n)?flat(n,t):t.push(n)}return t}},4954:e=>{"use strict";e.exports=function union(e){if(!Array.isArray(e)){throw new TypeError("arr-union expects the first argument to be an array.")}var t=arguments.length;var r=0;while(++r<t){var n=arguments[r];if(!n)continue;if(!Array.isArray(n)){n=[n]}for(var i=0;i<n.length;i++){var s=n[i];if(e.indexOf(s)>=0){continue}e.push(s)}}return e}},4653:e=>{"use strict";function uniqNoSet(e){var t=[];for(var r=0;r<e.length;r++){if(t.indexOf(e[r])===-1){t.push(e[r])}}return t}function uniqSet(e){var t=new Set;return e.filter(function(e){if(!t.has(e)){t.add(e);return true}return false})}function uniqSetWithForEach(e){var t=[];new Set(e).forEach(function(e){t.push(e)});return t}function doesForEachActuallyWork(){var e=false;new Set([true]).forEach(function(t){e=t});return e===true}if("Set"in global){if(typeof Set.prototype.forEach==="function"&&doesForEachActuallyWork()){e.exports=uniqSetWithForEach}else{e.exports=uniqSet}}else{e.exports=uniqNoSet}},68:e=>{"use strict";e.exports=function unique(e){if(!Array.isArray(e)){throw new TypeError("array-unique expects an array.")}var t=e.length;var r=-1;while(r++<t){var n=r+1;for(;n<e.length;++n){if(e[r]===e[n]){e.splice(n--,1)}}}return e};e.exports.immutable=function uniqueImmutable(t){if(!Array.isArray(t)){throw new TypeError("array-unique expects an array.")}var r=t.length;var n=new Array(r);for(var i=0;i<r;i++){n[i]=t[i]}return e.exports(n)}},1827:e=>{"use strict";e.exports=function(e){if(e===null||e===undefined){return[]}return Array.isArray(e)?e:[e]}},3604:e=>{"use strict";e.exports=function(e,t){if(e===null||typeof e==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof t==="undefined"||typeof Symbol==="undefined"){return e}if(typeof Object.getOwnPropertySymbols!=="function"){return e}var r=Object.prototype.propertyIsEnumerable;var n=Object(e);var i=arguments.length,s=0;while(++s<i){var o=Object(arguments[s]);var a=Object.getOwnPropertySymbols(o);for(var c=0;c<a.length;c++){var u=a[c];if(r.call(o,u)){n[u]=o[u]}}}return n}},3691:(e,t,r)=>{var n=r(9356);function retry(e,t){function run(r,i){var s=t||{};if(!("randomize"in s)){s.randomize=true}var o=n.operation(s);function bail(e){i(e||new Error("Aborted"))}function onError(e,t){if(e.bail){bail(e);return}if(!o.retry(e)){i(o.mainError())}else if(s.onRetry){s.onRetry(e,t)}}function runAttempt(t){var n;try{n=e(bail,t)}catch(e){onError(e,t);return}Promise.resolve(n).then(r).catch(function catchIt(e){onError(e,t)})}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},3248:e=>{"use strict";function atob(e){return Buffer.from(e,"base64").toString("binary")}e.exports=atob.atob=atob},3353:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,s,o,a;var c=r.indexOf(e);var u=r.indexOf(t,c+1);var l=c;if(c>=0&&u>0){if(e===t){return[c,u]}n=[];s=r.length;while(l>=0&&!a){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),u]}else{i=n.pop();if(i<s){s=i;o=u}u=r.indexOf(t,l+1)}l=c<u&&c>=0?c:u}if(n.length){a=[s,o]}}return a}},2568:(e,t,r)=>{"use strict";var n=r(1669);var i=r(3150);var s=r(8047);var o=r(7141);var a=r(7328);var c=r(9657);var u=r(9859);var l=r(3157);function namespace(e){var t=e?s.namespace(e):s;var r=[];function Base(e,r){if(!(this instanceof Base)){return new Base(e,r)}t.call(this,e);this.is("base");this.initBase(e,r)}n.inherits(Base,t);o(Base);Base.prototype.initBase=function(t,n){this.options=c({},this.options,n);this.cache=this.cache||{};this.define("registered",{});if(e)this[e]={};this.define("_callbacks",this._callbacks);if(a(t)){this.visit("set",t)}Base.run(this,"use",r)};Base.prototype.is=function(e){if(typeof e!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+u(e),true);this.define("_name",e);this.define("_appname",e);return this};Base.prototype.isRegistered=function(e,t){if(this.registered.hasOwnProperty(e)){return true}if(t!==false){this.registered[e]=true;this.emit("plugin",e)}return false};Base.prototype.use=function(e){e.call(this,this);return this};Base.prototype.define=function(e,t){if(a(e)){return this.visit("define",e)}i(this,e,t);return this};Base.prototype.mixin=function(e,t){Base.prototype[e]=t;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});i(Base,"use",function(e){r.push(e);return Base});i(Base,"run",function(e,t,r){var n=r.length,i=0;while(n--){e[t](r[i++])}return Base});i(Base,"extend",l.extend(Base,function(e,t){e.prototype.mixins=e.prototype.mixins||[];i(e,"mixin",function(t){var r=t(e.prototype,e);if(typeof r==="function"){e.prototype.mixins.push(r)}return e});i(e,"mixins",function(t){Base.run(t,"mixin",e.prototype.mixins);return e});e.prototype.mixin=function(t,r){e.prototype[t]=r;return this};return Base}));i(Base,"mixin",function(e){var t=e(Base.prototype,Base);if(typeof t==="function"){Base.prototype.mixins.push(t)}return Base});i(Base,"mixins",function(e){Base.run(e,"mixin",Base.prototype.mixins);return Base});i(Base,"inherit",l.inherit);i(Base,"bubble",l.bubble);return Base}e.exports=namespace();e.exports.namespace=namespace},3150:(e,t,r)=>{"use strict";var n=r(5721);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},8047:(e,t,r)=>{"use strict";var n=r(7328);var i=r(7141);var s=r(6595);var o=r(328);var a=r(6405);var c=r(2281);var u=r(3826);var l=r(5297);var f=r(4927);function namespace(e){function Cache(t){if(e){this[e]={}}if(t){this.set(t)}}i(Cache.prototype);Cache.prototype.set=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}if(n(t)||Array.isArray(t)){this.visit("set",t)}else{f(e?this[e]:this,t,r);this.emit("set",t,r)}return this};Cache.prototype.union=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}var n=e?this[e]:this;a(n,t,arrayify(r));this.emit("union",r);return this};Cache.prototype.get=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);this.emit("get",t,n);return n};Cache.prototype.has=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);var i=typeof n!=="undefined";this.emit("has",t,i);return i};Cache.prototype.del=function(t){if(Array.isArray(t)){this.visit("del",t)}else{c(e?this[e]:this,t);this.emit("del",t)}return this};Cache.prototype.clear=function(){if(e){this[e]={}}};Cache.prototype.visit=function(e,t){s(this,e,t);return this};return Cache}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}e.exports=namespace();e.exports.namespace=namespace},9147:(e,t,r)=>{"use strict";const{Resolver:n,V4MAPPED:i,ADDRCONFIG:s}=r(881);const{promisify:o}=r(1669);const a=r(2087);const c=r(1050);const u=Symbol("cacheableLookupData");const l=Symbol("cacheableLookupInstance");const f=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const h=e=>{for(const t of e){t.address=`::ffff:${t.address}`;t.family=6}};const p=()=>{let e=false;let t=false;for(const r of Object.values(a.networkInterfaces())){for(const n of r){if(n.internal){continue}if(n.family==="IPv6"){t=true}else{e=true}if(e&&t){break}}}return{has4:e,has6:t}};class CacheableLookup{constructor({cacheAdapter:e,maxTtl:t=Infinity,resolver:r}={}){this.cache=new c({uri:typeof e==="string"&&e,store:typeof e!=="string"&&e,namespace:"cached-lookup"});this.maxTtl=t;this._resolver=r||new n;this._resolve4=o(this._resolver.resolve4.bind(this._resolver));this._resolve6=o(this._resolver.resolve6.bind(this._resolver));this._iface=p();this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}this.lookupAsync(e,{...t,throwNotFound:true}).then(e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}}).catch(r)}async lookupAsync(e,t={}){let r;if(!t.family&&t.all){const[t,n]=await Promise.all([this.lookupAsync(e,{all:true,family:4}),this.lookupAsync(e,{all:true,family:6})]);r=[...t,...n]}else{r=await this.query(e,t.family||4);if(r.length===0&&t.family===6&&t.hints&i){r=await this.query(e,4);h(r)}}if(t.hints&s){const{_iface:e}=this;r=r.filter(t=>t.family===6?e.has6:e.has4)}if(r.length===0&&t.throwNotFound){const t=new Error(`ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}const n=Date.now();r=r.filter(e=>e.ttl===0||n<e.expires);if(t.all){return r}if(r.length===1){return r[0]}if(r.length===0){return undefined}return this._getEntry(r)}async query(e,t){let r=await this.cache.get(`${e}:${t}`);if(!r){r=await this.queryAndCache(e,t)}return r}async queryAndCache(e,t){const r=t===4?this._resolve4:this._resolve6;const n=await r(e,{ttl:true});if(n===undefined){return[]}const i=Date.now();let s=0;for(const e of n){s=Math.max(s,e.ttl);e.family=t;e.expires=i+e.ttl*1e3}s=Math.min(this.maxTtl,s)*1e3;if(this.maxTtl!==0&&s!==0){await this.cache.set(`${e}:${t}`,n,s)}return n}_getEntry(e){return e[Math.floor(Math.random()*e.length)]}install(e){f(e);if(u in e){throw new Error("CacheableLookup has been already installed")}e[u]=e.createConnection;e[l]=this;e.createConnection=((t,r)=>{if(!("lookup"in t)){t.lookup=this.lookup}return e[u](t,r)})}uninstall(e){f(e);if(e[u]){if(e[l]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[u];delete e[u];delete e[l]}}updateInterfaceInfo(){this._iface=p()}}e.exports=CacheableLookup;e.exports.default=CacheableLookup},2547:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}const o=new n({objectMode:s});if(r){o.setEncoding(r)}let a=0;const c=[];o.on("data",e=>{c.push(e);if(s){a=c.length}else{a+=e.length}});o.getBufferedValue=(()=>{if(t){return c}return i?Buffer.concat(c,a):c.join("")});o.getBufferedLength=(()=>a);return o})},3537:(e,t,r)=>{"use strict";const{constants:n}=r(4293);const i=r(9595);const s=r(2547);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let o;await new Promise((a,c)=>{const u=e=>{if(e&&o.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=o.getBufferedValue()}c(e)};o=i(e,s(t),e=>{if(e){u(e);return}a()});o.on("data",()=>{if(o.getBufferedLength()>r){u(new MaxBufferError)}})});return o.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},3817:(e,t,r)=>{"use strict";const n=r(8614);const i=r(8835);const s=r(9966);const o=r(3537);const a=r(5855);const c=r(7431);const u=r(530);const l=r(9336);const f=r(1050);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new f({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let f;if(typeof t==="string"){f=normalizeUrlObject(i.parse(t));t={}}else if(t instanceof i.URL){f=normalizeUrlObject(i.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const n=r.length>0?`?${r.join("?")}`:"";f=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(f)};t.headers=u(t.headers);const h=new n;const p=s(i.format(f),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const d=`${t.method}:${p}`;let m=false;let y=false;const v=t=>{y=true;let n=false;let i;const s=new Promise(e=>{i=(()=>{if(!n){n=true;e()}})});const u=e=>{if(m&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(m.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new c(m.statusCode,t,m.body,m.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let i;if(t.cache&&e.cachePolicy.storable()){i=l(e);(async()=>{try{const r=o.buffer(e);await Promise.race([s,new Promise(t=>e.once("end",t))]);if(n){return}const i=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:i};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(d,a,c)}catch(e){h.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&m){(async()=>{try{await this.cache.delete(d)}catch(e){h.emit("error",new CacheableRequest.CacheError(e))}})()}h.emit("response",i||e);if(typeof r==="function"){r(i||e)}};try{const r=e(t,u);r.once("error",i);r.once("abort",i);h.emit("request",r)}catch(e){h.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(d):undefined;if(typeof t==="undefined"){return v(e)}const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const i=new c(t.statusCode,e,t.body,t.url);i.cachePolicy=n;i.fromCache=true;h.emit("response",i);if(typeof r==="function"){r(i)}}else{m=t;e.headers=n.revalidationHeaders(e);v(e)}};const n=e=>h.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",n);h.on("response",()=>this.cache.removeListener("error",n));try{await e(t)}catch(e){if(t.automaticFailover&&!y){v(t)}h.emit("error",new CacheableRequest.CacheError(e))}})();return h}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},3279:(e,t,r)=>{"use strict";var n=r(9415);e.exports=function maybe(e,t){if(e){t.then(function(t){n(function(){e(null,t)})},function(t){n(function(){e(t)})});return undefined}else{return t}}},9415:e=>{"use strict";function makeNext(){if(typeof process==="object"&&typeof process.nextTick==="function"){return process.nextTick}else if(typeof setImmediate==="function"){return setImmediate}else{return function next(e){setTimeout(e,0)}}}e.exports=makeNext()},3157:(e,t,r)=>{"use strict";var n=r(1669);var i=r(4954);var s=r(3018);var o=r(7504);var a=r(7328);var c=e.exports;c.isObject=function isObject(e){return a(e)||typeof e==="function"};c.has=function has(e,t){t=c.arrayify(t);var r=t.length;if(c.isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=c.nativeKeys(e);return c.has(i,t)}if(Array.isArray(e)){var s=e;while(r--){if(s.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")};c.hasAll=function hasAll(e,t){t=c.arrayify(t);var r=t.length;while(r--){if(!c.has(e,t[r])){return false}}return true};c.arrayify=function arrayify(e){return e?Array.isArray(e)?e:[e]:[]};c.noop=function noop(){return};c.identity=function identity(e){return e};c.hasConstructor=function hasConstructor(e){return c.isObject(e)&&typeof e.constructor!=="undefined"};c.nativeKeys=function nativeKeys(e){if(!c.hasConstructor(e))return[];var t=Object.getOwnPropertyNames(e);if("caller"in e)t.push("caller");return t};c.getDescriptor=function getDescriptor(e,t){if(!c.isObject(e)){throw new TypeError("expected an object.")}if(typeof t!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(e,t)};c.copyDescriptor=function copyDescriptor(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}if(typeof r!=="string"){throw new TypeError("expected name to be a string.")}var n=c.getDescriptor(t,r);if(n)Object.defineProperty(e,r,n)};c.copy=function copy(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=Object.getOwnPropertyNames(t);var i=Object.keys(t);var o=n.length,a;r=c.arrayify(r);while(o--){a=n[o];if(c.has(i,a)){s(e,a,t[a])}else if(!(a in e)&&!c.has(r,a)){c.copyDescriptor(e,t,a)}}};c.inherit=function inherit(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=[];for(var i in t){n.push(i);e[i]=t[i]}n=n.concat(c.arrayify(r));var s=t.prototype||t;var o=e.prototype||e;c.copy(o,s,n)};c.extend=function(){return o.apply(null,arguments)};c.bubble=function(e,t){t=t||[];e.bubble=function(r,n){if(Array.isArray(n)){t=i([],t,n)}var s=t.length;var o=-1;while(++o<s){var a=t[o];e.on(a,r.emit.bind(r,a))}c.bubble(r,t)}}},477:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},9336:(e,t,r)=>{"use strict";const n=r(2413).PassThrough;const i=r(477);const s=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;i(e,t);return e.pipe(t)};e.exports=s},6595:(e,t,r)=>{"use strict";var n=r(1345);var i=r(6519);e.exports=function(e,t,r){var s;if(typeof r==="string"&&t in e){var o=[].slice.call(arguments,2);s=e[t].apply(e,o)}else if(Array.isArray(r)){s=i.apply(null,arguments)}else{s=n.apply(null,arguments)}if(typeof s!=="undefined"){return s}return e}},7141:e=>{if(true){e.exports=Emitter}function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype){e[t]=Emitter.prototype[t]}return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};Emitter.prototype.once=function(e,t){function on(){this.off(e,on);t.apply(this,arguments)}on.fn=t;this.on(e,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var n;for(var i=0;i<r.length;i++){n=r[i];if(n===t||n.fn===t){r.splice(i,1);break}}if(r.length===0){delete this._callbacks["$"+e]}return this};Emitter.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=new Array(arguments.length-1),r=this._callbacks["$"+e];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n){r[n].apply(this,t)}}return this};Emitter.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};Emitter.prototype.hasListeners=function(e){return!!this.listeners(e).length}},4527:e=>{e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var s=r(e[i],i);if(t(s))n.push.apply(n,s);else n.push(s)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},4016:e=>{"use strict";e.exports=function copyDescriptor(e,t,r,n){if(!isObject(t)&&typeof t!=="function"){n=r;r=t;t=e}if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected the first argument to be an object")}if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected provider to be an object")}if(typeof n!=="string"){n=r}if(typeof r!=="string"){throw new TypeError("expected key to be a string")}if(!(r in t)){throw new Error('property "'+r+'" does not exist')}var i=Object.getOwnPropertyDescriptor(t,r);if(i)Object.defineProperty(e,n,i)};function isObject(e){return{}.toString.call(e)==="[object Object]"}},5473:(e,t,r)=>{"use strict";const n=r(3783);class CpFileError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpFileError"}}e.exports=CpFileError},6711:(e,t,r)=>{"use strict";const n=r(552);const i=r(7153);const s=r(9367);const o=r(5473);const a=s(n);t.closeSync=n.closeSync.bind(n);t.createWriteStream=n.createWriteStream.bind(n);t.createReadStream=((e,t)=>new Promise((r,i)=>{const s=n.createReadStream(e,t);s.once("error",t=>{i(new o(`Cannot read from \`${e}\`: ${t.message}`,t))});s.once("readable",()=>{r(s)});s.once("end",()=>{r(s)})}));t.stat=(e=>a.stat(e).catch(t=>{throw new o(`Cannot stat path \`${e}\`: ${t.message}`,t)}));t.lstat=(e=>a.lstat(e).catch(t=>{throw new o(`lstat \`${e}\` failed: ${t.message}`,t)}));t.utimes=((e,t,r)=>a.utimes(e,t,r).catch(t=>{throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}));t.chmod=((e,t)=>a.chmod(e,t).catch(t=>{throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}));t.chown=((e,t,r)=>a.chown(e,t,r).catch(t=>{throw new o(`chown \`${e}\` failed: ${t.message}`,t)}));t.openSync=((e,t,r)=>{try{return n.openSync(e,t,r)}catch(r){if(t.includes("w")){throw new o(`Cannot write to \`${e}\`: ${r.message}`,r)}throw new o(`Cannot open \`${e}\`: ${r.message}`,r)}});t.readSync=((e,t,r,i,s,a)=>{try{return n.readSync(e,t,r,i,s)}catch(e){throw new o(`Cannot read from \`${a}\`: ${e.message}`,e)}});t.writeSync=((e,t,r,i,s,a)=>{try{return n.writeSync(e,t,r,i,s)}catch(e){throw new o(`Cannot write to \`${a}\`: ${e.message}`,e)}});t.statSync=(e=>{try{return n.statSync(e)}catch(t){throw new o(`stat \`${e}\` failed: ${t.message}`,t)}});t.fstatSync=((e,t)=>{try{return n.fstatSync(e)}catch(e){throw new o(`fstat \`${t}\` failed: ${e.message}`,e)}});t.futimesSync=((e,t,r,i)=>{try{return n.futimesSync(e,t,r,i)}catch(e){throw new o(`futimes \`${i}\` failed: ${e.message}`,e)}});t.utimesSync=((e,t,r)=>{try{return n.utimesSync(e,t,r)}catch(t){throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}});t.chmodSync=((e,t)=>{try{return n.chmodSync(e,t)}catch(t){throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}});t.chownSync=((e,t,r)=>{try{return n.chownSync(e,t,r)}catch(t){throw new o(`chown \`${e}\` failed: ${t.message}`,t)}});t.makeDir=(e=>i(e,{fs:n}).catch(t=>{throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}));t.makeDirSync=(e=>{try{i.sync(e,{fs:n})}catch(t){throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}});if(n.copyFileSync){t.copyFileSync=((e,t,r)=>{try{n.copyFileSync(e,t,r)}catch(r){throw new o(`Cannot copy from \`${e}\` to \`${t}\`: ${r.message}`,r)}})}},5784:(e,t,r)=>{"use strict";const n=r(5622);const{constants:i}=r(5747);const{Buffer:s}=r(3118);const o=r(5473);const a=r(6711);const c=r(4956);const u=(e,t,r)=>{if(!e||!t){return Promise.reject(new o("`source` and `destination` required"))}r=Object.assign({overwrite:true},r);const i=new c(n.resolve(e),n.resolve(t));const s=a.stat(e).then(e=>{i.size=e.size}).then(()=>a.createReadStream(e)).then(e=>a.makeDir(n.dirname(t)).then(()=>e)).then(e=>new Promise((n,s)=>{const c=a.createWriteStream(t,{flags:r.overwrite?"w":"wx"});e.on("data",()=>{i.written=c.bytesWritten});c.on("error",e=>{if(!r.overwrite&&e.code==="EEXIST"){n(false);return}s(new o(`Cannot write to \`${t}\`: ${e.message}`,e))});c.on("close",()=>{i.written=i.size;n(true)});e.pipe(c)})).then(r=>{if(r){return a.lstat(e).then(e=>Promise.all([a.utimes(t,e.atime,e.mtime),a.chmod(t,e.mode),a.chown(t,e.uid,e.gid)]))}});s.on=((...e)=>{i.on(...e);return s});return s};e.exports=u;e.exports.default=u;const l=(e,t)=>{if(e.isDirectory()){throw Object.assign(new o(`EISDIR: illegal operation on a directory '${t}'`),{errno:-21,code:"EISDIR",source:t})}};const f=(e,t)=>{a.chmodSync(e,t.mode);a.chownSync(e,t.uid,t.gid)};const h=(e,t,r)=>{const s=a.statSync(e);l(s,e);a.makeDirSync(n.dirname(t));const o=r.overwrite?null:i.COPYFILE_EXCL;try{a.copyFileSync(e,t,o)}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}a.utimesSync(t,s.atime,s.mtime);f(t,s)};const p=(e,t,r)=>{let i;let o;let c;let u;const l=100*1024;const h=s.alloc(l);const p=t=>a.readSync(c,h,0,l,t,e);const d=()=>a.writeSync(u,h,0,i,undefined,t);c=a.openSync(e,"r");i=p(0);o=i;a.makeDirSync(n.dirname(t));try{u=a.openSync(t,r.overwrite?"w":"wx")}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}d();while(i===l){i=p(o);d();o+=i}const m=a.fstatSync(c,e);a.futimesSync(u,m.atime,m.mtime,t);a.closeSync(c);a.closeSync(u);f(t,m)};e.exports.sync=((e,t,r)=>{if(!e||!t){throw new o("`source` and `destination` required")}r=Object.assign({overwrite:true},r);if(a.copyFileSync){h(e,t,r)}else{p(e,t,r)}})},4956:(e,t,r)=>{"use strict";const n=r(8614);const i=new WeakMap;class ProgressEmitter extends n{constructor(e,t){super();this._source=e;this._destination=t}set written(e){i.set(this,e);this.emitProgress()}get written(){return i.get(this)}emitProgress(){const{size:e,written:t}=this;this.emit("progress",{src:this._source,dest:this._destination,size:e,written:t,percent:t===e?1:t/e})}}e.exports=ProgressEmitter},4542:(e,t,r)=>{"use strict";const n=r(3783);class CpyError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpyError"}}e.exports=CpyError},402:(e,t,r)=>{"use strict";const n=r(8614);const i=r(5622);const s=r(1827);const o=r(1317);const a=r(5784);const c=r(4542);const u=(e,t)=>t.cwd?i.resolve(t.cwd,e):e;const l=(e,t,r)=>{let n=i.basename(e);const s=i.dirname(e);if(typeof r.rename==="string"){n=r.rename}else if(typeof r.rename==="function"){n=r.rename(n)}if(r.cwd){t=i.resolve(r.cwd,t)}if(r.parents){return i.join(t,s,n)}return i.join(t,n)};const f=(e,t,r={})=>{e=s(e);const i=new n;if(e.length===0||!t){const e=Promise.reject(new c("`files` and `destination` required"));e.on=((...t)=>{i.on(...t);return e});return e}const f=new Map;let h=0;let p=0;const d=o(e,r).catch(t=>{throw new c(`Cannot glob \`${e}\`: ${t.message}`,t)}).then(e=>{if(e.length===0){i.emit("progress",{totalFiles:0,percent:1,completedFiles:0,completedSize:0})}return Promise.all(e.map(n=>{const s=u(n,r);const o=l(n,t,r);return a(s,o,r).on("progress",t=>{const r=f.get(t.src)||{written:0,percent:0};if(r.written!==t.written||r.percent!==t.percent){p-=r.written;p+=t.written;if(t.percent===1&&r.percent!==1){h++}f.set(t.src,{written:t.written,percent:t.percent});i.emit("progress",{totalFiles:e.length,percent:h/e.length,completedFiles:h,completedSize:p})}}).then(()=>o).catch(e=>{throw new c(`Cannot copy from \`${s}\` to \`${o}\`: ${e.message}`,e)})}))});d.on=((...e)=>{i.on(...e);return d});return d};e.exports=f;e.exports.default=f},7857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function getFileSystemAdapter(e){if(!e){return t.FILE_SYSTEM_ADAPTER}return Object.assign({},t.FILE_SYSTEM_ADAPTER,e)}t.getFileSystemAdapter=getFileSystemAdapter},5567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5917);const i=r(4943);function stat(e,t){return new Promise((r,s)=>{i.async(e,n.prepare(t),(e,t)=>e?s(e):r(t))})}t.stat=stat;function statCallback(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(typeof r==="undefined"){throw new TypeError('The "callback" argument must be of type Function.')}i.async(e,n.prepare(t),r)}t.statCallback=statCallback;function statSync(e,t){return i.sync(e,n.prepare(t))}t.statSync=statSync},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7857);function prepare(e){const t=Object.assign({fs:n.getFileSystemAdapter(e?e.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},e);return t}t.prepare=prepare},4943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function sync(e,t){const r=t.fs.lstatSync(e);if(!isFollowedSymlink(r,t)){return r}try{const n=t.fs.statSync(e);n.isSymbolicLink=(()=>true);return n}catch(e){if(!t.throwErrorOnBrokenSymlinks){return r}throw e}}t.sync=sync;function async(e,t,r){t.fs.lstat(e,(n,i)=>{if(n){return r(n,undefined)}if(!isFollowedSymlink(i,t)){return r(null,i)}t.fs.stat(e,(e,n)=>{if(e){return t.throwErrorOnBrokenSymlinks?r(e):r(null,i)}n.isSymbolicLink=(()=>true);r(null,n)})})}t.async=async;function isFollowedSymlink(e,t){return e.isSymbolicLink()&&t.followSymlinks}t.isFollowedSymlink=isFollowedSymlink},5852:(e,t,r)=>{"use strict";var n=r(4653);e.exports=function(){return n([].concat.apply([],arguments))}},6021:(e,t,r)=>{"use strict";var n=r(2325);var i=r(68);var s=r(2456);var o=r(844);var a=r(8228);var c=r(1583);var u=r(8682);var l=1024*64;var f={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var s=t&&t.cache===false;if(!s&&f.hasOwnProperty(r)){return f[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=i(n)}if(!s){f[r]=n}return n}braces.expand=function(e,t){return braces.create(e,s({},t,{expand:true}))};braces.optimize=function(e,t){return braces.create(e,t)};braces.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function create(){if(e===""||e.length<3){return[e]}if(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var s=n.output;if(t&&t.noempty===true){s=s.filter(Boolean)}if(t&&t.nodupes===true){s=i(s)}Object.defineProperty(s,"result",{enumerable:false,value:n});return s}return memoize("create",e,t,create)};braces.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var i=s({strictErrors:false},t);return n(r,i)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){f=braces.cache={}};function memoize(e,t,r,n){var i=u.createKey(e+":"+t,r);var s=r&&r.cache===false;if(s){braces.clearCache();return n(t,r)}if(f.hasOwnProperty(i)){return f[i]}var o=n(t,r);f[i]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=a;braces.cache=f;e.exports=braces},1583:(e,t,r)=>{"use strict";var n=r(2456);var i=r(4253);var s=r(844);var o=r(8228);var a=r(8682);function Braces(e){this.options=n({},e)}Braces.prototype.init=function(e){if(this.isInitialized)return;this.isInitialized=true;var t=a.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new i(t);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;s(this.snapdragon,t);o(this.snapdragon,t);a.define(this.snapdragon,"parse",function(e,t){var r=i.prototype.parse.apply(this,arguments);this.parser.ast.input=e;var n=this.parser.stack;while(n.length){addParent({type:"brace.close",val:""},n.pop())}function addParent(e,t){a.define(e,"parent",t);t.nodes.push(e)}a.define(r,"parser",this.parser);return r})};Braces.prototype.parse=function(e,t){if(e&&typeof e==="object"&&e.nodes)return e;this.init(t);return this.snapdragon.parse(e,t)};Braces.prototype.compile=function(e,t){if(typeof e==="string"){e=this.parse(e,t)}else{this.init(t)}return this.snapdragon.compile(e,t)};Braces.prototype.expand=function(e){var t=this.parse(e,{expand:true});return this.compile(t,{expand:true})};Braces.prototype.optimize=function(e){var t=this.parse(e,{optimize:true});return this.compile(t,{optimize:true})};e.exports=Braces},844:(e,t,r)=>{"use strict";var n=r(8682);e.exports=function(e,t){e.compiler.set("bos",function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var i=e.negated;var s=e.inner;s=s.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(s==="]-"){s="\\]\\-"}if(i&&s.indexOf(".")===-1){s+="."}if(i&&s.indexOf("/")===-1){s+="/"}var o=r+i+s+t;var a=e.parent.queue;var c=n.arrayify(a.pop());a.push(n.join(c,o));a.push.apply(a,[])}).set("brace",function(e){e.queue=isEscaped(e)?[e.val]:[];e.count=1;return this.mapVisit(e.nodes)}).set("brace.open",function(e){e.parent.open=e.val}).set("text",function(e){var r=e.parent.queue;var i=e.escaped;var s=[e.val];if(e.optimize===false){t=n.extend({},t,{optimize:false})}if(e.multiplier>1){e.parent.count*=e.multiplier}if(t.quantifiers===true&&n.isQuantifier(e.val)){i=true}else if(e.val.length>1){if(isType(e.parent,"brace")&&!isEscaped(e)){var o=n.expand(e.val,t);s=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!s.length){var a=o.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}s=[a];i=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);s=[""]}else{s=["|"]}}else{i=true}if(i&&isType(e.parent,"brace")){if(e.parent.nodes.length<=4&&e.parent.count===1){e.parent.escaped=true}else if(e.parent.length<=3){e.parent.escaped=true}}if(!hasQueue(e.parent)){e.parent.queue=s;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),s.shift()));r.push.apply(r,s)}).set("brace.close",function(e){var r=e.parent.queue;var i=e.parent.parent;var s=i.queue.pop();var o=e.parent.open;var a=e.val;if(o&&a&&isOptimized(e,t)){o="(";a=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(a&&typeof c==="string"&&c.length===1){o="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof s==="undefined"){i.queue=[r]}else{i.queue.push(n.flatten(n.join(s,r)))}}).set("eos",function(e){if(this.input)return;if(t.optimize!==false){this.output=n.last(n.flatten(this.ast.queue))}else if(Array.isArray(n.last(this.ast.queue))){this.output=n.flatten(this.ast.queue.pop())}else{this.output=n.flatten(this.ast.queue)}if(e.parent.count>1&&t.expand){this.output=multiply(this.output,e.parent.count)}this.output=n.arrayify(this.output);this.ast.queue=[]})};function multiply(e,t,r){return n.flatten(n.repeat(n.arrayify(e),t))}function isEscaped(e){return e.escaped===true}function isOptimized(e,t){if(e.parent.isOptimized)return true;return isType(e.parent,"brace")&&!isEscaped(e.parent)&&t.expand!==true}function isLiteralBrace(e,t){return isEscaped(e.parent)||t.optimize!==false}function noInner(e,t){if(e.parent.queue.length===1){return true}var r=e.parent.nodes;return r.length===3&&isType(r[0],"brace.open")&&!isType(r[1],"text")&&isType(r[2],"brace.close")}function isType(e,t){return typeof e!=="undefined"&&e.type===t}function hasQueue(e){return Array.isArray(e.queue)&&e.queue.length}},8228:(e,t,r)=>{"use strict";var n=r(6227);var i=r(8682);e.exports=function(e,t){e.parser.set("bos",function(){if(!this.parsed){this.ast=this.nodes[0]=new n(this.ast)}}).set("escape",function(){var e=this.position();var r=this.match(/^(?:\\(.)|\$\{)/);if(!r)return;var s=this.prev();var o=i.last(s.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);a.val+=l;if(l==="\\"){a.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,s,t)}).set("bracket",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var i=this.prev();var s=r[0];var o=r[1]?"^":"";var a=r[2]||"";var c=r[3]||"";if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var f=-1;var h;while(h=l[++f]){this.consume(1);if(h==="]"){c=h;break}a+=h}}return t(new n({type:"bracket",val:s,escaped:c!=="]",negated:o,inner:a,close:c}))}).set("multiplier",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^\{((?:,|\{,+\})+)\}/);if(!i)return;this.multiplier=true;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,match:i,val:o}));return concatNodes.call(this,r,a,s,t)}).set("brace.open",function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var s=i.last(r.nodes);if(s&&s.val&&isExtglobChar(s.val.slice(-1))){s.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(o);r.push(a);this.push("brace",a)}).set("brace.close",function(){var e=this.position();var t=this.match(/^\}/);if(!t||!t[0])return;var r=this.pop("brace");var s=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}s.type="text";s.multiplier=0;s.escaped=true;return s}var o=this.prev();var a=i.last(o.nodes);if(a.text){var c=i.last(a.nodes);if(c.val===")"&&/[!@*?+]\(/.test(a.text)){var u=a.nodes[0];var l=a.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var f=r.nodes[1];if(f.type==="text"&&f.val===","){r.nodes.splice(1,1);r.nodes.push(f)}}r.push(s)}).set("boundary",function(){var e=this.position();var t=this.match(/^[$^](?!\{)/);if(!t)return;return e(new n({type:"text",val:t[0]}))}).set("nobrace",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^\{[^,]?\}/);if(!r)return;var i=this.prev();var s=r[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}return t(new n({type:"text",multiplier:0,val:s}))}).set("text",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^((?!\\)[^${}[\]])+/);if(!i)return;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,a,s,t)})};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var s=this.prev();var o=i.last(s.nodes);var a=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);a=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var f=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=f.length;t.val=""}var h=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(h){o.val+=t.val;return}s.push(t)}},8682:(e,t,r)=>{"use strict";var n=r(4178);var i=e.exports;i.extend=r(2456);i.flatten=r(9108);i.isObject=r(7328);i.fillRange=r(7692);i.repeat=r(9503);i.unique=r(68);i.define=function(e,t,r){Object.defineProperty(e,t,{writable:true,configurable:true,enumerable:false,value:r})};i.isEmptySets=function(e){return/^(?:\{,\})+$/.test(e)};i.isQuotedString=function(e){var t=e.charAt(0);if(t==="'"||t==='"'||t==="`"){return e.slice(-1)===t}return false};i.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}var n=Object.keys(t);for(var i=0;i<n.length;i++){var s=n[i];r+=";"+s+"="+String(t[s])}return r};i.createOptions=function(e){var t=i.extend.apply(null,arguments);if(typeof t.expand==="boolean"){t.optimize=!t.expand}if(typeof t.optimize==="boolean"){t.expand=!t.optimize}if(t.optimize===true){t.makeRe=true}return t};i.join=function(e,t,r){r=r||{};e=i.arrayify(e);t=i.arrayify(t);if(!e.length)return t;if(!t.length)return e;var n=e.length;var s=-1;var o=[];while(++s<n){var a=e[s];if(Array.isArray(a)){for(var c=0;c<a.length;c++){a[c]=i.join(a[c],t,r)}o.push(a);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(i.join(a,l,r))}else{o.push(a+l)}}}return o};i.split=function(e,t){var r=i.extend({sep:","},t);if(typeof r.keepQuotes!=="boolean"){r.keepQuotes=true}if(r.unescape===false){r.keepEscaping=true}return n(e,r,i.escapeBrackets(r))};i.expand=function(e,t){var r=i.extend({rangeLimit:1e4},t);var n=i.split(e,r);var s={segs:n};if(i.isQuotedString(e)){return s}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){s.val=n[0];return s}s.segs=i.stringifyArray(s.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){s.val=s.segs[s.segs.length-1]||s.val||e;s.segs=[];return s}if(o.length===2&&o[0]===o[1]){s.escaped=true;s.val=o[0];s.segs=[];return s}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-a)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);s.segs=i.fillRange.apply(null,o);if(!s.segs.length){s.escaped=true;s.val=e;return s}if(r.optimize===true){s.segs=i.stringifyArray(s.segs)}if(s.segs===""){s.val=e}else{s.val=s.segs[0]}return s}}else{s.val=e}return s};i.escapeBrackets=function(e){return function(t){if(t.escaped&&t.val==="b"){t.val="\\b";return}if(t.val!=="("&&t.val!=="[")return;var r=i.extend({},e);var n=[];var s=[];var o=[];var a=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){a+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){s.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){s.pop();o.pop();if(!o.length){a+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){a+=l;break}}a+=l}t.split=false;t.val=a.slice(1);t.idx=u}};i.isQuantifier=function(e){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(e)};i.stringifyArray=function(e){return[i.arrayify(e).join("|")]};i.arrayify=function(e){if(typeof e==="undefined"){return[]}if(typeof e==="string"){return[e]}return e};i.isString=function(e){return e!=null&&typeof e==="string"};i.last=function(e,t){return e[e.length-(t||1)]};i.escapeRegex=function(e){return e.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},2456:(e,t,r)=>{"use strict";var n=r(2663);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},2663:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},7333:(e,t,r)=>{"use strict";var n=r(7328);var i=r(5721);var s=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){s(e,t,r);return e}s(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},4061:(e,t,r)=>{"use strict";const n=r(5622);const i=r(1161);const s=e=>e.length>1?`{${e.join(",")}}`:e[0];const o=(e,t)=>{const r=e[0]==="!"?e.slice(1):e;return n.isAbsolute(r)?r:n.join(t,r)};const a=(e,t)=>{if(n.extname(e)){return`**/${e}`}return`**/${e}.${s(t)}`};const c=(e,t)=>{if(t.files&&!Array.isArray(t.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``)}if(t.extensions&&!Array.isArray(t.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``)}if(t.files&&t.extensions){return t.files.map(r=>n.join(e,a(r,t.extensions)))}if(t.files){return t.files.map(t=>n.join(e,`**/${t}`))}if(t.extensions){return[n.join(e,`**/*.${s(t.extensions)}`)]}return[n.join(e,"**")]};e.exports=((e,t)=>{t=Object.assign({cwd:process.cwd()},t);if(typeof t.cwd!=="string"){return Promise.reject(new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``))}return Promise.all([].concat(e).map(e=>i.dir(o(e,t.cwd)).then(r=>r?c(e,t):e))).then(e=>[].concat.apply([],e))});e.exports.sync=((e,t)=>{t=Object.assign({cwd:process.cwd()},t);if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=[].concat(e).map(e=>i.dirSync(o(e,t.cwd))?c(e,t):e);return[].concat.apply([],r)})},2074:(e,t,r)=>{"use strict";var n=r(3239);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},81:(e,t,r)=>{const n=r(326);e.exports=n.async;e.exports.default=n.async;e.exports.async=n.async;e.exports.sync=n.sync;e.exports.stream=n.stream;e.exports.generateTasks=n.generateTasks},3106:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(2413);var s=r(5567);var o=r(3083);var a=function(e){n(FileSystemStream,e);function FileSystemStream(){return e!==null&&e.apply(this,arguments)||this}FileSystemStream.prototype.read=function(e,t){var r=this;var n=e.map(this.getFullEntryPath,this);var s=new i.Transform({objectMode:true});s._transform=function(i,o,a){return r.getEntry(n[i],e[i]).then(function(e){if(e!==null&&t(e)){s.push(e)}if(i===n.length-1){s.end()}a()})};for(var o=0;o<n.length;o++){s.write(o)}return s};FileSystemStream.prototype.getEntry=function(e,t){var r=this;return this.getStat(e).then(function(e){return r.makeEntry(e,t)}).catch(function(){return null})};FileSystemStream.prototype.getStat=function(e){return s.stat(e,{throwErrorOnBrokenSymlinks:false})};return FileSystemStream}(o.default);t.default=a},907:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(5567);var s=r(3083);var o=function(e){n(FileSystemSync,e);function FileSystemSync(){return e!==null&&e.apply(this,arguments)||this}FileSystemSync.prototype.read=function(e,t){var r=this;var n=[];e.forEach(function(e){var i=r.getFullEntryPath(e);var s=r.getEntry(i,e);if(s===null||!t(s)){return}n.push(s)});return n};FileSystemSync.prototype.getEntry=function(e,t){try{var r=this.getStat(e);return this.makeEntry(r,t)}catch(e){return null}};FileSystemSync.prototype.getStat=function(e){return i.statSync(e,{throwErrorOnBrokenSymlinks:false})};return FileSystemSync}(s.default);t.default=o},3083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);var i=function(){function FileSystem(e){this.options=e}FileSystem.prototype.getFullEntryPath=function(e){return n.resolve(this.options.cwd,e)};FileSystem.prototype.makeEntry=function(e,t){e.path=t;e.depth=t.split("/").length;return e};return FileSystem}();t.default=i},326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(2884);var i=r(54);var s=r(3139);var o=r(6192);var a=r(1714);var c=r(8641);var u=r(7914);function sync(e,t){assertPatternsInput(e);var r=getWorks(e,a.default,t);return c.flatten(r)}t.sync=sync;function async(e,t){try{assertPatternsInput(e)}catch(e){return Promise.reject(e)}var r=getWorks(e,s.default,t);return Promise.all(r).then(c.flatten)}t.async=async;function stream(e,t){assertPatternsInput(e);var r=getWorks(e,o.default,t);return u.merge(r)}t.stream=stream;function generateTasks(e,t){assertPatternsInput(e);var r=[].concat(e);var s=n.prepare(t);return i.generate(r,s)}t.generateTasks=generateTasks;function getWorks(e,t,r){var s=[].concat(e);var o=n.prepare(r);var a=i.generate(s,o);var c=new t(o);return a.map(c.read,c)}function assertPatternsInput(e){if([].concat(e).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(e){return typeof e==="string"}},2884:function(e,t){"use strict";var r=this&&this.__assign||function(){r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});function prepare(e){var t=r({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},e);if(t.onlyDirectories){t.onlyFiles=false}t.brace=!t.nobrace;t.globstar=!t.noglobstar;t.extension=!t.noext;t.case=!t.nocase;if(e){t.brace="brace"in e?e.brace:t.brace;t.globstar="globstar"in e?e.globstar:t.globstar;t.extension="extension"in e?e.extension:t.extension;t.case="case"in e?e.case:t.case}return t}t.prepare=prepare},54:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(3972);function generate(e,t){var r=e.map(n.unixifyPattern);var i=t.ignore.map(n.unixifyPattern);var s=getPositivePatterns(r);var o=getNegativePatternsAsPositive(r,i);var a=!t.case?[]:s.filter(n.isStaticPattern);var c=!t.case?s:s.filter(n.isDynamicPattern);var u=convertPatternsToTasks(a,o,false);var l=convertPatternsToTasks(c,o,true);return u.concat(l)}t.generate=generate;function convertPatternsToTasks(e,t,r){var n=groupPatternsByBaseDirectory(e);if("."in n){var i=convertPatternGroupToTask(".",e,t,r);return[i]}return convertPatternGroupsToTasks(n,t,r)}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return n.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){var r=n.getNegativePatterns(e).concat(t);var i=r.map(n.convertToPositivePattern);return i}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){return e.reduce(function(e,t){var r=n.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e},{})}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map(function(n){return convertPatternGroupToTask(n,e[n],t,r)})}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,i){return{base:e,dynamic:i,positive:t,negative:r,patterns:[].concat(t,r.map(n.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},7926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4905);var i=r(3972);var s=function(){function DeepFilter(e,t){this.options=e;this.micromatchOptions=t}DeepFilter.prototype.getFilter=function(e,t){var r=this;var n=this.getMaxPatternDepth(e);var i=this.getNegativePatternsRe(t);return function(e){return r.filter(e,i,n)}};DeepFilter.prototype.getMaxPatternDepth=function(e){var t=e.some(i.hasGlobStar);return t?Infinity:i.getMaxNaivePatternsDepth(e)};DeepFilter.prototype.getNegativePatternsRe=function(e){var t=e.filter(i.isAffectDepthOfReadingPattern);return i.convertPatternsToRe(t,this.micromatchOptions)};DeepFilter.prototype.filter=function(e,t,r){if(this.isSkippedByDeepOption(e.depth)){return false}if(this.isSkippedByMaxPatternDepth(e.depth,r)){return false}if(this.isSkippedSymlinkedDirectory(e)){return false}if(this.isSkippedDotDirectory(e)){return false}return this.isSkippedByNegativePatterns(e,t)};DeepFilter.prototype.isSkippedByDeepOption=function(e){return!this.options.deep||typeof this.options.deep==="number"&&e>=this.options.deep};DeepFilter.prototype.isSkippedByMaxPatternDepth=function(e,t){return t!==Infinity&&e>=t};DeepFilter.prototype.isSkippedSymlinkedDirectory=function(e){return!this.options.followSymlinkedDirectories&&e.isSymbolicLink()};DeepFilter.prototype.isSkippedDotDirectory=function(e){return!this.options.dot&&n.isDotDirectory(e.path)};DeepFilter.prototype.isSkippedByNegativePatterns=function(e,t){return!i.matchAny(e.path,t)};return DeepFilter}();t.default=s},7545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4905);var i=r(3972);var s=function(){function EntryFilter(e,t){this.options=e;this.micromatchOptions=t;this.index=new Map}EntryFilter.prototype.getFilter=function(e,t){var r=this;var n=i.convertPatternsToRe(e,this.micromatchOptions);var s=i.convertPatternsToRe(t,this.micromatchOptions);return function(e){return r.filter(e,n,s)}};EntryFilter.prototype.filter=function(e,t,r){if(this.options.unique){if(this.isDuplicateEntry(e)){return false}this.createIndexRecord(e)}if(this.onlyFileFilter(e)||this.onlyDirectoryFilter(e)){return false}if(this.isSkippedByAbsoluteNegativePatterns(e,r)){return false}return this.isMatchToPatterns(e.path,t)&&!this.isMatchToPatterns(e.path,r)};EntryFilter.prototype.isDuplicateEntry=function(e){return this.index.has(e.path)};EntryFilter.prototype.createIndexRecord=function(e){this.index.set(e.path,undefined)};EntryFilter.prototype.onlyFileFilter=function(e){return this.options.onlyFiles&&!e.isFile()};EntryFilter.prototype.onlyDirectoryFilter=function(e){return this.options.onlyDirectories&&!e.isDirectory()};EntryFilter.prototype.isSkippedByAbsoluteNegativePatterns=function(e,t){if(!this.options.absolute){return false}var r=n.makeAbsolute(this.options.cwd,e.path);return this.isMatchToPatterns(r,t)};EntryFilter.prototype.isMatchToPatterns=function(e,t){return i.matchAny(e,t)||i.matchAny(e+"/",t)};return EntryFilter}();t.default=s},3139:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(7250);var s=r(7056);var o=r(3106);var a=function(e){n(ReaderAsync,e);function ReaderAsync(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(ReaderAsync.prototype,"fsAdapter",{get:function(){return new o.default(this.options)},enumerable:true,configurable:true});ReaderAsync.prototype.read=function(e){var t=this;var r=this.getRootDirectory(e);var n=this.getReaderOptions(e);var i=[];return new Promise(function(s,o){var a=t.api(r,e,n);a.on("error",function(e){t.isEnoentCodeError(e)?s([]):o(e);a.pause()});a.on("data",function(e){return i.push(t.transform(e))});a.on("end",function(){return s(i)})})};ReaderAsync.prototype.api=function(e,t,r){if(t.dynamic){return this.dynamicApi(e,r)}return this.staticApi(t,r)};ReaderAsync.prototype.dynamicApi=function(e,t){return i.readdirStreamStat(e,t)};ReaderAsync.prototype.staticApi=function(e,t){return this.fsAdapter.read(e.patterns,t.filter)};return ReaderAsync}(s.default);t.default=a},6192:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(2413);var s=r(7250);var o=r(7056);var a=r(3106);var c=function(e){n(TransformStream,e);function TransformStream(t){var r=e.call(this,{objectMode:true})||this;r.reader=t;return r}TransformStream.prototype._transform=function(e,t,r){r(null,this.reader.transform(e))};return TransformStream}(i.Transform);var u=function(e){n(ReaderStream,e);function ReaderStream(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(ReaderStream.prototype,"fsAdapter",{get:function(){return new a.default(this.options)},enumerable:true,configurable:true});ReaderStream.prototype.read=function(e){var t=this;var r=this.getRootDirectory(e);var n=this.getReaderOptions(e);var i=new c(this);var s=this.api(r,e,n);return s.on("error",function(e){return t.isEnoentCodeError(e)?null:i.emit("error",e)}).pipe(i)};ReaderStream.prototype.api=function(e,t,r){if(t.dynamic){return this.dynamicApi(e,r)}return this.staticApi(t,r)};ReaderStream.prototype.dynamicApi=function(e,t){return s.readdirStreamStat(e,t)};ReaderStream.prototype.staticApi=function(e,t){return this.fsAdapter.read(e.patterns,t.filter)};return ReaderStream}(o.default);t.default=u},1714:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(7250);var s=r(7056);var o=r(907);var a=function(e){n(ReaderSync,e);function ReaderSync(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(ReaderSync.prototype,"fsAdapter",{get:function(){return new o.default(this.options)},enumerable:true,configurable:true});ReaderSync.prototype.read=function(e){var t=this.getRootDirectory(e);var r=this.getReaderOptions(e);try{var n=this.api(t,e,r);return n.map(this.transform,this)}catch(e){if(this.isEnoentCodeError(e)){return[]}throw e}};ReaderSync.prototype.api=function(e,t,r){if(t.dynamic){return this.dynamicApi(e,r)}return this.staticApi(t,r)};ReaderSync.prototype.dynamicApi=function(e,t){return i.readdirSyncStat(e,t)};ReaderSync.prototype.staticApi=function(e,t){return this.fsAdapter.read(e.patterns,t.filter)};return ReaderSync}(s.default);t.default=a},7056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);var i=r(7926);var s=r(7545);var o=r(4905);var a=function(){function Reader(e){this.options=e;this.micromatchOptions=this.getMicromatchOptions();this.entryFilter=new s.default(e,this.micromatchOptions);this.deepFilter=new i.default(e,this.micromatchOptions)}Reader.prototype.getRootDirectory=function(e){return n.resolve(this.options.cwd,e.base)};Reader.prototype.getReaderOptions=function(e){return{basePath:e.base==="."?"":e.base,filter:this.entryFilter.getFilter(e.positive,e.negative),deep:this.deepFilter.getFilter(e.positive,e.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(e){if(this.options.absolute){e.path=o.makeAbsolute(this.options.cwd,e.path)}if(this.options.markDirectories&&e.isDirectory()){e.path+="/"}var t=this.options.stats?e:e.path;if(this.options.transform===null){return t}return this.options.transform(t)};Reader.prototype.isEnoentCodeError=function(e){return e.code==="ENOENT"};return Reader}();t.default=a},8641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function flatten(e){return e.reduce(function(e,t){return[].concat(e,t)},[])}t.flatten=flatten},4905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);function isDotDirectory(e){return n.basename(e).startsWith(".")}t.isDotDirectory=isDotDirectory;function normalize(e){return e.replace(/\\/g,"/")}t.normalize=normalize;function makeAbsolute(e,t){return normalize(n.resolve(e,t))}t.makeAbsolute=makeAbsolute},3972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);var i=r(8216);var s=r(4042);var o=r(1227);var a="**";function isStaticPattern(e){return!isDynamicPattern(e)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e){return s(e,{strict:false})}t.isDynamicPattern=isDynamicPattern;function unixifyPattern(e){return e.replace(/\\/g,"/")}t.unixifyPattern=unixifyPattern;function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getBaseDirectory(e){return i(e)}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.indexOf(a)!==-1}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+a)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){var t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function getNaiveDepth(e){var t=getBaseDirectory(e);var r=e.split("/").length;var n=t.split("/").length;if(t==="."){return r-n}return r-n-1}t.getNaiveDepth=getNaiveDepth;function getMaxNaivePatternsDepth(e){return e.reduce(function(e,t){var r=getNaiveDepth(t);return r>e?r:e},0)}t.getMaxNaivePatternsDepth=getMaxNaivePatternsDepth;function makeRe(e,t){return o.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map(function(e){return makeRe(e,t)})}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some(function(t){return t.test(e)})}t.matchAny=matchAny},7914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(2375);function merge(e){var t=n(e);e.forEach(function(e){e.on("error",function(e){return t.emit("error",e)})});return t}t.merge=merge},7692:(e,t,r)=>{"use strict";var n=r(1669);var i=r(6110);var s=r(2671);var o=r(9626);var a=r(1860);function fillRange(e,t,r,o){if(typeof e==="undefined"){return[]}if(typeof t==="undefined"||e===t){var a=typeof e==="string";if(i(e)&&!toNumber(e)){return[a?"0":0]}return[e]}if(typeof r!=="number"&&typeof r!=="string"){o=r;r=undefined}if(typeof o==="function"){o={transform:o}}var c=s({step:r},o);if(c.step&&!isValidNumber(c.step)){if(c.strictRanges===true){throw new TypeError("expected options.step to be a number")}return[]}c.isNumber=isValidNumber(e)&&isValidNumber(t);if(!c.isNumber&&!isValid(e,t)){if(c.strictRanges===true){throw new RangeError("invalid range arguments: "+n.inspect([e,t]))}return[]}c.isPadded=isPadded(e)||isPadded(t);c.toString=c.stringify||typeof c.step==="string"||typeof e==="string"||typeof t==="string"||!c.isNumber;if(c.isPadded){c.maxLength=Math.max(String(e).length,String(t).length)}if(typeof c.optimize==="boolean")c.toRegex=c.optimize;if(typeof c.makeRe==="boolean")c.toRegex=c.makeRe;return expand(e,t,c)}function expand(e,t,r){var n=r.isNumber?toNumber(e):e.charCodeAt(0);var i=r.isNumber?toNumber(t):t.charCodeAt(0);var s=Math.abs(toNumber(r.step))||1;if(r.toRegex&&s===1){return toRange(n,i,e,t,r)}var o={greater:[],lesser:[]};var a=n<i;var c=new Array(Math.round((a?i-n:n-i)/s));var u=0;while(a?n<=i:n>=i){var l=r.isNumber?n:String.fromCharCode(n);if(r.toRegex&&(l>=0||!r.isNumber)){o.greater.push(l)}else{o.lesser.push(Math.abs(l))}if(r.isPadded){l=zeros(l,r)}if(r.toString){l=String(l)}if(typeof r.transform==="function"){c[u++]=r.transform(l,n,i,s,u,c,r)}else{c[u++]=l}if(a){n+=s}else{n-=s}}if(r.toRegex===true){return toSequence(c,o,r)}return c}function toRange(e,t,r,n,i){if(i.isPadded){return a(r,n,i)}if(i.isNumber){return a(Math.min(e,t),Math.max(e,t),i)}var r=String.fromCharCode(Math.min(e,t));var n=String.fromCharCode(Math.max(e,t));return"["+r+"-"+n+"]"}function toSequence(e,t,r){var n="",i="";if(t.greater.length){n=t.greater.join("|")}if(t.lesser.length){i="-("+t.lesser.join("|")+")"}var s=n&&i?n+"|"+i:n||i;if(r.capture){return"("+s+")"}return s}function zeros(e,t){if(t.isPadded){var r=String(e);var n=r.length;var i="";if(r.charAt(0)==="-"){i="-";r=r.slice(1)}var s=t.maxLength-n;var a=o("0",s);e=i+a+r}if(t.stringify){return String(e)}return e}function toNumber(e){return Number(e)||0}function isPadded(e){return/^-?0\d/.test(e)}function isValid(e,t){return(isValidNumber(e)||isValidLetter(e))&&(isValidNumber(t)||isValidLetter(t))}function isValidLetter(e){return typeof e==="string"&&e.length===1&&/^\w+$/.test(e)}function isValidNumber(e){return i(e)&&!/\./.test(e)}e.exports=fillRange},2671:(e,t,r)=>{"use strict";var n=r(9580);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9580:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},8216:(e,t,r)=>{"use strict";var n=r(5622);var i=r(5548);var s=r(8261);var o=r(2087).platform()==="win32";e.exports=function globParent(e){if(o&&e.indexOf("/")<0)e=e.split("\\").join("/");if(/[\{\[].*[\/]*.*[\}\]]$/.test(e))e+="/";e+="a";do{e=s.posix(e)}while(i(e)||/(^|[^\\])([\{\[]|\([^\)]+$)/.test(e));return e.replace(/\\([\*\?\|\[\]\(\)\{\}])/g,"$1")}},5548:(e,t,r)=>{var n=r(6546);e.exports=function isGlob(e){if(typeof e!=="string"||e===""){return false}if(n(e))return true;var t=/(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;var r;while(r=t.exec(e)){if(r[2])return true;e=e.slice(r.index+r[0].length)}return false}},3926:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=r(81);const o=r(9321);const a=r(9367);const c=r(3761);const u=["**/node_modules/**","**/bower_components/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=a(n.readFile);const f=e=>t=>{if(t.startsWith("!")){return"!"+i.posix.join(e,t.slice(1))}return i.posix.join(e,t)};const h=(e,t)=>{const r=c(i.relative(t.cwd,i.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(e=>e.charAt(0)!=="#").map(f(r))};const p=e=>{return e.reduce((e,t)=>{e.add(h(t.content,{cwd:t.cwd,fileName:t.filePath}));return e},o())};const d=(e,t)=>{return r=>e.ignores(c(i.relative(t,r)))};const m=(e,t)=>{const r=i.join(t,e);return l(r,"utf8").then(e=>({content:e,cwd:t,filePath:r}))};const y=(e,t)=>{const r=i.join(t,e);const s=n.readFileSync(r,"utf8");return{content:s,cwd:t,filePath:r}};const v=(e={})=>{const t=e.ignore||[];const r=e.cwd||process.cwd();return{ignore:t,cwd:r}};e.exports=(e=>{e=v(e);return s("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd}).then(t=>Promise.all(t.map(t=>m(t,e.cwd)))).then(e=>p(e)).then(t=>d(t,e.cwd))});e.exports.sync=(e=>{e=v(e);const t=s.sync("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=t.map(t=>y(t,e.cwd));const n=p(r);return d(n,e.cwd)})},1317:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5852);const s=r(3700);const o=r(81);const a=r(4061);const c=r(3926);const u=()=>false;const l=e=>e[0]==="!";const f=e=>{if(!e.every(e=>typeof e==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const h=e=>{if(e&&e.cwd&&!n.statSync(e.cwd).isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const p=(e,t)=>{e=i([].concat(e));f(e);h(t);const r=[];t=Object.assign({ignore:[],expandDirectories:true},t);e.forEach((n,i)=>{if(l(n)){return}const s=e.slice(i).filter(l).map(e=>e.slice(1));const o=Object.assign({},t,{ignore:t.ignore.concat(s)});r.push({pattern:n,options:o})});return r};const d=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r=Object.assign(r,{files:e.options.expandDirectories})}else if(typeof e.options.expandDirectories==="object"){r=Object.assign(r,e.options.expandDirectories)}return t(e.pattern,r)};const m=(e,t)=>e.options.expandDirectories?d(e,t):[e.pattern];const y=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:t,options:r}};const v=(e,t)=>{let r;try{r=p(e,t)}catch(e){return Promise.reject(e)}const n=Promise.all(r.map(e=>Promise.resolve(m(e,a)).then(t=>Promise.all(t.map(y(e)))))).then(e=>i(...e));const s=()=>{return Promise.resolve(t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):u)};return s().then(e=>{return n.then(e=>Promise.all(e.map(e=>o(e.pattern,e.options)))).then(e=>i(...e)).then(t=>t.filter(t=>!e(t)))})};e.exports=v;e.exports.default=v;e.exports.sync=((e,t)=>{const r=p(e,t);const n=()=>{return t&&t.gitignore?c.sync({cwd:t.cwd,ignore:t.ignore}):u};const s=r.reduce((e,t)=>{const r=m(t,a.sync).map(y(t));return e.concat(r)},[]);const l=n();return s.reduce((e,t)=>i(e,o.sync(t.pattern,t.options)),[]).filter(e=>!l(e))});e.exports.generateGlobTasks=p;e.exports.hasMagic=((e,t)=>[].concat(e).some(e=>s.hasMagic(e,t)));e.exports.gitignore=c},9321:e=>{function make_array(e){return Array.isArray(e)?e:[e]}const t=/^\s+$/;const r=/^\\!/;const n=/^\\#/;const i="/";const s=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const o=(e,t,r)=>Object.defineProperty(e,t,{value:r});const a=/([0-z])-([0-z])/g;const c=e=>e.replace(a,(e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:"");const u=[[/\\?\s+$/,e=>e.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,e=>`\\${e}`],[/\[([^\]/]*)($|\])/g,(e,t,r)=>r==="]"?`[${c(t)}]`:`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]];const l=[[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(e,t)=>`${t}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const f=[...u,[/(?:[^*/])$/,e=>`${e}(?=$|\\/)`],...l];const h=[...u,[/(?:[^*])$/,e=>`${e}(?=$|\\/$)`],...l];const p=Object.create(null);const d=(e,t,r)=>{const n=p[e];if(n){return n}const i=t?h:f;const s=i.reduce((t,r)=>t.replace(r[0],r[1].bind(e)),e);return p[e]=r?new RegExp(s,"i"):new RegExp(s)};const m=e=>e&&typeof e==="string"&&!t.test(e)&&e.indexOf("#")!==0;const y=(e,t)=>{const i=e;let s=false;if(e.indexOf("!")===0){s=true;e=e.substr(1)}e=e.replace(r,"!").replace(n,"#");const o=d(e,s,t);return{origin:i,pattern:e,negative:s,regex:o}};class IgnoreBase{constructor({ignorecase:e=true}={}){this._rules=[];this._ignorecase=e;o(this,s,true);this._initCache()}_initCache(){this._cache=Object.create(null)}add(e){this._added=false;if(typeof e==="string"){e=e.split(/\r?\n/g)}make_array(e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[s]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(m(e)){const t=y(e,this._ignorecase);this._added=true;this._rules.push(t)}}filter(e){return make_array(e).filter(e=>this._filter(e))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_filter(e,t){if(!e){return false}if(e in this._cache){return this._cache[e]}if(!t){t=e.split(i)}t.pop();return this._cache[e]=t.length?this._filter(t.join(i)+i,t)&&this._test(e):this._test(e)}_test(e){let t=0;this._rules.forEach(r=>{if(!(t^r.negative)){t=r.negative^r.regex.test(e)}});return!t}}if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const e=IgnoreBase.prototype._filter;const t=e=>/^\\\\\?\\/.test(e)||/[^\x00-\x80]+/.test(e)?e:e.replace(/\\/g,"/");IgnoreBase.prototype._filter=function filterWin32(r,n){r=t(r);return e.call(this,r,n)}}e.exports=(e=>new IgnoreBase(e))},3239:(e,t,r)=>{"use strict";var n=r(5466);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},5466:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},1227:(e,t,r)=>{"use strict";var n=r(1669);var i=r(6021);var s=r(2325);var o=r(2074);var a=r(5334);var c=r(9034);var u=r(3389);var l=r(1262);var f=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var i=[];var s=[];var o=-1;while(++o<n){var a=t[o];if(typeof a==="string"&&a.charCodeAt(0)===33){i.push.apply(i,micromatch.match(e,a.slice(1),r))}else{s.push.apply(s,micromatch.match(e,a,r))}}var c=l.diff(s,i);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var i=memoize("match",t,r,micromatch.matcher);var s=[];e=l.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||i(c)){s.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){s=micromatch.not(s,r.ignore,r)}return r.nodupes!==false?l.unique(s):s};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(r);if(i(e)){return true}var s=memoize("isMatch",t,r,micromatch.matcher);return s(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(micromatch.isMatch(e,t[i],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!micromatch.isMatch(e,t[i],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var i=n.ignore;delete n.ignore;var s=l.unixify(n);e=l.arrayify(e).map(s);var a=l.diff(e,micromatch(e,t,n));if(i){a=l.diff(a,micromatch(e,i))}return n.nodupes!==false?l.unique(a):a};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(t,r);if(i(e)){return true}var s=l.containsPattern(t,r);if(s(e)){return true}}var a=o({},r,{contains:true});return micromatch.any(e,t,a)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var i=l.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var s=memoize("capture",e,r,match);return s(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>f){throw new Error("expected pattern to be less than "+f+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var i=r.map(function(e){e.ast.state=e.state;n.push(e.ast);return e.output});var o=s(i.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return i(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var i=[];while(++n<r){i.push(create(e[n],t))}return i})};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,function(){var r=l.instantiate(e,t);a(r,t);return r.compile(e,t)})};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,function(){return function(i){if(!n){n=[];for(var s=0;s<e.length;s++){n.push(r(e[s],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}})}function memoize(e,t,r,n){var i=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,i)){return u.get(e,i)}var s=n(t,r);u.set(e,i,s);return s}micromatch.compilers=a;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},3389:(e,t,r)=>{e.exports=new(r(3096))},5334:(e,t,r)=>{"use strict";var n=r(1761);var i=r(9420);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var s=t.escape;var o=t.qmark;var a=t.slash;var c=t.star;var u=t.text;var l=t.plus;var f=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(i.compilers)}e.use(function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}});e.compiler.set("dot",f).set("escape",s).set("plus",l).set("slash",a).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",function(e){var t="";visit(e,function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val});return this.emit(t,e)});function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},9034:(e,t,r)=>{"use strict";var n=r(9420);var i=r(1761);var s=r(466);var o=r(2325);var a;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var u=function(e){return a||(a=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(i.parsers);var r=t.escape;var s=t.slash;var o=t.qmark;var a=t.plus;var c=t.star;var l=t.dot;e.use(n.parsers);e.parser.use(function(){this.notRegex=/^\!+(?!\()/}).capture("escape",r).capture("slash",s).capture("qmark",o).capture("star",c).capture("plus",a).capture("dot",l).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(u(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})})};function textRegex(e){var t=s.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},1262:(e,t,r)=>{"use strict";var n=e.exports;var i=r(5622);var s=r(4253);n.define=r(7333);n.diff=r(6164);n.extend=r(2074);n.pick=r(7751);n.typeOf=r(9413);n.unique=r(68);n.isWindows=function(){return i.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new s(t)}n.define(r,"parse",function(e,t){var r=s.prototype.parse.apply(this,arguments);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var o=i.nodes[0];var a=i.nodes[1];if(i.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r});return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var i=Object.keys(t);for(var s=0;s<i.length;s++){var o=i[s];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var s=n._equals(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var s=n._contains(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(i.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},1161:(e,t,r)=>{"use strict";const n=r(5747);const i=r(4473);function type(e,t,r){if(typeof r!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof r}`))}return i(n[e])(r).then(e=>e[t]()).catch(e=>{if(e.code==="ENOENT"){return false}throw e})}function typeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.file=type.bind(null,"stat","isFile");t.dir=type.bind(null,"stat","isDirectory");t.symlink=type.bind(null,"lstat","isSymbolicLink");t.fileSync=typeSync.bind(null,"statSync","isFile");t.dirSync=typeSync.bind(null,"statSync","isDirectory");t.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},4473:e=>{"use strict";const t=(e,t)=>(function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e<arguments.length;e++){n[e]=arguments[e]}return new r((r,i)=>{if(t.errorFirst){n.push(function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);i(t)}else{r(t)}}else if(e){i(e)}else{r(n)}})}else{n.push(function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}})}e.apply(this,n)})});e.exports=((e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const n=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let i;if(typeof e==="function"){i=function(){if(r.excludeMain){return e.apply(this,arguments)}return t(e,r).apply(this,arguments)}}else{i=Object.create(Object.getPrototypeOf(e))}for(const s in e){const o=e[s];i[s]=typeof o==="function"&&n(s)?t(o,r):o}return i})},3761:e=>{"use strict";e.exports=(e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")})},1860:(e,t,r)=>{"use strict";var n=r(9626);var i=r(6110);var s={};function toRegexRange(e,t,r){if(i(e)===false){throw new RangeError("toRegexRange: first argument is invalid.")}if(typeof t==="undefined"||e===t){return String(e)}if(i(t)===false){throw new RangeError("toRegexRange: second argument is invalid.")}r=r||{};var n=String(r.relaxZeros);var o=String(r.shorthand);var a=String(r.capture);var c=e+":"+t+"="+n+o+a;if(s.hasOwnProperty(c)){return s[c].result}var u=Math.min(e,t);var l=Math.max(e,t);if(Math.abs(u-l)===1){var f=e+"|"+t;if(r.capture){return"("+f+")"}return f}var h=padding(e)||padding(t);var p=[];var d=[];var m={min:e,max:t,a:u,b:l};if(h){m.isPadded=h;m.maxLen=String(m.max).length}if(u<0){var y=l<0?Math.abs(l):1;var v=Math.abs(u);d=splitToPatterns(y,v,m,r);u=m.a=0}if(l>=0){p=splitToPatterns(u,l,m,r)}m.negatives=d;m.positives=p;m.result=siftPatterns(d,p,r);if(r.capture&&p.length+d.length>1){m.result="("+m.result+")"}s[c]=m;return m.result}function siftPatterns(e,t,r){var n=filterPatterns(e,t,"-",false,r)||[];var i=filterPatterns(t,e,"",false,r)||[];var s=filterPatterns(e,t,"-?",true,r)||[];var o=n.concat(s).concat(i);return o.join("|")}function splitToRanges(e,t){e=Number(e);t=Number(t);var r=1;var n=[t];var i=+countNines(e,r);while(e<=i&&i<=t){n=push(n,i);r+=1;i=+countNines(e,r)}var s=1;i=countZeros(t+1,s)-1;while(e<i&&i<=t){n=push(n,i);s+=1;i=countZeros(t+1,s)-1}n.sort(compare);return n}function rangeToPattern(e,t,r){if(e===t){return{pattern:String(e),digits:[]}}var n=zip(String(e),String(t));var i=n.length,s=-1;var o="";var a=0;while(++s<i){var c=n[s];var u=c[0];var l=c[1];if(u===l){o+=u}else if(u!=="0"||l!=="9"){o+=toCharacterClass(u,l)}else{a+=1}}if(a){o+=r.shorthand?"\\d":"[0-9]"}return{pattern:o,digits:[a]}}function splitToPatterns(e,t,r,n){var i=splitToRanges(e,t);var s=i.length;var o=-1;var a=[];var c=e;var u;while(++o<s){var l=i[o];var f=rangeToPattern(c,l,n);var h="";if(!r.isPadded&&u&&u.pattern===f.pattern){if(u.digits.length>1){u.digits.pop()}u.digits.push(f.digits[0]);u.string=u.pattern+toQuantifier(u.digits);c=l+1;continue}if(r.isPadded){h=padZeros(l,r)}f.string=h+f.pattern+toQuantifier(f.digits);a.push(f);c=l+1;u=f}return a}function filterPatterns(e,t,r,n,i){var s=[];for(var o=0;o<e.length;o++){var a=e[o];var c=a.string;if(i.relaxZeros!==false){if(r==="-"&&c.charAt(0)==="0"){if(c.charAt(1)==="{"){c="0*"+c.replace(/^0\{\d+\}/,"")}else{c="0*"+c.slice(1)}}}if(!n&&!contains(t,"string",c)){s.push(r+c)}if(n&&contains(t,"string",c)){s.push(r+c)}}return s}function zip(e,t){var r=[];for(var n in e)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function push(e,t){if(e.indexOf(t)===-1)e.push(t);return e}function contains(e,t,r){for(var n=0;n<e.length;n++){if(e[n][t]===r){return true}}return false}function countNines(e,t){return String(e).slice(0,-t)+n("9",t)}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){var t=e[0];var r=e[1]?","+e[1]:"";if(!r&&(!t||t===1)){return""}return"{"+t+r+"}"}function toCharacterClass(e,t){return"["+e+(t-e===1?"":"-")+t+"]"}function padding(e){return/^-?(0+)\d/.exec(e)}function padZeros(e,t){if(t.isPadded){var r=Math.abs(t.maxLen-String(e).length);switch(r){case 0:return"";case 1:return"0";default:{return"0{"+r+"}"}}}return e}e.exports=toRegexRange},2800:e=>{"use strict";var t="%[a-f0-9]{2}";var r=new RegExp("("+t+")|([^%]+?)","gi");var n=new RegExp("("+t+")+","gi");function decodeComponents(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(e.length===1){return e}t=t||1;var r=e.slice(0,t);var n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(i){var t=e.match(r)||[];for(var n=1;n<t.length;n++){e=decodeComponents(t,n).join("");t=e.match(r)||[]}return e}}function customDecodeURIComponent(e){var t={"%FE%FF":"��","%FF%FE":"��"};var r=n.exec(e);while(r){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=decode(r[0]);if(i!==r[0]){t[r[0]]=i}}r=n.exec(e)}t["%C2"]="�";var s=Object.keys(t);for(var o=0;o<s.length;o++){var a=s[o];e=e.replace(new RegExp(a,"g"),t[a])}return e}e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`")}try{e=e.replace(/\+/g," ");return decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}}},5134:e=>{"use strict";function isSpecificValue(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp?true:false}function cloneSpecificValue(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);e.copy(t);return t}else if(e instanceof Date){return new Date(e.getTime())}else if(e instanceof RegExp){return new RegExp(e)}else{throw new Error("Unexpected situation")}}function deepCloneArray(e){var r=[];e.forEach(function(e,n){if(typeof e==="object"&&e!==null){if(Array.isArray(e)){r[n]=deepCloneArray(e)}else if(isSpecificValue(e)){r[n]=cloneSpecificValue(e)}else{r[n]=t({},e)}}else{r[n]=e}});return r}function safeGetProperty(e,t){return t==="__proto__"?undefined:e[t]}var t=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var e=arguments[0];var r=Array.prototype.slice.call(arguments,1);var n,i,s;r.forEach(function(r){if(typeof r!=="object"||r===null||Array.isArray(r)){return}Object.keys(r).forEach(function(s){i=safeGetProperty(e,s);n=safeGetProperty(r,s);if(n===e){return}else if(typeof n!=="object"||n===null){e[s]=n;return}else if(Array.isArray(n)){e[s]=deepCloneArray(n);return}else if(isSpecificValue(n)){e[s]=cloneSpecificValue(n);return}else if(typeof i!=="object"||i===null||Array.isArray(i)){e[s]=t({},n);return}else{e[s]=t(i,n);return}})});return e}},8093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function isTLSSocket(e){return e.encrypted}const r=(e,t)=>{let r;if(typeof t==="function"){const e=t;r={connect:e}}else{r=t}const n=typeof r.connect==="function";const i=typeof r.secureConnect==="function";const s=typeof r.close==="function";const o=()=>{if(n){r.connect()}if(isTLSSocket(e)&&i){if(e.authorized){r.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",r.secureConnect)}}if(s){e.once("close",r.close)}};if(e.writable&&!e.connecting){o()}else if(e.connecting){e.once("connect",o)}else if(e.destroyed&&s){r.close(e._hadError)}};t.default=r;e.exports=r;e.exports.default=r},3018:(e,t,r)=>{"use strict";var n=r(4255);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},7588:(e,t,r)=>{"use strict";var n=r(9117);var i={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(e,t){if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(n(e)!=="object"){return false}if(has(e,"value")||has(e,"writable")){return false}if(!has(e,"get")||typeof e.get!=="function"){return false}if(has(e,"set")&&typeof e[s]!=="function"&&typeof e[s]!=="undefined"){return false}for(var s in e){if(!i.hasOwnProperty(s)){continue}if(n(e[s])===i[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}function has(e,t){return{}.hasOwnProperty.call(e,t)}e.exports=isAccessorDescriptor},9117:(e,t,r)=>{var n=r(6801);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},6801:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},3173:(e,t,r)=>{"use strict";var n=r(3889);var i={configurable:"boolean",enumerable:"boolean",writable:"boolean"};function isDataDescriptor(e,t){if(n(e)!=="object"){return false}if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(!("value"in e)&&!("writable"in e)){return false}for(var s in e){if(s==="value")continue;if(!i.hasOwnProperty(s)){continue}if(n(e[s])===i[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}e.exports=isDataDescriptor},3889:(e,t,r)=>{var n=r(6801);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},4255:(e,t,r)=>{"use strict";var n=r(2595);var i=r(7588);var s=r(3173);e.exports=function isDescriptor(e,t){if(n(e)!=="object"){return false}if("get"in e){return i(e,t)}return s(e,t)}},2595:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){var r=typeof e;if(r==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(r==="string"||e instanceof String){return"string"}if(r==="number"||e instanceof Number){return"number"}if(r==="function"||e instanceof Function){if(typeof e.constructor.name!=="undefined"&&e.constructor.name.slice(0,9)==="Generator"){return"generatorfunction"}return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}r=t.call(e);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(isBuffer(e)){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 Map Iterator]"){return"mapiterator"}if(r==="[object Set Iterator]"){return"setiterator"}if(r==="[object String Iterator]"){return"stringiterator"}if(r==="[object Array Iterator]"){return"arrayiterator"}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"};function isBuffer(e){return e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}},5519:(e,t,r)=>{"use strict";var n=r(2413);function DuplexWrapper(e,t,r){if(typeof r==="undefined"){r=t;t=e;e=null}n.Duplex.call(this,e);if(typeof r.read!=="function"){r=new n.Readable(e).wrap(r)}this._writable=t;this._readable=r;this._waiting=false;var i=this;t.once("finish",function(){i.end()});this.once("finish",function(){t.end()});r.on("readable",function(){if(i._waiting){i._waiting=false;i._read()}});r.once("end",function(){i.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){i.emit("error",e)});r.on("error",function(e){i.emit("error",e)})}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,r){this._writable.write(e,t,r)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,r){return new DuplexWrapper(e,t,r)};e.exports.DuplexWrapper=DuplexWrapper},2498:(e,t,r)=>{var n=r(7197);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var c=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var f=t.writable||t.writable!==false&&e.writable;var h=false;var p=function(){if(!e.writable)d()};var d=function(){f=false;if(!l)r.call(e)};var m=function(){l=false;if(!f)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var v=function(t){r.call(e,t)};var g=function(){process.nextTick(b)};var b=function(){if(h)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(f&&!(c&&(c.ended&&!c.destroyed)))return r.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",d)};if(s(e)){e.on("complete",d);e.on("abort",g);if(e.req)w();else e.on("request",w)}else if(f&&!c){e.on("end",p);e.on("close",p)}if(o(e))e.on("exit",y);e.on("end",m);e.on("finish",d);if(t.error!==false)e.on("error",v);e.on("close",g);return function(){h=true;e.removeListener("complete",d);e.removeListener("abort",g);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",d);e.removeListener("end",p);e.removeListener("close",p);e.removeListener("finish",d);e.removeListener("exit",y);e.removeListener("end",m);e.removeListener("error",v);e.removeListener("close",g)}};e.exports=a},6003:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},9646:(e,t,r)=>{"use strict";var n=r(4147);var i=r(9555);var s=r(5835)("expand-brackets");var o=r(2533);var a=r(4253);var c=r(2325);function brackets(e,t){s("initializing from <%s>",__filename);var r=brackets.create(e,t);return r.output}brackets.match=function(e,t,r){e=[].concat(e);var n=o({},r);var i=brackets.matcher(t,n);var s=e.length;var a=-1;var c=[];while(++a<s){var u=e[a];if(i(u)){c.push(u)}}if(c.length===0){if(n.failglob===true){throw new Error('no matches found for "'+t+'"')}if(n.nonull===true||n.nullglob===true){return[t.split("\\").join("")]}}return c};brackets.isMatch=function(e,t,r){return brackets.matcher(t,r)(e)};brackets.matcher=function(e,t){var r=brackets.makeRe(e,t);return function(e){return r.test(e)}};brackets.makeRe=function(e,t){var r=brackets.create(e,t);var n=o({strictErrors:false},t);return c(r.output,n)};brackets.create=function(e,t){var r=t&&t.snapdragon||new a(t);n(r);i(r);var s=r.parse(e,t);s.input=e;var o=r.compile(s,t);o.input=e;return o};brackets.compilers=n;brackets.parsers=i;e.exports=brackets},4147:(e,t,r)=>{"use strict";var n=r(803);e.exports=function(e){e.compiler.set("escape",function(e){return this.emit("\\"+e.val.replace(/^\\/,""),e)}).set("text",function(e){return this.emit(e.val.replace(/([{}])/g,"\\$1"),e)}).set("posix",function(e){if(e.val==="[::]"){return this.emit("\\[::\\]",e)}var t=n[e.inner];if(typeof t==="undefined"){t="["+e.inner+"]"}return this.emit(t,e)}).set("bracket",function(e){return this.mapVisit(e.nodes)}).set("bracket.open",function(e){return this.emit(e.val,e)}).set("bracket.inner",function(e){var t=e.val;if(t==="["||t==="]"){return this.emit("\\"+e.val,e)}if(t==="^]"){return this.emit("^\\]",e)}if(t==="^"){return this.emit("^",e)}if(/-/.test(t)&&!/(\d-\d|\w-\w)/.test(t)){t=t.split("-").join("\\-")}var r=t.charAt(0)==="^";if(r&&t.indexOf("/")===-1){t+="/"}if(r&&t.indexOf(".")===-1){t+="."}t=t.replace(/\\([1-9])/g,"$1");return this.emit(t,e)}).set("bracket.close",function(e){var t=e.val.replace(/^\\/,"");if(e.parent.escaped===true){return this.emit("\\"+t,e)}return this.emit(t,e)})}},9555:(e,t,r)=>{"use strict";var n=r(9434);var i=r(3018);var s="(\\[(?=.*\\])|\\])+";var o=n.createRegex(s);function parsers(e){e.state=e.state||{};e.parser.sets.bracket=e.parser.sets.bracket||[];e.parser.capture("escape",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\\(.)/);if(!t)return;return e({type:"escape",val:t[0]})}).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(o);if(!t||!t[0])return;return e({type:"text",val:t[0]})}).capture("posix",function(){var t=this.position();var r=this.match(/^\[:(.*?):\](?=.*\])/);if(!r)return;var n=this.isInside("bracket");if(n){e.posix++}return t({type:"posix",insideBracket:n,inner:r[1],val:r[0]})}).capture("bracket",function(){}).capture("bracket.open",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\[(?=.*\])/);if(!r)return;var s=this.prev();var o=n.last(s.nodes);if(e.slice(-1)==="\\"&&!this.isInside("bracket")){o.val=o.val.slice(0,o.val.length-1);return t({type:"escape",val:r[0]})}var a=t({type:"bracket.open",val:r[0]});if(o.type==="bracket.open"||this.isInside("bracket")){a.val="\\"+a.val;a.type="bracket.inner";a.escaped=true;return a}var c=t({type:"bracket",nodes:[a]});i(c,"parent",s);i(a,"parent",c);this.push("bracket",c);s.nodes.push(c)}).capture("bracket.inner",function(){if(!this.isInside("bracket"))return;var e=this.position();var t=this.match(o);if(!t||!t[0])return;var r=this.input.charAt(0);var n=t[0];var i=e({type:"bracket.inner",val:n});if(n==="\\\\"){return i}var s=n.charAt(0);var a=n.slice(-1);if(s==="!"){n="^"+n.slice(1)}if(a==="\\"||n==="^"&&r==="]"){n+=this.input[0];this.consume(1)}i.val=n;return i}).capture("bracket.close",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\]/);if(!r)return;var s=this.prev();var o=n.last(s.nodes);if(e.slice(-1)==="\\"&&!this.isInside("bracket")){o.val=o.val.slice(0,o.val.length-1);return t({type:"escape",val:r[0]})}var a=t({type:"bracket.close",rest:this.input,val:r[0]});if(o.type==="bracket.open"){a.type="bracket.inner";a.escaped=true;return a}var c=this.pop("bracket");if(!this.isType(c,"bracket")){if(this.options.strict){throw new Error('missing opening "["')}a.type="bracket.inner";a.escaped=true;return a}c.nodes.push(a);i(a,"parent",c)})}e.exports=parsers;e.exports.TEXT_REGEX=s},9434:(e,t,r)=>{"use strict";var n=r(2325);var i=r(466);var s;t.last=function(e){return e[e.length-1]};t.createRegex=function(e,t){if(s)return s;var r={contains:true,strictClose:false};var o=i.create(e,r);var a;if(typeof t==="string"){a=n("^(?:"+t+"|"+o+")",r)}else{a=n(o,r)}return s=a}},4460:(e,t,r)=>{t=e.exports=r(1922);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.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+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){s=i}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},1922:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(9349);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var s=new Array(arguments.length);for(var o=0;o<s.length;o++){s[o]=arguments[o]}s[0]=t.coerce(s[0]);if("string"!==typeof s[0]){s.unshift("%O")}var a=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;a++;var i=t.formatters[n];if("function"===typeof i){var o=s[a];r=i.call(e,o);s.splice(a,1);a--}return r});t.formatArgs.call(e,s);var c=debug.log||t.log||console.log.bind(console);c.apply(e,s)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);if("function"===typeof t.init){t.init(debug)}return debug}function enable(e){t.save(e);t.names=[];t.skips=[];var r=(typeof e==="string"?e:"").split(/[\s,]+/);var n=r.length;for(var i=0;i<n;i++){if(!r[i])continue;e=r[i].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}}function disable(){t.enable("")}function enabled(e){var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},5835:(e,t,r)=>{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(4460)}else{e.exports=r(4152)}},4152:(e,t,r)=>{var n=r(3867);var i=r(1669);t=e.exports=r(1922);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var s=parseInt(process.env.DEBUG_FD,10)||2;if(1!==s&&2!==s){i.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 o=1===s?process.stdout:2===s?process.stderr:createWritableStdioStream(s);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(s)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var s=" [3"+i+";1m"+r+" "+"";e[0]=s+e[0].split("\n").join("\n"+s);e.push("[3"+i+"m+"+t.humanize(this.diff)+"")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var s=r(5747);t=new s.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(1631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},9349:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},2533:(e,t,r)=>{"use strict";var n=r(7242);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9420:(e,t,r)=>{"use strict";var n=r(2533);var i=r(68);var s=r(2325);var o=r(4998);var a=r(3895);var c=r(6513);var u=r(354);var l=1024*64;function extglob(e,t){return extglob.create(e,t).output}extglob.match=function(e,t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}e=u.arrayify(e);var n=extglob.matcher(t,r);var s=e.length;var o=-1;var a=[];while(++o<s){var c=e[o];if(n(c)){a.push(c)}}if(typeof r==="undefined"){return i(a)}if(a.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[t.split("\\").join("")]}}return r.nodupes!==false?i(a):a};extglob.isMatch=function(e,t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}if(typeof e!=="string"){throw new TypeError("expected a string")}if(t===e){return true}if(t===""||t===" "||t==="."){return t===e}var n=u.memoize("isMatch",t,r,extglob.matcher);return n(e)};extglob.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError("expected a string")}if(t===""||t===" "||t==="."){return t===e}var i=n({},r,{contains:true});i.strictClose=false;i.strictOpen=false;return extglob.isMatch(e,t,i)};extglob.matcher=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}function matcher(){var r=extglob.makeRe(e,t);return function(e){return r.test(e)}}return u.memoize("matcher",e,t,matcher)};extglob.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}function create(){var r=new c(t);var n=r.parse(e,t);return r.compile(n,t)}return u.memoize("create",e,t,create)};extglob.capture=function(e,t,r){var i=extglob.makeRe(e,n({capture:true},r));function match(){return function(e){var t=i.exec(e);if(!t){return null}return t.slice(1)}}var s=u.memoize("capture",e,r,match);return s(t)};extglob.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=n({strictErrors:false},t);if(r.strictErrors===true)r.strict=true;var i=extglob.create(e,r);return s(i.output,r)}var r=u.memoize("makeRe",e,t,makeRe);if(r.source.length>l){throw new SyntaxError("potentially malicious regex detected")}return r};extglob.cache=u.cache;extglob.clearCache=function(){extglob.cache.__data__={}};extglob.Extglob=c;extglob.compilers=o;extglob.parsers=a;e.exports=extglob},4998:(e,t,r)=>{"use strict";var n=r(9646);e.exports=function(e){function star(){if(typeof e.options.star==="function"){return e.options.star.apply(this,arguments)}if(typeof e.options.star==="string"){return e.options.star}return".*?"}e.use(n.compilers);e.compiler.set("escape",function(e){return this.emit(e.val,e)}).set("dot",function(e){return this.emit("\\"+e.val,e)}).set("qmark",function(e){var t="[^\\\\/.]";var r=this.prev();if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n!=="!"&&n!=="="&&n!==":"){return this.emit(t,e)}return this.emit(e.val,e)}if(r.type==="text"&&r.val){return this.emit(t,e)}if(e.val.length>1){t+="{"+e.val.length+"}"}return this.emit(t,e)}).set("plus",function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}var r=this.output.slice(-1);if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)}).set("star",function(e){var t=this.prev();var r=t.type!=="text"&&t.type!=="escape"?"(?!\\.)":"";return this.emit(r+star.call(this,e),e)}).set("paren",function(e){return this.mapVisit(e.nodes)}).set("paren.open",function(e){var t=this.options.capture?"(":"";switch(e.parent.prefix){case"!":case"^":return this.emit(t+"(?:(?!(?:",e);case"*":case"+":case"?":case"@":return this.emit(t+"(?:",e);default:{var r=e.val;if(this.options.bash===true){r="\\"+r}else if(!this.options.capture&&r==="("&&e.parent.rest[0]!=="?"){r+="?:"}return this.emit(r,e)}}}).set("paren.close",function(e){var t=this.options.capture?")":"";switch(e.prefix){case"!":case"^":var r=/^(\)|$)/.test(e.rest)?"$":"";var n=star.call(this,e);if(e.parent.hasSlash&&!this.options.star&&this.options.slash!==false){n=".*?"}return this.emit(r+("))"+n+")")+t,e);case"*":case"+":case"?":return this.emit(")"+e.prefix+t,e);case"@":return this.emit(")"+t,e);default:{var i=(this.options.bash===true?"\\":"")+")";return this.emit(i,e)}}}).set("text",function(e){var t=e.val.replace(/[\[\]]/g,"\\$&");return this.emit(t,e)})}},6513:(e,t,r)=>{"use strict";var n=r(4253);var i=r(3122);var s=r(2533);var o=r(4998);var a=r(3895);function Extglob(e){this.options=s({source:"extglob"},e);this.snapdragon=this.options.snapdragon||new n(this.options);this.snapdragon.patterns=this.snapdragon.patterns||{};this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;o(this.snapdragon);a(this.snapdragon);i(this.snapdragon,"parse",function(e,t){var r=n.prototype.parse.apply(this,arguments);r.input=e;var s=this.parser.stack.pop();if(s&&this.options.strict!==true){var o=s.nodes[0];o.val="\\"+o.val;var a=o.parent.nodes[1];if(a.type==="star"){a.loose=true}}i(r,"parser",this.parser);return r});i(this,"parse",function(e,t){return this.snapdragon.parse.apply(this.snapdragon,arguments)});i(this,"compile",function(e,t){return this.snapdragon.compile.apply(this.snapdragon,arguments)})}e.exports=Extglob},3895:(e,t,r)=>{"use strict";var n=r(9646);var i=r(3122);var s=r(354);var o="([!@*?+]?\\(|\\)|[*?.+\\\\]|\\[:?(?=.*\\])|:?\\])+";var a=s.createRegex(o);function parsers(e){e.state=e.state||{};e.use(n.parsers);e.parser.sets.paren=e.parser.sets.paren||[];e.parser.capture("paren.open",function(){var e=this.parsed;var t=this.position();var r=this.match(/^([!@*?+])?\(/);if(!r)return;var n=this.prev();var s=r[1];var o=r[0];var a=t({type:"paren.open",parsed:e,val:o});var c=t({type:"paren",prefix:s,nodes:[a]});if(s==="!"&&n.type==="paren"&&n.prefix==="!"){n.prefix="@";c.prefix="@"}i(c,"rest",this.input);i(c,"parsed",e);i(c,"parent",n);i(a,"parent",c);this.push("paren",c);n.nodes.push(c)}).capture("paren.close",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\)/);if(!r)return;var n=this.pop("paren");var s=t({type:"paren.close",rest:this.input,parsed:e,val:r[0]});if(!this.isType(n,"paren")){if(this.options.strict){throw new Error('missing opening paren: "("')}s.escaped=true;return s}s.prefix=n.prefix;n.nodes.push(s);i(s,"parent",n)}).capture("escape",function(){var e=this.position();var t=this.match(/^\\(.)/);if(!t)return;return e({type:"escape",val:t[0],ch:t[1]})}).capture("qmark",function(){var t=this.parsed;var r=this.position();var n=this.match(/^\?+(?!\()/);if(!n)return;e.state.metachar=true;return r({type:"qmark",rest:this.input,parsed:t,val:n[0]})}).capture("star",/^\*(?!\()/).capture("plus",/^\+(?!\()/).capture("dot",/^\./).capture("text",a)}e.exports.TEXT_REGEX=o;e.exports=parsers},354:(e,t,r)=>{"use strict";var n=r(466);var i=r(3096);var s=e.exports;var o=s.cache=new i;s.arrayify=function(e){if(!Array.isArray(e)){return[e]}return e};s.memoize=function(e,t,r,n){var i=s.createKey(e+t,r);if(o.has(e,i)){return o.get(e,i)}var a=n(t,r);if(r&&r.cache===false){return a}o.set(e,i,a);return a};s.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}for(var n in t){r+=";"+n+"="+String(t[n])}return r};s.createRegex=function(e){var t={contains:true,strictClose:false};return n(e,t)}},3122:(e,t,r)=>{"use strict";var n=r(5721);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},5451:e=>{"use strict";e.exports=function forIn(e,t,r){for(var n in e){if(t.call(r,e[n],n,e)===false){break}}}},3096:(e,t,r)=>{"use strict";var n=r(2219);function FragmentCache(e){this.caches=e||{}}FragmentCache.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new n)},set:function(e,t,r){var n=this.cache(e);n.set(t,r);return n},has:function(e,t){return typeof this.get(e,t)!=="undefined"},get:function(e,t){var r=this.cache(e);if(typeof t==="string"){return r.get(t)}return r}};t=e.exports=FragmentCache},8945:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(5747);var i=n.realpath;var s=n.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=r(4403);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,function(n,i){if(newError(n)){c.realpath(e,t,r)}else{r(n,i)}})}function realpathSync(e,t){if(a){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=s}},4403:(e,t,r)=>{var n=r(5622);var i=process.platform==="win32";var s=r(5747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},a={};var l;var f;var h;var p;start();function start(){var t=u.exec(e);l=t[0].length;f=t[0];h=t[0];p="";if(i&&!a[h]){s.lstatSync(h);a[h]=true}}while(l<e.length){c.lastIndex=l;var d=c.exec(e);p=f;f+=d[0];h=p+d[1];l=c.lastIndex;if(a[h]||t&&t[h]===h){continue}var m;if(t&&Object.prototype.hasOwnProperty.call(t,h)){m=t[h]}else{var y=s.lstatSync(h);if(!y.isSymbolicLink()){a[h]=true;if(t)t[h]=h;continue}var v=null;if(!i){var g=y.dev.toString(32)+":"+y.ino.toString(32);if(o.hasOwnProperty(g)){v=o[g]}}if(v===null){s.statSync(h);v=s.readlinkSync(h)}m=n.resolve(p,v);if(t)t[h]=m;if(!i)o[g]=v}e=n.resolve(m,e.slice(l));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,a={},l={};var f;var h;var p;var d;start();function start(){var t=u.exec(e);f=t[0].length;h=t[0];p=t[0];d="";if(i&&!l[p]){s.lstat(p,function(e){if(e)return r(e);l[p]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(f>=e.length){if(t)t[o]=e;return r(null,e)}c.lastIndex=f;var n=c.exec(e);d=h;h+=n[0];p=d+n[1];f=c.lastIndex;if(l[p]||t&&t[p]===p){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,p)){return gotResolvedLink(t[p])}return s.lstat(p,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[p]=true;if(t)t[p]=p;return process.nextTick(LOOP)}if(!i){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(e){if(e)return r(e);s.readlink(p,function(e,t){if(!i)a[o]=t;gotTarget(e,t)})})}function gotTarget(e,i,s){if(e)return r(e);var o=n.resolve(d,i);if(t)t[s]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=n.resolve(t,e.slice(f));start()}}},3826:e=>{e.exports=function(e,t,r,n,i){if(!isObject(e)||!t){return e}t=toString(t);if(r)t+="."+toString(r);if(n)t+="."+toString(n);if(i)t+="."+toString(i);if(t in e){return e[t]}var s=t.split(".");var o=s.length;var a=-1;while(e&&++a<o){var c=s[a];while(c[c.length-1]==="\\"){c=c.slice(0,-1)+"."+s[++a]}e=e[c]}return e};function isObject(e){return e!==null&&(typeof e==="object"||typeof e==="function")}function toString(e){if(!e)return"";if(Array.isArray(e)){return e.join(".")}return e}},2821:(e,t,r)=>{t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(5747);var i=r(5622);var s=r(9566);var o=r(1323);var a=s.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:true})}return{matcher:new a(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||n;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))e.cwd=s;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==s}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new a(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];if(t)r.push(o);else r[o]=true}}else{var a=Object.keys(s);if(t)r.push.apply(r,a);else a.forEach(function(e){r[e]=true})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var n=0;n<r.length;n++){r[n]=e._mark(r[n])}if(e.nodir){r=r.filter(function(t){var r=!/\/$/.test(t);var n=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r})}}if(e.ignore.length)r=r.filter(function(t){return!isIgnored(e,t)});e.found=r}function mark(e,t){var r=makeAbs(e,t);var n=e.cache[r];var i=t;if(n){var s=n==="DIR"||Array.isArray(n);var o=t.slice(-1)==="/";if(s&&!o)i+="/";else if(!s&&o)i=i.slice(0,-1);if(i!==t){var a=makeAbs(e,i);e.statCache[a]=e.statCache[r];e.cache[a]=e.cache[r]}}return i}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=i.join(e.root,t)}else if(o(t)||t===""){r=t}else if(e.changedCwd){r=i.resolve(e.cwd,t)}else{r=i.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}},3700:(e,t,r)=>{e.exports=glob;var n=r(8945);var i=r(9566);var s=i.Minimatch;var o=r(6919);var a=r(8614).EventEmitter;var c=r(5622);var u=r(2357);var l=r(1323);var f=r(7433);var h=r(2821);var p=h.setopts;var d=h.ownProp;var m=r(9442);var y=r(1669);var v=h.childrenIgnored;var g=h.isIgnored;var b=r(7197);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return f(e,t)}return new Glob(e,t,r)}glob.sync=f;var w=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var s=0;s<i[0].length;s++){if(typeof i[0][s]!=="string")return true}return false};glob.Glob=Glob;o(Glob,a);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);p(this,e,t);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=b(r);this.on("error",r);this.on("end",function(e){r(null,e)})}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var s=true;for(var o=0;o<n;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--i._processing;if(i._processing<=0){if(s){process.nextTick(function(){i._finish()})}else{i._finish()}}}}Glob.prototype._finish=function(){u(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();h.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r);var s=this;var o=i.length;if(o===0)return t();var a=this.matches[e]=Object.create(null);i.forEach(function(r,i){r=s._makeAbs(r);n.realpath(r,s.realpathCache,function(n,i){if(!n)a[i]=true;else if(n.syscall==="stat")a[r]=true;else s.emit("error",n);if(--o===0){s.matches[e]=a;t()}})})};Glob.prototype._mark=function(e){return h.mark(this,e)};Glob.prototype._makeAbs=function(e){return h.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,r,n){u(this instanceof Glob);u(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,n]);return}var s=0;while(typeof e[s]==="string"){s++}var o;switch(s){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:o=null;break;default:o=e.slice(0,s).join("/");break}var a=e.slice(s);var c;if(o===null)c=".";else if(l(o)||l(e.map(function(e){return typeof e==="string"?e:"[*]"}).join("/"))){if(!o||!l(o))o="/"+o;c=o}else c=o;var f=this._makeAbs(c);if(v(this,c))return n();var h=a[0]===i.GLOBSTAR;if(h)this._processGlobStar(o,c,f,a,t,r,n);else this._processReaddir(o,c,f,a,t,r,n)};Glob.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(c,u){return a._processReaddir2(e,t,r,n,i,s,u,o)})};Glob.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n[0];var l=!!this.minimatch.negate;var f=u._glob;var h=this.dot||f.charAt(0)===".";var p=[];for(var d=0;d<o.length;d++){var m=o[d];if(m.charAt(0)!=="."||h){var y;if(l&&!e){y=!m.match(u)}else{y=m.match(u)}if(y)p.push(m)}}var v=p.length;if(v===0)return a();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<v;d++){var m=p[d];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=c.join(this.root,m)}this._emitMatch(i,m)}return a()}n.shift();for(var d=0;d<v;d++){var m=p[d];var g;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(n),i,s,a)}a()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(g(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=l(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;var i=this.statCache[r];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var i=m(r,lstatcb_);if(i)n.fs.lstat(e,i);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return t();var s=i&&i.isSymbolicLink();n.symlinks[e]=s;if(!s&&i&&!i.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=m("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e,r);if(d(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(n,i){if(n)e._readdirError(t,n,r);else e._readdirEntries(t,i,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var i=t[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(c,u){a._processGlobStar2(e,t,r,n,i,s,u,o)})};Glob.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var c=n.slice(1);var u=e?[e]:[];var l=u.concat(c);this._process(l,i,false,a);var f=this.symlinks[r];var h=o.length;if(f&&s)return a();for(var p=0;p<h;p++){var d=o[p];if(d.charAt(0)==="."&&!this.dot)continue;var m=u.concat(o[p],c);this._process(m,i,true,a);var y=u.concat(o[p],n);this._process(y,i,true,a)}a()};Glob.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};Glob.prototype._processSimple2=function(e,t,r,n,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return i();if(e&&l(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return t(null,o);else{var a=o.isDirectory()?"DIR":"FILE";if(n&&a==="FILE")return t();else return t(null,a,o)}}var c=this;var u=m("stat\0"+r,lstatcb_);if(u)c.fs.lstat(r,u);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return c.fs.stat(r,function(n,s){if(n)c._stat2(e,r,null,i,t);else c._stat2(e,r,n,s,t)})}else{c._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var s=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var o=true;if(n)o=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return i();return i(null,o,n)}},7433:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(8945);var i=r(9566);var s=i.Minimatch;var o=r(3700).Glob;var a=r(1669);var c=r(5622);var u=r(2357);var l=r(1323);var f=r(2821);var h=f.setopts;var p=f.ownProp;var d=f.childrenIgnored;var m=f.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);h(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){u.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,r){var i=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var o=n.realpathSync(s,e.realpathCache);i[o]=true}catch(t){if(t.syscall==="stat")i[e._makeAbs(s)]=true;else throw t}}})}f.finish(this)};GlobSync.prototype._process=function(e,t,r){u.ok(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var s;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:s=null;break;default:s=e.slice(0,n).join("/");break}var o=e.slice(n);var a;if(s===null)a=".";else if(l(s)||l(e.map(function(e){return typeof e==="string"?e:"[*]"}).join("/"))){if(!s||!l(s))s="/"+s;a=s}else a=s;var c=this._makeAbs(a);if(d(this,a))return;var f=o[0]===i.GLOBSTAR;if(f)this._processGlobStar(s,a,c,o,t,r);else this._processReaddir(s,a,c,o,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(!o)return;var a=n[0];var u=!!this.minimatch.negate;var l=a._glob;var f=this.dot||l.charAt(0)===".";var h=[];for(var p=0;p<o.length;p++){var d=o[p];if(d.charAt(0)!=="."||f){var m;if(u&&!e){m=!d.match(a)}else{m=d.match(a)}if(m)h.push(d)}}var y=h.length;if(y===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var p=0;p<y;p++){var d=h[p];if(e){if(e.slice(-1)!=="/")d=e+"/"+d;else d=e+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(i,d)}return}n.shift();for(var p=0;p<y;p++){var d=h[p];var v;if(e)v=[e,d];else v=[d];this._process(v.concat(n),i,s)}};GlobSync.prototype._emitMatch=function(e,t){if(m(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var i=r&&r.isSymbolicLink();this.symlinks[e]=i;if(!i&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e);if(p(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var n=t[r];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(!o)return;var a=n.slice(1);var c=e?[e]:[];var u=c.concat(a);this._process(u,i,false);var l=o.length;var f=this.symlinks[r];if(f&&s)return;for(var h=0;h<l;h++){var p=o[h];if(p.charAt(0)==="."&&!this.dot)continue;var d=c.concat(o[h],a);this._process(d,i,true);var m=c.concat(o[h],n);this._process(m,i,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&l(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&p(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var s=this.statCache[t];if(!s){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=this.fs.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var n=true;if(s)n=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return f.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return f.makeAbs(this,e)}},1680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8614);const i=r(4430);const s=r(6306);const o=r(1493);const a=r(923);const c=r(4334);const u=r(3964);const l=(e,t,r)=>{if(t==="json"){return e.length===0?"":JSON.parse(e.toString())}if(t==="buffer"){return Buffer.from(e)}if(t==="text"){return e.toString(r)}throw new TypeError(`Unknown body type '${t}'`)};function createRejection(e){const t=Promise.reject(e);const r=()=>t;t.json=r;t.text=r;t.buffer=r;t.on=r;return t}t.createRejection=createRejection;function asPromise(e){const t=new n;let r;const f=new s((n,s,o)=>{const f=u.default(e);o(f.abort);const h=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}s(t)}catch(e){s(e)}};f.on("response",async s=>{var u;t.emit("response",s);try{r=await i.buffer(s,{encoding:"binary"})}catch(t){h(new a.ReadError(t,e));return}if((u=s.req)===null||u===void 0?void 0:u.aborted){return}const p=()=>{const{statusCode:t}=s;const r=e.followRedirect?299:399;return t>=200&&t<=r||t===304};try{s.body=l(r,e.responseType,e.encoding)}catch(t){s.body=r.toString();if(p()){const r=new a.ParseError(t,s,e);h(r);return}}try{for(const[t,r]of e.hooks.afterResponse.entries()){s=await r(s,async r=>{const n=c.normalizeArguments(c.mergeOptions(e,{...r,retry:{calculateDelay:()=>0},throwHttpErrors:false,resolveBodyOnly:false}));n.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);for(const t of e.hooks.beforeRetry){await t(n)}const i=asPromise(n);o(()=>{i.catch(()=>{});i.cancel()});return i})}}catch(e){h(e);return}if(!p()){const t=new a.HTTPError(s,e);if(f.retry(t)){return}if(e.throwHttpErrors){h(t);return}}n(e.resolveBodyOnly?s.body:s)});f.once("error",s);u.proxyEvents(t,f)});f.on=((e,r)=>{t.on(e,r);return f});const h=t=>{const n=f.then(()=>l(r,t,e.encoding));Object.defineProperties(n,Object.getOwnPropertyDescriptors(f));return n};f.json=(()=>{if(o.default.undefined(r)&&o.default.undefined(e.headers.accept)){e.headers.accept="application/json"}return h("json")});f.buffer=(()=>h("buffer"));f.text=(()=>h("text"));return f}t.default=asPromise},1947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5519);const i=r(8605);const s=r(2413);const o=r(923);const a=r(3964);class ProxyStream extends s.Duplex{}t.ProxyStream=ProxyStream;function asStream(e){const t=new s.PassThrough;const r=new s.PassThrough;const c=n(t,r);const u=new Set;let l=false;e.retry.calculateDelay=(()=>0);if(e.body||e.json||e.form){c.write=(()=>{c.destroy();throw new Error("Got's stream is not writable when the `body`, `json` or `form` option is used")})}else if(e.method==="POST"||e.method==="PUT"||e.method==="PATCH"||e.allowGetBody&&e.method==="GET"){e.body=t}else{c.write=(()=>{c.destroy();throw new TypeError(`The \`${e.method}\` method cannot be used with a body`)})}const f=a.default(e);const h=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}c.emit("error",t)}catch(e){c.emit("error",e)}};c._destroy=((e,t)=>{t(e);f.abort()});f.on("response",t=>{const{statusCode:n,isFromCache:i}=t;c.isFromCache=i;if(e.throwHttpErrors&&n!==304&&(n<200||n>299)){h(new o.HTTPError(t,e));return}{const e=c._read;c._read=((...t)=>{l=true;c._read=e;return e.apply(c,t)})}if(e.encoding){c.setEncoding(e.encoding)}t.pipe(r);t.once("error",t=>{h(new o.ReadError(t,e))});for(const r of u){if(r.headersSent){continue}for(const[n,i]of Object.entries(t.headers)){const t=e.decompress?n!=="content-encoding":true;if(t){r.setHeader(n,i)}}r.statusCode=t.statusCode}c.emit("response",t)});a.proxyEvents(c,f);f.on("error",e=>c.emit("error",e));const p=c.pipe.bind(c);const d=c.unpipe.bind(c);c.pipe=((e,t)=>{if(l){throw new Error("Failed to pipe. The response has been emitted already.")}p(e,t);if(e instanceof i.ServerResponse){u.add(e)}return e});c.unpipe=(e=>{u.delete(e);return d(e)});c.on("pipe",t=>{if(t instanceof i.IncomingMessage){e.headers={...t.headers,...e.headers}}});c.isFromCache=undefined;return c}t.default=asStream},3338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);const i=r(923);const s=new Set([413,429,503]);const o=e=>e instanceof i.HTTPError||e instanceof i.ParseError||e instanceof i.MaxRedirectsError;const a=({attemptCount:e,retryOptions:t,error:r})=>{if(e>t.limit){return 0}const i=t.methods.includes(r.options.method);const a=Reflect.has(r,"code")&&t.errorCodes.includes(r.code);const c=o(r)&&t.statusCodes.includes(r.response.statusCode);if(!i||!a&&!c){return 0}if(o(r)){const{response:e}=r;if(e&&Reflect.has(e.headers,"retry-after")&&s.has(e.statusCode)){let r=Number(e.headers["retry-after"]);if(n.default.nan(r)){r=Date.parse(e.headers["retry-after"])-Date.now()}else{r*=1e3}if(r>t.maxRetryAfter){return 0}return r}if(e.statusCode===413){return 0}}const u=Math.random()*100;return 2**(e-1)*1e3+u};t.default=a},3854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);const i=r(1680);const s=r(1947);const o=r(923);const a=r(4334);const c=r(3090);const u=e=>e.isStream?s.default(e):i.default(e);const l=e=>Reflect.has(e,"defaults")&&Reflect.has(e.defaults,"options");const f=["get","post","put","patch","head","delete"];t.defaultHandler=((e,t)=>t(e));const h=e=>{e._rawHandlers=e.handlers;e.handlers=e.handlers.map(e=>(t,r)=>{let n;const i=e(t,e=>{n=r(e);return n});if(i!==n&&!t.isStream&&n){const e=i;const{then:t,catch:r,finally:s}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(n));Object.defineProperties(e,Object.getOwnPropertyDescriptors(n));e.then=t;e.catch=r;e.finally=s}return i});const r=(t,r)=>{var n;let s=0;const o=t=>{return e.handlers[s++](t,s===e.handlers.length?u:o)};try{return o(a.normalizeArguments(t,r,e))}catch(e){if((n=r)===null||n===void 0?void 0:n.isStream){throw e}else{return i.createRejection(e)}}};r.extend=((...r)=>{const n=[e.options];let i=[...e._rawHandlers];let s;for(const e of r){if(l(e)){n.push(e.defaults.options);i.push(...e.defaults._rawHandlers);s=e.defaults.mutableDefaults}else{n.push(e);if(Reflect.has(e,"handlers")){i.push(...e.handlers)}s=e.mutableDefaults}}i=i.filter(e=>e!==t.defaultHandler);if(i.length===0){i.push(t.defaultHandler)}return h({options:a.mergeOptions(...n),handlers:i,mutableDefaults:Boolean(s)})});r.stream=((e,t)=>r(e,{...t,isStream:true}));for(const e of f){r[e]=((t,n)=>r(t,{...n,method:e}));r.stream[e]=((t,n)=>r.stream(t,{...n,method:e}))}r.paginate=async function*(t,i){let s=a.normalizeArguments(t,i,e);const o=s._pagination;if(!n.default.object(o)){throw new Error("`options._pagination` must be implemented")}const c=[];while(true){const e=await r(s);const t=await o.transform(e);const n=[];for(const e of t){if(o.filter(e,c,n)){if(!o.shouldContinue(e,c,n)){return}yield e;c.push(e);n.push(e);if(c.length===o.countLimit){return}}}const i=o.paginate(e,c,n);if(i===false){return}if(i!==undefined){s=a.normalizeArguments(s,i)}}};r.paginate.all=(async(e,t)=>{const n=[];for await(const i of r.paginate(e,t)){n.push(i)}return n});Object.assign(r,{...o,mergeOptions:a.mergeOptions});Object.defineProperty(r,"defaults",{value:e.mutableDefaults?e:c.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return r};t.default=h},923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);class GotError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!n.default.undefined(t.code)){this.code=t.code}Object.defineProperty(this,"options",{enumerable:false,value:r});if(!n.default.undefined(t.stack)){const e=this.stack.indexOf(this.message)+this.message.length;const r=this.stack.slice(e).split("\n").reverse();const n=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();while(n.length!==0&&n[0]===r[0]){r.shift()}this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${n.reverse().join("\n")}`}}}t.GotError=GotError;class CacheError extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}}t.CacheError=CacheError;class RequestError extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}}t.RequestError=RequestError;class ReadError extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}}t.ReadError=ReadError;class ParseError extends GotError{constructor(e,t,r){super(`${e.message} in "${r.url.toString()}"`,e,r);this.name="ParseError";Object.defineProperty(this,"response",{enumerable:false,value:t})}}t.ParseError=ParseError;class HTTPError extends GotError{constructor(e,t){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},t);this.name="HTTPError";Object.defineProperty(this,"response",{enumerable:false,value:e})}}t.HTTPError=HTTPError;class MaxRedirectsError extends GotError{constructor(e,t,r){super(`Redirected ${t} times. Aborting.`,{},r);this.name="MaxRedirectsError";Object.defineProperty(this,"response",{enumerable:false,value:e})}}t.MaxRedirectsError=MaxRedirectsError;class UnsupportedProtocolError extends GotError{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}}t.UnsupportedProtocolError=UnsupportedProtocolError;class TimeoutError extends GotError{constructor(e,t,r){super(e.message,e,r);this.name="TimeoutError";this.event=e.event;this.timings=t}}t.TimeoutError=TimeoutError;var i=r(6306);t.CancelError=i.CancelError},3774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2582);const i=r(5122);const s=r(2413);const o=r(1669);const a=r(75);const c=o.promisify(s.pipeline);t.default=(async(e,t,r)=>{var s;const o=Number(e.headers["content-length"])||undefined;const u=a.createProgressStream("downloadProgress",r,o);i(e,u);const l=t.decompress&&t.method!=="HEAD"?n(u):u;if(!t.decompress&&["gzip","deflate","br"].includes((s=l.headers["content-encoding"],s!==null&&s!==void 0?s:""))){t.responseType="buffer"}r.emit("response",l);return c(e,u).catch(e=>{if(e.code!=="ERR_STREAM_PREMATURE_CLOSE"){throw e}})})},9365:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(3854);const s={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},decompress:true,throwHttpErrors:true,followRedirect:true,isStream:false,cache:false,dnsCache:false,useElectronNet:false,responseType:"text",resolveBodyOnly:false,maxRedirects:10,prefixUrl:"",methodRewriting:true,allowGetBody:false,ignoreInvalidCookies:false,context:{},_pagination:{transform:e=>{if(e.request.options.responseType==="json"){return e.body}return JSON.parse(e.body)},paginate:e=>{if(!Reflect.has(e.headers,"link")){return false}const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim();r=r.slice(1,-1);break}}if(r){const e={url:new n.URL(r)};return e}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Infinity}},handlers:[i.defaultHandler],mutableDefaults:false};const o=i.default(s);t.default=o;e.exports=o;e.exports.default=o;__export(r(7392));var a=r(1947);t.ResponseStream=a.ProxyStream;var c=r(923);t.GotError=c.GotError;t.CacheError=c.CacheError;t.RequestError=c.RequestError;t.ReadError=c.ReadError;t.ParseError=c.ParseError;t.HTTPError=c.HTTPError;t.MaxRedirectsError=c.MaxRedirectsError;t.UnsupportedProtocolError=c.UnsupportedProtocolError;t.TimeoutError=c.TimeoutError;t.CancelError=c.CancelError},9984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"];t.default=r},4334:(e,t,r)=>{"use strict";e=r.nmd(e);Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(1669);const s=r(3817);const o=r(8605);const a=r(7211);const c=r(530);const u=r(9649);const l=r(1493);const f=r(9147);const h=r(923);const p=r(9984);const d=r(4362);const m=r(1898);const y=r(3236);const v=r(4099);const g=r(7916);const b=r(9968);const w=r(7392);const S=["context","body","json","form"];const x=e=>l.default.object(e);t.preNormalizeArguments=((e,t)=>{var r,n,o,a,u,h;if(l.default.undefined(e.headers)){e.headers={}}else{e.headers=c(e.headers)}for(const[t,r]of Object.entries(e.headers)){if(l.default.null_(r)){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${t}\` header`)}}if(l.default.urlInstance(e.prefixUrl)||l.default.string(e.prefixUrl)){e.prefixUrl=e.prefixUrl.toString();if(e.prefixUrl.length!==0&&!e.prefixUrl.endsWith("/")){e.prefixUrl+="/"}}else{e.prefixUrl=t?t.prefixUrl:""}if(l.default.undefined(e.hooks)){e.hooks={}}if(l.default.object(e.hooks)){for(const t of p.default){if(Reflect.has(e.hooks,t)){if(!l.default.array(e.hooks[t])){throw new TypeError(`Parameter \`${t}\` must be an Array, not ${l.default(e.hooks[t])}`)}}else{e.hooks[t]=[]}}}else{throw new TypeError(`Parameter \`hooks\` must be an Object, not ${l.default(e.hooks)}`)}if(t){for(const r of p.default){if(!(Reflect.has(e.hooks,r)&&l.default.undefined(e.hooks[r]))){e.hooks[r]=[...t.hooks[r],...e.hooks[r]]}}}if(l.default.number(e.timeout)){e.timeout={request:e.timeout}}else if(!l.default.object(e.timeout)){e.timeout={}}const{retry:d}=e;if(t){e.retry={...t.retry}}else{e.retry={calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:undefined}}if(l.default.object(d)){e.retry={...e.retry,...d}}else if(l.default.number(d)){e.retry.limit=d}if(e.retry.maxRetryAfter===undefined){e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(e=>!l.default.nullOrUndefined(e)))}e.retry.methods=[...new Set(e.retry.methods.map(e=>e.toUpperCase()))];e.retry.statusCodes=[...new Set(e.retry.statusCodes)];e.retry.errorCodes=[...new Set(e.retry.errorCodes)];if(e.dnsCache&&!(e.dnsCache instanceof f.default)){e.dnsCache=new f.default({cacheAdapter:e.dnsCache})}if(l.default.string(e.method)){e.method=e.method.toUpperCase()}else{e.method=(n=(r=t)===null||r===void 0?void 0:r.method,n!==null&&n!==void 0?n:"GET")}if(e.cache){e.cacheableRequest=new s((e,t)=>e[w.requestSymbol](e,t),e.cache)}if(l.default.object(e.cookieJar)){let{setCookie:t,getCookieString:r}=e.cookieJar;if(t.length===4&&r.length===0){if(!Reflect.has(t,i.promisify.custom)){t=i.promisify(t.bind(e.cookieJar));r=i.promisify(r.bind(e.cookieJar))}}else if(t.length!==2){throw new TypeError("`options.cookieJar.setCookie` needs to be an async function with 2 arguments")}else if(r.length!==1){throw new TypeError("`options.cookieJar.getCookieString` needs to be an async function with 1 argument")}e.cookieJar={setCookie:t,getCookieString:r}}if(l.default.null_(e.encoding)){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}if(!Reflect.has(e,"maxRedirects")&&!(t&&Reflect.has(t,"maxRedirects"))){e.maxRedirects=0}if(t){e=v.default({},t,e)}if(l.default.object(e._pagination)){const{_pagination:t}=e;if(!l.default.function_(t.transform)){throw new TypeError("`options._pagination.transform` must be implemented")}if(!l.default.function_(t.shouldContinue)){throw new TypeError("`options._pagination.shouldContinue` must be implemented")}if(!l.default.function_(t.filter)){throw new TypeError("`options._pagination.filter` must be implemented")}if(!l.default.function_(t.paginate)){throw new TypeError("`options._pagination.paginate` must be implemented")}}e.decompress=Boolean(e.decompress);e.isStream=Boolean(e.isStream);e.throwHttpErrors=Boolean(e.throwHttpErrors);e.ignoreInvalidCookies=Boolean(e.ignoreInvalidCookies);e.cache=(o=e.cache,o!==null&&o!==void 0?o:false);e.responseType=(a=e.responseType,a!==null&&a!==void 0?a:"text");e.resolveBodyOnly=Boolean(e.resolveBodyOnly);e.followRedirect=Boolean(e.followRedirect);e.dnsCache=(u=e.dnsCache,u!==null&&u!==void 0?u:false);e.useElectronNet=Boolean(e.useElectronNet);e.methodRewriting=Boolean(e.methodRewriting);e.allowGetBody=Boolean(e.allowGetBody);e.context=(h=e.context,h!==null&&h!==void 0?h:{});return e});t.mergeOptions=((...e)=>{let r=t.preNormalizeArguments({});const n={};for(const i of e){r=t.preNormalizeArguments(v.default({},i),r);for(const e of S){if(!Reflect.has(i,e)){continue}n[e]={writable:true,configurable:true,enumerable:false,value:i[e]}}}Object.defineProperties(r,n);return r});t.normalizeArguments=((e,r,i)=>{var s,o,a,c,u,f,h,p,d,m;if(typeof e==="undefined"){throw new TypeError("Missing `url` argument")}const y=(e,t)=>{if(e&&t){for(const r of e){const e=r(t);if(l.default.promise(e)){throw new TypeError("The `init` hook must be a synchronous function")}}}};const v=l.default.urlInstance(e)||l.default.string(e);if(v){if(r){if(Reflect.has(r,"url")){throw new TypeError("The `url` option cannot be used if the input is a valid URL.")}}else{r={}}r.url=e;y((s=i)===null||s===void 0?void 0:s.options.hooks.init,r);y((o=r.hooks)===null||o===void 0?void 0:o.init,r)}else if(Reflect.has(e,"resolve")){throw new Error("The legacy `url.Url` is deprecated. Use `URL` instead.")}else{y((a=i)===null||a===void 0?void 0:a.options.hooks.init,e);y((c=e.hooks)===null||c===void 0?void 0:c.init,e);if(r){y((u=i)===null||u===void 0?void 0:u.options.hooks.init,r);y((f=r.hooks)===null||f===void 0?void 0:f.init,r)}}if(v){r=t.mergeOptions((p=(h=i)===null||h===void 0?void 0:h.options,p!==null&&p!==void 0?p:{}),r!==null&&r!==void 0?r:{})}else{r=t.mergeOptions((m=(d=i)===null||d===void 0?void 0:d.options,m!==null&&m!==void 0?m:{}),e,r!==null&&r!==void 0?r:{})}if(l.default.string(r.url)){r.url=r.prefixUrl+r.url;r.url=r.url.replace(/^unix:/,"http://$&");if(r.searchParams||r.search){r.url=r.url.split("?")[0]}r.url=g.default({origin:r.url,...r})}else if(!l.default.urlInstance(r.url)){r.url=g.default({origin:r.prefixUrl,...r})}const b=r;let w=r.prefixUrl;Object.defineProperty(b,"prefixUrl",{set:e=>{if(!b.url.href.startsWith(e)){throw new Error(`Cannot change \`prefixUrl\` from ${w} to ${e}: ${b.url.href}`)}b.url=new n.URL(e+b.url.href.slice(w.length));w=e},get:()=>w});for(const[e,t]of Object.entries(b.headers)){if(l.default.undefined(t)){delete b.headers[e]}}return b});const E=new Set(["HEAD"]);const _="GET";t.normalizeRequestArguments=(async r=>{var s,c,f;r=t.mergeOptions(r);const{headers:p}=r;const v=l.default.undefined(p["content-type"]);{const e=!l.default.undefined(r.form);const t=!l.default.undefined(r.json);const n=!l.default.undefined(r.body);if((n||e||t)&&E.has(r.method)){throw new TypeError(`The \`${r.method}\` method cannot be used with a body`)}if(!r.allowGetBody&&(n||e||t)&&_===r.method){throw new TypeError(`The \`${r.method}\` method cannot be used with a body`)}if([n,e,t].filter(e=>e).length>1){throw new TypeError("The `body`, `json` and `form` options are mutually exclusive")}if(n&&!l.default.nodeStream(r.body)&&!l.default.string(r.body)&&!l.default.buffer(r.body)&&!(l.default.object(r.body)&&y.default(r.body))){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(e&&!l.default.object(r.form)){throw new TypeError("The `form` option must be an Object")}}if(r.body){if(l.default.object(r.body)&&y.default(r.body)&&v){p["content-type"]=`multipart/form-data; boundary=${r.body.getBoundary()}`}}else if(r.form){if(v){p["content-type"]="application/x-www-form-urlencoded"}r.body=new n.URLSearchParams(r.form).toString()}else if(r.json){if(v){p["content-type"]="application/json"}r.body=JSON.stringify(r.json)}const g=await m.default(r);if(!l.default.nodeStream(r.body)){r.body=u(r.body)}if(l.default.undefined(p["content-length"])&&l.default.undefined(p["transfer-encoding"])){if((r.method==="POST"||r.method==="PUT"||r.method==="PATCH"||r.method==="DELETE"||r.allowGetBody&&r.method==="GET")&&!l.default.undefined(g)){p["content-length"]=String(g)}}if(!r.isStream&&r.responseType==="json"&&l.default.undefined(p.accept)){p.accept="application/json"}if(r.decompress&&l.default.undefined(p["accept-encoding"])){p["accept-encoding"]=b.default?"gzip, deflate, br":"gzip, deflate"}if(r.url.protocol!=="http:"&&r.url.protocol!=="https:"){throw new h.UnsupportedProtocolError(r)}decodeURI(r.url.toString());if(l.default.function_(r.request)){r[w.requestSymbol]=r.request;delete r.request}else{r[w.requestSymbol]=r.url.protocol==="https:"?a.request:o.request}if(r.url.hostname==="unix"){const e=/(?<socketPath>.+?):(?<path>.+)/.exec(r.url.pathname);if((s=e)===null||s===void 0?void 0:s.groups){const{socketPath:t,path:n}=e.groups;r={...r,socketPath:t,path:n,host:""}}}if(x(r.agent)){r.agent=(c=r.agent[r.url.protocol.slice(0,-1)],c!==null&&c!==void 0?c:r.agent)}if(r.dnsCache){r.lookup=r.dnsCache.lookup}if(r.useElectronNet&&process.versions.electron){const t=d.default(e,"electron");r.request=i.deprecate((f=t.net.request,f!==null&&f!==void 0?f:t.remote.net.request),"Electron support has been deprecated and will be removed in Got 11.\n"+"See https://github.com/sindresorhus/got/issues/899 for further information.","GOT_ELECTRON")}delete r.timeout;if(r.cookieJar){const e=await r.cookieJar.getCookieString(r.url.toString());if(l.default.nonEmptyString(e)){r.headers.cookie=e}else{delete r.headers.cookie}}delete r.url;return r})},75:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2413);const i=r(1493);function createProgressStream(e,t,r){let s=0;if(i.default.string(r)){r=Number(r)}const o=new n.Transform({transform(n,i,o){s+=n.length;const a=r?s/r:0;if(a<1){t.emit(e,{percent:a,transferred:s,total:r})}o(undefined,n)},flush(n){t.emit(e,{percent:1,transferred:s,total:r});n()}});t.emit(e,{percent:0,transferred:0,total:r});return o}t.createProgressStream=createProgressStream},3964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const i=r(3817);const s=r(8614);const o=r(8605);const a=r(2413);const c=r(8835);const u=r(1669);const l=r(1493);const f=r(4529);const h=r(3338);const p=r(923);const d=r(3774);const m=r(4334);const y=r(75);const v=r(4269);const g=r(7392);const b=r(4308);const w=r(7021);const S=async()=>new Promise(e=>setImmediate(e));const x=u.promisify(a.pipeline);const E=new Set([300,301,302,303,304,307,308]);t.default=(e=>{const t=new s;const r=e.url.toString();const a=[];let u=0;let _;const O=()=>typeof _.aborted==="number"||_.aborted;const R=async r=>{try{for(const t of e.hooks.beforeError){r=await t(r)}t.emit("error",r)}catch(e){t.emit("error",e)}};const A=async()=>{let n=await m.normalizeRequestArguments(e);const s=async n=>{var i;try{if(e.useElectronNet){n=new Proxy(n,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const r=e[t];return l.default.function_(r)?r.bind(e):r}})}const s=n;const{statusCode:f}=s;s.statusMessage=l.default.nonEmptyString(s.statusMessage)?s.statusMessage:o.STATUS_CODES[f];s.url=e.url.toString();s.requestUrl=r;s.retryCount=u;s.redirectUrls=a;s.request={options:e};s.isFromCache=(i=s.fromCache,i!==null&&i!==void 0?i:false);delete s.fromCache;if(!s.isFromCache){s.ip=n.socket.remoteAddress}const h=s.headers["set-cookie"];if(Reflect.has(e,"cookieJar")&&h){let t=h.map(async t=>e.cookieJar.setCookie(t,s.url));if(e.ignoreInvalidCookies){t=t.map(async e=>e.catch(()=>{}))}await Promise.all(t)}if(e.followRedirect&&Reflect.has(s.headers,"location")&&E.has(f)){s.resume();if(f===303||e.methodRewriting===false){if(e.method!=="GET"&&e.method!=="HEAD"){e.method="GET"}if(Reflect.has(e,"body")){delete e.body}if(Reflect.has(e,"json")){delete e.json}if(Reflect.has(e,"form")){delete e.form}}if(a.length>=e.maxRedirects){throw new p.MaxRedirectsError(s,e.maxRedirects,e)}const r=Buffer.from(s.headers.location,"binary").toString();const i=new c.URL(r,e.url);if(i.hostname!==e.url.hostname&&Reflect.has(e.headers,"cookie")){delete e.headers.cookie}a.push(i.toString());e.url=i;for(const t of e.hooks.beforeRedirect){await t(e,s)}t.emit("redirect",n,e);await A();return}await d.default(s,e,t)}catch(e){R(e)}};const h=async r=>{let i=false;let s=false;r.once("finish",()=>{s=true});_=r;const o=n=>{if(n instanceof v.TimeoutError){n=new p.TimeoutError(n,r.timings,e)}else{n=new p.RequestError(n,e)}if(!t.retry(n)){R(n)}};r.on("error",e=>{if(i){if(!s){return}if(O()&&!(e instanceof v.TimeoutError)){return}}o(e)});try{f.default(r);v.default(r,e.timeout,e.url);t.emit("request",r);const s=y.createProgressStream("uploadProgress",t,n.headers["content-length"]);i=true;await x(n.body,s,r);r.emit("upload-complete")}catch(e){if(O()&&e.message==="Premature close"){return}o(e)}};if(e.cache){n={...n,...b.default(e.url)};const t=e.cacheableRequest(n,s);t.once("error",t=>{if(t instanceof i.RequestError){R(new p.RequestError(t,e))}else{R(new p.CacheError(t,e))}});t.once("request",h)}else{try{h(n[g.requestSymbol](e.url,n,s))}catch(t){R(new p.RequestError(t,e))}}};t.retry=(t=>{let r;u++;try{r=e.retry.calculateDelay({attemptCount:u,retryOptions:e.retry,error:t,computedValue:h.default({attemptCount:u,retryOptions:e.retry,error:t,computedValue:0})})}catch(e){R(e);return false}if(r){const n=async e=>{try{for(const r of e.hooks.beforeRetry){await r(e,t,u)}await A()}catch(e){R(e)}};setTimeout(n,r,{...e,forceRefresh:true});return true}return false});t.abort=(()=>{t.prependListener("request",e=>{e.abort()});if(_){_.abort()}});(async()=>{try{if(e.body instanceof n.ReadStream){await w(e.body,"open")}await S();for(const t of e.hooks.beforeRequest){await t(e)}await A()}catch(e){R(e)}})();return t});t.proxyEvents=((e,t)=>{const r=["request","redirect","uploadProgress","downloadProgress"];for(const n of r){t.on(n,(...t)=>{e.emit(n,...t)})}})},7392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.requestSymbol=Symbol("request")},3090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);function deepFreeze(e){for(const t of Object.values(e)){if(n.default.plainObject(t)||n.default.array(t)){deepFreeze(t)}}return Object.freeze(e)}t.default=deepFreeze},4362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=((e,t)=>e.require(t))},1898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const i=r(1669);const s=r(1493);const o=r(3236);const a=i.promisify(n.stat);t.default=(async e=>{const{body:t,headers:r}=e;if(r&&"content-length"in r){return Number(r["content-length"])}if(!t){return 0}if(s.default.string(t)){return Buffer.byteLength(t)}if(s.default.buffer(t)){return t.length}if(o.default(t)){return i.promisify(t.getLength.bind(t))()}if(t instanceof n.ReadStream){const{size:e}=await a(t.path);return e}return undefined})},3236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);t.default=(e=>n.default.nodeStream(e)&&n.default.function_(e.getBoundary))},4099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(1493);function merge(e,...t){for(const r of t){for(const[t,s]of Object.entries(r)){const r=e[t];if(i.default.urlInstance(r)&&i.default.string(s)){e[t]=new n.URL(s,r)}else if(i.default.plainObject(s)){if(i.default.plainObject(r)){e[t]=merge({},r,s)}else{e[t]=merge({},s)}}else if(i.default.array(s)){e[t]=s.slice()}else{e[t]=s}}}return e}t.default=merge},7916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);function validateSearchParams(e){for(const t of Object.values(e)){if(typeof t!=="string"&&typeof t!=="number"&&typeof t!=="boolean"&&t!==null){throw new TypeError(`The \`searchParams\` value '${String(t)}' must be a string, number, boolean or null`)}}}const i=["protocol","username","password","host","hostname","port","pathname","search","hash"];t.default=(e=>{var t,r;let s;if(e.path){if(e.pathname){throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.")}if(e.search){throw new TypeError("Parameters `path` and `search` are mutually exclusive.")}if(e.searchParams){throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}}if(Reflect.has(e,"auth")){throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.")}if(e.search&&e.searchParams){throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.")}if(e.href){return new n.URL(e.href)}if(e.origin){s=e.origin}else{if(!e.protocol){throw new TypeError("No URL protocol specified")}s=`${e.protocol}//${r=(t=e.hostname,t!==null&&t!==void 0?t:e.host),r!==null&&r!==void 0?r:""}`}const o=new n.URL(s);if(e.path){const t=e.path.indexOf("?");if(t===-1){e.pathname=e.path}else{e.pathname=e.path.slice(0,t);e.search=e.path.slice(t+1)}}if(Reflect.has(e,"path")){delete e.path}for(const t of i){if(Reflect.has(e,t)){o[t]=e[t].toString()}}if(e.searchParams){if(typeof e.searchParams!=="string"&&!(e.searchParams instanceof n.URLSearchParams)){validateSearchParams(e.searchParams)}new n.URLSearchParams(e.searchParams).forEach((e,t)=>{o.searchParams.append(t,e)})}return o})},9968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8761);t.default=typeof n.createBrotliDecompress==="function"},4269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1631);const i=r(9002);const s=Symbol("reentry");const o=()=>{};class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.event=t;this.name="TimeoutError";this.code="ETIMEDOUT"}}t.TimeoutError=TimeoutError;t.default=((e,t,r)=>{if(Reflect.has(e,s)){return o}e[s]=true;const a=[];const{once:c,unhandleAll:u}=i.default();const l=(e,t,r)=>{var n,i;const s=setTimeout(t,e,e,r);(i=(n=s).unref)===null||i===void 0?void 0:i.call(n);const o=()=>{clearTimeout(s)};a.push(o);return o};const{host:f,hostname:h}=r;const p=(t,r)=>{if(e.socket){e.socket._hadError=true}e.abort();e.emit("error",new TimeoutError(t,r))};const d=()=>{for(const e of a){e()}u()};e.once("error",t=>{d();if(e.listenerCount("error")===0){throw t}});e.once("abort",d);c(e,"response",e=>{c(e,"end",d)});if(typeof t.request!=="undefined"){l(t.request,p,"request")}if(typeof t.socket!=="undefined"){const r=()=>{p(t.socket,"socket")};e.setTimeout(t.socket,r);a.push(()=>{e.removeListener("timeout",r)})}c(e,"socket",i=>{var s;const{socketPath:o}=e;if(i.connecting){const e=Boolean(o!==null&&o!==void 0?o:n.isIP((s=h!==null&&h!==void 0?h:f,s!==null&&s!==void 0?s:""))!==0);if(typeof t.lookup!=="undefined"&&!e&&typeof i.address().address==="undefined"){const e=l(t.lookup,p,"lookup");c(i,"lookup",e)}if(typeof t.connect!=="undefined"){const r=()=>l(t.connect,p,"connect");if(e){c(i,"connect",r())}else{c(i,"lookup",e=>{if(e===null){c(i,"connect",r())}})}}if(typeof t.secureConnect!=="undefined"&&r.protocol==="https:"){c(i,"connect",()=>{const e=l(t.secureConnect,p,"secureConnect");c(i,"secureConnect",e)})}}if(typeof t.send!=="undefined"){const r=()=>l(t.send,p,"send");if(i.connecting){c(i,"connect",()=>{c(e,"upload-complete",r())})}else{c(e,"upload-complete",r())}}});if(typeof t.response!=="undefined"){c(e,"upload-complete",()=>{const r=l(t.response,p,"response");c(e,"response",r)})}return d})},9002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=(()=>{const e=[];return{once(t,r,n){t.once(r,n);e.push({origin:t,event:r,fn:n})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:n}=t;e.removeListener(r,n)}e.length=0}}})},4308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);t.default=(e=>{e=e;const t={protocol:e.protocol,hostname:n.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(n.default.string(e.port)&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t})},2582:(e,t,r)=>{"use strict";const{pipeline:n,PassThrough:i}=r(2413);const s=r(8761);const o=r(5122);const a=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof s.createBrotliDecompress!=="function"){return e}const a=r?s.createBrotliDecompress():s.createUnzip();const c=new i;a.on("error",e=>{if(e.code==="Z_BUF_ERROR"){c.end();return}c.emit("error",e)});const u=n(e,a,c,()=>{});o(e,u);return u};e.exports=a},1514:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}const o=new n({objectMode:s});if(r){o.setEncoding(r)}let a=0;const c=[];o.on("data",e=>{c.push(e);if(s){a=c.length}else{a+=e.length}});o.getBufferedValue=(()=>{if(t){return c}return i?Buffer.concat(c,a):c.join("")});o.getBufferedLength=(()=>a);return o})},4430:(e,t,r)=>{"use strict";const{constants:n}=r(4293);const i=r(9595);const s=r(1514);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let o;await new Promise((a,c)=>{const u=e=>{if(e&&o.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=o.getBufferedValue()}c(e)};o=i(e,s(t),e=>{if(e){u(e);return}a()});o.on("data",()=>{if(o.getBufferedLength()>r){u(new MaxBufferError)}})});return o.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},9132:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))});return r}},552:(e,t,r)=>{var n=r(5747);var i=r(7509);var s=r(4410);var o=r(9132);var a=r(1669);var c;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var l=noop;if(a.debuglog)l=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[c]){var f=global[c]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(n[c]);r(2357).equal(n[c].length,0)})}}if(!global[c]){publishQueue(global,n[c])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,s){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,s){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}})}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return o(e,t,r,function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],s,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}})}}var a=e.readdir;e.readdir=readdir;var c=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=c.test(process.version)?function go$readdir(e,t,r,n){return a(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return a(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([n,[e,t,r],s,i||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof r==="function")r.call(this,s,o)}}}}if(process.version.substr(0,4)==="v0.8"){var u=s(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var l=e.ReadStream;if(l){ReadStream.prototype=Object.create(l.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return l.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var d=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return d(e,t,r,function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,n],s,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);n[c].push(e);retry()}var h;function resetQueue(){var e=Date.now();for(var t=0;t<n[c].length;++t){if(n[c][t].length>2){n[c][t][3]=e;n[c][t][4]=e}}retry()}function retry(){clearTimeout(h);h=undefined;if(n[c].length===0)return;var e=n[c].shift();var t=e[0];var r=e[1];var i=e[2];var s=e[3];var o=e[4];if(s===undefined){l("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){l("TIMEOUT",t.name,r);var a=r.pop();if(typeof a==="function")a.call(null,i)}else{var u=Date.now()-o;var f=Math.max(o-s,1);var p=Math.min(f*1.2,100);if(u>=p){l("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{n[c].push(e)}}if(h===undefined){h=setTimeout(retry,0)}}},4410:(e,t,r)=>{var n=r(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,a=s.length;o<a;o++){var c=s[o];this[c]=r[c]}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(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var s=0,o=i.length;s<o;s++){var a=i[s];this[a]=r[a]}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=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},7509:(e,t,r)=>{var n=r(7619);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,a)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var s=Date.now();var o=0;t(r,n,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM"||a.code==="EBUSY")&&Date.now()-s<6e4){setTimeout(function(){e.stat(n,function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,s,o,a){var c;if(a&&typeof a==="function"){var u=0;c=function(l,f,h){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,s,o,c)}a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,c)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,s,o){var a=0;while(true){try{return t.call(e,r,n,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){if(i)i(t||e)})})})};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(i,r);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,r,i){var s=e.openSync(t,n.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,r,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,s){return t.call(e,r,n,i,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},5297:(e,t,r)=>{"use strict";var n=r(7328);var i=r(7855);var s=r(3826);e.exports=function(e,t){return i(n(e)&&t?s(e,t):e)}},7855:(e,t,r)=>{"use strict";var n=r(9722);var i=r(6110);e.exports=function hasValue(e){if(i(e)){return true}switch(n(e)){case"null":case"boolean":case"function":return true;case"string":case"arguments":return e.length!==0;case"error":return e.message!=="";case"array":var t=e.length;if(t===0){return false}for(var r=0;r<t;r++){if(hasValue(e[r])){return true}}return false;case"file":case"map":case"set":return e.size!==0;case"object":var s=Object.keys(e);if(s.length===0){return false}for(var r=0;r<s.length;r++){var o=s[r];if(hasValue(e[o])){return true}}return false;default:{return false}}}},3372:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},9722:(e,t,r)=>{var n=r(3372);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(t==="[object Promise]"){return"promise"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},5855:e=>{"use strict";const t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]);const r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const n=new Set([500,502,503,504]);const i={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const s={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return n.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const r=e.trim().split(/,/);for(const e of r){const[r,n]=e.split(/=/,2);t[r.trim()]=n===undefined?true:n.trim().replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const r in e){const n=e[r];t.push(n===true?r:r+"="+n)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:s,_fromObject:o}={}){if(o){this._fromObject(o);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=r!==false;this._cacheHeuristic=undefined!==n?n:.1;this._immutableMinTtl=undefined!==i?i:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(s&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&r.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t){if(e.headers[r]!==this._reqHeaders[r])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e){if(i[r])continue;t[r]=e[r]}if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);if(Number.isNaN(r)||r<t){return 0}return Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r){return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const r=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,r)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const r=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(r){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let r=false;if(t.status!==undefined&&t.status!=304){r=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){r=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){r=true}}if(!r){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const n={};for(const e in this._resHeaders){n[e]=e in t.headers&&!s[e]?t.headers[e]:this._resHeaders[e]}const i=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},9442:(e,t,r)=>{var n=r(4586);var i=Object.create(null);var s=r(7197);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return s(function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,n)}}finally{if(t.length>r){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete i[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n<t;n++)r[n]=e[n];return r}},6919:(e,t,r)=>{try{var n=r(1669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(7526)}},7526:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}}},1923:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var r=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var n=[];var i="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var s=t.whitespace?" = ":"=";Object.keys(e).forEach(function(t,o,a){var c=e[t];if(c&&Array.isArray(c)){c.forEach(function(e){i+=safe(t+"[]")+s+safe(e)+"\n"})}else if(c&&typeof c==="object")n.push(t);else i+=safe(t)+s+safe(c)+r});if(t.section&&i.length)i="["+safe(t.section)+"]"+r+i;n.forEach(function(n,s,o){var a=dotSplit(n).join("\\.");var c=(t.section?t.section+".":"")+a;var u=encode(e[n],{section:c,whitespace:t.whitespace});if(i.length&&u.length)i+=r;i+=u});return i}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function decode(e){var t={};var r=t;var n=null;var i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var s=e.split(/[\r\n]+/g);s.forEach(function(e,s,o){if(!e||e.match(/^\s*[;#]/))return;var a=e.match(i);if(!a)return;if(a[1]!==undefined){n=unsafe(a[1]);if(n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=unsafe(a[2]);if(c==="__proto__")return;var u=a[3]?unsafe(a[4]):true;switch(u){case"true":case"false":case"null":u=JSON.parse(u)}if(c.length>2&&c.slice(-2)==="[]"){c=c.substring(0,c.length-2);if(c==="__proto__")return;if(!r[c])r[c]=[];else if(!Array.isArray(r[c]))r[c]=[r[c]]}if(Array.isArray(r[c]))r[c].push(u);else r[c]=u});Object.keys(t).filter(function(e,r,n){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var i=dotSplit(e);var s=t;var o=i.pop();var a=o.replace(/\\\./g,".");i.forEach(function(e,t,r){if(e==="__proto__")return;if(!s[e]||typeof s[e]!=="object")s[e]={};s=s[e]});if(s===t&&a===o)return false;s[a]=t[e];return true}).forEach(function(e,r,n){delete t[e]});return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var r=false;var n="";for(var i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r){if("\\;#".indexOf(o)!==-1)n+=o;else n+="\\"+o;r=false}else if(";#".indexOf(o)!==-1)break;else if(o==="\\")r=true;else n+=o}if(r)n+="\\";return n.trim()}return e}},7240:(e,t,r)=>{"use strict";var n=r(9413);var i={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(e,t){if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(n(e)!=="object"){return false}if(has(e,"value")||has(e,"writable")){return false}if(!has(e,"get")||typeof e.get!=="function"){return false}if(has(e,"set")&&typeof e[s]!=="function"&&typeof e[s]!=="undefined"){return false}for(var s in e){if(!i.hasOwnProperty(s)){continue}if(n(e[s])===i[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}function has(e,t){return{}.hasOwnProperty.call(e,t)}e.exports=isAccessorDescriptor},5949:(e,t,r)=>{"use strict";var n=r(9413);e.exports=function isDataDescriptor(e,t){var r={configurable:"boolean",enumerable:"boolean",writable:"boolean"};if(n(e)!=="object"){return false}if(typeof t==="string"){var i=Object.getOwnPropertyDescriptor(e,t);return typeof i!=="undefined"}if(!("value"in e)&&!("writable"in e)){return false}for(var s in e){if(s==="value")continue;if(!r.hasOwnProperty(s)){continue}if(n(e[s])===r[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}},5721:(e,t,r)=>{"use strict";var n=r(9413);var i=r(7240);var s=r(5949);e.exports=function isDescriptor(e,t){if(n(e)!=="object"){return false}if("get"in e){return i(e,t)}return s(e,t)}},7242:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},6546:e=>{e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var t;while(t=/(\\).|([@?!+*]\(.*\))/g.exec(e)){if(t[2])return true;e=e.slice(t.index+t[0].length)}return false}},4042:(e,t,r)=>{var n=r(6546);var i={"{":"}","(":")","[":"]"};var s=function(e){if(e[0]==="!"){return true}var t=0;var r=-2;var n=-2;var s=-2;var o=-2;var a=-2;while(t<e.length){if(e[t]==="*"){return true}if(e[t+1]==="?"&&/[\].+)]/.test(e[t])){return true}if(n!==-1&&e[t]==="["&&e[t+1]!=="]"){if(n<t){n=e.indexOf("]",t)}if(n>t){if(a===-1||a>n){return true}a=e.indexOf("\\",t);if(a===-1||a>n){return true}}}if(s!==-1&&e[t]==="{"&&e[t+1]!=="}"){s=e.indexOf("}",t);if(s>t){a=e.indexOf("\\",t);if(a===-1||a>s){return true}}}if(o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){o=e.indexOf(")",t);if(o>t){a=e.indexOf("\\",t);if(a===-1||a>o){return true}}}if(r!==-1&&e[t]==="("&&e[t+1]!=="|"){if(r<t){r=e.indexOf("|",t)}if(r!==-1&&e[r+1]!==")"){o=e.indexOf(")",r);if(o>r){a=e.indexOf("\\",r);if(a===-1||a>o){return true}}}}if(e[t]==="\\"){var c=e[t+1];t+=2;var u=i[c];if(u){var l=e.indexOf(u,t);if(l!==-1){t=l+1}}if(e[t]==="!"){return true}}else{t++}}return false};var o=function(e){if(e[0]==="!"){return true}var t=0;while(t<e.length){if(/[*?{}()[\]]/.test(e[t])){return true}if(e[t]==="\\"){var r=e[t+1];t+=2;var n=i[r];if(n){var s=e.indexOf(n,t);if(s!==-1){t=s+1}}if(e[t]==="!"){return true}}else{t++}}return false};e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(n(e)){return true}var r=s;if(t&&t.strict===false){r=o}return r(e)}},6110:(e,t,r)=>{"use strict";var n=r(2081);e.exports=function isNumber(e){var t=n(e);if(t==="string"){if(!e.trim())return false}else if(t!=="number"){return false}return e-e+1>=0}},4722:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},2081:(e,t,r)=>{var n=r(4722);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},3718:(e,t)=>{(function(r){if(t&&typeof t==="object"&&"object"!=="undefined"){e.exports=r()}else if(typeof define==="function"&&define.amd){define([],r)}else if(typeof window!=="undefined"){window.isWindows=r()}else if(typeof global!=="undefined"){global.isWindows=r()}else if(typeof self!=="undefined"){self.isWindows=r()}else{this.isWindows=r()}})(function(){"use strict";return function isWindows(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}})},9842:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},228:(e,t,r)=>{var n=r(5747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(7214)}else{i=r(5211)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},5211:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(5747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var f=r&u||r&c&&i===o||r&a&&n===s||r&l&&s===0;return f}},7214:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(5747);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,function(n,i){r(n,n?false:checkStat(i,e,t))})}function sync(e,t){return checkStat(n.statSync(e),e,t)}},7328:e=>{"use strict";e.exports=function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}},7231:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var n=true;for(var i in e){var s="function"==typeof e[i]||!r&&"undefined"===typeof e[i];if(Object.hasOwnProperty.call(e,i)&&!s){if(!n)t+=",";n=false;if(r){if(e[i]==undefined)t+="null";else t+=stringify(e[i])}else if(e[i]!==void 0){t+=stringify(i)+":"+stringify(e[i])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},1050:(e,t,r)=>{"use strict";const n=r(8614);const i=r(7231);const s=e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};const o=["sqlite","postgres","mysql","mongo","redis","tiered"];class Keyv extends n{constructor(e,{emitErrors:t=true,...r}={}){super();this.opts={namespace:"keyv",serialize:i.stringify,deserialize:i.parse,...typeof e==="string"?{uri:e}:e,...r};if(!this.opts.store){const e={...this.opts};this.opts.store=s(e)}if(this.opts.compression){const e=this.opts.compression;this.opts.serialize=e.serialize.bind(e);this.opts.deserialize=e.deserialize.bind(e)}if(typeof this.opts.store.on==="function"&&t){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace;const n=e=>(async function*(){for await(const[t,r]of typeof e==="function"?e(this.opts.store.namespace):e){const e=await this.opts.deserialize(r);if(this.opts.store.namespace&&!t.includes(this.opts.store.namespace)){continue}if(typeof e.expires==="number"&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}});if(typeof this.opts.store[Symbol.iterator]==="function"&&this.opts.store instanceof Map){this.iterator=n(this.opts.store)}else if(typeof this.opts.store.iterator==="function"&&this.opts.store.opts&&this._checkIterableAdaptar()){this.iterator=n(this.opts.store.iterator.bind(this.opts.store))}}_checkIterableAdaptar(){return o.includes(this.opts.store.opts.dialect)||o.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){const{store:r}=this.opts;const n=Array.isArray(e);const i=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&r.getMany===undefined){const e=[];for(const n of i){e.push(Promise.resolve().then(()=>r.get(n)).then(e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e).then(e=>{if(e===undefined||e===null){return undefined}if(typeof e.expires==="number"&&Date.now()>e.expires){return this.delete(n).then(()=>undefined)}return t&&t.raw?e:e.value}))}return Promise.allSettled(e).then(e=>{const t=[];for(const r of e){t.push(r.value)}return t})}return Promise.resolve().then(()=>n?r.getMany(i):r.get(i)).then(e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e).then(r=>{if(r===undefined||r===null){return undefined}if(n){const n=[];for(let i of r){if(typeof i==="string"){i=this.opts.deserialize(i)}if(i===undefined||i===null){n.push(undefined);continue}if(typeof i.expires==="number"&&Date.now()>i.expires){this.delete(e).then(()=>undefined);n.push(undefined)}else{n.push(t&&t.raw?i:i.value)}}return n}if(typeof r.expires==="number"&&Date.now()>r.expires){return this.delete(e).then(()=>undefined)}return t&&t.raw?r:r.value})}set(e,t,r){const n=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:i}=this.opts;return Promise.resolve().then(()=>{const e=typeof r==="number"?Date.now()+r:null;if(typeof t==="symbol"){this.emit("error","symbol cannot be serialized")}t={value:t,expires:e};return this.opts.serialize(t)}).then(e=>i.set(n,e,r)).then(()=>true)}delete(e){const{store:t}=this.opts;if(Array.isArray(e)){const r=this._getKeyPrefixArray(e);if(t.deleteMany===undefined){const e=[];for(const n of r){e.push(t.delete(n))}return Promise.allSettled(e).then(e=>e.every(e=>e.value===true))}return Promise.resolve().then(()=>t.deleteMany(r))}const r=this._getKeyPrefix(e);return Promise.resolve().then(()=>t.delete(r))}clear(){const{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then(async()=>{if(typeof r.has==="function"){return r.has(t)}const e=await r.get(t);return e!==undefined})}disconnect(){const{store:e}=this.opts;if(typeof e.disconnect==="function"){return e.disconnect()}}}e.exports=Keyv},9413:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){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(e)){return"generator"}r=t.call(e);switch(r){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 r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return typeof e.constructor==="function"?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},9439:e=>{"use strict";const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env;const i={enabled:!r&&n!=="dumb"&&t!=="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(e,t){let r=0,n,i="",s="";for(;r<e.length;r++){n=e[r];i+=n.open;s+=n.close;if(t.includes(n.close)){t=t.replace(n.rgx,n.close+n.open)}}return i+t+s}function chain(e,t){let r={has:e,keys:t};r.reset=i.reset.bind(r);r.bold=i.bold.bind(r);r.dim=i.dim.bind(r);r.italic=i.italic.bind(r);r.underline=i.underline.bind(r);r.inverse=i.inverse.bind(r);r.hidden=i.hidden.bind(r);r.strikethrough=i.strikethrough.bind(r);r.black=i.black.bind(r);r.red=i.red.bind(r);r.green=i.green.bind(r);r.yellow=i.yellow.bind(r);r.blue=i.blue.bind(r);r.magenta=i.magenta.bind(r);r.cyan=i.cyan.bind(r);r.white=i.white.bind(r);r.gray=i.gray.bind(r);r.grey=i.grey.bind(r);r.bgBlack=i.bgBlack.bind(r);r.bgRed=i.bgRed.bind(r);r.bgGreen=i.bgGreen.bind(r);r.bgYellow=i.bgYellow.bind(r);r.bgBlue=i.bgBlue.bind(r);r.bgMagenta=i.bgMagenta.bind(r);r.bgCyan=i.bgCyan.bind(r);r.bgWhite=i.bgWhite.bind(r);return r}function init(e,t){let r={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){if(this!==void 0&&this.has!==void 0){this.has.includes(e)||(this.has.push(e),this.keys.push(r));return t===void 0?this:i.enabled?run(this.keys,t+""):t+""}return t===void 0?chain([e],[r]):i.enabled?run([r],t+""):t+""}}e.exports=i},530:e=>{"use strict";e.exports=(e=>{const t={};for(const[r,n]of Object.entries(e)){t[r.toLowerCase()]=n}return t})},7153:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=r(9367);const o=r(9144);const a={mode:511&~process.umask(),fs:n};const c=o.satisfies(process.version,">=10.12.0");const u=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const l=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const f=(e,t)=>Promise.resolve().then(()=>{u(e);t=Object.assign({},a,t);const r=s(t.fs.mkdir);const o=s(t.fs.stat);if(c&&t.fs.mkdir===n.mkdir){const n=i.resolve(e);return r(n,{mode:t.mode,recursive:true}).then(()=>n)}const f=e=>{return r(e,t.mode).then(()=>e).catch(t=>{if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(t.message.includes("null bytes")){throw t}return f(i.dirname(e)).then(()=>f(e))}return o(e).then(t=>t.isDirectory()?e:Promise.reject()).catch(()=>{throw t})})};return f(i.resolve(e))});e.exports=f;e.exports.default=f;e.exports.sync=((e,t)=>{u(e);t=Object.assign({},a,t);if(c&&t.fs.mkdirSync===n.mkdirSync){const r=i.resolve(e);n.mkdirSync(r,{mode:t.mode,recursive:true});return r}const r=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(n.message.includes("null bytes")){throw n}r(i.dirname(e));return r(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw n}}return e};return r(i.resolve(e))})},9144:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=n-6;var a=t.re=[];var c=t.safeRe=[];var u=t.src=[];var l=0;var f="[a-zA-Z0-9-]";var h=[["\\s",1],["\\d",n],[f,o]];function makeSafeRe(e){for(var t=0;t<h.length;t++){var r=h[t][0];var n=h[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}var p=l++;u[p]="0|[1-9]\\d*";var d=l++;u[d]="\\d+";var m=l++;u[m]="\\d*[a-zA-Z-]"+f+"*";var y=l++;u[y]="("+u[p]+")\\."+"("+u[p]+")\\."+"("+u[p]+")";var v=l++;u[v]="("+u[d]+")\\."+"("+u[d]+")\\."+"("+u[d]+")";var g=l++;u[g]="(?:"+u[p]+"|"+u[m]+")";var b=l++;u[b]="(?:"+u[d]+"|"+u[m]+")";var w=l++;u[w]="(?:-("+u[g]+"(?:\\."+u[g]+")*))";var S=l++;u[S]="(?:-?("+u[b]+"(?:\\."+u[b]+")*))";var x=l++;u[x]=f+"+";var E=l++;u[E]="(?:\\+("+u[x]+"(?:\\."+u[x]+")*))";var _=l++;var O="v?"+u[y]+u[w]+"?"+u[E]+"?";u[_]="^"+O+"$";var R="[v=\\s]*"+u[v]+u[S]+"?"+u[E]+"?";var A=l++;u[A]="^"+R+"$";var C=l++;u[C]="((?:<|>)?=?)";var P=l++;u[P]=u[d]+"|x|X|\\*";var T=l++;u[T]=u[p]+"|x|X|\\*";var j=l++;u[j]="[v=\\s]*("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:"+u[w]+")?"+u[E]+"?"+")?)?";var k=l++;u[k]="[v=\\s]*("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:"+u[S]+")?"+u[E]+"?"+")?)?";var N=l++;u[N]="^"+u[C]+"\\s*"+u[j]+"$";var I=l++;u[I]="^"+u[C]+"\\s*"+u[k]+"$";var L=l++;u[L]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var D=l++;u[D]="(?:~>?)";var $=l++;u[$]="(\\s*)"+u[D]+"\\s+";a[$]=new RegExp(u[$],"g");c[$]=new RegExp(makeSafeRe(u[$]),"g");var B="$1~";var F=l++;u[F]="^"+u[D]+u[j]+"$";var M=l++;u[M]="^"+u[D]+u[k]+"$";var G=l++;u[G]="(?:\\^)";var U=l++;u[U]="(\\s*)"+u[G]+"\\s+";a[U]=new RegExp(u[U],"g");c[U]=new RegExp(makeSafeRe(u[U]),"g");var z="$1^";var q=l++;u[q]="^"+u[G]+u[j]+"$";var H=l++;u[H]="^"+u[G]+u[k]+"$";var W=l++;u[W]="^"+u[C]+"\\s*("+R+")$|^$";var V=l++;u[V]="^"+u[C]+"\\s*("+O+")$|^$";var Y=l++;u[Y]="(\\s*)"+u[C]+"\\s*("+R+"|"+u[j]+")";a[Y]=new RegExp(u[Y],"g");c[Y]=new RegExp(makeSafeRe(u[Y]),"g");var Z="$1$2$3";var X=l++;u[X]="^\\s*("+u[j]+")"+"\\s+-\\s+"+"("+u[j]+")"+"\\s*$";var J=l++;u[J]="^\\s*("+u[k]+")"+"\\s+-\\s+"+"("+u[k]+")"+"\\s*$";var Q=l++;u[Q]="(<|>)?=?\\s*\\*";for(var K=0;K<l;K++){r(K,u[K]);if(!a[K]){a[K]=new RegExp(u[K]);c[K]=new RegExp(makeSafeRe(u[K]))}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?c[A]:c[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?c[A]:c[_]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[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(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);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 r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var ee=/^[0-9]+$/;function compareIdentifiers(e,t){var r=ee.test(e);var n=ee.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===te){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var te={};Comparator.prototype.parse=function(e){var t=this.options.loose?c[W]:c[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=te}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===te){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var n=t?c[J]:c[X];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(c[Y],Z);r("comparator trim",e,c[Y]);e=e.replace(c[$],B);e=e.replace(c[U],z);var i=t?c[W]:c[V];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?c[M]:c[F];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?c[H]:c[q];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?c[I]:c[N];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var f=l;if(n==="="&&f){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(c[Q],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,h){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===te){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var h=null;l.forEach(function(e){if(e.semver===te){e=new Comparator(">=0.0.0")}f=f||e;h=h||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,h.semver,n)){h=e}});if(f.operator===a||f.operator===c){return false}if((!h.operator||h.operator===a)&&s(e,h.semver)){return false}else if(h.operator===c&&o(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(c[L]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},2219:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},6519:(e,t,r)=>{"use strict";var n=r(1669);var i=r(1345);e.exports=function mapVisit(e,t,r){if(isObject(r)){return i.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var s=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var a=r[o];if(isObject(a)){i.apply(null,[e,t,a].concat(s))}else{e[t].apply(e,[a].concat(s))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},2375:(e,t,r)=>{"use strict";const n=r(2413);const i=n.PassThrough;const s=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=s.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=i(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",function(e){e.emit("merge2UnpipeEnd")});if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(i(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},5122:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r})},9566:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(5622)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(1561);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var f=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var h=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach(function(t){r[t]=e[t]});Object.keys(t).forEach(function(e){r[e]=t[e]});return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,i){return t(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,i){return t.match(r,n,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){d(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}d(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map(function(e){return e.split(h)});this.debug(this.pattern,r);r=r.map(function(e,t,r){return e.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;d(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var p=1024*64;var d=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>p){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){d(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";var n="";var s=!!r.nocase;var u=false;var l=[];var h=[];var p;var y=false;var v=-1;var g=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(p){switch(p){case"*":n+=c;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+p;break}w.debug("clearStateChar %j %j",p,n);p=false}}for(var S=0,x=e.length,E;S<x&&(E=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,E);if(u&&f[E]){n+="\\"+E;u=false;continue}switch(E){case"/":{return false}case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,E);if(y){this.debug(" in class");if(E==="!"&&S===g+1)E="^";n+=E;continue}w.debug("call clearStateChar %j",p);clearStateChar();p=E;if(r.noext)clearStateChar();continue;case"(":if(y){n+="(";continue}if(!p){n+="\\(";continue}l.push({type:p,start:S-1,reStart:n.length,open:o[p].open,close:o[p].close});n+=p==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",p,n);p=false;continue;case")":if(y||!l.length){n+="\\)";continue}clearStateChar();s=true;var _=l.pop();n+=_.close;if(_.type==="!"){h.push(_)}_.reEnd=n.length;continue;case"|":if(y||!l.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(y){n+="\\"+E;continue}y=true;g=S;v=n.length;n+=E;continue;case"]":if(S===g+1||!y){n+="\\"+E;u=false;continue}var O=e.substring(g+1,S);try{RegExp("["+O+"]")}catch(e){var R=this.parse(O,m);n=n.substr(0,v)+"\\["+R[0]+"\\]";s=s||R[1];y=false;continue}s=true;y=false;n+=E;continue;default:clearStateChar();if(u){u=false}else if(f[E]&&!(E==="^"&&y)){n+="\\"}n+=E}}if(y){O=e.substr(g+1);R=this.parse(O,m);n=n.substr(0,v)+"\\["+R[0];s=s||R[1]}for(_=l.pop();_;_=l.pop()){var A=n.slice(_.reStart+_.open.length);this.debug("setting tail",n,_);A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){if(!r){r="\\"}return t+t+r+"|"});this.debug("tail=%j\n %s",A,A,_,n);var C=_.type==="*"?c:_.type==="?"?a:"\\"+_.type;s=true;n=n.slice(0,_.reStart)+C+"\\("+A}clearStateChar();if(u){n+="\\\\"}var P=false;switch(n.charAt(0)){case"[":case".":case"(":P=true}for(var T=h.length-1;T>-1;T--){var j=h[T];var k=n.slice(0,j.reStart);var N=n.slice(j.reStart,j.reEnd-8);var I=n.slice(j.reEnd-8,j.reEnd);var L=n.slice(j.reEnd);I+=L;var D=k.split("(").length-1;var $=L;for(S=0;S<D;S++){$=$.replace(/\)[+*?]?/,"")}L=$;var B="";if(L===""&&t!==m){B="$"}var F=k+N+L+B+I;n=F}if(n!==""&&s){n="(?=.)"+n}if(P){n=b+n}if(t===m){return[n,s]}if(!s){return globUnescape(e)}var M=r.nocase?"i":"";try{var G=new RegExp("^"+n+"$",M)}catch(e){return new RegExp("$.")}G._glob=e;G._src=n;return G}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?u:l;var n=t.nocase?"i":"";var s=e.map(function(e){return e.map(function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter(function(e){return n.match(e)});if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(h);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var c=e;if(r.matchBase&&a.length===1){c=[s]}var u=this.matchOne(c,a,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var f=s;var h=o+1;if(h===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(f<a){var p=e[f];this.debug("\nglobstar while",e,f,t,h,p);if(this.matchOne(e.slice(f),t.slice(h),r)){this.debug("globstar found match!",f,a,p);return true}else{if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,t,h);break}this.debug("globstar swallow a segment, and continue");f++}}if(r){this.debug("\n>>> no match, partial?",e,f,t,h);if(f===a)return true}return false}var d;if(typeof u==="string"){d=l===u;this.debug("string match",u,l,d)}else{d=l.match(u);this.debug("pattern match",u,l,d)}if(!d)return false}if(s===a&&o===c){return true}else if(s===a){return r}else if(o===c){return s===a-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},1561:(e,t,r)=>{var n=r(4527);var i=r(3353);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=o||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var f;if(u){f=s.body.split(/\.\./)}else{f=parseCommaParts(s.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var h=s.post.length?expand(s.post,false):[""];return h.map(function(e){return s.pre+f[0]+e})}}}var p=s.pre;var h=s.post.length?expand(s.post,false):[""];var d;if(u){var m=numeric(f[0]);var y=numeric(f[1]);var v=Math.max(f[0].length,f[1].length);var g=f.length==3?Math.abs(numeric(f[2])):1;var b=lte;var w=y<m;if(w){g*=-1;b=gte}var S=f.some(isPadded);d=[];for(var x=m;b(x,y);x+=g){var E;if(c){E=String.fromCharCode(x);if(E==="\\")E=""}else{E=String(x);if(S){var _=v-E.length;if(_>0){var O=new Array(_+1).join("0");if(x<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=n(f,function(e){return expand(e,false)})}for(var R=0;R<d.length;R++){for(var A=0;A<h.length;A++){var C=p+d[R]+h[A];if(!t||u||C)r.push(C)}}return r}},5912:e=>{"use strict";function hasKey(e,t){var r=e;t.slice(0,-1).forEach(function(e){r=r[e]||{}});var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,t){if(!t){t={}}var r={bools:{},strings:{},unknownFn:null};if(typeof t.unknown==="function"){r.unknownFn=t.unknown}if(typeof t.boolean==="boolean"&&t.boolean){r.allBools=true}else{[].concat(t.boolean).filter(Boolean).forEach(function(e){r.bools[e]=true})}var n={};function aliasIsBoolean(e){return n[e].some(function(e){return r.bools[e]})}Object.keys(t.alias||{}).forEach(function(e){n[e]=[].concat(t.alias[e]);n[e].forEach(function(t){n[t]=[e].concat(n[e].filter(function(e){return t!==e}))})});[].concat(t.string).filter(Boolean).forEach(function(e){r.strings[e]=true;if(n[e]){[].concat(n[e]).forEach(function(e){r.strings[e]=true})}});var i=t.default||{};var s={_:[]};function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setKey(e,t,n){var i=e;for(var s=0;s<t.length-1;s++){var o=t[s];if(isConstructorOrProto(i,o)){return}if(i[o]===undefined){i[o]={}}if(i[o]===Object.prototype||i[o]===Number.prototype||i[o]===String.prototype){i[o]={}}if(i[o]===Array.prototype){i[o]=[]}i=i[o]}var a=t[t.length-1];if(isConstructorOrProto(i,a)){return}if(i===Object.prototype||i===Number.prototype||i===String.prototype){i={}}if(i===Array.prototype){i=[]}if(i[a]===undefined||r.bools[a]||typeof i[a]==="boolean"){i[a]=n}else if(Array.isArray(i[a])){i[a].push(n)}else{i[a]=[i[a],n]}}function setArg(e,t,i){if(i&&r.unknownFn&&!argDefined(e,i)){if(r.unknownFn(i)===false){return}}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),o);(n[e]||[]).forEach(function(e){setKey(s,e.split("."),o)})}Object.keys(r.bools).forEach(function(e){setArg(e,i[e]===undefined?false:i[e])});var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}for(var a=0;a<e.length;a++){var c=e[a];var u;var l;if(/^--.+=/.test(c)){var f=c.match(/^--([^=]+)=([\s\S]*)$/);u=f[1];var h=f[2];if(r.bools[u]){h=h!=="false"}setArg(u,h,c)}else if(/^--no-.+/.test(c)){u=c.match(/^--no-(.+)/)[1];setArg(u,false,c)}else if(/^--.+/.test(c)){u=c.match(/^--(.+)/)[1];l=e[a+1];if(l!==undefined&&!/^(-|--)[^-]/.test(l)&&!r.bools[u]&&!r.allBools&&(n[u]?!aliasIsBoolean(u):true)){setArg(u,l,c);a+=1}else if(/^(true|false)$/.test(l)){setArg(u,l==="true",c);a+=1}else{setArg(u,r.strings[u]?"":true,c)}}else if(/^-[^-]+/.test(c)){var p=c.slice(1,-1).split("");var d=false;for(var m=0;m<p.length;m++){l=c.slice(m+2);if(l==="-"){setArg(p[m],l,c);continue}if(/[A-Za-z]/.test(p[m])&&l[0]==="="){setArg(p[m],l.slice(1),c);d=true;break}if(/[A-Za-z]/.test(p[m])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(l)){setArg(p[m],l,c);d=true;break}if(p[m+1]&&p[m+1].match(/\W/)){setArg(p[m],c.slice(m+2),c);d=true;break}else{setArg(p[m],r.strings[p[m]]?"":true,c)}}u=c.slice(-1)[0];if(!d&&u!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[u]&&(n[u]?!aliasIsBoolean(u):true)){setArg(u,e[a+1],c);a+=1}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(u,e[a+1]==="true",c);a+=1}else{setArg(u,r.strings[u]?"":true,c)}}}else{if(!r.unknownFn||r.unknownFn(c)!==false){s._.push(r.strings._||!isNumber(c)?c:Number(c))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(i).forEach(function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),i[e]);(n[e]||[]).forEach(function(t){setKey(s,t.split("."),i[e])})}});if(t["--"]){s["--"]=o.slice()}else{o.forEach(function(e){s._.push(e)})}return s}},9657:(e,t,r)=>{"use strict";var n=r(5400);var i=r(5451);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var s=arguments[n];if(isObject(s)){i(s,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},5400:(e,t,r)=>{"use strict";var n=r(3072);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},3072:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},1761:(e,t,r)=>{"use strict";var n=r(1669);var i=r(2325);var s=r(8091);var o=r(9454);var a=r(5253);var c=r(1416);var u=r(1838);var l=1024*64;function nanomatch(e,t,r){t=u.arrayify(t);e=u.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return nanomatch.match(e,t[0],r)}var i=false;var s=[];var o=[];var a=-1;while(++a<n){var c=t[a];if(typeof c==="string"&&c.charCodeAt(0)===33){s.push.apply(s,nanomatch.match(e,c.slice(1),r));i=true}else{o.push.apply(o,nanomatch.match(e,c,r))}}if(i&&o.length===0){if(r&&r.unixify===false){o=e.slice()}else{var l=u.unixify(r);for(var f=0;f<e.length;f++){o.push(l(e[f]))}}}var h=u.diff(o,s);if(!r||r.nodupes!==false){return u.unique(h)}return h}nanomatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=u.unixify(r);var i=memoize("match",t,r,nanomatch.matcher);var s=[];e=u.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||i(c)){s.push(u.value(c,n,r))}}if(typeof r==="undefined"){return u.unique(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?u.unescape(t):t]}}if(r.ignore){s=nanomatch.not(s,r.ignore,r)}return r.nodupes!==false?u.unique(s):s};nanomatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var i=u.equalsPattern(r);if(i(e)){return true}var s=memoize("isMatch",t,r,nanomatch.matcher);return s(e)};nanomatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length===1){return true}}return false};nanomatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length!==1){return false}}return true};nanomatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(nanomatch.isMatch(e,t[i],r)){return true}}return false};nanomatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!nanomatch.isMatch(e,t[i],r)){return false}}return true};nanomatch.not=function(e,t,r){var n=s({},r);var i=n.ignore;delete n.ignore;e=u.arrayify(e);var o=u.diff(e,nanomatch(e,t,n));if(i){o=u.diff(o,nanomatch(e,i))}return n.nodupes!==false?u.unique(o):o};nanomatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var i=u.equalsPattern(t,r);if(i(e)){return true}var o=u.containsPattern(t,r);if(o(e)){return true}}var a=s({},r,{contains:true});return nanomatch.any(e,t,a)};nanomatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};nanomatch.matchKeys=function(e,t,r){if(!u.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=nanomatch(Object.keys(e),t,r);return u.pick(e,n)};nanomatch.matcher=function matcher(e,t){if(u.isEmptyString(e)){return function(){return false}}if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!u.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!u.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return u.matchPath(e,t)}var r=nanomatch.makeRe(e,t);if(nanomatch.matchBase(e,t)){return u.matchBasename(r,t)}function test(e){var r=u.equalsPattern(t);var n=u.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);u.define(n,"result",r.result);return n};nanomatch.capture=function(e,t,r){var n=nanomatch.makeRe(e,s({capture:true},r));var i=u.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var o=memoize("capture",e,r,match);return o(t)};nanomatch.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=u.extend({wrap:false},t);var n=nanomatch.create(e,r);var s=i(n.output,r);u.define(s,"result",n);return s}return memoize("makeRe",e,t,makeRe)};nanomatch.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function create(){return nanomatch.compile(nanomatch.parse(e,t),t)}return memoize("create",e,t,create)};nanomatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=u.instantiate(null,t);a(r,t);var n=r.parse(e,t);u.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};nanomatch.compile=function(e,t){if(typeof e==="string"){e=nanomatch.parse(e,t)}function compile(){var r=u.instantiate(e,t);o(r,t);return r.compile(e,t)}return memoize("compile",e.input,t,compile)};nanomatch.clearCache=function(){nanomatch.cache.__data__={}};function compose(e,t,r){var n;return memoize("compose",String(e),t,function(){return function(i){if(!n){n=[];for(var s=0;s<e.length;s++){n.push(r(e[s],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}})}function memoize(e,t,r,n){var i=u.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(c.has(e,i)){return c.get(e,i)}var s=n(t,r);c.set(e,i,s);return s}nanomatch.compilers=o;nanomatch.parsers=a;nanomatch.cache=c;e.exports=nanomatch},1416:(e,t,r)=>{e.exports=new(r(3096))},9454:e=>{"use strict";e.exports=function(e,t){function slash(){if(t&&typeof t.slash==="string"){return t.slash}if(t&&typeof t.slash==="function"){return t.slash.call(e)}return"\\\\/"}function star(){if(t&&typeof t.star==="string"){return t.star}if(t&&typeof t.star==="function"){return t.star.call(e)}return"[^"+slash()+"]*?"}var r=e.ast=e.parser.ast;r.state=e.parser.state;e.compiler.state=r.state;e.compiler.set("not",function(e){var t=this.prev();if(this.options.nonegate===true||t.type!=="bos"){return this.emit("\\"+e.val,e)}return this.emit(e.val,e)}).set("escape",function(e){if(this.options.unescape&&/^[-\w_.]/.test(e.val)){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)}).set("quoted",function(e){return this.emit(e.val,e)}).set("dollar",function(e){if(e.parent.type==="bracket"){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)}).set("dot",function(e){if(e.dotfiles===true)this.dotfiles=true;return this.emit("\\"+e.val,e)}).set("backslash",function(e){return this.emit(e.val,e)}).set("slash",function(e,t,r){var n="["+slash()+"]";var i=e.parent;var s=this.prev();while(i.type==="paren"&&!i.hasSlash){i.hasSlash=true;i=i.parent}if(s.addQmark){n+="?"}if(e.rest.slice(0,2)==="\\b"){return this.emit(n,e)}if(e.parsed==="**"||e.parsed==="./**"){this.output="(?:"+this.output;return this.emit(n+")?",e)}if(e.parsed==="!**"&&this.options.nonegate!==true){return this.emit(n+"?\\b",e)}return this.emit(n,e)}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var n=e.negated;var i=e.inner;var s=e.val;if(e.escaped===true){i=i.replace(/\\?(\W)/g,"\\$1");n=""}if(i==="]-"){i="\\]\\-"}if(n&&i.indexOf(".")===-1){i+="."}if(n&&i.indexOf("/")===-1){i+="/"}s=r+n+i+t;return this.emit(s,e)}).set("square",function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)}).set("qmark",function(e){var t=this.prev();var r="[^.\\\\/]";if(this.options.dot||t.type!=="bos"&&t.type!=="slash"){r="[^\\\\/]"}if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n==="!"||n==="="||n===":"){return this.emit(e.val,e)}}if(e.val.length>1){r+="{"+e.val.length+"}"}return this.emit(r,e)}).set("plus",function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}var r=this.output.slice(-1);if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)}).set("globstar",function(e,t,r){if(!this.output){this.state.leadingGlobstar=true}var n=this.prev();var i=this.prev(2);var s=this.next();var o=this.next(2);var a=n.type;var c=e.val;if(n.type==="slash"&&s.type==="slash"){if(i.type==="text"){this.output+="?";if(o.type!=="text"){this.output+="\\b"}}}var u=e.parsed;if(u.charAt(0)==="!"){u=u.slice(1)}var l=e.isInside.paren||e.isInside.brace;if(u&&a!=="slash"&&a!=="bos"&&!l){c=star()}else{c=this.options.dot!==true?"(?:(?!(?:["+slash()+"]|^)\\.).)*?":"(?:(?!(?:["+slash()+"]|^)(?:\\.{1,2})($|["+slash()+"]))(?!\\.{2}).)*?"}if((a==="slash"||a==="bos")&&this.options.dot!==true){c="(?!\\.)"+c}if(n.type==="slash"&&s.type==="slash"&&i.type!=="text"){if(o.type==="text"||o.type==="star"){e.addQmark=true}}if(this.options.capture){c="("+c+")"}return this.emit(c,e)}).set("star",function(e,t,r){var n=t[r-2]||{};var i=this.prev();var s=this.next();var o=i.type;function isStart(e){return e.type==="bos"||e.type==="slash"}if(this.output===""&&this.options.contains!==true){this.output="(?!["+slash()+"])"}if(o==="bracket"&&this.options.bash===false){var a=s&&s.type==="bracket"?star():"*?";if(!i.nodes||i.nodes[1].type!=="posix"){return this.emit(a,e)}}var c=!this.dotfiles&&o!=="text"&&o!=="escape"?this.options.dot?"(?!(?:^|["+slash()+"])\\.{1,2}(?:$|["+slash()+"]))":"(?!\\.)":"";if(isStart(i)||isStart(n)&&o==="not"){if(c!=="(?!\\.)"){c+="(?!(\\.{2}|\\.["+slash()+"]))(?=.)"}else{c+="(?=.)"}}else if(c==="(?!\\.)"){c=""}if(i.type==="not"&&n.type==="bos"&&this.options.dot===true){this.output="(?!\\.)"+this.output}var u=c+star();if(this.options.capture){u="("+u+")"}return this.emit(u,e)}).set("text",function(e){return this.emit(e.val,e)}).set("eos",function(e){var t=this.prev();var r=e.val;this.output="(?:\\.["+slash()+"](?=.))?"+this.output;if(this.state.metachar&&t.type!=="qmark"&&t.type!=="slash"){r+=this.options.contains?"["+slash()+"]?":"(?:["+slash()+"]|$)"}return this.emit(r,e)});if(t&&typeof t.compilers==="function"){t.compilers(e.compiler)}}},5253:(e,t,r)=>{"use strict";var n=r(466);var i=r(2325);var s;var o="[\\[!*+?$^\"'.\\\\/]+";var a=createTextRegex(o);e.exports=function(e,t){var r=e.parser;var n=r.options;r.state={slashes:0,paths:[]};r.ast.state=r.state;r.capture("prefix",function(){if(this.parsed)return;var e=this.match(/^\.[\\/]/);if(!e)return;this.state.strictOpen=!!this.options.strictOpen;this.state.addPrefix=true}).capture("escape",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^(?:\\(.)|([$^]))/);if(!t)return;return e({type:"escape",val:t[2]||t[1]})}).capture("quoted",function(){var e=this.position();var t=this.match(/^["']/);if(!t)return;var r=t[0];if(this.input.indexOf(r)===-1){return e({type:"escape",val:r})}var n=advanceTo(this.input,r);this.consume(n.len);return e({type:"quoted",val:n.esc})}).capture("not",function(){var e=this.parsed;var t=this.position();var r=this.match(this.notRegex||/^!+/);if(!r)return;var n=r[0];var i=n.length%2===1;if(e===""&&!i){n=""}if(e===""&&i&&this.options.nonegate!==true){this.bos.val="(?!^(?:";this.append=")$).*";n=""}return t({type:"not",val:n})}).capture("dot",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\.+/);if(!r)return;var n=r[0];this.state.dot=n==="."&&(e===""||e.slice(-1)==="/");return t({type:"dot",dotfiles:this.state.dot,val:n})}).capture("plus",/^\+(?!\()/).capture("qmark",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\?+(?!\()/);if(!r)return;this.state.metachar=true;this.state.qmark=true;return t({type:"qmark",parsed:e,val:r[0]})}).capture("globstar",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);if(!r)return;var i=n.noglobstar!==true?"globstar":"star";var s=t({type:i,parsed:e});this.state.metachar=true;while(this.input.slice(0,4)==="/**/"){this.input=this.input.slice(3)}s.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")};if(i==="globstar"){this.state.globstar=true;s.val="**"}else{this.state.star=true;s.val="*"}return s}).capture("star",function(){var e=this.position();var t=/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;var r=this.match(t);if(!r)return;this.state.metachar=true;this.state.star=true;return e({type:"star",val:r[0]})}).capture("slash",function(){var e=this.position();var t=this.match(/^\//);if(!t)return;this.state.slashes++;return e({type:"slash",val:t[0]})}).capture("backslash",function(){var e=this.position();var t=this.match(/^\\(?![*+?(){}[\]'"])/);if(!t)return;var r=t[0];if(this.isInside("bracket")){r="\\"}else if(r.length>1){r="\\\\"}return e({type:"backslash",val:r})}).capture("square",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\[([^!^\\])\]/);if(!t)return;return e({type:"square",val:t[1]})}).capture("bracket",function(){var e=this.position();var t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(!t)return;var r=t[0];var n=t[1]?"^":"";var i=(t[2]||"").replace(/\\\\+/,"\\\\");var s=t[3]||"";if(t[2]&&i.length<t[2].length){r=r.replace(/\\\\+/,"\\\\")}var o=this.input.slice(0,2);if(i===""&&o==="\\]"){i+=o;this.consume(2);var a=this.input;var c=-1;var u;while(u=a[++c]){this.consume(1);if(u==="]"){s=u;break}i+=u}}return e({type:"bracket",val:r,escaped:s!=="]",negated:n,inner:i,close:s})}).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(a);if(!t||!t[0])return;return e({type:"text",val:t[0]})});if(t&&typeof t.parsers==="function"){t.parsers(e.parser)}};function advanceTo(e,t){var r=e.charAt(0);var n={len:1,val:"",esc:""};var i=0;function advance(){if(r!=="\\"){n.esc+="\\"+r;n.val+=r}r=e.charAt(++i);n.len++;if(r==="\\"){advance();advance()}}while(r&&r!==t){advance()}return n}function createTextRegex(e){if(s)return s;var t={contains:true,strictClose:false};var r=n.create(e,t);var o=i("^(?:[*]\\((?=.)|"+r+")",t);return s=o}e.exports.not=o},1838:(e,t,r)=>{"use strict";var n=e.exports;var i=r(5622);var s=r(3718)();var o=r(4253);n.define=r(3472);n.diff=r(6164);n.extend=r(8091);n.pick=r(7751);n.typeOf=r(9413);n.unique=r(68);n.isEmptyString=function(e){return String(e)===""||String(e)==="./"};n.isWindows=function(){return i.sep==="\\"||s===true};n.last=function(e,t){return e[e.length-(t||1)]};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new o(t)}n.define(r,"parse",function(e,t){var r=o.prototype.parse.call(this,e,t);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var s=i.nodes[0];var a=i.nodes[1];if(i.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{s.val="\\"+s.val;var c=s.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r});return r};n.createKey=function(e,t){if(typeof t==="undefined"){return e}var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isRegex=function(e){return n.typeOf(e)==="regexp"};n.isObject=function(e){return n.typeOf(e)==="object"};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")};n.combineDupes=function(e,t){t=n.arrayify(t).join("|").split("|");t=t.map(function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")});var r=t.join("|");var i=new RegExp("("+r+")(?=\\1)","g");return e.replace(i,"")};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripDrive=function(e){return n.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e};n.stripPrefix=function(e){if(e.charAt(0)==="."&&(e.charAt(1)==="/"||e.charAt(1)==="\\")){return e.slice(2)}return e};n.isSimpleChar=function(e){return e.trim()===""||e==="."};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var s=n._equals(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var s=n._contains(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(t)||e.test(i.basename(t))}};n.identity=function(e){return e};n.value=function(e,t,r){if(r&&r.unixify===false){return e}if(r&&typeof r.unixify==="function"){return r.unixify(e)}return t(e)};n.unixify=function(e){var t=e||{};return function(e){if(t.stripPrefix!==false){e=n.stripPrefix(e)}if(t.unescape===true){e=n.unescape(e)}if(t.unixify===true||n.isWindows()){e=n.toPosixPath(e)}return e}}},3472:(e,t,r)=>{"use strict";var n=r(7328);var i=r(5721);var s=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){s(e,t,r);return e}s(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},8091:(e,t,r)=>{"use strict";var n=r(9080);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},9080:(e,t,r)=>{"use strict";var n=r(7079);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},7079:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},3783:(e,t,r)=>{var n=r(1669).inherits;var i=function(e,t){this.nested=t;if(e instanceof Error){t=e}else if(typeof e!=="undefined"){Object.defineProperty(this,"message",{value:e,writable:true,enumerable:false,configurable:true})}Error.captureStackTrace(this,this.constructor);var r=Object.getOwnPropertyDescriptor(this,"stack");var n=buildStackDescriptor(r,t);Object.defineProperty(this,"stack",n)};function buildStackDescriptor(e,t){if(e.get){return{get:function(){var t=e.get.call(this);return buildCombinedStacks(t,this.nested)}}}else{var r=e.value;return{value:buildCombinedStacks(r,t)}}}function buildCombinedStacks(e,t){if(t){e+="\nCaused By: "+t.stack}return e}n(i,Error);i.prototype.name="NestedError";e.exports=i},7369:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},9966:e=>{"use strict";const t="text/plain";const r="us-ascii";const n=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const i=(e,{stripHash:n})=>{const i=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!i){throw new Error(`Invalid URL: ${e}`)}let{type:s,data:o,hash:a}=i.groups;const c=s.split(";");a=n?"":a;let u=false;if(c[c.length-1]==="base64"){c.pop();u=true}const l=(c.shift()||"").toLowerCase();const f=c.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());if(t==="charset"){n=n.toLowerCase();if(n===r){return""}}return`${t}${n?`=${n}`:""}`}).filter(Boolean);const h=[...f];if(u){h.push("base64")}if(h.length!==0||l&&l!==t){h.unshift(l)}return`data:${h.join(";")},${u?o.trim():o}${a?`#${a}`:""}`};const s=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripTextFragment:true,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeSingleSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};e=e.trim();if(/^data:/i.test(e)){return i(e,t)}if(/^view-source:/i.test(e)){throw new Error("`view-source:` is not supported as it is a non-standard protocol")}const r=e.startsWith("//");const s=!r&&/^\.*\//.test(e);if(!s){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const o=new URL(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&o.protocol==="https:"){o.protocol="http:"}if(t.forceHttps&&o.protocol==="http:"){o.protocol="https:"}if(t.stripAuthentication){o.username="";o.password=""}if(t.stripHash){o.hash=""}else if(t.stripTextFragment){o.hash=o.hash.replace(/#?:~:text.*?$/i,"")}if(o.pathname){o.pathname=o.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")}if(o.pathname){try{o.pathname=decodeURI(o.pathname)}catch(e){}}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/");const r=e[e.length-1];if(n(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);o.pathname=e.slice(1).join("/")+"/"}}if(o.hostname){o.hostname=o.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(o.hostname)){o.hostname=o.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...o.searchParams.keys()]){if(n(e,t.removeQueryParameters)){o.searchParams.delete(e)}}}if(t.removeQueryParameters===true){o.search=""}if(t.sortQueryParameters){o.searchParams.sort()}if(t.removeTrailingSlash){o.pathname=o.pathname.replace(/\/$/,"")}const a=e;e=o.toString();if(!t.removeSingleSlash&&o.pathname==="/"&&!a.endsWith("/")&&o.hash===""){e=e.replace(/\/$/,"")}if((t.removeTrailingSlash||o.pathname==="/")&&o.hash===""&&t.removeSingleSlash){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=s},858:(e,t,r)=>{"use strict";var n=r(427);var i=r(4016);var s=r(3018);function copy(e,t,r){if(!isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=nativeKeys(t);var o=Object.keys(t);var a=n.length;r=arrayify(r);while(a--){var c=n[a];if(has(o,c)){s(e,c,t[c])}else if(!(c in e)&&!has(r,c)){i(e,t,c)}}}function isObject(e){return n(e)==="object"||typeof e==="function"}function has(e,t){t=arrayify(t);var r=t.length;if(isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=nativeKeys(e);return has(i,t)}if(Array.isArray(e)){var s=e;while(r--){if(s.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}function hasConstructor(e){return isObject(e)&&typeof e.constructor!=="undefined"}function nativeKeys(e){if(!hasConstructor(e))return[];return Object.getOwnPropertyNames(e)}e.exports=copy;e.exports.has=has},7468:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},427:(e,t,r)=>{var n=r(7468);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},1345:(e,t,r)=>{"use strict";var n=r(7328);e.exports=function visit(e,t,r,i){if(!n(e)&&typeof e!=="function"){throw new Error("object-visit expects `thisArg` to be an object.")}if(typeof t!=="string"){throw new Error("object-visit expects `method` name to be a string")}if(typeof e[t]!=="function"){return e}var s=[].slice.call(arguments,3);r=r||{};for(var o in r){var a=[o,r[o]].concat(s);e[t].apply(e,a)}return e}},7751:(e,t,r)=>{"use strict";var n=r(7328);e.exports=function pick(e,t){if(!n(e)&&typeof e!=="function"){return{}}var r={};if(typeof t==="string"){if(t in e){r[t]=e[t]}return r}var i=t.length;var s=-1;while(++s<i){var o=t[s];if(o in e){r[o]=e[o]}}return r}},7197:(e,t,r)=>{var n=r(4586);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},6306:e=>{"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((r,n,i)=>{t.push(i);e(...t).then(r,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,r)=>{this._reject=r;const n=e=>{if(!this._isCanceled||!s.shouldReject){this._isPending=false;t(e)}};const i=e=>{this._isPending=false;r(e)};const s=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(s,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,i,s)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}this._isCanceled=true;if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e);return}}if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},7021:(e,t,r)=>{"use strict";const n=r(2454);const i=Symbol.asyncIterator||"@@asyncIterator";const s=e=>{const t=e.on||e.addListener||e.addEventListener;const r=e.off||e.removeListener||e.removeEventListener;if(!t||!r){throw new TypeError("Emitter is not compatible")}return{addListener:t.bind(e),removeListener:r.bind(e)}};const o=e=>Array.isArray(e)?e:[e];const a=(e,t,r)=>{let i;const a=new Promise((n,a)=>{r={rejectionEvents:["error"],multiArgs:false,resolveImmediately:false,...r};if(!(r.count>=0&&(r.count===Infinity||Number.isInteger(r.count)))){throw new TypeError("The `count` option should be at least 0 or more")}const c=o(t);const u=[];const{addListener:l,removeListener:f}=s(e);const h=(...e)=>{const t=r.multiArgs?e:e[0];if(r.filter&&!r.filter(t)){return}u.push(t);if(r.count===u.length){i();n(u)}};const p=e=>{i();a(e)};i=(()=>{for(const e of c){f(e,h)}for(const e of r.rejectionEvents){f(e,p)}});for(const e of c){l(e,h)}for(const e of r.rejectionEvents){l(e,p)}if(r.resolveImmediately){n(u)}});a.cancel=i;if(typeof r.timeout==="number"){const e=n(a,r.timeout);e.cancel=i;return e}return a};const c=(e,t,r)=>{if(typeof r==="function"){r={filter:r}}r={...r,count:1,resolveImmediately:false};const n=a(e,t,r);const i=n.then(e=>e[0]);i.cancel=n.cancel;return i};e.exports=c;e.exports.default=c;e.exports.multiple=a;e.exports.iterator=((e,t,r)=>{if(typeof r==="function"){r={filter:r}}const n=o(t);r={rejectionEvents:["error"],resolutionEvents:[],limit:Infinity,multiArgs:false,...r};const{limit:a}=r;const c=a>=0&&(a===Infinity||Number.isInteger(a));if(!c){throw new TypeError("The `limit` option should be a non-negative integer or Infinity")}if(a===0){return{[Symbol.asyncIterator](){return this},async next(){return{done:true,value:undefined}}}}const{addListener:u,removeListener:l}=s(e);let f=false;let h;let p=false;const d=[];const m=[];let y=0;let v=false;const g=(...e)=>{y++;v=y===a;const t=r.multiArgs?e:e[0];if(d.length>0){const{resolve:e}=d.shift();e({done:false,value:t});if(v){b()}return}m.push(t);if(v){b()}};const b=()=>{f=true;for(const e of n){l(e,g)}for(const e of r.rejectionEvents){l(e,w)}for(const e of r.resolutionEvents){l(e,S)}while(d.length>0){const{resolve:e}=d.shift();e({done:true,value:undefined})}};const w=(...e)=>{h=r.multiArgs?e:e[0];if(d.length>0){const{reject:e}=d.shift();e(h)}else{p=true}b()};const S=(...e)=>{const t=r.multiArgs?e:e[0];if(r.filter&&!r.filter(t)){return}if(d.length>0){const{resolve:e}=d.shift();e({done:true,value:t})}else{m.push(t)}b()};for(const e of n){u(e,g)}for(const e of r.rejectionEvents){u(e,w)}for(const e of r.resolutionEvents){u(e,S)}return{[i](){return this},async next(){if(m.length>0){const e=m.shift();return{done:f&&m.length===0&&!v,value:e}}if(p){p=false;throw h}if(f){return{done:true,value:undefined}}return new Promise((e,t)=>d.push({resolve:e,reject:t}))},async return(e){b();return{done:f,value:e}}}});e.exports.TimeoutError=n.TimeoutError},5324:e=>{"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},2454:(e,t,r)=>{"use strict";const n=r(5324);class TimeoutError extends Error{constructor(e){super(e);this.name="TimeoutError"}}const i=(e,t,r)=>new Promise((i,s)=>{if(typeof t!=="number"||t<0){throw new TypeError("Expected `milliseconds` to be a positive number")}if(t===Infinity){i(e);return}const o=setTimeout(()=>{if(typeof r==="function"){try{i(r())}catch(e){s(e)}return}const n=typeof r==="string"?r:`Promise timed out after ${t} milliseconds`;const o=r instanceof Error?r:new TimeoutError(n);if(typeof e.cancel==="function"){e.cancel()}s(o)},t);n(e.then(i,s),()=>{clearTimeout(o)})});e.exports=i;e.exports.default=i;e.exports.TimeoutError=TimeoutError},9859:e=>{function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=pascalcase},8261:(e,t,r)=>{"use strict";var n=r(5622);var i=r(1669).inspect;function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+i(e))}}function posix(e){assertPath(e);if(e.length===0)return".";var t=e.charCodeAt(0);var r=t===47;var n=-1;var i=true;for(var s=e.length-1;s>=1;--s){t=e.charCodeAt(s);if(t===47){if(!i){n=s;break}}else{i=false}}if(n===-1)return r?"/":".";if(r&&n===1)return"//";return e.slice(0,n)}function win32(e){assertPath(e);var t=e.length;if(t===0)return".";var r=-1;var n=-1;var i=true;var s=0;var o=e.charCodeAt(0);if(t>1){if(o===47||o===92){r=s=1;o=e.charCodeAt(1);if(o===47||o===92){var a=2;var c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o!==47&&o!==92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a===t){return e}if(a!==c){r=s=a+1}}}}}else if(o>=65&&o<=90||o>=97&&o<=122){o=e.charCodeAt(1);if(e.charCodeAt(1)===58){r=s=2;if(t>2){o=e.charCodeAt(2);if(o===47||o===92)r=s=3}}}}else if(o===47||o===92){return e[0]}for(var u=t-1;u>=s;--u){o=e.charCodeAt(u);if(o===47||o===92){if(!i){n=u;break}}else{i=false}}if(n===-1){if(r===-1)return".";else n=r}return e.slice(0,n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1323:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},9367:e=>{"use strict";const t=(e,t)=>(function(...r){const n=t.promiseModule;return new n((n,i)=>{if(t.multiArgs){r.push((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();n(e)}}else{n(e)}})}else if(t.errorFirst){r.push((e,t)=>{if(e){i(e)}else{n(t)}})}else{r.push(n)}e.apply(this,r)})});e.exports=((e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const n=typeof e;if(!(e!==null&&(n==="object"||n==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":n}\``)}const i=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let s;if(n==="function"){s=function(...n){return r.excludeMain?e(...n):t(e,r).apply(this,n)}}else{s=Object.create(Object.getPrototypeOf(e))}for(const n in e){const o=e[n];s[n]=typeof o==="function"&&i(n)?t(o,r):o}return s})},803:e=>{"use strict";e.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"}},9595:(e,t,r)=>{var n=r(7197);var i=r(2498);var s=r(5747);var o=function(){};var a=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&c(e.close)};var l=function(e){return e.setHeader&&c(e.abort)};var f=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var f=false;return function(t){if(a)return;if(f)return;f=true;if(u(e))return e.close(o);if(l(e))return e.abort();if(c(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var h=function(e){e()};var p=function(e,t){return e.pipe(t)};var d=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s<e.length-1;var a=s>0;return f(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(h);if(o)return;n.forEach(h);t(r)})});return e.reduce(p)};e.exports=d},8271:(e,t,r)=>{var n=r(7563);var i=r(5622).join;var s=r(5134);var o="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,u,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!u)u=r(5912)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var f=n.env(e+"_");var h=[t];var p=[];function addConfigFile(e){if(p.indexOf(e)>=0)return;var t=n.file(e);if(t){h.push(l(t));p.push(e)}}if(!a)[i(o,e,"config"),i(o,e+"rc")].forEach(addConfigFile);if(c)[i(c,".config",e,"config"),i(c,".config",e),i(c,"."+e,"config"),i(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(f.config)addConfigFile(f.config);if(u.config)addConfigFile(u.config);return s.apply(null,h.concat([f,u,p.length?{configs:p,config:p[p.length-1]}:undefined]))}},7563:(e,t,r)=>{"use strict";var n=r(5747);var i=r(1923);var s=r(5622);var o=r(6397);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return i.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null});for(var t in e)if("string"!==typeof e[t])return;var r=s.join.apply(null,e);var i;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var u=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var i in t){if(i.toLowerCase().indexOf(e.toLowerCase())===0){var s=i.substring(n).split("__");var o;while((o=s.indexOf(""))>-1){s.splice(o,1)}var a=r;s.forEach(function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===s.length-1)a[e]=t[i];if(a[e]===undefined)a[e]={};a=a[e]})}}return r};var f=t.find=function(){var e=s.join.apply(null,[].slice.call(arguments));function find(e,t){var r=s.join(e,t);try{n.statSync(r);return r}catch(r){if(s.dirname(e)!==e)return find(s.dirname(e),t)}}return find(process.cwd(),e)}},6397:e=>{"use strict";var t=1;var r=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,r){return e.slice(t,r).replace(/\S/g," ")}e.exports=function(e,n){n=n||{};var i;var s;var o=false;var a=false;var c=0;var u="";var l=n.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var f=0;f<e.length;f++){i=e[f];s=e[f+1];if(!a&&i==='"'){var h=e[f-1]==="\\"&&e[f-2]!=="\\";if(!h){o=!o}}if(o){continue}if(!a&&i+s==="//"){u+=e.slice(c,f);c=f;a=t;f++}else if(a===t&&i+s==="\r\n"){f++;a=false;u+=l(e,c,f);c=f;continue}else if(a===t&&i==="\n"){a=false;u+=l(e,c,f);c=f}else if(!a&&i+s==="/*"){u+=e.slice(c,f);c=f;a=r;f++;continue}else if(a===r&&i+s==="*/"){f++;a=false;u+=l(e,c,f+1);c=f+1;continue}}return u+(a?l(e.substr(c)):e.substr(c))}},466:(e,t,r)=>{"use strict";var n=r(8134);var i=r(8589);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var s=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var a=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+a}else{c="(?:(?!^(?:"+e+")$).)"+a}var u=s+c+o;if(r.safe===true&&i(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},8134:(e,t,r)=>{"use strict";var n=r(5114);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},5114:(e,t,r)=>{"use strict";var n=r(3775);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},3775:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},4955:(e,t,r)=>{const n=r(3118).Buffer;function decodeBase64(e){return n.from(e,"base64").toString("utf8")}function encodeBase64(e){return n.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},1384:(e,t,r)=>{var n=r(8835);var i=r(4955);var s=i.decodeBase64;var o=i.encodeBase64;var a=":_authToken";var c=":username";var u=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||r(8271)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var r=n.parse(e,false,true);var i;while(i!=="/"&&r.pathname!==i){i=r.pathname||"/";var s="//"+r.host+i.replace(/\/$/,"");var o=getAuthInfoForUrl(s,t.npmrc);if(o){return o}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(n.resolve(e,"."),t)}r.pathname=n.resolve(normalizePath(i),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var r=getBearerToken(t[e+a]||t[e+"/"+a]);if(r){return r}var n=t[e+c]||t[e+"/"+c];var i=t[e+u]||t[e+"/"+u];var s=getTokenForUsernameAndPassword(n,i);if(s){return s}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]});return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var r=s(t.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]}));var n=o(e+":"+r);return{token:n,type:"Basic",password:r,username:e}}},2447:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(8271)("npm",{registry:"https://registry.npmjs.org/"});var n=t[e+":registry"]||t.registry;return n.slice(-1)==="/"?n:n+"/"}},9503:e=>{"use strict";e.exports=function repeat(e,t){if(Array.prototype.fill){return new Array(t).fill(e)}var r=new Array(t);for(var n=0;n<t;n++){r[n]=e}return r}},9626:e=>{"use strict";var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var i=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=i){return t.substr(0,i)}while(i>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,i);return t}},7431:(e,t,r)=>{"use strict";const n=r(2413).Readable;const i=r(530);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=i(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},5961:(e,t,r)=>{var n=r(9152);var i=r(8349);var s=r(6125);var o=r(4162);e.exports=function(e){var t=0,r,a,c={type:i.ROOT,stack:[]},u=c,l=c.stack,f=[];var h=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){a=p[t++];switch(a){case"\\":a=p[t++];switch(a){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(s.words());break;case"W":l.push(s.notWords());break;case"d":l.push(s.ints());break;case"D":l.push(s.notInts());break;case"s":l.push(s.whitespace());break;case"S":l.push(s.notWhitespace());break;default:if(/\d/.test(a)){l.push({type:i.REFERENCE,value:parseInt(a,10)})}else{l.push({type:i.CHAR,value:a.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var d;if(p[t]==="^"){d=true;t++}else{d=false}var m=n.tokenizeClass(p.slice(t),e);t+=m[1];l.push({type:i.SET,set:m[0],not:d});break;case".":l.push(s.anyChar());break;case"(":var y={type:i.GROUP,stack:[],remember:true};a=p[t];if(a==="?"){a=p[t+1];t+=2;if(a==="="){y.followedBy=true}else if(a==="!"){y.notFollowedBy=true}else if(a!==":"){n.error(e,"Invalid group, character '"+a+"' after '?' at column "+(t-1))}y.remember=false}l.push(y);f.push(u);u=y;l=y.stack;break;case")":if(f.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=f.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var v=[];u.options.push(v);l=v;break;case"{":var g=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),b,w;if(g!==null){if(l.length===0){h(t)}b=parseInt(g[1],10);w=g[2]?g[3]?parseInt(g[3],10):Infinity:b;t+=g[0].length;l.push({type:i.REPETITION,min:b,max:w,value:l.pop()})}else{l.push({type:i.CHAR,value:123})}break;case"?":if(l.length===0){h(t)}l.push({type:i.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){h(t)}l.push({type:i.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){h(t)}l.push({type:i.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:i.CHAR,value:a.charCodeAt(0)})}}if(f.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=i},4162:(e,t,r)=>{var n=r(8349);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},6125:(e,t,r)=>{var n=r(8349);var i=function(){return[{type:n.RANGE,from:48,to:57}]};var s=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(i())};var o=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var a=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:s(),not:false}};t.notWords=function(){return{type:n.SET,set:s(),not:true}};t.ints=function(){return{type:n.SET,set:i(),not:false}};t.notInts=function(){return{type:n.SET,set:i(),not:true}};t.whitespace=function(){return{type:n.SET,set:o(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:o(),not:true}};t.anyChar=function(){return{type:n.SET,set:a(),not:true}}},8349:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},9152:(e,t,r)=>{var n=r(8349);var i=r(6125);var s="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,function(e,t,r,n,i,a,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):i?parseInt(i,16):a?parseInt(a,8):c?s.indexOf(c):o[u];var f=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(f)){f="\\"+f}return f});return e};t.tokenizeClass=function(e,r){var s=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var a,c;while((a=o.exec(e))!=null){if(a[1]){s.push(i.words())}else if(a[2]){s.push(i.ints())}else if(a[3]){s.push(i.whitespace())}else if(a[4]){s.push(i.notWords())}else if(a[5]){s.push(i.notInts())}else if(a[6]){s.push(i.notWhitespace())}else if(a[7]){s.push({type:n.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)})}else if(c=a[12]){s.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[s,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},9356:(e,t,r)=>{e.exports=r(403)},403:(e,t,r)=>{var n=r(3652);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var i=0;i<t.retries;i++){n.push(this.createTimeout(i,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(i,t))}n.sort(function(e,t){return e-t});return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var i in e){if(typeof e[i]==="function"){n.push(i)}}}for(var s=0;s<n.length;s++){var o=n[s];var a=e[o];e[o]=function retryWrapper(n){var i=t.operation(r);var s=Array.prototype.slice.call(arguments,1);var o=s.pop();s.push(function(e){if(i.retry(e)){return}if(e){arguments[0]=i.mainError()}o.apply(this,arguments)});i.attempt(function(){n.apply(e,s)})}.bind(e,a);e[o].options=r}}},3652:e=>{function RetryOperation(e,t){if(typeof t==="boolean"){t={forever:t}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=t||{};this._maxRetryTime=t&&t.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){if(this._cachedTimeouts){this._errors.splice(this._errors.length-1,this._errors.length);this._timeouts=this._cachedTimeouts.slice(0);r=this._timeouts.shift()}else{return false}}var n=this;var i=setTimeout(function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)},r);if(this._options.unref){i.unref()}return true};RetryOperation.prototype.attempt=function(e,t){this._fn=e;if(t){if(t.timeout){this._operationTimeout=t.timeout}if(t.cb){this._operationTimeoutCb=t.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n<this._errors.length;n++){var i=this._errors[n];var s=i.message;var o=(e[s]||0)+1;e[s]=o;if(o>=r){t=i;r=o}}return t}},3118:(e,t,r)=>{var n=r(4293);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8589:(e,t,r)=>{var n=r(5961);var i=n.types;e.exports=function(e,t){if(!t)t={};var r=t.limit===undefined?25:t.limit;if(isRegExp(e))e=e.source;else if(typeof e!=="string")e=String(e);try{e=n(e)}catch(e){return false}var s=0;return function walk(e,t){if(e.type===i.REPETITION){t++;s++;if(t>1)return false;if(s>r)return false}if(e.options){for(var n=0,o=e.options.length;n<o;n++){var a=walk({stack:e.options[n]},t);if(!a)return false}}var c=e.stack||e.value&&e.value.stack;if(!c)return true;for(var n=0;n<c.length;n++){var a=walk(c[n],t);if(!a)return false}return true}(e,0)};function isRegExp(e){return{}.toString.call(e)==="[object RegExp]"}},4927:(e,t,r)=>{"use strict";var n=r(4178);var i=r(2533);var s=r(370);var o=r(7242);e.exports=function(e,t,r){if(!o(e)){return e}if(Array.isArray(t)){t=[].concat.apply([],t).join(".")}if(typeof t!=="string"){return e}var a=n(t,{sep:".",brackets:true}).filter(isValidKey);var c=a.length;var u=-1;var l=e;while(++u<c){var f=a[u];if(u!==c-1){if(!o(l[f])){l[f]={}}l=l[f];continue}if(s(l[f])&&s(r)){l[f]=i({},l[f],r)}else{l[f]=r}}return e};function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}},370:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},4970:(e,t,r)=>{"use strict";var n=r(1504);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},1504:e=>{"use strict";e.exports=/^#!.*/},332:e=>{"use strict";const t="";const r=`${t}[`;const n="";const i={to(e,t){if(!t)return`${r}${e+1}G`;return`${r}${t+1};${e+1}H`},move(e,t){let n="";if(e<0)n+=`${r}${-e}D`;else if(e>0)n+=`${r}${e}C`;if(t<0)n+=`${r}${-t}A`;else if(t>0)n+=`${r}${t}B`;return n},up:(e=1)=>`${r}${e}A`,down:(e=1)=>`${r}${e}B`,forward:(e=1)=>`${r}${e}C`,backward:(e=1)=>`${r}${e}D`,nextLine:(e=1)=>`${r}E`.repeat(e),prevLine:(e=1)=>`${r}F`.repeat(e),left:`${r}G`,hide:`${r}?25l`,show:`${r}?25h`,save:`${t}7`,restore:`${t}8`};const s={up:(e=1)=>`${r}S`.repeat(e),down:(e=1)=>`${r}T`.repeat(e)};const o={screen:`${r}2J`,up:(e=1)=>`${r}1J`.repeat(e),down:(e=1)=>`${r}J`.repeat(e),line:`${r}2K`,lineEnd:`${r}K`,lineStart:`${r}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?i.up():"");if(e)t+=i.left;return t}};e.exports={cursor:i,scroll:s,erase:o,beep:n}},6227:(e,t,r)=>{"use strict";var n=r(7328);var i=r(8954);var s=r(118);var o;function Node(e,t,r){if(typeof t!=="string"){r=t;t=null}i(this,"parent",r);i(this,"isNode",true);i(this,"expect",null);if(typeof t!=="string"&&n(e)){lazyKeys();var s=Object.keys(e);for(var a=0;a<s.length;a++){var c=s[a];if(o.indexOf(c)===-1){this[c]=e[c]}}}else{this.type=t;this.val=e}}Node.isNode=function(e){return s.isNode(e)};Node.prototype.define=function(e,t){i(this,e,t);return this};Node.prototype.isEmpty=function(e){return s.isEmpty(this,e)};Node.prototype.push=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");i(e,"parent",this);this.nodes=this.nodes||[];return this.nodes.push(e)};Node.prototype.unshift=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");i(e,"parent",this);this.nodes=this.nodes||[];return this.nodes.unshift(e)};Node.prototype.pop=function(){return this.nodes&&this.nodes.pop()};Node.prototype.shift=function(){return this.nodes&&this.nodes.shift()};Node.prototype.remove=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");this.nodes=this.nodes||[];var t=e.index;if(t!==-1){e.index=-1;return this.nodes.splice(t,1)}return null};Node.prototype.find=function(e){return s.findNode(this.nodes,e)};Node.prototype.isType=function(e){return s.isType(this,e)};Node.prototype.hasType=function(e){return s.hasType(this,e)};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(e){i(this,"idx",e)},get:function(){if(!Array.isArray(this.siblings)){return-1}var e=this.idx!==-1?this.siblings[this.idx]:null;if(e!==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?s.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(!o){o=Object.getOwnPropertyNames(Node.prototype)}}function assert(e,t){if(!e)throw new Error(t)}t=e.exports=Node},8954:(e,t,r)=>{"use strict";var n=r(5721);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},118:(e,t,r)=>{"use strict";var n=r(5563);var i=e.exports;i.isNode=function(e){return n(e)==="object"&&e.isNode===true};i.noop=function(e){append(this,"",e)};i.identity=function(e){append(this,e.val,e)};i.append=function(e){return function(t){append(this,e,t)}};i.toNoop=function(e,t){if(t){e.nodes=t}else{delete e.nodes;e.type="text";e.val=""}};i.visit=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected a visitor function");t(e);return e.nodes?i.mapVisit(e,t):e};i.mapVisit=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");assert(isArray(e.nodes),"expected node.nodes to be an array");assert(isFunction(t),"expected a visitor function");for(var r=0;r<e.nodes.length;r++){i.visit(e.nodes[r],t)}return e};i.addOpen=function(e,t,r,n){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");if(typeof r==="function"){n=r;r=""}if(typeof n==="function"&&!n(e))return;var s=new t({type:e.type+".open",val:r});var o=e.unshift||e.unshiftNode;if(typeof o==="function"){o.call(e,s)}else{i.unshiftNode(e,s)}return s};i.addClose=function(e,t,r,n){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");if(typeof r==="function"){n=r;r=""}if(typeof n==="function"&&!n(e))return;var s=new t({type:e.type+".close",val:r});var o=e.push||e.pushNode;if(typeof o==="function"){o.call(e,s)}else{i.pushNode(e,s)}return s};i.wrapNodes=function(e,t,r){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");i.addOpen(e,t,r);i.addClose(e,t,r);return e};i.pushNode=function(e,t){assert(i.isNode(e),"expected parent node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");t.define("parent",e);e.nodes=e.nodes||[];e.nodes.push(t);return t};i.unshiftNode=function(e,t){assert(i.isNode(e),"expected parent node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");t.define("parent",e);e.nodes=e.nodes||[];e.nodes.unshift(t)};i.popNode=function(e){assert(i.isNode(e),"expected node to be an instance of Node");if(typeof e.pop==="function"){return e.pop()}return e.nodes&&e.nodes.pop()};i.shiftNode=function(e){assert(i.isNode(e),"expected node to be an instance of Node");if(typeof e.shift==="function"){return e.shift()}return e.nodes&&e.nodes.shift()};i.removeNode=function(e,t){assert(i.isNode(e),"expected parent.node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");if(!e.nodes){return null}if(typeof e.remove==="function"){return e.remove(t)}var r=e.nodes.indexOf(t);if(r!==-1){return e.nodes.splice(r,1)}};i.isType=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");switch(n(t)){case"array":var r=t.slice();for(var s=0;s<r.length;s++){if(i.isType(e,r[s])){return true}}return false;case"string":return e.type===t;case"regexp":return t.test(e.type);default:{throw new TypeError('expected "type" to be an array, string or regexp')}}};i.hasType=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");if(!Array.isArray(e.nodes))return false;for(var r=0;r<e.nodes.length;r++){if(i.isType(e.nodes[r],t)){return true}}return false};i.firstOfType=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(i.isType(n,t)){return n}}};i.findNode=function(e,t){if(!Array.isArray(e)){return null}if(typeof t==="number"){return e[t]}return i.firstOfType(e,t)};i.isOpen=function(e){assert(i.isNode(e),"expected node to be an instance of Node");return e.type.slice(-5)===".open"};i.isClose=function(e){assert(i.isNode(e),"expected node to be an instance of Node");return e.type.slice(-6)===".close"};i.hasOpen=function(e){assert(i.isNode(e),"expected node to be an instance of Node");var t=e.first||e.nodes?e.nodes[0]:null;if(i.isNode(t)){return t.type===e.type+".open"}return false};i.hasClose=function(e){assert(i.isNode(e),"expected node to be an instance of Node");var t=e.last||e.nodes?e.nodes[e.nodes.length-1]:null;if(i.isNode(t)){return t.type===e.type+".close"}return false};i.hasOpenAndClose=function(e){return i.hasOpen(e)&&i.hasClose(e)};i.addType=function(e,t){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");var r=t.parent?t.parent.type:t.type.replace(/\.open$/,"");if(!e.hasOwnProperty("inside")){e.inside={}}if(!e.inside.hasOwnProperty(r)){e.inside[r]=[]}var n=e.inside[r];n.push(t);return n};i.removeType=function(e,t){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");var r=t.parent?t.parent.type:t.type.replace(/\.close$/,"");if(e.inside.hasOwnProperty(r)){return e.inside[r].pop()}};i.isEmpty=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");if(!Array.isArray(e.nodes)){if(e.type!=="text"){return true}if(typeof t==="function"){return t(e,e.parent)}return!i.trim(e.val)}for(var r=0;r<e.nodes.length;r++){var n=e.nodes[r];if(i.isOpen(n)||i.isClose(n)){continue}if(!i.isEmpty(n,t)){return false}}return true};i.isInsideType=function(e,t){assert(isObject(e),"expected state to be an object");assert(isString(t),"expected type to be a string");if(!e.hasOwnProperty("inside")){return false}if(!e.inside.hasOwnProperty(t)){return false}return e.inside[t].length>0};i.isInside=function(e,t,r){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");if(Array.isArray(r)){for(var s=0;s<r.length;s++){if(i.isInside(e,t,r[s])){return true}}return false}var o=t.parent;if(typeof r==="string"){return o&&o.type===r||i.isInsideType(e,r)}if(n(r)==="regexp"){if(o&&o.type&&r.test(o.type)){return true}var a=Object.keys(e.inside);var c=a.length;var u=-1;while(++u<c){var l=a[u];var f=e.inside[l];if(Array.isArray(f)&&f.length!==0&&r.test(l)){return true}}}return false};i.last=function(e,t){return e[e.length-(t||1)]};i.arrayify=function(e){if(typeof e==="string"&&e!==""){return[e]}if(!Array.isArray(e)){return[]}return e};i.stringify=function(e){return i.arrayify(e).join(",")};i.trim=function(e){return typeof e==="string"?e.trim():""};function isObject(e){return n(e)==="object"}function isString(e){return typeof e==="string"}function isFunction(e){return typeof e==="function"}function isArray(e){return Array.isArray(e)}function append(e,t,r){if(typeof e.append!=="function"){return e.emit(t,r)}return e.append(t,r)}function assert(e,t){if(!e)throw new Error(t)}},1769:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},5563:(e,t,r)=>{var n=r(1769);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},4253:(e,t,r)=>{"use strict";var n=r(2568);var i=r(3018);var s=r(9788);var o=r(1036);var a=r(3331);var c={};var u={};function Snapdragon(e){n.call(this,null,e);this.options=a.extend({source:"string"},this.options);this.compiler=new s(this.options);this.parser=new o(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}})}n.extend(Snapdragon);Snapdragon.prototype.capture=function(){return this.parser.capture.apply(this.parser,arguments)};Snapdragon.prototype.use=function(e){e.call(this,this);return this};Snapdragon.prototype.parse=function(e,t){this.options=a.extend({},this.options,t);var r=this.parser.parse(e,this.options);i(r,"parser",this.parser);return r};Snapdragon.prototype.compile=function(e,t){this.options=a.extend({},this.options,t);var r=this.compiler.compile(e,this.options);i(r,"compiler",this.compiler);return r};e.exports=Snapdragon;e.exports.Compiler=s;e.exports.Parser=o},9788:(e,t,r)=>{"use strict";var n=r(4687);var i=r(3018);var s=r(4950)("snapdragon:compiler");var o=r(3331);function Compiler(e,t){s("initializing",__filename);this.options=o.extend({source:"string"},e);this.state=t||{};this.compilers={};this.output="";this.set("eos",function(e){return this.emit(e.val,e)});this.set("noop",function(e){return this.emit(e.val,e)});this.set("bos",function(e){return this.emit(e.val,e)});n(this)}Compiler.prototype={error:function(e,t){var r=t.position||{start:{column:0}};var n=this.options.source+" column:"+r.start.column+": "+e;var i=new Error(n);i.reason=e;i.column=r.start.column;i.source=this.pattern;if(this.options.silent){this.errors.push(i)}else{throw i}},define:function(e,t){i(this,e,t);return this},emit:function(e,t){this.output+=e;return e},set:function(e,t){this.compilers[e]=t;return this},get:function(e){return this.compilers[e]},prev:function(e){return this.ast.nodes[this.idx-(e||1)]||{type:"bos",val:""}},next:function(e){return this.ast.nodes[this.idx+(e||1)]||{type:"eos",val:""}},visit:function(e,t,r){var n=this.compilers[e.type];this.idx=r;if(typeof n!=="function"){throw this.error('compiler "'+e.type+'" is not registered',e)}return n.call(this,e,t,r)},mapVisit:function(e){if(!Array.isArray(e)){throw new TypeError("expected an array")}var t=e.length;var r=-1;while(++r<t){this.visit(e[r],e,r)}return this},compile:function(e,t){var n=o.extend({},this.options,t);this.ast=e;this.parsingErrors=this.ast.errors;this.output="";if(n.sourcemap){var i=r(2951);i(this);this.mapVisit(this.ast.nodes);this.applySourceMaps();this.map=n.sourcemap==="generator"?this.map:this.map.toJSON();return this}this.mapVisit(this.ast.nodes);return this}};e.exports=Compiler},1036:(e,t,r)=>{"use strict";var n=r(4687);var i=r(1669);var s=r(2219);var o=r(3018);var a=r(4950)("snapdragon:parser");var c=r(9516);var u=r(3331);function Parser(e){a("initializing",__filename);this.options=u.extend({source:"string"},e);this.init(this.options);n(this)}Parser.prototype={constructor:Parser,init:function(e){this.orig="";this.input="";this.parsed="";this.column=1;this.line=1;this.regex=new s;this.errors=this.errors||[];this.parsers=this.parsers||{};this.types=this.types||[];this.sets=this.sets||{};this.fns=this.fns||[];this.currentType="root";var t=this.position();this.bos=t({type:"bos",val:""});this.ast={type:"root",errors:this.errors,nodes:[this.bos]};o(this.bos,"parent",this.ast);this.nodes=[this.ast];this.count=0;this.setCount=0;this.stack=[]},error:function(e,t){var r=t.position||{start:{column:0,line:0}};var n=r.start.line;var i=r.start.column;var s=this.options.source;var o=s+" <line:"+n+" column:"+i+">: "+e;var a=new Error(o);a.source=s;a.reason=e;a.pos=r;if(this.options.silent){this.errors.push(a)}else{throw a}},define:function(e,t){o(this,e,t);return this},position:function(){var e={line:this.line,column:this.column};var t=this;return function(r){o(r,"position",new c(e,t));return r}},set:function(e,t){if(this.types.indexOf(e)===-1){this.types.push(e)}this.parsers[e]=t.bind(this);return this},get:function(e){return this.parsers[e]},push:function(e,t){this.sets[e]=this.sets[e]||[];this.count++;this.stack.push(t);return this.sets[e].push(t)},pop:function(e){this.sets[e]=this.sets[e]||[];this.count--;this.stack.pop();return this.sets[e].pop()},isInside:function(e){this.sets[e]=this.sets[e]||[];return this.sets[e].length>0},isType:function(e,t){return e&&e.type===t},prev:function(e){return this.stack.length>0?u.last(this.stack,e):u.last(this.nodes,e)},consume:function(e){this.input=this.input.substr(e)},updatePosition:function(e,t){var r=e.match(/\n/g);if(r)this.line+=r.length;var n=e.lastIndexOf("\n");this.column=~n?t-n:this.column+t;this.parsed+=e;this.consume(t)},match:function(e){var t=e.exec(this.input);if(t){this.updatePosition(t[0],t[0].length);return t}},capture:function(e,t){if(typeof t==="function"){return this.set.apply(this,arguments)}this.regex.set(e,t);this.set(e,function(){var r=this.parsed;var n=this.position();var i=this.match(t);if(!i||!i[0])return;var s=this.prev();var a=n({type:e,val:i[0],parsed:r,rest:this.input});if(i[1]){a.inner=i[1]}o(a,"inside",this.stack.length>0);o(a,"parent",s);s.nodes.push(a)}.bind(this));return this},capturePair:function(e,t,r,n){this.sets[e]=this.sets[e]||[];this.set(e+".open",function(){var r=this.parsed;var i=this.position();var s=this.match(t);if(!s||!s[0])return;var a=s[0];this.setCount++;this.specialChars=true;var c=i({type:e+".open",val:a,rest:this.input});if(typeof s[1]!=="undefined"){c.inner=s[1]}var u=this.prev();var l=i({type:e,nodes:[c]});o(l,"rest",this.input);o(l,"parsed",r);o(l,"prefix",s[1]);o(l,"parent",u);o(c,"parent",l);if(typeof n==="function"){n.call(this,c,l)}this.push(e,l);u.nodes.push(l)});this.set(e+".close",function(){var t=this.position();var n=this.match(r);if(!n||!n[0])return;var i=this.pop(e);var s=t({type:e+".close",rest:this.input,suffix:n[1],val:n[0]});if(!this.isType(i,e)){if(this.options.strict){throw new Error('missing opening "'+e+'"')}this.setCount--;s.escaped=true;return s}if(s.suffix==="\\"){i.escaped=true;s.escaped=true}i.nodes.push(s);o(s,"parent",i)});return this},eos:function(){var e=this.position();if(this.input)return;var t=this.prev();while(t.type!=="root"&&!t.visited){if(this.options.strict===true){throw new SyntaxError("invalid syntax:"+i.inspect(t,null,2))}if(!hasDelims(t)){t.parent.escaped=true;t.escaped=true}visit(t,function(e){if(!hasDelims(e.parent)){e.parent.escaped=true;e.escaped=true}});t=t.parent}var r=e({type:"eos",val:this.append||""});o(r,"parent",this.ast);return r},next:function(){var e=this.parsed;var t=this.types.length;var r=-1;var n;while(++r<t){if(n=this.parsers[this.types[r]].call(this)){o(n,"rest",this.input);o(n,"parsed",e);this.last=n;return n}}},parse:function(e){if(typeof e!=="string"){throw new TypeError("expected a string")}this.init(this.options);this.orig=e;this.input=e;var t=this;function parse(){e=t.input;var r=t.next();if(r){var n=t.prev();if(n){o(r,"parent",n);if(n.nodes){n.nodes.push(r)}}if(t.sets.hasOwnProperty(n.type)){t.currentType=n.type}}if(t.input&&e===t.input){throw new Error('no parsers registered for: "'+t.input.slice(0,5)+'"')}}while(this.input)parse();if(this.stack.length&&this.options.strict){var r=this.stack.pop();throw this.error("missing opening "+r.type+': "'+this.orig+'"')}var n=this.eos();var i=this.prev();if(i.type!=="eos"){this.ast.nodes.push(n)}return this.ast}};function visit(e,t){if(!e.visited){o(e,"visited",true);return e.nodes?mapVisit(e.nodes,t):t(e)}return e}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}function hasOpen(e){return e.nodes&&e.nodes[0].type===e.type+".open"}function hasClose(e){return e.nodes&&u.last(e.nodes).type===e.type+".close"}function hasDelims(e){return hasOpen(e)&&hasClose(e)}e.exports=Parser},9516:(e,t,r)=>{"use strict";var n=r(3018);e.exports=function Position(e,t){this.start=e;this.end={line:t.line,column:t.column};n(this,"content",t.orig);n(this,"source",t.options.source)}},2951:(e,t,r)=>{"use strict";var n=r(5747);var i=r(5622);var s=r(3018);var o=r(3331);e.exports=mixin;function mixin(e){s(e,"_comment",e.comment);e.map=new o.SourceMap.SourceMapGenerator;e.position={line:1,column:1};e.content={};e.files={};for(var r in t){s(e,r,t[r])}}t.updatePosition=function(e){var t=e.match(/\n/g);if(t)this.position.line+=t.length;var r=e.lastIndexOf("\n");this.position.column=~r?e.length-r:this.position.column+e.length};t.emit=function(e,t){var r=t.position||{};var n=r.source;if(n){if(r.filepath){n=o.unixify(r.filepath)}this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:r.start.line,column:r.start.column-1}});if(r.content){this.addContent(n,r)}if(r.filepath){this.addFile(n,r)}this.updatePosition(e);this.output+=e}return e};t.addFile=function(e,t){if(typeof t.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.files,e))return;this.files[e]=t.content};t.addContent=function(e,t){if(typeof t.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.content,e))return;this.map.setSourceContent(e,t.content)};t.applySourceMaps=function(){Object.keys(this.files).forEach(function(e){var t=this.files[e];this.map.setSourceContent(e,t);if(this.options.inputSourcemaps===true){var r=o.sourceMapResolve.resolveSync(t,e,n.readFileSync);if(r){var s=new o.SourceMap.SourceMapConsumer(r.map);var a=r.sourcesRelativeTo;this.map.applySourceMap(s,e,o.unixify(i.dirname(a)))}}},this)};t.comment=function(e){if(/^# sourceMappingURL=/.test(e.comment)){return this.emit("",e.position)}return this._comment(e)}},3331:(e,t,r)=>{"use strict";t.extend=r(2533);t.SourceMap=r(1290);t.sourceMapResolve=r(5561);t.unixify=function(e){return e.split(/\\+/).join("/")};t.isString=function(e){return e&&typeof e==="string"};t.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};t.last=function(e,t){return e[e.length-(t||1)]}},9969:(e,t,r)=>{t=e.exports=r(8971);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.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+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){s=i}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},8971:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(3828);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var s=new Array(arguments.length);for(var o=0;o<s.length;o++){s[o]=arguments[o]}s[0]=t.coerce(s[0]);if("string"!==typeof s[0]){s.unshift("%O")}var a=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;a++;var i=t.formatters[n];if("function"===typeof i){var o=s[a];r=i.call(e,o);s.splice(a,1);a--}return r});t.formatArgs.call(e,s);var c=debug.log||t.log||console.log.bind(console);c.apply(e,s)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);if("function"===typeof t.init){t.init(debug)}return debug}function enable(e){t.save(e);t.names=[];t.skips=[];var r=(typeof e==="string"?e:"").split(/[\s,]+/);var n=r.length;for(var i=0;i<n;i++){if(!r[i])continue;e=r[i].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}}function disable(){t.enable("")}function enabled(e){var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},4950:(e,t,r)=>{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(9969)}else{e.exports=r(6459)}},6459:(e,t,r)=>{var n=r(3867);var i=r(1669);t=e.exports=r(8971);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var s=parseInt(process.env.DEBUG_FD,10)||2;if(1!==s&&2!==s){i.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 o=1===s?process.stdout:2===s?process.stderr:createWritableStdioStream(s);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(s)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var s=" [3"+i+";1m"+r+" "+"";e[0]=s+e[0].split("\n").join("\n"+s);e.push("[3"+i+"m+"+t.humanize(this.diff)+"")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var s=r(5747);t=new s.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(1631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},3828:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},3781:(e,t,r)=>{var n=r(5480);var i=Object.prototype.hasOwnProperty;var s=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=s?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n<i;n++){r.add(e[n],t)}return r};ArraySet.prototype.size=function ArraySet_size(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,t){var r=s?e:n.toSetString(e);var o=s?this.has(e):i.call(this._set,r);var a=this._array.length;if(!o||t){this._array.push(e)}if(!o){if(s){this._set.set(e,a)}else{this._set[r]=a}}};ArraySet.prototype.has=function ArraySet_has(e){if(s){return this._set.has(e)}else{var t=n.toSetString(e);return i.call(this._set,t)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(s){var t=this._set.get(e);if(t>=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};t.I=ArraySet},2787:(e,t,r)=>{var n=r(2794);var i=5;var s=1<<i;var o=s-1;var a=s;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var r=e>>1;return t?-r:r}t.encode=function base64VLQ_encode(e){var t="";var r;var s=toVLQSigned(e);do{r=s&o;s>>>=i;if(s>0){r|=a}t+=n.encode(r)}while(s>0);return t};t.decode=function base64VLQ_decode(e,t,r){var s=e.length;var c=0;var u=0;var l,f;do{if(t>=s){throw new Error("Expected more digits in base 64 VLQ value.")}f=n.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}l=!!(f&a);f&=o;c=c+(f<<u);u+=i}while(l);r.value=fromVLQSigned(c);r.rest=t}},2794:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length){return r[e]}throw new TypeError("Must be between 0 and 63: "+e)};t.decode=function(e){var t=65;var r=90;var n=97;var i=122;var s=48;var o=57;var a=43;var c=47;var u=26;var l=52;if(t<=e&&e<=r){return e-t}if(n<=e&&e<=i){return e-n+u}if(s<=e&&e<=o){return e-s+l}if(e==a){return 62}if(e==c){return 63}return-1}},796:(e,t)=>{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,r,n,i,s,o){var a=Math.floor((r-e)/2)+e;var c=s(n,i[a],true);if(c===0){return a}else if(c>0){if(r-a>1){return recursiveSearch(a,r,n,i,s,o)}if(o==t.LEAST_UPPER_BOUND){return r<i.length?r:-1}else{return a}}else{if(a-e>1){return recursiveSearch(e,a,n,i,s,o)}if(o==t.LEAST_UPPER_BOUND){return a}else{return e<0?-1:e}}}t.search=function search(e,r,n,i){if(r.length===0){return-1}var s=recursiveSearch(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(s<0){return-1}while(s-1>=0){if(n(r[s],r[s-1],true)!==0){break}--s}return s}},6044:(e,t,r)=>{var n=r(5480);function generatedPositionAfter(e,t){var r=e.generatedLine;var i=t.generatedLine;var s=e.generatedColumn;var o=t.generatedColumn;return i>r||i==r&&o>=s||n.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},2896:(e,t)=>{function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,r,n){if(r<n){var i=randomIntInRange(r,n);var s=r-1;swap(e,i,n);var o=e[n];for(var a=r;a<n;a++){if(t(e[a],o)<=0){s+=1;swap(e,s,a)}}swap(e,s+1,a);var c=s+1;doQuickSort(e,t,r,c-1);doQuickSort(e,t,c+1,n)}}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},2421:(e,t,r)=>{var n;var i=r(5480);var s=r(796);var o=r(3781).I;var a=r(2787);var c=r(2896).U;function SourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}return t.sections!=null?new IndexedSourceMapConsumer(t):new BasicSourceMapConsumer(t)}SourceMapConsumer.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)};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(e,t){var r=e.charAt(t);return r===";"||r===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){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(e,t,r){var n=t||null;var s=r||SourceMapConsumer.GENERATED_ORDER;var o;switch(s){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);if(t!=null&&a!=null){t=i.join(a,t)}return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,n)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=i.getArg(e,"line");var r={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};if(this.sourceRoot!=null){r.source=i.relative(this.sourceRoot,r.source)}if(!this._sources.has(r.source)){return[]}r.source=this._sources.indexOf(r.source);var n=[];var o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===undefined){var c=a.originalLine;while(a&&a.originalLine===c){n.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}else{var u=a.originalColumn;while(a&&a.originalLine===t&&a.originalColumn==u){n.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}}return n};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=i.getArg(t,"version");var n=i.getArg(t,"sources");var s=i.getArg(t,"names",[]);var a=i.getArg(t,"sourceRoot",null);var c=i.getArg(t,"sourcesContent",null);var u=i.getArg(t,"mappings");var l=i.getArg(t,"file",null);if(r!=this._version){throw new Error("Unsupported version: "+r)}n=n.map(String).map(i.normalize).map(function(e){return a&&i.isAbsolute(a)&&i.isAbsolute(e)?i.relative(a,e):e});this._names=o.fromArray(s.map(String),true);this._sources=o.fromArray(n,true);this.sourceRoot=a;this.sourcesContent=c;this._mappings=u;this.file=l}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(e){var t=Object.create(BasicSourceMapConsumer.prototype);var r=t._names=o.fromArray(e._names.toArray(),true);var n=t._sources=o.fromArray(e._sources.toArray(),true);t.sourceRoot=e._sourceRoot;t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot);t.file=e._file;var s=e._mappings.toArray().slice();var a=t.__generatedMappings=[];var u=t.__originalMappings=[];for(var l=0,f=s.length;l<f;l++){var h=s[l];var p=new Mapping;p.generatedLine=h.generatedLine;p.generatedColumn=h.generatedColumn;if(h.source){p.source=n.indexOf(h.source);p.originalLine=h.originalLine;p.originalColumn=h.originalColumn;if(h.name){p.name=r.indexOf(h.name)}u.push(p)}a.push(p)}c(t.__originalMappings,i.compareByOriginalPositions);return t};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot!=null?i.join(this.sourceRoot,e):e},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(e,t){var r=1;var n=0;var s=0;var o=0;var u=0;var l=0;var f=e.length;var h=0;var p={};var d={};var m=[];var y=[];var v,g,b,w,S;while(h<f){if(e.charAt(h)===";"){r++;h++;n=0}else if(e.charAt(h)===","){h++}else{v=new Mapping;v.generatedLine=r;for(w=h;w<f;w++){if(this._charIsMappingSeparator(e,w)){break}}g=e.slice(h,w);b=p[g];if(b){h+=g.length}else{b=[];while(h<w){a.decode(e,h,d);S=d.value;h=d.rest;b.push(S)}if(b.length===2){throw new Error("Found a source, but no line and column")}if(b.length===3){throw new Error("Found a source and line, but no column")}p[g]=b}v.generatedColumn=n+b[0];n=v.generatedColumn;if(b.length>1){v.source=u+b[1];u+=b[1];v.originalLine=s+b[2];s=v.originalLine;v.originalLine+=1;v.originalColumn=o+b[3];o=v.originalColumn;if(b.length>4){v.name=l+b[4];l+=b[4]}}y.push(v);if(typeof v.originalLine==="number"){m.push(v)}}}c(y,i.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;c(m,i.compareByOriginalPositions);this.__originalMappings=m};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,r,n,i,o){if(e[r]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[r])}if(e[n]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[n])}return s.search(e,t,i,o)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var s=i.getArg(n,"source",null);if(s!==null){s=this._sources.at(s);if(this.sourceRoot!=null){s=i.join(this.sourceRoot,s)}}var o=i.getArg(n,"name",null);if(o!==null){o=this._names.at(o)}return{source:s,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:o}}}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(e){return e==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){e=i.relative(this.sourceRoot,e)}if(this._sources.has(e)){return this.sourcesContent[this._sources.indexOf(e)]}var r;if(this.sourceRoot!=null&&(r=i.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(n)){return this.sourcesContent[this._sources.indexOf(n)]}if((!r.path||r.path=="/")&&this._sources.has("/"+e)){return this.sourcesContent[this._sources.indexOf("/"+e)]}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=i.getArg(e,"source");if(this.sourceRoot!=null){t=i.relative(this.sourceRoot,t)}if(!this._sources.has(t)){return{line:null,column:null,lastColumn:null}}t=this._sources.indexOf(t);var r={source:t,originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};var n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source){return{line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};n=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=i.getArg(t,"version");var n=i.getArg(t,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new o;this._names=new o;var s={line:-1,column:0};this._sections=n.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var t=i.getArg(e,"offset");var r=i.getArg(t,"line");var n=i.getArg(t,"column");if(r<s.line||r===s.line&&n<s.column){throw new Error("Section offsets must be ordered and non-overlapping.")}s=t;return{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new SourceMapConsumer(i.getArg(e,"map"))}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var r=0;r<this._sections[t].consumer.sources.length;r++){e.push(this._sections[t].consumer.sources[r])}}return e}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=s.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;if(r){return r}return e.generatedColumn-t.generatedOffset.generatedColumn});var n=this._sections[r];if(!n){return{source:null,line:null,column:null,name:null}}return n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var i=n.consumer.sourceContentFor(e,true);if(i){return i}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer.sources.indexOf(i.getArg(e,"source"))===-1){continue}var n=r.consumer.generatedPositionFor(e);if(n){var s={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return s}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(e,t){this.__generatedMappings=[];this.__originalMappings=[];for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var s=n.consumer._generatedMappings;for(var o=0;o<s.length;o++){var a=s[o];var u=n.consumer._sources.at(a.source);if(n.consumer.sourceRoot!==null){u=i.join(n.consumer.sourceRoot,u)}this._sources.add(u);u=this._sources.indexOf(u);var l=n.consumer._names.at(a.name);this._names.add(l);l=this._names.indexOf(l);var f={source:u,generatedLine:a.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(n.generatedOffset.generatedLine===a.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(f);if(typeof f.originalLine==="number"){this.__originalMappings.push(f)}}}c(this.__generatedMappings,i.compareByGeneratedPositionsDeflated);c(this.__originalMappings,i.compareByOriginalPositions)};n=IndexedSourceMapConsumer},8831:(e,t,r)=>{var n=r(2787);var i=r(5480);var s=r(3781).I;var o=r(6044).H;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new s;this._names=new s;this._mappings=new o;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var r=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){n.source=e.source;if(t!=null){n.source=i.relative(t,n.source)}n.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){n.name=e.name}}r.addMapping(n)});e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){r.setSourceContent(t,n)}});return r};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var r=i.getArg(e,"original",null);var n=i.getArg(e,"source",null);var s=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,r,n,s)}if(n!=null){n=String(n);if(!this._sources.has(n)){this._sources.add(n)}}if(s!=null){s=String(s);if(!this._names.has(s)){this._names.add(s)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:s})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var r=e;if(this._sourceRoot!=null){r=i.relative(this._sourceRoot,r)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(r)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(r)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,r){var n=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}n=e.file}var o=this._sourceRoot;if(o!=null){n=i.relative(o,n)}var a=new s;var c=new s;this._mappings.unsortedForEach(function(t){if(t.source===n&&t.originalLine!=null){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(s.source!=null){t.source=s.source;if(r!=null){t.source=i.join(r,t.source)}if(o!=null){t.source=i.relative(o,t.source)}t.originalLine=s.line;t.originalColumn=s.column;if(s.name!=null){t.name=s.name}}}var u=t.source;if(u!=null&&!a.has(u)){a.add(u)}var l=t.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=a;this._names=c;e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){if(r!=null){t=i.join(r,t)}if(o!=null){t=i.relative(o,t)}this.setSourceContent(t,n)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,r,n){if(t&&typeof t.line!=="number"&&typeof t.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(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var r=0;var s=0;var o=0;var a=0;var c="";var u;var l;var f;var h;var p=this._mappings.toArray();for(var d=0,m=p.length;d<m;d++){l=p[d];u="";if(l.generatedLine!==t){e=0;while(l.generatedLine!==t){u+=";";t++}}else{if(d>0){if(!i.compareByGeneratedPositionsInflated(l,p[d-1])){continue}u+=","}}u+=n.encode(l.generatedColumn-e);e=l.generatedColumn;if(l.source!=null){h=this._sources.indexOf(l.source);u+=n.encode(h-a);a=h;u+=n.encode(l.originalLine-1-s);s=l.originalLine-1;u+=n.encode(l.originalColumn-r);r=l.originalColumn;if(l.name!=null){f=this._names.indexOf(l.name);u+=n.encode(f-o);o=f}}c+=u}return c};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},9004:(e,t,r)=>{var n=r(8831).SourceMapGenerator;var i=r(5480);var s=/(\r?\n)/;var o=10;var a="$$$isSourceNode$$$";function SourceNode(e,t,r,n,i){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=r==null?null:r;this.name=i==null?null:i;this[a]=true;if(n!=null)this.add(n)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,r){var n=new SourceNode;var o=e.split(s);var a=0;var c=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return a<o.length?o[a++]:undefined}};var u=1,l=0;var f=null;t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine){addMappingWithCode(f,c());u++;l=0}else{var t=o[a];var r=t.substr(0,e.generatedColumn-l);o[a]=t.substr(e.generatedColumn-l);l=e.generatedColumn;addMappingWithCode(f,r);f=e;return}}while(u<e.generatedLine){n.add(c());u++}if(l<e.generatedColumn){var t=o[a];n.add(t.substr(0,e.generatedColumn));o[a]=t.substr(e.generatedColumn);l=e.generatedColumn}f=e},this);if(a<o.length){if(f){addMappingWithCode(f,c())}n.add(o.splice(a).join(""))}t.sources.forEach(function(e){var s=t.sourceContentFor(e);if(s!=null){if(r!=null){e=i.join(r,e)}n.setSourceContent(e,s)}});return n;function addMappingWithCode(e,t){if(e===null||e.source===undefined){n.add(t)}else{var s=r?i.join(r,e.source):e.source;n.add(new SourceNode(e.originalLine,e.originalColumn,s,t,e.name))}}};SourceNode.prototype.add=function SourceNode_add(e){if(Array.isArray(e)){e.forEach(function(e){this.add(e)},this)}else if(e[a]||typeof e==="string"){if(e){this.children.push(e)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--){this.prepend(e[t])}}else if(e[a]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var r=0,n=this.children.length;r<n;r++){t=this.children[r];if(t[a]){t.walk(e)}else{if(t!==""){e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(e){var t;var r;var n=this.children.length;if(n>0){t=[];for(r=0;r<n-1;r++){t.push(this.children[r]);t.push(e)}t.push(this.children[r]);this.children=t}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(e,t){var r=this.children[this.children.length-1];if(r[a]){r.replaceRight(e,t)}else if(typeof r==="string"){this.children[this.children.length-1]=r.replace(e,t)}else{this.children.push("".replace(e,t))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(e,t){this.sourceContents[i.toSetString(e)]=t};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(e){for(var t=0,r=this.children.length;t<r;t++){if(this.children[t][a]){this.children[t].walkSourceContents(e)}}var n=Object.keys(this.sourceContents);for(var t=0,r=n.length;t<r;t++){e(i.fromSetString(n[t]),this.sourceContents[n[t]])}};SourceNode.prototype.toString=function SourceNode_toString(){var e="";this.walk(function(t){e+=t});return e};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(e){var t={code:"",line:1,column:0};var r=new n(e);var i=false;var s=null;var a=null;var c=null;var u=null;this.walk(function(e,n){t.code+=e;if(n.source!==null&&n.line!==null&&n.column!==null){if(s!==n.source||a!==n.line||c!==n.column||u!==n.name){r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})}s=n.source;a=n.line;c=n.column;u=n.name;i=true}else if(i){r.addMapping({generated:{line:t.line,column:t.column}});s=null;i=false}for(var l=0,f=e.length;l<f;l++){if(e.charCodeAt(l)===o){t.line++;t.column=0;if(l+1===f){s=null;i=false}else if(i){r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})}}else{t.column++}}});this.walkSourceContents(function(e,t){r.setSourceContent(e,t)});return{code:t.code,map:r}};t.SourceNode=SourceNode},5480:(e,t)=>{function getArg(e,t,r){if(t in e){return e[t]}else if(arguments.length===3){return r}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var n=/^data:.+\,.+$/;function urlParse(e){var t=e.match(r);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var r=e;var n=urlParse(e);if(n){if(!n.path){return e}r=n.path}var i=t.isAbsolute(r);var s=r.split(/\/+/);for(var o,a=0,c=s.length-1;c>=0;c--){o=s[c];if(o==="."){s.splice(c,1)}else if(o===".."){a++}else if(a>0){if(o===""){s.splice(c+1,a);a=0}else{s.splice(c,2);a--}}}r=s.join("/");if(r===""){r=i?"/":"."}if(n){n.path=r;return urlGenerate(n)}return r}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var r=urlParse(t);var i=urlParse(e);if(i){e=i.path||"/"}if(r&&!r.scheme){if(i){r.scheme=i.scheme}return urlGenerate(r)}if(r||t.match(n)){return t}if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var s=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=s;return urlGenerate(i)}return s}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||!!e.match(r)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0){return t}e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++r}return Array(r+1).join("../")+t.substr(e.length+1)}t.relative=relative;var i=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=i?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=i?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var r=t-10;r>=0;r--){if(e.charCodeAt(r)!==36){return false}}return true}function compareByOriginalPositions(e,t,r){var n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0||r){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=e.generatedLine-t.generatedLine;if(n!==0){return n}return e.name-t.name}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0||r){return n}n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return e.name-t.name}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated},1290:(e,t,r)=>{t.SourceMapGenerator=r(8831).SourceMapGenerator;t.SourceMapConsumer=r(2421).SourceMapConsumer;t.SourceNode=r(9004).SourceNode},3737:(e,t,r)=>{var n=r(2800);function customDecodeUriComponent(e){return n(e.replace(/\+/g,"%2B"))}e.exports=customDecodeUriComponent},9522:(e,t,r)=>{var n=r(8835);function resolveUrl(){return Array.prototype.reduce.call(arguments,function(e,t){return n.resolve(e,t)})}e.exports=resolveUrl},5561:(e,t,r)=>{var n=r(3849);var i=r(9522);var s=r(3737);var o=r(2803);var a=r(3248);function callbackAsync(e,t,r){setImmediate(function(){e(t,r)})}function parseMapToJSON(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){e.sourceMapData=t;throw e}}function readSync(e,t,r){var n=s(t);try{return String(e(n))}catch(e){e.sourceMapData=r;throw e}}function resolveSourceMap(e,t,r,n){var i;try{i=resolveSourceMapHelper(e,t)}catch(e){return callbackAsync(n,e)}if(!i||i.map){return callbackAsync(n,null,i)}var o=s(i.url);r(o,function(e,t){if(e){e.sourceMapData=i;return n(e)}i.map=String(t);try{i.map=parseMapToJSON(i.map,i)}catch(e){return n(e)}n(null,i)})}function resolveSourceMapSync(e,t,r){var n=resolveSourceMapHelper(e,t);if(!n||n.map){return n}n.map=readSync(r,n.url,n);n.map=parseMapToJSON(n.map,n);return n}var c=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/;var u=/^(?:application|text)\/json$/;var l="utf-8";function base64ToBuf(e){var t=a(e);var r=t.length;var n=new Uint8Array(r);for(var i=0;i<r;i++){n[i]=t.charCodeAt(i)}return n}function decodeBase64String(e){if(typeof TextDecoder==="undefined"||typeof Uint8Array==="undefined"){return a(e)}var t=base64ToBuf(e);var r=new TextDecoder(l,{fatal:true});return r.decode(t)}function resolveSourceMapHelper(e,t){t=o(t);var r=n.getFrom(e);if(!r){return null}var s=r.match(c);if(s){var a=s[1]||"text/plain";var l=s[2]||"";var f=s[3]||"";var h={sourceMappingURL:r,url:null,sourcesRelativeTo:t,map:f};if(!u.test(a)){var p=new Error("Unuseful data uri mime type: "+a);p.sourceMapData=h;throw p}try{h.map=parseMapToJSON(l===";base64"?decodeBase64String(f):decodeURIComponent(f),h)}catch(p){p.sourceMapData=h;throw p}return h}var d=i(t,r);return{sourceMappingURL:r,url:d,sourcesRelativeTo:d,map:null}}function resolveSources(e,t,r,n,i){if(typeof n==="function"){i=n;n={}}var o=e.sources?e.sources.length:0;var a={sourcesResolved:[],sourcesContent:[]};if(o===0){callbackAsync(i,null,a);return}var c=function(){o--;if(o===0){i(null,a)}};resolveSourcesHelper(e,t,n,function(e,t,n){a.sourcesResolved[n]=e;if(typeof t==="string"){a.sourcesContent[n]=t;callbackAsync(c,null)}else{var i=s(e);r(i,function(e,t){a.sourcesContent[n]=e?e:String(t);c()})}})}function resolveSourcesSync(e,t,r,n){var i={sourcesResolved:[],sourcesContent:[]};if(!e.sources||e.sources.length===0){return i}resolveSourcesHelper(e,t,n,function(e,t,n){i.sourcesResolved[n]=e;if(r!==null){if(typeof t==="string"){i.sourcesContent[n]=t}else{var o=s(e);try{i.sourcesContent[n]=String(r(o))}catch(e){i.sourcesContent[n]=e}}}});return i}var f=/\/?$/;function resolveSourcesHelper(e,t,r,n){r=r||{};t=o(t);var s;var a;var c;for(var u=0,l=e.sources.length;u<l;u++){c=null;if(typeof r.sourceRoot==="string"){c=r.sourceRoot}else if(typeof e.sourceRoot==="string"&&r.sourceRoot!==false){c=e.sourceRoot}if(c===null||c===""){s=i(t,e.sources[u])}else{s=i(t,c.replace(f,"/"),e.sources[u])}a=(e.sourcesContent||[])[u];n(s,a,u)}}function resolve(e,t,r,n,i){if(typeof n==="function"){i=n;n={}}if(e===null){var o=t;var a={sourceMappingURL:null,url:o,sourcesRelativeTo:o,map:null};var c=s(o);r(c,function(e,t){if(e){e.sourceMapData=a;return i(e)}a.map=String(t);try{a.map=parseMapToJSON(a.map,a)}catch(e){return i(e)}_resolveSources(a)})}else{resolveSourceMap(e,t,r,function(e,t){if(e){return i(e)}if(!t){return i(null,null)}_resolveSources(t)})}function _resolveSources(e){resolveSources(e.map,e.sourcesRelativeTo,r,n,function(t,r){if(t){return i(t)}e.sourcesResolved=r.sourcesResolved;e.sourcesContent=r.sourcesContent;i(null,e)})}}function resolveSync(e,t,r,n){var i;if(e===null){var s=t;i={sourceMappingURL:null,url:s,sourcesRelativeTo:s,map:null};i.map=readSync(r,s,i);i.map=parseMapToJSON(i.map,i)}else{i=resolveSourceMapSync(e,t,r);if(!i){return null}}var o=resolveSourcesSync(i.map,i.sourcesRelativeTo,r,n);i.sourcesResolved=o.sourcesResolved;i.sourcesContent=o.sourcesContent;return i}e.exports={resolveSourceMap:resolveSourceMap,resolveSourceMapSync:resolveSourceMapSync,resolveSources:resolveSources,resolveSourcesSync:resolveSourcesSync,resolve:resolve,resolveSync:resolveSync,parseMapToJSON:parseMapToJSON}},3849:function(e){void function(t,r){if(typeof define==="function"&&define.amd){define(r)}else if(true){e.exports=r()}else{}}(this,function(){var e=/[#@] sourceMappingURL=([^\s'"]*)/;var t=RegExp("(?:"+"/\\*"+"(?:\\s*\r?\n(?://)?)?"+"(?:"+e.source+")"+"\\s*"+"\\*/"+"|"+"//(?:"+e.source+")"+")"+"\\s*");return{regex:t,_innerRegex:e,getFrom:function(e){var r=e.match(t);return r?r[1]||r[2]||"":null},existsIn:function(e){return t.test(e)},removeFrom:function(e){return e.replace(t,"")},insertBefore:function(e,r){var n=e.match(t);if(n){return e.slice(0,n.index)+r+e.slice(n.index)}else{return e+r}}}})},4178:(e,t,r)=>{"use strict";var n=r(6616);e.exports=function(e,t,r){if(typeof e!=="string"){throw new TypeError("expected a string")}if(typeof t==="function"){r=t;t=null}if(typeof t==="string"){t={sep:t}}var i=n({sep:"."},t);var s=i.quotes||['"',"'","`"];var o;if(i.brackets===true){o={"<":">","(":")","[":"]","{":"}"}}else if(i.brackets){o=i.brackets}var a=[];var c=[];var u=[""];var l=i.sep;var f=e.length;var h=-1;var p;function expected(){if(o&&c.length){return o[c[c.length-1]]}}while(++h<f){var d=e[h];var m=e[h+1];var y={val:d,idx:h,arr:u,str:e};a.push(y);if(d==="\\"){y.val=keepEscaping(i,e,h)===true?d+m:m;y.escaped=true;if(typeof r==="function"){r(y)}u[u.length-1]+=y.val;h++;continue}if(o&&o[d]){c.push(d);var v=expected();var g=h+1;if(e.indexOf(v,g+1)!==-1){while(c.length&&g<f){var b=e[++g];if(b==="\\"){b++;continue}if(s.indexOf(b)!==-1){g=getClosingQuote(e,b,g+1);continue}v=expected();if(c.length&&e.indexOf(v,g+1)===-1){break}if(o[b]){c.push(b);continue}if(v===b){c.pop()}}}p=g;if(p===-1){u[u.length-1]+=d;continue}d=e.slice(h,p+1);y.val=d;y.idx=h=p}if(s.indexOf(d)!==-1){p=getClosingQuote(e,d,h+1);if(p===-1){u[u.length-1]+=d;continue}if(keepQuotes(d,i)===true){d=e.slice(h,p+1)}else{d=e.slice(h+1,p)}y.val=d;y.idx=h=p}if(typeof r==="function"){r(y,a);d=y.val;h=y.idx}if(y.val===l&&y.split!==false){u.push("");continue}u[u.length-1]+=y.val}return u};function getClosingQuote(e,t,r,n){var i=e.indexOf(t,r);if(e.charAt(i-1)==="\\"){return getClosingQuote(e,t,i+1)}return i}function keepQuotes(e,t){if(t.keepDoubleQuotes===true&&e==='"')return true;if(t.keepSingleQuotes===true&&e==="'")return true;return t.keepQuotes}function keepEscaping(e,t,r){if(typeof e.keepEscaping==="function"){return e.keepEscaping(t,r)}return e.keepEscaping===true||t[r+1]==="\\"}},6616:(e,t,r)=>{"use strict";var n=r(42);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},42:(e,t,r)=>{"use strict";var n=r(9723);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},9723:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},7504:(e,t,r)=>{"use strict";var n=r(858);var i=r(3018);var s=r(1669);function extend(e,t){if(typeof e!=="function"){throw new TypeError("expected Parent to be a function.")}return function(r,o){if(typeof r!=="function"){throw new TypeError("expected Ctor to be a function.")}s.inherits(r,e);n(r,e);if(typeof o==="object"){var a=Object.create(o);for(var c in a){r.prototype[c]=a[c]}}i(r.prototype,"_parent_",{configurable:true,set:function(){},get:function(){return e.prototype}});if(typeof t==="function"){t(r,e)}r.extend=extend(r,t)}}e.exports=extend},328:(e,t,r)=>{"use strict";var n=r(461);e.exports=function toPath(e){if(n(e)!=="arguments"){e=arguments}return filter(e).join(".")};function filter(e){var t=e.length;var r=-1;var i=[];while(++r<t){var s=e[r];if(n(s)==="arguments"||Array.isArray(s)){i.push.apply(i,filter(s))}else if(typeof s==="string"){i.push(s)}}return i}},8229:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},461:(e,t,r)=>{var n=r(8229);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},9649:(e,t,r)=>{"use strict";const{Readable:n}=r(2413);const i=e=>new n({read(){this.push(e);this.push(null)}});e.exports=i;e.exports.default=i},2325:(e,t,r)=>{"use strict";var n=r(8589);var i=r(4914);var s=r(4216);var o=r(466);var a=1024*64;var c={};e.exports=function(e,t){if(!Array.isArray(e)){return makeRe(e,t)}return makeRe(e.join("|"),t)};function makeRe(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected a string")}if(e.length>a){throw new Error("expected pattern to be less than "+a+" characters")}var r=e;if(!t||t&&t.cache!==false){r=createKey(e,t);if(c.hasOwnProperty(r)){return c[r]}}var i=s({},t);if(i.contains===true){if(i.negate===true){i.strictNegate=false}else{i.strict=false}}if(i.strict===false){i.strictOpen=false;i.strictClose=false}var u=i.strictOpen!==false?"^":"";var l=i.strictClose!==false?"$":"";var f=i.flags||"";var h;if(i.nocase===true&&!/i/.test(f)){f+="i"}try{if(i.negate||typeof i.strictNegate==="boolean"){e=o.create(e,i)}var p=u+"(?:"+e+")"+l;h=new RegExp(p,f);if(i.safe===true&&n(h)===false){throw new Error("potentially unsafe regular expression: "+h.source)}}catch(n){if(i.strictErrors===true||i.safe===true){n.key=r;n.pattern=e;n.originalOptions=t;n.createdOptions=i;throw n}try{h=new RegExp("^"+e.replace(/(\W)/g,"\\$1")+"$")}catch(e){h=/.^/}}if(i.cache!==false){memoize(h,r,e,i)}return h}function memoize(e,t,r,n){i(e,"cached",true);i(e,"pattern",r);i(e,"options",n);i(e,"key",t);c[t]=e}function createKey(e,t){if(!t)return e;var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r}e.exports.makeRe=makeRe},4914:(e,t,r)=>{"use strict";var n=r(7328);var i=r(5721);var s=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){s(e,t,r);return e}s(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},4216:(e,t,r)=>{"use strict";var n=r(2368);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},2368:(e,t,r)=>{"use strict";var n=r(2129);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},2129:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},6405:(e,t,r)=>{"use strict";var n=r(7242);var i=r(4954);var s=r(3826);var o=r(4927);e.exports=function unionValue(e,t,r){if(!n(e)){throw new TypeError("union-value expects the first argument to be an object.")}if(typeof t!=="string"){throw new TypeError("union-value expects `prop` to be a string.")}var a=arrayify(s(e,t));o(e,t,i(a,arrayify(r)));return e};function arrayify(e){if(e===null||typeof e==="undefined"){return[]}if(Array.isArray(e)){return e}return[e]}},2281:(e,t,r)=>{"use strict";var n=r(7328);var i=r(6234);e.exports=function unset(e,t){if(!n(e)){throw new TypeError("expected an object.")}if(e.hasOwnProperty(t)){delete e[t];return true}if(i(e,t)){var r=t.split(".");var s=r.pop();while(r.length&&r[r.length-1].slice(-1)==="\\"){s=r.pop().slice(0,-1)+"."+s}while(r.length)e=e[t=r.shift()];return delete e[s]}return true}},6234:(e,t,r)=>{"use strict";var n=r(6100);var i=r(3629);var s=r(3826);e.exports=function(e,t,r){if(n(e)){return i(s(e,t),r)}return i(e,t)}},6100:(e,t,r)=>{"use strict";var n=r(9842);e.exports=function isObject(e){return e!=null&&typeof e==="object"&&n(e)===false}},3629:e=>{"use strict";e.exports=function hasValue(e,t){if(e===null||e===undefined){return false}if(typeof e==="boolean"){return true}if(typeof e==="number"){if(e===0&&t===true){return false}return true}if(e.length!==undefined){return e.length!==0}for(var r in e){if(e.hasOwnProperty(r)){return true}}return false}},5418:(e,t,r)=>{const{URL:n}=r(8835);const{join:i}=r(5622);const s=r(5747);const{promisify:o}=r(1669);const{tmpdir:a}=r(2087);const c=r(2447);const u=o(s.writeFile);const l=o(s.mkdir);const f=o(s.readFile);const h=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const p=e=>encodeURIComponent(e).replace(/^%40/,"@");const d=async(e,t)=>{const r=a();const n=i(r,"update-check");if(!s.existsSync(n)){await l(n)}let o=`${e.name}-${t}.json`;if(e.scope){o=`${e.scope}-${o}`}return i(n,o)};const m=async(e,t,r)=>{if(s.existsSync(e)){const n=await f(e,"utf8");const{lastUpdate:i,latest:s}=JSON.parse(n);const o=i+r;if(o>t){return{shouldCheck:false,latest:s}}}return{shouldCheck:true,latest:null}};const y=async(e,t,r)=>{const n=JSON.stringify({latest:t,lastUpdate:r});await u(e,n,"utf8")};const v=(e,t)=>new Promise((n,i)=>{const s={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){s.headers.authorization=`${t.type} ${t.token}`}const{get:o}=r(e.protocol==="https:"?7211:8605);o(s,e=>{const{statusCode:t}=e;if(t!==200){const r=new Error(`Request failed with code ${t}`);r.code=t;i(r);e.resume();return}let r="";e.setEncoding("utf8");e.on("data",e=>{r+=e});e.on("end",()=>{try{const e=JSON.parse(r);n(e)}catch(e){i(e)}})}).on("error",i).on("timeout",i)});const g=async({full:e,scope:t},i)=>{const s=c(t);const o=new n(e,s);let a=null;try{a=await v(o)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=r(1384);const t=e(s,{recursive:true});a=await v(o,t)}else{throw e}}const u=a["dist-tags"][i];if(!u){throw new Error(`Distribution tag ${i} is not available`)}return u};const b={interval:36e5,distTag:"latest"};const w=e=>{const t={full:p(e)};if(e.includes("/")){const r=e.split("/");t.scope=r[0];t.name=r[1]}else{t.scope=null;t.name=e}return t};e.exports=(async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const r=w(e.name);const n=Date.now();const{distTag:i,interval:s}=Object.assign({},b,t);const o=await d(r,i);let a=null;let c=true;({shouldCheck:c,latest:a}=await m(o,n,s));if(c){a=await g(r,i);await y(o,a,n)}const u=h(e.version,a);if(u===-1){return{latest:a,fromCache:!c}}return null})},2803:(e,t,r)=>{var n=r(5622);"use strict";function urix(e){if(n.sep==="\\"){return e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/")}return e}e.exports=urix},4687:e=>{"use strict";e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var i=r[n];var s=i.length;var o=-1;while(++o<s){t.use(i[o])}return t});function use(t,i,s){var o=1;if(typeof t==="string"||Array.isArray(t)){i=wrap(t,i);o++}else{s=i;i=t}if(typeof i!=="function"){throw new TypeError("expected a function")}var a=this||e;var c=a[n];var u=[].slice.call(arguments,o);u.unshift(a);if(typeof r.hook==="function"){r.hook.apply(a,u)}var l=i.apply(a,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return a}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},5880:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var i=r(7995);var s=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return a(t,r)}if(e===undefined){r.push("name cannot be undefined");return a(t,r)}if(typeof e!=="string"){r.push("name must be a string");return a(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}s.forEach(function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}});i.forEach(function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}});if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var c=o[1];var u=o[2];if(encodeURIComponent(c)===c&&encodeURIComponent(u)===u){return a(t,r)}}r.push("name can only contain URL-friendly characters")}return a(t,r)};o.scopedPackagePattern=n;var a=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},4586:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach(function(e){n[e]=i[e]})}return n}}},1694:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(721);const i=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${r+t}m`});const s=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`});const o=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`});function assembleStyles(){const e=new Map;const t={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],gray:[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]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const r=e=>e;const a=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:i(r,0)};t.color.ansi256={ansi256:s(r,0)};t.color.ansi16m={rgb:o(a,0)};t.bgColor.ansi={ansi:i(r,10)};t.bgColor.ansi256={ansi256:s(r,10)};t.bgColor.ansi16m={rgb:o(a,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=i(r.ansi16,0);t.bgColor.ansi[e]=i(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=s(r.ansi256,0);t.bgColor.ansi256[e]=s(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=o(r.rgb,0);t.bgColor.ansi16m[e]=o(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},6437:(e,t,r)=>{"use strict";const n=r(6003);const i=r(1694);const s=r(8937).stdout;const o=r(6900);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=s?s.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties(()=>{},l);function build(e,t,r){const n=function(){return applyStyle.apply(n,arguments)};n._styles=e;n._empty=t;const i=this;Object.defineProperty(n,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(n,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});n.hasGrey=this.hasGrey||r==="gray"||r==="grey";n.__proto__=f;return n}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports.default=e.exports},6900:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=((e,r)=>{const n=[];const i=[];let s=[];r.replace(t,(t,r,o,a,c,u)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(u)}});i.push(s.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},1817:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const u=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const l=a?(e,t,r,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else n.chown(e,t,r,i)}:(e,t,r,n)=>n;const f=a?(e,t,r)=>{try{return c(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;u(e,t,r)}}:(e,t,r)=>c(e,t,r);const h=process.version;let p=(e,t,r)=>n.readdir(e,t,r);let d=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(h))p=((e,t,r)=>n.readdir(e,r));const m=(e,t,r,i)=>{n[s](e,t,r,l(e,t,r,e=>{i(e&&e.code!=="ENOENT"?e:null)}))};const y=(e,t,r,s,o)=>{if(typeof t==="string")return n.lstat(i.resolve(e,t),(n,i)=>{if(n)return o(n.code!=="ENOENT"?n:null);i.name=t;y(e,i,r,s,o)});if(t.isDirectory()){v(i.resolve(e,t.name),r,s,n=>{if(n)return o(n);const a=i.resolve(e,t.name);m(a,r,s,o)})}else{const n=i.resolve(e,t.name);m(n,r,s,o)}};const v=(e,t,r,n)=>{p(e,{withFileTypes:true},(i,s)=>{if(i){if(i.code==="ENOENT")return n();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return m(e,t,r,n);let o=s.length;let a=null;const c=i=>{if(a)return;if(i)return n(a=i);if(--o===0)return m(e,t,r,n)};s.forEach(n=>y(e,n,t,r,c))})};const g=(e,t,r,s)=>{if(typeof t==="string"){try{const r=n.lstatSync(i.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())b(i.resolve(e,t.name),r,s);f(i.resolve(e,t.name),r,s)};const b=(e,t,r)=>{let n;try{n=d(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return f(e,t,r);else throw n}if(n&&n.length)n.forEach(n=>g(e,n,t,r));return f(e,t,r)};e.exports=v;v.sync=b},2259:(e,t,r)=>{var n=r(4524);var i={};for(var s in n){if(n.hasOwnProperty(s)){i[n[s]]=s}}var o=e.exports={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"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var c;var u;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(i+s)/2;if(s===i){c=0}else if(u<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var i;var s;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var f=function(e){return(u-e)/6/l+1/2};if(l===0){i=s=0}else{s=l/u;t=f(o);r=f(a);n=f(c);if(o===u){i=n-r}else if(a===u){i=1/3+t-n}else if(c===u){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;s=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var s;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var c=comparativeDistance(e,a);if(c<r){r=c;s=o}}}return s};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var s=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var s;var a;var c;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*n-16;a=500*(r-n);c=200*(n-i);return[s,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}i=2*n-s;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=i+(s-i)*6*o}else if(2*o<1){c=s}else if(3*o<2){c=i+(s-i)*(2/3-o)*6}else{c=i}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var s=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;a=(n+r)/2;o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*s);var c=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var s;var o;var a;a=(2-r)*n;s=(2-r)*i;o=r*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var s;var o;var a;var c;if(i>1){r/=i;n/=i}s=Math.floor(6*t);o=1-n;a=6*t-s;if((s&1)!==0){a=1-a}c=r+a*(o-r);var u;var l;var f;switch(s){default:case 6:case 0:u=o;l=c;f=r;break;case 1:u=c;l=o;f=r;break;case 2:u=r;l=o;f=c;break;case 3:u=r;l=c;f=o;break;case 4:u=c;l=r;f=o;break;case 5:u=o;l=r;f=c;break}return[u*255,l*255,f*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;s=500*(t-r);o=200*(r-n);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;s=(t+16)/116;i=r/500+s;o=s-n/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var u=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+n*n);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);s=r*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var s=(t>>2&1)*r*255;return[n,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[n,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map(function(e){return e+e}).join("")}var n=parseInt(r,16);var i=n>>16&255;var s=n>>8&255;var o=n&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var s=Math.min(Math.min(t,r),n);var o=i-s;var a;var c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===t){c=(r-n)/o%6}else if(i===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var c=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}c=(1-r)*n;return[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},721:(e,t,r)=>{var n=r(2259);var i=r(5161);var s={};var o=Object.keys(n);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach(function(r){var n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)})});e.exports=s},5161:(e,t,r)=>{var n=r(2259);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i<r;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var s=Object.keys(n[i]);for(var o=s.length,a=0;a<o;a++){var c=s[a];var u=t[c];if(u.distance===-1){u.distance=t[i].distance+1;u.parent=i;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,s=0;s<i;s++){var o=n[s];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},4524:e=>{"use strict";e.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]}},8138:(e,t,r)=>{var n=r(8614).EventEmitter;var i=r(3129).spawn;var s=r(5622);var o=s.dirname;var a=s.basename;var c=r(5747);r(1669).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var i=new Command(n.shift());if(t){i.description(t);this.executables=true;this._execs[i._name]=true;if(r.isDefault)this.defaultExecutable=i._name}i._noHelp=!!r.noHelp;this.commands.push(i);i.parseExpectedArgs(n);i.parent=this;if(t)return this;return i};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach(function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}});return this};Command.prototype.action=function(e){var t=this;var r=function(r,n){r=r||[];n=n||[];var i=t.parseOptions(n);outputHelpIfNecessary(t,i.unknown);if(i.unknown.length>0){t.unknownOption(i.unknown[0])}if(i.args.length)r=i.args.concat(r);t._args.forEach(function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}});if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var n=this.parent||this;var i=n===this?"*":this._name;n.on("command:"+i,r);if(this._alias)n.on("command:"+this._alias,r);return this};Command.prototype.option=function(e,t,r,n){var i=this,s=new Option(e,t),o=s.name(),a=s.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var c=r;r=function(e,t){var r=c.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!s.bool||s.optional||s.required){if(!s.bool)n=true;if(n!==undefined){i[a]=n;s.defaultValue=n}}this.options.push(s);this.on("option:"+o,function(e){if(e!==null&&r){e=r(e,i[a]===undefined?n:i[a])}if(typeof i[a]==="boolean"||typeof i[a]==="undefined"){if(e==null){i[a]=s.bool?n||true:false}else{i[a]=e}}else if(e!==null){i[a]=e}});return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var i=n.args[0];var s=null;if(i){s=this.commands.filter(function(e){return e.alias()===i})[0]}if(this._execs[i]&&typeof this._execs[i]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(s){r[0]=s._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var u=a(n,s.extname(n))+"-"+t[0];var l;var f=c.realpathSync(n);l=o(f);var h=s.join(l,u);var p=false;if(exists(h+".js")){u=h+".js";p=true}else if(exists(h+".ts")){u=h+".ts";p=true}else if(exists(h)){u=h}t=t.slice(1);var d;if(process.platform!=="win32"){if(p){t.unshift(u);t=(process.execArgv||[]).concat(t);d=i(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{d=i(u,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(u);d=i(process.execPath,t,{stdio:"inherit"})}var m=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];m.forEach(function(e){process.on(e,function(){if(d.killed===false&&d.exitCode===null){d.kill(e)}})});d.on("close",process.exit.bind(process));d.on("error",function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",u)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",u)}process.exit(1)});this.runningCommand=d};Command.prototype.normalize=function(e){var t=[],r,n,i;for(var s=0,o=e.length;s<o;++s){r=e[s];if(s>0){n=this.optionFor(e[s-1])}if(r==="--"){t=t.concat(e.slice(s));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach(function(e){t.push("-"+e)})}else if(/^--/.test(r)&&~(i=r.indexOf("="))){t.push(r.slice(0,i),r.slice(i+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter(function(e){return e.required}).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,i,s;var o=[];for(var a=0;a<r;++a){s=e[a];if(n){t.push(s);continue}if(s==="--"){n=true;continue}i=this.optionFor(s);if(i){if(i.required){s=e[++a];if(s==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),s)}else if(i.optional){s=e[a+1];if(s==null||s[0]==="-"&&s!=="-"){s=null}else{++a}this.emit("option:"+i.name(),s)}else{this.emit("option:"+i.name())}continue}if(s.length>1&&s[0]==="-"){o.push(s);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(s)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,function(){process.stdout.write(e+"\n");process.exit(0)});return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map(function(e){return humanReadableArgName(e)});var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter(function(e){return!e._noHelp}).map(function(e){var t=e._args.map(function(e){return humanReadableArgName(e)}).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]})};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce(function(e,t){return Math.max(e,t[0].length)},0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce(function(e,t){return Math.max(e,t.flags.length)},0)};Command.prototype.largestArgLength=function(){return this._args.reduce(function(e,t){return Math.max(e,t.name.length)},0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map(function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")}).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map(function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r}).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach(function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])});e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var i=["Usage: "+n+" "+this.usage(),""];var s=[];var o=this.commandHelp();if(o)s=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(e).concat(a).concat(s).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce(function(e,t){return e+t[0].toUpperCase()+t.slice(1)})}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(c.statSync(e).isFile()){return true}}catch(e){return false}}},7618:(e,t,r)=>{"use strict";const n=r(3129);const i=r(5025);const s=r(2773);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},2773:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},5025:(e,t,r)=>{"use strict";const n=r(5622);const i=r(7369);const s=r(8838);const o=r(1880);const a=r(2655);const c=r(2879);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const h=i(()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=f.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(h){return e}const t=[e.command].concat(e.args).join(" ");if(u){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},1880:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},2655:(e,t,r)=>{"use strict";const n=r(5747);const i=r(4970);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},8838:(e,t,r)=>{"use strict";const n=r(5622);const i=r(6732);const s=r(4725)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},6748:(e,t,r)=>{"use strict";const n=r(448);const i=r(8614).EventEmitter;const s=r(5747);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const u=Symbol("_autoClose");const l=Symbol("_close");const f=Symbol("_ended");const h=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const m=Symbol("_flush");const y=Symbol("_handleChunk");const v=Symbol("_makeBuf");const g=Symbol("_mode");const b=Symbol("_needDrain");const w=Symbol("_onerror");const S=Symbol("_onopen");const x=Symbol("_onread");const E=Symbol("_onwrite");const _=Symbol("_open");const O=Symbol("_path");const R=Symbol("_pos");const A=Symbol("_queue");const C=Symbol("_read");const P=Symbol("_readSize");const T=Symbol("_reading");const j=Symbol("_remain");const k=Symbol("_size");const N=Symbol("_write");const I=Symbol("_writing");const L=Symbol("_defaultFlag");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[h]=typeof t.fd==="number"?t.fd:null;this[O]=e;this[P]=t.readSize||16*1024*1024;this[T]=false;this[k]=typeof t.size==="number"?t.size:Infinity;this[j]=this[k];this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[h]==="number")this[C]();else this[_]()}get fd(){return this[h]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[_](){s.open(this[O],"r",(e,t)=>this[S](e,t))}[S](e,t){if(e)this[w](e);else{this[h]=t;this.emit("open",t);this[C]()}}[v](){return Buffer.allocUnsafe(Math.min(this[P],this[j]))}[C](){if(!this[T]){this[T]=true;const e=this[v]();if(e.length===0)return process.nextTick(()=>this[x](null,0,e));s.read(this[h],e,0,e.length,null,(e,t,r)=>this[x](e,t,r))}}[x](e,t,r){this[T]=false;if(e)this[w](e);else if(this[y](t,r))this[C]()}[l](){if(this[u]&&typeof this[h]==="number"){s.close(this[h],e=>this.emit("close"));this[h]=null}}[w](e){this[T]=true;this[l]();this.emit("error",e)}[y](e,t){let r=false;this[j]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[j]<=0){r=false;this[l]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[h]==="number")this[C]();break;default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[_](){let e=true;try{this[S](null,s.openSync(this[O],"r"));e=false}finally{if(e)this[l]()}}[C](){let e=true;try{if(!this[T]){this[T]=true;do{const e=this[v]();const t=e.length===0?0:s.readSync(this[h],e,0,e.length,null);if(!this[y](t,e))break}while(true);this[T]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[u]&&typeof this[h]==="number"){try{s.closeSync(this[h])}catch(e){}this[h]=null;this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this[I]=false;this[f]=false;this[b]=false;this[A]=[];this[O]=e;this[h]=typeof t.fd==="number"?t.fd:null;this[g]=t.mode===undefined?438:t.mode;this[R]=typeof t.start==="number"?t.start:null;this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[R]!==null?"r+":"w";this[L]=t.flags===undefined;this[d]=this[L]?r:t.flags;if(this[h]===null)this[_]()}get fd(){return this[h]}get path(){return this[O]}[w](e){this[l]();this[I]=true;this.emit("error",e)}[_](){s.open(this[O],this[d],this[g],(e,t)=>this[S](e,t))}[S](e,t){if(this[L]&&this[d]==="r+"&&e&&e.code==="ENOENT"){this[d]="w";this[_]()}else if(e)this[w](e);else{this[h]=t;this.emit("open",t);this[m]()}}end(e,t){if(e)this.write(e,t);this[f]=true;if(!this[I]&&!this[A].length&&typeof this[h]==="number")this[E](null,0)}write(e,t){if(typeof e==="string")e=new Buffer(e,t);if(this[f]){this.emit("error",new Error("write() after end()"));return false}if(this[h]===null||this[I]||this[A].length){this[A].push(e);this[b]=true;return false}this[I]=true;this[N](e);return true}[N](e){s.write(this[h],e,0,e.length,this[R],(e,t)=>this[E](e,t))}[E](e,t){if(e)this[w](e);else{if(this[R]!==null)this[R]+=t;if(this[A].length)this[m]();else{this[I]=false;if(this[f]&&!this[p]){this[p]=true;this[l]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[m](){if(this[A].length===0){if(this[f])this[E](null,0)}else if(this[A].length===1)this[N](this[A].pop());else{const e=this[A];this[A]=[];D(this[h],e,this[R],(e,t)=>this[E](e,t))}}[l](){if(this[u]&&typeof this[h]==="number"){s.close(this[h],e=>this.emit("close"));this[h]=null}}}class WriteStreamSync extends WriteStream{[_](){let e;try{e=s.openSync(this[O],this[d],this[g])}catch(e){if(this[L]&&this[d]==="r+"&&e&&e.code==="ENOENT"){this[d]="w";return this[_]()}else throw e}this[S](null,e)}[l](){if(this[u]&&typeof this[h]==="number"){try{s.closeSync(this[h])}catch(e){}this[h]=null;this.emit("close")}}[N](e){try{this[E](null,s.writeSync(this[h],e,0,e.length,this[R]))}catch(e){this[E](e,0)}}}const D=(e,t,r,n)=>{const i=(e,r)=>n(e,r,t);const s=new c;s.oncomplete=i;o.writeBuffers(e,t,r,s)};t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},1135:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)})},448:(e,t,r)=>{"use strict";const n=r(8614);const i=r(5831);const s=r(4304).StringDecoder;const o=Symbol("EOF");const a=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const u=Symbol("emittingEnd");const l=Symbol("closed");const f=Symbol("read");const h=Symbol("flush");const p=Symbol("flushChunk");const d=Symbol("encoding");const m=Symbol("decoder");const y=Symbol("flowing");const v=Symbol("paused");const g=Symbol("resume");const b=Symbol("bufferLength");const w=Symbol("bufferPush");const S=Symbol("bufferShift");const x=Symbol("objectMode");const E=Symbol("destroyed");const _=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const O=_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const R=_&&Symbol.iterator||Symbol("iterator not implemented");const A=Buffer.alloc?Buffer:r(3118).Buffer;const C=e=>e==="end"||e==="finish"||e==="prefinish";const P=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const T=e=>!A.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends n{constructor(e){super();this[y]=false;this[v]=false;this.pipes=new i;this.buffer=new i;this[x]=e&&e.objectMode||false;if(this[x])this[d]=null;else this[d]=e&&e.encoding||null;if(this[d]==="buffer")this[d]=null;this[m]=this[d]?new s(this[d]):null;this[o]=false;this[c]=false;this[u]=false;this[l]=false;this.writable=true;this.readable=true;this[b]=0;this[E]=false}get bufferLength(){return this[b]}get encoding(){return this[d]}set encoding(e){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[d]&&e!==this[d]&&(this[m]&&this[m].lastNeed||this[b]))throw new Error("cannot change encoding");if(this[d]!==e){this[m]=e?new s(e):null;if(this.buffer.length)this.buffer=this.buffer.map(e=>this[m].write(e))}this[d]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[x]}set objectMode(e){this[x]=this[x]||!!e}write(e,t,r){if(this[o])throw new Error("write after end");if(this[E]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[x]&&!A.isBuffer(e)){if(T(e))e=A.from(e.buffer,e.byteOffset,e.byteLength);else if(P(e))e=A.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[b]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[x]&&!(t===this[d]&&!this[m].lastNeed)){e=A.from(e,t)}if(A.isBuffer(e)&&this[d])e=this[m].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[w](e),false)}finally{if(this[b]!==0)this.emit("readable");if(r)r()}}read(e){if(this[E])return null;try{if(this[b]===0||e===0||e>this[b])return null;if(this[x])e=null;if(this.buffer.length>1&&!this[x]){if(this.encoding)this.buffer=new i([Array.from(this.buffer).join("")]);else this.buffer=new i([A.concat(Array.from(this.buffer),this[b])])}return this[f](e||null,this.buffer.head.value)}finally{this[a]()}}[f](e,t){if(e===t.length||e===null)this[S]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[b]-=e}this.emit("data",t);if(!this.buffer.length&&!this[o])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[o]=true;this.writable=false;if(this.flowing||!this[v])this[a]();return this}[g](){if(this[E])return;this[v]=false;this[y]=true;this.emit("resume");if(this.buffer.length)this[h]();else if(this[o])this[a]();else this.emit("drain")}resume(){return this[g]()}pause(){this[y]=false;this[v]=true}get destroyed(){return this[E]}get flowing(){return this[y]}get paused(){return this[v]}[w](e){if(this[x])this[b]+=1;else this[b]+=e.length;return this.buffer.push(e)}[S](){if(this.buffer.length){if(this[x])this[b]-=1;else this[b]-=this.buffer.head.value.length}return this.buffer.shift()}[h](){do{}while(this[p](this[S]()));if(!this.buffer.length&&!this[o])this.emit("drain")}[p](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[E])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[g]()};this.pipes.push(n);e.on("drain",n.ondrain);this[g]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[g]();else if(C(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[a](){if(!this[u]&&!this[c]&&!this[E]&&this.buffer.length===0&&this[o]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[l])this.emit("close");this[u]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==E&&this[E])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach(e=>e.dest.write(t)===false&&this.pause())}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[m]){t=this[m].end();if(t){this.pipes.forEach(e=>e.dest.write(t));super.emit("data",t)}}this.pipes.forEach(e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()})}else if(e==="close"){this[l]=true;if(!this[c]&&!this[E])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!C(e))this[a]();else this.removeAllListeners(e)}}collect(){const e=[];e.dataLength=0;this.on("data",t=>{e.push(t);e.dataLength+=t.length});return this.promise().then(()=>e)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[d]?e.join(""):A.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(E,()=>t(new Error("stream destroyed")));this.on("end",()=>e());this.on("error",e=>t(e))})}[O](){const e=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[o])return Promise.resolve({done:true});let t=null;let r=null;const n=e=>{this.removeListener("data",i);this.removeListener("end",s);r(e)};const i=e=>{this.removeListener("error",n);this.removeListener("end",s);this.pause();t({value:e,done:!!this[o]})};const s=()=>{this.removeListener("error",n);this.removeListener("data",i);t({done:true})};const a=()=>n(new Error("stream destroyed"));return new Promise((e,o)=>{r=o;t=e;this.once(E,a);this.once("error",n);this.once("end",s);this.once("data",i)})};return{next:e}}[R](){const e=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:e}}destroy(e){if(this[E]){if(e)this.emit("error",e);else this.emit(E);return this}this[E]=true;this.buffer=new i;this[b]=0;if(typeof this.close==="function"&&!this[l])this.close();if(e)this.emit("error",e);else this.emit(E);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},3263:(e,t,r)=>{const n=r(8761).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},3808:(e,t,r)=>{"use strict";const n=r(2357);const i=r(4293).Buffer;const s=r(8761);const o=t.constants=r(3263);const a=r(448);const c=i.concat;class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const l=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const h=Symbol("fullFlushFlag");const p=Symbol("handle");const d=Symbol("onError");const m=Symbol("sawError");const y=Symbol("level");const v=Symbol("strategy");const g=Symbol("ended");const b=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[g]=false;this[u]=e;this[l]=e.flush;this[f]=e.finishFlush;try{this[p]=new s[t](e)}catch(e){throw new ZlibError(e)}this[d]=(e=>{this[m]=true;this.close();this.emit("error",e)});this[p].on("error",e=>this[d](new ZlibError(e)));this.once("end",()=>this.close)}close(){if(this[p]){this[p].close();this[p]=null;this.emit("close")}}reset(){if(!this[m]){n(this[p],"zlib binding closed");return this[p].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[h];this.write(Object.assign(i.alloc(0),{[l]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[f]);this[g]=true;return super.end(null,null,r)}get ended(){return this[g]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=i.from(e,t);if(this[m])return;n(this[p],"zlib binding closed");const s=this[p]._handle;const o=s.close;s.close=(()=>{});const a=this[p].close;this[p].close=(()=>{});i.concat=(e=>e);let u;try{const t=typeof e[l]==="number"?e[l]:this[l];u=this[p]._processChunk(e,t);i.concat=c}catch(e){i.concat=c;this[d](new ZlibError(e))}finally{if(this[p]){this[p]._handle=s;s.close=o;this[p].close=a;this[p].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=super.write(i.from(u[0]));for(let e=1;e<u.length;e++){f=super.write(u[e])}}else{f=super.write(i.from(u))}}if(r)r();return f}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[h]=o.Z_FULL_FLUSH;this[y]=e.level;this[v]=e.strategy}params(e,t){if(this[m])return;if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[y]!==e||this[v]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[p],"zlib binding closed");const r=this[p].flush;this[p].flush=((e,t)=>{this.flush(e);t()});try{this[p].params(e,t)}finally{this[p].flush=r}if(this[p]){this[y]=e;this[v]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}class Gzip extends Zlib{constructor(e){super(e,"Gzip")}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[h]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},8828:(e,t,r)=>{var n=r(5622);var i=r(5747);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var a=t.mode;var c=t.fs||i;if(a===undefined){a=s}if(!o)o=null;var u=r||function(){};e=n.resolve(e);c.mkdir(e,a,function(r){if(!r){o=o||e;return u(null,o)}switch(r.code){case"ENOENT":if(n.dirname(e)===e)return u(r);mkdirP(n.dirname(e),t,function(r,n){if(r)u(r,n);else mkdirP(e,t,u,n)});break;default:c.stat(e,function(e,t){if(e||!t.isDirectory())u(r,o);else u(null,o)});break}})}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var a=t.fs||i;if(o===undefined){o=s}if(!r)r=null;e=n.resolve(e);try{a.mkdirSync(e,o);r=r||e}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=a.statSync(e)}catch(e){throw i}if(!c.isDirectory())throw i;break}}return r}},4725:e=>{"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},8887:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find((t,r)=>r>e&&t instanceof DatePart)}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find((e,r)=>r>t&&e instanceof DatePart)}toString(){return String(this.date)}}e.exports=DatePart},1425:(e,t,r)=>{"use strict";const n=r(8887);const i=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+i(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},5662:(e,t,r)=>{"use strict";const n=r(8887);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},3091:(e,t,r)=>{"use strict";e.exports={DatePart:r(8887),Meridiem:r(9110),Day:r(1425),Hours:r(5662),Milliseconds:r(9266),Minutes:r(1560),Month:r(2755),Seconds:r(2666),Year:r(6244)}},9110:(e,t,r)=>{"use strict";const n=r(8887);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},9266:(e,t,r)=>{"use strict";const n=r(8887);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},1560:(e,t,r)=>{"use strict";const n=r(8887);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},2755:(e,t,r)=>{"use strict";const n=r(8887);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},2666:(e,t,r)=>{"use strict";const n=r(8887);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},6244:(e,t,r)=>{"use strict";const n=r(8887);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},2228:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(332),o=s.cursor;const a=r(9389),c=a.style,u=a.clear,l=a.figures,f=a.strip;const h=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const p=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const d=(e,t)=>{const r=e.findIndex(e=>e.value===t||e.title===t);return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:d(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${l.pointerSmall} ${p(this.choices,this.initial)}`:`${l.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=h(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?h(this.choices,this.initial):null}this.fire()}complete(e){var t=this;return _asyncToGenerator(function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map((e,t,r)=>({title:p(r,t),value:h(r,t)})).reduce((e,r)=>{if(e[e.length-1].length<t.limit)e[e.length-1].push(r);else e.push([r]);return e},[[]]);t.isFallback=false;t.completing=false;if(!t.suggestions[t.page])t.page=0;if(!t.suggestions.length&&t.fallback){const e=d(t.choices,t.fallback);t.suggestions=[[]];if(e!==undefined)t.suggestions[0].push({title:p(t.choices,e),value:h(t.choices,e)});t.isFallback=true}const i=Math.max(n.length-1,0);t.moveSelect(Math.min(i,t.select));e&&e()})()}reset(){this.input="";this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()});this.render()}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()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(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()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(o.down(this.lineCount));let e=n.bold(`${c.symbol(this.done,this.aborted)} ${this.msg} `)+`${c.delimiter(this.completing)} `;let t=f(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`,"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=d(this.choices,this.fallback);const r=t!==undefined?p(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=u(e);if(this.lineCount&&!this.done){let e=o.up(this.lineCount);e+=o.left+o.to(t);e+=o.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},4923:(e,t,r)=>{"use strict";const n=r(9439);const i=r(332),s=i.cursor;const o=r(6943);const a=r(9389),c=a.clear,u=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=c("");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(e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true});const t=this.filteredOptions.findIndex(t=>t===e);this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=AutocompleteMultiselectPrompt},2322:(e,t,r)=>{"use strict";const n=r(9439);const i=r(8122);const s=r(9389),o=s.style;const a=r(332),c=a.erase,u=a.cursor;class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(c.line+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},3672:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(9389),o=s.style,a=s.clear,c=s.figures,u=s.strip;const l=r(332),f=l.erase,h=l.cursor;const p=r(3091),d=p.DatePart,m=p.Meridiem,y=p.Day,v=p.Hours,g=p.Milliseconds,b=p.Minutes,w=p.Month,S=p.Seconds,x=p.Year;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 _={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new y(e),3:e=>new w(e),4:e=>new x(e),5:e=>new m(e),6:e=>new v(e),7:e=>new b(e),8:e=>new S(e),9:e=>new g(e)};const O={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 i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(O,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=E.exec(e)){let e=t.shift();let r=t.findIndex(e=>e!=null);this.parts.push(r in _?_[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e},[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof d));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()})()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(e=>e instanceof d));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(f.lines(1));super.render();let e=f.line+(this.lines?f.down(this.lines):"")+h.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce((e,t,r)=>e+`\n${r?` `:c.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t),[]).join("")].join(" ");let i="";if(this.lines){i+=h.up(this.lines);i+=h.left+h.to(u(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},809:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(4305),SelectPrompt:r(7293),TogglePrompt:r(8530),DatePrompt:r(3672),NumberPrompt:r(3016),MultiselectPrompt:r(6943),AutocompletePrompt:r(2228),AutocompleteMultiselectPrompt:r(4923),ConfirmPrompt:r(2322)}},6943:(e,t,r)=>{"use strict";const n=r(9439);const i=r(332),s=i.cursor;const o=r(8122);const a=r(9389),c=a.clear,u=a.figures,l=a.style;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.clear=c("");if(!e.overrideRender){this.render()}}reset(){this.value.map(e=>!e.selected);this.cursor=0;this.fire();this.render()}selected(){return this.value.filter(e=>e.selected)}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter(e=>e.selected);if(this.minSelected&&e.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(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map((e,r)=>this.renderOption(t,e,r));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=MultiselectPrompt},3016:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(332),o=s.cursor,a=s.erase;const c=r(9389),u=c.style,l=c.clear,f=c.figures,h=c.strip;const p=/[0-9]/;const d=e=>e!==undefined;const m=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=u.render(e.style);this.msg=e.message;this.initial=d(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=d(e.min)?e.min:-Infinity;this.max=d(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${m(e,this.round)}`);this._value=m(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||p.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()})()}up(){this.typed=``;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.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)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;super.render();let e=a.line+(this.lines?a.down(this.lines):``)+o.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce((e,t,r)=>e+`\n${r?` `:f.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let s=``;if(this.lines){s+=o.up(this.lines);s+=o.left+o.to(h(i).length)}this.out.write(e+i+t+s)}}e.exports=NumberPrompt},8122:(e,t,r)=>{"use strict";const n=r(1058);const i=r(9389),s=i.action;const o=r(8614);const a=r(332),c=a.beep,u=a.cursor;const l=r(9439);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=(e,t)=>{let r=s(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=(()=>{this.out.write(u.show);this.in.removeListener("keypress",r);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true});this.in.on("keypress",r)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(c)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},7293:(e,t,r)=>{"use strict";const n=r(9439);const i=r(8122);const s=r(9389),o=s.style,a=s.clear,c=s.figures;const u=r(332),l=u.erase,f=u.cursor;class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}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)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(f.hide);else this.out.write(l.lines(this.choices.length+1));super.render();this.out.write([o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(c.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(c.pointer)+" ":" "}return`${i} ${r}`}).join("\n"))}}}e.exports=SelectPrompt},4305:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(332),o=s.cursor;const a=r(9389),c=a.style,u=a.clear,l=a.strip,f=a.figures;class TextPrompt extends i{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}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 e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;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()}render(){if(this.closed)return;super.render();let e=(this.lines?o.down(this.lines):``)+this.clear;this.lines=0;let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce((e,t,r)=>e+=`\n${r?" ":f.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let i=``;if(this.lines){i+=o.up(this.lines);i+=o.left+o.to(l(t).length)}i+=o.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=u(t+r)}}e.exports=TextPrompt},8530:(e,t,r)=>{"use strict";const n=r(9439);const i=r(8122);const s=r(9389),o=s.style,a=s.clear;const c=r(332),u=c.cursor,l=c.erase;class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(l.lines(this.first?1:this.msg.split(/\n/g).length)+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},7221:(e,t,r)=>{"use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))}n.forEach(function(t){_defineProperty(e,t,r[t])})}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(6789);const i=["suggest","format","onState","validate","onRender"];const s=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator(function*(e=[],{onSubmit:t=s,onCancel:r=s}={}){const o={};const a=prompt._override||{};e=[].concat(e);let c,u,l,f,h;const p=function(){var e=_asyncToGenerator(function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,o):t});return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var d=true;var m=false;var y=undefined;try{for(var v=e[Symbol.iterator](),g;!(d=(g=v.next()).done);d=true){u=g.value;var b=u;f=b.name;h=b.type;for(let e in u){if(i.includes(e))continue;let t=u[e];u[e]=typeof t==="function"?yield t(c,_objectSpread({},o),u):t}if(typeof u.message!=="string"){throw new Error("prompt message is required")}var w=u;f=w.name;h=w.type;if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(a[u.name]!==undefined){c=yield p(u,a[u.name]);if(c!==undefined){o[f]=c;continue}}try{c=prompt._injected?getInjectedAnswer(prompt._injected):yield n[h](u);o[f]=c=yield p(u,c,true);l=yield t(u,c,o)}catch(e){l=!(yield r(u,o))}if(l)return o}}catch(e){m=true;y=e}finally{try{if(!d&&v.return!=null){v.return()}}finally{if(m){throw y}}}return o});return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},6789:(e,t,r)=>{"use strict";const n=t;const i=r(809);const s=e=>e;function toPrompt(e,t,r={}){return new Promise((n,o)=>{const a=new i[e](t);const c=r.onAbort||s;const u=r.onSubmit||s;a.on("state",t.onState||s);a.on("submit",e=>n(u(e)));a.on("abort",e=>o(c(e)))})}n.text=(e=>toPrompt("TextPrompt",e));n.password=(e=>{e.style="password";return n.text(e)});n.invisible=(e=>{e.style="invisible";return n.text(e)});n.number=(e=>toPrompt("NumberPrompt",e));n.date=(e=>toPrompt("DatePrompt",e));n.confirm=(e=>toPrompt("ConfirmPrompt",e));n.list=(e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map(e=>e.trim())})});n.toggle=(e=>toPrompt("TogglePrompt",e));n.select=(e=>toPrompt("SelectPrompt",e));n.multiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("MultiselectPrompt",e,{onAbort:t,onSubmit:t})});n.autocompleteMultiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})});const o=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));n.autocomplete=(e=>{e.suggest=e.suggest||o;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)})},753:e=>{"use strict";e.exports=(e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false})},3414:(e,t,r)=>{"use strict";const n=r(991);const i=r(332),s=i.erase,o=i.cursor;const a=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var i=true;var c=false;var u=undefined;try{for(var l=n[Symbol.iterator](),f;!(i=(f=l.next()).done);i=true){let e=f.value;r+=1+Math.floor(Math.max(a(e)-1,0)/t)}}catch(e){c=true;u=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(c){throw u}}}return(s.line+o.prevLine()).repeat(r-1)+s.line+o.to(0)}},5337:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},9389:(e,t,r)=>{"use strict";e.exports={action:r(753),clear:r(3414),style:r(5339),strip:r(991),figures:r(5337)}},991:e=>{"use strict";e.exports=(e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e})},5339:(e,t,r)=>{"use strict";const n=r(9439);const i=r(5337);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const o=e=>s[e]||s.default;const a=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const c=(e,t)=>t?a.aborted:e?a.done:a.default;const u=e=>n.gray(e?i.ellipsis:i.pointerSmall);const l=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:o,symbols:a,symbol:c,delimiter:u,item:l}},7671:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(7221):r(1598)},4124:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find((t,r)=>r>e&&t instanceof DatePart)}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find((e,r)=>r>t&&e instanceof DatePart)}toString(){return String(this.date)}}e.exports=DatePart},6654:(e,t,r)=>{"use strict";const n=r(4124);const i=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+i(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},4345:(e,t,r)=>{"use strict";const n=r(4124);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},2197:(e,t,r)=>{"use strict";e.exports={DatePart:r(4124),Meridiem:r(2481),Day:r(6654),Hours:r(4345),Milliseconds:r(4682),Minutes:r(785),Month:r(9e3),Seconds:r(2175),Year:r(6263)}},2481:(e,t,r)=>{"use strict";const n=r(4124);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},4682:(e,t,r)=>{"use strict";const n=r(4124);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},785:(e,t,r)=>{"use strict";const n=r(4124);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},9000:(e,t,r)=>{"use strict";const n=r(4124);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},2175:(e,t,r)=>{"use strict";const n=r(4124);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},6263:(e,t,r)=>{"use strict";const n=r(4124);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},9962:(e,t,r)=>{"use strict";const n=r(9439);const i=r(7112);const{cursor:s}=r(332);const{style:o,clear:a,figures:c,strip:u}=r(2522);const l=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const f=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const h=(e,t)=>{const r=e.findIndex(e=>e.value===t||e.title===t);return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:h(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${c.pointerSmall} ${f(this.choices,this.initial)}`:`${c.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=o.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=a("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=l(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?l(this.choices,this.initial):null}this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map((e,t,r)=>({title:f(r,t),value:l(r,t)})).reduce((e,t)=>{if(e[e.length-1].length<this.limit)e[e.length-1].push(t);else e.push([t]);return e},[[]]);this.isFallback=false;this.completing=false;if(!this.suggestions[this.page])this.page=0;if(!this.suggestions.length&&this.fallback){const e=h(this.choices,this.fallback);this.suggestions=[[]];if(e!==undefined)this.suggestions[0].push({title:f(this.choices,e),value:l(this.choices,e)});this.isFallback=true}const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()});this.render()}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()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(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()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(s.down(this.lineCount));let e=n.bold(`${o.symbol(this.done,this.aborted)} ${this.msg} `)+`${o.delimiter(this.completing)} `;let t=u(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`,"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=h(this.choices,this.fallback);const r=t!==undefined?f(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=a(e);if(this.lineCount&&!this.done){let e=s.up(this.lineCount);e+=s.left+s.to(t);e+=s.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},8440:(e,t,r)=>{"use strict";const n=r(9439);const{cursor:i}=r(332);const s=r(5790);const{clear:o,style:a,figures:c}=r(2522);class AutocompleteMultiselectPrompt extends s{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");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(e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true});const t=this.filteredOptions.findIndex(t=>t===e);this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${c.arrowUp}/${c.arrowDown}: Highlight option\n ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(c.radioOn):c.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},2209:(e,t,r)=>{const n=r(9439);const i=r(7112);const{style:s}=r(2522);const{erase:o,cursor:a}=r(332);class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(o.line+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},3181:(e,t,r)=>{"use strict";const n=r(9439);const i=r(7112);const{style:s,clear:o,figures:a,strip:c}=r(2522);const{erase:u,cursor:l}=r(332);const{DatePart:f,Meridiem:h,Day:p,Hours:d,Milliseconds:m,Minutes:y,Month:v,Seconds:g,Year:b}=r(2197);const w=/\\(.)|"((?:\\["\\]|[^"])+)"|(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 S={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new p(e),3:e=>new v(e),4:e=>new b(e),5:e=>new h(e),6:e=>new d(e),7:e=>new y(e),8:e=>new g(e),9:e=>new m(e)};const x={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 i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(x,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=w.exec(e)){let e=t.shift();let r=t.findIndex(e=>e!=null);this.parts.push(r in S?S[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e},[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof f));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}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 e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(e=>e instanceof f));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u.lines(1));super.render();let e=u.line+(this.lines?u.down(this.lines):"")+l.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.parts.reduce((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t),[]).join("")].join(" ");let i="";if(this.lines){i+=l.up(this.lines);i+=l.left+l.to(c(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},2474:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(5150),SelectPrompt:r(9178),TogglePrompt:r(2854),DatePrompt:r(3181),NumberPrompt:r(1421),MultiselectPrompt:r(5790),AutocompletePrompt:r(9962),AutocompleteMultiselectPrompt:r(8440),ConfirmPrompt:r(2209)}},5790:(e,t,r)=>{"use strict";const n=r(9439);const{cursor:i}=r(332);const s=r(7112);const{clear:o,figures:a,style:c}=r(2522);class MultiselectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map(e=>!e.selected);this.cursor=0;this.fire();this.render()}selected(){return this.value.filter(e=>e.selected)}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter(e=>e.selected);if(this.minSelected&&e.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(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(a.radioOn):a.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map((e,r)=>this.renderOption(t,e,r));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},1421:(e,t,r)=>{const n=r(9439);const i=r(7112);const{cursor:s,erase:o}=r(332);const{style:a,clear:c,figures:u,strip:l}=r(2522);const f=/[0-9]/;const h=e=>e!==undefined;const p=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=h(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=h(e.min)?e.min:-Infinity;this.max=h(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${p(e,this.round)}`);this._value=p(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||f.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e: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.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)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;super.render();let e=o.line+(this.lines?o.down(this.lines):``)+s.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let c=``;if(this.lines){c+=s.up(this.lines);c+=s.left+s.to(l(i).length)}this.out.write(e+i+t+c)}}e.exports=NumberPrompt},7112:(e,t,r)=>{"use strict";const n=r(1058);const{action:i}=r(2522);const s=r(8614);const{beep:o,cursor:a}=r(332);const c=r(9439);class Prompt extends s{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=(e,t)=>{let r=i(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=(()=>{this.out.write(a.show);this.in.removeListener("keypress",r);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true});this.in.on("keypress",r)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(c);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},9178:(e,t,r)=>{"use strict";const n=r(9439);const i=r(7112);const{style:s,clear:o,figures:a}=r(2522);const{erase:c,cursor:u}=r(332);class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}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)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(c.lines(this.choices.length+1));super.render();this.out.write([s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(a.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(a.pointer)+" ":" "}return`${i} ${r}`}).join("\n"))}}}e.exports=SelectPrompt},5150:(e,t,r)=>{const n=r(9439);const i=r(7112);const{cursor:s}=r(332);const{style:o,clear:a,strip:c,figures:u}=r(2522);class TextPrompt extends i{constructor(e={}){super(e);this.transform=o.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=a(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}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 e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;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(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;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()}render(){if(this.closed)return;super.render();let e=(this.lines?s.down(this.lines):``)+this.clear;this.lines=0;let t=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce((e,t,r)=>e+=`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let i=``;if(this.lines){i+=s.up(this.lines);i+=s.left+s.to(c(t).length)}i+=s.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=a(t+r)}}e.exports=TextPrompt},2854:(e,t,r)=>{const n=r(9439);const i=r(7112);const{style:s,clear:o}=r(2522);const{cursor:a,erase:c}=r(332);class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(c.lines(this.first?1:this.msg.split(/\n/g).length)+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},1598:(e,t,r)=>{"use strict";const n=r(8114);const i=["suggest","format","onState","validate","onRender"];const s=()=>{};async function prompt(e=[],{onSubmit:t=s,onCancel:r=s}={}){const o={};const a=prompt._override||{};e=[].concat(e);let c,u,l,f,h;const p=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,o):t};for(u of e){({name:f,type:h}=u);for(let e in u){if(i.includes(e))continue;let t=u[e];u[e]=typeof t==="function"?await t(c,{...o},u):t}if(typeof u.message!=="string"){throw new Error("prompt message is required")}({name:f,type:h}=u);if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(a[u.name]!==undefined){c=await p(u,a[u.name]);if(c!==undefined){o[f]=c;continue}}try{c=prompt._injected?getInjectedAnswer(prompt._injected):await n[h](u);o[f]=c=await p(u,c,true);l=await t(u,c,o)}catch(e){l=!await r(u,o)}if(l)return o}return o}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},8114:(e,t,r)=>{"use strict";const n=t;const i=r(2474);const s=e=>e;function toPrompt(e,t,r={}){return new Promise((n,o)=>{const a=new i[e](t);const c=r.onAbort||s;const u=r.onSubmit||s;a.on("state",t.onState||s);a.on("submit",e=>n(u(e)));a.on("abort",e=>o(c(e)))})}n.text=(e=>toPrompt("TextPrompt",e));n.password=(e=>{e.style="password";return n.text(e)});n.invisible=(e=>{e.style="invisible";return n.text(e)});n.number=(e=>toPrompt("NumberPrompt",e));n.date=(e=>toPrompt("DatePrompt",e));n.confirm=(e=>toPrompt("ConfirmPrompt",e));n.list=(e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map(e=>e.trim())})});n.toggle=(e=>toPrompt("TogglePrompt",e));n.select=(e=>toPrompt("SelectPrompt",e));n.multiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("MultiselectPrompt",e,{onAbort:t,onSubmit:t})});n.autocompleteMultiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})});const o=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));n.autocomplete=(e=>{e.suggest=e.suggest||o;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)})},5954:e=>{"use strict";e.exports=(e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false})},6805:(e,t,r)=>{"use strict";const n=r(9822);const{erase:i,cursor:s}=r(332);const o=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+s.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(o(e)-1,0)/t)}return(i.line+s.prevLine()).repeat(r-1)+i.line+s.to(0)}},5170:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},2522:(e,t,r)=>{"use strict";e.exports={action:r(5954),clear:r(6805),style:r(7458),strip:r(9822),figures:r(5170)}},9822:e=>{"use strict";e.exports=(e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e})},7458:(e,t,r)=>{"use strict";const n=r(9439);const i=r(5170);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const o=e=>s[e]||s.default;const a=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const c=(e,t)=>t?a.aborted:e?a.done:a.default;const u=e=>n.gray(e?i.ellipsis:i.pointerSmall);const l=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:o,symbols:a,symbol:c,delimiter:u,item:l}},3769:(e,t,r)=>{const n=r(2357);const i=r(5622);const s=r(5747);let o=undefined;try{o=r(3700)}catch(e){}const a={nosort:true,silent:true};let c=0;const u=process.platform==="win32";const l=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const f=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");l(t);let i=0;let s=null;let a=0;const u=e=>{s=s||e;if(--a===0)r(s)};const f=(e,n)=>{if(e)return r(e);a=n.length;if(a===0)return r();n.forEach(e=>{const r=n=>{if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i<t.maxBusyTries){i++;return setTimeout(()=>h(e,t,r),i*100)}if(n.code==="EMFILE"&&c<t.emfileWait){return setTimeout(()=>h(e,t,r),c++)}if(n.code==="ENOENT")n=null}c=0;u(n)};h(e,t,r)})};if(t.disableGlob||!o.hasMagic(e))return f(null,[e]);t.lstat(e,(r,n)=>{if(!r)return f(null,[e]);o(e,t.glob,f)})};const h=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&u)p(e,t,n,r);if(i&&i.isDirectory())return m(e,t,n,r);t.unlink(e,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return u?p(e,t,n,r):m(e,t,n,r);if(n.code==="EISDIR")return m(e,t,n,r)}return r(n)})})};const p=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");if(r)n(r instanceof Error);t.chmod(e,438,n=>{if(n)i(n.code==="ENOENT"?null:r);else t.stat(e,(n,s)=>{if(n)i(n.code==="ENOENT"?null:r);else if(s.isDirectory())m(e,t,r,i);else t.unlink(e,i)})})};const d=(e,t,r)=>{n(e);n(t);if(r)n(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let i;try{i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(i.isDirectory())g(e,t,r);else t.unlinkSync(e)};const m=(e,t,r,i)=>{n(e);n(t);if(r)n(r instanceof Error);n(typeof i==="function");t.rmdir(e,n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))y(e,t,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)})};const y=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.readdir(e,(n,s)=>{if(n)return r(n);let o=s.length;if(o===0)return t.rmdir(e,r);let a;s.forEach(n=>{f(i.join(e,n),t,n=>{if(a)return;if(n)return r(a=n);if(--o===0)t.rmdir(e,r)})})})};const v=(e,t)=>{t=t||{};l(t);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(t,"rimraf: missing options");n.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(n){r=o.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e<r.length;e++){const n=r[e];let i;try{i=t.lstatSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&u)d(n,t,e)}try{if(i&&i.isDirectory())g(n,t,null);else t.unlinkSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return u?d(n,t,e):g(n,t,e);if(e.code!=="EISDIR")throw e;g(n,t,e)}}};const g=(e,t,r)=>{n(e);n(t);if(r)n(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")b(e,t)}};const b=(e,t)=>{n(e);n(t);t.readdirSync(e).forEach(r=>v(i.join(e,r),t));const r=u?100:1;let s=0;do{let n=true;try{const i=t.rmdirSync(e,t);n=false;return i}finally{if(++s<r&&n)continue}}while(true)};e.exports=f;f.sync=v},2879:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=n-6;var a=t.re=[];var c=t.safeRe=[];var u=t.src=[];var l=0;var f="[a-zA-Z0-9-]";var h=[["\\s",1],["\\d",n],[f,o]];function makeSafeRe(e){for(var t=0;t<h.length;t++){var r=h[t][0];var n=h[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}var p=l++;u[p]="0|[1-9]\\d*";var d=l++;u[d]="\\d+";var m=l++;u[m]="\\d*[a-zA-Z-]"+f+"*";var y=l++;u[y]="("+u[p]+")\\."+"("+u[p]+")\\."+"("+u[p]+")";var v=l++;u[v]="("+u[d]+")\\."+"("+u[d]+")\\."+"("+u[d]+")";var g=l++;u[g]="(?:"+u[p]+"|"+u[m]+")";var b=l++;u[b]="(?:"+u[d]+"|"+u[m]+")";var w=l++;u[w]="(?:-("+u[g]+"(?:\\."+u[g]+")*))";var S=l++;u[S]="(?:-?("+u[b]+"(?:\\."+u[b]+")*))";var x=l++;u[x]=f+"+";var E=l++;u[E]="(?:\\+("+u[x]+"(?:\\."+u[x]+")*))";var _=l++;var O="v?"+u[y]+u[w]+"?"+u[E]+"?";u[_]="^"+O+"$";var R="[v=\\s]*"+u[v]+u[S]+"?"+u[E]+"?";var A=l++;u[A]="^"+R+"$";var C=l++;u[C]="((?:<|>)?=?)";var P=l++;u[P]=u[d]+"|x|X|\\*";var T=l++;u[T]=u[p]+"|x|X|\\*";var j=l++;u[j]="[v=\\s]*("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:"+u[w]+")?"+u[E]+"?"+")?)?";var k=l++;u[k]="[v=\\s]*("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:"+u[S]+")?"+u[E]+"?"+")?)?";var N=l++;u[N]="^"+u[C]+"\\s*"+u[j]+"$";var I=l++;u[I]="^"+u[C]+"\\s*"+u[k]+"$";var L=l++;u[L]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var D=l++;u[D]="(?:~>?)";var $=l++;u[$]="(\\s*)"+u[D]+"\\s+";a[$]=new RegExp(u[$],"g");c[$]=new RegExp(makeSafeRe(u[$]),"g");var B="$1~";var F=l++;u[F]="^"+u[D]+u[j]+"$";var M=l++;u[M]="^"+u[D]+u[k]+"$";var G=l++;u[G]="(?:\\^)";var U=l++;u[U]="(\\s*)"+u[G]+"\\s+";a[U]=new RegExp(u[U],"g");c[U]=new RegExp(makeSafeRe(u[U]),"g");var z="$1^";var q=l++;u[q]="^"+u[G]+u[j]+"$";var H=l++;u[H]="^"+u[G]+u[k]+"$";var W=l++;u[W]="^"+u[C]+"\\s*("+R+")$|^$";var V=l++;u[V]="^"+u[C]+"\\s*("+O+")$|^$";var Y=l++;u[Y]="(\\s*)"+u[C]+"\\s*("+R+"|"+u[j]+")";a[Y]=new RegExp(u[Y],"g");c[Y]=new RegExp(makeSafeRe(u[Y]),"g");var Z="$1$2$3";var X=l++;u[X]="^\\s*("+u[j]+")"+"\\s+-\\s+"+"("+u[j]+")"+"\\s*$";var J=l++;u[J]="^\\s*("+u[k]+")"+"\\s+-\\s+"+"("+u[k]+")"+"\\s*$";var Q=l++;u[Q]="(<|>)?=?\\s*\\*";for(var K=0;K<l;K++){r(K,u[K]);if(!a[K]){a[K]=new RegExp(u[K]);c[K]=new RegExp(makeSafeRe(u[K]))}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?c[A]:c[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?c[A]:c[_]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[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(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);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 r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var ee=/^[0-9]+$/;function compareIdentifiers(e,t){var r=ee.test(e);var n=ee.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===te){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var te={};Comparator.prototype.parse=function(e){var t=this.options.loose?c[W]:c[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=te}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===te){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var n=t?c[J]:c[X];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(c[Y],Z);r("comparator trim",e,c[Y]);e=e.replace(c[$],B);e=e.replace(c[U],z);var i=t?c[W]:c[V];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?c[M]:c[F];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?c[H]:c[q];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?c[I]:c[N];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var f=l;if(n==="="&&f){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(c[Q],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,h){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===te){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var h=null;l.forEach(function(e){if(e.semver===te){e=new Comparator(">=0.0.0")}f=f||e;h=h||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,h.semver,n)){h=e}});if(f.operator===a||f.operator===c){return false}if((!h.operator||h.operator===a)&&s(e,h.semver)){return false}else if(h.operator===c&&o(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(c[L]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},8937:(e,t,r)=>{"use strict";const n=r(2087);const i=r(1135);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2127:(e,t,r)=>{"use strict";var n;n=r(6036);n=r(8291);n=r(9650);n=r(8489);n=t.extract=r(7171);r(9698);r(7932);r(2801);r(2946);r(2393);r(3970);r(4065);r(8318)},5104:(e,t,r)=>{"use strict";let n=Buffer;if(!n.alloc){n=r(3118).Buffer}e.exports=n},6036:(e,t,r)=>{"use strict";const n=r(6924);const i=r(9698);const s=r(5747);const o=r(6748);const a=r(9650);const c=r(5622);const u=e.exports=((e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?l(i,t):i.file?f(i,t,r):i.sync?d(i,t):m(i,t)});const l=(e,t)=>{const r=new i.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);h(r,t)};const f=(e,t,r)=>{const n=new i(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)});p(n,t);return r?a.then(r,r):a};const h=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")a({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const p=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(r=>p(e,t));else e.add(r)}e.end()};const d=(e,t)=>{const r=new i.Sync(e);h(r,t);return r};const m=(e,t)=>{const r=new i(e);p(r,t);return r}},7171:(e,t,r)=>{"use strict";const n=r(6924);const i=r(7932);const s=r(5747);const o=r(6748);const a=r(5622);const c=e.exports=((e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)u(i,t);return i.file&&i.sync?l(i):i.file?f(i,r):i.sync?h(i):p(i)});const u=(e,t)=>{const r=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const i=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):i(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&i(e.replace(/\/+$/,"")):e=>i(e.replace(/\/+$/,""))};const l=e=>{const t=new i.Sync(e);const r=e.file;let n=true;let a;const c=s.statSync(r);const u=e.maxReadSize||16*1024*1024;const l=new o.ReadStreamSync(r,{readSize:u,size:c.size});l.pipe(t)};const f=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise((e,t)=>{r.on("error",t);r.on("close",e);s.stat(a,(e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}})});return t?c.then(t,t):c};const h=e=>{return new i.Sync(e)};const p=e=>{return new i(e)}},3970:(e,t,r)=>{"use strict";const n=r(5104);const i=r(8318);const s=r(5622).posix;const o=r(9038);const a=Symbol("slurp");const c=Symbol("type");class Header{constructor(e,t,r,i){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[c]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(n.isBuffer(e))this.decode(e,t||0,r,i);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=l(e,t,100);this.mode=p(e,t+100,8);this.uid=p(e,t+108,8);this.gid=p(e,t+116,8);this.size=p(e,t+124,12);this.mtime=f(e,t+136,12);this.cksum=p(e,t+148,12);this[a](r);this[a](n,true);this[c]=l(e,t+156,1);if(this[c]==="")this[c]="0";if(this[c]==="0"&&this.path.substr(-1)==="/")this[c]="5";if(this[c]==="5")this.size=0;this.linkpath=l(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=l(e,t+265,32);this.gname=l(e,t+297,32);this.devmaj=p(e,t+329,8);this.devmin=p(e,t+337,8);if(e[t+475]!==0){const r=l(e,t+345,155);this.path=r+"/"+this.path}else{const r=l(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=f(e,t+476,12);this.ctime=f(e,t+488,12)}}let i=8*32;for(let r=t;r<t+148;r++){i+=e[r]}for(let r=t+156;r<t+512;r++){i+=e[r]}this.cksumValid=i===this.cksum;if(this.cksum===null&&i===8*32)this.nullBlock=true}[a](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=n.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const i=u(this.path||"",r);const s=i[0];const o=i[1];this.needPax=i[2];this.needPax=E(e,t,100,s)||this.needPax;this.needPax=v(e,t+100,8,this.mode)||this.needPax;this.needPax=v(e,t+108,8,this.uid)||this.needPax;this.needPax=v(e,t+116,8,this.gid)||this.needPax;this.needPax=v(e,t+124,12,this.size)||this.needPax;this.needPax=S(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[c].charCodeAt(0);this.needPax=E(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=E(e,t+265,32,this.uname)||this.needPax;this.needPax=E(e,t+297,32,this.gname)||this.needPax;this.needPax=v(e,t+329,8,this.devmaj)||this.needPax;this.needPax=v(e,t+337,8,this.devmin)||this.needPax;this.needPax=E(e,t+345,r,o)||this.needPax;if(e[t+475]!==0)this.needPax=E(e,t+345,155,o)||this.needPax;else{this.needPax=E(e,t+345,130,o)||this.needPax;this.needPax=S(e,t+476,12,this.atime)||this.needPax;this.needPax=S(e,t+488,12,this.ctime)||this.needPax}let a=8*32;for(let r=t;r<t+148;r++){a+=e[r]}for(let r=t+156;r<t+512;r++){a+=e[r]}this.cksum=a;v(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return i.name.get(this[c])||this[c]}get typeKey(){return this[c]}set type(e){if(i.code.has(e))this[c]=i.code.get(e);else this[c]=e}}const u=(e,t)=>{const r=100;let i=e;let o="";let a;const c=s.parse(e).root||".";if(n.byteLength(i)<r)a=[i,o,false];else{o=s.dirname(i);i=s.basename(i);do{if(n.byteLength(i)<=r&&n.byteLength(o)<=t)a=[i,o,false];else if(n.byteLength(i)>r&&n.byteLength(o)<=t)a=[i.substr(0,r-1),o,true];else{i=s.join(s.basename(o),i);o=s.dirname(o)}}while(o!==c&&!a);if(!a)a=[e.substr(0,r-1),"",true]}return a};const l=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const f=(e,t,r)=>h(p(e,t,r));const h=e=>e===null?null:new Date(e*1e3);const p=(e,t,r)=>e[t]&128?o.parse(e.slice(t,t+r)):m(e,t,r);const d=e=>isNaN(e)?null:e;const m=(e,t,r)=>d(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const y={12:8589934591,8:2097151};const v=(e,t,r,n)=>n===null?false:n>y[r]||n<0?(o.encode(n,e.slice(t,t+r)),true):(g(e,t,r,n),false);const g=(e,t,r,n)=>e.write(b(n,r),t,r,"ascii");const b=(e,t)=>w(Math.floor(e).toString(8),t);const w=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const S=(e,t,r,n)=>n===null?false:v(e,t,r,n.getTime()/1e3);const x=new Array(156).join("\0");const E=(e,t,r,i)=>i===null?false:(e.write(i+x,t,r,"utf8"),i.length!==n.byteLength(i)||i.length>r);e.exports=Header},6924:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=(e=>e?Object.keys(e).map(r=>[t.has(r)?t.get(r):r,e[r]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{})},9038:(e,t)=>{"use strict";const r=t.encode=((e,t)=>{if(!Number.isSafeInteger(e))throw TypeError("cannot encode number outside of javascript safe integer range");else if(e<0)i(e,t);else n(e,t);return t});const n=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const i=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256);if(r)t[n-1]=c(i);else if(i===0)t[n-1]=0;else{r=true;t[n-1]=u(i)}}};const s=t.parse=(e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=a(e.slice(1,e.length));else if(r===255)n=o(e);else throw TypeError("invalid base256 encoding");if(!Number.isSafeInteger(n))throw TypeError("parsed number outside of javascript safe integer range");return n});const o=e=>{var t=e.length;var r=0;var n=false;for(var i=t-1;i>-1;i--){var s=e[i];var o;if(n)o=c(s);else if(s===0)o=s;else{n=true;o=u(s)}if(o!==0)r-=o*Math.pow(256,t-i-1)}return r};const a=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var i=e[n];if(i!==0)r+=i*Math.pow(256,t-n-1)}return r};const c=e=>(255^e)&255;const u=e=>(255^e)+1&255},9650:(e,t,r)=>{"use strict";const n=r(5104);const i=r(6924);const s=r(2801);const o=r(5747);const a=r(6748);const c=r(5622);const u=e.exports=((e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=i(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)f(n,t);if(!n.noResume)l(n);return n.file&&n.sync?h(n):n.file?p(n,r):d(n)});const l=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const f=(e,t)=>{const r=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const i=(e,t)=>{const n=t||c.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):i(c.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&i(e.replace(/\/+$/,"")):e=>i(e.replace(/\/+$/,""))};const h=e=>{const t=d(e);const r=e.file;let i=true;let s;try{const a=o.statSync(r);const c=e.maxReadSize||16*1024*1024;if(a.size<c){t.end(o.readFileSync(r))}else{let e=0;const i=n.allocUnsafe(c);s=o.openSync(r,"r");while(e<a.size){let r=o.readSync(s,i,0,c,e);e+=r;t.write(i.slice(0,r))}t.end()}i=false}finally{if(i&&s)try{o.closeSync(s)}catch(e){}}};const p=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const i=e.file;const c=new Promise((e,t)=>{r.on("error",t);r.on("end",e);o.stat(i,(e,s)=>{if(e)t(e);else{const e=new a.ReadStream(i,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}})});return t?c.then(t,t):c};const d=e=>new s(e)},1017:(e,t,r)=>{"use strict";const n=r(8828);const i=r(5747);const s=r(5622);const o=r(1817);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=((e,t,r)=>{const a=t.umask;const u=t.mode|448;const l=(u&a)!==0;const f=t.uid;const h=t.gid;const p=typeof f==="number"&&typeof h==="number"&&(f!==t.processUid||h!==t.processGid);const d=t.preserve;const m=t.unlink;const y=t.cache;const v=t.cwd;const g=(t,n)=>{if(t)r(t);else{y.set(e,true);if(n&&p)o(n,f,h,e=>g(e));else if(l)i.chmod(e,u,r);else r()}};if(y&&y.get(e)===true)return g();if(e===v)return i.stat(e,(t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");g(t)});if(d)return n(e,u,g);const b=s.relative(v,e);const w=b.split(/\/|\\/);c(v,w,u,y,m,v,null,g)});const c=(e,t,r,n,s,o,a,l)=>{if(!t.length)return l(null,a);const f=t.shift();const h=e+"/"+f;if(n.get(h))return c(h,t,r,n,s,o,a,l);i.mkdir(h,r,u(h,t,r,n,s,o,a,l))};const u=(e,t,r,n,o,a,l,f)=>h=>{if(h){if(h.path&&s.dirname(h.path)===a&&(h.code==="ENOTDIR"||h.code==="ENOENT"))return f(new CwdError(a,h.code));i.lstat(e,(s,p)=>{if(s)f(s);else if(p.isDirectory())c(e,t,r,n,o,a,l,f);else if(o)i.unlink(e,s=>{if(s)return f(s);i.mkdir(e,r,u(e,t,r,n,o,a,l,f))});else if(p.isSymbolicLink())return f(new SymlinkError(e,e+"/"+t.join("/")));else f(h)})}else{l=l||e;c(e,t,r,n,o,a,l,f)}};const l=e.exports.sync=((e,t)=>{const r=t.umask;const a=t.mode|448;const c=(a&r)!==0;const u=t.uid;const l=t.gid;const f=typeof u==="number"&&typeof l==="number"&&(u!==t.processUid||l!==t.processGid);const h=t.preserve;const p=t.unlink;const d=t.cache;const m=t.cwd;const y=t=>{d.set(e,true);if(t&&f)o.sync(t,u,l);if(c)i.chmodSync(e,a)};if(d&&d.get(e)===true)return y();if(e===m){let t=false;let r="ENOTDIR";try{t=i.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}y();return}if(h)return y(n.sync(e,a));const v=s.relative(m,e);const g=v.split(/\/|\\/);let b=null;for(let e=g.shift(),t=m;e&&(t+="/"+e);e=g.shift()){if(d.get(t))continue;try{i.mkdirSync(t,a);b=b||t;d.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===m&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(m,e.code);const r=i.lstatSync(t);if(r.isDirectory()){d.set(t,true);continue}else if(p){i.unlinkSync(t);i.mkdirSync(t,a);b=b||t;d.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+g.join("/"))}}return y(b)})},4770:e=>{"use strict";e.exports=((e,t)=>{e&=4095;if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e})},9698:(e,t,r)=>{"use strict";const n=r(5104);class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const i=r(448);const s=r(3808);const o=r(2946);const a=r(2393);const c=a.Sync;const u=a.Tar;const l=r(5831);const f=n.alloc(1024);const h=Symbol("onStat");const p=Symbol("ended");const d=Symbol("queue");const m=Symbol("current");const y=Symbol("process");const v=Symbol("processing");const g=Symbol("processJob");const b=Symbol("jobs");const w=Symbol("jobDone");const S=Symbol("addFSEntry");const x=Symbol("addTarEntry");const E=Symbol("stat");const _=Symbol("readdir");const O=Symbol("onreaddir");const R=Symbol("pipe");const A=Symbol("entry");const C=Symbol("entryOpt");const P=Symbol("writeEntryClass");const T=Symbol("write");const j=Symbol("ondrain");const k=r(5747);const N=r(5622);const I=r(430);const L=I(class Pack extends i{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[P]=a;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};this.zip=new s.Gzip(e.gzip);this.zip.on("data",e=>super.write(e));this.zip.on("end",e=>super.end());this.zip.on("drain",e=>this[j]());this.on("resume",e=>this.zip.resume())}else this.on("drain",this[j]);this.portable=!!e.portable;this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[d]=new l;this[b]=0;this.jobs=+e.jobs||4;this[v]=false;this[p]=false}[T](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[p]=true;this[y]();return this}write(e){if(this[p])throw new Error("write after end");if(e instanceof o)this[x](e);else this[S](e);return this.flowing}[x](e){const t=N.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[C](r));r.entry.on("end",e=>this[w](r));this[b]+=1;this[d].push(r)}this[y]()}[S](e){const t=N.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[d].push(new PackJob(e,t));this[y]()}[E](e){e.pending=true;this[b]+=1;const t=this.follow?"stat":"lstat";k[t](e.absolute,(t,r)=>{e.pending=false;this[b]-=1;if(t)this.emit("error",t);else this[h](e,r)})}[h](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[y]()}[_](e){e.pending=true;this[b]+=1;k.readdir(e.absolute,(t,r)=>{e.pending=false;this[b]-=1;if(t)return this.emit("error",t);this[O](e,r)})}[O](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[y]()}[y](){if(this[v])return;this[v]=true;for(let e=this[d].head;e!==null&&this[b]<this.jobs;e=e.next){this[g](e.value);if(e.value.ignore){const t=e.next;this[d].removeNode(e);e.next=t}}this[v]=false;if(this[p]&&!this[d].length&&this[b]===0){if(this.zip)this.zip.end(f);else{super.write(f);super.end()}}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[w](e){this[d].shift();this[b]-=1;this[y]()}[g](e){if(e.pending)return;if(e.entry){if(e===this[m]&&!e.piped)this[R](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[h](e,this.statCache.get(e.absolute));else this[E](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[O](e,this.readdirCache.get(e.absolute));else this[_](e);if(!e.readdir)return}e.entry=this[A](e);if(!e.entry){e.ignore=true;return}if(e===this[m]&&!e.piped)this[R](e)}[C](e){return{onwarn:(e,t)=>{this.warn(e,t)},noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[A](e){this[b]+=1;try{return new this[P](e.path,this[C](e)).on("end",()=>this[w](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[j](){if(this[m]&&this[m].entry)this[m].entry.resume()}[R](e){e.piped=true;if(e.readdir)e.readdir.forEach(t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[S](n+t)});const t=e.entry;const r=this.zip;if(r)t.on("data",e=>{if(!r.write(e))t.pause()});else t.on("data",e=>{if(!super.write(e))t.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends L{constructor(e){super(e);this[P]=c}pause(){}resume(){}[E](e){const t=this.follow?"statSync":"lstatSync";this[h](e,k[t](e.absolute))}[_](e,t){this[O](e,k.readdirSync(e.absolute))}[R](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach(t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[S](n+t)});if(r)t.on("data",e=>{r.write(e)});else t.on("data",e=>{super[T](e)})}}L.Sync=PackSync;e.exports=L},2801:(e,t,r)=>{"use strict";const n=r(430);const i=r(5622);const s=r(3970);const o=r(8614);const a=r(5831);const c=1024*1024;const u=r(2946);const l=r(4065);const f=r(3808);const h=r(5104);const p=h.from([31,139]);const d=Symbol("state");const m=Symbol("writeEntry");const y=Symbol("readEntry");const v=Symbol("nextEntry");const g=Symbol("processEntry");const b=Symbol("extendedHeader");const w=Symbol("globalExtendedHeader");const S=Symbol("meta");const x=Symbol("emitMeta");const E=Symbol("buffer");const _=Symbol("queue");const O=Symbol("ended");const R=Symbol("emittedEnd");const A=Symbol("emit");const C=Symbol("unzip");const P=Symbol("consumeChunk");const T=Symbol("consumeChunkSub");const j=Symbol("consumeBody");const k=Symbol("consumeMeta");const N=Symbol("consumeHeader");const I=Symbol("consuming");const L=Symbol("bufferConcat");const D=Symbol("maybeEnd");const $=Symbol("writing");const B=Symbol("aborted");const F=Symbol("onDone");const M=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);if(e.ondone)this.on(F,e.ondone);else this.on(F,e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||c;this.filter=typeof e.filter==="function"?e.filter:M;this.writable=true;this.readable=false;this[_]=new a;this[E]=null;this[y]=null;this[m]=null;this[d]="begin";this[S]="";this[b]=null;this[w]=null;this[O]=false;this[C]=null;this[B]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[N](e,t){const r=new s(e,t,this[b],this[w]);if(r.nullBlock)this[A]("nullBlock");else if(!r.cksumValid)this.warn("invalid entry",r);else if(!r.path)this.warn("invalid: path is required",r);else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("invalid: linkpath required",r);else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("invalid: linkpath forbidden",r);else{const e=this[m]=new u(r,this[b],this[w]);if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[A]("ignoredEntry",e);this[d]="ignore"}else if(e.size>0){this[S]="";e.on("data",e=>this[S]+=e);this[d]="meta"}}else{this[b]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[A]("ignoredEntry",e);this[d]=e.remain?"ignore":"begin"}else{if(e.remain)this[d]="body";else{this[d]="begin";e.end()}if(!this[y]){this[_].push(e);this[v]()}else this[_].push(e)}}}}}[g](e){let t=true;if(!e){this[y]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[y]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",e=>this[v]());t=false}}return t}[v](){do{}while(this[g](this[_].shift()));if(!this[_].length){const e=this[y];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[$])this.emit("drain")}else e.once("drain",e=>this.emit("drain"))}}[j](e,t){const r=this[m];const n=r.blockRemain;const i=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(i);if(!r.blockRemain){this[d]="begin";this[m]=null;r.end()}return i.length}[k](e,t){const r=this[m];const n=this[j](e,t);if(!this[m])this[x](r);return n}[A](e,t,r){if(!this[_].length&&!this[y])this.emit(e,t,r);else this[_].push([e,t,r])}[x](e){this[A]("meta",this[S]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[b]=l.parse(this[S],this[b],false);break;case"GlobalExtendedHeader":this[w]=l.parse(this[S],this[w],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[b]=this[b]||Object.create(null);this[b].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[b]=this[b]||Object.create(null);this[b].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e,t){this[B]=true;this.warn(e,t);this.emit("abort",t);this.emit("error",t)}write(e){if(this[B])return;if(this[C]===null&&e){if(this[E]){e=h.concat([this[E],e]);this[E]=null}if(e.length<p.length){this[E]=e;return true}for(let t=0;this[C]===null&&t<p.length;t++){if(e[t]!==p[t])this[C]=false}if(this[C]===null){const t=this[O];this[O]=false;this[C]=new f.Unzip;this[C].on("data",e=>this[P](e));this[C].on("error",e=>this.abort(e.message,e));this[C].on("end",e=>{this[O]=true;this[P]()});this[$]=true;const r=this[C][t?"end":"write"](e);this[$]=false;return r}}this[$]=true;if(this[C])this[C].write(e);else this[P](e);this[$]=false;const t=this[_].length?false:this[y]?this[y].flowing:true;if(!t&&!this[_].length)this[y].once("drain",e=>this.emit("drain"));return t}[L](e){if(e&&!this[B])this[E]=this[E]?h.concat([this[E],e]):e}[D](){if(this[O]&&!this[R]&&!this[B]&&!this[I]){this[R]=true;const e=this[m];if(e&&e.blockRemain){const t=this[E]?this[E].length:0;this.warn("Truncated input (needed "+e.blockRemain+" more bytes, only "+t+" available)",e);if(this[E])e.write(this[E]);e.end()}this[A](F)}}[P](e){if(this[I]){this[L](e)}else if(!e&&!this[E]){this[D]()}else{this[I]=true;if(this[E]){this[L](e);const t=this[E];this[E]=null;this[T](t)}else{this[T](e)}while(this[E]&&this[E].length>=512&&!this[B]){const e=this[E];this[E]=null;this[T](e)}this[I]=false}if(!this[E]||this[O])this[D]()}[T](e){let t=0;let r=e.length;while(t+512<=r&&!this[B]){switch(this[d]){case"begin":this[N](e,t);t+=512;break;case"ignore":case"body":t+=this[j](e,t);break;case"meta":t+=this[k](e,t);break;default:throw new Error("invalid state: "+this[d])}}if(t<r){if(this[E])this[E]=h.concat([e.slice(t),this[E]]);else this[E]=e.slice(t)}}end(e){if(!this[B]){if(this[C])this[C].end(e);else{this[O]=true;this.write(e)}}}})},4065:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3970);const s=r(5622);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=n.byteLength(e);const r=512*Math.ceil(1+t/512);const o=n.allocUnsafe(r);for(let e=0;e<512;e++){o[e]=0}new i({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(o);o.write(e,512,t,"utf8");for(let e=t+512;e<o.length;e++){o[e]=0}return o}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const i=n.byteLength(r);let s=Math.floor(Math.log(i)/Math.log(10))+1;if(i+s>=Math.pow(10,s))s+=1;const o=s+i;return o+r}}Pax.parse=((e,t,r)=>new Pax(o(a(e),t),r));const o=(e,t)=>t?Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),t):e;const a=e=>e.replace(/\n$/,"").split("\n").reduce(c,Object.create(null));const c=(e,t)=>{const r=parseInt(t,10);if(r!==n.byteLength(t)+1)return e;t=t.substr((r+" ").length);const i=t.split("=");const s=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return e;const o=i.join("=");e[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o;return e};e.exports=Pax},2946:(e,t,r)=>{"use strict";const n=r(8318);const i=r(448);const s=Symbol("slurp");e.exports=class ReadEntry extends i{constructor(e,t,r){super();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(r)this[s](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[s](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},8291:(e,t,r)=>{"use strict";const n=r(5104);const i=r(6924);const s=r(9698);const o=r(2801);const a=r(5747);const c=r(6748);const u=r(9650);const l=r(5622);const f=r(3970);const h=e.exports=((e,t,r)=>{const n=i(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return n.sync?p(n,t):m(n,t,r)});const p=(e,t)=>{const r=new s.Sync(e);let i=true;let o;let c;try{try{o=a.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")o=a.openSync(e.file,"w+");else throw t}const s=a.fstatSync(o);const u=n.alloc(512);e:for(c=0;c<s.size;c+=512){for(let e=0,t=0;e<512;e+=t){t=a.readSync(o,u,e,u.length-e,c+e);if(c===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new f(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(c+r+512>s.size)break;c+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}i=false;d(e,r,c,o,t)}finally{if(i)try{a.closeSync(o)}catch(e){}}};const d=(e,t,r,n,i)=>{const s=new c.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s);y(t,i)};const m=(e,t,r)=>{t=Array.from(t);const i=new s(e);const o=(t,r,i)=>{const s=(e,r)=>{if(e)a.close(t,t=>i(e));else i(null,r)};let o=0;if(r===0)return s(null,0);let c=0;const u=n.alloc(512);const l=(n,i)=>{if(n)return s(n);c+=i;if(c<512&&i)return a.read(t,u,c,u.length-c,o+c,l);if(o===0&&u[0]===31&&u[1]===139)return s(new Error("cannot append to compressed archives"));if(c<512)return s(null,o);const h=new f(u);if(!h.cksumValid)return s(null,o);const p=512*Math.ceil(h.size/512);if(o+p+512>r)return s(null,o);o+=p+512;if(o>=r)return s(null,o);if(e.mtimeCache)e.mtimeCache.set(h.path,h.mtime);c=0;a.read(t,u,0,512,o,l)};a.read(t,u,0,512,o,l)};const u=new Promise((r,n)=>{i.on("error",n);let s="r+";const u=(l,f)=>{if(l&&l.code==="ENOENT"&&s==="r+"){s="w+";return a.open(e.file,s,u)}if(l)return n(l);a.fstat(f,(s,a)=>{if(s)return n(s);o(f,a.size,(s,o)=>{if(s)return n(s);const a=new c.WriteStream(e.file,{fd:f,start:o});i.pipe(a);a.on("error",n);a.on("close",r);v(i,t)})})};a.open(e.file,s,u)});return r?u.then(r,r):u};const y=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")u({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const v=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(r=>v(e,t));else e.add(r)}e.end()}},8318:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))},7932:(e,t,r)=>{"use strict";const n=r(2357);const i=r(8614).EventEmitter;const s=r(2801);const o=r(5747);const a=r(6748);const c=r(5622);const u=r(1017);const l=u.sync;const f=r(1676);const h=Symbol("onEntry");const p=Symbol("checkFs");const d=Symbol("isReusable");const m=Symbol("makeFs");const y=Symbol("file");const v=Symbol("directory");const g=Symbol("link");const b=Symbol("symlink");const w=Symbol("hardlink");const S=Symbol("unsupported");const x=Symbol("unknown");const E=Symbol("checkPath");const _=Symbol("mkdir");const O=Symbol("onError");const R=Symbol("pending");const A=Symbol("pend");const C=Symbol("unpend");const P=Symbol("ended");const T=Symbol("maybeClose");const j=Symbol("skip");const k=Symbol("doChown");const N=Symbol("uid");const I=Symbol("gid");const L=r(6417);const D=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+L.randomBytes(16).toString("hex");o.rename(e,r,e=>{if(e)return t(e);o.unlink(r,t)})};const $=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+L.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const B=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=(e=>{this[P]=true;this[T]()});super(e);this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[R]=0;this[P]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=c.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",e=>this[h](e))}[T](){if(this[P]&&this[R]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[E](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("path contains '..'",t);return false}if(c.win32.isAbsolute(t)){const r=c.win32.parse(t);this.warn("stripping "+r.root+" from absolute path",t);e.path=t.substr(r.root.length)}}if(this.win32){const t=c.win32.parse(e.path);e.path=t.root===""?f.encode(e.path):t.root+f.encode(e.path.substr(t.root.length))}if(c.isAbsolute(e.path))e.absolute=e.path;else e.absolute=c.resolve(this.cwd,e.path);return true}[h](e){if(!this[E](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[p](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[S](e)}}[O](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn(e.message,e);this[C]();t.resume()}}[_](e,t,r){u(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[k](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[N](e){return B(this.uid,e.uid,this.processUid)}[I](e){return B(this.gid,e.gid,this.processGid)}[y](e){const t=e.mode&4095||this.fmode;const r=new a.WriteStream(e.absolute,{mode:t,autoClose:false});r.on("error",t=>this[O](t,e));let n=1;const i=t=>{if(t)return this[O](t,e);if(--n===0)o.close(r.fd,e=>this[C]())};r.on("finish",t=>{const s=e.absolute;const a=r.fd;if(e.mtime&&!this.noMtime){n++;const t=e.atime||new Date;const r=e.mtime;o.futimes(a,t,r,e=>e?o.utimes(s,t,r,t=>i(t&&e)):i())}if(this[k](e)){n++;const t=this[N](e);const r=this[I](e);o.fchown(a,t,r,e=>e?o.chown(s,t,r,t=>i(t&&e)):i())}i()});const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",t=>this[O](t,e));e.pipe(s)}s.pipe(r)}[v](e){const t=e.mode&4095||this.dmode;this[_](e.absolute,t,t=>{if(t)return this[O](t,e);let r=1;const n=t=>{if(--r===0){this[C]();e.resume()}};if(e.mtime&&!this.noMtime){r++;o.utimes(e.absolute,e.atime||new Date,e.mtime,n)}if(this[k](e)){r++;o.chown(e.absolute,this[N](e),this[I](e),n)}n()})}[S](e){this.warn("unsupported entry type: "+e.type,e);e.resume()}[b](e){this[g](e,e.linkpath,"symlink")}[w](e){this[g](e,c.resolve(this.cwd,e.linkpath),"link")}[A](){this[R]++}[C](){this[R]--;this[T]()}[j](e){this[C]();e.resume()}[d](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[p](e){this[A]();this[_](c.dirname(e.absolute),this.dmode,t=>{if(t)return this[O](t,e);o.lstat(e.absolute,(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>e.mtime))this[j](e);else if(t||this[d](e,r))this[m](null,e);else if(r.isDirectory()){if(e.type==="Directory"){if(!e.mode||(r.mode&4095)===e.mode)this[m](null,e);else o.chmod(e.absolute,e.mode,t=>this[m](t,e))}else o.rmdir(e.absolute,t=>this[m](t,e))}else D(e.absolute,t=>this[m](t,e))})})}[m](e,t){if(e)return this[O](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[y](t);case"Link":return this[w](t);case"SymbolicLink":return this[b](t);case"Directory":case"GNUDumpDir":return this[v](t)}}[g](e,t,r){o[r](t,e.absolute,t=>{if(t)return this[O](t,e);this[C]();e.resume()})}}class UnpackSync extends Unpack{constructor(e){super(e)}[p](e){const t=this[_](c.dirname(e.absolute),this.dmode);if(t)return this[O](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[j](e);else if(this[d](e,r))return this[m](null,e);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else $(e.absolute);return this[m](null,e)}catch(t){return this[O](t,e)}}}catch(t){return this[m](null,e)}}[y](e){const t=e.mode&4095||this.fmode;const r=t=>{try{o.closeSync(i)}catch(e){}if(t)this[O](t,e)};let n;let i;try{i=o.openSync(e.absolute,"w",t)}catch(e){return r(e)}const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",t=>this[O](t,e));e.pipe(s)}s.on("data",e=>{try{o.writeSync(i,e,0,e.length)}catch(e){r(e)}});s.on("end",t=>{let n=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const r=e.mtime;try{o.futimesSync(i,t,r)}catch(i){try{o.utimesSync(e.absolute,t,r)}catch(e){n=i}}}if(this[k](e)){const t=this[N](e);const r=this[I](e);try{o.fchownSync(i,t,r)}catch(i){try{o.chownSync(e.absolute,t,r)}catch(e){n=n||i}}}r(n)})}[v](e){const t=e.mode&4095||this.dmode;const r=this[_](e.absolute,t);if(r)return this[O](r,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(r){}}if(this[k](e)){try{o.chownSync(e.absolute,this[N](e),this[I](e))}catch(r){}}e.resume()}[_](e,t){try{return u.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[g](e,t,r){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[O](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},8489:(e,t,r)=>{"use strict";const n=r(6924);const i=r(8291);const s=e.exports=((e,t,r)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);o(s);return i(s,t,r)});const o=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},430:e=>{"use strict";e.exports=(e=>(class extends e{warn(e,t){if(!this.strict)this.emit("warn",e,t);else if(t instanceof Error)this.emit("error",t);else{const r=new Error(e);r.data=t;this.emit("error",r)}}}))},1676:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map(e=>String.fromCharCode(61440+e.charCodeAt(0)));const n=new Map(t.map((e,t)=>[e,r[t]]));const i=new Map(r.map((e,r)=>[e,t[r]]));e.exports={encode:e=>t.reduce((e,t)=>e.split(t).join(n.get(t)),e),decode:e=>r.reduce((e,t)=>e.split(t).join(i.get(t)),e)}},2393:(e,t,r)=>{"use strict";const n=r(5104);const i=r(448);const s=r(4065);const o=r(3970);const a=r(2946);const c=r(5747);const u=r(5622);const l=r(8318);const f=16*1024*1024;const h=Symbol("process");const p=Symbol("file");const d=Symbol("directory");const m=Symbol("symlink");const y=Symbol("hardlink");const v=Symbol("header");const g=Symbol("read");const b=Symbol("lstat");const w=Symbol("onlstat");const S=Symbol("onread");const x=Symbol("onreadlink");const E=Symbol("openfile");const _=Symbol("onopenfile");const O=Symbol("close");const R=Symbol("mode");const A=r(430);const C=r(1676);const P=r(4770);const T=A(class WriteEntry extends i{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||f;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.warn("stripping "+t.root+" from absolute path",e);this.path=e.substr(t.root.length)}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=C.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(this.statCache.has(this.absolute))this[w](this.statCache.get(this.absolute));else this[b]()}[b](){c.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[w](t)})}[w](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=k(e);this.emit("stat",e);this[h]()}[h](){switch(this.type){case"File":return this[p]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[R](e){return P(e,this.type==="Directory")}[v](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this[R](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[d](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[v]();this.end()}[m](){c.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[x](t)})}[x](e){this.linkpath=e;this[v]();this.end()}[y](e){this.type="Link";this.linkpath=u.relative(this.cwd,e);this.stat.size=0;this[v]();this.end()}[p](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[y](t)}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0)return this.end();this[E]()}[E](){c.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[_](t)})}[_](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const i=n.allocUnsafe(r);this[g](e,i,0,i.length,0,this.stat.size,t)}[g](e,t,r,n,i,s,o){c.read(e,t,r,n,i,(a,c)=>{if(a)return this[O](e,e=>this.emit("error",a));this[S](e,t,r,n,i,s,o,c)})}[O](e,t){c.close(e,t)}[S](e,t,r,i,s,o,a,c){if(c<=0&&o>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[O](e);return this.emit("error",t)}if(c>o){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[O](e);return this.emit("error",t)}if(c===o){for(let e=c;e<i&&c<a;e++){t[e+r]=0;c++;o++}}const u=r===0&&c===t.length?t:t.slice(r,r+c);o-=c;a-=c;s+=c;r+=c;this.write(u);if(!o){if(a)this.write(n.alloc(a));this.end();this[O](e,e=>e);return}if(r>=i){t=n.allocUnsafe(i);r=0}i=t.length-r;this[g](e,t,r,i,s,o,a)}});class WriteEntrySync extends T{constructor(e,t){super(e,t)}[b](){this[w](c.lstatSync(this.absolute))}[m](){this[x](c.readlinkSync(this.absolute))}[E](){this[_](c.openSync(this.absolute,"r"))}[g](e,t,r,n,i,s,o){let a=true;try{const u=c.readSync(e,t,r,n,i);this[S](e,t,r,n,i,s,o,u);a=false}finally{if(a)try{this[O](e)}catch(e){}}}[O](e){c.closeSync(e)}}const j=A(class WriteEntryTar extends i{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[R](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);this.warn("stripping "+e.root+" from absolute path",this.path);this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(this.header.encode()&&!this.noPax)super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[R](e){return P(e,this.type==="Directory")}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(n.alloc(this.blockRemain));return super.end()}});T.Sync=WriteEntrySync;T.Tar=j;const k=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=T},6732:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(5622);var s=n?";":":";var o=r(228);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var c=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var f=s[n];if(f.charAt(0)==='"'&&f.slice(-1)==='"')f=f.slice(1,-1);var h=i.join(f,e);if(!f&&/^\.[\\\/]/.test(e)){h=e.slice(0,2)+h}(function E(e,i){if(e===i)return F(n+1,l);var s=a[e];o(h+s,{pathExt:c},function(n,o){if(!n&&o){if(t.all)u.push(h+s);else return r(null,h+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var c=[];for(var u=0,l=n.length;u<l;u++){var f=n[u];if(f.charAt(0)==='"'&&f.slice(-1)==='"')f=f.slice(1,-1);var h=i.join(f,e);if(!f&&/^\.[\\\/]/.test(e)){h=e.slice(0,2)+h}for(var p=0,d=s.length;p<d;p++){var m=h+s[p];var y;try{y=o.sync(m,{pathExt:a});if(y){if(t.all)c.push(m);else return m}}catch(e){}}}if(t.all&&c.length)return c;if(t.nothrow)return null;throw getNotFoundError(e)}},7869:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},5831:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r<e;r++){n=n.next}var i=[];for(var r=0;n&&r<t;r++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var r=2;r<arguments.length;r++){n=insert(this,n,arguments[r])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(7869)(Yallist)}catch(e){}},2439:(e,t,r)=>{"use strict";r.r(t);var n=r(6437);var i=r.n(n);var s=r(8138);var o=r.n(s);var a=r(5622);var c=r.n(a);var u=r(7671);var l=r.n(u);var f=r(5418);var h=r.n(f);var p=r(3691);var d=r.n(p);var m=r(402);var y=r.n(m);var v=r(5747);var g=r.n(v);var b=r(2087);var w=r.n(b);var S=r(9365);var x=r.n(S);var E=r(2127);var _=r(2413);var O=r(1669);const R=(0,O.promisify)(_.Stream.pipeline);async function isUrlOk(e){const t=await x().head(e).catch(e=>e);return t.statusCode===200}async function getRepoInfo(e,t){const[,r,n,i,s,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(i===undefined){const e=await x()(`https://api.github.com/repos/${r}/${n}`).catch(e=>e);if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&c&&i==="tree"){return{username:r,name:n,branch:c,filePath:a}}}function hasRepo({username:e,name:t,branch:r,filePath:n}){const i=`https://api.github.com/repos/${e}/${t}/contents`;const s=`${n?`/${n}`:""}/package.json`;return isUrlOk(`${i+s}?ref=${r}`)}function hasExample(e){return isUrlOk(`https://api.github.com/repos/vercel/next.js/contents/examples/${encodeURIComponent(e)}/package.json`)}function downloadAndExtractRepo(e,{username:t,name:r,branch:n,filePath:i}){return R(x().stream(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`),E.extract({cwd:e,strip:i?i.split("/").length+1:1},[`${r}-${n}${i?`/${i}`:""}`]))}function downloadAndExtractExample(e,t){if(t==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}return R(x().stream("https://codeload.github.com/vercel/next.js/tar.gz/canary"),E.extract({cwd:e,strip:3},[`next.js-canary/examples/${t}`]))}function makeDir(e,t={recursive:true}){return g().promises.mkdir(e,t)}var A=r(3129);var C=r(3769);var P=r.n(C);function isInGitRepository(){try{(0,A.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(e){}return false}function isInMercurialRepository(){try{(0,A.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(e){}return false}function tryGitInit(e){let t=false;try{(0,A.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,A.execSync)("git init",{stdio:"ignore"});t=true;(0,A.execSync)("git checkout -b main",{stdio:"ignore"});(0,A.execSync)("git add -A",{stdio:"ignore"});(0,A.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(r){if(t){try{P().sync(c().join(e,".git"))}catch(e){}}return false}}var T=r(7618);var j=r.n(T);function install(e,t,{useYarn:r,isOnline:n,devDependencies:s}){const o=[];const a=[];return new Promise((c,u)=>{let l;let f=r?"yarnpkg":"npm";if(t&&t.length){if(r){l=["add","--exact"];if(!n)l.push("--offline");l.push("--cwd",e);if(s)l.push("--dev");l.push(...t)}else{l=["install","--save-exact"];l.push(s?"--save-dev":"--save");l.push(...t)}}else{l=["install"];if(r){if(!n){console.log(i().yellow("You appear to be offline."));console.log(i().yellow("Falling back to the local Yarn cache."));console.log();l.push("--offline")}}else{if(!n){console.log(i().yellow("You appear to be offline."));console.log()}}}if(r){l.push(...a)}else{l.push(...o)}const h=j()(f,l,{stdio:"inherit",env:{...process.env,NODE_ENV:s?"development":"production",ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}});h.on("close",e=>{if(e!==0){u({command:`${f} ${l.join(" ")}`});return}c()})})}function isFolderEmpty(e,t){const r=[".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 n=g().readdirSync(e).filter(e=>!r.includes(e)).filter(e=>!/\.iml$/.test(e));if(n.length>0){console.log(`The directory ${i().green(t)} contains files that could conflict:`);console.log();for(const t of n){try{const r=g().lstatSync(c().join(e,t));if(r.isDirectory()){console.log(` ${i().blue(t)}/`)}else{console.log(` ${t}`)}}catch{console.log(` ${t}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}async function isWriteable(e){try{await g().promises.access(e,(g().constants||g()).W_OK);return true}catch(e){return false}}function shouldUseYarn(){try{const e=process.env.npm_config_user_agent;if(e){return Boolean(e&&e.startsWith("yarn"))}(0,A.execSync)("yarnpkg --version",{stdio:"ignore"});return true}catch(e){return false}}class DownloadError extends Error{}async function createApp({appPath:e,example:t,examplePath:n,useNpm:s}){let o;const a="default";if(t){let e;try{e=new URL(t)}catch(e){if(e.code!=="ERR_INVALID_URL"){console.error(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){console.error(`Invalid URL: ${i().red(`"${t}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}o=await getRepoInfo(e,n);if(!o){console.error(`Found invalid GitHub URL: ${i().red(`"${t}"`)}. Please fix the URL and try again.`);process.exit(1)}const r=await hasRepo(o);if(!r){console.error(`Could not locate the repository for ${i().red(`"${t}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(t!=="__internal-testing-retry"){const e=await hasExample(t);if(!e){console.error(`Could not locate an example named ${i().red(`"${t}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${i().red(`"${t}"`)} might be incorrect.\n`,"2. You might not be connected to the internet.");process.exit(1)}}}const u=c().resolve(e);if(!await isWriteable(c().dirname(u))){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 l=c().basename(u);await makeDir(u);if(!isFolderEmpty(u,l)){process.exit(1)}const f=s?false:shouldUseYarn();const h=process.cwd();console.log(`Creating a new eventcatalog in ${i().green(u)}.`);console.log();await makeDir(u);process.chdir(u);if(t){try{if(o){const e=o;console.log(`Downloading files from repo ${i().cyan(t)}. This might take a moment.`);console.log();await d()(()=>downloadAndExtractRepo(u,e),{retries:3})}else{console.log(`Downloading files for example ${i().cyan(t)}. This might take a moment.`);console.log();await d()(()=>downloadAndExtractExample(u,t),{retries:3})}}catch(e){throw new DownloadError(e)}const e=c().join(u,".gitignore");if(!g().existsSync(e)){g().copyFileSync(r.ab+"gitignore",e)}console.log("Installing packages. This might take a couple of minutes.");console.log();await install(u,null,{useYarn:f,isOnline:true});console.log()}else{const e={name:l,version:"0.0.1",private:true,scripts:{start:"eventcatalog start",dev:"eventcatalog dev",build:"eventcatalog build",generate:"eventcatalog generate",test:'echo "Error: no test specified" && exit 1'},devDependencies:{tailwindcss:"^3.3.3",typescript:"^4.4.4",postcss:"^8.3.11","cross-env":"^7.0.3",autoprefixer:"10.4.5"}};g().writeFileSync(c().join(u,"package.json"),JSON.stringify(e,null,2)+w().EOL);const t={useYarn:f,isOnline:true};const n=["@eventcatalog/core"];const s=["@types/react","@eventcatalog/types","@types/node"];if(n.length){console.log();console.log("Installing dependencies:");for(const e of n){console.log(`- ${i().cyan(e)}`)}console.log();await install(u,n,t)}if(s.length){console.log();console.log("Installing devDependencies:");for(const e of s){console.log(`- ${i().cyan(e)}`)}console.log();const e={devDependencies:true,...t};await install(u,s,e)}await y()("**",u,{parents:true,cwd:r.ab+"default",rename:e=>{switch(e){case"env":case"gitignore":case"dockerignore":case"eslintrc":{return".".concat(e)}case"README-template.md":{return"README.md"}default:{return e}}}})}if(tryGitInit(u)){console.log("Initialized a git repository.");console.log()}let p;if(c().join(h,l)===e){p=l}else{p=e}console.log(`${i().green("Success!")} Created ${l} at ${e}`);console.log("Inside that directory, you can run several commands:");console.log();console.log(i().cyan(" npm run dev"));console.log(" Starts the app in development mode.");console.log();console.log(i().cyan(" npm start"));console.log(" Runs the app in production mode.");console.log();console.log("We suggest that you begin by typing:");console.log();console.log(i().cyan(" cd"),p);console.log(` ${i().cyan("npm run dev")}`);console.log()}var k=r(5880);var N=r.n(k);function validateNpmName(e){const t=N()(e);if(t.validForNewPackages){return{valid:true}}return{valid:false,problems:[...t.errors||[],...t.warnings||[]]}}const I=JSON.parse('{"name":"@eventcatalog/create-eventcatalog","version":"1.1.0","keywords":[],"description":"Create event catalogs apps with one command","repository":{"type":"git","url":"https://github.com/boyney123/eventcatalog"},"author":"David Boyne","license":"MIT","bin":{"create-eventcatalog2":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"scripts":{"dev":"ncc build ./index.ts -w -o dist/","test":"echo \\"No test specified\\"","lint":"eslint --max-warnings 13 --config .eslintrc .","prepare":"rimraf ./dist/ && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register","build":"npm run prepare","release":"semantic-release","get:version":"echo $npm_package_version","get:name":"echo $npm_package_name","generate:assets":"echo \\"No assets to generate so far\\"","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION"},"devDependencies":{"@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.4","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","@types/async-retry":"1.3.0","@types/cross-spawn":"^6.0.2","@types/node":"^12.6.8","@types/prompts":"2.0.1","@types/rimraf":"3.0.0","@types/tar":"4.0.3","@types/validate-npm-package-name":"3.0.0","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","@vercel/ncc":"0.25.1","all-contributors-cli":"^6.14.2","async-retry":"1.3.1","chalk":"2.4.2","commander":"2.20.0","conventional-changelog-conventionalcommits":"^4.4.0","cpy":"7.3.0","cross-spawn":"6.0.5","eslint":"^8.46.0","eslint-plugin-github":"^4.1.3","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","got":"10.7.0","jest":"^29.6.2","jsdoc-to-markdown":"^5.0.0","markdown-toc":"^1.2.0","prompts":"2.1.0","rimraf":"3.0.0","semantic-release":"^17.2.2","tar":"4.4.10","typescript":"5.1.6","unixify":"^1.0.0","update-check":"1.5.4","validate-npm-package-name":"3.0.0"},"engines":{"node":">=12.0.0"},"gitHead":"5f82ce7f267e9b3ec771bbd3cc81359ed0a8fd18"}');let L="";const D=new(o().Command)(I.name).version(I.version).arguments("<project-directory>").usage(`${i().green("<project-directory>")} [options]`).action(e=>{L=e}).option("-e, --example [name]|[github-url]",`\n\n An example to bootstrap the app with. You can use an example name\n from the official Glee repo or a GitHub URL. The URL can use\n any branch and/or subdirectory\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).allowUnknownOption().parse(process.argv);async function run(){if(typeof L==="string"){L=L.trim()}if(!L){const e=await l()({type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:e=>{var t;const r=validateNpmName(c().basename(c().resolve(e)));if(r.valid){return true}return`Invalid project name: ${(t=r.problems)===null||t===void 0?void 0:t[0]}`}});if(typeof e.path==="string"){L=e.path.trim()}}if(!L){console.log();console.log("Please specify the project directory:");console.log(` ${i().cyan(D.name())} ${i().green("<project-directory>")}`);console.log();console.log("For example:");console.log(` ${i().cyan(D.name())} ${i().green("my-eventcatalog-app")}`);console.log();console.log(`Run ${i().cyan(`${D.name()} --help`)} to see all options.`);process.exit(1)}const e=c().resolve(L);const t=c().basename(e);const{valid:r,problems:n}=validateNpmName(t);if(!r){console.error(`Could not create a project called ${i().red(`"${t}"`)} because of npm naming restrictions:`);n.forEach(e=>console.error(` ${i().red.bold("*")} ${e}`));process.exit(1)}if(D.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1);return}const s=typeof D.example==="string"&&D.example.trim();try{await createApp({appPath:e,useNpm:!!D.useNpm,example:s&&s!=="default"?s:undefined,examplePath:D.examplePath})}catch(t){if(!(t instanceof DownloadError)){throw t}const r=await l()({type:"confirm",name:"builtin",message:`Could not download "${s}" because of a connectivity issue between your machine and GitHub.\n`+"Do you want to use the default template instead?",initial:true});if(!r.builtin){throw t}await createApp({appPath:e,useNpm:!!D.useNpm})}}const $=h()(I).catch(()=>null);async function notifyUpdate(){try{const e=await $;if(e===null||e===void 0?void 0:e.latest){console.log();console.log(i().yellow.bold("A new version of `create-eventcatalog` is available!"));console.log(`You can update by running: ${i().cyan("npm i -g create-eventcatalog")}`);console.log()}process.exit()}catch{}}run().then(notifyUpdate).catch(async e=>{console.log();console.log("Aborting installation.");if(e.command){console.log(` ${i().cyan(e.command)} has failed.`)}else{console.log(i().red("Unexpected error. Please report it as a bug:"));console.log(e)}console.log();await notifyUpdate();process.exit(1)})},7995:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},6417:e=>{"use strict";e.exports=require("crypto")},881:e=>{"use strict";e.exports=require("dns")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1058:e=>{"use strict";e.exports=require("readline")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}n.loaded=true;return n.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();(()=>{__webpack_require__.nmd=(e=>{e.paths=[];if(!e.children)e.children=[];return e})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(2439)})();
2
+ module.exports=(()=>{var e={5296:e=>{"use strict";e.exports=asyncForEach;function asyncForEach(e,t,r){if(e.length===0){r();return}let n=e.length;e.forEach(e=>{t(e,()=>{if(--n===0){r()}})})}},9660:(e,t,r)=>{"use strict";e.exports=readdirAsync;const n=r(3279);const i=r(8191);let s={fs:r(5747),forEach:r(5296),async:true};function readdirAsync(e,t,r,o){if(typeof t==="function"){r=t;t=undefined}return n(r,new Promise((r,n)=>{let a=[];o.facade=s;let c=new i(e,t,o);let u=c.stream;u.on("error",e=>{n(e);u.pause()});u.on("data",e=>{a.push(e)});u.on("end",()=>{r(a)})}))}},9731:e=>{"use strict";let t=e.exports={safe:safeCall,once:callOnce};function safeCall(e,r){r=Array.prototype.slice.call(arguments,1);let n=t.once(r.pop());r.push(n);try{e.apply(null,r)}catch(e){n(e)}}function callOnce(e){let t=false;return function onceWrapper(r){if(!t){t=true;return e.apply(this,arguments)}else if(r){throw r}}}},8191:(e,t,r)=>{"use strict";const n=r(2413).Readable;const i=r(8614).EventEmitter;const s=r(5622);const o=r(5891);const a=r(4666);const c=r(9731);class DirectoryReader{constructor(e,t,r){this.options=t=o(t,r);this.shouldRead=true;this.queue=[{path:e,basePath:t.basePath,posixBasePath:t.posixBasePath,depth:0}];this.pending=0;this.buffer=[];this.stream=new n({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 e=this.options.facade;let t=this.queue.shift();this.pending++;c.safe(e.fs.readdir,t.path,(r,n)=>{if(r){this.emit("error",r);return this.finishedReadingDirectory()}try{e.forEach(n,this.processItem.bind(this,t),this.finishedReadingDirectory.bind(this,t))}catch(e){this.emit("error",e);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(e,t,r){let n=this.stream;let o=this.options;let c=e.basePath+t;let u=e.posixBasePath+t;let l=s.join(e.path,t);let f=e.depth>=o.recurseDepth;let h=!f||o.stats||o.recurseFn||o.filterFn||i.listenerCount(n,"file")||i.listenerCount(n,"directory")||i.listenerCount(n,"symlink");if(!h){if(this.filter(c,u)){this.pushOrBuffer({data:c})}return r()}a(o.facade.fs,l,(t,n)=>{if(t){this.emit("error",t);return r()}try{n.path=c;n.depth=e.depth;if(this.shouldRecurse(n,u,f)){this.queue.push({path:l,basePath:c+o.sep,posixBasePath:u+"/",depth:e.depth+1})}if(this.filter(n,u)){this.pushOrBuffer({data:o.stats?n:c,file:n.isFile(),directory:n.isDirectory(),symlink:n.isSymbolicLink()})}r()}catch(e){this.emit("error",e);r()}})}pushOrBuffer(e){this.buffer.push(e);if(this.shouldRead){this.pushFromBuffer()}}pushFromBuffer(){let e=this.stream;let t=this.buffer.shift();try{this.shouldRead=e.push(t.data)}catch(e){this.emit("error",e)}t.file&&this.emit("file",t.data);t.symlink&&this.emit("symlink",t.data);t.directory&&this.emit("directory",t.data)}shouldRecurse(e,t,r){let n=this.options;if(r){return false}else if(!e.isDirectory()){return false}else if(n.recurseGlob){return n.recurseGlob.test(t)}else if(n.recurseRegExp){return n.recurseRegExp.test(e.path)}else if(n.recurseFn){try{return n.recurseFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}filter(e,t){let r=this.options;if(r.filterGlob){return r.filterGlob.test(t)}else if(r.filterRegExp){return r.filterRegExp.test(e.path||e)}else if(r.filterFn){try{return r.filterFn.call(null,e)}catch(e){this.emit("error",e)}}else{return true}}emit(e,t){let r=this.stream;try{r.emit(e,t)}catch(t){if(e==="error"){throw t}else{r.emit("error",t)}}}}e.exports=DirectoryReader},7250:(e,t,r)=>{"use strict";const n=r(8714);const i=r(9660);const s=r(3357);e.exports=t=readdirAsyncPath;t.readdir=t.readdirAsync=t.async=readdirAsyncPath;t.readdirAsyncStat=t.async.stat=readdirAsyncStat;t.readdirStream=t.stream=readdirStreamPath;t.readdirStreamStat=t.stream.stat=readdirStreamStat;t.readdirSync=t.sync=readdirSyncPath;t.readdirSyncStat=t.sync.stat=readdirSyncStat;function readdirSyncPath(e,t){return n(e,t,{})}function readdirSyncStat(e,t){return n(e,t,{stats:true})}function readdirAsyncPath(e,t,r){return i(e,t,r,{})}function readdirAsyncStat(e,t,r){return i(e,t,r,{stats:true})}function readdirStreamPath(e,t){return s(e,t,{})}function readdirStreamStat(e,t){return s(e,t,{stats:true})}},5891:(e,t,r)=>{"use strict";const n=r(5622);const i=r(8650);e.exports=normalizeOptions;let s=/^win/.test(process.platform);function normalizeOptions(e,t){if(e===null||e===undefined){e={}}else if(typeof e!=="object"){throw new TypeError("options must be an object")}let r,o,a,c,u=e.deep;if(u===null||u===undefined){r=0}else if(typeof u==="boolean"){r=u?Infinity:0}else if(typeof u==="number"){if(u<0||isNaN(u)){throw new Error("options.deep must be a positive number")}else if(Math.floor(u)!==u){throw new Error("options.deep must be an integer")}else{r=u}}else if(typeof u==="function"){r=Infinity;o=u}else if(u instanceof RegExp){r=Infinity;a=u}else if(typeof u==="string"&&u.length>0){r=Infinity;c=i(u,{extended:true,globstar:true})}else{throw new TypeError("options.deep must be a boolean, number, function, regular expression, or glob pattern")}let l,f,h,p=e.filter;if(p!==null&&p!==undefined){if(typeof p==="function"){l=p}else if(p instanceof RegExp){f=p}else if(typeof p==="string"&&p.length>0){h=i(p,{extended:true,globstar:true})}else{throw new TypeError("options.filter must be a function, regular expression, or glob pattern")}}let d=e.sep;if(d===null||d===undefined){d=n.sep}else if(typeof d!=="string"){throw new TypeError("options.sep must be a string")}let m=e.basePath;if(m===null||m===undefined){m=""}else if(typeof m==="string"){if(m&&m.substr(-1)!==d){m+=d}}else{throw new TypeError("options.basePath must be a string")}let y=m;if(y&&d!=="/"){y=y.replace(new RegExp("\\"+d,"g"),"/");if(s){y=y.replace(/^([a-zA-Z]\:\/|\/\/)/,"/")}}let v;if(e.fs===null||e.fs===undefined){v=t.facade}else if(typeof e.fs==="object"){v=Object.assign({},t.facade);v.fs=Object.assign({},t.facade.fs,e.fs)}else{throw new TypeError("options.fs must be an object")}return{recurseDepth:r,recurseFn:o,recurseRegExp:a,recurseGlob:c,filterFn:l,filterRegExp:f,filterGlob:h,sep:d,basePath:m,posixBasePath:y,facade:v,emit:!!t.emit,stats:!!t.stats}}},4666:(e,t,r)=>{"use strict";const n=r(9731);e.exports=stat;function stat(e,t,r){let i=false;n.safe(e.lstat,t,(n,s)=>{if(n){return r(n)}try{i=s.isSymbolicLink()}catch(e){return r(e)}if(i){symlinkStat(e,t,s,r)}else{r(null,s)}})}function symlinkStat(e,t,r,i){n.safe(e.stat,t,(e,t)=>{if(e){return i(null,r)}try{t.isSymbolicLink=(()=>true)}catch(e){return i(e)}i(null,t)})}},3357:(e,t,r)=>{"use strict";e.exports=readdirStream;const n=r(8191);let i={fs:r(5747),forEach:r(5296),async:true};function readdirStream(e,t,r){r.facade=i;let s=new n(e,t,r);return s.stream}},8105:e=>{"use strict";e.exports=syncForEach;function syncForEach(e,t,r){e.forEach(e=>{t(e,()=>{})});r()}},7818:(e,t,r)=>{"use strict";const n=r(5747);const i=r(9731);t.readdir=function(e,t){t=i.once(t);try{let r=n.readdirSync(e);t(null,r)}catch(e){t(e)}};t.stat=function(e,t){t=i.once(t);try{let r=n.statSync(e);t(null,r)}catch(e){t(e)}};t.lstat=function(e,t){t=i.once(t);try{let r=n.lstatSync(e);t(null,r)}catch(e){t(e)}}},8714:(e,t,r)=>{"use strict";e.exports=readdirSync;const n=r(8191);let i={fs:r(7818),forEach:r(8105),sync:true};function readdirSync(e,t,r){r.facade=i;let s=new n(e,t,r);let o=s.stream;let a=[];let c=o.read();while(c!==null){a.push(c);c=o.read()}return a}},8650:e=>{e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("Expected a string")}var r=String(e);var n="";var i=t?!!t.extended:false;var s=t?!!t.globstar:false;var o=false;var a=t&&typeof t.flags==="string"?t.flags:"";var c;for(var u=0,l=r.length;u<l;u++){c=r[u];switch(c){case"\\":case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":n+="\\"+c;break;case"?":if(i){n+=".";break}case"[":case"]":if(i){n+=c;break}case"{":if(i){o=true;n+="(";break}case"}":if(i){o=false;n+=")";break}case",":if(o){n+="|";break}n+="\\"+c;break;case"*":var f=r[u-1];var h=1;while(r[u+1]==="*"){h++;u++}var p=r[u+1];if(!s){n+=".*"}else{var d=h>1&&(f==="/"||f===undefined)&&(p==="/"||p===undefined);if(d){n+="(?:[^/]*(?:/|$))*";u++}else{n+="[^/]*"}}break;default:n+=c}}if(!a||!~a.indexOf("g")){n="^"+n+"$"}return new RegExp(n,a)}},1493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const{toString:r}=Object.prototype;const n=e=>t=>typeof t===e;const i=e=>{const t=r.call(e).slice(8,-1);if(t){return t}return undefined};const s=e=>t=>i(t)===e;function is(e){switch(e){case null:return"null";case true:case false:return"boolean";default:}switch(typeof e){case"undefined":return"undefined";case"string":return"string";case"number":return"number";case"bigint":return"bigint";case"symbol":return"symbol";default:}if(is.function_(e)){return"Function"}if(is.observable(e)){return"Observable"}if(is.array(e)){return"Array"}if(is.buffer(e)){return"Buffer"}const t=i(e);if(t){return t}if(e instanceof String||e instanceof Boolean||e instanceof Number){throw new TypeError("Please don't use object wrappers for primitive types")}return"Object"}is.undefined=n("undefined");is.string=n("string");const o=n("number");is.number=(e=>o(e)&&!is.nan(e));is.bigint=n("bigint");is.function_=n("function");is.null_=(e=>e===null);is.class_=(e=>is.function_(e)&&e.toString().startsWith("class "));is.boolean=(e=>e===true||e===false);is.symbol=n("symbol");is.numericString=(e=>is.string(e)&&!is.emptyStringOrWhitespace(e)&&!Number.isNaN(Number(e)));is.array=Array.isArray;is.buffer=(e=>{var t,r,n,i;return(i=(n=(r=(t=e)===null||t===void 0?void 0:t.constructor)===null||r===void 0?void 0:r.isBuffer)===null||n===void 0?void 0:n.call(r,e))!==null&&i!==void 0?i:false});is.nullOrUndefined=(e=>is.null_(e)||is.undefined(e));is.object=(e=>!is.null_(e)&&(typeof e==="object"||is.function_(e)));is.iterable=(e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.iterator])});is.asyncIterable=(e=>{var t;return is.function_((t=e)===null||t===void 0?void 0:t[Symbol.asyncIterator])});is.generator=(e=>is.iterable(e)&&is.function_(e.next)&&is.function_(e.throw));is.asyncGenerator=(e=>is.asyncIterable(e)&&is.function_(e.next)&&is.function_(e.throw));is.nativePromise=(e=>s("Promise")(e));const a=e=>{var t,r;return is.function_((t=e)===null||t===void 0?void 0:t.then)&&is.function_((r=e)===null||r===void 0?void 0:r.catch)};is.promise=(e=>is.nativePromise(e)||a(e));is.generatorFunction=s("GeneratorFunction");is.asyncGeneratorFunction=(e=>i(e)==="AsyncGeneratorFunction");is.asyncFunction=(e=>i(e)==="AsyncFunction");is.boundFunction=(e=>is.function_(e)&&!e.hasOwnProperty("prototype"));is.regExp=s("RegExp");is.date=s("Date");is.error=s("Error");is.map=(e=>s("Map")(e));is.set=(e=>s("Set")(e));is.weakMap=(e=>s("WeakMap")(e));is.weakSet=(e=>s("WeakSet")(e));is.int8Array=s("Int8Array");is.uint8Array=s("Uint8Array");is.uint8ClampedArray=s("Uint8ClampedArray");is.int16Array=s("Int16Array");is.uint16Array=s("Uint16Array");is.int32Array=s("Int32Array");is.uint32Array=s("Uint32Array");is.float32Array=s("Float32Array");is.float64Array=s("Float64Array");is.bigInt64Array=s("BigInt64Array");is.bigUint64Array=s("BigUint64Array");is.arrayBuffer=s("ArrayBuffer");is.sharedArrayBuffer=s("SharedArrayBuffer");is.dataView=s("DataView");is.directInstanceOf=((e,t)=>Object.getPrototypeOf(e)===t.prototype);is.urlInstance=(e=>s("URL")(e));is.urlString=(e=>{if(!is.string(e)){return false}try{new URL(e);return true}catch(e){return false}});is.truthy=(e=>Boolean(e));is.falsy=(e=>!e);is.nan=(e=>Number.isNaN(e));const c=new Set(["undefined","string","number","bigint","boolean","symbol"]);is.primitive=(e=>is.null_(e)||c.has(typeof e));is.integer=(e=>Number.isInteger(e));is.safeInteger=(e=>Number.isSafeInteger(e));is.plainObject=(e=>{if(i(e)!=="Object"){return false}const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})});const u=new Set(["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"]);is.typedArray=(e=>{const t=i(e);if(t===undefined){return false}return u.has(t)});const l=e=>is.safeInteger(e)&&e>=0;is.arrayLike=(e=>!is.nullOrUndefined(e)&&!is.function_(e)&&l(e.length));is.inRange=((e,t)=>{if(is.number(t)){return e>=Math.min(0,t)&&e<=Math.max(t,0)}if(is.array(t)&&t.length===2){return e>=Math.min(...t)&&e<=Math.max(...t)}throw new TypeError(`Invalid range: ${JSON.stringify(t)}`)});const f=1;const h=["innerHTML","ownerDocument","style","attributes","nodeValue"];is.domElement=(e=>is.object(e)&&e.nodeType===f&&is.string(e.nodeName)&&!is.plainObject(e)&&h.every(t=>t in e));is.observable=(e=>{var t,r,n,i;if(!e){return false}if(e===((r=(t=e)[Symbol.observable])===null||r===void 0?void 0:r.call(t))){return true}if(e===((i=(n=e)["@@observable"])===null||i===void 0?void 0:i.call(n))){return true}return false});is.nodeStream=(e=>is.object(e)&&is.function_(e.pipe)&&!is.observable(e));is.infinite=(e=>e===Infinity||e===-Infinity);const p=e=>t=>is.integer(t)&&Math.abs(t%2)===e;is.evenInteger=p(0);is.oddInteger=p(1);is.emptyArray=(e=>is.array(e)&&e.length===0);is.nonEmptyArray=(e=>is.array(e)&&e.length>0);is.emptyString=(e=>is.string(e)&&e.length===0);is.nonEmptyString=(e=>is.string(e)&&e.length>0);const d=e=>is.string(e)&&!/\S/.test(e);is.emptyStringOrWhitespace=(e=>is.emptyString(e)||d(e));is.emptyObject=(e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length===0);is.nonEmptyObject=(e=>is.object(e)&&!is.map(e)&&!is.set(e)&&Object.keys(e).length>0);is.emptySet=(e=>is.set(e)&&e.size===0);is.nonEmptySet=(e=>is.set(e)&&e.size>0);is.emptyMap=(e=>is.map(e)&&e.size===0);is.nonEmptyMap=(e=>is.map(e)&&e.size>0);const m=(e,t,r)=>{if(!is.function_(t)){throw new TypeError(`Invalid predicate: ${JSON.stringify(t)}`)}if(r.length===0){throw new TypeError("Invalid number of values")}return e.call(r,t)};is.any=((e,...t)=>{const r=is.array(e)?e:[e];return r.some(e=>m(Array.prototype.some,e,t))});is.all=((e,...t)=>m(Array.prototype.every,e,t));const y=(e,t,r)=>{if(!e){throw new TypeError(`Expected value which is \`${t}\`, received value of type \`${is(r)}\`.`)}};t.assert={undefined:e=>y(is.undefined(e),"undefined",e),string:e=>y(is.string(e),"string",e),number:e=>y(is.number(e),"number",e),bigint:e=>y(is.bigint(e),"bigint",e),function_:e=>y(is.function_(e),"Function",e),null_:e=>y(is.null_(e),"null",e),class_:e=>y(is.class_(e),"Class",e),boolean:e=>y(is.boolean(e),"boolean",e),symbol:e=>y(is.symbol(e),"symbol",e),numericString:e=>y(is.numericString(e),"string with a number",e),array:e=>y(is.array(e),"Array",e),buffer:e=>y(is.buffer(e),"Buffer",e),nullOrUndefined:e=>y(is.nullOrUndefined(e),"null or undefined",e),object:e=>y(is.object(e),"Object",e),iterable:e=>y(is.iterable(e),"Iterable",e),asyncIterable:e=>y(is.asyncIterable(e),"AsyncIterable",e),generator:e=>y(is.generator(e),"Generator",e),asyncGenerator:e=>y(is.asyncGenerator(e),"AsyncGenerator",e),nativePromise:e=>y(is.nativePromise(e),"native Promise",e),promise:e=>y(is.promise(e),"Promise",e),generatorFunction:e=>y(is.generatorFunction(e),"GeneratorFunction",e),asyncGeneratorFunction:e=>y(is.asyncGeneratorFunction(e),"AsyncGeneratorFunction",e),asyncFunction:e=>y(is.asyncFunction(e),"AsyncFunction",e),boundFunction:e=>y(is.boundFunction(e),"Function",e),regExp:e=>y(is.regExp(e),"RegExp",e),date:e=>y(is.date(e),"Date",e),error:e=>y(is.error(e),"Error",e),map:e=>y(is.map(e),"Map",e),set:e=>y(is.set(e),"Set",e),weakMap:e=>y(is.weakMap(e),"WeakMap",e),weakSet:e=>y(is.weakSet(e),"WeakSet",e),int8Array:e=>y(is.int8Array(e),"Int8Array",e),uint8Array:e=>y(is.uint8Array(e),"Uint8Array",e),uint8ClampedArray:e=>y(is.uint8ClampedArray(e),"Uint8ClampedArray",e),int16Array:e=>y(is.int16Array(e),"Int16Array",e),uint16Array:e=>y(is.uint16Array(e),"Uint16Array",e),int32Array:e=>y(is.int32Array(e),"Int32Array",e),uint32Array:e=>y(is.uint32Array(e),"Uint32Array",e),float32Array:e=>y(is.float32Array(e),"Float32Array",e),float64Array:e=>y(is.float64Array(e),"Float64Array",e),bigInt64Array:e=>y(is.bigInt64Array(e),"BigInt64Array",e),bigUint64Array:e=>y(is.bigUint64Array(e),"BigUint64Array",e),arrayBuffer:e=>y(is.arrayBuffer(e),"ArrayBuffer",e),sharedArrayBuffer:e=>y(is.sharedArrayBuffer(e),"SharedArrayBuffer",e),dataView:e=>y(is.dataView(e),"DataView",e),urlInstance:e=>y(is.urlInstance(e),"URL",e),urlString:e=>y(is.urlString(e),"string with a URL",e),truthy:e=>y(is.truthy(e),"truthy",e),falsy:e=>y(is.falsy(e),"falsy",e),nan:e=>y(is.nan(e),"NaN",e),primitive:e=>y(is.primitive(e),"primitive",e),integer:e=>y(is.integer(e),"integer",e),safeInteger:e=>y(is.safeInteger(e),"integer",e),plainObject:e=>y(is.plainObject(e),"plain object",e),typedArray:e=>y(is.typedArray(e),"TypedArray",e),arrayLike:e=>y(is.arrayLike(e),"array-like",e),domElement:e=>y(is.domElement(e),"Element",e),observable:e=>y(is.observable(e),"Observable",e),nodeStream:e=>y(is.nodeStream(e),"Node.js Stream",e),infinite:e=>y(is.infinite(e),"infinite number",e),emptyArray:e=>y(is.emptyArray(e),"empty array",e),nonEmptyArray:e=>y(is.nonEmptyArray(e),"non-empty array",e),emptyString:e=>y(is.emptyString(e),"empty string",e),nonEmptyString:e=>y(is.nonEmptyString(e),"non-empty string",e),emptyStringOrWhitespace:e=>y(is.emptyStringOrWhitespace(e),"empty string or whitespace",e),emptyObject:e=>y(is.emptyObject(e),"empty object",e),nonEmptyObject:e=>y(is.nonEmptyObject(e),"non-empty object",e),emptySet:e=>y(is.emptySet(e),"empty set",e),nonEmptySet:e=>y(is.nonEmptySet(e),"non-empty set",e),emptyMap:e=>y(is.emptyMap(e),"empty map",e),nonEmptyMap:e=>y(is.nonEmptyMap(e),"non-empty map",e),evenInteger:e=>y(is.evenInteger(e),"even integer",e),oddInteger:e=>y(is.oddInteger(e),"odd integer",e),directInstanceOf:(e,t)=>y(is.directInstanceOf(e,t),"T",e),inRange:(e,t)=>y(is.inRange(e,t),"in range",e),any:(e,...t)=>y(is.any(e,...t),"predicate returns truthy for any value",t),all:(e,...t)=>y(is.all(e,...t),"predicate returns truthy for all values",t)};Object.defineProperties(is,{class:{value:is.class_},function:{value:is.function_},null:{value:is.null_}});Object.defineProperties(t.assert,{class:{value:t.assert.class_},function:{value:t.assert.function_},null:{value:t.assert.null_}});t.default=is;e.exports=is;e.exports.default=is;e.exports.assert=t.assert},4529:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8093);const i=r(1669);const s=Number(process.versions.node.split(".")[0]);const o=e=>{if(e.timings){return e.timings}const t={start:Date.now(),socket:undefined,lookup:undefined,connect:undefined,secureConnect:undefined,upload:undefined,response:undefined,end:undefined,error:undefined,abort:undefined,phases:{wait:undefined,dns:undefined,tcp:undefined,tls:undefined,request:undefined,firstByte:undefined,download:undefined,total:undefined}};e.timings=t;const r=e=>{const r=e.emit.bind(e);e.emit=((n,...i)=>{if(n==="error"){t.error=Date.now();t.phases.total=t.error-t.start;e.emit=r}return r(n,...i)})};r(e);const o=()=>{t.abort=Date.now();if(!t.response||s>=13){t.phases.total=Date.now()-t.start}};e.prependOnceListener("abort",o);const a=e=>{t.socket=Date.now();t.phases.wait=t.socket-t.start;if(i.types.isProxy(e)){return}const r=()=>{t.lookup=Date.now();t.phases.dns=t.lookup-t.socket};e.prependOnceListener("lookup",r);n.default(e,{connect:()=>{t.connect=Date.now();if(t.lookup===undefined){e.removeListener("lookup",r);t.lookup=t.connect;t.phases.dns=t.lookup-t.socket}t.phases.tcp=t.connect-t.lookup},secureConnect:()=>{t.secureConnect=Date.now();t.phases.tls=t.secureConnect-t.connect}})};if(e.socket){a(e.socket)}else{e.prependOnceListener("socket",a)}const c=()=>{var e;t.upload=Date.now();t.phases.request=t.upload-((e=t.secureConnect)!==null&&e!==void 0?e:t.connect)};const u=()=>{if(typeof e.writableFinished==="boolean"){return e.writableFinished}return e.finished&&e.outputSize===0&&(!e.socket||e.socket.writableLength===0)};if(u()){c()}else{e.prependOnceListener("finish",c)}e.prependOnceListener("response",e=>{t.response=Date.now();t.phases.firstByte=t.response-t.upload;e.timings=t;r(e);e.prependOnceListener("end",()=>{t.end=Date.now();t.phases.download=t.end-t.response;t.phases.total=t.end-t.start});e.prependOnceListener("aborted",o)});return t};t.default=o;e.exports=o;e.exports.default=o},6164:e=>{"use strict";e.exports=function diff(e){var t=arguments.length;var r=0;while(++r<t){e=diffArray(e,arguments[r])}return e};function diffArray(e,t){if(!Array.isArray(t)){return e.slice()}var r=t.length;var n=e.length;var i=-1;var s=[];while(++i<n){var o=e[i];var a=false;for(var c=0;c<r;c++){var u=t[c];if(o===u){a=true;break}}if(a===false){s.push(o)}}return s}},9108:e=>{"use strict";e.exports=function(e){return flat(e,[])};function flat(e,t){var r=0,n;var i=e.length;for(;r<i;r++){n=e[r];Array.isArray(n)?flat(n,t):t.push(n)}return t}},4954:e=>{"use strict";e.exports=function union(e){if(!Array.isArray(e)){throw new TypeError("arr-union expects the first argument to be an array.")}var t=arguments.length;var r=0;while(++r<t){var n=arguments[r];if(!n)continue;if(!Array.isArray(n)){n=[n]}for(var i=0;i<n.length;i++){var s=n[i];if(e.indexOf(s)>=0){continue}e.push(s)}}return e}},4653:e=>{"use strict";function uniqNoSet(e){var t=[];for(var r=0;r<e.length;r++){if(t.indexOf(e[r])===-1){t.push(e[r])}}return t}function uniqSet(e){var t=new Set;return e.filter(function(e){if(!t.has(e)){t.add(e);return true}return false})}function uniqSetWithForEach(e){var t=[];new Set(e).forEach(function(e){t.push(e)});return t}function doesForEachActuallyWork(){var e=false;new Set([true]).forEach(function(t){e=t});return e===true}if("Set"in global){if(typeof Set.prototype.forEach==="function"&&doesForEachActuallyWork()){e.exports=uniqSetWithForEach}else{e.exports=uniqSet}}else{e.exports=uniqNoSet}},68:e=>{"use strict";e.exports=function unique(e){if(!Array.isArray(e)){throw new TypeError("array-unique expects an array.")}var t=e.length;var r=-1;while(r++<t){var n=r+1;for(;n<e.length;++n){if(e[r]===e[n]){e.splice(n--,1)}}}return e};e.exports.immutable=function uniqueImmutable(t){if(!Array.isArray(t)){throw new TypeError("array-unique expects an array.")}var r=t.length;var n=new Array(r);for(var i=0;i<r;i++){n[i]=t[i]}return e.exports(n)}},1827:e=>{"use strict";e.exports=function(e){if(e===null||e===undefined){return[]}return Array.isArray(e)?e:[e]}},3604:e=>{"use strict";e.exports=function(e,t){if(e===null||typeof e==="undefined"){throw new TypeError("expected first argument to be an object.")}if(typeof t==="undefined"||typeof Symbol==="undefined"){return e}if(typeof Object.getOwnPropertySymbols!=="function"){return e}var r=Object.prototype.propertyIsEnumerable;var n=Object(e);var i=arguments.length,s=0;while(++s<i){var o=Object(arguments[s]);var a=Object.getOwnPropertySymbols(o);for(var c=0;c<a.length;c++){var u=a[c];if(r.call(o,u)){n[u]=o[u]}}}return n}},3691:(e,t,r)=>{var n=r(9356);function retry(e,t){function run(r,i){var s=t||{};if(!("randomize"in s)){s.randomize=true}var o=n.operation(s);function bail(e){i(e||new Error("Aborted"))}function onError(e,t){if(e.bail){bail(e);return}if(!o.retry(e)){i(o.mainError())}else if(s.onRetry){s.onRetry(e,t)}}function runAttempt(t){var n;try{n=e(bail,t)}catch(e){onError(e,t);return}Promise.resolve(n).then(r).catch(function catchIt(e){onError(e,t)})}o.attempt(runAttempt)}return new Promise(run)}e.exports=retry},3248:e=>{"use strict";function atob(e){return Buffer.from(e,"base64").toString("binary")}e.exports=atob.atob=atob},3353:e=>{"use strict";e.exports=balanced;function balanced(e,t,r){if(e instanceof RegExp)e=maybeMatch(e,r);if(t instanceof RegExp)t=maybeMatch(t,r);var n=range(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function maybeMatch(e,t){var r=t.match(e);return r?r[0]:null}balanced.range=range;function range(e,t,r){var n,i,s,o,a;var c=r.indexOf(e);var u=r.indexOf(t,c+1);var l=c;if(c>=0&&u>0){if(e===t){return[c,u]}n=[];s=r.length;while(l>=0&&!a){if(l==c){n.push(l);c=r.indexOf(e,l+1)}else if(n.length==1){a=[n.pop(),u]}else{i=n.pop();if(i<s){s=i;o=u}u=r.indexOf(t,l+1)}l=c<u&&c>=0?c:u}if(n.length){a=[s,o]}}return a}},2568:(e,t,r)=>{"use strict";var n=r(1669);var i=r(3150);var s=r(8047);var o=r(7141);var a=r(7328);var c=r(9657);var u=r(9859);var l=r(3157);function namespace(e){var t=e?s.namespace(e):s;var r=[];function Base(e,r){if(!(this instanceof Base)){return new Base(e,r)}t.call(this,e);this.is("base");this.initBase(e,r)}n.inherits(Base,t);o(Base);Base.prototype.initBase=function(t,n){this.options=c({},this.options,n);this.cache=this.cache||{};this.define("registered",{});if(e)this[e]={};this.define("_callbacks",this._callbacks);if(a(t)){this.visit("set",t)}Base.run(this,"use",r)};Base.prototype.is=function(e){if(typeof e!=="string"){throw new TypeError("expected name to be a string")}this.define("is"+u(e),true);this.define("_name",e);this.define("_appname",e);return this};Base.prototype.isRegistered=function(e,t){if(this.registered.hasOwnProperty(e)){return true}if(t!==false){this.registered[e]=true;this.emit("plugin",e)}return false};Base.prototype.use=function(e){e.call(this,this);return this};Base.prototype.define=function(e,t){if(a(e)){return this.visit("define",e)}i(this,e,t);return this};Base.prototype.mixin=function(e,t){Base.prototype[e]=t;return this};Base.prototype.mixins=Base.prototype.mixins||[];Object.defineProperty(Base.prototype,"base",{configurable:true,get:function(){return this.parent?this.parent.base:this}});i(Base,"use",function(e){r.push(e);return Base});i(Base,"run",function(e,t,r){var n=r.length,i=0;while(n--){e[t](r[i++])}return Base});i(Base,"extend",l.extend(Base,function(e,t){e.prototype.mixins=e.prototype.mixins||[];i(e,"mixin",function(t){var r=t(e.prototype,e);if(typeof r==="function"){e.prototype.mixins.push(r)}return e});i(e,"mixins",function(t){Base.run(t,"mixin",e.prototype.mixins);return e});e.prototype.mixin=function(t,r){e.prototype[t]=r;return this};return Base}));i(Base,"mixin",function(e){var t=e(Base.prototype,Base);if(typeof t==="function"){Base.prototype.mixins.push(t)}return Base});i(Base,"mixins",function(e){Base.run(e,"mixin",Base.prototype.mixins);return Base});i(Base,"inherit",l.inherit);i(Base,"bubble",l.bubble);return Base}e.exports=namespace();e.exports.namespace=namespace},3150:(e,t,r)=>{"use strict";var n=r(5721);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},8047:(e,t,r)=>{"use strict";var n=r(7328);var i=r(7141);var s=r(6595);var o=r(328);var a=r(6405);var c=r(2281);var u=r(3826);var l=r(5297);var f=r(4927);function namespace(e){function Cache(t){if(e){this[e]={}}if(t){this.set(t)}}i(Cache.prototype);Cache.prototype.set=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}if(n(t)||Array.isArray(t)){this.visit("set",t)}else{f(e?this[e]:this,t,r);this.emit("set",t,r)}return this};Cache.prototype.union=function(t,r){if(Array.isArray(t)&&arguments.length===2){t=o(t)}var n=e?this[e]:this;a(n,t,arrayify(r));this.emit("union",r);return this};Cache.prototype.get=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);this.emit("get",t,n);return n};Cache.prototype.has=function(t){t=o(arguments);var r=e?this[e]:this;var n=u(r,t);var i=typeof n!=="undefined";this.emit("has",t,i);return i};Cache.prototype.del=function(t){if(Array.isArray(t)){this.visit("del",t)}else{c(e?this[e]:this,t);this.emit("del",t)}return this};Cache.prototype.clear=function(){if(e){this[e]={}}};Cache.prototype.visit=function(e,t){s(this,e,t);return this};return Cache}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}e.exports=namespace();e.exports.namespace=namespace},9147:(e,t,r)=>{"use strict";const{Resolver:n,V4MAPPED:i,ADDRCONFIG:s}=r(881);const{promisify:o}=r(1669);const a=r(2087);const c=r(1050);const u=Symbol("cacheableLookupData");const l=Symbol("cacheableLookupInstance");const f=e=>{if(!(e&&typeof e.createConnection==="function")){throw new Error("Expected an Agent instance as the first argument")}};const h=e=>{for(const t of e){t.address=`::ffff:${t.address}`;t.family=6}};const p=()=>{let e=false;let t=false;for(const r of Object.values(a.networkInterfaces())){for(const n of r){if(n.internal){continue}if(n.family==="IPv6"){t=true}else{e=true}if(e&&t){break}}}return{has4:e,has6:t}};class CacheableLookup{constructor({cacheAdapter:e,maxTtl:t=Infinity,resolver:r}={}){this.cache=new c({uri:typeof e==="string"&&e,store:typeof e!=="string"&&e,namespace:"cached-lookup"});this.maxTtl=t;this._resolver=r||new n;this._resolve4=o(this._resolver.resolve4.bind(this._resolver));this._resolve6=o(this._resolver.resolve6.bind(this._resolver));this._iface=p();this.lookup=this.lookup.bind(this);this.lookupAsync=this.lookupAsync.bind(this)}set servers(e){this._resolver.setServers(e)}get servers(){return this._resolver.getServers()}lookup(e,t,r){if(typeof t==="function"){r=t;t={}}this.lookupAsync(e,{...t,throwNotFound:true}).then(e=>{if(t.all){r(null,e)}else{r(null,e.address,e.family,e.expires,e.ttl)}}).catch(r)}async lookupAsync(e,t={}){let r;if(!t.family&&t.all){const[t,n]=await Promise.all([this.lookupAsync(e,{all:true,family:4}),this.lookupAsync(e,{all:true,family:6})]);r=[...t,...n]}else{r=await this.query(e,t.family||4);if(r.length===0&&t.family===6&&t.hints&i){r=await this.query(e,4);h(r)}}if(t.hints&s){const{_iface:e}=this;r=r.filter(t=>t.family===6?e.has6:e.has4)}if(r.length===0&&t.throwNotFound){const t=new Error(`ENOTFOUND ${e}`);t.code="ENOTFOUND";t.hostname=e;throw t}const n=Date.now();r=r.filter(e=>e.ttl===0||n<e.expires);if(t.all){return r}if(r.length===1){return r[0]}if(r.length===0){return undefined}return this._getEntry(r)}async query(e,t){let r=await this.cache.get(`${e}:${t}`);if(!r){r=await this.queryAndCache(e,t)}return r}async queryAndCache(e,t){const r=t===4?this._resolve4:this._resolve6;const n=await r(e,{ttl:true});if(n===undefined){return[]}const i=Date.now();let s=0;for(const e of n){s=Math.max(s,e.ttl);e.family=t;e.expires=i+e.ttl*1e3}s=Math.min(this.maxTtl,s)*1e3;if(this.maxTtl!==0&&s!==0){await this.cache.set(`${e}:${t}`,n,s)}return n}_getEntry(e){return e[Math.floor(Math.random()*e.length)]}install(e){f(e);if(u in e){throw new Error("CacheableLookup has been already installed")}e[u]=e.createConnection;e[l]=this;e.createConnection=((t,r)=>{if(!("lookup"in t)){t.lookup=this.lookup}return e[u](t,r)})}uninstall(e){f(e);if(e[u]){if(e[l]!==this){throw new Error("The agent is not owned by this CacheableLookup instance")}e.createConnection=e[u];delete e[u];delete e[l]}}updateInterfaceInfo(){this._iface=p()}}e.exports=CacheableLookup;e.exports.default=CacheableLookup},2547:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}const o=new n({objectMode:s});if(r){o.setEncoding(r)}let a=0;const c=[];o.on("data",e=>{c.push(e);if(s){a=c.length}else{a+=e.length}});o.getBufferedValue=(()=>{if(t){return c}return i?Buffer.concat(c,a):c.join("")});o.getBufferedLength=(()=>a);return o})},3537:(e,t,r)=>{"use strict";const{constants:n}=r(4293);const i=r(9595);const s=r(2547);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let o;await new Promise((a,c)=>{const u=e=>{if(e&&o.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=o.getBufferedValue()}c(e)};o=i(e,s(t),e=>{if(e){u(e);return}a()});o.on("data",()=>{if(o.getBufferedLength()>r){u(new MaxBufferError)}})});return o.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},3817:(e,t,r)=>{"use strict";const n=r(8614);const i=r(8835);const s=r(9966);const o=r(3537);const a=r(5855);const c=r(7431);const u=r(530);const l=r(9336);const f=r(1050);class CacheableRequest{constructor(e,t){if(typeof e!=="function"){throw new TypeError("Parameter `request` must be a function")}this.cache=new f({uri:typeof t==="string"&&t,store:typeof t!=="string"&&t,namespace:"cacheable-request"});return this.createCacheableRequest(e)}createCacheableRequest(e){return(t,r)=>{let f;if(typeof t==="string"){f=normalizeUrlObject(i.parse(t));t={}}else if(t instanceof i.URL){f=normalizeUrlObject(i.parse(t.toString()));t={}}else{const[e,...r]=(t.path||"").split("?");const n=r.length>0?`?${r.join("?")}`:"";f=normalizeUrlObject({...t,pathname:e,search:n})}t={headers:{},method:"GET",cache:true,strictTtl:false,automaticFailover:false,...t,...urlObjectToRequestOptions(f)};t.headers=u(t.headers);const h=new n;const p=s(i.format(f),{stripWWW:false,removeTrailingSlash:false,stripAuthentication:false});const d=`${t.method}:${p}`;let m=false;let y=false;const v=t=>{y=true;let n=false;let i;const s=new Promise(e=>{i=(()=>{if(!n){n=true;e()}})});const u=e=>{if(m&&!t.forceRefresh){e.status=e.statusCode;const r=a.fromObject(m.cachePolicy).revalidatedPolicy(t,e);if(!r.modified){const t=r.policy.responseHeaders();e=new c(m.statusCode,t,m.body,m.url);e.cachePolicy=r.policy;e.fromCache=true}}if(!e.fromCache){e.cachePolicy=new a(t,e,t);e.fromCache=false}let i;if(t.cache&&e.cachePolicy.storable()){i=l(e);(async()=>{try{const r=o.buffer(e);await Promise.race([s,new Promise(t=>e.once("end",t))]);if(n){return}const i=await r;const a={cachePolicy:e.cachePolicy.toObject(),url:e.url,statusCode:e.fromCache?m.statusCode:e.statusCode,body:i};let c=t.strictTtl?e.cachePolicy.timeToLive():undefined;if(t.maxTtl){c=c?Math.min(c,t.maxTtl):t.maxTtl}await this.cache.set(d,a,c)}catch(e){h.emit("error",new CacheableRequest.CacheError(e))}})()}else if(t.cache&&m){(async()=>{try{await this.cache.delete(d)}catch(e){h.emit("error",new CacheableRequest.CacheError(e))}})()}h.emit("response",i||e);if(typeof r==="function"){r(i||e)}};try{const r=e(t,u);r.once("error",i);r.once("abort",i);h.emit("request",r)}catch(e){h.emit("error",new CacheableRequest.RequestError(e))}};(async()=>{const e=async e=>{await Promise.resolve();const t=e.cache?await this.cache.get(d):undefined;if(typeof t==="undefined"){return v(e)}const n=a.fromObject(t.cachePolicy);if(n.satisfiesWithoutRevalidation(e)&&!e.forceRefresh){const e=n.responseHeaders();const i=new c(t.statusCode,e,t.body,t.url);i.cachePolicy=n;i.fromCache=true;h.emit("response",i);if(typeof r==="function"){r(i)}}else{m=t;e.headers=n.revalidationHeaders(e);v(e)}};const n=e=>h.emit("error",new CacheableRequest.CacheError(e));this.cache.once("error",n);h.on("response",()=>this.cache.removeListener("error",n));try{await e(t)}catch(e){if(t.automaticFailover&&!y){v(t)}h.emit("error",new CacheableRequest.CacheError(e))}})();return h}}}function urlObjectToRequestOptions(e){const t={...e};t.path=`${e.pathname||"/"}${e.search||""}`;delete t.pathname;delete t.search;return t}function normalizeUrlObject(e){return{protocol:e.protocol,auth:e.auth,hostname:e.hostname||e.host||"localhost",port:e.port,pathname:e.pathname,search:e.search}}CacheableRequest.RequestError=class extends Error{constructor(e){super(e.message);this.name="RequestError";Object.assign(this,e)}};CacheableRequest.CacheError=class extends Error{constructor(e){super(e.message);this.name="CacheError";Object.assign(this,e)}};e.exports=CacheableRequest},3279:(e,t,r)=>{"use strict";var n=r(9415);e.exports=function maybe(e,t){if(e){t.then(function(t){n(function(){e(null,t)})},function(t){n(function(){e(t)})});return undefined}else{return t}}},9415:e=>{"use strict";function makeNext(){if(typeof process==="object"&&typeof process.nextTick==="function"){return process.nextTick}else if(typeof setImmediate==="function"){return setImmediate}else{return function next(e){setTimeout(e,0)}}}e.exports=makeNext()},3157:(e,t,r)=>{"use strict";var n=r(1669);var i=r(4954);var s=r(3018);var o=r(7504);var a=r(7328);var c=e.exports;c.isObject=function isObject(e){return a(e)||typeof e==="function"};c.has=function has(e,t){t=c.arrayify(t);var r=t.length;if(c.isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=c.nativeKeys(e);return c.has(i,t)}if(Array.isArray(e)){var s=e;while(r--){if(s.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")};c.hasAll=function hasAll(e,t){t=c.arrayify(t);var r=t.length;while(r--){if(!c.has(e,t[r])){return false}}return true};c.arrayify=function arrayify(e){return e?Array.isArray(e)?e:[e]:[]};c.noop=function noop(){return};c.identity=function identity(e){return e};c.hasConstructor=function hasConstructor(e){return c.isObject(e)&&typeof e.constructor!=="undefined"};c.nativeKeys=function nativeKeys(e){if(!c.hasConstructor(e))return[];var t=Object.getOwnPropertyNames(e);if("caller"in e)t.push("caller");return t};c.getDescriptor=function getDescriptor(e,t){if(!c.isObject(e)){throw new TypeError("expected an object.")}if(typeof t!=="string"){throw new TypeError("expected key to be a string.")}return Object.getOwnPropertyDescriptor(e,t)};c.copyDescriptor=function copyDescriptor(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}if(typeof r!=="string"){throw new TypeError("expected name to be a string.")}var n=c.getDescriptor(t,r);if(n)Object.defineProperty(e,r,n)};c.copy=function copy(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=Object.getOwnPropertyNames(t);var i=Object.keys(t);var o=n.length,a;r=c.arrayify(r);while(o--){a=n[o];if(c.has(i,a)){s(e,a,t[a])}else if(!(a in e)&&!c.has(r,a)){c.copyDescriptor(e,t,a)}}};c.inherit=function inherit(e,t,r){if(!c.isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!c.isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=[];for(var i in t){n.push(i);e[i]=t[i]}n=n.concat(c.arrayify(r));var s=t.prototype||t;var o=e.prototype||e;c.copy(o,s,n)};c.extend=function(){return o.apply(null,arguments)};c.bubble=function(e,t){t=t||[];e.bubble=function(r,n){if(Array.isArray(n)){t=i([],t,n)}var s=t.length;var o=-1;while(++o<s){var a=t[o];e.on(a,r.emit.bind(r,a))}c.bubble(r,t)}}},477:e=>{"use strict";const t=["destroy","setTimeout","socket","headers","trailers","rawHeaders","statusCode","httpVersion","httpVersionMinor","httpVersionMajor","rawTrailers","statusMessage"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}})},9336:(e,t,r)=>{"use strict";const n=r(2413).PassThrough;const i=r(477);const s=e=>{if(!(e&&e.pipe)){throw new TypeError("Parameter `response` must be a response stream.")}const t=new n;i(e,t);return e.pipe(t)};e.exports=s},6595:(e,t,r)=>{"use strict";var n=r(1345);var i=r(6519);e.exports=function(e,t,r){var s;if(typeof r==="string"&&t in e){var o=[].slice.call(arguments,2);s=e[t].apply(e,o)}else if(Array.isArray(r)){s=i.apply(null,arguments)}else{s=n.apply(null,arguments)}if(typeof s!=="undefined"){return s}return e}},7141:e=>{if(true){e.exports=Emitter}function Emitter(e){if(e)return mixin(e)}function mixin(e){for(var t in Emitter.prototype){e[t]=Emitter.prototype[t]}return e}Emitter.prototype.on=Emitter.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};Emitter.prototype.once=function(e,t){function on(){this.off(e,on);t.apply(this,arguments)}on.fn=t;this.on(e,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var n;for(var i=0;i<r.length;i++){n=r[i];if(n===t||n.fn===t){r.splice(i,1);break}}if(r.length===0){delete this._callbacks["$"+e]}return this};Emitter.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=new Array(arguments.length-1),r=this._callbacks["$"+e];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n){r[n].apply(this,t)}}return this};Emitter.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};Emitter.prototype.hasListeners=function(e){return!!this.listeners(e).length}},4527:e=>{e.exports=function(e,r){var n=[];for(var i=0;i<e.length;i++){var s=r(e[i],i);if(t(s))n.push.apply(n,s);else n.push(s)}return n};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},4016:e=>{"use strict";e.exports=function copyDescriptor(e,t,r,n){if(!isObject(t)&&typeof t!=="function"){n=r;r=t;t=e}if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected the first argument to be an object")}if(!isObject(t)&&typeof t!=="function"){throw new TypeError("expected provider to be an object")}if(typeof n!=="string"){n=r}if(typeof r!=="string"){throw new TypeError("expected key to be a string")}if(!(r in t)){throw new Error('property "'+r+'" does not exist')}var i=Object.getOwnPropertyDescriptor(t,r);if(i)Object.defineProperty(e,n,i)};function isObject(e){return{}.toString.call(e)==="[object Object]"}},5473:(e,t,r)=>{"use strict";const n=r(3783);class CpFileError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpFileError"}}e.exports=CpFileError},6711:(e,t,r)=>{"use strict";const n=r(552);const i=r(7153);const s=r(9367);const o=r(5473);const a=s(n);t.closeSync=n.closeSync.bind(n);t.createWriteStream=n.createWriteStream.bind(n);t.createReadStream=((e,t)=>new Promise((r,i)=>{const s=n.createReadStream(e,t);s.once("error",t=>{i(new o(`Cannot read from \`${e}\`: ${t.message}`,t))});s.once("readable",()=>{r(s)});s.once("end",()=>{r(s)})}));t.stat=(e=>a.stat(e).catch(t=>{throw new o(`Cannot stat path \`${e}\`: ${t.message}`,t)}));t.lstat=(e=>a.lstat(e).catch(t=>{throw new o(`lstat \`${e}\` failed: ${t.message}`,t)}));t.utimes=((e,t,r)=>a.utimes(e,t,r).catch(t=>{throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}));t.chmod=((e,t)=>a.chmod(e,t).catch(t=>{throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}));t.chown=((e,t,r)=>a.chown(e,t,r).catch(t=>{throw new o(`chown \`${e}\` failed: ${t.message}`,t)}));t.openSync=((e,t,r)=>{try{return n.openSync(e,t,r)}catch(r){if(t.includes("w")){throw new o(`Cannot write to \`${e}\`: ${r.message}`,r)}throw new o(`Cannot open \`${e}\`: ${r.message}`,r)}});t.readSync=((e,t,r,i,s,a)=>{try{return n.readSync(e,t,r,i,s)}catch(e){throw new o(`Cannot read from \`${a}\`: ${e.message}`,e)}});t.writeSync=((e,t,r,i,s,a)=>{try{return n.writeSync(e,t,r,i,s)}catch(e){throw new o(`Cannot write to \`${a}\`: ${e.message}`,e)}});t.statSync=(e=>{try{return n.statSync(e)}catch(t){throw new o(`stat \`${e}\` failed: ${t.message}`,t)}});t.fstatSync=((e,t)=>{try{return n.fstatSync(e)}catch(e){throw new o(`fstat \`${t}\` failed: ${e.message}`,e)}});t.futimesSync=((e,t,r,i)=>{try{return n.futimesSync(e,t,r,i)}catch(e){throw new o(`futimes \`${i}\` failed: ${e.message}`,e)}});t.utimesSync=((e,t,r)=>{try{return n.utimesSync(e,t,r)}catch(t){throw new o(`utimes \`${e}\` failed: ${t.message}`,t)}});t.chmodSync=((e,t)=>{try{return n.chmodSync(e,t)}catch(t){throw new o(`chmod \`${e}\` failed: ${t.message}`,t)}});t.chownSync=((e,t,r)=>{try{return n.chownSync(e,t,r)}catch(t){throw new o(`chown \`${e}\` failed: ${t.message}`,t)}});t.makeDir=(e=>i(e,{fs:n}).catch(t=>{throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}));t.makeDirSync=(e=>{try{i.sync(e,{fs:n})}catch(t){throw new o(`Cannot create directory \`${e}\`: ${t.message}`,t)}});if(n.copyFileSync){t.copyFileSync=((e,t,r)=>{try{n.copyFileSync(e,t,r)}catch(r){throw new o(`Cannot copy from \`${e}\` to \`${t}\`: ${r.message}`,r)}})}},5784:(e,t,r)=>{"use strict";const n=r(5622);const{constants:i}=r(5747);const{Buffer:s}=r(3118);const o=r(5473);const a=r(6711);const c=r(4956);const u=(e,t,r)=>{if(!e||!t){return Promise.reject(new o("`source` and `destination` required"))}r=Object.assign({overwrite:true},r);const i=new c(n.resolve(e),n.resolve(t));const s=a.stat(e).then(e=>{i.size=e.size}).then(()=>a.createReadStream(e)).then(e=>a.makeDir(n.dirname(t)).then(()=>e)).then(e=>new Promise((n,s)=>{const c=a.createWriteStream(t,{flags:r.overwrite?"w":"wx"});e.on("data",()=>{i.written=c.bytesWritten});c.on("error",e=>{if(!r.overwrite&&e.code==="EEXIST"){n(false);return}s(new o(`Cannot write to \`${t}\`: ${e.message}`,e))});c.on("close",()=>{i.written=i.size;n(true)});e.pipe(c)})).then(r=>{if(r){return a.lstat(e).then(e=>Promise.all([a.utimes(t,e.atime,e.mtime),a.chmod(t,e.mode),a.chown(t,e.uid,e.gid)]))}});s.on=((...e)=>{i.on(...e);return s});return s};e.exports=u;e.exports.default=u;const l=(e,t)=>{if(e.isDirectory()){throw Object.assign(new o(`EISDIR: illegal operation on a directory '${t}'`),{errno:-21,code:"EISDIR",source:t})}};const f=(e,t)=>{a.chmodSync(e,t.mode);a.chownSync(e,t.uid,t.gid)};const h=(e,t,r)=>{const s=a.statSync(e);l(s,e);a.makeDirSync(n.dirname(t));const o=r.overwrite?null:i.COPYFILE_EXCL;try{a.copyFileSync(e,t,o)}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}a.utimesSync(t,s.atime,s.mtime);f(t,s)};const p=(e,t,r)=>{let i;let o;let c;let u;const l=100*1024;const h=s.alloc(l);const p=t=>a.readSync(c,h,0,l,t,e);const d=()=>a.writeSync(u,h,0,i,undefined,t);c=a.openSync(e,"r");i=p(0);o=i;a.makeDirSync(n.dirname(t));try{u=a.openSync(t,r.overwrite?"w":"wx")}catch(e){if(!r.overwrite&&e.code==="EEXIST"){return}throw e}d();while(i===l){i=p(o);d();o+=i}const m=a.fstatSync(c,e);a.futimesSync(u,m.atime,m.mtime,t);a.closeSync(c);a.closeSync(u);f(t,m)};e.exports.sync=((e,t,r)=>{if(!e||!t){throw new o("`source` and `destination` required")}r=Object.assign({overwrite:true},r);if(a.copyFileSync){h(e,t,r)}else{p(e,t,r)}})},4956:(e,t,r)=>{"use strict";const n=r(8614);const i=new WeakMap;class ProgressEmitter extends n{constructor(e,t){super();this._source=e;this._destination=t}set written(e){i.set(this,e);this.emitProgress()}get written(){return i.get(this)}emitProgress(){const{size:e,written:t}=this;this.emit("progress",{src:this._source,dest:this._destination,size:e,written:t,percent:t===e?1:t/e})}}e.exports=ProgressEmitter},4542:(e,t,r)=>{"use strict";const n=r(3783);class CpyError extends n{constructor(e,t){super(e,t);Object.assign(this,t);this.name="CpyError"}}e.exports=CpyError},402:(e,t,r)=>{"use strict";const n=r(8614);const i=r(5622);const s=r(1827);const o=r(1317);const a=r(5784);const c=r(4542);const u=(e,t)=>t.cwd?i.resolve(t.cwd,e):e;const l=(e,t,r)=>{let n=i.basename(e);const s=i.dirname(e);if(typeof r.rename==="string"){n=r.rename}else if(typeof r.rename==="function"){n=r.rename(n)}if(r.cwd){t=i.resolve(r.cwd,t)}if(r.parents){return i.join(t,s,n)}return i.join(t,n)};const f=(e,t,r={})=>{e=s(e);const i=new n;if(e.length===0||!t){const e=Promise.reject(new c("`files` and `destination` required"));e.on=((...t)=>{i.on(...t);return e});return e}const f=new Map;let h=0;let p=0;const d=o(e,r).catch(t=>{throw new c(`Cannot glob \`${e}\`: ${t.message}`,t)}).then(e=>{if(e.length===0){i.emit("progress",{totalFiles:0,percent:1,completedFiles:0,completedSize:0})}return Promise.all(e.map(n=>{const s=u(n,r);const o=l(n,t,r);return a(s,o,r).on("progress",t=>{const r=f.get(t.src)||{written:0,percent:0};if(r.written!==t.written||r.percent!==t.percent){p-=r.written;p+=t.written;if(t.percent===1&&r.percent!==1){h++}f.set(t.src,{written:t.written,percent:t.percent});i.emit("progress",{totalFiles:e.length,percent:h/e.length,completedFiles:h,completedSize:p})}}).then(()=>o).catch(e=>{throw new c(`Cannot copy from \`${s}\` to \`${o}\`: ${e.message}`,e)})}))});d.on=((...e)=>{i.on(...e);return d});return d};e.exports=f;e.exports.default=f},7857:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);t.FILE_SYSTEM_ADAPTER={lstat:n.lstat,stat:n.stat,lstatSync:n.lstatSync,statSync:n.statSync};function getFileSystemAdapter(e){if(!e){return t.FILE_SYSTEM_ADAPTER}return Object.assign({},t.FILE_SYSTEM_ADAPTER,e)}t.getFileSystemAdapter=getFileSystemAdapter},5567:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5917);const i=r(4943);function stat(e,t){return new Promise((r,s)=>{i.async(e,n.prepare(t),(e,t)=>e?s(e):r(t))})}t.stat=stat;function statCallback(e,t,r){if(typeof t==="function"){r=t;t=undefined}if(typeof r==="undefined"){throw new TypeError('The "callback" argument must be of type Function.')}i.async(e,n.prepare(t),r)}t.statCallback=statCallback;function statSync(e,t){return i.sync(e,n.prepare(t))}t.statSync=statSync},5917:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(7857);function prepare(e){const t=Object.assign({fs:n.getFileSystemAdapter(e?e.fs:undefined),throwErrorOnBrokenSymlinks:true,followSymlinks:true},e);return t}t.prepare=prepare},4943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function sync(e,t){const r=t.fs.lstatSync(e);if(!isFollowedSymlink(r,t)){return r}try{const n=t.fs.statSync(e);n.isSymbolicLink=(()=>true);return n}catch(e){if(!t.throwErrorOnBrokenSymlinks){return r}throw e}}t.sync=sync;function async(e,t,r){t.fs.lstat(e,(n,i)=>{if(n){return r(n,undefined)}if(!isFollowedSymlink(i,t)){return r(null,i)}t.fs.stat(e,(e,n)=>{if(e){return t.throwErrorOnBrokenSymlinks?r(e):r(null,i)}n.isSymbolicLink=(()=>true);r(null,n)})})}t.async=async;function isFollowedSymlink(e,t){return e.isSymbolicLink()&&t.followSymlinks}t.isFollowedSymlink=isFollowedSymlink},5852:(e,t,r)=>{"use strict";var n=r(4653);e.exports=function(){return n([].concat.apply([],arguments))}},6021:(e,t,r)=>{"use strict";var n=r(2325);var i=r(68);var s=r(2456);var o=r(844);var a=r(8228);var c=r(1583);var u=r(8682);var l=1024*64;var f={};function braces(e,t){var r=u.createKey(String(e),t);var n=[];var s=t&&t.cache===false;if(!s&&f.hasOwnProperty(r)){return f[r]}if(Array.isArray(e)){for(var o=0;o<e.length;o++){n.push.apply(n,braces.create(e[o],t))}}else{n=braces.create(e,t)}if(t&&t.nodupes===true){n=i(n)}if(!s){f[r]=n}return n}braces.expand=function(e,t){return braces.create(e,s({},t,{expand:true}))};braces.optimize=function(e,t){return braces.create(e,t)};braces.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function create(){if(e===""||e.length<3){return[e]}if(u.isEmptySets(e)){return[]}if(u.isQuotedString(e)){return[e.slice(1,-1)]}var r=new c(t);var n=!t||t.expand!==true?r.optimize(e,t):r.expand(e,t);var s=n.output;if(t&&t.noempty===true){s=s.filter(Boolean)}if(t&&t.nodupes===true){s=i(s)}Object.defineProperty(s,"result",{enumerable:false,value:n});return s}return memoize("create",e,t,create)};braces.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=t&&t.maxLength||l;if(e.length>=r){throw new Error("expected pattern to be less than "+r+" characters")}function makeRe(){var r=braces(e,t);var i=s({strictErrors:false},t);return n(r,i)}return memoize("makeRe",e,t,makeRe)};braces.parse=function(e,t){var r=new c(t);return r.parse(e,t)};braces.compile=function(e,t){var r=new c(t);return r.compile(e,t)};braces.clearCache=function(){f=braces.cache={}};function memoize(e,t,r,n){var i=u.createKey(e+":"+t,r);var s=r&&r.cache===false;if(s){braces.clearCache();return n(t,r)}if(f.hasOwnProperty(i)){return f[i]}var o=n(t,r);f[i]=o;return o}braces.Braces=c;braces.compilers=o;braces.parsers=a;braces.cache=f;e.exports=braces},1583:(e,t,r)=>{"use strict";var n=r(2456);var i=r(4253);var s=r(844);var o=r(8228);var a=r(8682);function Braces(e){this.options=n({},e)}Braces.prototype.init=function(e){if(this.isInitialized)return;this.isInitialized=true;var t=a.createOptions({},this.options,e);this.snapdragon=this.options.snapdragon||new i(t);this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;s(this.snapdragon,t);o(this.snapdragon,t);a.define(this.snapdragon,"parse",function(e,t){var r=i.prototype.parse.apply(this,arguments);this.parser.ast.input=e;var n=this.parser.stack;while(n.length){addParent({type:"brace.close",val:""},n.pop())}function addParent(e,t){a.define(e,"parent",t);t.nodes.push(e)}a.define(r,"parser",this.parser);return r})};Braces.prototype.parse=function(e,t){if(e&&typeof e==="object"&&e.nodes)return e;this.init(t);return this.snapdragon.parse(e,t)};Braces.prototype.compile=function(e,t){if(typeof e==="string"){e=this.parse(e,t)}else{this.init(t)}return this.snapdragon.compile(e,t)};Braces.prototype.expand=function(e){var t=this.parse(e,{expand:true});return this.compile(t,{expand:true})};Braces.prototype.optimize=function(e){var t=this.parse(e,{optimize:true});return this.compile(t,{optimize:true})};e.exports=Braces},844:(e,t,r)=>{"use strict";var n=r(8682);e.exports=function(e,t){e.compiler.set("bos",function(){if(this.output)return;this.ast.queue=isEscaped(this.ast)?[this.ast.val]:[];this.ast.count=1}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var i=e.negated;var s=e.inner;s=s.replace(/\\(?=[\\\w]|$)/g,"\\\\");if(s==="]-"){s="\\]\\-"}if(i&&s.indexOf(".")===-1){s+="."}if(i&&s.indexOf("/")===-1){s+="/"}var o=r+i+s+t;var a=e.parent.queue;var c=n.arrayify(a.pop());a.push(n.join(c,o));a.push.apply(a,[])}).set("brace",function(e){e.queue=isEscaped(e)?[e.val]:[];e.count=1;return this.mapVisit(e.nodes)}).set("brace.open",function(e){e.parent.open=e.val}).set("text",function(e){var r=e.parent.queue;var i=e.escaped;var s=[e.val];if(e.optimize===false){t=n.extend({},t,{optimize:false})}if(e.multiplier>1){e.parent.count*=e.multiplier}if(t.quantifiers===true&&n.isQuantifier(e.val)){i=true}else if(e.val.length>1){if(isType(e.parent,"brace")&&!isEscaped(e)){var o=n.expand(e.val,t);s=o.segs;if(o.isOptimized){e.parent.isOptimized=true}if(!s.length){var a=o.val||e.val;if(t.unescape!==false){a=a.replace(/\\([,.])/g,"$1");a=a.replace(/["'`]/g,"")}s=[a];i=true}}}else if(e.val===","){if(t.expand){e.parent.queue.push([""]);s=[""]}else{s=["|"]}}else{i=true}if(i&&isType(e.parent,"brace")){if(e.parent.nodes.length<=4&&e.parent.count===1){e.parent.escaped=true}else if(e.parent.length<=3){e.parent.escaped=true}}if(!hasQueue(e.parent)){e.parent.queue=s;return}var c=n.arrayify(r.pop());if(e.parent.count>1&&t.expand){c=multiply(c,e.parent.count);e.parent.count=1}r.push(n.join(n.flatten(c),s.shift()));r.push.apply(r,s)}).set("brace.close",function(e){var r=e.parent.queue;var i=e.parent.parent;var s=i.queue.pop();var o=e.parent.open;var a=e.val;if(o&&a&&isOptimized(e,t)){o="(";a=")"}var c=n.last(r);if(e.parent.count>1&&t.expand){c=multiply(r.pop(),e.parent.count);e.parent.count=1;r.push(c)}if(a&&typeof c==="string"&&c.length===1){o="";a=""}if((isLiteralBrace(e,t)||noInner(e))&&!e.parent.hasEmpty){r.push(n.join(o,r.pop()||""));r=n.flatten(n.join(r,a))}if(typeof s==="undefined"){i.queue=[r]}else{i.queue.push(n.flatten(n.join(s,r)))}}).set("eos",function(e){if(this.input)return;if(t.optimize!==false){this.output=n.last(n.flatten(this.ast.queue))}else if(Array.isArray(n.last(this.ast.queue))){this.output=n.flatten(this.ast.queue.pop())}else{this.output=n.flatten(this.ast.queue)}if(e.parent.count>1&&t.expand){this.output=multiply(this.output,e.parent.count)}this.output=n.arrayify(this.output);this.ast.queue=[]})};function multiply(e,t,r){return n.flatten(n.repeat(n.arrayify(e),t))}function isEscaped(e){return e.escaped===true}function isOptimized(e,t){if(e.parent.isOptimized)return true;return isType(e.parent,"brace")&&!isEscaped(e.parent)&&t.expand!==true}function isLiteralBrace(e,t){return isEscaped(e.parent)||t.optimize!==false}function noInner(e,t){if(e.parent.queue.length===1){return true}var r=e.parent.nodes;return r.length===3&&isType(r[0],"brace.open")&&!isType(r[1],"text")&&isType(r[2],"brace.close")}function isType(e,t){return typeof e!=="undefined"&&e.type===t}function hasQueue(e){return Array.isArray(e.queue)&&e.queue.length}},8228:(e,t,r)=>{"use strict";var n=r(6227);var i=r(8682);e.exports=function(e,t){e.parser.set("bos",function(){if(!this.parsed){this.ast=this.nodes[0]=new n(this.ast)}}).set("escape",function(){var e=this.position();var r=this.match(/^(?:\\(.)|\$\{)/);if(!r)return;var s=this.prev();var o=i.last(s.nodes);var a=e(new n({type:"text",multiplier:1,val:r[0]}));if(a.val==="\\\\"){return a}if(a.val==="${"){var c=this.input;var u=-1;var l;while(l=c[++u]){this.consume(1);a.val+=l;if(l==="\\"){a.val+=c[++u];continue}if(l==="}"){break}}}if(this.options.unescape!==false){a.val=a.val.replace(/\\([{}])/g,"$1")}if(o.val==='"'&&this.input.charAt(0)==='"'){o.val=a.val;this.consume(1);return}return concatNodes.call(this,e,a,s,t)}).set("bracket",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^(?:\[([!^]?)([^\]]{2,}|\]-)(\]|[^*+?]+)|\[)/);if(!r)return;var i=this.prev();var s=r[0];var o=r[1]?"^":"";var a=r[2]||"";var c=r[3]||"";if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}var u=this.input.slice(0,2);if(a===""&&u==="\\]"){a+=u;this.consume(2);var l=this.input;var f=-1;var h;while(h=l[++f]){this.consume(1);if(h==="]"){c=h;break}a+=h}}return t(new n({type:"bracket",val:s,escaped:c!=="]",negated:o,inner:a,close:c}))}).set("multiplier",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^\{((?:,|\{,+\})+)\}/);if(!i)return;this.multiplier=true;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,match:i,val:o}));return concatNodes.call(this,r,a,s,t)}).set("brace.open",function(){var e=this.position();var t=this.match(/^\{(?!(?:[^\\}]?|,+)\})/);if(!t)return;var r=this.prev();var s=i.last(r.nodes);if(s&&s.val&&isExtglobChar(s.val.slice(-1))){s.optimize=false}var o=e(new n({type:"brace.open",val:t[0]}));var a=e(new n({type:"brace",nodes:[]}));a.push(o);r.push(a);this.push("brace",a)}).set("brace.close",function(){var e=this.position();var t=this.match(/^\}/);if(!t||!t[0])return;var r=this.pop("brace");var s=e(new n({type:"brace.close",val:t[0]}));if(!this.isType(r,"brace")){if(this.options.strict){throw new Error('missing opening "{"')}s.type="text";s.multiplier=0;s.escaped=true;return s}var o=this.prev();var a=i.last(o.nodes);if(a.text){var c=i.last(a.nodes);if(c.val===")"&&/[!@*?+]\(/.test(a.text)){var u=a.nodes[0];var l=a.nodes[1];if(u.type==="brace.open"&&l&&l.type==="text"){l.optimize=false}}}if(r.nodes.length>2){var f=r.nodes[1];if(f.type==="text"&&f.val===","){r.nodes.splice(1,1);r.nodes.push(f)}}r.push(s)}).set("boundary",function(){var e=this.position();var t=this.match(/^[$^](?!\{)/);if(!t)return;return e(new n({type:"text",val:t[0]}))}).set("nobrace",function(){var e=this.isInside("brace");var t=this.position();var r=this.match(/^\{[^,]?\}/);if(!r)return;var i=this.prev();var s=r[0];if(e&&i.type==="brace"){i.text=i.text||"";i.text+=s}return t(new n({type:"text",multiplier:0,val:s}))}).set("text",function(){var e=this.isInside("brace");var r=this.position();var i=this.match(/^((?!\\)[^${}[\]])+/);if(!i)return;var s=this.prev();var o=i[0];if(e&&s.type==="brace"){s.text=s.text||"";s.text+=o}var a=r(new n({type:"text",multiplier:1,val:o}));return concatNodes.call(this,r,a,s,t)})};function isExtglobChar(e){return e==="!"||e==="@"||e==="*"||e==="?"||e==="+"}function concatNodes(e,t,r,n){t.orig=t.val;var s=this.prev();var o=i.last(s.nodes);var a=false;if(t.val.length>1){var c=t.val.charAt(0);var u=t.val.slice(-1);a=c==='"'&&u==='"'||c==="'"&&u==="'"||c==="`"&&u==="`"}if(a&&n.unescape!==false){t.val=t.val.slice(1,t.val.length-1);t.escaped=true}if(t.match){var l=t.match[1];if(!l||l.indexOf("}")===-1){l=t.match[0]}var f=l.replace(/\{/g,",").replace(/\}/g,"");t.multiplier*=f.length;t.val=""}var h=o.type==="text"&&o.multiplier===1&&t.multiplier===1&&t.val;if(h){o.val+=t.val;return}s.push(t)}},8682:(e,t,r)=>{"use strict";var n=r(4178);var i=e.exports;i.extend=r(2456);i.flatten=r(9108);i.isObject=r(7328);i.fillRange=r(7692);i.repeat=r(9503);i.unique=r(68);i.define=function(e,t,r){Object.defineProperty(e,t,{writable:true,configurable:true,enumerable:false,value:r})};i.isEmptySets=function(e){return/^(?:\{,\})+$/.test(e)};i.isQuotedString=function(e){var t=e.charAt(0);if(t==="'"||t==='"'||t==="`"){return e.slice(-1)===t}return false};i.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}var n=Object.keys(t);for(var i=0;i<n.length;i++){var s=n[i];r+=";"+s+"="+String(t[s])}return r};i.createOptions=function(e){var t=i.extend.apply(null,arguments);if(typeof t.expand==="boolean"){t.optimize=!t.expand}if(typeof t.optimize==="boolean"){t.expand=!t.optimize}if(t.optimize===true){t.makeRe=true}return t};i.join=function(e,t,r){r=r||{};e=i.arrayify(e);t=i.arrayify(t);if(!e.length)return t;if(!t.length)return e;var n=e.length;var s=-1;var o=[];while(++s<n){var a=e[s];if(Array.isArray(a)){for(var c=0;c<a.length;c++){a[c]=i.join(a[c],t,r)}o.push(a);continue}for(var u=0;u<t.length;u++){var l=t[u];if(Array.isArray(l)){o.push(i.join(a,l,r))}else{o.push(a+l)}}}return o};i.split=function(e,t){var r=i.extend({sep:","},t);if(typeof r.keepQuotes!=="boolean"){r.keepQuotes=true}if(r.unescape===false){r.keepEscaping=true}return n(e,r,i.escapeBrackets(r))};i.expand=function(e,t){var r=i.extend({rangeLimit:1e4},t);var n=i.split(e,r);var s={segs:n};if(i.isQuotedString(e)){return s}if(r.rangeLimit===true){r.rangeLimit=1e4}if(n.length>1){if(r.optimize===false){s.val=n[0];return s}s.segs=i.stringifyArray(s.segs)}else if(n.length===1){var o=e.split("..");if(o.length===1){s.val=s.segs[s.segs.length-1]||s.val||e;s.segs=[];return s}if(o.length===2&&o[0]===o[1]){s.escaped=true;s.val=o[0];s.segs=[];return s}if(o.length>1){if(r.optimize!==false){r.optimize=true;delete r.expand}if(r.optimize!==true){var a=Math.min(o[0],o[1]);var c=Math.max(o[0],o[1]);var u=o[2]||1;if(r.rangeLimit!==false&&(c-a)/u>=r.rangeLimit){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}}o.push(r);s.segs=i.fillRange.apply(null,o);if(!s.segs.length){s.escaped=true;s.val=e;return s}if(r.optimize===true){s.segs=i.stringifyArray(s.segs)}if(s.segs===""){s.val=e}else{s.val=s.segs[0]}return s}}else{s.val=e}return s};i.escapeBrackets=function(e){return function(t){if(t.escaped&&t.val==="b"){t.val="\\b";return}if(t.val!=="("&&t.val!=="[")return;var r=i.extend({},e);var n=[];var s=[];var o=[];var a=t.val;var c=t.str;var u=t.idx-1;while(++u<c.length){var l=c[u];if(l==="\\"){a+=(r.keepEscaping===false?"":l)+c[++u];continue}if(l==="("){s.push(l);o.push(l)}if(l==="["){n.push(l);o.push(l)}if(l===")"){s.pop();o.pop();if(!o.length){a+=l;break}}if(l==="]"){n.pop();o.pop();if(!o.length){a+=l;break}}a+=l}t.split=false;t.val=a.slice(1);t.idx=u}};i.isQuantifier=function(e){return/^(?:[0-9]?,[0-9]|[0-9],)$/.test(e)};i.stringifyArray=function(e){return[i.arrayify(e).join("|")]};i.arrayify=function(e){if(typeof e==="undefined"){return[]}if(typeof e==="string"){return[e]}return e};i.isString=function(e){return e!=null&&typeof e==="string"};i.last=function(e,t){return e[e.length-(t||1)]};i.escapeRegex=function(e){return e.replace(/\\?([!^*?()[\]{}+?/])/g,"\\$1")}},2456:(e,t,r)=>{"use strict";var n=r(2663);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},2663:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},7333:(e,t,r)=>{"use strict";var n=r(7328);var i=r(5721);var s=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){s(e,t,r);return e}s(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},4061:(e,t,r)=>{"use strict";const n=r(5622);const i=r(1161);const s=e=>e.length>1?`{${e.join(",")}}`:e[0];const o=(e,t)=>{const r=e[0]==="!"?e.slice(1):e;return n.isAbsolute(r)?r:n.join(t,r)};const a=(e,t)=>{if(n.extname(e)){return`**/${e}`}return`**/${e}.${s(t)}`};const c=(e,t)=>{if(t.files&&!Array.isArray(t.files)){throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``)}if(t.extensions&&!Array.isArray(t.extensions)){throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``)}if(t.files&&t.extensions){return t.files.map(r=>n.join(e,a(r,t.extensions)))}if(t.files){return t.files.map(t=>n.join(e,`**/${t}`))}if(t.extensions){return[n.join(e,`**/*.${s(t.extensions)}`)]}return[n.join(e,"**")]};e.exports=((e,t)=>{t=Object.assign({cwd:process.cwd()},t);if(typeof t.cwd!=="string"){return Promise.reject(new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``))}return Promise.all([].concat(e).map(e=>i.dir(o(e,t.cwd)).then(r=>r?c(e,t):e))).then(e=>[].concat.apply([],e))});e.exports.sync=((e,t)=>{t=Object.assign({cwd:process.cwd()},t);if(typeof t.cwd!=="string"){throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``)}const r=[].concat(e).map(e=>i.dirSync(o(e,t.cwd))?c(e,t):e);return[].concat.apply([],r)})},2074:(e,t,r)=>{"use strict";var n=r(3239);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},81:(e,t,r)=>{const n=r(326);e.exports=n.async;e.exports.default=n.async;e.exports.async=n.async;e.exports.sync=n.sync;e.exports.stream=n.stream;e.exports.generateTasks=n.generateTasks},3106:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(2413);var s=r(5567);var o=r(3083);var a=function(e){n(FileSystemStream,e);function FileSystemStream(){return e!==null&&e.apply(this,arguments)||this}FileSystemStream.prototype.read=function(e,t){var r=this;var n=e.map(this.getFullEntryPath,this);var s=new i.Transform({objectMode:true});s._transform=function(i,o,a){return r.getEntry(n[i],e[i]).then(function(e){if(e!==null&&t(e)){s.push(e)}if(i===n.length-1){s.end()}a()})};for(var o=0;o<n.length;o++){s.write(o)}return s};FileSystemStream.prototype.getEntry=function(e,t){var r=this;return this.getStat(e).then(function(e){return r.makeEntry(e,t)}).catch(function(){return null})};FileSystemStream.prototype.getStat=function(e){return s.stat(e,{throwErrorOnBrokenSymlinks:false})};return FileSystemStream}(o.default);t.default=a},907:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(5567);var s=r(3083);var o=function(e){n(FileSystemSync,e);function FileSystemSync(){return e!==null&&e.apply(this,arguments)||this}FileSystemSync.prototype.read=function(e,t){var r=this;var n=[];e.forEach(function(e){var i=r.getFullEntryPath(e);var s=r.getEntry(i,e);if(s===null||!t(s)){return}n.push(s)});return n};FileSystemSync.prototype.getEntry=function(e,t){try{var r=this.getStat(e);return this.makeEntry(r,t)}catch(e){return null}};FileSystemSync.prototype.getStat=function(e){return i.statSync(e,{throwErrorOnBrokenSymlinks:false})};return FileSystemSync}(s.default);t.default=o},3083:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);var i=function(){function FileSystem(e){this.options=e}FileSystem.prototype.getFullEntryPath=function(e){return n.resolve(this.options.cwd,e)};FileSystem.prototype.makeEntry=function(e,t){e.path=t;e.depth=t.split("/").length;return e};return FileSystem}();t.default=i},326:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(2884);var i=r(54);var s=r(3139);var o=r(6192);var a=r(1714);var c=r(8641);var u=r(7914);function sync(e,t){assertPatternsInput(e);var r=getWorks(e,a.default,t);return c.flatten(r)}t.sync=sync;function async(e,t){try{assertPatternsInput(e)}catch(e){return Promise.reject(e)}var r=getWorks(e,s.default,t);return Promise.all(r).then(c.flatten)}t.async=async;function stream(e,t){assertPatternsInput(e);var r=getWorks(e,o.default,t);return u.merge(r)}t.stream=stream;function generateTasks(e,t){assertPatternsInput(e);var r=[].concat(e);var s=n.prepare(t);return i.generate(r,s)}t.generateTasks=generateTasks;function getWorks(e,t,r){var s=[].concat(e);var o=n.prepare(r);var a=i.generate(s,o);var c=new t(o);return a.map(c.read,c)}function assertPatternsInput(e){if([].concat(e).every(isString)){return}throw new TypeError("Patterns must be a string or an array of strings")}function isString(e){return typeof e==="string"}},2884:function(e,t){"use strict";var r=this&&this.__assign||function(){r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:true});function prepare(e){var t=r({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},e);if(t.onlyDirectories){t.onlyFiles=false}t.brace=!t.nobrace;t.globstar=!t.noglobstar;t.extension=!t.noext;t.case=!t.nocase;if(e){t.brace="brace"in e?e.brace:t.brace;t.globstar="globstar"in e?e.globstar:t.globstar;t.extension="extension"in e?e.extension:t.extension;t.case="case"in e?e.case:t.case}return t}t.prepare=prepare},54:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(3972);function generate(e,t){var r=e.map(n.unixifyPattern);var i=t.ignore.map(n.unixifyPattern);var s=getPositivePatterns(r);var o=getNegativePatternsAsPositive(r,i);var a=!t.case?[]:s.filter(n.isStaticPattern);var c=!t.case?s:s.filter(n.isDynamicPattern);var u=convertPatternsToTasks(a,o,false);var l=convertPatternsToTasks(c,o,true);return u.concat(l)}t.generate=generate;function convertPatternsToTasks(e,t,r){var n=groupPatternsByBaseDirectory(e);if("."in n){var i=convertPatternGroupToTask(".",e,t,r);return[i]}return convertPatternGroupsToTasks(n,t,r)}t.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(e){return n.getPositivePatterns(e)}t.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(e,t){var r=n.getNegativePatterns(e).concat(t);var i=r.map(n.convertToPositivePattern);return i}t.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(e){return e.reduce(function(e,t){var r=n.getBaseDirectory(t);if(r in e){e[r].push(t)}else{e[r]=[t]}return e},{})}t.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(e,t,r){return Object.keys(e).map(function(n){return convertPatternGroupToTask(n,e[n],t,r)})}t.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(e,t,r,i){return{base:e,dynamic:i,positive:t,negative:r,patterns:[].concat(t,r.map(n.convertToNegativePattern))}}t.convertPatternGroupToTask=convertPatternGroupToTask},7926:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4905);var i=r(3972);var s=function(){function DeepFilter(e,t){this.options=e;this.micromatchOptions=t}DeepFilter.prototype.getFilter=function(e,t){var r=this;var n=this.getMaxPatternDepth(e);var i=this.getNegativePatternsRe(t);return function(e){return r.filter(e,i,n)}};DeepFilter.prototype.getMaxPatternDepth=function(e){var t=e.some(i.hasGlobStar);return t?Infinity:i.getMaxNaivePatternsDepth(e)};DeepFilter.prototype.getNegativePatternsRe=function(e){var t=e.filter(i.isAffectDepthOfReadingPattern);return i.convertPatternsToRe(t,this.micromatchOptions)};DeepFilter.prototype.filter=function(e,t,r){if(this.isSkippedByDeepOption(e.depth)){return false}if(this.isSkippedByMaxPatternDepth(e.depth,r)){return false}if(this.isSkippedSymlinkedDirectory(e)){return false}if(this.isSkippedDotDirectory(e)){return false}return this.isSkippedByNegativePatterns(e,t)};DeepFilter.prototype.isSkippedByDeepOption=function(e){return!this.options.deep||typeof this.options.deep==="number"&&e>=this.options.deep};DeepFilter.prototype.isSkippedByMaxPatternDepth=function(e,t){return t!==Infinity&&e>=t};DeepFilter.prototype.isSkippedSymlinkedDirectory=function(e){return!this.options.followSymlinkedDirectories&&e.isSymbolicLink()};DeepFilter.prototype.isSkippedDotDirectory=function(e){return!this.options.dot&&n.isDotDirectory(e.path)};DeepFilter.prototype.isSkippedByNegativePatterns=function(e,t){return!i.matchAny(e.path,t)};return DeepFilter}();t.default=s},7545:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(4905);var i=r(3972);var s=function(){function EntryFilter(e,t){this.options=e;this.micromatchOptions=t;this.index=new Map}EntryFilter.prototype.getFilter=function(e,t){var r=this;var n=i.convertPatternsToRe(e,this.micromatchOptions);var s=i.convertPatternsToRe(t,this.micromatchOptions);return function(e){return r.filter(e,n,s)}};EntryFilter.prototype.filter=function(e,t,r){if(this.options.unique){if(this.isDuplicateEntry(e)){return false}this.createIndexRecord(e)}if(this.onlyFileFilter(e)||this.onlyDirectoryFilter(e)){return false}if(this.isSkippedByAbsoluteNegativePatterns(e,r)){return false}return this.isMatchToPatterns(e.path,t)&&!this.isMatchToPatterns(e.path,r)};EntryFilter.prototype.isDuplicateEntry=function(e){return this.index.has(e.path)};EntryFilter.prototype.createIndexRecord=function(e){this.index.set(e.path,undefined)};EntryFilter.prototype.onlyFileFilter=function(e){return this.options.onlyFiles&&!e.isFile()};EntryFilter.prototype.onlyDirectoryFilter=function(e){return this.options.onlyDirectories&&!e.isDirectory()};EntryFilter.prototype.isSkippedByAbsoluteNegativePatterns=function(e,t){if(!this.options.absolute){return false}var r=n.makeAbsolute(this.options.cwd,e.path);return this.isMatchToPatterns(r,t)};EntryFilter.prototype.isMatchToPatterns=function(e,t){return i.matchAny(e,t)||i.matchAny(e+"/",t)};return EntryFilter}();t.default=s},3139:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(7250);var s=r(7056);var o=r(3106);var a=function(e){n(ReaderAsync,e);function ReaderAsync(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(ReaderAsync.prototype,"fsAdapter",{get:function(){return new o.default(this.options)},enumerable:true,configurable:true});ReaderAsync.prototype.read=function(e){var t=this;var r=this.getRootDirectory(e);var n=this.getReaderOptions(e);var i=[];return new Promise(function(s,o){var a=t.api(r,e,n);a.on("error",function(e){t.isEnoentCodeError(e)?s([]):o(e);a.pause()});a.on("data",function(e){return i.push(t.transform(e))});a.on("end",function(){return s(i)})})};ReaderAsync.prototype.api=function(e,t,r){if(t.dynamic){return this.dynamicApi(e,r)}return this.staticApi(t,r)};ReaderAsync.prototype.dynamicApi=function(e,t){return i.readdirStreamStat(e,t)};ReaderAsync.prototype.staticApi=function(e,t){return this.fsAdapter.read(e.patterns,t.filter)};return ReaderAsync}(s.default);t.default=a},6192:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(2413);var s=r(7250);var o=r(7056);var a=r(3106);var c=function(e){n(TransformStream,e);function TransformStream(t){var r=e.call(this,{objectMode:true})||this;r.reader=t;return r}TransformStream.prototype._transform=function(e,t,r){r(null,this.reader.transform(e))};return TransformStream}(i.Transform);var u=function(e){n(ReaderStream,e);function ReaderStream(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(ReaderStream.prototype,"fsAdapter",{get:function(){return new a.default(this.options)},enumerable:true,configurable:true});ReaderStream.prototype.read=function(e){var t=this;var r=this.getRootDirectory(e);var n=this.getReaderOptions(e);var i=new c(this);var s=this.api(r,e,n);return s.on("error",function(e){return t.isEnoentCodeError(e)?null:i.emit("error",e)}).pipe(i)};ReaderStream.prototype.api=function(e,t,r){if(t.dynamic){return this.dynamicApi(e,r)}return this.staticApi(t,r)};ReaderStream.prototype.dynamicApi=function(e,t){return s.readdirStreamStat(e,t)};ReaderStream.prototype.staticApi=function(e,t){return this.fsAdapter.read(e.patterns,t.filter)};return ReaderStream}(o.default);t.default=u},1714:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function __(){this.constructor=t}t.prototype=r===null?Object.create(r):(__.prototype=r.prototype,new __)}}();Object.defineProperty(t,"__esModule",{value:true});var i=r(7250);var s=r(7056);var o=r(907);var a=function(e){n(ReaderSync,e);function ReaderSync(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(ReaderSync.prototype,"fsAdapter",{get:function(){return new o.default(this.options)},enumerable:true,configurable:true});ReaderSync.prototype.read=function(e){var t=this.getRootDirectory(e);var r=this.getReaderOptions(e);try{var n=this.api(t,e,r);return n.map(this.transform,this)}catch(e){if(this.isEnoentCodeError(e)){return[]}throw e}};ReaderSync.prototype.api=function(e,t,r){if(t.dynamic){return this.dynamicApi(e,r)}return this.staticApi(t,r)};ReaderSync.prototype.dynamicApi=function(e,t){return i.readdirSyncStat(e,t)};ReaderSync.prototype.staticApi=function(e,t){return this.fsAdapter.read(e.patterns,t.filter)};return ReaderSync}(s.default);t.default=a},7056:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);var i=r(7926);var s=r(7545);var o=r(4905);var a=function(){function Reader(e){this.options=e;this.micromatchOptions=this.getMicromatchOptions();this.entryFilter=new s.default(e,this.micromatchOptions);this.deepFilter=new i.default(e,this.micromatchOptions)}Reader.prototype.getRootDirectory=function(e){return n.resolve(this.options.cwd,e.base)};Reader.prototype.getReaderOptions=function(e){return{basePath:e.base==="."?"":e.base,filter:this.entryFilter.getFilter(e.positive,e.negative),deep:this.deepFilter.getFilter(e.positive,e.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(e){if(this.options.absolute){e.path=o.makeAbsolute(this.options.cwd,e.path)}if(this.options.markDirectories&&e.isDirectory()){e.path+="/"}var t=this.options.stats?e:e.path;if(this.options.transform===null){return t}return this.options.transform(t)};Reader.prototype.isEnoentCodeError=function(e){return e.code==="ENOENT"};return Reader}();t.default=a},8641:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function flatten(e){return e.reduce(function(e,t){return[].concat(e,t)},[])}t.flatten=flatten},4905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);function isDotDirectory(e){return n.basename(e).startsWith(".")}t.isDotDirectory=isDotDirectory;function normalize(e){return e.replace(/\\/g,"/")}t.normalize=normalize;function makeAbsolute(e,t){return normalize(n.resolve(e,t))}t.makeAbsolute=makeAbsolute},3972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(5622);var i=r(8216);var s=r(4042);var o=r(1227);var a="**";function isStaticPattern(e){return!isDynamicPattern(e)}t.isStaticPattern=isStaticPattern;function isDynamicPattern(e){return s(e,{strict:false})}t.isDynamicPattern=isDynamicPattern;function unixifyPattern(e){return e.replace(/\\/g,"/")}t.unixifyPattern=unixifyPattern;function convertToPositivePattern(e){return isNegativePattern(e)?e.slice(1):e}t.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(e){return"!"+e}t.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(e){return e.startsWith("!")&&e[1]!=="("}t.isNegativePattern=isNegativePattern;function isPositivePattern(e){return!isNegativePattern(e)}t.isPositivePattern=isPositivePattern;function getNegativePatterns(e){return e.filter(isNegativePattern)}t.getNegativePatterns=getNegativePatterns;function getPositivePatterns(e){return e.filter(isPositivePattern)}t.getPositivePatterns=getPositivePatterns;function getBaseDirectory(e){return i(e)}t.getBaseDirectory=getBaseDirectory;function hasGlobStar(e){return e.indexOf(a)!==-1}t.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(e){return e.endsWith("/"+a)}t.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(e){var t=n.basename(e);return endsWithSlashGlobStar(e)||isStaticPattern(t)}t.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function getNaiveDepth(e){var t=getBaseDirectory(e);var r=e.split("/").length;var n=t.split("/").length;if(t==="."){return r-n}return r-n-1}t.getNaiveDepth=getNaiveDepth;function getMaxNaivePatternsDepth(e){return e.reduce(function(e,t){var r=getNaiveDepth(t);return r>e?r:e},0)}t.getMaxNaivePatternsDepth=getMaxNaivePatternsDepth;function makeRe(e,t){return o.makeRe(e,t)}t.makeRe=makeRe;function convertPatternsToRe(e,t){return e.map(function(e){return makeRe(e,t)})}t.convertPatternsToRe=convertPatternsToRe;function matchAny(e,t){return t.some(function(t){return t.test(e)})}t.matchAny=matchAny},7914:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});var n=r(2375);function merge(e){var t=n(e);e.forEach(function(e){e.on("error",function(e){return t.emit("error",e)})});return t}t.merge=merge},7692:(e,t,r)=>{"use strict";var n=r(1669);var i=r(6110);var s=r(2671);var o=r(9626);var a=r(1860);function fillRange(e,t,r,o){if(typeof e==="undefined"){return[]}if(typeof t==="undefined"||e===t){var a=typeof e==="string";if(i(e)&&!toNumber(e)){return[a?"0":0]}return[e]}if(typeof r!=="number"&&typeof r!=="string"){o=r;r=undefined}if(typeof o==="function"){o={transform:o}}var c=s({step:r},o);if(c.step&&!isValidNumber(c.step)){if(c.strictRanges===true){throw new TypeError("expected options.step to be a number")}return[]}c.isNumber=isValidNumber(e)&&isValidNumber(t);if(!c.isNumber&&!isValid(e,t)){if(c.strictRanges===true){throw new RangeError("invalid range arguments: "+n.inspect([e,t]))}return[]}c.isPadded=isPadded(e)||isPadded(t);c.toString=c.stringify||typeof c.step==="string"||typeof e==="string"||typeof t==="string"||!c.isNumber;if(c.isPadded){c.maxLength=Math.max(String(e).length,String(t).length)}if(typeof c.optimize==="boolean")c.toRegex=c.optimize;if(typeof c.makeRe==="boolean")c.toRegex=c.makeRe;return expand(e,t,c)}function expand(e,t,r){var n=r.isNumber?toNumber(e):e.charCodeAt(0);var i=r.isNumber?toNumber(t):t.charCodeAt(0);var s=Math.abs(toNumber(r.step))||1;if(r.toRegex&&s===1){return toRange(n,i,e,t,r)}var o={greater:[],lesser:[]};var a=n<i;var c=new Array(Math.round((a?i-n:n-i)/s));var u=0;while(a?n<=i:n>=i){var l=r.isNumber?n:String.fromCharCode(n);if(r.toRegex&&(l>=0||!r.isNumber)){o.greater.push(l)}else{o.lesser.push(Math.abs(l))}if(r.isPadded){l=zeros(l,r)}if(r.toString){l=String(l)}if(typeof r.transform==="function"){c[u++]=r.transform(l,n,i,s,u,c,r)}else{c[u++]=l}if(a){n+=s}else{n-=s}}if(r.toRegex===true){return toSequence(c,o,r)}return c}function toRange(e,t,r,n,i){if(i.isPadded){return a(r,n,i)}if(i.isNumber){return a(Math.min(e,t),Math.max(e,t),i)}var r=String.fromCharCode(Math.min(e,t));var n=String.fromCharCode(Math.max(e,t));return"["+r+"-"+n+"]"}function toSequence(e,t,r){var n="",i="";if(t.greater.length){n=t.greater.join("|")}if(t.lesser.length){i="-("+t.lesser.join("|")+")"}var s=n&&i?n+"|"+i:n||i;if(r.capture){return"("+s+")"}return s}function zeros(e,t){if(t.isPadded){var r=String(e);var n=r.length;var i="";if(r.charAt(0)==="-"){i="-";r=r.slice(1)}var s=t.maxLength-n;var a=o("0",s);e=i+a+r}if(t.stringify){return String(e)}return e}function toNumber(e){return Number(e)||0}function isPadded(e){return/^-?0\d/.test(e)}function isValid(e,t){return(isValidNumber(e)||isValidLetter(e))&&(isValidNumber(t)||isValidLetter(t))}function isValidLetter(e){return typeof e==="string"&&e.length===1&&/^\w+$/.test(e)}function isValidNumber(e){return i(e)&&!/\./.test(e)}e.exports=fillRange},2671:(e,t,r)=>{"use strict";var n=r(9580);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9580:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},8216:(e,t,r)=>{"use strict";var n=r(5622);var i=r(5548);var s=r(8261);var o=r(2087).platform()==="win32";e.exports=function globParent(e){if(o&&e.indexOf("/")<0)e=e.split("\\").join("/");if(/[\{\[].*[\/]*.*[\}\]]$/.test(e))e+="/";e+="a";do{e=s.posix(e)}while(i(e)||/(^|[^\\])([\{\[]|\([^\)]+$)/.test(e));return e.replace(/\\([\*\?\|\[\]\(\)\{\}])/g,"$1")}},5548:(e,t,r)=>{var n=r(6546);e.exports=function isGlob(e){if(typeof e!=="string"||e===""){return false}if(n(e))return true;var t=/(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;var r;while(r=t.exec(e)){if(r[2])return true;e=e.slice(r.index+r[0].length)}return false}},3926:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=r(81);const o=r(9321);const a=r(9367);const c=r(3761);const u=["**/node_modules/**","**/bower_components/**","**/flow-typed/**","**/coverage/**","**/.git"];const l=a(n.readFile);const f=e=>t=>{if(t.startsWith("!")){return"!"+i.posix.join(e,t.slice(1))}return i.posix.join(e,t)};const h=(e,t)=>{const r=c(i.relative(t.cwd,i.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(e=>e.charAt(0)!=="#").map(f(r))};const p=e=>{return e.reduce((e,t)=>{e.add(h(t.content,{cwd:t.cwd,fileName:t.filePath}));return e},o())};const d=(e,t)=>{return r=>e.ignores(c(i.relative(t,r)))};const m=(e,t)=>{const r=i.join(t,e);return l(r,"utf8").then(e=>({content:e,cwd:t,filePath:r}))};const y=(e,t)=>{const r=i.join(t,e);const s=n.readFileSync(r,"utf8");return{content:s,cwd:t,filePath:r}};const v=(e={})=>{const t=e.ignore||[];const r=e.cwd||process.cwd();return{ignore:t,cwd:r}};e.exports=(e=>{e=v(e);return s("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd}).then(t=>Promise.all(t.map(t=>m(t,e.cwd)))).then(e=>p(e)).then(t=>d(t,e.cwd))});e.exports.sync=(e=>{e=v(e);const t=s.sync("**/.gitignore",{ignore:u.concat(e.ignore),cwd:e.cwd});const r=t.map(t=>y(t,e.cwd));const n=p(r);return d(n,e.cwd)})},1317:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5852);const s=r(3700);const o=r(81);const a=r(4061);const c=r(3926);const u=()=>false;const l=e=>e[0]==="!";const f=e=>{if(!e.every(e=>typeof e==="string")){throw new TypeError("Patterns must be a string or an array of strings")}};const h=e=>{if(e&&e.cwd&&!n.statSync(e.cwd).isDirectory()){throw new Error("The `cwd` option must be a path to a directory")}};const p=(e,t)=>{e=i([].concat(e));f(e);h(t);const r=[];t=Object.assign({ignore:[],expandDirectories:true},t);e.forEach((n,i)=>{if(l(n)){return}const s=e.slice(i).filter(l).map(e=>e.slice(1));const o=Object.assign({},t,{ignore:t.ignore.concat(s)});r.push({pattern:n,options:o})});return r};const d=(e,t)=>{let r={};if(e.options.cwd){r.cwd=e.options.cwd}if(Array.isArray(e.options.expandDirectories)){r=Object.assign(r,{files:e.options.expandDirectories})}else if(typeof e.options.expandDirectories==="object"){r=Object.assign(r,e.options.expandDirectories)}return t(e.pattern,r)};const m=(e,t)=>e.options.expandDirectories?d(e,t):[e.pattern];const y=e=>t=>{const{options:r}=e;if(r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories){r.ignore=a.sync(r.ignore)}return{pattern:t,options:r}};const v=(e,t)=>{let r;try{r=p(e,t)}catch(e){return Promise.reject(e)}const n=Promise.all(r.map(e=>Promise.resolve(m(e,a)).then(t=>Promise.all(t.map(y(e)))))).then(e=>i(...e));const s=()=>{return Promise.resolve(t&&t.gitignore?c({cwd:t.cwd,ignore:t.ignore}):u)};return s().then(e=>{return n.then(e=>Promise.all(e.map(e=>o(e.pattern,e.options)))).then(e=>i(...e)).then(t=>t.filter(t=>!e(t)))})};e.exports=v;e.exports.default=v;e.exports.sync=((e,t)=>{const r=p(e,t);const n=()=>{return t&&t.gitignore?c.sync({cwd:t.cwd,ignore:t.ignore}):u};const s=r.reduce((e,t)=>{const r=m(t,a.sync).map(y(t));return e.concat(r)},[]);const l=n();return s.reduce((e,t)=>i(e,o.sync(t.pattern,t.options)),[]).filter(e=>!l(e))});e.exports.generateGlobTasks=p;e.exports.hasMagic=((e,t)=>[].concat(e).some(e=>s.hasMagic(e,t)));e.exports.gitignore=c},9321:e=>{function make_array(e){return Array.isArray(e)?e:[e]}const t=/^\s+$/;const r=/^\\!/;const n=/^\\#/;const i="/";const s=typeof Symbol!=="undefined"?Symbol.for("node-ignore"):"node-ignore";const o=(e,t,r)=>Object.defineProperty(e,t,{value:r});const a=/([0-z])-([0-z])/g;const c=e=>e.replace(a,(e,t,r)=>t.charCodeAt(0)<=r.charCodeAt(0)?e:"");const u=[[/\\?\s+$/,e=>e.indexOf("\\")===0?" ":""],[/\\\s/g,()=>" "],[/[\\^$.|*+(){]/g,e=>`\\${e}`],[/\[([^\]/]*)($|\])/g,(e,t,r)=>r==="]"?`[${c(t)}]`:`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"]];const l=[[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)\\\*(?=.+)/g,(e,t)=>`${t}[^\\/]*`],[/(\^|\\\/)?\\\*$/,(e,t)=>{const r=t?`${t}[^/]+`:"[^/]*";return`${r}(?=$|\\/$)`}],[/\\\\\\/g,()=>"\\"]];const f=[...u,[/(?:[^*/])$/,e=>`${e}(?=$|\\/)`],...l];const h=[...u,[/(?:[^*])$/,e=>`${e}(?=$|\\/$)`],...l];const p=Object.create(null);const d=(e,t,r)=>{const n=p[e];if(n){return n}const i=t?h:f;const s=i.reduce((t,r)=>t.replace(r[0],r[1].bind(e)),e);return p[e]=r?new RegExp(s,"i"):new RegExp(s)};const m=e=>e&&typeof e==="string"&&!t.test(e)&&e.indexOf("#")!==0;const y=(e,t)=>{const i=e;let s=false;if(e.indexOf("!")===0){s=true;e=e.substr(1)}e=e.replace(r,"!").replace(n,"#");const o=d(e,s,t);return{origin:i,pattern:e,negative:s,regex:o}};class IgnoreBase{constructor({ignorecase:e=true}={}){this._rules=[];this._ignorecase=e;o(this,s,true);this._initCache()}_initCache(){this._cache=Object.create(null)}add(e){this._added=false;if(typeof e==="string"){e=e.split(/\r?\n/g)}make_array(e).forEach(this._addPattern,this);if(this._added){this._initCache()}return this}addPattern(e){return this.add(e)}_addPattern(e){if(e&&e[s]){this._rules=this._rules.concat(e._rules);this._added=true;return}if(m(e)){const t=y(e,this._ignorecase);this._added=true;this._rules.push(t)}}filter(e){return make_array(e).filter(e=>this._filter(e))}createFilter(){return e=>this._filter(e)}ignores(e){return!this._filter(e)}_filter(e,t){if(!e){return false}if(e in this._cache){return this._cache[e]}if(!t){t=e.split(i)}t.pop();return this._cache[e]=t.length?this._filter(t.join(i)+i,t)&&this._test(e):this._test(e)}_test(e){let t=0;this._rules.forEach(r=>{if(!(t^r.negative)){t=r.negative^r.regex.test(e)}});return!t}}if(typeof process!=="undefined"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){const e=IgnoreBase.prototype._filter;const t=e=>/^\\\\\?\\/.test(e)||/[^\x00-\x80]+/.test(e)?e:e.replace(/\\/g,"/");IgnoreBase.prototype._filter=function filterWin32(r,n){r=t(r);return e.call(this,r,n)}}e.exports=(e=>new IgnoreBase(e))},3239:(e,t,r)=>{"use strict";var n=r(5466);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},5466:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},1227:(e,t,r)=>{"use strict";var n=r(1669);var i=r(6021);var s=r(2325);var o=r(2074);var a=r(5334);var c=r(9034);var u=r(3389);var l=r(1262);var f=1024*64;function micromatch(e,t,r){t=l.arrayify(t);e=l.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return micromatch.match(e,t[0],r)}var i=[];var s=[];var o=-1;while(++o<n){var a=t[o];if(typeof a==="string"&&a.charCodeAt(0)===33){i.push.apply(i,micromatch.match(e,a.slice(1),r))}else{s.push.apply(s,micromatch.match(e,a,r))}}var c=l.diff(s,i);if(!r||r.nodupes!==false){return l.unique(c)}return c}micromatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=l.unixify(r);var i=memoize("match",t,r,micromatch.matcher);var s=[];e=l.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||i(c)){s.push(l.value(c,n,r))}}if(typeof r==="undefined"){return l.unique(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?l.unescape(t):t]}}if(r.ignore){s=micromatch.not(s,r.ignore,r)}return r.nodupes!==false?l.unique(s):s};micromatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(r);if(i(e)){return true}var s=memoize("isMatch",t,r,micromatch.matcher);return s(e)};micromatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length===1){return true}}return false};micromatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(micromatch(e[n],t,r).length!==1){return false}}return true};micromatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(isEmptyString(e)||isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(micromatch.isMatch(e,t[i],r)){return true}}return false};micromatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!micromatch.isMatch(e,t[i],r)){return false}}return true};micromatch.not=function(e,t,r){var n=o({},r);var i=n.ignore;delete n.ignore;var s=l.unixify(n);e=l.arrayify(e).map(s);var a=l.diff(e,micromatch(e,t,n));if(i){a=l.diff(a,micromatch(e,i))}return n.nodupes!==false?l.unique(a):a};micromatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(isEmptyString(e)||isEmptyString(t)){return false}var i=l.equalsPattern(t,r);if(i(e)){return true}var s=l.containsPattern(t,r);if(s(e)){return true}}var a=o({},r,{contains:true});return micromatch.any(e,t,a)};micromatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};micromatch.matchKeys=function(e,t,r){if(!l.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=micromatch(Object.keys(e),t,r);return l.pick(e,n)};micromatch.matcher=function matcher(e,t){if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!l.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!l.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return l.matchPath(e,t)}var r=micromatch.makeRe(e,t);if(micromatch.matchBase(e,t)){return l.matchBasename(r,t)}function test(e){var r=l.equalsPattern(t);var n=l.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);Object.defineProperty(n,"result",{configurable:true,enumerable:false,value:r.result});return n};micromatch.capture=function(e,t,r){var n=micromatch.makeRe(e,o({capture:true},r));var i=l.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var s=memoize("capture",e,r,match);return s(t)};micromatch.makeRe=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>f){throw new Error("expected pattern to be less than "+f+" characters")}function makeRe(){var r=micromatch.create(e,t);var n=[];var i=r.map(function(e){e.ast.state=e.state;n.push(e.ast);return e.output});var o=s(i.join("|"),t);Object.defineProperty(o,"result",{configurable:true,enumerable:false,value:n});return o}return memoize("makeRe",e,t,makeRe)};micromatch.braces=function(e,t){if(typeof e!=="string"&&!Array.isArray(e)){throw new TypeError("expected pattern to be an array or string")}function expand(){if(t&&t.nobrace===true||!/\{.*\}/.test(e)){return l.arrayify(e)}return i(e,t)}return memoize("braces",e,t,expand)};micromatch.braceExpand=function(e,t){var r=o({},t,{expand:true});return micromatch.braces(e,r)};micromatch.create=function(e,t){return memoize("create",e,t,function(){function create(e,t){return micromatch.compile(micromatch.parse(e,t),t)}e=micromatch.braces(e,t);var r=e.length;var n=-1;var i=[];while(++n<r){i.push(create(e[n],t))}return i})};micromatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=l.instantiate(null,t);c(r,t);var n=r.parse(e,t);l.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};micromatch.compile=function(e,t){if(typeof e==="string"){e=micromatch.parse(e,t)}return memoize("compile",e.input,t,function(){var r=l.instantiate(e,t);a(r,t);return r.compile(e,t)})};micromatch.clearCache=function(){micromatch.cache.caches={}};function isEmptyString(e){return String(e)===""||String(e)==="./"}function compose(e,t,r){var n;return memoize("compose",String(e),t,function(){return function(i){if(!n){n=[];for(var s=0;s<e.length;s++){n.push(r(e[s],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}})}function memoize(e,t,r,n){var i=l.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(u.has(e,i)){return u.get(e,i)}var s=n(t,r);u.set(e,i,s);return s}micromatch.compilers=a;micromatch.parsers=c;micromatch.caches=u.caches;e.exports=micromatch},3389:(e,t,r)=>{e.exports=new(r(3096))},5334:(e,t,r)=>{"use strict";var n=r(1761);var i=r(9420);e.exports=function(e){var t=e.compiler.compilers;var r=e.options;e.use(n.compilers);var s=t.escape;var o=t.qmark;var a=t.slash;var c=t.star;var u=t.text;var l=t.plus;var f=t.dot;if(r.extglob===false||r.noext===true){e.compiler.use(escapeExtglobs)}else{e.use(i.compilers)}e.use(function(){this.options.star=this.options.star||function(){return"[^\\\\/]*?"}});e.compiler.set("dot",f).set("escape",s).set("plus",l).set("slash",a).set("qmark",o).set("star",c).set("text",u)};function escapeExtglobs(e){e.set("paren",function(e){var t="";visit(e,function(e){if(e.val)t+=(/^\W/.test(e.val)?"\\":"")+e.val});return this.emit(t,e)});function visit(e,t){return e.nodes?mapVisit(e.nodes,t):t(e)}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}}},9034:(e,t,r)=>{"use strict";var n=r(9420);var i=r(1761);var s=r(466);var o=r(2325);var a;var c="([!@*?+]?\\(|\\)|\\[:?(?=.*?:?\\])|:?\\]|[*+?!^$.\\\\/])+";var u=function(e){return a||(a=textRegex(c))};e.exports=function(e){var t=e.parser.parsers;e.use(i.parsers);var r=t.escape;var s=t.slash;var o=t.qmark;var a=t.plus;var c=t.star;var l=t.dot;e.use(n.parsers);e.parser.use(function(){this.notRegex=/^\!+(?!\()/}).capture("escape",r).capture("slash",s).capture("qmark",o).capture("star",c).capture("plus",a).capture("dot",l).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(u(this.options));if(!t||!t[0])return;var r=t[0].replace(/([[\]^$])/g,"\\$1");return e({type:"text",val:r})})};function textRegex(e){var t=s.create(e,{contains:true,strictClose:false});var r="(?:[\\^]|\\\\|";return o(r+t+")",{strictClose:false})}},1262:(e,t,r)=>{"use strict";var n=e.exports;var i=r(5622);var s=r(4253);n.define=r(7333);n.diff=r(6164);n.extend=r(2074);n.pick=r(7751);n.typeOf=r(9413);n.unique=r(68);n.isWindows=function(){return i.sep==="\\"||process.platform==="win32"};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new s(t)}n.define(r,"parse",function(e,t){var r=s.prototype.parse.apply(this,arguments);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var o=i.nodes[0];var a=i.nodes[1];if(i.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{o.val="\\"+o.val;var c=o.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r});return r};n.createKey=function(e,t){if(n.typeOf(t)!=="object"){return e}var r=e;var i=Object.keys(t);for(var s=0;s<i.length;s++){var o=i[s];r+=";"+o+"="+String(t[o])}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isObject=function(e){return n.typeOf(e)==="object"};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|\[\]{}]|[+@]\()/.test(e)};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\\/\s]/g,"\\$&")};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripPrefix=function(e){if(e.charAt(0)!=="."){return e}var t=e.charAt(1);if(n.isSlash(t)){return e.slice(2)}return e};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var s=n._equals(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var s=n._contains(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(i.basename(t))}};n.value=function(e,t,r){if(r&&r.unixify===false){return e}return t(e)};n.unixify=function(e){e=e||{};return function(t){if(n.isWindows()||e.unixify===true){t=n.toPosixPath(t)}if(e.stripPrefix!==false){t=n.stripPrefix(t)}if(e.unescape===true){t=n.unescape(t)}return t}}},1161:(e,t,r)=>{"use strict";const n=r(5747);const i=r(4473);function type(e,t,r){if(typeof r!=="string"){return Promise.reject(new TypeError(`Expected a string, got ${typeof r}`))}return i(n[e])(r).then(e=>e[t]()).catch(e=>{if(e.code==="ENOENT"){return false}throw e})}function typeSync(e,t,r){if(typeof r!=="string"){throw new TypeError(`Expected a string, got ${typeof r}`)}try{return n[e](r)[t]()}catch(e){if(e.code==="ENOENT"){return false}throw e}}t.file=type.bind(null,"stat","isFile");t.dir=type.bind(null,"stat","isDirectory");t.symlink=type.bind(null,"lstat","isSymbolicLink");t.fileSync=typeSync.bind(null,"statSync","isFile");t.dirSync=typeSync.bind(null,"statSync","isDirectory");t.symlinkSync=typeSync.bind(null,"lstatSync","isSymbolicLink")},4473:e=>{"use strict";const t=(e,t)=>(function(){const r=t.promiseModule;const n=new Array(arguments.length);for(let e=0;e<arguments.length;e++){n[e]=arguments[e]}return new r((r,i)=>{if(t.errorFirst){n.push(function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e<arguments.length;e++){t[e-1]=arguments[e]}if(e){t.unshift(e);i(t)}else{r(t)}}else if(e){i(e)}else{r(n)}})}else{n.push(function(e){if(t.multiArgs){const e=new Array(arguments.length-1);for(let t=0;t<arguments.length;t++){e[t]=arguments[t]}r(e)}else{r(e)}})}e.apply(this,n)})});e.exports=((e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const n=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let i;if(typeof e==="function"){i=function(){if(r.excludeMain){return e.apply(this,arguments)}return t(e,r).apply(this,arguments)}}else{i=Object.create(Object.getPrototypeOf(e))}for(const s in e){const o=e[s];i[s]=typeof o==="function"&&n(s)?t(o,r):o}return i})},3761:e=>{"use strict";e.exports=(e=>{const t=/^\\\\\?\\/.test(e);const r=/[^\u0000-\u0080]+/.test(e);if(t||r){return e}return e.replace(/\\/g,"/")})},1860:(e,t,r)=>{"use strict";var n=r(9626);var i=r(6110);var s={};function toRegexRange(e,t,r){if(i(e)===false){throw new RangeError("toRegexRange: first argument is invalid.")}if(typeof t==="undefined"||e===t){return String(e)}if(i(t)===false){throw new RangeError("toRegexRange: second argument is invalid.")}r=r||{};var n=String(r.relaxZeros);var o=String(r.shorthand);var a=String(r.capture);var c=e+":"+t+"="+n+o+a;if(s.hasOwnProperty(c)){return s[c].result}var u=Math.min(e,t);var l=Math.max(e,t);if(Math.abs(u-l)===1){var f=e+"|"+t;if(r.capture){return"("+f+")"}return f}var h=padding(e)||padding(t);var p=[];var d=[];var m={min:e,max:t,a:u,b:l};if(h){m.isPadded=h;m.maxLen=String(m.max).length}if(u<0){var y=l<0?Math.abs(l):1;var v=Math.abs(u);d=splitToPatterns(y,v,m,r);u=m.a=0}if(l>=0){p=splitToPatterns(u,l,m,r)}m.negatives=d;m.positives=p;m.result=siftPatterns(d,p,r);if(r.capture&&p.length+d.length>1){m.result="("+m.result+")"}s[c]=m;return m.result}function siftPatterns(e,t,r){var n=filterPatterns(e,t,"-",false,r)||[];var i=filterPatterns(t,e,"",false,r)||[];var s=filterPatterns(e,t,"-?",true,r)||[];var o=n.concat(s).concat(i);return o.join("|")}function splitToRanges(e,t){e=Number(e);t=Number(t);var r=1;var n=[t];var i=+countNines(e,r);while(e<=i&&i<=t){n=push(n,i);r+=1;i=+countNines(e,r)}var s=1;i=countZeros(t+1,s)-1;while(e<i&&i<=t){n=push(n,i);s+=1;i=countZeros(t+1,s)-1}n.sort(compare);return n}function rangeToPattern(e,t,r){if(e===t){return{pattern:String(e),digits:[]}}var n=zip(String(e),String(t));var i=n.length,s=-1;var o="";var a=0;while(++s<i){var c=n[s];var u=c[0];var l=c[1];if(u===l){o+=u}else if(u!=="0"||l!=="9"){o+=toCharacterClass(u,l)}else{a+=1}}if(a){o+=r.shorthand?"\\d":"[0-9]"}return{pattern:o,digits:[a]}}function splitToPatterns(e,t,r,n){var i=splitToRanges(e,t);var s=i.length;var o=-1;var a=[];var c=e;var u;while(++o<s){var l=i[o];var f=rangeToPattern(c,l,n);var h="";if(!r.isPadded&&u&&u.pattern===f.pattern){if(u.digits.length>1){u.digits.pop()}u.digits.push(f.digits[0]);u.string=u.pattern+toQuantifier(u.digits);c=l+1;continue}if(r.isPadded){h=padZeros(l,r)}f.string=h+f.pattern+toQuantifier(f.digits);a.push(f);c=l+1;u=f}return a}function filterPatterns(e,t,r,n,i){var s=[];for(var o=0;o<e.length;o++){var a=e[o];var c=a.string;if(i.relaxZeros!==false){if(r==="-"&&c.charAt(0)==="0"){if(c.charAt(1)==="{"){c="0*"+c.replace(/^0\{\d+\}/,"")}else{c="0*"+c.slice(1)}}}if(!n&&!contains(t,"string",c)){s.push(r+c)}if(n&&contains(t,"string",c)){s.push(r+c)}}return s}function zip(e,t){var r=[];for(var n in e)r.push([e[n],t[n]]);return r}function compare(e,t){return e>t?1:t>e?-1:0}function push(e,t){if(e.indexOf(t)===-1)e.push(t);return e}function contains(e,t,r){for(var n=0;n<e.length;n++){if(e[n][t]===r){return true}}return false}function countNines(e,t){return String(e).slice(0,-t)+n("9",t)}function countZeros(e,t){return e-e%Math.pow(10,t)}function toQuantifier(e){var t=e[0];var r=e[1]?","+e[1]:"";if(!r&&(!t||t===1)){return""}return"{"+t+r+"}"}function toCharacterClass(e,t){return"["+e+(t-e===1?"":"-")+t+"]"}function padding(e){return/^-?(0+)\d/.exec(e)}function padZeros(e,t){if(t.isPadded){var r=Math.abs(t.maxLen-String(e).length);switch(r){case 0:return"";case 1:return"0";default:{return"0{"+r+"}"}}}return e}e.exports=toRegexRange},2800:e=>{"use strict";var t="%[a-f0-9]{2}";var r=new RegExp("("+t+")|([^%]+?)","gi");var n=new RegExp("("+t+")+","gi");function decodeComponents(e,t){try{return[decodeURIComponent(e.join(""))]}catch(e){}if(e.length===1){return e}t=t||1;var r=e.slice(0,t);var n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(i){var t=e.match(r)||[];for(var n=1;n<t.length;n++){e=decodeComponents(t,n).join("");t=e.match(r)||[]}return e}}function customDecodeURIComponent(e){var t={"%FE%FF":"��","%FF%FE":"��"};var r=n.exec(e);while(r){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var i=decode(r[0]);if(i!==r[0]){t[r[0]]=i}}r=n.exec(e)}t["%C2"]="�";var s=Object.keys(t);for(var o=0;o<s.length;o++){var a=s[o];e=e.replace(new RegExp(a,"g"),t[a])}return e}e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`")}try{e=e.replace(/\+/g," ");return decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}}},5134:e=>{"use strict";function isSpecificValue(e){return e instanceof Buffer||e instanceof Date||e instanceof RegExp?true:false}function cloneSpecificValue(e){if(e instanceof Buffer){var t=Buffer.alloc?Buffer.alloc(e.length):new Buffer(e.length);e.copy(t);return t}else if(e instanceof Date){return new Date(e.getTime())}else if(e instanceof RegExp){return new RegExp(e)}else{throw new Error("Unexpected situation")}}function deepCloneArray(e){var r=[];e.forEach(function(e,n){if(typeof e==="object"&&e!==null){if(Array.isArray(e)){r[n]=deepCloneArray(e)}else if(isSpecificValue(e)){r[n]=cloneSpecificValue(e)}else{r[n]=t({},e)}}else{r[n]=e}});return r}function safeGetProperty(e,t){return t==="__proto__"?undefined:e[t]}var t=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=="object"){return false}if(arguments.length<2){return arguments[0]}var e=arguments[0];var r=Array.prototype.slice.call(arguments,1);var n,i,s;r.forEach(function(r){if(typeof r!=="object"||r===null||Array.isArray(r)){return}Object.keys(r).forEach(function(s){i=safeGetProperty(e,s);n=safeGetProperty(r,s);if(n===e){return}else if(typeof n!=="object"||n===null){e[s]=n;return}else if(Array.isArray(n)){e[s]=deepCloneArray(n);return}else if(isSpecificValue(n)){e[s]=cloneSpecificValue(n);return}else if(typeof i!=="object"||i===null||Array.isArray(i)){e[s]=t({},n);return}else{e[s]=t(i,n);return}})});return e}},8093:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function isTLSSocket(e){return e.encrypted}const r=(e,t)=>{let r;if(typeof t==="function"){const e=t;r={connect:e}}else{r=t}const n=typeof r.connect==="function";const i=typeof r.secureConnect==="function";const s=typeof r.close==="function";const o=()=>{if(n){r.connect()}if(isTLSSocket(e)&&i){if(e.authorized){r.secureConnect()}else if(!e.authorizationError){e.once("secureConnect",r.secureConnect)}}if(s){e.once("close",r.close)}};if(e.writable&&!e.connecting){o()}else if(e.connecting){e.once("connect",o)}else if(e.destroyed&&s){r.close(e._hadError)}};t.default=r;e.exports=r;e.exports.default=r},3018:(e,t,r)=>{"use strict";var n=r(4255);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},7588:(e,t,r)=>{"use strict";var n=r(9117);var i={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(e,t){if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(n(e)!=="object"){return false}if(has(e,"value")||has(e,"writable")){return false}if(!has(e,"get")||typeof e.get!=="function"){return false}if(has(e,"set")&&typeof e[s]!=="function"&&typeof e[s]!=="undefined"){return false}for(var s in e){if(!i.hasOwnProperty(s)){continue}if(n(e[s])===i[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}function has(e,t){return{}.hasOwnProperty.call(e,t)}e.exports=isAccessorDescriptor},9117:(e,t,r)=>{var n=r(6801);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},6801:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},3173:(e,t,r)=>{"use strict";var n=r(3889);var i={configurable:"boolean",enumerable:"boolean",writable:"boolean"};function isDataDescriptor(e,t){if(n(e)!=="object"){return false}if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(!("value"in e)&&!("writable"in e)){return false}for(var s in e){if(s==="value")continue;if(!i.hasOwnProperty(s)){continue}if(n(e[s])===i[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}e.exports=isDataDescriptor},3889:(e,t,r)=>{var n=r(6801);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},4255:(e,t,r)=>{"use strict";var n=r(2595);var i=r(7588);var s=r(3173);e.exports=function isDescriptor(e,t){if(n(e)!=="object"){return false}if("get"in e){return i(e,t)}return s(e,t)}},2595:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){var r=typeof e;if(r==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(r==="string"||e instanceof String){return"string"}if(r==="number"||e instanceof Number){return"number"}if(r==="function"||e instanceof Function){if(typeof e.constructor.name!=="undefined"&&e.constructor.name.slice(0,9)==="Generator"){return"generatorfunction"}return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}r=t.call(e);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(isBuffer(e)){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 Map Iterator]"){return"mapiterator"}if(r==="[object Set Iterator]"){return"setiterator"}if(r==="[object String Iterator]"){return"stringiterator"}if(r==="[object Array Iterator]"){return"arrayiterator"}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"};function isBuffer(e){return e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}},5519:(e,t,r)=>{"use strict";var n=r(2413);function DuplexWrapper(e,t,r){if(typeof r==="undefined"){r=t;t=e;e=null}n.Duplex.call(this,e);if(typeof r.read!=="function"){r=new n.Readable(e).wrap(r)}this._writable=t;this._readable=r;this._waiting=false;var i=this;t.once("finish",function(){i.end()});this.once("finish",function(){t.end()});r.on("readable",function(){if(i._waiting){i._waiting=false;i._read()}});r.once("end",function(){i.push(null)});if(!e||typeof e.bubbleErrors==="undefined"||e.bubbleErrors){t.on("error",function(e){i.emit("error",e)});r.on("error",function(e){i.emit("error",e)})}}DuplexWrapper.prototype=Object.create(n.Duplex.prototype,{constructor:{value:DuplexWrapper}});DuplexWrapper.prototype._write=function _write(e,t,r){this._writable.write(e,t,r)};DuplexWrapper.prototype._read=function _read(){var e;var t=0;while((e=this._readable.read())!==null){this.push(e);t++}if(t===0){this._waiting=true}};e.exports=function duplex2(e,t,r){return new DuplexWrapper(e,t,r)};e.exports.DuplexWrapper=DuplexWrapper},2498:(e,t,r)=>{var n=r(7197);var i=function(){};var s=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var a=function(e,t,r){if(typeof t==="function")return a(e,null,t);if(!t)t={};r=n(r||i);var c=e._writableState;var u=e._readableState;var l=t.readable||t.readable!==false&&e.readable;var f=t.writable||t.writable!==false&&e.writable;var h=false;var p=function(){if(!e.writable)d()};var d=function(){f=false;if(!l)r.call(e)};var m=function(){l=false;if(!f)r.call(e)};var y=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var v=function(t){r.call(e,t)};var g=function(){process.nextTick(b)};var b=function(){if(h)return;if(l&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(f&&!(c&&(c.ended&&!c.destroyed)))return r.call(e,new Error("premature close"))};var w=function(){e.req.on("finish",d)};if(s(e)){e.on("complete",d);e.on("abort",g);if(e.req)w();else e.on("request",w)}else if(f&&!c){e.on("end",p);e.on("close",p)}if(o(e))e.on("exit",y);e.on("end",m);e.on("finish",d);if(t.error!==false)e.on("error",v);e.on("close",g);return function(){h=true;e.removeListener("complete",d);e.removeListener("abort",g);e.removeListener("request",w);if(e.req)e.req.removeListener("finish",d);e.removeListener("end",p);e.removeListener("close",p);e.removeListener("finish",d);e.removeListener("exit",y);e.removeListener("end",m);e.removeListener("error",v);e.removeListener("close",g)}};e.exports=a},6003:e=>{"use strict";var t=/[|\\{}()[\]^$+*?.]/g;e.exports=function(e){if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(t,"\\$&")}},9646:(e,t,r)=>{"use strict";var n=r(4147);var i=r(9555);var s=r(5835)("expand-brackets");var o=r(2533);var a=r(4253);var c=r(2325);function brackets(e,t){s("initializing from <%s>",__filename);var r=brackets.create(e,t);return r.output}brackets.match=function(e,t,r){e=[].concat(e);var n=o({},r);var i=brackets.matcher(t,n);var s=e.length;var a=-1;var c=[];while(++a<s){var u=e[a];if(i(u)){c.push(u)}}if(c.length===0){if(n.failglob===true){throw new Error('no matches found for "'+t+'"')}if(n.nonull===true||n.nullglob===true){return[t.split("\\").join("")]}}return c};brackets.isMatch=function(e,t,r){return brackets.matcher(t,r)(e)};brackets.matcher=function(e,t){var r=brackets.makeRe(e,t);return function(e){return r.test(e)}};brackets.makeRe=function(e,t){var r=brackets.create(e,t);var n=o({strictErrors:false},t);return c(r.output,n)};brackets.create=function(e,t){var r=t&&t.snapdragon||new a(t);n(r);i(r);var s=r.parse(e,t);s.input=e;var o=r.compile(s,t);o.input=e;return o};brackets.compilers=n;brackets.parsers=i;e.exports=brackets},4147:(e,t,r)=>{"use strict";var n=r(803);e.exports=function(e){e.compiler.set("escape",function(e){return this.emit("\\"+e.val.replace(/^\\/,""),e)}).set("text",function(e){return this.emit(e.val.replace(/([{}])/g,"\\$1"),e)}).set("posix",function(e){if(e.val==="[::]"){return this.emit("\\[::\\]",e)}var t=n[e.inner];if(typeof t==="undefined"){t="["+e.inner+"]"}return this.emit(t,e)}).set("bracket",function(e){return this.mapVisit(e.nodes)}).set("bracket.open",function(e){return this.emit(e.val,e)}).set("bracket.inner",function(e){var t=e.val;if(t==="["||t==="]"){return this.emit("\\"+e.val,e)}if(t==="^]"){return this.emit("^\\]",e)}if(t==="^"){return this.emit("^",e)}if(/-/.test(t)&&!/(\d-\d|\w-\w)/.test(t)){t=t.split("-").join("\\-")}var r=t.charAt(0)==="^";if(r&&t.indexOf("/")===-1){t+="/"}if(r&&t.indexOf(".")===-1){t+="."}t=t.replace(/\\([1-9])/g,"$1");return this.emit(t,e)}).set("bracket.close",function(e){var t=e.val.replace(/^\\/,"");if(e.parent.escaped===true){return this.emit("\\"+t,e)}return this.emit(t,e)})}},9555:(e,t,r)=>{"use strict";var n=r(9434);var i=r(3018);var s="(\\[(?=.*\\])|\\])+";var o=n.createRegex(s);function parsers(e){e.state=e.state||{};e.parser.sets.bracket=e.parser.sets.bracket||[];e.parser.capture("escape",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\\(.)/);if(!t)return;return e({type:"escape",val:t[0]})}).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(o);if(!t||!t[0])return;return e({type:"text",val:t[0]})}).capture("posix",function(){var t=this.position();var r=this.match(/^\[:(.*?):\](?=.*\])/);if(!r)return;var n=this.isInside("bracket");if(n){e.posix++}return t({type:"posix",insideBracket:n,inner:r[1],val:r[0]})}).capture("bracket",function(){}).capture("bracket.open",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\[(?=.*\])/);if(!r)return;var s=this.prev();var o=n.last(s.nodes);if(e.slice(-1)==="\\"&&!this.isInside("bracket")){o.val=o.val.slice(0,o.val.length-1);return t({type:"escape",val:r[0]})}var a=t({type:"bracket.open",val:r[0]});if(o.type==="bracket.open"||this.isInside("bracket")){a.val="\\"+a.val;a.type="bracket.inner";a.escaped=true;return a}var c=t({type:"bracket",nodes:[a]});i(c,"parent",s);i(a,"parent",c);this.push("bracket",c);s.nodes.push(c)}).capture("bracket.inner",function(){if(!this.isInside("bracket"))return;var e=this.position();var t=this.match(o);if(!t||!t[0])return;var r=this.input.charAt(0);var n=t[0];var i=e({type:"bracket.inner",val:n});if(n==="\\\\"){return i}var s=n.charAt(0);var a=n.slice(-1);if(s==="!"){n="^"+n.slice(1)}if(a==="\\"||n==="^"&&r==="]"){n+=this.input[0];this.consume(1)}i.val=n;return i}).capture("bracket.close",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\]/);if(!r)return;var s=this.prev();var o=n.last(s.nodes);if(e.slice(-1)==="\\"&&!this.isInside("bracket")){o.val=o.val.slice(0,o.val.length-1);return t({type:"escape",val:r[0]})}var a=t({type:"bracket.close",rest:this.input,val:r[0]});if(o.type==="bracket.open"){a.type="bracket.inner";a.escaped=true;return a}var c=this.pop("bracket");if(!this.isType(c,"bracket")){if(this.options.strict){throw new Error('missing opening "["')}a.type="bracket.inner";a.escaped=true;return a}c.nodes.push(a);i(a,"parent",c)})}e.exports=parsers;e.exports.TEXT_REGEX=s},9434:(e,t,r)=>{"use strict";var n=r(2325);var i=r(466);var s;t.last=function(e){return e[e.length-1]};t.createRegex=function(e,t){if(s)return s;var r={contains:true,strictClose:false};var o=i.create(e,r);var a;if(typeof t==="string"){a=n("^(?:"+t+"|"+o+")",r)}else{a=n(o,r)}return s=a}},4460:(e,t,r)=>{t=e.exports=r(1922);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.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+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){s=i}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},1922:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(9349);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var s=new Array(arguments.length);for(var o=0;o<s.length;o++){s[o]=arguments[o]}s[0]=t.coerce(s[0]);if("string"!==typeof s[0]){s.unshift("%O")}var a=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;a++;var i=t.formatters[n];if("function"===typeof i){var o=s[a];r=i.call(e,o);s.splice(a,1);a--}return r});t.formatArgs.call(e,s);var c=debug.log||t.log||console.log.bind(console);c.apply(e,s)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);if("function"===typeof t.init){t.init(debug)}return debug}function enable(e){t.save(e);t.names=[];t.skips=[];var r=(typeof e==="string"?e:"").split(/[\s,]+/);var n=r.length;for(var i=0;i<n;i++){if(!r[i])continue;e=r[i].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}}function disable(){t.enable("")}function enabled(e){var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},5835:(e,t,r)=>{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(4460)}else{e.exports=r(4152)}},4152:(e,t,r)=>{var n=r(3867);var i=r(1669);t=e.exports=r(1922);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var s=parseInt(process.env.DEBUG_FD,10)||2;if(1!==s&&2!==s){i.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 o=1===s?process.stdout:2===s?process.stderr:createWritableStdioStream(s);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(s)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var s=" [3"+i+";1m"+r+" "+"";e[0]=s+e[0].split("\n").join("\n"+s);e.push("[3"+i+"m+"+t.humanize(this.diff)+"")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var s=r(5747);t=new s.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(1631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},9349:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},2533:(e,t,r)=>{"use strict";var n=r(7242);e.exports=function extend(e){if(!n(e)){e={}}var t=arguments.length;for(var r=1;r<t;r++){var i=arguments[r];if(n(i)){assign(e,i)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},9420:(e,t,r)=>{"use strict";var n=r(2533);var i=r(68);var s=r(2325);var o=r(4998);var a=r(3895);var c=r(6513);var u=r(354);var l=1024*64;function extglob(e,t){return extglob.create(e,t).output}extglob.match=function(e,t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}e=u.arrayify(e);var n=extglob.matcher(t,r);var s=e.length;var o=-1;var a=[];while(++o<s){var c=e[o];if(n(c)){a.push(c)}}if(typeof r==="undefined"){return i(a)}if(a.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[t.split("\\").join("")]}}return r.nodupes!==false?i(a):a};extglob.isMatch=function(e,t,r){if(typeof t!=="string"){throw new TypeError("expected pattern to be a string")}if(typeof e!=="string"){throw new TypeError("expected a string")}if(t===e){return true}if(t===""||t===" "||t==="."){return t===e}var n=u.memoize("isMatch",t,r,extglob.matcher);return n(e)};extglob.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError("expected a string")}if(t===""||t===" "||t==="."){return t===e}var i=n({},r,{contains:true});i.strictClose=false;i.strictOpen=false;return extglob.isMatch(e,t,i)};extglob.matcher=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}function matcher(){var r=extglob.makeRe(e,t);return function(e){return r.test(e)}}return u.memoize("matcher",e,t,matcher)};extglob.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}function create(){var r=new c(t);var n=r.parse(e,t);return r.compile(n,t)}return u.memoize("create",e,t,create)};extglob.capture=function(e,t,r){var i=extglob.makeRe(e,n({capture:true},r));function match(){return function(e){var t=i.exec(e);if(!t){return null}return t.slice(1)}}var s=u.memoize("capture",e,r,match);return s(t)};extglob.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=n({strictErrors:false},t);if(r.strictErrors===true)r.strict=true;var i=extglob.create(e,r);return s(i.output,r)}var r=u.memoize("makeRe",e,t,makeRe);if(r.source.length>l){throw new SyntaxError("potentially malicious regex detected")}return r};extglob.cache=u.cache;extglob.clearCache=function(){extglob.cache.__data__={}};extglob.Extglob=c;extglob.compilers=o;extglob.parsers=a;e.exports=extglob},4998:(e,t,r)=>{"use strict";var n=r(9646);e.exports=function(e){function star(){if(typeof e.options.star==="function"){return e.options.star.apply(this,arguments)}if(typeof e.options.star==="string"){return e.options.star}return".*?"}e.use(n.compilers);e.compiler.set("escape",function(e){return this.emit(e.val,e)}).set("dot",function(e){return this.emit("\\"+e.val,e)}).set("qmark",function(e){var t="[^\\\\/.]";var r=this.prev();if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n!=="!"&&n!=="="&&n!==":"){return this.emit(t,e)}return this.emit(e.val,e)}if(r.type==="text"&&r.val){return this.emit(t,e)}if(e.val.length>1){t+="{"+e.val.length+"}"}return this.emit(t,e)}).set("plus",function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}var r=this.output.slice(-1);if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)}).set("star",function(e){var t=this.prev();var r=t.type!=="text"&&t.type!=="escape"?"(?!\\.)":"";return this.emit(r+star.call(this,e),e)}).set("paren",function(e){return this.mapVisit(e.nodes)}).set("paren.open",function(e){var t=this.options.capture?"(":"";switch(e.parent.prefix){case"!":case"^":return this.emit(t+"(?:(?!(?:",e);case"*":case"+":case"?":case"@":return this.emit(t+"(?:",e);default:{var r=e.val;if(this.options.bash===true){r="\\"+r}else if(!this.options.capture&&r==="("&&e.parent.rest[0]!=="?"){r+="?:"}return this.emit(r,e)}}}).set("paren.close",function(e){var t=this.options.capture?")":"";switch(e.prefix){case"!":case"^":var r=/^(\)|$)/.test(e.rest)?"$":"";var n=star.call(this,e);if(e.parent.hasSlash&&!this.options.star&&this.options.slash!==false){n=".*?"}return this.emit(r+("))"+n+")")+t,e);case"*":case"+":case"?":return this.emit(")"+e.prefix+t,e);case"@":return this.emit(")"+t,e);default:{var i=(this.options.bash===true?"\\":"")+")";return this.emit(i,e)}}}).set("text",function(e){var t=e.val.replace(/[\[\]]/g,"\\$&");return this.emit(t,e)})}},6513:(e,t,r)=>{"use strict";var n=r(4253);var i=r(3122);var s=r(2533);var o=r(4998);var a=r(3895);function Extglob(e){this.options=s({source:"extglob"},e);this.snapdragon=this.options.snapdragon||new n(this.options);this.snapdragon.patterns=this.snapdragon.patterns||{};this.compiler=this.snapdragon.compiler;this.parser=this.snapdragon.parser;o(this.snapdragon);a(this.snapdragon);i(this.snapdragon,"parse",function(e,t){var r=n.prototype.parse.apply(this,arguments);r.input=e;var s=this.parser.stack.pop();if(s&&this.options.strict!==true){var o=s.nodes[0];o.val="\\"+o.val;var a=o.parent.nodes[1];if(a.type==="star"){a.loose=true}}i(r,"parser",this.parser);return r});i(this,"parse",function(e,t){return this.snapdragon.parse.apply(this.snapdragon,arguments)});i(this,"compile",function(e,t){return this.snapdragon.compile.apply(this.snapdragon,arguments)})}e.exports=Extglob},3895:(e,t,r)=>{"use strict";var n=r(9646);var i=r(3122);var s=r(354);var o="([!@*?+]?\\(|\\)|[*?.+\\\\]|\\[:?(?=.*\\])|:?\\])+";var a=s.createRegex(o);function parsers(e){e.state=e.state||{};e.use(n.parsers);e.parser.sets.paren=e.parser.sets.paren||[];e.parser.capture("paren.open",function(){var e=this.parsed;var t=this.position();var r=this.match(/^([!@*?+])?\(/);if(!r)return;var n=this.prev();var s=r[1];var o=r[0];var a=t({type:"paren.open",parsed:e,val:o});var c=t({type:"paren",prefix:s,nodes:[a]});if(s==="!"&&n.type==="paren"&&n.prefix==="!"){n.prefix="@";c.prefix="@"}i(c,"rest",this.input);i(c,"parsed",e);i(c,"parent",n);i(a,"parent",c);this.push("paren",c);n.nodes.push(c)}).capture("paren.close",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\)/);if(!r)return;var n=this.pop("paren");var s=t({type:"paren.close",rest:this.input,parsed:e,val:r[0]});if(!this.isType(n,"paren")){if(this.options.strict){throw new Error('missing opening paren: "("')}s.escaped=true;return s}s.prefix=n.prefix;n.nodes.push(s);i(s,"parent",n)}).capture("escape",function(){var e=this.position();var t=this.match(/^\\(.)/);if(!t)return;return e({type:"escape",val:t[0],ch:t[1]})}).capture("qmark",function(){var t=this.parsed;var r=this.position();var n=this.match(/^\?+(?!\()/);if(!n)return;e.state.metachar=true;return r({type:"qmark",rest:this.input,parsed:t,val:n[0]})}).capture("star",/^\*(?!\()/).capture("plus",/^\+(?!\()/).capture("dot",/^\./).capture("text",a)}e.exports.TEXT_REGEX=o;e.exports=parsers},354:(e,t,r)=>{"use strict";var n=r(466);var i=r(3096);var s=e.exports;var o=s.cache=new i;s.arrayify=function(e){if(!Array.isArray(e)){return[e]}return e};s.memoize=function(e,t,r,n){var i=s.createKey(e+t,r);if(o.has(e,i)){return o.get(e,i)}var a=n(t,r);if(r&&r.cache===false){return a}o.set(e,i,a);return a};s.createKey=function(e,t){var r=e;if(typeof t==="undefined"){return r}for(var n in t){r+=";"+n+"="+String(t[n])}return r};s.createRegex=function(e){var t={contains:true,strictClose:false};return n(e,t)}},3122:(e,t,r)=>{"use strict";var n=r(5721);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},5451:e=>{"use strict";e.exports=function forIn(e,t,r){for(var n in e){if(t.call(r,e[n],n,e)===false){break}}}},3096:(e,t,r)=>{"use strict";var n=r(2219);function FragmentCache(e){this.caches=e||{}}FragmentCache.prototype={cache:function(e){return this.caches[e]||(this.caches[e]=new n)},set:function(e,t,r){var n=this.cache(e);n.set(t,r);return n},has:function(e,t){return typeof this.get(e,t)!=="undefined"},get:function(e,t){var r=this.cache(e);if(typeof t==="string"){return r.get(t)}return r}};t=e.exports=FragmentCache},8945:(e,t,r)=>{e.exports=realpath;realpath.realpath=realpath;realpath.sync=realpathSync;realpath.realpathSync=realpathSync;realpath.monkeypatch=monkeypatch;realpath.unmonkeypatch=unmonkeypatch;var n=r(5747);var i=n.realpath;var s=n.realpathSync;var o=process.version;var a=/^v[0-5]\./.test(o);var c=r(4403);function newError(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function realpath(e,t,r){if(a){return i(e,t,r)}if(typeof t==="function"){r=t;t=null}i(e,t,function(n,i){if(newError(n)){c.realpath(e,t,r)}else{r(n,i)}})}function realpathSync(e,t){if(a){return s(e,t)}try{return s(e,t)}catch(r){if(newError(r)){return c.realpathSync(e,t)}else{throw r}}}function monkeypatch(){n.realpath=realpath;n.realpathSync=realpathSync}function unmonkeypatch(){n.realpath=i;n.realpathSync=s}},4403:(e,t,r)=>{var n=r(5622);var i=process.platform==="win32";var s=r(5747);var o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(o){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var a=n.normalize;if(i){var c=/(.*?)(?:[\/\\]+|$)/g}else{var c=/(.*?)(?:[\/]+|$)/g}if(i){var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var u=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var r=e,o={},a={};var l;var f;var h;var p;start();function start(){var t=u.exec(e);l=t[0].length;f=t[0];h=t[0];p="";if(i&&!a[h]){s.lstatSync(h);a[h]=true}}while(l<e.length){c.lastIndex=l;var d=c.exec(e);p=f;f+=d[0];h=p+d[1];l=c.lastIndex;if(a[h]||t&&t[h]===h){continue}var m;if(t&&Object.prototype.hasOwnProperty.call(t,h)){m=t[h]}else{var y=s.lstatSync(h);if(!y.isSymbolicLink()){a[h]=true;if(t)t[h]=h;continue}var v=null;if(!i){var g=y.dev.toString(32)+":"+y.ino.toString(32);if(o.hasOwnProperty(g)){v=o[g]}}if(v===null){s.statSync(h);v=s.readlinkSync(h)}m=n.resolve(p,v);if(t)t[h]=m;if(!i)o[g]=v}e=n.resolve(m,e.slice(l));start()}if(t)t[r]=e;return e};t.realpath=function realpath(e,t,r){if(typeof r!=="function"){r=maybeCallback(t);t=null}e=n.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return process.nextTick(r.bind(null,null,t[e]))}var o=e,a={},l={};var f;var h;var p;var d;start();function start(){var t=u.exec(e);f=t[0].length;h=t[0];p=t[0];d="";if(i&&!l[p]){s.lstat(p,function(e){if(e)return r(e);l[p]=true;LOOP()})}else{process.nextTick(LOOP)}}function LOOP(){if(f>=e.length){if(t)t[o]=e;return r(null,e)}c.lastIndex=f;var n=c.exec(e);d=h;h+=n[0];p=d+n[1];f=c.lastIndex;if(l[p]||t&&t[p]===p){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,p)){return gotResolvedLink(t[p])}return s.lstat(p,gotStat)}function gotStat(e,n){if(e)return r(e);if(!n.isSymbolicLink()){l[p]=true;if(t)t[p]=p;return process.nextTick(LOOP)}if(!i){var o=n.dev.toString(32)+":"+n.ino.toString(32);if(a.hasOwnProperty(o)){return gotTarget(null,a[o],p)}}s.stat(p,function(e){if(e)return r(e);s.readlink(p,function(e,t){if(!i)a[o]=t;gotTarget(e,t)})})}function gotTarget(e,i,s){if(e)return r(e);var o=n.resolve(d,i);if(t)t[s]=o;gotResolvedLink(o)}function gotResolvedLink(t){e=n.resolve(t,e.slice(f));start()}}},3826:e=>{e.exports=function(e,t,r,n,i){if(!isObject(e)||!t){return e}t=toString(t);if(r)t+="."+toString(r);if(n)t+="."+toString(n);if(i)t+="."+toString(i);if(t in e){return e[t]}var s=t.split(".");var o=s.length;var a=-1;while(e&&++a<o){var c=s[a];while(c[c.length-1]==="\\"){c=c.slice(0,-1)+"."+s[++a]}e=e[c]}return e};function isObject(e){return e!==null&&(typeof e==="object"||typeof e==="function")}function toString(e){if(!e)return"";if(Array.isArray(e)){return e.join(".")}return e}},2821:(e,t,r)=>{t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var n=r(5747);var i=r(5622);var s=r(9566);var o=r(1323);var a=s.Minimatch;function alphasort(e,t){return e.localeCompare(t,"en")}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new a(r,{dot:true})}return{matcher:new a(e,{dot:true}),gmatcher:t}}function setopts(e,t,r){if(!r)r={};if(r.matchBase&&-1===t.indexOf("/")){if(r.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!r.silent;e.pattern=t;e.strict=r.strict!==false;e.realpath=!!r.realpath;e.realpathCache=r.realpathCache||Object.create(null);e.follow=!!r.follow;e.dot=!!r.dot;e.mark=!!r.mark;e.nodir=!!r.nodir;if(e.nodir)e.mark=true;e.sync=!!r.sync;e.nounique=!!r.nounique;e.nonull=!!r.nonull;e.nosort=!!r.nosort;e.nocase=!!r.nocase;e.stat=!!r.stat;e.noprocess=!!r.noprocess;e.absolute=!!r.absolute;e.fs=r.fs||n;e.maxLength=r.maxLength||Infinity;e.cache=r.cache||Object.create(null);e.statCache=r.statCache||Object.create(null);e.symlinks=r.symlinks||Object.create(null);setupIgnores(e,r);e.changedCwd=false;var s=process.cwd();if(!ownProp(r,"cwd"))e.cwd=s;else{e.cwd=i.resolve(r.cwd);e.changedCwd=e.cwd!==s}e.root=r.root||i.resolve(e.cwd,"/");e.root=i.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=o(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!r.nomount;r.nonegate=true;r.nocomment=true;r.allowWindowsEscape=false;e.minimatch=new a(t,r);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var r=t?[]:Object.create(null);for(var n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];if(t)r.push(o);else r[o]=true}}else{var a=Object.keys(s);if(t)r.push.apply(r,a);else a.forEach(function(e){r[e]=true})}}if(!t)r=Object.keys(r);if(!e.nosort)r=r.sort(alphasort);if(e.mark){for(var n=0;n<r.length;n++){r[n]=e._mark(r[n])}if(e.nodir){r=r.filter(function(t){var r=!/\/$/.test(t);var n=e.cache[t]||e.cache[makeAbs(e,t)];if(r&&n)r=n!=="DIR"&&!Array.isArray(n);return r})}}if(e.ignore.length)r=r.filter(function(t){return!isIgnored(e,t)});e.found=r}function mark(e,t){var r=makeAbs(e,t);var n=e.cache[r];var i=t;if(n){var s=n==="DIR"||Array.isArray(n);var o=t.slice(-1)==="/";if(s&&!o)i+="/";else if(!s&&o)i=i.slice(0,-1);if(i!==t){var a=makeAbs(e,i);e.statCache[a]=e.statCache[r];e.cache[a]=e.cache[r]}}return i}function makeAbs(e,t){var r=t;if(t.charAt(0)==="/"){r=i.join(e.root,t)}else if(o(t)||t===""){r=t}else if(e.changedCwd){r=i.resolve(e.cwd,t)}else{r=i.resolve(t)}if(process.platform==="win32")r=r.replace(/\\/g,"/");return r}function isIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return e.matcher.match(t)||!!(e.gmatcher&&e.gmatcher.match(t))})}function childrenIgnored(e,t){if(!e.ignore.length)return false;return e.ignore.some(function(e){return!!(e.gmatcher&&e.gmatcher.match(t))})}},3700:(e,t,r)=>{e.exports=glob;var n=r(8945);var i=r(9566);var s=i.Minimatch;var o=r(6919);var a=r(8614).EventEmitter;var c=r(5622);var u=r(2357);var l=r(1323);var f=r(7433);var h=r(2821);var p=h.setopts;var d=h.ownProp;var m=r(9442);var y=r(1669);var v=h.childrenIgnored;var g=h.isIgnored;var b=r(7197);function glob(e,t,r){if(typeof t==="function")r=t,t={};if(!t)t={};if(t.sync){if(r)throw new TypeError("callback provided to sync glob");return f(e,t)}return new Glob(e,t,r)}glob.sync=f;var w=glob.GlobSync=f.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e}glob.hasMagic=function(e,t){var r=extend({},t);r.noprocess=true;var n=new Glob(e,r);var i=n.minimatch.set;if(!e)return false;if(i.length>1)return true;for(var s=0;s<i[0].length;s++){if(typeof i[0][s]!=="string")return true}return false};glob.Glob=Glob;o(Glob,a);function Glob(e,t,r){if(typeof t==="function"){r=t;t=null}if(t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof Glob))return new Glob(e,t,r);p(this,e,t);this._didRealPath=false;var n=this.minimatch.set.length;this.matches=new Array(n);if(typeof r==="function"){r=b(r);this.on("error",r);this.on("end",function(e){r(null,e)})}var i=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=false;if(this.noprocess)return this;if(n===0)return done();var s=true;for(var o=0;o<n;o++){this._process(this.minimatch.set[o],o,false,done)}s=false;function done(){--i._processing;if(i._processing<=0){if(s){process.nextTick(function(){i._finish()})}else{i._finish()}}}}Glob.prototype._finish=function(){u(this instanceof Glob);if(this.aborted)return;if(this.realpath&&!this._didRealpath)return this._realpath();h.finish(this);this.emit("end",this.found)};Glob.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=true;var e=this.matches.length;if(e===0)return this._finish();var t=this;for(var r=0;r<this.matches.length;r++)this._realpathSet(r,next);function next(){if(--e===0)t._finish()}};Glob.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var i=Object.keys(r);var s=this;var o=i.length;if(o===0)return t();var a=this.matches[e]=Object.create(null);i.forEach(function(r,i){r=s._makeAbs(r);n.realpath(r,s.realpathCache,function(n,i){if(!n)a[i]=true;else if(n.syscall==="stat")a[r]=true;else s.emit("error",n);if(--o===0){s.matches[e]=a;t()}})})};Glob.prototype._mark=function(e){return h.mark(this,e)};Glob.prototype._makeAbs=function(e){return h.makeAbs(this,e)};Glob.prototype.abort=function(){this.aborted=true;this.emit("abort")};Glob.prototype.pause=function(){if(!this.paused){this.paused=true;this.emit("pause")}};Glob.prototype.resume=function(){if(this.paused){this.emit("resume");this.paused=false;if(this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--;this._process(i[0],i[1],i[2],i[3])}}}};Glob.prototype._process=function(e,t,r,n){u(this instanceof Glob);u(typeof n==="function");if(this.aborted)return;this._processing++;if(this.paused){this._processQueue.push([e,t,r,n]);return}var s=0;while(typeof e[s]==="string"){s++}var o;switch(s){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:o=null;break;default:o=e.slice(0,s).join("/");break}var a=e.slice(s);var c;if(o===null)c=".";else if(l(o)||l(e.map(function(e){return typeof e==="string"?e:"[*]"}).join("/"))){if(!o||!l(o))o="/"+o;c=o}else c=o;var f=this._makeAbs(c);if(v(this,c))return n();var h=a[0]===i.GLOBSTAR;if(h)this._processGlobStar(o,c,f,a,t,r,n);else this._processReaddir(o,c,f,a,t,r,n)};Glob.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(c,u){return a._processReaddir2(e,t,r,n,i,s,u,o)})};Glob.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n[0];var l=!!this.minimatch.negate;var f=u._glob;var h=this.dot||f.charAt(0)===".";var p=[];for(var d=0;d<o.length;d++){var m=o[d];if(m.charAt(0)!=="."||h){var y;if(l&&!e){y=!m.match(u)}else{y=m.match(u)}if(y)p.push(m)}}var v=p.length;if(v===0)return a();if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var d=0;d<v;d++){var m=p[d];if(e){if(e!=="/")m=e+"/"+m;else m=e+m}if(m.charAt(0)==="/"&&!this.nomount){m=c.join(this.root,m)}this._emitMatch(i,m)}return a()}n.shift();for(var d=0;d<v;d++){var m=p[d];var g;if(e){if(e!=="/")m=e+"/"+m;else m=e+m}this._process([m].concat(n),i,s,a)}a()};Glob.prototype._emitMatch=function(e,t){if(this.aborted)return;if(g(this,t))return;if(this.paused){this._emitQueue.push([e,t]);return}var r=l(t)?t:this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute)t=r;if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;var i=this.statCache[r];if(i)this.emit("stat",t,i);this.emit("match",t)};Glob.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,false,t);var r="lstat\0"+e;var n=this;var i=m(r,lstatcb_);if(i)n.fs.lstat(e,i);function lstatcb_(r,i){if(r&&r.code==="ENOENT")return t();var s=i&&i.isSymbolicLink();n.symlinks[e]=s;if(!s&&i&&!i.isDirectory()){n.cache[e]="FILE";t()}else n._readdir(e,false,t)}};Glob.prototype._readdir=function(e,t,r){if(this.aborted)return;r=m("readdir\0"+e+"\0"+t,r);if(!r)return;if(t&&!d(this.symlinks,e))return this._readdirInGlobStar(e,r);if(d(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,readdirCb(this,e,r))};function readdirCb(e,t,r){return function(n,i){if(n)e._readdirError(t,n,r);else e._readdirEntries(t,i,r)}}Glob.prototype._readdirEntries=function(e,t,r){if(this.aborted)return;if(!this.mark&&!this.stat){for(var n=0;n<t.length;n++){var i=t[n];if(e==="/")i=e+i;else i=e+"/"+i;this.cache[i]=true}}this.cache[e]=t;return r(null,t)};Glob.prototype._readdirError=function(e,t,r){if(this.aborted)return;switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);this.cache[n]="FILE";if(n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd;i.code=t.code;this.emit("error",i);this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict){this.emit("error",t);this.abort()}if(!this.silent)console.error("glob error",t);break}return r()};Glob.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(c,u){a._processGlobStar2(e,t,r,n,i,s,u,o)})};Glob.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var c=n.slice(1);var u=e?[e]:[];var l=u.concat(c);this._process(l,i,false,a);var f=this.symlinks[r];var h=o.length;if(f&&s)return a();for(var p=0;p<h;p++){var d=o[p];if(d.charAt(0)==="."&&!this.dot)continue;var m=u.concat(o[p],c);this._process(m,i,true,a);var y=u.concat(o[p],n);this._process(y,i,true,a)}a()};Glob.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};Glob.prototype._processSimple2=function(e,t,r,n,i){if(!this.matches[t])this.matches[t]=Object.create(null);if(!n)return i();if(e&&l(e)&&!this.nomount){var s=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(s)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e);i()};Glob.prototype._stat=function(e,t){var r=this._makeAbs(e);var n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i))i="DIR";if(!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s;var o=this.statCache[r];if(o!==undefined){if(o===false)return t(null,o);else{var a=o.isDirectory()?"DIR":"FILE";if(n&&a==="FILE")return t();else return t(null,a,o)}}var c=this;var u=m("stat\0"+r,lstatcb_);if(u)c.fs.lstat(r,u);function lstatcb_(n,i){if(i&&i.isSymbolicLink()){return c.fs.stat(r,function(n,s){if(n)c._stat2(e,r,null,i,t);else c._stat2(e,r,n,s,t)})}else{c._stat2(e,r,n,i,t)}}};Glob.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR")){this.statCache[t]=false;return i()}var s=e.slice(-1)==="/";this.statCache[t]=n;if(t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,false,n);var o=true;if(n)o=n.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return i();return i(null,o,n)}},7433:(e,t,r)=>{e.exports=globSync;globSync.GlobSync=GlobSync;var n=r(8945);var i=r(9566);var s=i.Minimatch;var o=r(3700).Glob;var a=r(1669);var c=r(5622);var u=r(2357);var l=r(1323);var f=r(2821);var h=f.setopts;var p=f.ownProp;var d=f.childrenIgnored;var m=f.isIgnored;function globSync(e,t){if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(e,t).found}function GlobSync(e,t){if(!e)throw new Error("must provide pattern");if(typeof t==="function"||arguments.length===3)throw new TypeError("callback provided to sync glob\n"+"See: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(e,t);h(this,e,t);if(this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++){this._process(this.minimatch.set[n],n,false)}this._finish()}GlobSync.prototype._finish=function(){u.ok(this instanceof GlobSync);if(this.realpath){var e=this;this.matches.forEach(function(t,r){var i=e.matches[r]=Object.create(null);for(var s in t){try{s=e._makeAbs(s);var o=n.realpathSync(s,e.realpathCache);i[o]=true}catch(t){if(t.syscall==="stat")i[e._makeAbs(s)]=true;else throw t}}})}f.finish(this)};GlobSync.prototype._process=function(e,t,r){u.ok(this instanceof GlobSync);var n=0;while(typeof e[n]==="string"){n++}var s;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:s=null;break;default:s=e.slice(0,n).join("/");break}var o=e.slice(n);var a;if(s===null)a=".";else if(l(s)||l(e.map(function(e){return typeof e==="string"?e:"[*]"}).join("/"))){if(!s||!l(s))s="/"+s;a=s}else a=s;var c=this._makeAbs(a);if(d(this,a))return;var f=o[0]===i.GLOBSTAR;if(f)this._processGlobStar(s,a,c,o,t,r);else this._processReaddir(s,a,c,o,t,r)};GlobSync.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(!o)return;var a=n[0];var u=!!this.minimatch.negate;var l=a._glob;var f=this.dot||l.charAt(0)===".";var h=[];for(var p=0;p<o.length;p++){var d=o[p];if(d.charAt(0)!=="."||f){var m;if(u&&!e){m=!d.match(a)}else{m=d.match(a)}if(m)h.push(d)}}var y=h.length;if(y===0)return;if(n.length===1&&!this.mark&&!this.stat){if(!this.matches[i])this.matches[i]=Object.create(null);for(var p=0;p<y;p++){var d=h[p];if(e){if(e.slice(-1)!=="/")d=e+"/"+d;else d=e+d}if(d.charAt(0)==="/"&&!this.nomount){d=c.join(this.root,d)}this._emitMatch(i,d)}return}n.shift();for(var p=0;p<y;p++){var d=h[p];var v;if(e)v=[e,d];else v=[d];this._process(v.concat(n),i,s)}};GlobSync.prototype._emitMatch=function(e,t){if(m(this,t))return;var r=this._makeAbs(t);if(this.mark)t=this._mark(t);if(this.absolute){t=r}if(this.matches[e][t])return;if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=true;if(this.stat)this._stat(t)};GlobSync.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,false);var t;var r;var n;try{r=this.fs.lstatSync(e)}catch(e){if(e.code==="ENOENT"){return null}}var i=r&&r.isSymbolicLink();this.symlinks[e]=i;if(!i&&r&&!r.isDirectory())this.cache[e]="FILE";else t=this._readdir(e,false);return t};GlobSync.prototype._readdir=function(e,t){var r;if(t&&!p(this.symlinks,e))return this._readdirInGlobStar(e);if(p(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(t){this._readdirError(e,t);return null}};GlobSync.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat){for(var r=0;r<t.length;r++){var n=t[r];if(e==="/")n=e+n;else n=e+"/"+n;this.cache[n]=true}}this.cache[e]=t;return t};GlobSync.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);this.cache[r]="FILE";if(r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);n.path=this.cwd;n.code=t.code;throw n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=false;break;default:this.cache[this._makeAbs(e)]=false;if(this.strict)throw t;if(!this.silent)console.error("glob error",t);break}};GlobSync.prototype._processGlobStar=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(!o)return;var a=n.slice(1);var c=e?[e]:[];var u=c.concat(a);this._process(u,i,false);var l=o.length;var f=this.symlinks[r];if(f&&s)return;for(var h=0;h<l;h++){var p=o[h];if(p.charAt(0)==="."&&!this.dot)continue;var d=c.concat(o[h],a);this._process(d,i,true);var m=c.concat(o[h],n);this._process(m,i,true)}};GlobSync.prototype._processSimple=function(e,t){var r=this._stat(e);if(!this.matches[t])this.matches[t]=Object.create(null);if(!r)return;if(e&&l(e)&&!this.nomount){var n=/[\/\\]$/.test(e);if(e.charAt(0)==="/"){e=c.join(this.root,e)}else{e=c.resolve(this.root,e);if(n)e+="/"}}if(process.platform==="win32")e=e.replace(/\\/g,"/");this._emitMatch(t,e)};GlobSync.prototype._stat=function(e){var t=this._makeAbs(e);var r=e.slice(-1)==="/";if(e.length>this.maxLength)return false;if(!this.stat&&p(this.cache,t)){var n=this.cache[t];if(Array.isArray(n))n="DIR";if(!r||n==="DIR")return n;if(r&&n==="FILE")return false}var i;var s=this.statCache[t];if(!s){var o;try{o=this.fs.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(o&&o.isSymbolicLink()){try{s=this.fs.statSync(t)}catch(e){s=o}}else{s=o}}this.statCache[t]=s;var n=true;if(s)n=s.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||n;if(r&&n==="FILE")return false;return n};GlobSync.prototype._mark=function(e){return f.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return f.makeAbs(this,e)}},1680:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8614);const i=r(4430);const s=r(6306);const o=r(1493);const a=r(923);const c=r(4334);const u=r(3964);const l=(e,t,r)=>{if(t==="json"){return e.length===0?"":JSON.parse(e.toString())}if(t==="buffer"){return Buffer.from(e)}if(t==="text"){return e.toString(r)}throw new TypeError(`Unknown body type '${t}'`)};function createRejection(e){const t=Promise.reject(e);const r=()=>t;t.json=r;t.text=r;t.buffer=r;t.on=r;return t}t.createRejection=createRejection;function asPromise(e){const t=new n;let r;const f=new s((n,s,o)=>{const f=u.default(e);o(f.abort);const h=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}s(t)}catch(e){s(e)}};f.on("response",async s=>{var u;t.emit("response",s);try{r=await i.buffer(s,{encoding:"binary"})}catch(t){h(new a.ReadError(t,e));return}if((u=s.req)===null||u===void 0?void 0:u.aborted){return}const p=()=>{const{statusCode:t}=s;const r=e.followRedirect?299:399;return t>=200&&t<=r||t===304};try{s.body=l(r,e.responseType,e.encoding)}catch(t){s.body=r.toString();if(p()){const r=new a.ParseError(t,s,e);h(r);return}}try{for(const[t,r]of e.hooks.afterResponse.entries()){s=await r(s,async r=>{const n=c.normalizeArguments(c.mergeOptions(e,{...r,retry:{calculateDelay:()=>0},throwHttpErrors:false,resolveBodyOnly:false}));n.hooks.afterResponse=e.hooks.afterResponse.slice(0,t);for(const t of e.hooks.beforeRetry){await t(n)}const i=asPromise(n);o(()=>{i.catch(()=>{});i.cancel()});return i})}}catch(e){h(e);return}if(!p()){const t=new a.HTTPError(s,e);if(f.retry(t)){return}if(e.throwHttpErrors){h(t);return}}n(e.resolveBodyOnly?s.body:s)});f.once("error",s);u.proxyEvents(t,f)});f.on=((e,r)=>{t.on(e,r);return f});const h=t=>{const n=f.then(()=>l(r,t,e.encoding));Object.defineProperties(n,Object.getOwnPropertyDescriptors(f));return n};f.json=(()=>{if(o.default.undefined(r)&&o.default.undefined(e.headers.accept)){e.headers.accept="application/json"}return h("json")});f.buffer=(()=>h("buffer"));f.text=(()=>h("text"));return f}t.default=asPromise},1947:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5519);const i=r(8605);const s=r(2413);const o=r(923);const a=r(3964);class ProxyStream extends s.Duplex{}t.ProxyStream=ProxyStream;function asStream(e){const t=new s.PassThrough;const r=new s.PassThrough;const c=n(t,r);const u=new Set;let l=false;e.retry.calculateDelay=(()=>0);if(e.body||e.json||e.form){c.write=(()=>{c.destroy();throw new Error("Got's stream is not writable when the `body`, `json` or `form` option is used")})}else if(e.method==="POST"||e.method==="PUT"||e.method==="PATCH"||e.allowGetBody&&e.method==="GET"){e.body=t}else{c.write=(()=>{c.destroy();throw new TypeError(`The \`${e.method}\` method cannot be used with a body`)})}const f=a.default(e);const h=async t=>{try{for(const r of e.hooks.beforeError){t=await r(t)}c.emit("error",t)}catch(e){c.emit("error",e)}};c._destroy=((e,t)=>{t(e);f.abort()});f.on("response",t=>{const{statusCode:n,isFromCache:i}=t;c.isFromCache=i;if(e.throwHttpErrors&&n!==304&&(n<200||n>299)){h(new o.HTTPError(t,e));return}{const e=c._read;c._read=((...t)=>{l=true;c._read=e;return e.apply(c,t)})}if(e.encoding){c.setEncoding(e.encoding)}t.pipe(r);t.once("error",t=>{h(new o.ReadError(t,e))});for(const r of u){if(r.headersSent){continue}for(const[n,i]of Object.entries(t.headers)){const t=e.decompress?n!=="content-encoding":true;if(t){r.setHeader(n,i)}}r.statusCode=t.statusCode}c.emit("response",t)});a.proxyEvents(c,f);f.on("error",e=>c.emit("error",e));const p=c.pipe.bind(c);const d=c.unpipe.bind(c);c.pipe=((e,t)=>{if(l){throw new Error("Failed to pipe. The response has been emitted already.")}p(e,t);if(e instanceof i.ServerResponse){u.add(e)}return e});c.unpipe=(e=>{u.delete(e);return d(e)});c.on("pipe",t=>{if(t instanceof i.IncomingMessage){e.headers={...t.headers,...e.headers}}});c.isFromCache=undefined;return c}t.default=asStream},3338:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);const i=r(923);const s=new Set([413,429,503]);const o=e=>e instanceof i.HTTPError||e instanceof i.ParseError||e instanceof i.MaxRedirectsError;const a=({attemptCount:e,retryOptions:t,error:r})=>{if(e>t.limit){return 0}const i=t.methods.includes(r.options.method);const a=Reflect.has(r,"code")&&t.errorCodes.includes(r.code);const c=o(r)&&t.statusCodes.includes(r.response.statusCode);if(!i||!a&&!c){return 0}if(o(r)){const{response:e}=r;if(e&&Reflect.has(e.headers,"retry-after")&&s.has(e.statusCode)){let r=Number(e.headers["retry-after"]);if(n.default.nan(r)){r=Date.parse(e.headers["retry-after"])-Date.now()}else{r*=1e3}if(r>t.maxRetryAfter){return 0}return r}if(e.statusCode===413){return 0}}const u=Math.random()*100;return 2**(e-1)*1e3+u};t.default=a},3854:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);const i=r(1680);const s=r(1947);const o=r(923);const a=r(4334);const c=r(3090);const u=e=>e.isStream?s.default(e):i.default(e);const l=e=>Reflect.has(e,"defaults")&&Reflect.has(e.defaults,"options");const f=["get","post","put","patch","head","delete"];t.defaultHandler=((e,t)=>t(e));const h=e=>{e._rawHandlers=e.handlers;e.handlers=e.handlers.map(e=>(t,r)=>{let n;const i=e(t,e=>{n=r(e);return n});if(i!==n&&!t.isStream&&n){const e=i;const{then:t,catch:r,finally:s}=e;Object.setPrototypeOf(e,Object.getPrototypeOf(n));Object.defineProperties(e,Object.getOwnPropertyDescriptors(n));e.then=t;e.catch=r;e.finally=s}return i});const r=(t,r)=>{var n;let s=0;const o=t=>{return e.handlers[s++](t,s===e.handlers.length?u:o)};try{return o(a.normalizeArguments(t,r,e))}catch(e){if((n=r)===null||n===void 0?void 0:n.isStream){throw e}else{return i.createRejection(e)}}};r.extend=((...r)=>{const n=[e.options];let i=[...e._rawHandlers];let s;for(const e of r){if(l(e)){n.push(e.defaults.options);i.push(...e.defaults._rawHandlers);s=e.defaults.mutableDefaults}else{n.push(e);if(Reflect.has(e,"handlers")){i.push(...e.handlers)}s=e.mutableDefaults}}i=i.filter(e=>e!==t.defaultHandler);if(i.length===0){i.push(t.defaultHandler)}return h({options:a.mergeOptions(...n),handlers:i,mutableDefaults:Boolean(s)})});r.stream=((e,t)=>r(e,{...t,isStream:true}));for(const e of f){r[e]=((t,n)=>r(t,{...n,method:e}));r.stream[e]=((t,n)=>r.stream(t,{...n,method:e}))}r.paginate=async function*(t,i){let s=a.normalizeArguments(t,i,e);const o=s._pagination;if(!n.default.object(o)){throw new Error("`options._pagination` must be implemented")}const c=[];while(true){const e=await r(s);const t=await o.transform(e);const n=[];for(const e of t){if(o.filter(e,c,n)){if(!o.shouldContinue(e,c,n)){return}yield e;c.push(e);n.push(e);if(c.length===o.countLimit){return}}}const i=o.paginate(e,c,n);if(i===false){return}if(i!==undefined){s=a.normalizeArguments(s,i)}}};r.paginate.all=(async(e,t)=>{const n=[];for await(const i of r.paginate(e,t)){n.push(i)}return n});Object.assign(r,{...o,mergeOptions:a.mergeOptions});Object.defineProperty(r,"defaults",{value:e.mutableDefaults?e:c.default(e),writable:e.mutableDefaults,configurable:e.mutableDefaults,enumerable:true});return r};t.default=h},923:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);class GotError extends Error{constructor(e,t,r){super(e);Error.captureStackTrace(this,this.constructor);this.name="GotError";if(!n.default.undefined(t.code)){this.code=t.code}Object.defineProperty(this,"options",{enumerable:false,value:r});if(!n.default.undefined(t.stack)){const e=this.stack.indexOf(this.message)+this.message.length;const r=this.stack.slice(e).split("\n").reverse();const n=t.stack.slice(t.stack.indexOf(t.message)+t.message.length).split("\n").reverse();while(n.length!==0&&n[0]===r[0]){r.shift()}this.stack=`${this.stack.slice(0,e)}${r.reverse().join("\n")}${n.reverse().join("\n")}`}}}t.GotError=GotError;class CacheError extends GotError{constructor(e,t){super(e.message,e,t);this.name="CacheError"}}t.CacheError=CacheError;class RequestError extends GotError{constructor(e,t){super(e.message,e,t);this.name="RequestError"}}t.RequestError=RequestError;class ReadError extends GotError{constructor(e,t){super(e.message,e,t);this.name="ReadError"}}t.ReadError=ReadError;class ParseError extends GotError{constructor(e,t,r){super(`${e.message} in "${r.url.toString()}"`,e,r);this.name="ParseError";Object.defineProperty(this,"response",{enumerable:false,value:t})}}t.ParseError=ParseError;class HTTPError extends GotError{constructor(e,t){super(`Response code ${e.statusCode} (${e.statusMessage})`,{},t);this.name="HTTPError";Object.defineProperty(this,"response",{enumerable:false,value:e})}}t.HTTPError=HTTPError;class MaxRedirectsError extends GotError{constructor(e,t,r){super(`Redirected ${t} times. Aborting.`,{},r);this.name="MaxRedirectsError";Object.defineProperty(this,"response",{enumerable:false,value:e})}}t.MaxRedirectsError=MaxRedirectsError;class UnsupportedProtocolError extends GotError{constructor(e){super(`Unsupported protocol "${e.url.protocol}"`,{},e);this.name="UnsupportedProtocolError"}}t.UnsupportedProtocolError=UnsupportedProtocolError;class TimeoutError extends GotError{constructor(e,t,r){super(e.message,e,r);this.name="TimeoutError";this.event=e.event;this.timings=t}}t.TimeoutError=TimeoutError;var i=r(6306);t.CancelError=i.CancelError},3774:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2582);const i=r(5122);const s=r(2413);const o=r(1669);const a=r(75);const c=o.promisify(s.pipeline);t.default=(async(e,t,r)=>{var s;const o=Number(e.headers["content-length"])||undefined;const u=a.createProgressStream("downloadProgress",r,o);i(e,u);const l=t.decompress&&t.method!=="HEAD"?n(u):u;if(!t.decompress&&["gzip","deflate","br"].includes((s=l.headers["content-encoding"],s!==null&&s!==void 0?s:""))){t.responseType="buffer"}r.emit("response",l);return c(e,u).catch(e=>{if(e.code!=="ERR_STREAM_PREMATURE_CLOSE"){throw e}})})},9365:(e,t,r)=>{"use strict";function __export(e){for(var r in e)if(!t.hasOwnProperty(r))t[r]=e[r]}Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(3854);const s={options:{method:"GET",retry:{limit:2,methods:["GET","PUT","HEAD","DELETE","OPTIONS","TRACE"],statusCodes:[408,413,429,500,502,503,504,521,522,524],errorCodes:["ETIMEDOUT","ECONNRESET","EADDRINUSE","ECONNREFUSED","EPIPE","ENOTFOUND","ENETUNREACH","EAI_AGAIN"],maxRetryAfter:undefined,calculateDelay:({computedValue:e})=>e},timeout:{},headers:{"user-agent":"got (https://github.com/sindresorhus/got)"},hooks:{init:[],beforeRequest:[],beforeRedirect:[],beforeRetry:[],beforeError:[],afterResponse:[]},decompress:true,throwHttpErrors:true,followRedirect:true,isStream:false,cache:false,dnsCache:false,useElectronNet:false,responseType:"text",resolveBodyOnly:false,maxRedirects:10,prefixUrl:"",methodRewriting:true,allowGetBody:false,ignoreInvalidCookies:false,context:{},_pagination:{transform:e=>{if(e.request.options.responseType==="json"){return e.body}return JSON.parse(e.body)},paginate:e=>{if(!Reflect.has(e.headers,"link")){return false}const t=e.headers.link.split(",");let r;for(const e of t){const t=e.split(";");if(t[1].includes("next")){r=t[0].trimStart().trim();r=r.slice(1,-1);break}}if(r){const e={url:new n.URL(r)};return e}return false},filter:()=>true,shouldContinue:()=>true,countLimit:Infinity}},handlers:[i.defaultHandler],mutableDefaults:false};const o=i.default(s);t.default=o;e.exports=o;e.exports.default=o;__export(r(7392));var a=r(1947);t.ResponseStream=a.ProxyStream;var c=r(923);t.GotError=c.GotError;t.CacheError=c.CacheError;t.RequestError=c.RequestError;t.ReadError=c.ReadError;t.ParseError=c.ParseError;t.HTTPError=c.HTTPError;t.MaxRedirectsError=c.MaxRedirectsError;t.UnsupportedProtocolError=c.UnsupportedProtocolError;t.TimeoutError=c.TimeoutError;t.CancelError=c.CancelError},9984:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=["beforeError","init","beforeRequest","beforeRedirect","beforeRetry","afterResponse"];t.default=r},4334:(e,t,r)=>{"use strict";e=r.nmd(e);Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(1669);const s=r(3817);const o=r(8605);const a=r(7211);const c=r(530);const u=r(9649);const l=r(1493);const f=r(9147);const h=r(923);const p=r(9984);const d=r(4362);const m=r(1898);const y=r(3236);const v=r(4099);const g=r(7916);const b=r(9968);const w=r(7392);const S=["context","body","json","form"];const x=e=>l.default.object(e);t.preNormalizeArguments=((e,t)=>{var r,n,o,a,u,h;if(l.default.undefined(e.headers)){e.headers={}}else{e.headers=c(e.headers)}for(const[t,r]of Object.entries(e.headers)){if(l.default.null_(r)){throw new TypeError(`Use \`undefined\` instead of \`null\` to delete the \`${t}\` header`)}}if(l.default.urlInstance(e.prefixUrl)||l.default.string(e.prefixUrl)){e.prefixUrl=e.prefixUrl.toString();if(e.prefixUrl.length!==0&&!e.prefixUrl.endsWith("/")){e.prefixUrl+="/"}}else{e.prefixUrl=t?t.prefixUrl:""}if(l.default.undefined(e.hooks)){e.hooks={}}if(l.default.object(e.hooks)){for(const t of p.default){if(Reflect.has(e.hooks,t)){if(!l.default.array(e.hooks[t])){throw new TypeError(`Parameter \`${t}\` must be an Array, not ${l.default(e.hooks[t])}`)}}else{e.hooks[t]=[]}}}else{throw new TypeError(`Parameter \`hooks\` must be an Object, not ${l.default(e.hooks)}`)}if(t){for(const r of p.default){if(!(Reflect.has(e.hooks,r)&&l.default.undefined(e.hooks[r]))){e.hooks[r]=[...t.hooks[r],...e.hooks[r]]}}}if(l.default.number(e.timeout)){e.timeout={request:e.timeout}}else if(!l.default.object(e.timeout)){e.timeout={}}const{retry:d}=e;if(t){e.retry={...t.retry}}else{e.retry={calculateDelay:e=>e.computedValue,limit:0,methods:[],statusCodes:[],errorCodes:[],maxRetryAfter:undefined}}if(l.default.object(d)){e.retry={...e.retry,...d}}else if(l.default.number(d)){e.retry.limit=d}if(e.retry.maxRetryAfter===undefined){e.retry.maxRetryAfter=Math.min(...[e.timeout.request,e.timeout.connect].filter(e=>!l.default.nullOrUndefined(e)))}e.retry.methods=[...new Set(e.retry.methods.map(e=>e.toUpperCase()))];e.retry.statusCodes=[...new Set(e.retry.statusCodes)];e.retry.errorCodes=[...new Set(e.retry.errorCodes)];if(e.dnsCache&&!(e.dnsCache instanceof f.default)){e.dnsCache=new f.default({cacheAdapter:e.dnsCache})}if(l.default.string(e.method)){e.method=e.method.toUpperCase()}else{e.method=(n=(r=t)===null||r===void 0?void 0:r.method,n!==null&&n!==void 0?n:"GET")}if(e.cache){e.cacheableRequest=new s((e,t)=>e[w.requestSymbol](e,t),e.cache)}if(l.default.object(e.cookieJar)){let{setCookie:t,getCookieString:r}=e.cookieJar;if(t.length===4&&r.length===0){if(!Reflect.has(t,i.promisify.custom)){t=i.promisify(t.bind(e.cookieJar));r=i.promisify(r.bind(e.cookieJar))}}else if(t.length!==2){throw new TypeError("`options.cookieJar.setCookie` needs to be an async function with 2 arguments")}else if(r.length!==1){throw new TypeError("`options.cookieJar.getCookieString` needs to be an async function with 1 argument")}e.cookieJar={setCookie:t,getCookieString:r}}if(l.default.null_(e.encoding)){throw new TypeError("To get a Buffer, set `options.responseType` to `buffer` instead")}if(!Reflect.has(e,"maxRedirects")&&!(t&&Reflect.has(t,"maxRedirects"))){e.maxRedirects=0}if(t){e=v.default({},t,e)}if(l.default.object(e._pagination)){const{_pagination:t}=e;if(!l.default.function_(t.transform)){throw new TypeError("`options._pagination.transform` must be implemented")}if(!l.default.function_(t.shouldContinue)){throw new TypeError("`options._pagination.shouldContinue` must be implemented")}if(!l.default.function_(t.filter)){throw new TypeError("`options._pagination.filter` must be implemented")}if(!l.default.function_(t.paginate)){throw new TypeError("`options._pagination.paginate` must be implemented")}}e.decompress=Boolean(e.decompress);e.isStream=Boolean(e.isStream);e.throwHttpErrors=Boolean(e.throwHttpErrors);e.ignoreInvalidCookies=Boolean(e.ignoreInvalidCookies);e.cache=(o=e.cache,o!==null&&o!==void 0?o:false);e.responseType=(a=e.responseType,a!==null&&a!==void 0?a:"text");e.resolveBodyOnly=Boolean(e.resolveBodyOnly);e.followRedirect=Boolean(e.followRedirect);e.dnsCache=(u=e.dnsCache,u!==null&&u!==void 0?u:false);e.useElectronNet=Boolean(e.useElectronNet);e.methodRewriting=Boolean(e.methodRewriting);e.allowGetBody=Boolean(e.allowGetBody);e.context=(h=e.context,h!==null&&h!==void 0?h:{});return e});t.mergeOptions=((...e)=>{let r=t.preNormalizeArguments({});const n={};for(const i of e){r=t.preNormalizeArguments(v.default({},i),r);for(const e of S){if(!Reflect.has(i,e)){continue}n[e]={writable:true,configurable:true,enumerable:false,value:i[e]}}}Object.defineProperties(r,n);return r});t.normalizeArguments=((e,r,i)=>{var s,o,a,c,u,f,h,p,d,m;if(typeof e==="undefined"){throw new TypeError("Missing `url` argument")}const y=(e,t)=>{if(e&&t){for(const r of e){const e=r(t);if(l.default.promise(e)){throw new TypeError("The `init` hook must be a synchronous function")}}}};const v=l.default.urlInstance(e)||l.default.string(e);if(v){if(r){if(Reflect.has(r,"url")){throw new TypeError("The `url` option cannot be used if the input is a valid URL.")}}else{r={}}r.url=e;y((s=i)===null||s===void 0?void 0:s.options.hooks.init,r);y((o=r.hooks)===null||o===void 0?void 0:o.init,r)}else if(Reflect.has(e,"resolve")){throw new Error("The legacy `url.Url` is deprecated. Use `URL` instead.")}else{y((a=i)===null||a===void 0?void 0:a.options.hooks.init,e);y((c=e.hooks)===null||c===void 0?void 0:c.init,e);if(r){y((u=i)===null||u===void 0?void 0:u.options.hooks.init,r);y((f=r.hooks)===null||f===void 0?void 0:f.init,r)}}if(v){r=t.mergeOptions((p=(h=i)===null||h===void 0?void 0:h.options,p!==null&&p!==void 0?p:{}),r!==null&&r!==void 0?r:{})}else{r=t.mergeOptions((m=(d=i)===null||d===void 0?void 0:d.options,m!==null&&m!==void 0?m:{}),e,r!==null&&r!==void 0?r:{})}if(l.default.string(r.url)){r.url=r.prefixUrl+r.url;r.url=r.url.replace(/^unix:/,"http://$&");if(r.searchParams||r.search){r.url=r.url.split("?")[0]}r.url=g.default({origin:r.url,...r})}else if(!l.default.urlInstance(r.url)){r.url=g.default({origin:r.prefixUrl,...r})}const b=r;let w=r.prefixUrl;Object.defineProperty(b,"prefixUrl",{set:e=>{if(!b.url.href.startsWith(e)){throw new Error(`Cannot change \`prefixUrl\` from ${w} to ${e}: ${b.url.href}`)}b.url=new n.URL(e+b.url.href.slice(w.length));w=e},get:()=>w});for(const[e,t]of Object.entries(b.headers)){if(l.default.undefined(t)){delete b.headers[e]}}return b});const E=new Set(["HEAD"]);const _="GET";t.normalizeRequestArguments=(async r=>{var s,c,f;r=t.mergeOptions(r);const{headers:p}=r;const v=l.default.undefined(p["content-type"]);{const e=!l.default.undefined(r.form);const t=!l.default.undefined(r.json);const n=!l.default.undefined(r.body);if((n||e||t)&&E.has(r.method)){throw new TypeError(`The \`${r.method}\` method cannot be used with a body`)}if(!r.allowGetBody&&(n||e||t)&&_===r.method){throw new TypeError(`The \`${r.method}\` method cannot be used with a body`)}if([n,e,t].filter(e=>e).length>1){throw new TypeError("The `body`, `json` and `form` options are mutually exclusive")}if(n&&!l.default.nodeStream(r.body)&&!l.default.string(r.body)&&!l.default.buffer(r.body)&&!(l.default.object(r.body)&&y.default(r.body))){throw new TypeError("The `body` option must be a stream.Readable, string or Buffer")}if(e&&!l.default.object(r.form)){throw new TypeError("The `form` option must be an Object")}}if(r.body){if(l.default.object(r.body)&&y.default(r.body)&&v){p["content-type"]=`multipart/form-data; boundary=${r.body.getBoundary()}`}}else if(r.form){if(v){p["content-type"]="application/x-www-form-urlencoded"}r.body=new n.URLSearchParams(r.form).toString()}else if(r.json){if(v){p["content-type"]="application/json"}r.body=JSON.stringify(r.json)}const g=await m.default(r);if(!l.default.nodeStream(r.body)){r.body=u(r.body)}if(l.default.undefined(p["content-length"])&&l.default.undefined(p["transfer-encoding"])){if((r.method==="POST"||r.method==="PUT"||r.method==="PATCH"||r.method==="DELETE"||r.allowGetBody&&r.method==="GET")&&!l.default.undefined(g)){p["content-length"]=String(g)}}if(!r.isStream&&r.responseType==="json"&&l.default.undefined(p.accept)){p.accept="application/json"}if(r.decompress&&l.default.undefined(p["accept-encoding"])){p["accept-encoding"]=b.default?"gzip, deflate, br":"gzip, deflate"}if(r.url.protocol!=="http:"&&r.url.protocol!=="https:"){throw new h.UnsupportedProtocolError(r)}decodeURI(r.url.toString());if(l.default.function_(r.request)){r[w.requestSymbol]=r.request;delete r.request}else{r[w.requestSymbol]=r.url.protocol==="https:"?a.request:o.request}if(r.url.hostname==="unix"){const e=/(?<socketPath>.+?):(?<path>.+)/.exec(r.url.pathname);if((s=e)===null||s===void 0?void 0:s.groups){const{socketPath:t,path:n}=e.groups;r={...r,socketPath:t,path:n,host:""}}}if(x(r.agent)){r.agent=(c=r.agent[r.url.protocol.slice(0,-1)],c!==null&&c!==void 0?c:r.agent)}if(r.dnsCache){r.lookup=r.dnsCache.lookup}if(r.useElectronNet&&process.versions.electron){const t=d.default(e,"electron");r.request=i.deprecate((f=t.net.request,f!==null&&f!==void 0?f:t.remote.net.request),"Electron support has been deprecated and will be removed in Got 11.\n"+"See https://github.com/sindresorhus/got/issues/899 for further information.","GOT_ELECTRON")}delete r.timeout;if(r.cookieJar){const e=await r.cookieJar.getCookieString(r.url.toString());if(l.default.nonEmptyString(e)){r.headers.cookie=e}else{delete r.headers.cookie}}delete r.url;return r})},75:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(2413);const i=r(1493);function createProgressStream(e,t,r){let s=0;if(i.default.string(r)){r=Number(r)}const o=new n.Transform({transform(n,i,o){s+=n.length;const a=r?s/r:0;if(a<1){t.emit(e,{percent:a,transferred:s,total:r})}o(undefined,n)},flush(n){t.emit(e,{percent:1,transferred:s,total:r});n()}});t.emit(e,{percent:0,transferred:0,total:r});return o}t.createProgressStream=createProgressStream},3964:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const i=r(3817);const s=r(8614);const o=r(8605);const a=r(2413);const c=r(8835);const u=r(1669);const l=r(1493);const f=r(4529);const h=r(3338);const p=r(923);const d=r(3774);const m=r(4334);const y=r(75);const v=r(4269);const g=r(7392);const b=r(4308);const w=r(7021);const S=async()=>new Promise(e=>setImmediate(e));const x=u.promisify(a.pipeline);const E=new Set([300,301,302,303,304,307,308]);t.default=(e=>{const t=new s;const r=e.url.toString();const a=[];let u=0;let _;const O=()=>typeof _.aborted==="number"||_.aborted;const R=async r=>{try{for(const t of e.hooks.beforeError){r=await t(r)}t.emit("error",r)}catch(e){t.emit("error",e)}};const A=async()=>{let n=await m.normalizeRequestArguments(e);const s=async n=>{var i;try{if(e.useElectronNet){n=new Proxy(n,{get:(e,t)=>{if(t==="trailers"||t==="rawTrailers"){return[]}const r=e[t];return l.default.function_(r)?r.bind(e):r}})}const s=n;const{statusCode:f}=s;s.statusMessage=l.default.nonEmptyString(s.statusMessage)?s.statusMessage:o.STATUS_CODES[f];s.url=e.url.toString();s.requestUrl=r;s.retryCount=u;s.redirectUrls=a;s.request={options:e};s.isFromCache=(i=s.fromCache,i!==null&&i!==void 0?i:false);delete s.fromCache;if(!s.isFromCache){s.ip=n.socket.remoteAddress}const h=s.headers["set-cookie"];if(Reflect.has(e,"cookieJar")&&h){let t=h.map(async t=>e.cookieJar.setCookie(t,s.url));if(e.ignoreInvalidCookies){t=t.map(async e=>e.catch(()=>{}))}await Promise.all(t)}if(e.followRedirect&&Reflect.has(s.headers,"location")&&E.has(f)){s.resume();if(f===303||e.methodRewriting===false){if(e.method!=="GET"&&e.method!=="HEAD"){e.method="GET"}if(Reflect.has(e,"body")){delete e.body}if(Reflect.has(e,"json")){delete e.json}if(Reflect.has(e,"form")){delete e.form}}if(a.length>=e.maxRedirects){throw new p.MaxRedirectsError(s,e.maxRedirects,e)}const r=Buffer.from(s.headers.location,"binary").toString();const i=new c.URL(r,e.url);if(i.hostname!==e.url.hostname&&Reflect.has(e.headers,"cookie")){delete e.headers.cookie}a.push(i.toString());e.url=i;for(const t of e.hooks.beforeRedirect){await t(e,s)}t.emit("redirect",n,e);await A();return}await d.default(s,e,t)}catch(e){R(e)}};const h=async r=>{let i=false;let s=false;r.once("finish",()=>{s=true});_=r;const o=n=>{if(n instanceof v.TimeoutError){n=new p.TimeoutError(n,r.timings,e)}else{n=new p.RequestError(n,e)}if(!t.retry(n)){R(n)}};r.on("error",e=>{if(i){if(!s){return}if(O()&&!(e instanceof v.TimeoutError)){return}}o(e)});try{f.default(r);v.default(r,e.timeout,e.url);t.emit("request",r);const s=y.createProgressStream("uploadProgress",t,n.headers["content-length"]);i=true;await x(n.body,s,r);r.emit("upload-complete")}catch(e){if(O()&&e.message==="Premature close"){return}o(e)}};if(e.cache){n={...n,...b.default(e.url)};const t=e.cacheableRequest(n,s);t.once("error",t=>{if(t instanceof i.RequestError){R(new p.RequestError(t,e))}else{R(new p.CacheError(t,e))}});t.once("request",h)}else{try{h(n[g.requestSymbol](e.url,n,s))}catch(t){R(new p.RequestError(t,e))}}};t.retry=(t=>{let r;u++;try{r=e.retry.calculateDelay({attemptCount:u,retryOptions:e.retry,error:t,computedValue:h.default({attemptCount:u,retryOptions:e.retry,error:t,computedValue:0})})}catch(e){R(e);return false}if(r){const n=async e=>{try{for(const r of e.hooks.beforeRetry){await r(e,t,u)}await A()}catch(e){R(e)}};setTimeout(n,r,{...e,forceRefresh:true});return true}return false});t.abort=(()=>{t.prependListener("request",e=>{e.abort()});if(_){_.abort()}});(async()=>{try{if(e.body instanceof n.ReadStream){await w(e.body,"open")}await S();for(const t of e.hooks.beforeRequest){await t(e)}await A()}catch(e){R(e)}})();return t});t.proxyEvents=((e,t)=>{const r=["request","redirect","uploadProgress","downloadProgress"];for(const n of r){t.on(n,(...t)=>{e.emit(n,...t)})}})},7392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.requestSymbol=Symbol("request")},3090:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);function deepFreeze(e){for(const t of Object.values(e)){if(n.default.plainObject(t)||n.default.array(t)){deepFreeze(t)}}return Object.freeze(e)}t.default=deepFreeze},4362:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=((e,t)=>e.require(t))},1898:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(5747);const i=r(1669);const s=r(1493);const o=r(3236);const a=i.promisify(n.stat);t.default=(async e=>{const{body:t,headers:r}=e;if(r&&"content-length"in r){return Number(r["content-length"])}if(!t){return 0}if(s.default.string(t)){return Buffer.byteLength(t)}if(s.default.buffer(t)){return t.length}if(o.default(t)){return i.promisify(t.getLength.bind(t))()}if(t instanceof n.ReadStream){const{size:e}=await a(t.path);return e}return undefined})},3236:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);t.default=(e=>n.default.nodeStream(e)&&n.default.function_(e.getBoundary))},4099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);const i=r(1493);function merge(e,...t){for(const r of t){for(const[t,s]of Object.entries(r)){const r=e[t];if(i.default.urlInstance(r)&&i.default.string(s)){e[t]=new n.URL(s,r)}else if(i.default.plainObject(s)){if(i.default.plainObject(r)){e[t]=merge({},r,s)}else{e[t]=merge({},s)}}else if(i.default.array(s)){e[t]=s.slice()}else{e[t]=s}}}return e}t.default=merge},7916:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8835);function validateSearchParams(e){for(const t of Object.values(e)){if(typeof t!=="string"&&typeof t!=="number"&&typeof t!=="boolean"&&t!==null){throw new TypeError(`The \`searchParams\` value '${String(t)}' must be a string, number, boolean or null`)}}}const i=["protocol","username","password","host","hostname","port","pathname","search","hash"];t.default=(e=>{var t,r;let s;if(e.path){if(e.pathname){throw new TypeError("Parameters `path` and `pathname` are mutually exclusive.")}if(e.search){throw new TypeError("Parameters `path` and `search` are mutually exclusive.")}if(e.searchParams){throw new TypeError("Parameters `path` and `searchParams` are mutually exclusive.")}}if(Reflect.has(e,"auth")){throw new TypeError("Parameter `auth` is deprecated. Use `username` / `password` instead.")}if(e.search&&e.searchParams){throw new TypeError("Parameters `search` and `searchParams` are mutually exclusive.")}if(e.href){return new n.URL(e.href)}if(e.origin){s=e.origin}else{if(!e.protocol){throw new TypeError("No URL protocol specified")}s=`${e.protocol}//${r=(t=e.hostname,t!==null&&t!==void 0?t:e.host),r!==null&&r!==void 0?r:""}`}const o=new n.URL(s);if(e.path){const t=e.path.indexOf("?");if(t===-1){e.pathname=e.path}else{e.pathname=e.path.slice(0,t);e.search=e.path.slice(t+1)}}if(Reflect.has(e,"path")){delete e.path}for(const t of i){if(Reflect.has(e,t)){o[t]=e[t].toString()}}if(e.searchParams){if(typeof e.searchParams!=="string"&&!(e.searchParams instanceof n.URLSearchParams)){validateSearchParams(e.searchParams)}new n.URLSearchParams(e.searchParams).forEach((e,t)=>{o.searchParams.append(t,e)})}return o})},9968:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(8761);t.default=typeof n.createBrotliDecompress==="function"},4269:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1631);const i=r(9002);const s=Symbol("reentry");const o=()=>{};class TimeoutError extends Error{constructor(e,t){super(`Timeout awaiting '${t}' for ${e}ms`);this.event=t;this.name="TimeoutError";this.code="ETIMEDOUT"}}t.TimeoutError=TimeoutError;t.default=((e,t,r)=>{if(Reflect.has(e,s)){return o}e[s]=true;const a=[];const{once:c,unhandleAll:u}=i.default();const l=(e,t,r)=>{var n,i;const s=setTimeout(t,e,e,r);(i=(n=s).unref)===null||i===void 0?void 0:i.call(n);const o=()=>{clearTimeout(s)};a.push(o);return o};const{host:f,hostname:h}=r;const p=(t,r)=>{if(e.socket){e.socket._hadError=true}e.abort();e.emit("error",new TimeoutError(t,r))};const d=()=>{for(const e of a){e()}u()};e.once("error",t=>{d();if(e.listenerCount("error")===0){throw t}});e.once("abort",d);c(e,"response",e=>{c(e,"end",d)});if(typeof t.request!=="undefined"){l(t.request,p,"request")}if(typeof t.socket!=="undefined"){const r=()=>{p(t.socket,"socket")};e.setTimeout(t.socket,r);a.push(()=>{e.removeListener("timeout",r)})}c(e,"socket",i=>{var s;const{socketPath:o}=e;if(i.connecting){const e=Boolean(o!==null&&o!==void 0?o:n.isIP((s=h!==null&&h!==void 0?h:f,s!==null&&s!==void 0?s:""))!==0);if(typeof t.lookup!=="undefined"&&!e&&typeof i.address().address==="undefined"){const e=l(t.lookup,p,"lookup");c(i,"lookup",e)}if(typeof t.connect!=="undefined"){const r=()=>l(t.connect,p,"connect");if(e){c(i,"connect",r())}else{c(i,"lookup",e=>{if(e===null){c(i,"connect",r())}})}}if(typeof t.secureConnect!=="undefined"&&r.protocol==="https:"){c(i,"connect",()=>{const e=l(t.secureConnect,p,"secureConnect");c(i,"secureConnect",e)})}}if(typeof t.send!=="undefined"){const r=()=>l(t.send,p,"send");if(i.connecting){c(i,"connect",()=>{c(e,"upload-complete",r())})}else{c(e,"upload-complete",r())}}});if(typeof t.response!=="undefined"){c(e,"upload-complete",()=>{const r=l(t.response,p,"response");c(e,"response",r)})}return d})},9002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=(()=>{const e=[];return{once(t,r,n){t.once(r,n);e.push({origin:t,event:r,fn:n})},unhandleAll(){for(const t of e){const{origin:e,event:r,fn:n}=t;e.removeListener(r,n)}e.length=0}}})},4308:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(1493);t.default=(e=>{e=e;const t={protocol:e.protocol,hostname:n.default.string(e.hostname)&&e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,host:e.host,hash:e.hash,search:e.search,pathname:e.pathname,href:e.href,path:`${e.pathname||""}${e.search||""}`};if(n.default.string(e.port)&&e.port.length!==0){t.port=Number(e.port)}if(e.username||e.password){t.auth=`${e.username||""}:${e.password||""}`}return t})},2582:(e,t,r)=>{"use strict";const{pipeline:n,PassThrough:i}=r(2413);const s=r(8761);const o=r(5122);const a=e=>{const t=(e.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(t)){return e}const r=t==="br";if(r&&typeof s.createBrotliDecompress!=="function"){return e}const a=r?s.createBrotliDecompress():s.createUnzip();const c=new i;a.on("error",e=>{if(e.code==="Z_BUF_ERROR"){c.end();return}c.emit("error",e)});const u=n(e,a,c,()=>{});o(e,u);return u};e.exports=a},1514:(e,t,r)=>{"use strict";const{PassThrough:n}=r(2413);e.exports=(e=>{e={...e};const{array:t}=e;let{encoding:r}=e;const i=r==="buffer";let s=false;if(t){s=!(r||i)}else{r=r||"utf8"}if(i){r=null}const o=new n({objectMode:s});if(r){o.setEncoding(r)}let a=0;const c=[];o.on("data",e=>{c.push(e);if(s){a=c.length}else{a+=e.length}});o.getBufferedValue=(()=>{if(t){return c}return i?Buffer.concat(c,a):c.join("")});o.getBufferedLength=(()=>a);return o})},4430:(e,t,r)=>{"use strict";const{constants:n}=r(4293);const i=r(9595);const s=r(1514);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}async function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t={maxBuffer:Infinity,...t};const{maxBuffer:r}=t;let o;await new Promise((a,c)=>{const u=e=>{if(e&&o.getBufferedLength()<=n.MAX_LENGTH){e.bufferedData=o.getBufferedValue()}c(e)};o=i(e,s(t),e=>{if(e){u(e);return}a()});o.on("data",()=>{if(o.getBufferedLength()>r){u(new MaxBufferError)}})});return o.getBufferedValue()}e.exports=getStream;e.exports.default=getStream;e.exports.buffer=((e,t)=>getStream(e,{...t,encoding:"buffer"}));e.exports.array=((e,t)=>getStream(e,{...t,array:true}));e.exports.MaxBufferError=MaxBufferError},9132:e=>{"use strict";e.exports=clone;var t=Object.getPrototypeOf||function(e){return e.__proto__};function clone(e){if(e===null||typeof e!=="object")return e;if(e instanceof Object)var r={__proto__:t(e)};else var r=Object.create(null);Object.getOwnPropertyNames(e).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))});return r}},552:(e,t,r)=>{var n=r(5747);var i=r(7509);var s=r(4410);var o=r(9132);var a=r(1669);var c;var u;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){c=Symbol.for("graceful-fs.queue");u=Symbol.for("graceful-fs.previous")}else{c="___graceful-fs.queue";u="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,c,{get:function(){return t}})}var l=noop;if(a.debuglog)l=a.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))l=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!n[c]){var f=global[c]||[];publishQueue(n,f);n.close=function(e){function close(t,r){return e.call(n,t,function(e){if(!e){resetQueue()}if(typeof r==="function")r.apply(this,arguments)})}Object.defineProperty(close,u,{value:e});return close}(n.close);n.closeSync=function(e){function closeSync(t){e.apply(n,arguments);resetQueue()}Object.defineProperty(closeSync,u,{value:e});return closeSync}(n.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){l(n[c]);r(2357).equal(n[c].length,0)})}}if(!global[c]){publishQueue(global,n[c])}e.exports=patch(o(n));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!n.__patched){e.exports=patch(n);n.__patched=true}function patch(e){i(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,r,n){if(typeof r==="function")n=r,r=null;return go$readFile(e,r,n);function go$readFile(e,r,n,i){return t(e,r,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,r,n],t,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}})}}var r=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,n,i){if(typeof n==="function")i=n,n=null;return go$writeFile(e,t,n,i);function go$writeFile(e,t,n,i,s){return r(e,t,n,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$writeFile,[e,t,n,i],r,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}})}}var n=e.appendFile;if(n)e.appendFile=appendFile;function appendFile(e,t,r,i){if(typeof r==="function")i=r,r=null;return go$appendFile(e,t,r,i);function go$appendFile(e,t,r,i,s){return n(e,t,r,function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$appendFile,[e,t,r,i],n,s||Date.now(),Date.now()]);else{if(typeof i==="function")i.apply(this,arguments)}})}}var o=e.copyFile;if(o)e.copyFile=copyFile;function copyFile(e,t,r,n){if(typeof r==="function"){n=r;r=0}return go$copyFile(e,t,r,n);function go$copyFile(e,t,r,n,i){return o(e,t,r,function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$copyFile,[e,t,r,n],s,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}})}}var a=e.readdir;e.readdir=readdir;var c=/^v[0-5]\./;function readdir(e,t,r){if(typeof t==="function")r=t,t=null;var n=c.test(process.version)?function go$readdir(e,t,r,n){return a(e,fs$readdirCallback(e,t,r,n))}:function go$readdir(e,t,r,n){return a(e,t,fs$readdirCallback(e,t,r,n))};return n(e,t,r);function fs$readdirCallback(e,t,r,i){return function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([n,[e,t,r],s,i||Date.now(),Date.now()]);else{if(o&&o.sort)o.sort();if(typeof r==="function")r.call(this,s,o)}}}}if(process.version.substr(0,4)==="v0.8"){var u=s(e);ReadStream=u.ReadStream;WriteStream=u.WriteStream}var l=e.ReadStream;if(l){ReadStream.prototype=Object.create(l.prototype);ReadStream.prototype.open=ReadStream$open}var f=e.WriteStream;if(f){WriteStream.prototype=Object.create(f.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var h=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return h},set:function(e){h=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return l.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return f.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,r){if(t){e.destroy();e.emit("error",t)}else{e.fd=r;e.emit("open",r)}})}function createReadStream(t,r){return new e.ReadStream(t,r)}function createWriteStream(t,r){return new e.WriteStream(t,r)}var d=e.open;e.open=open;function open(e,t,r,n){if(typeof r==="function")n=r,r=null;return go$open(e,t,r,n);function go$open(e,t,r,n,i){return d(e,t,r,function(s,o){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$open,[e,t,r,n],s,i||Date.now(),Date.now()]);else{if(typeof n==="function")n.apply(this,arguments)}})}}return e}function enqueue(e){l("ENQUEUE",e[0].name,e[1]);n[c].push(e);retry()}var h;function resetQueue(){var e=Date.now();for(var t=0;t<n[c].length;++t){if(n[c][t].length>2){n[c][t][3]=e;n[c][t][4]=e}}retry()}function retry(){clearTimeout(h);h=undefined;if(n[c].length===0)return;var e=n[c].shift();var t=e[0];var r=e[1];var i=e[2];var s=e[3];var o=e[4];if(s===undefined){l("RETRY",t.name,r);t.apply(null,r)}else if(Date.now()-s>=6e4){l("TIMEOUT",t.name,r);var a=r.pop();if(typeof a==="function")a.call(null,i)}else{var u=Date.now()-o;var f=Math.max(o-s,1);var p=Math.min(f*1.2,100);if(u>=p){l("RETRY",t.name,r);t.apply(null,r.concat([s]))}else{n[c].push(e)}}if(h===undefined){h=setTimeout(retry,0)}}},4410:(e,t,r)=>{var n=r(2413).Stream;e.exports=legacy;function legacy(e){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(t,r){if(!(this instanceof ReadStream))return new ReadStream(t,r);n.call(this);var i=this;this.path=t;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;r=r||{};var s=Object.keys(r);for(var o=0,a=s.length;o<a;o++){var c=s[o];this[c]=r[c]}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(){i._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){i.emit("error",e);i.readable=false;return}i.fd=t;i.emit("open",t);i._read()})}function WriteStream(t,r){if(!(this instanceof WriteStream))return new WriteStream(t,r);n.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;r=r||{};var i=Object.keys(r);for(var s=0,o=i.length;s<o;s++){var a=i[s];this[a]=r[a]}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=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},7509:(e,t,r)=>{var n=r(7619);var i=process.cwd;var s=null;var o=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!s)s=i.call(process);return s};try{process.cwd()}catch(e){}if(typeof process.chdir==="function"){var a=process.chdir;process.chdir=function(e){s=null;a.call(process,e)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,a)}e.exports=patch;function patch(e){if(n.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(e.chmod&&!e.lchmod){e.lchmod=function(e,t,r){if(r)process.nextTick(r)};e.lchmodSync=function(){}}if(e.chown&&!e.lchown){e.lchown=function(e,t,r,n){if(n)process.nextTick(n)};e.lchownSync=function(){}}if(o==="win32"){e.rename=typeof e.rename!=="function"?e.rename:function(t){function rename(r,n,i){var s=Date.now();var o=0;t(r,n,function CB(a){if(a&&(a.code==="EACCES"||a.code==="EPERM"||a.code==="EBUSY")&&Date.now()-s<6e4){setTimeout(function(){e.stat(n,function(e,s){if(e&&e.code==="ENOENT")t(r,n,CB);else i(a)})},o);if(o<100)o+=10;return}if(i)i(a)})}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,t);return rename}(e.rename)}e.read=typeof e.read!=="function"?e.read:function(t){function read(r,n,i,s,o,a){var c;if(a&&typeof a==="function"){var u=0;c=function(l,f,h){if(l&&l.code==="EAGAIN"&&u<10){u++;return t.call(e,r,n,i,s,o,c)}a.apply(this,arguments)}}return t.call(e,r,n,i,s,o,c)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,t);return read}(e.read);e.readSync=typeof e.readSync!=="function"?e.readSync:function(t){return function(r,n,i,s,o){var a=0;while(true){try{return t.call(e,r,n,i,s,o)}catch(e){if(e.code==="EAGAIN"&&a<10){a++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,r,i){e.open(t,n.O_WRONLY|n.O_SYMLINK,r,function(t,n){if(t){if(i)i(t);return}e.fchmod(n,r,function(t){e.close(n,function(e){if(i)i(t||e)})})})};e.lchmodSync=function(t,r){var i=e.openSync(t,n.O_WRONLY|n.O_SYMLINK,r);var s=true;var o;try{o=e.fchmodSync(i,r);s=false}finally{if(s){try{e.closeSync(i)}catch(e){}}else{e.closeSync(i)}}return o}}function patchLutimes(e){if(n.hasOwnProperty("O_SYMLINK")&&e.futimes){e.lutimes=function(t,r,i,s){e.open(t,n.O_SYMLINK,function(t,n){if(t){if(s)s(t);return}e.futimes(n,r,i,function(t){e.close(n,function(e){if(s)s(t||e)})})})};e.lutimesSync=function(t,r,i){var s=e.openSync(t,n.O_SYMLINK);var o;var a=true;try{o=e.futimesSync(s,r,i);a=false}finally{if(a){try{e.closeSync(s)}catch(e){}}else{e.closeSync(s)}}return o}}else if(e.futimes){e.lutimes=function(e,t,r,n){if(n)process.nextTick(n)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(r,n,i){return t.call(e,r,n,function(e){if(chownErOk(e))e=null;if(i)i.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(r,n){try{return t.call(e,r,n)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(r,n,i,s){return t.call(e,r,n,i,function(e){if(chownErOk(e))e=null;if(s)s.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(r,n,i){try{return t.call(e,r,n,i)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(r,n,i){if(typeof n==="function"){i=n;n=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(i)i.apply(this,arguments)}return n?t.call(e,r,n,callback):t.call(e,r,callback)}}function statFixSync(t){if(!t)return t;return function(r,n){var i=n?t.call(e,r,n):t.call(e,r);if(i){if(i.uid<0)i.uid+=4294967296;if(i.gid<0)i.gid+=4294967296}return i}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},5297:(e,t,r)=>{"use strict";var n=r(7328);var i=r(7855);var s=r(3826);e.exports=function(e,t){return i(n(e)&&t?s(e,t):e)}},7855:(e,t,r)=>{"use strict";var n=r(9722);var i=r(6110);e.exports=function hasValue(e){if(i(e)){return true}switch(n(e)){case"null":case"boolean":case"function":return true;case"string":case"arguments":return e.length!==0;case"error":return e.message!=="";case"array":var t=e.length;if(t===0){return false}for(var r=0;r<t;r++){if(hasValue(e[r])){return true}}return false;case"file":case"map":case"set":return e.size!==0;case"object":var s=Object.keys(e);if(s.length===0){return false}for(var r=0;r<s.length;r++){var o=s[r];if(hasValue(e[o])){return true}}return false;default:{return false}}}},3372:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},9722:(e,t,r)=>{var n=r(3372);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(t==="[object Promise]"){return"promise"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},5855:e=>{"use strict";const t=new Set([200,203,204,206,300,301,308,404,405,410,414,501]);const r=new Set([200,203,204,300,301,302,303,307,308,404,405,410,414,501]);const n=new Set([500,502,503,504]);const i={date:true,connection:true,"keep-alive":true,"proxy-authenticate":true,"proxy-authorization":true,te:true,trailer:true,"transfer-encoding":true,upgrade:true};const s={"content-length":true,"content-encoding":true,"transfer-encoding":true,"content-range":true};function toNumberOrZero(e){const t=parseInt(e,10);return isFinite(t)?t:0}function isErrorResponse(e){if(!e){return true}return n.has(e.status)}function parseCacheControl(e){const t={};if(!e)return t;const r=e.trim().split(/,/);for(const e of r){const[r,n]=e.split(/=/,2);t[r.trim()]=n===undefined?true:n.trim().replace(/^"|"$/g,"")}return t}function formatCacheControl(e){let t=[];for(const r in e){const n=e[r];t.push(n===true?r:r+"="+n)}if(!t.length){return undefined}return t.join(", ")}e.exports=class CachePolicy{constructor(e,t,{shared:r,cacheHeuristic:n,immutableMinTimeToLive:i,ignoreCargoCult:s,_fromObject:o}={}){if(o){this._fromObject(o);return}if(!t||!t.headers){throw Error("Response headers missing")}this._assertRequestHasHeaders(e);this._responseTime=this.now();this._isShared=r!==false;this._cacheHeuristic=undefined!==n?n:.1;this._immutableMinTtl=undefined!==i?i:24*3600*1e3;this._status="status"in t?t.status:200;this._resHeaders=t.headers;this._rescc=parseCacheControl(t.headers["cache-control"]);this._method="method"in e?e.method:"GET";this._url=e.url;this._host=e.headers.host;this._noAuthorization=!e.headers.authorization;this._reqHeaders=t.headers.vary?e.headers:null;this._reqcc=parseCacheControl(e.headers["cache-control"]);if(s&&"pre-check"in this._rescc&&"post-check"in this._rescc){delete this._rescc["pre-check"];delete this._rescc["post-check"];delete this._rescc["no-cache"];delete this._rescc["no-store"];delete this._rescc["must-revalidate"];this._resHeaders=Object.assign({},this._resHeaders,{"cache-control":formatCacheControl(this._rescc)});delete this._resHeaders.expires;delete this._resHeaders.pragma}if(t.headers["cache-control"]==null&&/no-cache/.test(t.headers.pragma)){this._rescc["no-cache"]=true}}now(){return Date.now()}storable(){return!!(!this._reqcc["no-store"]&&("GET"===this._method||"HEAD"===this._method||"POST"===this._method&&this._hasExplicitExpiration())&&r.has(this._status)&&!this._rescc["no-store"]&&(!this._isShared||!this._rescc.private)&&(!this._isShared||this._noAuthorization||this._allowsStoringAuthenticated())&&(this._resHeaders.expires||this._rescc["max-age"]||this._isShared&&this._rescc["s-maxage"]||this._rescc.public||t.has(this._status)))}_hasExplicitExpiration(){return this._isShared&&this._rescc["s-maxage"]||this._rescc["max-age"]||this._resHeaders.expires}_assertRequestHasHeaders(e){if(!e||!e.headers){throw Error("Request headers missing")}}satisfiesWithoutRevalidation(e){this._assertRequestHasHeaders(e);const t=parseCacheControl(e.headers["cache-control"]);if(t["no-cache"]||/no-cache/.test(e.headers.pragma)){return false}if(t["max-age"]&&this.age()>t["max-age"]){return false}if(t["min-fresh"]&&this.timeToLive()<1e3*t["min-fresh"]){return false}if(this.stale()){const e=t["max-stale"]&&!this._rescc["must-revalidate"]&&(true===t["max-stale"]||t["max-stale"]>this.age()-this.maxAge());if(!e){return false}}return this._requestMatches(e,false)}_requestMatches(e,t){return(!this._url||this._url===e.url)&&this._host===e.headers.host&&(!e.method||this._method===e.method||t&&"HEAD"===e.method)&&this._varyMatches(e)}_allowsStoringAuthenticated(){return this._rescc["must-revalidate"]||this._rescc.public||this._rescc["s-maxage"]}_varyMatches(e){if(!this._resHeaders.vary){return true}if(this._resHeaders.vary==="*"){return false}const t=this._resHeaders.vary.trim().toLowerCase().split(/\s*,\s*/);for(const r of t){if(e.headers[r]!==this._reqHeaders[r])return false}return true}_copyWithoutHopByHopHeaders(e){const t={};for(const r in e){if(i[r])continue;t[r]=e[r]}if(e.connection){const r=e.connection.trim().split(/\s*,\s*/);for(const e of r){delete t[e]}}if(t.warning){const e=t.warning.split(/,/).filter(e=>{return!/^\s*1[0-9][0-9]/.test(e)});if(!e.length){delete t.warning}else{t.warning=e.join(",").trim()}}return t}responseHeaders(){const e=this._copyWithoutHopByHopHeaders(this._resHeaders);const t=this.age();if(t>3600*24&&!this._hasExplicitExpiration()&&this.maxAge()>3600*24){e.warning=(e.warning?`${e.warning}, `:"")+'113 - "rfc7234 5.5.4"'}e.age=`${Math.round(t)}`;e.date=new Date(this.now()).toUTCString();return e}date(){const e=Date.parse(this._resHeaders.date);if(isFinite(e)){return e}return this._responseTime}age(){let e=this._ageValue();const t=(this.now()-this._responseTime)/1e3;return e+t}_ageValue(){return toNumberOrZero(this._resHeaders.age)}maxAge(){if(!this.storable()||this._rescc["no-cache"]){return 0}if(this._isShared&&(this._resHeaders["set-cookie"]&&!this._rescc.public&&!this._rescc.immutable)){return 0}if(this._resHeaders.vary==="*"){return 0}if(this._isShared){if(this._rescc["proxy-revalidate"]){return 0}if(this._rescc["s-maxage"]){return toNumberOrZero(this._rescc["s-maxage"])}}if(this._rescc["max-age"]){return toNumberOrZero(this._rescc["max-age"])}const e=this._rescc.immutable?this._immutableMinTtl:0;const t=this.date();if(this._resHeaders.expires){const r=Date.parse(this._resHeaders.expires);if(Number.isNaN(r)||r<t){return 0}return Math.max(e,(r-t)/1e3)}if(this._resHeaders["last-modified"]){const r=Date.parse(this._resHeaders["last-modified"]);if(isFinite(r)&&t>r){return Math.max(e,(t-r)/1e3*this._cacheHeuristic)}}return e}timeToLive(){const e=this.maxAge()-this.age();const t=e+toNumberOrZero(this._rescc["stale-if-error"]);const r=e+toNumberOrZero(this._rescc["stale-while-revalidate"]);return Math.max(0,e,t,r)*1e3}stale(){return this.maxAge()<=this.age()}_useStaleIfError(){return this.maxAge()+toNumberOrZero(this._rescc["stale-if-error"])>this.age()}useStaleWhileRevalidate(){return this.maxAge()+toNumberOrZero(this._rescc["stale-while-revalidate"])>this.age()}static fromObject(e){return new this(undefined,undefined,{_fromObject:e})}_fromObject(e){if(this._responseTime)throw Error("Reinitialized");if(!e||e.v!==1)throw Error("Invalid serialization");this._responseTime=e.t;this._isShared=e.sh;this._cacheHeuristic=e.ch;this._immutableMinTtl=e.imm!==undefined?e.imm:24*3600*1e3;this._status=e.st;this._resHeaders=e.resh;this._rescc=e.rescc;this._method=e.m;this._url=e.u;this._host=e.h;this._noAuthorization=e.a;this._reqHeaders=e.reqh;this._reqcc=e.reqcc}toObject(){return{v:1,t:this._responseTime,sh:this._isShared,ch:this._cacheHeuristic,imm:this._immutableMinTtl,st:this._status,resh:this._resHeaders,rescc:this._rescc,m:this._method,u:this._url,h:this._host,a:this._noAuthorization,reqh:this._reqHeaders,reqcc:this._reqcc}}revalidationHeaders(e){this._assertRequestHasHeaders(e);const t=this._copyWithoutHopByHopHeaders(e.headers);delete t["if-range"];if(!this._requestMatches(e,true)||!this.storable()){delete t["if-none-match"];delete t["if-modified-since"];return t}if(this._resHeaders.etag){t["if-none-match"]=t["if-none-match"]?`${t["if-none-match"]}, ${this._resHeaders.etag}`:this._resHeaders.etag}const r=t["accept-ranges"]||t["if-match"]||t["if-unmodified-since"]||this._method&&this._method!="GET";if(r){delete t["if-modified-since"];if(t["if-none-match"]){const e=t["if-none-match"].split(/,/).filter(e=>{return!/^\s*W\//.test(e)});if(!e.length){delete t["if-none-match"]}else{t["if-none-match"]=e.join(",").trim()}}}else if(this._resHeaders["last-modified"]&&!t["if-modified-since"]){t["if-modified-since"]=this._resHeaders["last-modified"]}return t}revalidatedPolicy(e,t){this._assertRequestHasHeaders(e);if(this._useStaleIfError()&&isErrorResponse(t)){return{modified:false,matches:false,policy:this}}if(!t||!t.headers){throw Error("Response headers missing")}let r=false;if(t.status!==undefined&&t.status!=304){r=false}else if(t.headers.etag&&!/^\s*W\//.test(t.headers.etag)){r=this._resHeaders.etag&&this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag}else if(this._resHeaders.etag&&t.headers.etag){r=this._resHeaders.etag.replace(/^\s*W\//,"")===t.headers.etag.replace(/^\s*W\//,"")}else if(this._resHeaders["last-modified"]){r=this._resHeaders["last-modified"]===t.headers["last-modified"]}else{if(!this._resHeaders.etag&&!this._resHeaders["last-modified"]&&!t.headers.etag&&!t.headers["last-modified"]){r=true}}if(!r){return{policy:new this.constructor(e,t),modified:t.status!=304,matches:false}}const n={};for(const e in this._resHeaders){n[e]=e in t.headers&&!s[e]?t.headers[e]:this._resHeaders[e]}const i=Object.assign({},t,{status:this._status,method:this._method,headers:n});return{policy:new this.constructor(e,i,{shared:this._isShared,cacheHeuristic:this._cacheHeuristic,immutableMinTimeToLive:this._immutableMinTtl}),modified:false,matches:true}}}},9442:(e,t,r)=>{var n=r(4586);var i=Object.create(null);var s=r(7197);e.exports=n(inflight);function inflight(e,t){if(i[e]){i[e].push(t);return null}else{i[e]=[t];return makeres(e)}}function makeres(e){return s(function RES(){var t=i[e];var r=t.length;var n=slice(arguments);try{for(var s=0;s<r;s++){t[s].apply(null,n)}}finally{if(t.length>r){t.splice(0,r);process.nextTick(function(){RES.apply(null,n)})}else{delete i[e]}}})}function slice(e){var t=e.length;var r=[];for(var n=0;n<t;n++)r[n]=e[n];return r}},6919:(e,t,r)=>{try{var n=r(1669);if(typeof n.inherits!=="function")throw"";e.exports=n.inherits}catch(t){e.exports=r(7526)}},7526:e=>{if(typeof Object.create==="function"){e.exports=function inherits(e,t){if(t){e.super_=t;e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}}else{e.exports=function inherits(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype;e.prototype=new r;e.prototype.constructor=e}}}},1923:(e,t)=>{t.parse=t.decode=decode;t.stringify=t.encode=encode;t.safe=safe;t.unsafe=unsafe;var r=typeof process!=="undefined"&&process.platform==="win32"?"\r\n":"\n";function encode(e,t){var n=[];var i="";if(typeof t==="string"){t={section:t,whitespace:false}}else{t=t||{};t.whitespace=t.whitespace===true}var s=t.whitespace?" = ":"=";Object.keys(e).forEach(function(t,o,a){var c=e[t];if(c&&Array.isArray(c)){c.forEach(function(e){i+=safe(t+"[]")+s+safe(e)+"\n"})}else if(c&&typeof c==="object")n.push(t);else i+=safe(t)+s+safe(c)+r});if(t.section&&i.length)i="["+safe(t.section)+"]"+r+i;n.forEach(function(n,s,o){var a=dotSplit(n).join("\\.");var c=(t.section?t.section+".":"")+a;var u=encode(e[n],{section:c,whitespace:t.whitespace});if(i.length&&u.length)i+=r;i+=u});return i}function dotSplit(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function decode(e){var t={};var r=t;var n=null;var i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;var s=e.split(/[\r\n]+/g);s.forEach(function(e,s,o){if(!e||e.match(/^\s*[;#]/))return;var a=e.match(i);if(!a)return;if(a[1]!==undefined){n=unsafe(a[1]);if(n==="__proto__"){r={};return}r=t[n]=t[n]||{};return}var c=unsafe(a[2]);if(c==="__proto__")return;var u=a[3]?unsafe(a[4]):true;switch(u){case"true":case"false":case"null":u=JSON.parse(u)}if(c.length>2&&c.slice(-2)==="[]"){c=c.substring(0,c.length-2);if(c==="__proto__")return;if(!r[c])r[c]=[];else if(!Array.isArray(r[c]))r[c]=[r[c]]}if(Array.isArray(r[c]))r[c].push(u);else r[c]=u});Object.keys(t).filter(function(e,r,n){if(!t[e]||typeof t[e]!=="object"||Array.isArray(t[e]))return false;var i=dotSplit(e);var s=t;var o=i.pop();var a=o.replace(/\\\./g,".");i.forEach(function(e,t,r){if(e==="__proto__")return;if(!s[e]||typeof s[e]!=="object")s[e]={};s=s[e]});if(s===t&&a===o)return false;s[a]=t[e];return true}).forEach(function(e,r,n){delete t[e]});return t}function isQuoted(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function safe(e){return typeof e!=="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&isQuoted(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function unsafe(e,t){e=(e||"").trim();if(isQuoted(e)){if(e.charAt(0)==="'")e=e.substr(1,e.length-2);try{e=JSON.parse(e)}catch(e){}}else{var r=false;var n="";for(var i=0,s=e.length;i<s;i++){var o=e.charAt(i);if(r){if("\\;#".indexOf(o)!==-1)n+=o;else n+="\\"+o;r=false}else if(";#".indexOf(o)!==-1)break;else if(o==="\\")r=true;else n+=o}if(r)n+="\\";return n.trim()}return e}},7240:(e,t,r)=>{"use strict";var n=r(9413);var i={get:"function",set:"function",configurable:"boolean",enumerable:"boolean"};function isAccessorDescriptor(e,t){if(typeof t==="string"){var r=Object.getOwnPropertyDescriptor(e,t);return typeof r!=="undefined"}if(n(e)!=="object"){return false}if(has(e,"value")||has(e,"writable")){return false}if(!has(e,"get")||typeof e.get!=="function"){return false}if(has(e,"set")&&typeof e[s]!=="function"&&typeof e[s]!=="undefined"){return false}for(var s in e){if(!i.hasOwnProperty(s)){continue}if(n(e[s])===i[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}function has(e,t){return{}.hasOwnProperty.call(e,t)}e.exports=isAccessorDescriptor},5949:(e,t,r)=>{"use strict";var n=r(9413);e.exports=function isDataDescriptor(e,t){var r={configurable:"boolean",enumerable:"boolean",writable:"boolean"};if(n(e)!=="object"){return false}if(typeof t==="string"){var i=Object.getOwnPropertyDescriptor(e,t);return typeof i!=="undefined"}if(!("value"in e)&&!("writable"in e)){return false}for(var s in e){if(s==="value")continue;if(!r.hasOwnProperty(s)){continue}if(n(e[s])===r[s]){continue}if(typeof e[s]!=="undefined"){return false}}return true}},5721:(e,t,r)=>{"use strict";var n=r(9413);var i=r(7240);var s=r(5949);e.exports=function isDescriptor(e,t){if(n(e)!=="object"){return false}if("get"in e){return i(e,t)}return s(e,t)}},7242:e=>{"use strict";e.exports=function isExtendable(e){return typeof e!=="undefined"&&e!==null&&(typeof e==="object"||typeof e==="function")}},6546:e=>{e.exports=function isExtglob(e){if(typeof e!=="string"||e===""){return false}var t;while(t=/(\\).|([@?!+*]\(.*\))/g.exec(e)){if(t[2])return true;e=e.slice(t.index+t[0].length)}return false}},4042:(e,t,r)=>{var n=r(6546);var i={"{":"}","(":")","[":"]"};var s=function(e){if(e[0]==="!"){return true}var t=0;var r=-2;var n=-2;var s=-2;var o=-2;var a=-2;while(t<e.length){if(e[t]==="*"){return true}if(e[t+1]==="?"&&/[\].+)]/.test(e[t])){return true}if(n!==-1&&e[t]==="["&&e[t+1]!=="]"){if(n<t){n=e.indexOf("]",t)}if(n>t){if(a===-1||a>n){return true}a=e.indexOf("\\",t);if(a===-1||a>n){return true}}}if(s!==-1&&e[t]==="{"&&e[t+1]!=="}"){s=e.indexOf("}",t);if(s>t){a=e.indexOf("\\",t);if(a===-1||a>s){return true}}}if(o!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"){o=e.indexOf(")",t);if(o>t){a=e.indexOf("\\",t);if(a===-1||a>o){return true}}}if(r!==-1&&e[t]==="("&&e[t+1]!=="|"){if(r<t){r=e.indexOf("|",t)}if(r!==-1&&e[r+1]!==")"){o=e.indexOf(")",r);if(o>r){a=e.indexOf("\\",r);if(a===-1||a>o){return true}}}}if(e[t]==="\\"){var c=e[t+1];t+=2;var u=i[c];if(u){var l=e.indexOf(u,t);if(l!==-1){t=l+1}}if(e[t]==="!"){return true}}else{t++}}return false};var o=function(e){if(e[0]==="!"){return true}var t=0;while(t<e.length){if(/[*?{}()[\]]/.test(e[t])){return true}if(e[t]==="\\"){var r=e[t+1];t+=2;var n=i[r];if(n){var s=e.indexOf(n,t);if(s!==-1){t=s+1}}if(e[t]==="!"){return true}}else{t++}}return false};e.exports=function isGlob(e,t){if(typeof e!=="string"||e===""){return false}if(n(e)){return true}var r=s;if(t&&t.strict===false){r=o}return r(e)}},6110:(e,t,r)=>{"use strict";var n=r(2081);e.exports=function isNumber(e){var t=n(e);if(t==="string"){if(!e.trim())return false}else if(t!=="number"){return false}return e-e+1>=0}},4722:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},2081:(e,t,r)=>{var n=r(4722);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},3718:(e,t)=>{(function(r){if(t&&typeof t==="object"&&"object"!=="undefined"){e.exports=r()}else if(typeof define==="function"&&define.amd){define([],r)}else if(typeof window!=="undefined"){window.isWindows=r()}else if(typeof global!=="undefined"){global.isWindows=r()}else if(typeof self!=="undefined"){self.isWindows=r()}else{this.isWindows=r()}})(function(){"use strict";return function isWindows(){return process&&(process.platform==="win32"||/^(msys|cygwin)$/.test(process.env.OSTYPE))}})},9842:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},228:(e,t,r)=>{var n=r(5747);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(7214)}else{i=r(5211)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise(function(r,n){isexe(e,t||{},function(e,t){if(e){n(e)}else{r(t)}})})}i(e,t||{},function(e,n){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;n=false}}r(e,n)})}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},5211:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(5747);function isexe(e,t,r){n.stat(e,function(e,n){r(e,e?false:checkStat(n,t))})}function sync(e,t){return checkStat(n.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var n=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var o=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var a=parseInt("100",8);var c=parseInt("010",8);var u=parseInt("001",8);var l=a|c;var f=r&u||r&c&&i===o||r&a&&n===s||r&l&&s===0;return f}},7214:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var n=r(5747);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var n=0;n<r.length;n++){var i=r[n].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){n.stat(e,function(n,i){r(n,n?false:checkStat(i,e,t))})}function sync(e,t){return checkStat(n.statSync(e),e,t)}},7328:e=>{"use strict";e.exports=function isObject(e){return e!=null&&typeof e==="object"&&Array.isArray(e)===false}},7231:(e,t)=>{t.stringify=function stringify(e){if("undefined"==typeof e)return e;if(e&&Buffer.isBuffer(e))return JSON.stringify(":base64:"+e.toString("base64"));if(e&&e.toJSON)e=e.toJSON();if(e&&"object"===typeof e){var t="";var r=Array.isArray(e);t=r?"[":"{";var n=true;for(var i in e){var s="function"==typeof e[i]||!r&&"undefined"===typeof e[i];if(Object.hasOwnProperty.call(e,i)&&!s){if(!n)t+=",";n=false;if(r){if(e[i]==undefined)t+="null";else t+=stringify(e[i])}else if(e[i]!==void 0){t+=stringify(i)+":"+stringify(e[i])}}}t+=r?"]":"}";return t}else if("string"===typeof e){return JSON.stringify(/^:/.test(e)?":"+e:e)}else if("undefined"===typeof e){return"null"}else return JSON.stringify(e)};t.parse=function(e){return JSON.parse(e,function(e,t){if("string"===typeof t){if(/^:base64:/.test(t))return Buffer.from(t.substring(8),"base64");else return/^:/.test(t)?t.substring(1):t}return t})}},1050:(e,t,r)=>{"use strict";const n=r(8614);const i=r(7231);const s=e=>{const t={redis:"@keyv/redis",rediss:"@keyv/redis",mongodb:"@keyv/mongo",mongo:"@keyv/mongo",sqlite:"@keyv/sqlite",postgresql:"@keyv/postgres",postgres:"@keyv/postgres",mysql:"@keyv/mysql",etcd:"@keyv/etcd",offline:"@keyv/offline",tiered:"@keyv/tiered"};if(e.adapter||e.uri){const r=e.adapter||/^[^:+]*/.exec(e.uri)[0];return new(require(t[r]))(e)}return new Map};const o=["sqlite","postgres","mysql","mongo","redis","tiered"];class Keyv extends n{constructor(e,{emitErrors:t=true,...r}={}){super();this.opts={namespace:"keyv",serialize:i.stringify,deserialize:i.parse,...typeof e==="string"?{uri:e}:e,...r};if(!this.opts.store){const e={...this.opts};this.opts.store=s(e)}if(this.opts.compression){const e=this.opts.compression;this.opts.serialize=e.serialize.bind(e);this.opts.deserialize=e.deserialize.bind(e)}if(typeof this.opts.store.on==="function"&&t){this.opts.store.on("error",e=>this.emit("error",e))}this.opts.store.namespace=this.opts.namespace;const n=e=>(async function*(){for await(const[t,r]of typeof e==="function"?e(this.opts.store.namespace):e){const e=await this.opts.deserialize(r);if(this.opts.store.namespace&&!t.includes(this.opts.store.namespace)){continue}if(typeof e.expires==="number"&&Date.now()>e.expires){this.delete(t);continue}yield[this._getKeyUnprefix(t),e.value]}});if(typeof this.opts.store[Symbol.iterator]==="function"&&this.opts.store instanceof Map){this.iterator=n(this.opts.store)}else if(typeof this.opts.store.iterator==="function"&&this.opts.store.opts&&this._checkIterableAdaptar()){this.iterator=n(this.opts.store.iterator.bind(this.opts.store))}}_checkIterableAdaptar(){return o.includes(this.opts.store.opts.dialect)||o.findIndex(e=>this.opts.store.opts.url.includes(e))>=0}_getKeyPrefix(e){return`${this.opts.namespace}:${e}`}_getKeyPrefixArray(e){return e.map(e=>`${this.opts.namespace}:${e}`)}_getKeyUnprefix(e){return e.split(":").splice(1).join(":")}get(e,t){const{store:r}=this.opts;const n=Array.isArray(e);const i=n?this._getKeyPrefixArray(e):this._getKeyPrefix(e);if(n&&r.getMany===undefined){const e=[];for(const n of i){e.push(Promise.resolve().then(()=>r.get(n)).then(e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e).then(e=>{if(e===undefined||e===null){return undefined}if(typeof e.expires==="number"&&Date.now()>e.expires){return this.delete(n).then(()=>undefined)}return t&&t.raw?e:e.value}))}return Promise.allSettled(e).then(e=>{const t=[];for(const r of e){t.push(r.value)}return t})}return Promise.resolve().then(()=>n?r.getMany(i):r.get(i)).then(e=>typeof e==="string"?this.opts.deserialize(e):this.opts.compression?this.opts.deserialize(e):e).then(r=>{if(r===undefined||r===null){return undefined}if(n){const n=[];for(let i of r){if(typeof i==="string"){i=this.opts.deserialize(i)}if(i===undefined||i===null){n.push(undefined);continue}if(typeof i.expires==="number"&&Date.now()>i.expires){this.delete(e).then(()=>undefined);n.push(undefined)}else{n.push(t&&t.raw?i:i.value)}}return n}if(typeof r.expires==="number"&&Date.now()>r.expires){return this.delete(e).then(()=>undefined)}return t&&t.raw?r:r.value})}set(e,t,r){const n=this._getKeyPrefix(e);if(typeof r==="undefined"){r=this.opts.ttl}if(r===0){r=undefined}const{store:i}=this.opts;return Promise.resolve().then(()=>{const e=typeof r==="number"?Date.now()+r:null;if(typeof t==="symbol"){this.emit("error","symbol cannot be serialized")}t={value:t,expires:e};return this.opts.serialize(t)}).then(e=>i.set(n,e,r)).then(()=>true)}delete(e){const{store:t}=this.opts;if(Array.isArray(e)){const r=this._getKeyPrefixArray(e);if(t.deleteMany===undefined){const e=[];for(const n of r){e.push(t.delete(n))}return Promise.allSettled(e).then(e=>e.every(e=>e.value===true))}return Promise.resolve().then(()=>t.deleteMany(r))}const r=this._getKeyPrefix(e);return Promise.resolve().then(()=>t.delete(r))}clear(){const{store:e}=this.opts;return Promise.resolve().then(()=>e.clear())}has(e){const t=this._getKeyPrefix(e);const{store:r}=this.opts;return Promise.resolve().then(async()=>{if(typeof r.has==="function"){return r.has(t)}const e=await r.get(t);return e!==undefined})}disconnect(){const{store:e}=this.opts;if(typeof e.disconnect==="function"){return e.disconnect()}}}e.exports=Keyv},9413:e=>{var t=Object.prototype.toString;e.exports=function kindOf(e){if(e===void 0)return"undefined";if(e===null)return"null";var r=typeof e;if(r==="boolean")return"boolean";if(r==="string")return"string";if(r==="number")return"number";if(r==="symbol")return"symbol";if(r==="function"){return isGeneratorFn(e)?"generatorfunction":"function"}if(isArray(e))return"array";if(isBuffer(e))return"buffer";if(isArguments(e))return"arguments";if(isDate(e))return"date";if(isError(e))return"error";if(isRegexp(e))return"regexp";switch(ctorName(e)){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(e)){return"generator"}r=t.call(e);switch(r){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 r.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(e){return typeof e.constructor==="function"?e.constructor.name:null}function isArray(e){if(Array.isArray)return Array.isArray(e);return e instanceof Array}function isError(e){return e instanceof Error||typeof e.message==="string"&&e.constructor&&typeof e.constructor.stackTraceLimit==="number"}function isDate(e){if(e instanceof Date)return true;return typeof e.toDateString==="function"&&typeof e.getDate==="function"&&typeof e.setDate==="function"}function isRegexp(e){if(e instanceof RegExp)return true;return typeof e.flags==="string"&&typeof e.ignoreCase==="boolean"&&typeof e.multiline==="boolean"&&typeof e.global==="boolean"}function isGeneratorFn(e,t){return ctorName(e)==="GeneratorFunction"}function isGeneratorObj(e){return typeof e.throw==="function"&&typeof e.return==="function"&&typeof e.next==="function"}function isArguments(e){try{if(typeof e.length==="number"&&typeof e.callee==="function"){return true}}catch(e){if(e.message.indexOf("callee")!==-1){return true}}return false}function isBuffer(e){if(e.constructor&&typeof e.constructor.isBuffer==="function"){return e.constructor.isBuffer(e)}return false}},9439:e=>{"use strict";const{FORCE_COLOR:t,NODE_DISABLE_COLORS:r,TERM:n}=process.env;const i={enabled:!r&&n!=="dumb"&&t!=="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(e,t){let r=0,n,i="",s="";for(;r<e.length;r++){n=e[r];i+=n.open;s+=n.close;if(t.includes(n.close)){t=t.replace(n.rgx,n.close+n.open)}}return i+t+s}function chain(e,t){let r={has:e,keys:t};r.reset=i.reset.bind(r);r.bold=i.bold.bind(r);r.dim=i.dim.bind(r);r.italic=i.italic.bind(r);r.underline=i.underline.bind(r);r.inverse=i.inverse.bind(r);r.hidden=i.hidden.bind(r);r.strikethrough=i.strikethrough.bind(r);r.black=i.black.bind(r);r.red=i.red.bind(r);r.green=i.green.bind(r);r.yellow=i.yellow.bind(r);r.blue=i.blue.bind(r);r.magenta=i.magenta.bind(r);r.cyan=i.cyan.bind(r);r.white=i.white.bind(r);r.gray=i.gray.bind(r);r.grey=i.grey.bind(r);r.bgBlack=i.bgBlack.bind(r);r.bgRed=i.bgRed.bind(r);r.bgGreen=i.bgGreen.bind(r);r.bgYellow=i.bgYellow.bind(r);r.bgBlue=i.bgBlue.bind(r);r.bgMagenta=i.bgMagenta.bind(r);r.bgCyan=i.bgCyan.bind(r);r.bgWhite=i.bgWhite.bind(r);return r}function init(e,t){let r={open:`[${e}m`,close:`[${t}m`,rgx:new RegExp(`\\x1b\\[${t}m`,"g")};return function(t){if(this!==void 0&&this.has!==void 0){this.has.includes(e)||(this.has.push(e),this.keys.push(r));return t===void 0?this:i.enabled?run(this.keys,t+""):t+""}return t===void 0?chain([e],[r]):i.enabled?run([r],t+""):t+""}}e.exports=i},530:e=>{"use strict";e.exports=(e=>{const t={};for(const[r,n]of Object.entries(e)){t[r.toLowerCase()]=n}return t})},7153:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=r(9367);const o=r(9144);const a={mode:511&~process.umask(),fs:n};const c=o.satisfies(process.version,">=10.12.0");const u=e=>{if(process.platform==="win32"){const t=/[<>:"|?*]/.test(e.replace(i.parse(e).root,""));if(t){const t=new Error(`Path contains invalid characters: ${e}`);t.code="EINVAL";throw t}}};const l=e=>{const t=new Error(`operation not permitted, mkdir '${e}'`);t.code="EPERM";t.errno=-4048;t.path=e;t.syscall="mkdir";return t};const f=(e,t)=>Promise.resolve().then(()=>{u(e);t=Object.assign({},a,t);const r=s(t.fs.mkdir);const o=s(t.fs.stat);if(c&&t.fs.mkdir===n.mkdir){const n=i.resolve(e);return r(n,{mode:t.mode,recursive:true}).then(()=>n)}const f=e=>{return r(e,t.mode).then(()=>e).catch(t=>{if(t.code==="EPERM"){throw t}if(t.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(t.message.includes("null bytes")){throw t}return f(i.dirname(e)).then(()=>f(e))}return o(e).then(t=>t.isDirectory()?e:Promise.reject()).catch(()=>{throw t})})};return f(i.resolve(e))});e.exports=f;e.exports.default=f;e.exports.sync=((e,t)=>{u(e);t=Object.assign({},a,t);if(c&&t.fs.mkdirSync===n.mkdirSync){const r=i.resolve(e);n.mkdirSync(r,{mode:t.mode,recursive:true});return r}const r=e=>{try{t.fs.mkdirSync(e,t.mode)}catch(n){if(n.code==="EPERM"){throw n}if(n.code==="ENOENT"){if(i.dirname(e)===e){throw l(e)}if(n.message.includes("null bytes")){throw n}r(i.dirname(e));return r(e)}try{if(!t.fs.statSync(e).isDirectory()){throw new Error("The path is not a directory")}}catch(e){throw n}}return e};return r(i.resolve(e))})},9144:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=n-6;var a=t.re=[];var c=t.safeRe=[];var u=t.src=[];var l=0;var f="[a-zA-Z0-9-]";var h=[["\\s",1],["\\d",n],[f,o]];function makeSafeRe(e){for(var t=0;t<h.length;t++){var r=h[t][0];var n=h[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}var p=l++;u[p]="0|[1-9]\\d*";var d=l++;u[d]="\\d+";var m=l++;u[m]="\\d*[a-zA-Z-]"+f+"*";var y=l++;u[y]="("+u[p]+")\\."+"("+u[p]+")\\."+"("+u[p]+")";var v=l++;u[v]="("+u[d]+")\\."+"("+u[d]+")\\."+"("+u[d]+")";var g=l++;u[g]="(?:"+u[p]+"|"+u[m]+")";var b=l++;u[b]="(?:"+u[d]+"|"+u[m]+")";var w=l++;u[w]="(?:-("+u[g]+"(?:\\."+u[g]+")*))";var S=l++;u[S]="(?:-?("+u[b]+"(?:\\."+u[b]+")*))";var x=l++;u[x]=f+"+";var E=l++;u[E]="(?:\\+("+u[x]+"(?:\\."+u[x]+")*))";var _=l++;var O="v?"+u[y]+u[w]+"?"+u[E]+"?";u[_]="^"+O+"$";var R="[v=\\s]*"+u[v]+u[S]+"?"+u[E]+"?";var A=l++;u[A]="^"+R+"$";var C=l++;u[C]="((?:<|>)?=?)";var P=l++;u[P]=u[d]+"|x|X|\\*";var T=l++;u[T]=u[p]+"|x|X|\\*";var j=l++;u[j]="[v=\\s]*("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:"+u[w]+")?"+u[E]+"?"+")?)?";var k=l++;u[k]="[v=\\s]*("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:"+u[S]+")?"+u[E]+"?"+")?)?";var N=l++;u[N]="^"+u[C]+"\\s*"+u[j]+"$";var I=l++;u[I]="^"+u[C]+"\\s*"+u[k]+"$";var L=l++;u[L]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var D=l++;u[D]="(?:~>?)";var $=l++;u[$]="(\\s*)"+u[D]+"\\s+";a[$]=new RegExp(u[$],"g");c[$]=new RegExp(makeSafeRe(u[$]),"g");var B="$1~";var F=l++;u[F]="^"+u[D]+u[j]+"$";var M=l++;u[M]="^"+u[D]+u[k]+"$";var G=l++;u[G]="(?:\\^)";var U=l++;u[U]="(\\s*)"+u[G]+"\\s+";a[U]=new RegExp(u[U],"g");c[U]=new RegExp(makeSafeRe(u[U]),"g");var z="$1^";var q=l++;u[q]="^"+u[G]+u[j]+"$";var H=l++;u[H]="^"+u[G]+u[k]+"$";var W=l++;u[W]="^"+u[C]+"\\s*("+R+")$|^$";var V=l++;u[V]="^"+u[C]+"\\s*("+O+")$|^$";var Y=l++;u[Y]="(\\s*)"+u[C]+"\\s*("+R+"|"+u[j]+")";a[Y]=new RegExp(u[Y],"g");c[Y]=new RegExp(makeSafeRe(u[Y]),"g");var Z="$1$2$3";var X=l++;u[X]="^\\s*("+u[j]+")"+"\\s+-\\s+"+"("+u[j]+")"+"\\s*$";var J=l++;u[J]="^\\s*("+u[k]+")"+"\\s+-\\s+"+"("+u[k]+")"+"\\s*$";var Q=l++;u[Q]="(<|>)?=?\\s*\\*";for(var K=0;K<l;K++){r(K,u[K]);if(!a[K]){a[K]=new RegExp(u[K]);c[K]=new RegExp(makeSafeRe(u[K]))}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?c[A]:c[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?c[A]:c[_]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[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(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);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 r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var ee=/^[0-9]+$/;function compareIdentifiers(e,t){var r=ee.test(e);var n=ee.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===te){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var te={};Comparator.prototype.parse=function(e){var t=this.options.loose?c[W]:c[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=te}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===te){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var n=t?c[J]:c[X];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(c[Y],Z);r("comparator trim",e,c[Y]);e=e.replace(c[$],B);e=e.replace(c[U],z);var i=t?c[W]:c[V];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?c[M]:c[F];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?c[H]:c[q];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?c[I]:c[N];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var f=l;if(n==="="&&f){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(c[Q],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,h){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===te){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var h=null;l.forEach(function(e){if(e.semver===te){e=new Comparator(">=0.0.0")}f=f||e;h=h||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,h.semver,n)){h=e}});if(f.operator===a||f.operator===c){return false}if((!h.operator||h.operator===a)&&s(e,h.semver)){return false}else if(h.operator===c&&o(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(c[L]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},2219:e=>{"use strict";var t=Object.prototype.hasOwnProperty;e.exports=MapCache;function MapCache(e){this.__data__=e||{}}MapCache.prototype.set=function mapSet(e,t){if(e!=="__proto__"){this.__data__[e]=t}return this};MapCache.prototype.get=function mapGet(e){return e==="__proto__"?undefined:this.__data__[e]};MapCache.prototype.has=function mapHas(e){return e!=="__proto__"&&t.call(this.__data__,e)};MapCache.prototype.del=function mapDelete(e){return this.has(e)&&delete this.__data__[e]}},6519:(e,t,r)=>{"use strict";var n=r(1669);var i=r(1345);e.exports=function mapVisit(e,t,r){if(isObject(r)){return i.apply(null,arguments)}if(!Array.isArray(r)){throw new TypeError("expected an array: "+n.inspect(r))}var s=[].slice.call(arguments,3);for(var o=0;o<r.length;o++){var a=r[o];if(isObject(a)){i.apply(null,[e,t,a].concat(s))}else{e[t].apply(e,[a].concat(s))}}};function isObject(e){return e&&(typeof e==="function"||!Array.isArray(e)&&typeof e==="object")}},2375:(e,t,r)=>{"use strict";const n=r(2413);const i=n.PassThrough;const s=Array.prototype.slice;e.exports=merge2;function merge2(){const e=[];const t=s.call(arguments);let r=false;let n=t[t.length-1];if(n&&!Array.isArray(n)&&n.pipe==null){t.pop()}else{n={}}const o=n.end!==false;const a=n.pipeError===true;if(n.objectMode==null){n.objectMode=true}if(n.highWaterMark==null){n.highWaterMark=64*1024}const c=i(n);function addStream(){for(let t=0,r=arguments.length;t<r;t++){e.push(pauseStreams(arguments[t],n))}mergeStream();return this}function mergeStream(){if(r){return}r=true;let t=e.shift();if(!t){process.nextTick(endStream);return}if(!Array.isArray(t)){t=[t]}let n=t.length+1;function next(){if(--n>0){return}r=false;mergeStream()}function pipe(e){function onend(){e.removeListener("merge2UnpipeEnd",onend);e.removeListener("end",onend);if(a){e.removeListener("error",onerror)}next()}function onerror(e){c.emit("error",e)}if(e._readableState.endEmitted){return next()}e.on("merge2UnpipeEnd",onend);e.on("end",onend);if(a){e.on("error",onerror)}e.pipe(c,{end:false});e.resume()}for(let e=0;e<t.length;e++){pipe(t[e])}next()}function endStream(){r=false;c.emit("queueDrain");if(o){c.end()}}c.setMaxListeners(0);c.add=addStream;c.on("unpipe",function(e){e.emit("merge2UnpipeEnd")});if(t.length){addStream.apply(null,t)}return c}function pauseStreams(e,t){if(!Array.isArray(e)){if(!e._readableState&&e.pipe){e=e.pipe(i(t))}if(!e._readableState||!e.pause||!e.pipe){throw new Error("Only readable stream can be merged.")}e.pause()}else{for(let r=0,n=e.length;r<n;r++){e[r]=pauseStreams(e[r],t)}}return e}},5122:e=>{"use strict";const t=["aborted","complete","destroy","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];e.exports=((e,r)=>{const n=new Set(Object.keys(e).concat(t));for(const t of n){if(t in r){continue}r[t]=typeof e[t]==="function"?e[t].bind(e):e[t]}return r})},9566:(e,t,r)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var n=function(){try{return r(5622)}catch(e){}}()||{sep:"/"};minimatch.sep=n.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var s=r(1561);var o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var a="[^/]";var c=a+"*?";var u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var l="(?:(?!(?:\\/|^)\\.).)*?";var f=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce(function(e,t){e[t]=true;return e},{})}var h=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(r,n,i){return minimatch(r,e,t)}}function ext(e,t){t=t||{};var r={};Object.keys(e).forEach(function(t){r[t]=e[t]});Object.keys(t).forEach(function(e){r[e]=t[e]});return r}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var r=function minimatch(r,n,i){return t(r,n,ext(e,i))};r.Minimatch=function Minimatch(r,n){return new t.Minimatch(r,ext(e,n))};r.Minimatch.defaults=function defaults(r){return t.defaults(ext(e,r)).Minimatch};r.filter=function filter(r,n){return t.filter(r,ext(e,n))};r.defaults=function defaults(r){return t.defaults(ext(e,r))};r.makeRe=function makeRe(r,n){return t.makeRe(r,ext(e,n))};r.braceExpand=function braceExpand(r,n){return t.braceExpand(r,ext(e,n))};r.match=function(r,n,i){return t.match(r,n,ext(e,i))};return r};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,r){d(t);if(!r)r={};if(!r.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,r).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}d(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&n.sep!=="/"){e=e.split(n.sep).join("/")}this.options=t;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var r=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,r);r=this.globParts=r.map(function(e){return e.split(h)});this.debug(this.pattern,r);r=r.map(function(e,t,r){return e.map(this.parse,this)},this);this.debug(this.pattern,r);r=r.filter(function(e){return e.indexOf(false)===-1});this.debug(this.pattern,r);this.set=r}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var r=this.options;var n=0;if(r.nonegate)return;for(var i=0,s=e.length;i<s&&e.charAt(i)==="!";i++){t=!t;n++}if(n)this.pattern=e.substr(n);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;d(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return s(e)}var p=1024*64;var d=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>p){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var m={};function parse(e,t){d(e);var r=this.options;if(e==="**"){if(!r.noglobstar)return i;else e="*"}if(e==="")return"";var n="";var s=!!r.nocase;var u=false;var l=[];var h=[];var p;var y=false;var v=-1;var g=-1;var b=e.charAt(0)==="."?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var w=this;function clearStateChar(){if(p){switch(p){case"*":n+=c;s=true;break;case"?":n+=a;s=true;break;default:n+="\\"+p;break}w.debug("clearStateChar %j %j",p,n);p=false}}for(var S=0,x=e.length,E;S<x&&(E=e.charAt(S));S++){this.debug("%s\t%s %s %j",e,S,n,E);if(u&&f[E]){n+="\\"+E;u=false;continue}switch(E){case"/":{return false}case"\\":clearStateChar();u=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,S,n,E);if(y){this.debug(" in class");if(E==="!"&&S===g+1)E="^";n+=E;continue}w.debug("call clearStateChar %j",p);clearStateChar();p=E;if(r.noext)clearStateChar();continue;case"(":if(y){n+="(";continue}if(!p){n+="\\(";continue}l.push({type:p,start:S-1,reStart:n.length,open:o[p].open,close:o[p].close});n+=p==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",p,n);p=false;continue;case")":if(y||!l.length){n+="\\)";continue}clearStateChar();s=true;var _=l.pop();n+=_.close;if(_.type==="!"){h.push(_)}_.reEnd=n.length;continue;case"|":if(y||!l.length||u){n+="\\|";u=false;continue}clearStateChar();n+="|";continue;case"[":clearStateChar();if(y){n+="\\"+E;continue}y=true;g=S;v=n.length;n+=E;continue;case"]":if(S===g+1||!y){n+="\\"+E;u=false;continue}var O=e.substring(g+1,S);try{RegExp("["+O+"]")}catch(e){var R=this.parse(O,m);n=n.substr(0,v)+"\\["+R[0]+"\\]";s=s||R[1];y=false;continue}s=true;y=false;n+=E;continue;default:clearStateChar();if(u){u=false}else if(f[E]&&!(E==="^"&&y)){n+="\\"}n+=E}}if(y){O=e.substr(g+1);R=this.parse(O,m);n=n.substr(0,v)+"\\["+R[0];s=s||R[1]}for(_=l.pop();_;_=l.pop()){var A=n.slice(_.reStart+_.open.length);this.debug("setting tail",n,_);A=A.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){if(!r){r="\\"}return t+t+r+"|"});this.debug("tail=%j\n %s",A,A,_,n);var C=_.type==="*"?c:_.type==="?"?a:"\\"+_.type;s=true;n=n.slice(0,_.reStart)+C+"\\("+A}clearStateChar();if(u){n+="\\\\"}var P=false;switch(n.charAt(0)){case"[":case".":case"(":P=true}for(var T=h.length-1;T>-1;T--){var j=h[T];var k=n.slice(0,j.reStart);var N=n.slice(j.reStart,j.reEnd-8);var I=n.slice(j.reEnd-8,j.reEnd);var L=n.slice(j.reEnd);I+=L;var D=k.split("(").length-1;var $=L;for(S=0;S<D;S++){$=$.replace(/\)[+*?]?/,"")}L=$;var B="";if(L===""&&t!==m){B="$"}var F=k+N+L+B+I;n=F}if(n!==""&&s){n="(?=.)"+n}if(P){n=b+n}if(t===m){return[n,s]}if(!s){return globUnescape(e)}var M=r.nocase?"i":"";try{var G=new RegExp("^"+n+"$",M)}catch(e){return new RegExp("$.")}G._glob=e;G._src=n;return G}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var r=t.noglobstar?c:t.dot?u:l;var n=t.nocase?"i":"";var s=e.map(function(e){return e.map(function(e){return e===i?r:typeof e==="string"?regExpEscape(e):e._src}).join("\\/")}).join("|");s="^(?:"+s+")$";if(this.negate)s="^(?!"+s+").*$";try{this.regexp=new RegExp(s,n)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,r){r=r||{};var n=new Minimatch(t,r);e=e.filter(function(e){return n.match(e)});if(n.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var r=this.options;if(n.sep!=="/"){e=e.split(n.sep).join("/")}e=e.split(h);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s;var o;for(o=e.length-1;o>=0;o--){s=e[o];if(s)break}for(o=0;o<i.length;o++){var a=i[o];var c=e;if(r.matchBase&&a.length===1){c=[s]}var u=this.matchOne(c,a,t);if(u){if(r.flipNegate)return true;return!this.negate}}if(r.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,r){var n=this.options;this.debug("matchOne",{this:this,file:e,pattern:t});this.debug("matchOne",e.length,t.length);for(var s=0,o=0,a=e.length,c=t.length;s<a&&o<c;s++,o++){this.debug("matchOne loop");var u=t[o];var l=e[s];this.debug(t,u,l);if(u===false)return false;if(u===i){this.debug("GLOBSTAR",[t,u,l]);var f=s;var h=o+1;if(h===c){this.debug("** at the end");for(;s<a;s++){if(e[s]==="."||e[s]===".."||!n.dot&&e[s].charAt(0)===".")return false}return true}while(f<a){var p=e[f];this.debug("\nglobstar while",e,f,t,h,p);if(this.matchOne(e.slice(f),t.slice(h),r)){this.debug("globstar found match!",f,a,p);return true}else{if(p==="."||p===".."||!n.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,t,h);break}this.debug("globstar swallow a segment, and continue");f++}}if(r){this.debug("\n>>> no match, partial?",e,f,t,h);if(f===a)return true}return false}var d;if(typeof u==="string"){d=l===u;this.debug("string match",u,l,d)}else{d=l.match(u);this.debug("pattern match",u,l,d)}if(!d)return false}if(s===a&&o===c){return true}else if(s===a){return r}else if(o===c){return s===a-1&&e[s]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},1561:(e,t,r)=>{var n=r(4527);var i=r(3353);e.exports=expandTop;var s="\0SLASH"+Math.random()+"\0";var o="\0OPEN"+Math.random()+"\0";var a="\0CLOSE"+Math.random()+"\0";var c="\0COMMA"+Math.random()+"\0";var u="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function unescapeBraces(e){return e.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var r=i("{","}",e);if(!r)return e.split(",");var n=r.pre;var s=r.body;var o=r.post;var a=n.split(",");a[a.length-1]+="{"+s+"}";var c=parseCommaParts(o);if(o.length){a[a.length-1]+=c.shift();a.push.apply(a,c)}t.push.apply(t,a);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var r=[];var s=i("{","}",e);if(!s||/\$$/.test(s.pre))return[e];var o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var u=o||c;var l=s.body.indexOf(",")>=0;if(!u&&!l){if(s.post.match(/,.*\}/)){e=s.pre+"{"+s.body+a+s.post;return expand(e)}return[e]}var f;if(u){f=s.body.split(/\.\./)}else{f=parseCommaParts(s.body);if(f.length===1){f=expand(f[0],false).map(embrace);if(f.length===1){var h=s.post.length?expand(s.post,false):[""];return h.map(function(e){return s.pre+f[0]+e})}}}var p=s.pre;var h=s.post.length?expand(s.post,false):[""];var d;if(u){var m=numeric(f[0]);var y=numeric(f[1]);var v=Math.max(f[0].length,f[1].length);var g=f.length==3?Math.abs(numeric(f[2])):1;var b=lte;var w=y<m;if(w){g*=-1;b=gte}var S=f.some(isPadded);d=[];for(var x=m;b(x,y);x+=g){var E;if(c){E=String.fromCharCode(x);if(E==="\\")E=""}else{E=String(x);if(S){var _=v-E.length;if(_>0){var O=new Array(_+1).join("0");if(x<0)E="-"+O+E.slice(1);else E=O+E}}}d.push(E)}}else{d=n(f,function(e){return expand(e,false)})}for(var R=0;R<d.length;R++){for(var A=0;A<h.length;A++){var C=p+d[R]+h[A];if(!t||u||C)r.push(C)}}return r}},5912:e=>{"use strict";function hasKey(e,t){var r=e;t.slice(0,-1).forEach(function(e){r=r[e]||{}});var n=t[t.length-1];return n in r}function isNumber(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function isConstructorOrProto(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,t){if(!t){t={}}var r={bools:{},strings:{},unknownFn:null};if(typeof t.unknown==="function"){r.unknownFn=t.unknown}if(typeof t.boolean==="boolean"&&t.boolean){r.allBools=true}else{[].concat(t.boolean).filter(Boolean).forEach(function(e){r.bools[e]=true})}var n={};function aliasIsBoolean(e){return n[e].some(function(e){return r.bools[e]})}Object.keys(t.alias||{}).forEach(function(e){n[e]=[].concat(t.alias[e]);n[e].forEach(function(t){n[t]=[e].concat(n[e].filter(function(e){return t!==e}))})});[].concat(t.string).filter(Boolean).forEach(function(e){r.strings[e]=true;if(n[e]){[].concat(n[e]).forEach(function(e){r.strings[e]=true})}});var i=t.default||{};var s={_:[]};function argDefined(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||n[e]}function setKey(e,t,n){var i=e;for(var s=0;s<t.length-1;s++){var o=t[s];if(isConstructorOrProto(i,o)){return}if(i[o]===undefined){i[o]={}}if(i[o]===Object.prototype||i[o]===Number.prototype||i[o]===String.prototype){i[o]={}}if(i[o]===Array.prototype){i[o]=[]}i=i[o]}var a=t[t.length-1];if(isConstructorOrProto(i,a)){return}if(i===Object.prototype||i===Number.prototype||i===String.prototype){i={}}if(i===Array.prototype){i=[]}if(i[a]===undefined||r.bools[a]||typeof i[a]==="boolean"){i[a]=n}else if(Array.isArray(i[a])){i[a].push(n)}else{i[a]=[i[a],n]}}function setArg(e,t,i){if(i&&r.unknownFn&&!argDefined(e,i)){if(r.unknownFn(i)===false){return}}var o=!r.strings[e]&&isNumber(t)?Number(t):t;setKey(s,e.split("."),o);(n[e]||[]).forEach(function(e){setKey(s,e.split("."),o)})}Object.keys(r.bools).forEach(function(e){setArg(e,i[e]===undefined?false:i[e])});var o=[];if(e.indexOf("--")!==-1){o=e.slice(e.indexOf("--")+1);e=e.slice(0,e.indexOf("--"))}for(var a=0;a<e.length;a++){var c=e[a];var u;var l;if(/^--.+=/.test(c)){var f=c.match(/^--([^=]+)=([\s\S]*)$/);u=f[1];var h=f[2];if(r.bools[u]){h=h!=="false"}setArg(u,h,c)}else if(/^--no-.+/.test(c)){u=c.match(/^--no-(.+)/)[1];setArg(u,false,c)}else if(/^--.+/.test(c)){u=c.match(/^--(.+)/)[1];l=e[a+1];if(l!==undefined&&!/^(-|--)[^-]/.test(l)&&!r.bools[u]&&!r.allBools&&(n[u]?!aliasIsBoolean(u):true)){setArg(u,l,c);a+=1}else if(/^(true|false)$/.test(l)){setArg(u,l==="true",c);a+=1}else{setArg(u,r.strings[u]?"":true,c)}}else if(/^-[^-]+/.test(c)){var p=c.slice(1,-1).split("");var d=false;for(var m=0;m<p.length;m++){l=c.slice(m+2);if(l==="-"){setArg(p[m],l,c);continue}if(/[A-Za-z]/.test(p[m])&&l[0]==="="){setArg(p[m],l.slice(1),c);d=true;break}if(/[A-Za-z]/.test(p[m])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(l)){setArg(p[m],l,c);d=true;break}if(p[m+1]&&p[m+1].match(/\W/)){setArg(p[m],c.slice(m+2),c);d=true;break}else{setArg(p[m],r.strings[p[m]]?"":true,c)}}u=c.slice(-1)[0];if(!d&&u!=="-"){if(e[a+1]&&!/^(-|--)[^-]/.test(e[a+1])&&!r.bools[u]&&(n[u]?!aliasIsBoolean(u):true)){setArg(u,e[a+1],c);a+=1}else if(e[a+1]&&/^(true|false)$/.test(e[a+1])){setArg(u,e[a+1]==="true",c);a+=1}else{setArg(u,r.strings[u]?"":true,c)}}}else{if(!r.unknownFn||r.unknownFn(c)!==false){s._.push(r.strings._||!isNumber(c)?c:Number(c))}if(t.stopEarly){s._.push.apply(s._,e.slice(a+1));break}}}Object.keys(i).forEach(function(e){if(!hasKey(s,e.split("."))){setKey(s,e.split("."),i[e]);(n[e]||[]).forEach(function(t){setKey(s,t.split("."),i[e])})}});if(t["--"]){s["--"]=o.slice()}else{o.forEach(function(e){s._.push(e)})}return s}},9657:(e,t,r)=>{"use strict";var n=r(5400);var i=r(5451);function mixinDeep(e,t){var r=arguments.length,n=0;while(++n<r){var s=arguments[n];if(isObject(s)){i(s,copy,e)}}return e}function copy(e,t){if(!isValidKey(t)){return}var r=this[t];if(isObject(e)&&isObject(r)){mixinDeep(r,e)}else{this[t]=e}}function isObject(e){return n(e)&&!Array.isArray(e)}function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}e.exports=mixinDeep},5400:(e,t,r)=>{"use strict";var n=r(3072);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},3072:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},1761:(e,t,r)=>{"use strict";var n=r(1669);var i=r(2325);var s=r(8091);var o=r(9454);var a=r(5253);var c=r(1416);var u=r(1838);var l=1024*64;function nanomatch(e,t,r){t=u.arrayify(t);e=u.arrayify(e);var n=t.length;if(e.length===0||n===0){return[]}if(n===1){return nanomatch.match(e,t[0],r)}var i=false;var s=[];var o=[];var a=-1;while(++a<n){var c=t[a];if(typeof c==="string"&&c.charCodeAt(0)===33){s.push.apply(s,nanomatch.match(e,c.slice(1),r));i=true}else{o.push.apply(o,nanomatch.match(e,c,r))}}if(i&&o.length===0){if(r&&r.unixify===false){o=e.slice()}else{var l=u.unixify(r);for(var f=0;f<e.length;f++){o.push(l(e[f]))}}}var h=u.diff(o,s);if(!r||r.nodupes!==false){return u.unique(h)}return h}nanomatch.match=function(e,t,r){if(Array.isArray(t)){throw new TypeError("expected pattern to be a string")}var n=u.unixify(r);var i=memoize("match",t,r,nanomatch.matcher);var s=[];e=u.arrayify(e);var o=e.length;var a=-1;while(++a<o){var c=e[a];if(c===t||i(c)){s.push(u.value(c,n,r))}}if(typeof r==="undefined"){return u.unique(s)}if(s.length===0){if(r.failglob===true){throw new Error('no matches found for "'+t+'"')}if(r.nonull===true||r.nullglob===true){return[r.unescape?u.unescape(t):t]}}if(r.ignore){s=nanomatch.not(s,r.ignore,r)}return r.nodupes!==false?u.unique(s):s};nanomatch.isMatch=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var i=u.equalsPattern(r);if(i(e)){return true}var s=memoize("isMatch",t,r,nanomatch.matcher);return s(e)};nanomatch.some=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length===1){return true}}return false};nanomatch.every=function(e,t,r){if(typeof e==="string"){e=[e]}for(var n=0;n<e.length;n++){if(nanomatch(e[n],t,r).length!==1){return false}}return true};nanomatch.any=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(u.isEmptyString(e)||u.isEmptyString(t)){return false}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(nanomatch.isMatch(e,t[i],r)){return true}}return false};nanomatch.all=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){t=[t]}for(var i=0;i<t.length;i++){if(!nanomatch.isMatch(e,t[i],r)){return false}}return true};nanomatch.not=function(e,t,r){var n=s({},r);var i=n.ignore;delete n.ignore;e=u.arrayify(e);var o=u.diff(e,nanomatch(e,t,n));if(i){o=u.diff(o,nanomatch(e,i))}return n.nodupes!==false?u.unique(o):o};nanomatch.contains=function(e,t,r){if(typeof e!=="string"){throw new TypeError('expected a string: "'+n.inspect(e)+'"')}if(typeof t==="string"){if(u.isEmptyString(e)||u.isEmptyString(t)){return false}var i=u.equalsPattern(t,r);if(i(e)){return true}var o=u.containsPattern(t,r);if(o(e)){return true}}var a=s({},r,{contains:true});return nanomatch.any(e,t,a)};nanomatch.matchBase=function(e,t){if(e&&e.indexOf("/")!==-1||!t)return false;return t.basename===true||t.matchBase===true};nanomatch.matchKeys=function(e,t,r){if(!u.isObject(e)){throw new TypeError("expected the first argument to be an object")}var n=nanomatch(Object.keys(e),t,r);return u.pick(e,n)};nanomatch.matcher=function matcher(e,t){if(u.isEmptyString(e)){return function(){return false}}if(Array.isArray(e)){return compose(e,t,matcher)}if(e instanceof RegExp){return test(e)}if(!u.isString(e)){throw new TypeError("expected pattern to be an array, string or regex")}if(!u.hasSpecialChars(e)){if(t&&t.nocase===true){e=e.toLowerCase()}return u.matchPath(e,t)}var r=nanomatch.makeRe(e,t);if(nanomatch.matchBase(e,t)){return u.matchBasename(r,t)}function test(e){var r=u.equalsPattern(t);var n=u.unixify(t);return function(t){if(r(t)){return true}if(e.test(n(t))){return true}return false}}var n=test(r);u.define(n,"result",r.result);return n};nanomatch.capture=function(e,t,r){var n=nanomatch.makeRe(e,s({capture:true},r));var i=u.unixify(r);function match(){return function(e){var t=n.exec(i(e));if(!t){return null}return t.slice(1)}}var o=memoize("capture",e,r,match);return o(t)};nanomatch.makeRe=function(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected pattern to be a string")}if(e.length>l){throw new Error("expected pattern to be less than "+l+" characters")}function makeRe(){var r=u.extend({wrap:false},t);var n=nanomatch.create(e,r);var s=i(n.output,r);u.define(s,"result",n);return s}return memoize("makeRe",e,t,makeRe)};nanomatch.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function create(){return nanomatch.compile(nanomatch.parse(e,t),t)}return memoize("create",e,t,create)};nanomatch.parse=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}function parse(){var r=u.instantiate(null,t);a(r,t);var n=r.parse(e,t);u.define(n,"snapdragon",r);n.input=e;return n}return memoize("parse",e,t,parse)};nanomatch.compile=function(e,t){if(typeof e==="string"){e=nanomatch.parse(e,t)}function compile(){var r=u.instantiate(e,t);o(r,t);return r.compile(e,t)}return memoize("compile",e.input,t,compile)};nanomatch.clearCache=function(){nanomatch.cache.__data__={}};function compose(e,t,r){var n;return memoize("compose",String(e),t,function(){return function(i){if(!n){n=[];for(var s=0;s<e.length;s++){n.push(r(e[s],t))}}var o=n.length;while(o--){if(n[o](i)===true){return true}}return false}})}function memoize(e,t,r,n){var i=u.createKey(e+"="+t,r);if(r&&r.cache===false){return n(t,r)}if(c.has(e,i)){return c.get(e,i)}var s=n(t,r);c.set(e,i,s);return s}nanomatch.compilers=o;nanomatch.parsers=a;nanomatch.cache=c;e.exports=nanomatch},1416:(e,t,r)=>{e.exports=new(r(3096))},9454:e=>{"use strict";e.exports=function(e,t){function slash(){if(t&&typeof t.slash==="string"){return t.slash}if(t&&typeof t.slash==="function"){return t.slash.call(e)}return"\\\\/"}function star(){if(t&&typeof t.star==="string"){return t.star}if(t&&typeof t.star==="function"){return t.star.call(e)}return"[^"+slash()+"]*?"}var r=e.ast=e.parser.ast;r.state=e.parser.state;e.compiler.state=r.state;e.compiler.set("not",function(e){var t=this.prev();if(this.options.nonegate===true||t.type!=="bos"){return this.emit("\\"+e.val,e)}return this.emit(e.val,e)}).set("escape",function(e){if(this.options.unescape&&/^[-\w_.]/.test(e.val)){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)}).set("quoted",function(e){return this.emit(e.val,e)}).set("dollar",function(e){if(e.parent.type==="bracket"){return this.emit(e.val,e)}return this.emit("\\"+e.val,e)}).set("dot",function(e){if(e.dotfiles===true)this.dotfiles=true;return this.emit("\\"+e.val,e)}).set("backslash",function(e){return this.emit(e.val,e)}).set("slash",function(e,t,r){var n="["+slash()+"]";var i=e.parent;var s=this.prev();while(i.type==="paren"&&!i.hasSlash){i.hasSlash=true;i=i.parent}if(s.addQmark){n+="?"}if(e.rest.slice(0,2)==="\\b"){return this.emit(n,e)}if(e.parsed==="**"||e.parsed==="./**"){this.output="(?:"+this.output;return this.emit(n+")?",e)}if(e.parsed==="!**"&&this.options.nonegate!==true){return this.emit(n+"?\\b",e)}return this.emit(n,e)}).set("bracket",function(e){var t=e.close;var r=!e.escaped?"[":"\\[";var n=e.negated;var i=e.inner;var s=e.val;if(e.escaped===true){i=i.replace(/\\?(\W)/g,"\\$1");n=""}if(i==="]-"){i="\\]\\-"}if(n&&i.indexOf(".")===-1){i+="."}if(n&&i.indexOf("/")===-1){i+="/"}s=r+n+i+t;return this.emit(s,e)}).set("square",function(e){var t=(/^\W/.test(e.val)?"\\":"")+e.val;return this.emit(t,e)}).set("qmark",function(e){var t=this.prev();var r="[^.\\\\/]";if(this.options.dot||t.type!=="bos"&&t.type!=="slash"){r="[^\\\\/]"}if(e.parsed.slice(-1)==="("){var n=e.rest.charAt(0);if(n==="!"||n==="="||n===":"){return this.emit(e.val,e)}}if(e.val.length>1){r+="{"+e.val.length+"}"}return this.emit(r,e)}).set("plus",function(e){var t=e.parsed.slice(-1);if(t==="]"||t===")"){return this.emit(e.val,e)}if(!this.output||/[?*+]/.test(r)&&e.parent.type!=="bracket"){return this.emit("\\+",e)}var r=this.output.slice(-1);if(/\w/.test(r)&&!e.inside){return this.emit("+\\+?",e)}return this.emit("+",e)}).set("globstar",function(e,t,r){if(!this.output){this.state.leadingGlobstar=true}var n=this.prev();var i=this.prev(2);var s=this.next();var o=this.next(2);var a=n.type;var c=e.val;if(n.type==="slash"&&s.type==="slash"){if(i.type==="text"){this.output+="?";if(o.type!=="text"){this.output+="\\b"}}}var u=e.parsed;if(u.charAt(0)==="!"){u=u.slice(1)}var l=e.isInside.paren||e.isInside.brace;if(u&&a!=="slash"&&a!=="bos"&&!l){c=star()}else{c=this.options.dot!==true?"(?:(?!(?:["+slash()+"]|^)\\.).)*?":"(?:(?!(?:["+slash()+"]|^)(?:\\.{1,2})($|["+slash()+"]))(?!\\.{2}).)*?"}if((a==="slash"||a==="bos")&&this.options.dot!==true){c="(?!\\.)"+c}if(n.type==="slash"&&s.type==="slash"&&i.type!=="text"){if(o.type==="text"||o.type==="star"){e.addQmark=true}}if(this.options.capture){c="("+c+")"}return this.emit(c,e)}).set("star",function(e,t,r){var n=t[r-2]||{};var i=this.prev();var s=this.next();var o=i.type;function isStart(e){return e.type==="bos"||e.type==="slash"}if(this.output===""&&this.options.contains!==true){this.output="(?!["+slash()+"])"}if(o==="bracket"&&this.options.bash===false){var a=s&&s.type==="bracket"?star():"*?";if(!i.nodes||i.nodes[1].type!=="posix"){return this.emit(a,e)}}var c=!this.dotfiles&&o!=="text"&&o!=="escape"?this.options.dot?"(?!(?:^|["+slash()+"])\\.{1,2}(?:$|["+slash()+"]))":"(?!\\.)":"";if(isStart(i)||isStart(n)&&o==="not"){if(c!=="(?!\\.)"){c+="(?!(\\.{2}|\\.["+slash()+"]))(?=.)"}else{c+="(?=.)"}}else if(c==="(?!\\.)"){c=""}if(i.type==="not"&&n.type==="bos"&&this.options.dot===true){this.output="(?!\\.)"+this.output}var u=c+star();if(this.options.capture){u="("+u+")"}return this.emit(u,e)}).set("text",function(e){return this.emit(e.val,e)}).set("eos",function(e){var t=this.prev();var r=e.val;this.output="(?:\\.["+slash()+"](?=.))?"+this.output;if(this.state.metachar&&t.type!=="qmark"&&t.type!=="slash"){r+=this.options.contains?"["+slash()+"]?":"(?:["+slash()+"]|$)"}return this.emit(r,e)});if(t&&typeof t.compilers==="function"){t.compilers(e.compiler)}}},5253:(e,t,r)=>{"use strict";var n=r(466);var i=r(2325);var s;var o="[\\[!*+?$^\"'.\\\\/]+";var a=createTextRegex(o);e.exports=function(e,t){var r=e.parser;var n=r.options;r.state={slashes:0,paths:[]};r.ast.state=r.state;r.capture("prefix",function(){if(this.parsed)return;var e=this.match(/^\.[\\/]/);if(!e)return;this.state.strictOpen=!!this.options.strictOpen;this.state.addPrefix=true}).capture("escape",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^(?:\\(.)|([$^]))/);if(!t)return;return e({type:"escape",val:t[2]||t[1]})}).capture("quoted",function(){var e=this.position();var t=this.match(/^["']/);if(!t)return;var r=t[0];if(this.input.indexOf(r)===-1){return e({type:"escape",val:r})}var n=advanceTo(this.input,r);this.consume(n.len);return e({type:"quoted",val:n.esc})}).capture("not",function(){var e=this.parsed;var t=this.position();var r=this.match(this.notRegex||/^!+/);if(!r)return;var n=r[0];var i=n.length%2===1;if(e===""&&!i){n=""}if(e===""&&i&&this.options.nonegate!==true){this.bos.val="(?!^(?:";this.append=")$).*";n=""}return t({type:"not",val:n})}).capture("dot",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\.+/);if(!r)return;var n=r[0];this.state.dot=n==="."&&(e===""||e.slice(-1)==="/");return t({type:"dot",dotfiles:this.state.dot,val:n})}).capture("plus",/^\+(?!\()/).capture("qmark",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\?+(?!\()/);if(!r)return;this.state.metachar=true;this.state.qmark=true;return t({type:"qmark",parsed:e,val:r[0]})}).capture("globstar",function(){var e=this.parsed;var t=this.position();var r=this.match(/^\*{2}(?![*(])(?=[,)/]|$)/);if(!r)return;var i=n.noglobstar!==true?"globstar":"star";var s=t({type:i,parsed:e});this.state.metachar=true;while(this.input.slice(0,4)==="/**/"){this.input=this.input.slice(3)}s.isInside={brace:this.isInside("brace"),paren:this.isInside("paren")};if(i==="globstar"){this.state.globstar=true;s.val="**"}else{this.state.star=true;s.val="*"}return s}).capture("star",function(){var e=this.position();var t=/^(?:\*(?![*(])|[*]{3,}(?!\()|[*]{2}(?![(/]|$)|\*(?=\*\())/;var r=this.match(t);if(!r)return;this.state.metachar=true;this.state.star=true;return e({type:"star",val:r[0]})}).capture("slash",function(){var e=this.position();var t=this.match(/^\//);if(!t)return;this.state.slashes++;return e({type:"slash",val:t[0]})}).capture("backslash",function(){var e=this.position();var t=this.match(/^\\(?![*+?(){}[\]'"])/);if(!t)return;var r=t[0];if(this.isInside("bracket")){r="\\"}else if(r.length>1){r="\\\\"}return e({type:"backslash",val:r})}).capture("square",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(/^\[([^!^\\])\]/);if(!t)return;return e({type:"square",val:t[1]})}).capture("bracket",function(){var e=this.position();var t=this.match(/^(?:\[([!^]?)([^\]]+|\]-)(\]|[^*+?]+)|\[)/);if(!t)return;var r=t[0];var n=t[1]?"^":"";var i=(t[2]||"").replace(/\\\\+/,"\\\\");var s=t[3]||"";if(t[2]&&i.length<t[2].length){r=r.replace(/\\\\+/,"\\\\")}var o=this.input.slice(0,2);if(i===""&&o==="\\]"){i+=o;this.consume(2);var a=this.input;var c=-1;var u;while(u=a[++c]){this.consume(1);if(u==="]"){s=u;break}i+=u}}return e({type:"bracket",val:r,escaped:s!=="]",negated:n,inner:i,close:s})}).capture("text",function(){if(this.isInside("bracket"))return;var e=this.position();var t=this.match(a);if(!t||!t[0])return;return e({type:"text",val:t[0]})});if(t&&typeof t.parsers==="function"){t.parsers(e.parser)}};function advanceTo(e,t){var r=e.charAt(0);var n={len:1,val:"",esc:""};var i=0;function advance(){if(r!=="\\"){n.esc+="\\"+r;n.val+=r}r=e.charAt(++i);n.len++;if(r==="\\"){advance();advance()}}while(r&&r!==t){advance()}return n}function createTextRegex(e){if(s)return s;var t={contains:true,strictClose:false};var r=n.create(e,t);var o=i("^(?:[*]\\((?=.)|"+r+")",t);return s=o}e.exports.not=o},1838:(e,t,r)=>{"use strict";var n=e.exports;var i=r(5622);var s=r(3718)();var o=r(4253);n.define=r(3472);n.diff=r(6164);n.extend=r(8091);n.pick=r(7751);n.typeOf=r(9413);n.unique=r(68);n.isEmptyString=function(e){return String(e)===""||String(e)==="./"};n.isWindows=function(){return i.sep==="\\"||s===true};n.last=function(e,t){return e[e.length-(t||1)]};n.instantiate=function(e,t){var r;if(n.typeOf(e)==="object"&&e.snapdragon){r=e.snapdragon}else if(n.typeOf(t)==="object"&&t.snapdragon){r=t.snapdragon}else{r=new o(t)}n.define(r,"parse",function(e,t){var r=o.prototype.parse.call(this,e,t);r.input=e;var i=this.parser.stack.pop();if(i&&this.options.strictErrors!==true){var s=i.nodes[0];var a=i.nodes[1];if(i.type==="bracket"){if(a.val.charAt(0)==="["){a.val="\\"+a.val}}else{s.val="\\"+s.val;var c=s.parent.nodes[1];if(c.type==="star"){c.loose=true}}}n.define(r,"parser",this.parser);return r});return r};n.createKey=function(e,t){if(typeof t==="undefined"){return e}var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r};n.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};n.isString=function(e){return typeof e==="string"};n.isRegex=function(e){return n.typeOf(e)==="regexp"};n.isObject=function(e){return n.typeOf(e)==="object"};n.escapeRegex=function(e){return e.replace(/[-[\]{}()^$|*+?.\\/\s]/g,"\\$&")};n.combineDupes=function(e,t){t=n.arrayify(t).join("|").split("|");t=t.map(function(e){return e.replace(/\\?([+*\\/])/g,"\\$1")});var r=t.join("|");var i=new RegExp("("+r+")(?=\\1)","g");return e.replace(i,"")};n.hasSpecialChars=function(e){return/(?:(?:(^|\/)[!.])|[*?+()|[\]{}]|[+@]\()/.test(e)};n.toPosixPath=function(e){return e.replace(/\\+/g,"/")};n.unescape=function(e){return n.toPosixPath(e.replace(/\\(?=[*+?!.])/g,""))};n.stripDrive=function(e){return n.isWindows()?e.replace(/^[a-z]:[\\/]+?/i,"/"):e};n.stripPrefix=function(e){if(e.charAt(0)==="."&&(e.charAt(1)==="/"||e.charAt(1)==="\\")){return e.slice(2)}return e};n.isSimpleChar=function(e){return e.trim()===""||e==="."};n.isSlash=function(e){return e==="/"||e==="\\/"||e==="\\"||e==="\\\\"};n.matchPath=function(e,t){return t&&t.contains?n.containsPattern(e,t):n.equalsPattern(e,t)};n._equals=function(e,t,r){return r===e||r===t};n._contains=function(e,t,r){return e.indexOf(r)!==-1||t.indexOf(r)!==-1};n.equalsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function fn(i){var s=n._equals(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._equals(o,r(o),e)}};n.containsPattern=function(e,t){var r=n.unixify(t);t=t||{};return function(i){var s=n._contains(i,r(i),e);if(s===true||t.nocase!==true){return s}var o=i.toLowerCase();return n._contains(o,r(o),e)}};n.matchBasename=function(e){return function(t){return e.test(t)||e.test(i.basename(t))}};n.identity=function(e){return e};n.value=function(e,t,r){if(r&&r.unixify===false){return e}if(r&&typeof r.unixify==="function"){return r.unixify(e)}return t(e)};n.unixify=function(e){var t=e||{};return function(e){if(t.stripPrefix!==false){e=n.stripPrefix(e)}if(t.unescape===true){e=n.unescape(e)}if(t.unixify===true||n.isWindows()){e=n.toPosixPath(e)}return e}}},3472:(e,t,r)=>{"use strict";var n=r(7328);var i=r(5721);var s=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){s(e,t,r);return e}s(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},8091:(e,t,r)=>{"use strict";var n=r(9080);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},9080:(e,t,r)=>{"use strict";var n=r(7079);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},7079:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},3783:(e,t,r)=>{var n=r(1669).inherits;var i=function(e,t){this.nested=t;if(e instanceof Error){t=e}else if(typeof e!=="undefined"){Object.defineProperty(this,"message",{value:e,writable:true,enumerable:false,configurable:true})}Error.captureStackTrace(this,this.constructor);var r=Object.getOwnPropertyDescriptor(this,"stack");var n=buildStackDescriptor(r,t);Object.defineProperty(this,"stack",n)};function buildStackDescriptor(e,t){if(e.get){return{get:function(){var t=e.get.call(this);return buildCombinedStacks(t,this.nested)}}}else{var r=e.value;return{value:buildCombinedStacks(r,t)}}}function buildCombinedStacks(e,t){if(t){e+="\nCaused By: "+t.stack}return e}n(i,Error);i.prototype.name="NestedError";e.exports=i},7369:e=>{"use strict";e.exports=function(e){try{return e()}catch(e){}}},9966:e=>{"use strict";const t="text/plain";const r="us-ascii";const n=(e,t)=>{return t.some(t=>t instanceof RegExp?t.test(e):t===e)};const i=(e,{stripHash:n})=>{const i=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!i){throw new Error(`Invalid URL: ${e}`)}let{type:s,data:o,hash:a}=i.groups;const c=s.split(";");a=n?"":a;let u=false;if(c[c.length-1]==="base64"){c.pop();u=true}const l=(c.shift()||"").toLowerCase();const f=c.map(e=>{let[t,n=""]=e.split("=").map(e=>e.trim());if(t==="charset"){n=n.toLowerCase();if(n===r){return""}}return`${t}${n?`=${n}`:""}`}).filter(Boolean);const h=[...f];if(u){h.push("base64")}if(h.length!==0||l&&l!==t){h.unshift(l)}return`data:${h.join(";")},${u?o.trim():o}${a?`#${a}`:""}`};const s=(e,t)=>{t={defaultProtocol:"http:",normalizeProtocol:true,forceHttp:false,forceHttps:false,stripAuthentication:true,stripHash:false,stripTextFragment:true,stripWWW:true,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:true,removeSingleSlash:true,removeDirectoryIndex:false,sortQueryParameters:true,...t};e=e.trim();if(/^data:/i.test(e)){return i(e,t)}if(/^view-source:/i.test(e)){throw new Error("`view-source:` is not supported as it is a non-standard protocol")}const r=e.startsWith("//");const s=!r&&/^\.*\//.test(e);if(!s){e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol)}const o=new URL(e);if(t.forceHttp&&t.forceHttps){throw new Error("The `forceHttp` and `forceHttps` options cannot be used together")}if(t.forceHttp&&o.protocol==="https:"){o.protocol="http:"}if(t.forceHttps&&o.protocol==="http:"){o.protocol="https:"}if(t.stripAuthentication){o.username="";o.password=""}if(t.stripHash){o.hash=""}else if(t.stripTextFragment){o.hash=o.hash.replace(/#?:~:text.*?$/i,"")}if(o.pathname){o.pathname=o.pathname.replace(/(?<!\b(?:[a-z][a-z\d+\-.]{1,50}:))\/{2,}/g,"/")}if(o.pathname){try{o.pathname=decodeURI(o.pathname)}catch(e){}}if(t.removeDirectoryIndex===true){t.removeDirectoryIndex=[/^index\.[a-z]+$/]}if(Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split("/");const r=e[e.length-1];if(n(r,t.removeDirectoryIndex)){e=e.slice(0,e.length-1);o.pathname=e.slice(1).join("/")+"/"}}if(o.hostname){o.hostname=o.hostname.replace(/\.$/,"");if(t.stripWWW&&/^www\.(?!www\.)(?:[a-z\-\d]{1,63})\.(?:[a-z.\-\d]{2,63})$/.test(o.hostname)){o.hostname=o.hostname.replace(/^www\./,"")}}if(Array.isArray(t.removeQueryParameters)){for(const e of[...o.searchParams.keys()]){if(n(e,t.removeQueryParameters)){o.searchParams.delete(e)}}}if(t.removeQueryParameters===true){o.search=""}if(t.sortQueryParameters){o.searchParams.sort()}if(t.removeTrailingSlash){o.pathname=o.pathname.replace(/\/$/,"")}const a=e;e=o.toString();if(!t.removeSingleSlash&&o.pathname==="/"&&!a.endsWith("/")&&o.hash===""){e=e.replace(/\/$/,"")}if((t.removeTrailingSlash||o.pathname==="/")&&o.hash===""&&t.removeSingleSlash){e=e.replace(/\/$/,"")}if(r&&!t.normalizeProtocol){e=e.replace(/^http:\/\//,"//")}if(t.stripProtocol){e=e.replace(/^(?:https?:)?\/\//,"")}return e};e.exports=s},858:(e,t,r)=>{"use strict";var n=r(427);var i=r(4016);var s=r(3018);function copy(e,t,r){if(!isObject(e)){throw new TypeError("expected receiving object to be an object.")}if(!isObject(t)){throw new TypeError("expected providing object to be an object.")}var n=nativeKeys(t);var o=Object.keys(t);var a=n.length;r=arrayify(r);while(a--){var c=n[a];if(has(o,c)){s(e,c,t[c])}else if(!(c in e)&&!has(r,c)){i(e,t,c)}}}function isObject(e){return n(e)==="object"||typeof e==="function"}function has(e,t){t=arrayify(t);var r=t.length;if(isObject(e)){for(var n in e){if(t.indexOf(n)>-1){return true}}var i=nativeKeys(e);return has(i,t)}if(Array.isArray(e)){var s=e;while(r--){if(s.indexOf(t[r])>-1){return true}}return false}throw new TypeError("expected an array or object.")}function arrayify(e){return e?Array.isArray(e)?e:[e]:[]}function hasConstructor(e){return isObject(e)&&typeof e.constructor!=="undefined"}function nativeKeys(e){if(!hasConstructor(e))return[];return Object.getOwnPropertyNames(e)}e.exports=copy;e.exports.has=has},7468:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},427:(e,t,r)=>{var n=r(7468);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},1345:(e,t,r)=>{"use strict";var n=r(7328);e.exports=function visit(e,t,r,i){if(!n(e)&&typeof e!=="function"){throw new Error("object-visit expects `thisArg` to be an object.")}if(typeof t!=="string"){throw new Error("object-visit expects `method` name to be a string")}if(typeof e[t]!=="function"){return e}var s=[].slice.call(arguments,3);r=r||{};for(var o in r){var a=[o,r[o]].concat(s);e[t].apply(e,a)}return e}},7751:(e,t,r)=>{"use strict";var n=r(7328);e.exports=function pick(e,t){if(!n(e)&&typeof e!=="function"){return{}}var r={};if(typeof t==="string"){if(t in e){r[t]=e[t]}return r}var i=t.length;var s=-1;while(++s<i){var o=t[s];if(o in e){r[o]=e[o]}}return r}},7197:(e,t,r)=>{var n=r(4586);e.exports=n(once);e.exports.strict=n(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},6306:e=>{"use strict";class CancelError extends Error{constructor(e){super(e||"Promise was canceled");this.name="CancelError"}get isCanceled(){return true}}class PCancelable{static fn(e){return(...t)=>{return new PCancelable((r,n,i)=>{t.push(i);e(...t).then(r,n)})}}constructor(e){this._cancelHandlers=[];this._isPending=true;this._isCanceled=false;this._rejectOnCancel=true;this._promise=new Promise((t,r)=>{this._reject=r;const n=e=>{if(!this._isCanceled||!s.shouldReject){this._isPending=false;t(e)}};const i=e=>{this._isPending=false;r(e)};const s=e=>{if(!this._isPending){throw new Error("The `onCancel` handler was attached after the promise settled.")}this._cancelHandlers.push(e)};Object.defineProperties(s,{shouldReject:{get:()=>this._rejectOnCancel,set:e=>{this._rejectOnCancel=e}}});return e(n,i,s)})}then(e,t){return this._promise.then(e,t)}catch(e){return this._promise.catch(e)}finally(e){return this._promise.finally(e)}cancel(e){if(!this._isPending||this._isCanceled){return}this._isCanceled=true;if(this._cancelHandlers.length>0){try{for(const e of this._cancelHandlers){e()}}catch(e){this._reject(e);return}}if(this._rejectOnCancel){this._reject(new CancelError(e))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(PCancelable.prototype,Promise.prototype);e.exports=PCancelable;e.exports.CancelError=CancelError},7021:(e,t,r)=>{"use strict";const n=r(2454);const i=Symbol.asyncIterator||"@@asyncIterator";const s=e=>{const t=e.on||e.addListener||e.addEventListener;const r=e.off||e.removeListener||e.removeEventListener;if(!t||!r){throw new TypeError("Emitter is not compatible")}return{addListener:t.bind(e),removeListener:r.bind(e)}};const o=e=>Array.isArray(e)?e:[e];const a=(e,t,r)=>{let i;const a=new Promise((n,a)=>{r={rejectionEvents:["error"],multiArgs:false,resolveImmediately:false,...r};if(!(r.count>=0&&(r.count===Infinity||Number.isInteger(r.count)))){throw new TypeError("The `count` option should be at least 0 or more")}const c=o(t);const u=[];const{addListener:l,removeListener:f}=s(e);const h=(...e)=>{const t=r.multiArgs?e:e[0];if(r.filter&&!r.filter(t)){return}u.push(t);if(r.count===u.length){i();n(u)}};const p=e=>{i();a(e)};i=(()=>{for(const e of c){f(e,h)}for(const e of r.rejectionEvents){f(e,p)}});for(const e of c){l(e,h)}for(const e of r.rejectionEvents){l(e,p)}if(r.resolveImmediately){n(u)}});a.cancel=i;if(typeof r.timeout==="number"){const e=n(a,r.timeout);e.cancel=i;return e}return a};const c=(e,t,r)=>{if(typeof r==="function"){r={filter:r}}r={...r,count:1,resolveImmediately:false};const n=a(e,t,r);const i=n.then(e=>e[0]);i.cancel=n.cancel;return i};e.exports=c;e.exports.default=c;e.exports.multiple=a;e.exports.iterator=((e,t,r)=>{if(typeof r==="function"){r={filter:r}}const n=o(t);r={rejectionEvents:["error"],resolutionEvents:[],limit:Infinity,multiArgs:false,...r};const{limit:a}=r;const c=a>=0&&(a===Infinity||Number.isInteger(a));if(!c){throw new TypeError("The `limit` option should be a non-negative integer or Infinity")}if(a===0){return{[Symbol.asyncIterator](){return this},async next(){return{done:true,value:undefined}}}}const{addListener:u,removeListener:l}=s(e);let f=false;let h;let p=false;const d=[];const m=[];let y=0;let v=false;const g=(...e)=>{y++;v=y===a;const t=r.multiArgs?e:e[0];if(d.length>0){const{resolve:e}=d.shift();e({done:false,value:t});if(v){b()}return}m.push(t);if(v){b()}};const b=()=>{f=true;for(const e of n){l(e,g)}for(const e of r.rejectionEvents){l(e,w)}for(const e of r.resolutionEvents){l(e,S)}while(d.length>0){const{resolve:e}=d.shift();e({done:true,value:undefined})}};const w=(...e)=>{h=r.multiArgs?e:e[0];if(d.length>0){const{reject:e}=d.shift();e(h)}else{p=true}b()};const S=(...e)=>{const t=r.multiArgs?e:e[0];if(r.filter&&!r.filter(t)){return}if(d.length>0){const{resolve:e}=d.shift();e({done:true,value:t})}else{m.push(t)}b()};for(const e of n){u(e,g)}for(const e of r.rejectionEvents){u(e,w)}for(const e of r.resolutionEvents){u(e,S)}return{[i](){return this},async next(){if(m.length>0){const e=m.shift();return{done:f&&m.length===0&&!v,value:e}}if(p){p=false;throw h}if(f){return{done:true,value:undefined}}return new Promise((e,t)=>d.push({resolve:e,reject:t}))},async return(e){b();return{done:f,value:e}}}});e.exports.TimeoutError=n.TimeoutError},5324:e=>{"use strict";e.exports=((e,t)=>{t=t||(()=>{});return e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))})},2454:(e,t,r)=>{"use strict";const n=r(5324);class TimeoutError extends Error{constructor(e){super(e);this.name="TimeoutError"}}const i=(e,t,r)=>new Promise((i,s)=>{if(typeof t!=="number"||t<0){throw new TypeError("Expected `milliseconds` to be a positive number")}if(t===Infinity){i(e);return}const o=setTimeout(()=>{if(typeof r==="function"){try{i(r())}catch(e){s(e)}return}const n=typeof r==="string"?r:`Promise timed out after ${t} milliseconds`;const o=r instanceof Error?r:new TimeoutError(n);if(typeof e.cancel==="function"){e.cancel()}s(o)},t);n(e.then(i,s),()=>{clearTimeout(o)})});e.exports=i;e.exports.default=i;e.exports.TimeoutError=TimeoutError},9859:e=>{function pascalcase(e){if(typeof e!=="string"){throw new TypeError("expected a string.")}e=e.replace(/([A-Z])/g," $1");if(e.length===1){return e.toUpperCase()}e=e.replace(/^[\W_]+|[\W_]+$/g,"").toLowerCase();e=e.charAt(0).toUpperCase()+e.slice(1);return e.replace(/[\W_]+(\w|$)/g,function(e,t){return t.toUpperCase()})}e.exports=pascalcase},8261:(e,t,r)=>{"use strict";var n=r(5622);var i=r(1669).inspect;function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+i(e))}}function posix(e){assertPath(e);if(e.length===0)return".";var t=e.charCodeAt(0);var r=t===47;var n=-1;var i=true;for(var s=e.length-1;s>=1;--s){t=e.charCodeAt(s);if(t===47){if(!i){n=s;break}}else{i=false}}if(n===-1)return r?"/":".";if(r&&n===1)return"//";return e.slice(0,n)}function win32(e){assertPath(e);var t=e.length;if(t===0)return".";var r=-1;var n=-1;var i=true;var s=0;var o=e.charCodeAt(0);if(t>1){if(o===47||o===92){r=s=1;o=e.charCodeAt(1);if(o===47||o===92){var a=2;var c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o!==47&&o!==92)break}if(a<t&&a!==c){c=a;for(;a<t;++a){o=e.charCodeAt(a);if(o===47||o===92)break}if(a===t){return e}if(a!==c){r=s=a+1}}}}}else if(o>=65&&o<=90||o>=97&&o<=122){o=e.charCodeAt(1);if(e.charCodeAt(1)===58){r=s=2;if(t>2){o=e.charCodeAt(2);if(o===47||o===92)r=s=3}}}}else if(o===47||o===92){return e[0]}for(var u=t-1;u>=s;--u){o=e.charCodeAt(u);if(o===47||o===92){if(!i){n=u;break}}else{i=false}}if(n===-1){if(r===-1)return".";else n=r}return e.slice(0,n)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},1323:e=>{"use strict";function posix(e){return e.charAt(0)==="/"}function win32(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/;var r=t.exec(e);var n=r[1]||"";var i=Boolean(n&&n.charAt(1)!==":");return Boolean(r[2]||i)}e.exports=process.platform==="win32"?win32:posix;e.exports.posix=posix;e.exports.win32=win32},9367:e=>{"use strict";const t=(e,t)=>(function(...r){const n=t.promiseModule;return new n((n,i)=>{if(t.multiArgs){r.push((...e)=>{if(t.errorFirst){if(e[0]){i(e)}else{e.shift();n(e)}}else{n(e)}})}else if(t.errorFirst){r.push((e,t)=>{if(e){i(e)}else{n(t)}})}else{r.push(n)}e.apply(this,r)})});e.exports=((e,r)=>{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:true,promiseModule:Promise},r);const n=typeof e;if(!(e!==null&&(n==="object"||n==="function"))){throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${e===null?"null":n}\``)}const i=e=>{const t=t=>typeof t==="string"?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let s;if(n==="function"){s=function(...n){return r.excludeMain?e(...n):t(e,r).apply(this,n)}}else{s=Object.create(Object.getPrototypeOf(e))}for(const n in e){const o=e[n];s[n]=typeof o==="function"&&i(n)?t(o,r):o}return s})},803:e=>{"use strict";e.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"}},9595:(e,t,r)=>{var n=r(7197);var i=r(2498);var s=r(5747);var o=function(){};var a=/^v?\.0/.test(process.version);var c=function(e){return typeof e==="function"};var u=function(e){if(!a)return false;if(!s)return false;return(e instanceof(s.ReadStream||o)||e instanceof(s.WriteStream||o))&&c(e.close)};var l=function(e){return e.setHeader&&c(e.abort)};var f=function(e,t,r,s){s=n(s);var a=false;e.on("close",function(){a=true});i(e,{readable:t,writable:r},function(e){if(e)return s(e);a=true;s()});var f=false;return function(t){if(a)return;if(f)return;f=true;if(u(e))return e.close(o);if(l(e))return e.abort();if(c(e.destroy))return e.destroy();s(t||new Error("stream was destroyed"))}};var h=function(e){e()};var p=function(e,t){return e.pipe(t)};var d=function(){var e=Array.prototype.slice.call(arguments);var t=c(e[e.length-1]||o)&&e.pop()||o;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,s){var o=s<e.length-1;var a=s>0;return f(i,o,a,function(e){if(!r)r=e;if(e)n.forEach(h);if(o)return;n.forEach(h);t(r)})});return e.reduce(p)};e.exports=d},8271:(e,t,r)=>{var n=r(7563);var i=r(5622).join;var s=r(5134);var o="/etc";var a=process.platform==="win32";var c=a?process.env.USERPROFILE:process.env.HOME;e.exports=function(e,t,u,l){if("string"!==typeof e)throw new Error("rc(name): name *must* be string");if(!u)u=r(5912)(process.argv.slice(2));t=("string"===typeof t?n.json(t):t)||{};l=l||n.parse;var f=n.env(e+"_");var h=[t];var p=[];function addConfigFile(e){if(p.indexOf(e)>=0)return;var t=n.file(e);if(t){h.push(l(t));p.push(e)}}if(!a)[i(o,e,"config"),i(o,e+"rc")].forEach(addConfigFile);if(c)[i(c,".config",e,"config"),i(c,".config",e),i(c,"."+e,"config"),i(c,"."+e+"rc")].forEach(addConfigFile);addConfigFile(n.find("."+e+"rc"));if(f.config)addConfigFile(f.config);if(u.config)addConfigFile(u.config);return s.apply(null,h.concat([f,u,p.length?{configs:p,config:p[p.length-1]}:undefined]))}},7563:(e,t,r)=>{"use strict";var n=r(5747);var i=r(1923);var s=r(5622);var o=r(6397);var a=t.parse=function(e){if(/^\s*{/.test(e))return JSON.parse(o(e));return i.parse(e)};var c=t.file=function(){var e=[].slice.call(arguments).filter(function(e){return e!=null});for(var t in e)if("string"!==typeof e[t])return;var r=s.join.apply(null,e);var i;try{return n.readFileSync(r,"utf-8")}catch(e){return}};var u=t.json=function(){var e=c.apply(null,arguments);return e?a(e):null};var l=t.env=function(e,t){t=t||process.env;var r={};var n=e.length;for(var i in t){if(i.toLowerCase().indexOf(e.toLowerCase())===0){var s=i.substring(n).split("__");var o;while((o=s.indexOf(""))>-1){s.splice(o,1)}var a=r;s.forEach(function _buildSubObj(e,r){if(!e||typeof a!=="object")return;if(r===s.length-1)a[e]=t[i];if(a[e]===undefined)a[e]={};a=a[e]})}}return r};var f=t.find=function(){var e=s.join.apply(null,[].slice.call(arguments));function find(e,t){var r=s.join(e,t);try{n.statSync(r);return r}catch(r){if(s.dirname(e)!==e)return find(s.dirname(e),t)}}return find(process.cwd(),e)}},6397:e=>{"use strict";var t=1;var r=2;function stripWithoutWhitespace(){return""}function stripWithWhitespace(e,t,r){return e.slice(t,r).replace(/\S/g," ")}e.exports=function(e,n){n=n||{};var i;var s;var o=false;var a=false;var c=0;var u="";var l=n.whitespace===false?stripWithoutWhitespace:stripWithWhitespace;for(var f=0;f<e.length;f++){i=e[f];s=e[f+1];if(!a&&i==='"'){var h=e[f-1]==="\\"&&e[f-2]!=="\\";if(!h){o=!o}}if(o){continue}if(!a&&i+s==="//"){u+=e.slice(c,f);c=f;a=t;f++}else if(a===t&&i+s==="\r\n"){f++;a=false;u+=l(e,c,f);c=f;continue}else if(a===t&&i==="\n"){a=false;u+=l(e,c,f);c=f}else if(!a&&i+s==="/*"){u+=e.slice(c,f);c=f;a=r;f++;continue}else if(a===r&&i+s==="*/"){f++;a=false;u+=l(e,c,f+1);c=f+1;continue}}return u+(a?l(e.substr(c)):e.substr(c))}},466:(e,t,r)=>{"use strict";var n=r(8134);var i=r(8589);function toRegex(e,t){return new RegExp(toRegex.create(e,t))}toRegex.create=function(e,t){if(typeof e!=="string"){throw new TypeError("expected a string")}var r=n({},t);if(r.contains===true){r.strictNegate=false}var s=r.strictOpen!==false?"^":"";var o=r.strictClose!==false?"$":"";var a=r.endChar?r.endChar:"+";var c=e;if(r.strictNegate===false){c="(?:(?!(?:"+e+")).)"+a}else{c="(?:(?!^(?:"+e+")$).)"+a}var u=s+c+o;if(r.safe===true&&i(u)===false){throw new Error("potentially unsafe regular expression: "+u)}return u};e.exports=toRegex},8134:(e,t,r)=>{"use strict";var n=r(5114);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},5114:(e,t,r)=>{"use strict";var n=r(3775);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},3775:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},4955:(e,t,r)=>{const n=r(3118).Buffer;function decodeBase64(e){return n.from(e,"base64").toString("utf8")}function encodeBase64(e){return n.from(e,"utf8").toString("base64")}e.exports={decodeBase64:decodeBase64,encodeBase64:encodeBase64}},1384:(e,t,r)=>{var n=r(8835);var i=r(4955);var s=i.decodeBase64;var o=i.encodeBase64;var a=":_authToken";var c=":username";var u=":_password";e.exports=function(){var e;var t;if(arguments.length>=2){e=arguments[0];t=arguments[1]}else if(typeof arguments[0]==="string"){e=arguments[0]}else{t=arguments[0]}t=t||{};t.npmrc=t.npmrc||r(8271)("npm",{registry:"https://registry.npmjs.org/"});e=e||t.npmrc.registry;return getRegistryAuthInfo(e,t)||getLegacyAuthInfo(t.npmrc)};function getRegistryAuthInfo(e,t){var r=n.parse(e,false,true);var i;while(i!=="/"&&r.pathname!==i){i=r.pathname||"/";var s="//"+r.host+i.replace(/\/$/,"");var o=getAuthInfoForUrl(s,t.npmrc);if(o){return o}if(!t.recursive){return/\/$/.test(e)?undefined:getRegistryAuthInfo(n.resolve(e,"."),t)}r.pathname=n.resolve(normalizePath(i),"..")||"/"}return undefined}function getLegacyAuthInfo(e){if(e._auth){return{token:e._auth,type:"Basic"}}return undefined}function normalizePath(e){return e[e.length-1]==="/"?e:e+"/"}function getAuthInfoForUrl(e,t){var r=getBearerToken(t[e+a]||t[e+"/"+a]);if(r){return r}var n=t[e+c]||t[e+"/"+c];var i=t[e+u]||t[e+"/"+u];var s=getTokenForUsernameAndPassword(n,i);if(s){return s}return undefined}function getBearerToken(e){if(!e){return undefined}var t=e.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]});return{token:t,type:"Bearer"}}function getTokenForUsernameAndPassword(e,t){if(!e||!t){return undefined}var r=s(t.replace(/^\$\{?([^}]*)\}?$/,function(e,t){return process.env[t]}));var n=o(e+":"+r);return{token:n,type:"Basic",password:r,username:e}}},2447:(e,t,r)=>{"use strict";e.exports=function(e){var t=r(8271)("npm",{registry:"https://registry.npmjs.org/"});var n=t[e+":registry"]||t.registry;return n.slice(-1)==="/"?n:n+"/"}},9503:e=>{"use strict";e.exports=function repeat(e,t){if(Array.prototype.fill){return new Array(t).fill(e)}var r=new Array(t);for(var n=0;n<t;n++){r[n]=e}return r}},9626:e=>{"use strict";var t="";var r;e.exports=repeat;function repeat(e,n){if(typeof e!=="string"){throw new TypeError("expected a string")}if(n===1)return e;if(n===2)return e+e;var i=e.length*n;if(r!==e||typeof r==="undefined"){r=e;t=""}else if(t.length>=i){return t.substr(0,i)}while(i>t.length&&n>1){if(n&1){t+=e}n>>=1;e+=e}t+=e;t=t.substr(0,i);return t}},7431:(e,t,r)=>{"use strict";const n=r(2413).Readable;const i=r(530);class Response extends n{constructor(e,t,r,n){if(typeof e!=="number"){throw new TypeError("Argument `statusCode` should be a number")}if(typeof t!=="object"){throw new TypeError("Argument `headers` should be an object")}if(!(r instanceof Buffer)){throw new TypeError("Argument `body` should be a buffer")}if(typeof n!=="string"){throw new TypeError("Argument `url` should be a string")}super();this.statusCode=e;this.headers=i(t);this.body=r;this.url=n}_read(){this.push(this.body);this.push(null)}}e.exports=Response},5961:(e,t,r)=>{var n=r(9152);var i=r(8349);var s=r(6125);var o=r(4162);e.exports=function(e){var t=0,r,a,c={type:i.ROOT,stack:[]},u=c,l=c.stack,f=[];var h=function(t){n.error(e,"Nothing to repeat at column "+(t-1))};var p=n.strToChars(e);r=p.length;while(t<r){a=p[t++];switch(a){case"\\":a=p[t++];switch(a){case"b":l.push(o.wordBoundary());break;case"B":l.push(o.nonWordBoundary());break;case"w":l.push(s.words());break;case"W":l.push(s.notWords());break;case"d":l.push(s.ints());break;case"D":l.push(s.notInts());break;case"s":l.push(s.whitespace());break;case"S":l.push(s.notWhitespace());break;default:if(/\d/.test(a)){l.push({type:i.REFERENCE,value:parseInt(a,10)})}else{l.push({type:i.CHAR,value:a.charCodeAt(0)})}}break;case"^":l.push(o.begin());break;case"$":l.push(o.end());break;case"[":var d;if(p[t]==="^"){d=true;t++}else{d=false}var m=n.tokenizeClass(p.slice(t),e);t+=m[1];l.push({type:i.SET,set:m[0],not:d});break;case".":l.push(s.anyChar());break;case"(":var y={type:i.GROUP,stack:[],remember:true};a=p[t];if(a==="?"){a=p[t+1];t+=2;if(a==="="){y.followedBy=true}else if(a==="!"){y.notFollowedBy=true}else if(a!==":"){n.error(e,"Invalid group, character '"+a+"' after '?' at column "+(t-1))}y.remember=false}l.push(y);f.push(u);u=y;l=y.stack;break;case")":if(f.length===0){n.error(e,"Unmatched ) at column "+(t-1))}u=f.pop();l=u.options?u.options[u.options.length-1]:u.stack;break;case"|":if(!u.options){u.options=[u.stack];delete u.stack}var v=[];u.options.push(v);l=v;break;case"{":var g=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),b,w;if(g!==null){if(l.length===0){h(t)}b=parseInt(g[1],10);w=g[2]?g[3]?parseInt(g[3],10):Infinity:b;t+=g[0].length;l.push({type:i.REPETITION,min:b,max:w,value:l.pop()})}else{l.push({type:i.CHAR,value:123})}break;case"?":if(l.length===0){h(t)}l.push({type:i.REPETITION,min:0,max:1,value:l.pop()});break;case"+":if(l.length===0){h(t)}l.push({type:i.REPETITION,min:1,max:Infinity,value:l.pop()});break;case"*":if(l.length===0){h(t)}l.push({type:i.REPETITION,min:0,max:Infinity,value:l.pop()});break;default:l.push({type:i.CHAR,value:a.charCodeAt(0)})}}if(f.length!==0){n.error(e,"Unterminated group")}return c};e.exports.types=i},4162:(e,t,r)=>{var n=r(8349);t.wordBoundary=function(){return{type:n.POSITION,value:"b"}};t.nonWordBoundary=function(){return{type:n.POSITION,value:"B"}};t.begin=function(){return{type:n.POSITION,value:"^"}};t.end=function(){return{type:n.POSITION,value:"$"}}},6125:(e,t,r)=>{var n=r(8349);var i=function(){return[{type:n.RANGE,from:48,to:57}]};var s=function(){return[{type:n.CHAR,value:95},{type:n.RANGE,from:97,to:122},{type:n.RANGE,from:65,to:90}].concat(i())};var o=function(){return[{type:n.CHAR,value:9},{type:n.CHAR,value:10},{type:n.CHAR,value:11},{type:n.CHAR,value:12},{type:n.CHAR,value:13},{type:n.CHAR,value:32},{type:n.CHAR,value:160},{type:n.CHAR,value:5760},{type:n.CHAR,value:6158},{type:n.CHAR,value:8192},{type:n.CHAR,value:8193},{type:n.CHAR,value:8194},{type:n.CHAR,value:8195},{type:n.CHAR,value:8196},{type:n.CHAR,value:8197},{type:n.CHAR,value:8198},{type:n.CHAR,value:8199},{type:n.CHAR,value:8200},{type:n.CHAR,value:8201},{type:n.CHAR,value:8202},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233},{type:n.CHAR,value:8239},{type:n.CHAR,value:8287},{type:n.CHAR,value:12288},{type:n.CHAR,value:65279}]};var a=function(){return[{type:n.CHAR,value:10},{type:n.CHAR,value:13},{type:n.CHAR,value:8232},{type:n.CHAR,value:8233}]};t.words=function(){return{type:n.SET,set:s(),not:false}};t.notWords=function(){return{type:n.SET,set:s(),not:true}};t.ints=function(){return{type:n.SET,set:i(),not:false}};t.notInts=function(){return{type:n.SET,set:i(),not:true}};t.whitespace=function(){return{type:n.SET,set:o(),not:false}};t.notWhitespace=function(){return{type:n.SET,set:o(),not:true}};t.anyChar=function(){return{type:n.SET,set:a(),not:true}}},8349:e=>{e.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}},9152:(e,t,r)=>{var n=r(8349);var i=r(6125);var s="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?";var o={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(e){var t=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g;e=e.replace(t,function(e,t,r,n,i,a,c,u){if(r){return e}var l=t?8:n?parseInt(n,16):i?parseInt(i,16):a?parseInt(a,8):c?s.indexOf(c):o[u];var f=String.fromCharCode(l);if(/[\[\]{}\^$.|?*+()]/.test(f)){f="\\"+f}return f});return e};t.tokenizeClass=function(e,r){var s=[];var o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g;var a,c;while((a=o.exec(e))!=null){if(a[1]){s.push(i.words())}else if(a[2]){s.push(i.ints())}else if(a[3]){s.push(i.whitespace())}else if(a[4]){s.push(i.notWords())}else if(a[5]){s.push(i.notInts())}else if(a[6]){s.push(i.notWhitespace())}else if(a[7]){s.push({type:n.RANGE,from:(a[8]||a[9]).charCodeAt(0),to:a[10].charCodeAt(0)})}else if(c=a[12]){s.push({type:n.CHAR,value:c.charCodeAt(0)})}else{return[s,o.lastIndex]}}t.error(r,"Unterminated character class")};t.error=function(e,t){throw new SyntaxError("Invalid regular expression: /"+e+"/: "+t)}},9356:(e,t,r)=>{e.exports=r(403)},403:(e,t,r)=>{var n=r(3652);t.operation=function(e){var r=t.timeouts(e);return new n(r,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};t.timeouts=function(e){if(e instanceof Array){return[].concat(e)}var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:Infinity,randomize:false};for(var r in e){t[r]=e[r]}if(t.minTimeout>t.maxTimeout){throw new Error("minTimeout is greater than maxTimeout")}var n=[];for(var i=0;i<t.retries;i++){n.push(this.createTimeout(i,t))}if(e&&e.forever&&!n.length){n.push(this.createTimeout(i,t))}n.sort(function(e,t){return e-t});return n};t.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1;var n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));n=Math.min(n,t.maxTimeout);return n};t.wrap=function(e,r,n){if(r instanceof Array){n=r;r=null}if(!n){n=[];for(var i in e){if(typeof e[i]==="function"){n.push(i)}}}for(var s=0;s<n.length;s++){var o=n[s];var a=e[o];e[o]=function retryWrapper(n){var i=t.operation(r);var s=Array.prototype.slice.call(arguments,1);var o=s.pop();s.push(function(e){if(i.retry(e)){return}if(e){arguments[0]=i.mainError()}o.apply(this,arguments)});i.attempt(function(){n.apply(e,s)})}.bind(e,a);e[o].options=r}}},3652:e=>{function RetryOperation(e,t){if(typeof t==="boolean"){t={forever:t}}this._originalTimeouts=JSON.parse(JSON.stringify(e));this._timeouts=e;this._options=t||{};this._maxRetryTime=t&&t.maxRetryTime||Infinity;this._fn=null;this._errors=[];this._attempts=1;this._operationTimeout=null;this._operationTimeoutCb=null;this._timeout=null;this._operationStart=null;if(this._options.forever){this._cachedTimeouts=this._timeouts.slice(0)}}e.exports=RetryOperation;RetryOperation.prototype.reset=function(){this._attempts=1;this._timeouts=this._originalTimeouts};RetryOperation.prototype.stop=function(){if(this._timeout){clearTimeout(this._timeout)}this._timeouts=[];this._cachedTimeouts=null};RetryOperation.prototype.retry=function(e){if(this._timeout){clearTimeout(this._timeout)}if(!e){return false}var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime){this._errors.unshift(new Error("RetryOperation timeout occurred"));return false}this._errors.push(e);var r=this._timeouts.shift();if(r===undefined){if(this._cachedTimeouts){this._errors.splice(this._errors.length-1,this._errors.length);this._timeouts=this._cachedTimeouts.slice(0);r=this._timeouts.shift()}else{return false}}var n=this;var i=setTimeout(function(){n._attempts++;if(n._operationTimeoutCb){n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout);if(n._options.unref){n._timeout.unref()}}n._fn(n._attempts)},r);if(this._options.unref){i.unref()}return true};RetryOperation.prototype.attempt=function(e,t){this._fn=e;if(t){if(t.timeout){this._operationTimeout=t.timeout}if(t.cb){this._operationTimeoutCb=t.cb}}var r=this;if(this._operationTimeoutCb){this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)}this._operationStart=(new Date).getTime();this._fn(this._attempts)};RetryOperation.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated");this.attempt(e)};RetryOperation.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated");this.attempt(e)};RetryOperation.prototype.start=RetryOperation.prototype.try;RetryOperation.prototype.errors=function(){return this._errors};RetryOperation.prototype.attempts=function(){return this._attempts};RetryOperation.prototype.mainError=function(){if(this._errors.length===0){return null}var e={};var t=null;var r=0;for(var n=0;n<this._errors.length;n++){var i=this._errors[n];var s=i.message;var o=(e[s]||0)+1;e[s]=o;if(o>=r){t=i;r=o}}return t}},3118:(e,t,r)=>{var n=r(4293);var i=n.Buffer;function copyProps(e,t){for(var r in e){t[r]=e[r]}}if(i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow){e.exports=n}else{copyProps(n,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,r){return i(e,t,r)}SafeBuffer.prototype=Object.create(i.prototype);copyProps(i,SafeBuffer);SafeBuffer.from=function(e,t,r){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return i(e,t,r)};SafeBuffer.alloc=function(e,t,r){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var n=i(e);if(t!==undefined){if(typeof r==="string"){n.fill(t,r)}else{n.fill(t)}}else{n.fill(0)}return n};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return i(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return n.SlowBuffer(e)}},8589:(e,t,r)=>{var n=r(5961);var i=n.types;e.exports=function(e,t){if(!t)t={};var r=t.limit===undefined?25:t.limit;if(isRegExp(e))e=e.source;else if(typeof e!=="string")e=String(e);try{e=n(e)}catch(e){return false}var s=0;return function walk(e,t){if(e.type===i.REPETITION){t++;s++;if(t>1)return false;if(s>r)return false}if(e.options){for(var n=0,o=e.options.length;n<o;n++){var a=walk({stack:e.options[n]},t);if(!a)return false}}var c=e.stack||e.value&&e.value.stack;if(!c)return true;for(var n=0;n<c.length;n++){var a=walk(c[n],t);if(!a)return false}return true}(e,0)};function isRegExp(e){return{}.toString.call(e)==="[object RegExp]"}},4927:(e,t,r)=>{"use strict";var n=r(4178);var i=r(2533);var s=r(370);var o=r(7242);e.exports=function(e,t,r){if(!o(e)){return e}if(Array.isArray(t)){t=[].concat.apply([],t).join(".")}if(typeof t!=="string"){return e}var a=n(t,{sep:".",brackets:true}).filter(isValidKey);var c=a.length;var u=-1;var l=e;while(++u<c){var f=a[u];if(u!==c-1){if(!o(l[f])){l[f]={}}l=l[f];continue}if(s(l[f])&&s(r)){l[f]=i({},l[f],r)}else{l[f]=r}}return e};function isValidKey(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}},370:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},4970:(e,t,r)=>{"use strict";var n=r(1504);e.exports=function(e){var t=e.match(n);if(!t){return null}var r=t[0].replace(/#! ?/,"").split(" ");var i=r[0].split("/").pop();var s=r[1];return i==="env"?s:i+(s?" "+s:"")}},1504:e=>{"use strict";e.exports=/^#!.*/},332:e=>{"use strict";const t="";const r=`${t}[`;const n="";const i={to(e,t){if(!t)return`${r}${e+1}G`;return`${r}${t+1};${e+1}H`},move(e,t){let n="";if(e<0)n+=`${r}${-e}D`;else if(e>0)n+=`${r}${e}C`;if(t<0)n+=`${r}${-t}A`;else if(t>0)n+=`${r}${t}B`;return n},up:(e=1)=>`${r}${e}A`,down:(e=1)=>`${r}${e}B`,forward:(e=1)=>`${r}${e}C`,backward:(e=1)=>`${r}${e}D`,nextLine:(e=1)=>`${r}E`.repeat(e),prevLine:(e=1)=>`${r}F`.repeat(e),left:`${r}G`,hide:`${r}?25l`,show:`${r}?25h`,save:`${t}7`,restore:`${t}8`};const s={up:(e=1)=>`${r}S`.repeat(e),down:(e=1)=>`${r}T`.repeat(e)};const o={screen:`${r}2J`,up:(e=1)=>`${r}1J`.repeat(e),down:(e=1)=>`${r}J`.repeat(e),line:`${r}2K`,lineEnd:`${r}K`,lineStart:`${r}1K`,lines(e){let t="";for(let r=0;r<e;r++)t+=this.line+(r<e-1?i.up():"");if(e)t+=i.left;return t}};e.exports={cursor:i,scroll:s,erase:o,beep:n}},6227:(e,t,r)=>{"use strict";var n=r(7328);var i=r(8954);var s=r(118);var o;function Node(e,t,r){if(typeof t!=="string"){r=t;t=null}i(this,"parent",r);i(this,"isNode",true);i(this,"expect",null);if(typeof t!=="string"&&n(e)){lazyKeys();var s=Object.keys(e);for(var a=0;a<s.length;a++){var c=s[a];if(o.indexOf(c)===-1){this[c]=e[c]}}}else{this.type=t;this.val=e}}Node.isNode=function(e){return s.isNode(e)};Node.prototype.define=function(e,t){i(this,e,t);return this};Node.prototype.isEmpty=function(e){return s.isEmpty(this,e)};Node.prototype.push=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");i(e,"parent",this);this.nodes=this.nodes||[];return this.nodes.push(e)};Node.prototype.unshift=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");i(e,"parent",this);this.nodes=this.nodes||[];return this.nodes.unshift(e)};Node.prototype.pop=function(){return this.nodes&&this.nodes.pop()};Node.prototype.shift=function(){return this.nodes&&this.nodes.shift()};Node.prototype.remove=function(e){assert(Node.isNode(e),"expected node to be an instance of Node");this.nodes=this.nodes||[];var t=e.index;if(t!==-1){e.index=-1;return this.nodes.splice(t,1)}return null};Node.prototype.find=function(e){return s.findNode(this.nodes,e)};Node.prototype.isType=function(e){return s.isType(this,e)};Node.prototype.hasType=function(e){return s.hasType(this,e)};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(e){i(this,"idx",e)},get:function(){if(!Array.isArray(this.siblings)){return-1}var e=this.idx!==-1?this.siblings[this.idx]:null;if(e!==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?s.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(!o){o=Object.getOwnPropertyNames(Node.prototype)}}function assert(e,t){if(!e)throw new Error(t)}t=e.exports=Node},8954:(e,t,r)=>{"use strict";var n=r(5721);e.exports=function defineProperty(e,t,r){if(typeof e!=="object"&&typeof e!=="function"){throw new TypeError("expected an object or function.")}if(typeof t!=="string"){throw new TypeError("expected `prop` to be a string.")}if(n(r)&&("set"in r||"get"in r)){return Object.defineProperty(e,t,r)}return Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}},118:(e,t,r)=>{"use strict";var n=r(5563);var i=e.exports;i.isNode=function(e){return n(e)==="object"&&e.isNode===true};i.noop=function(e){append(this,"",e)};i.identity=function(e){append(this,e.val,e)};i.append=function(e){return function(t){append(this,e,t)}};i.toNoop=function(e,t){if(t){e.nodes=t}else{delete e.nodes;e.type="text";e.val=""}};i.visit=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected a visitor function");t(e);return e.nodes?i.mapVisit(e,t):e};i.mapVisit=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");assert(isArray(e.nodes),"expected node.nodes to be an array");assert(isFunction(t),"expected a visitor function");for(var r=0;r<e.nodes.length;r++){i.visit(e.nodes[r],t)}return e};i.addOpen=function(e,t,r,n){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");if(typeof r==="function"){n=r;r=""}if(typeof n==="function"&&!n(e))return;var s=new t({type:e.type+".open",val:r});var o=e.unshift||e.unshiftNode;if(typeof o==="function"){o.call(e,s)}else{i.unshiftNode(e,s)}return s};i.addClose=function(e,t,r,n){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");if(typeof r==="function"){n=r;r=""}if(typeof n==="function"&&!n(e))return;var s=new t({type:e.type+".close",val:r});var o=e.push||e.pushNode;if(typeof o==="function"){o.call(e,s)}else{i.pushNode(e,s)}return s};i.wrapNodes=function(e,t,r){assert(i.isNode(e),"expected node to be an instance of Node");assert(isFunction(t),"expected Node to be a constructor function");i.addOpen(e,t,r);i.addClose(e,t,r);return e};i.pushNode=function(e,t){assert(i.isNode(e),"expected parent node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");t.define("parent",e);e.nodes=e.nodes||[];e.nodes.push(t);return t};i.unshiftNode=function(e,t){assert(i.isNode(e),"expected parent node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");t.define("parent",e);e.nodes=e.nodes||[];e.nodes.unshift(t)};i.popNode=function(e){assert(i.isNode(e),"expected node to be an instance of Node");if(typeof e.pop==="function"){return e.pop()}return e.nodes&&e.nodes.pop()};i.shiftNode=function(e){assert(i.isNode(e),"expected node to be an instance of Node");if(typeof e.shift==="function"){return e.shift()}return e.nodes&&e.nodes.shift()};i.removeNode=function(e,t){assert(i.isNode(e),"expected parent.node to be an instance of Node");assert(i.isNode(t),"expected node to be an instance of Node");if(!e.nodes){return null}if(typeof e.remove==="function"){return e.remove(t)}var r=e.nodes.indexOf(t);if(r!==-1){return e.nodes.splice(r,1)}};i.isType=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");switch(n(t)){case"array":var r=t.slice();for(var s=0;s<r.length;s++){if(i.isType(e,r[s])){return true}}return false;case"string":return e.type===t;case"regexp":return t.test(e.type);default:{throw new TypeError('expected "type" to be an array, string or regexp')}}};i.hasType=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");if(!Array.isArray(e.nodes))return false;for(var r=0;r<e.nodes.length;r++){if(i.isType(e.nodes[r],t)){return true}}return false};i.firstOfType=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(i.isType(n,t)){return n}}};i.findNode=function(e,t){if(!Array.isArray(e)){return null}if(typeof t==="number"){return e[t]}return i.firstOfType(e,t)};i.isOpen=function(e){assert(i.isNode(e),"expected node to be an instance of Node");return e.type.slice(-5)===".open"};i.isClose=function(e){assert(i.isNode(e),"expected node to be an instance of Node");return e.type.slice(-6)===".close"};i.hasOpen=function(e){assert(i.isNode(e),"expected node to be an instance of Node");var t=e.first||e.nodes?e.nodes[0]:null;if(i.isNode(t)){return t.type===e.type+".open"}return false};i.hasClose=function(e){assert(i.isNode(e),"expected node to be an instance of Node");var t=e.last||e.nodes?e.nodes[e.nodes.length-1]:null;if(i.isNode(t)){return t.type===e.type+".close"}return false};i.hasOpenAndClose=function(e){return i.hasOpen(e)&&i.hasClose(e)};i.addType=function(e,t){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");var r=t.parent?t.parent.type:t.type.replace(/\.open$/,"");if(!e.hasOwnProperty("inside")){e.inside={}}if(!e.inside.hasOwnProperty(r)){e.inside[r]=[]}var n=e.inside[r];n.push(t);return n};i.removeType=function(e,t){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");var r=t.parent?t.parent.type:t.type.replace(/\.close$/,"");if(e.inside.hasOwnProperty(r)){return e.inside[r].pop()}};i.isEmpty=function(e,t){assert(i.isNode(e),"expected node to be an instance of Node");if(!Array.isArray(e.nodes)){if(e.type!=="text"){return true}if(typeof t==="function"){return t(e,e.parent)}return!i.trim(e.val)}for(var r=0;r<e.nodes.length;r++){var n=e.nodes[r];if(i.isOpen(n)||i.isClose(n)){continue}if(!i.isEmpty(n,t)){return false}}return true};i.isInsideType=function(e,t){assert(isObject(e),"expected state to be an object");assert(isString(t),"expected type to be a string");if(!e.hasOwnProperty("inside")){return false}if(!e.inside.hasOwnProperty(t)){return false}return e.inside[t].length>0};i.isInside=function(e,t,r){assert(i.isNode(t),"expected node to be an instance of Node");assert(isObject(e),"expected state to be an object");if(Array.isArray(r)){for(var s=0;s<r.length;s++){if(i.isInside(e,t,r[s])){return true}}return false}var o=t.parent;if(typeof r==="string"){return o&&o.type===r||i.isInsideType(e,r)}if(n(r)==="regexp"){if(o&&o.type&&r.test(o.type)){return true}var a=Object.keys(e.inside);var c=a.length;var u=-1;while(++u<c){var l=a[u];var f=e.inside[l];if(Array.isArray(f)&&f.length!==0&&r.test(l)){return true}}}return false};i.last=function(e,t){return e[e.length-(t||1)]};i.arrayify=function(e){if(typeof e==="string"&&e!==""){return[e]}if(!Array.isArray(e)){return[]}return e};i.stringify=function(e){return i.arrayify(e).join(",")};i.trim=function(e){return typeof e==="string"?e.trim():""};function isObject(e){return n(e)==="object"}function isString(e){return typeof e==="string"}function isFunction(e){return typeof e==="function"}function isArray(e){return Array.isArray(e)}function append(e,t,r){if(typeof e.append!=="function"){return e.emit(t,r)}return e.append(t,r)}function assert(e,t){if(!e)throw new Error(t)}},1769:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},5563:(e,t,r)=>{var n=r(1769);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},4253:(e,t,r)=>{"use strict";var n=r(2568);var i=r(3018);var s=r(9788);var o=r(1036);var a=r(3331);var c={};var u={};function Snapdragon(e){n.call(this,null,e);this.options=a.extend({source:"string"},this.options);this.compiler=new s(this.options);this.parser=new o(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}})}n.extend(Snapdragon);Snapdragon.prototype.capture=function(){return this.parser.capture.apply(this.parser,arguments)};Snapdragon.prototype.use=function(e){e.call(this,this);return this};Snapdragon.prototype.parse=function(e,t){this.options=a.extend({},this.options,t);var r=this.parser.parse(e,this.options);i(r,"parser",this.parser);return r};Snapdragon.prototype.compile=function(e,t){this.options=a.extend({},this.options,t);var r=this.compiler.compile(e,this.options);i(r,"compiler",this.compiler);return r};e.exports=Snapdragon;e.exports.Compiler=s;e.exports.Parser=o},9788:(e,t,r)=>{"use strict";var n=r(4687);var i=r(3018);var s=r(4950)("snapdragon:compiler");var o=r(3331);function Compiler(e,t){s("initializing",__filename);this.options=o.extend({source:"string"},e);this.state=t||{};this.compilers={};this.output="";this.set("eos",function(e){return this.emit(e.val,e)});this.set("noop",function(e){return this.emit(e.val,e)});this.set("bos",function(e){return this.emit(e.val,e)});n(this)}Compiler.prototype={error:function(e,t){var r=t.position||{start:{column:0}};var n=this.options.source+" column:"+r.start.column+": "+e;var i=new Error(n);i.reason=e;i.column=r.start.column;i.source=this.pattern;if(this.options.silent){this.errors.push(i)}else{throw i}},define:function(e,t){i(this,e,t);return this},emit:function(e,t){this.output+=e;return e},set:function(e,t){this.compilers[e]=t;return this},get:function(e){return this.compilers[e]},prev:function(e){return this.ast.nodes[this.idx-(e||1)]||{type:"bos",val:""}},next:function(e){return this.ast.nodes[this.idx+(e||1)]||{type:"eos",val:""}},visit:function(e,t,r){var n=this.compilers[e.type];this.idx=r;if(typeof n!=="function"){throw this.error('compiler "'+e.type+'" is not registered',e)}return n.call(this,e,t,r)},mapVisit:function(e){if(!Array.isArray(e)){throw new TypeError("expected an array")}var t=e.length;var r=-1;while(++r<t){this.visit(e[r],e,r)}return this},compile:function(e,t){var n=o.extend({},this.options,t);this.ast=e;this.parsingErrors=this.ast.errors;this.output="";if(n.sourcemap){var i=r(2951);i(this);this.mapVisit(this.ast.nodes);this.applySourceMaps();this.map=n.sourcemap==="generator"?this.map:this.map.toJSON();return this}this.mapVisit(this.ast.nodes);return this}};e.exports=Compiler},1036:(e,t,r)=>{"use strict";var n=r(4687);var i=r(1669);var s=r(2219);var o=r(3018);var a=r(4950)("snapdragon:parser");var c=r(9516);var u=r(3331);function Parser(e){a("initializing",__filename);this.options=u.extend({source:"string"},e);this.init(this.options);n(this)}Parser.prototype={constructor:Parser,init:function(e){this.orig="";this.input="";this.parsed="";this.column=1;this.line=1;this.regex=new s;this.errors=this.errors||[];this.parsers=this.parsers||{};this.types=this.types||[];this.sets=this.sets||{};this.fns=this.fns||[];this.currentType="root";var t=this.position();this.bos=t({type:"bos",val:""});this.ast={type:"root",errors:this.errors,nodes:[this.bos]};o(this.bos,"parent",this.ast);this.nodes=[this.ast];this.count=0;this.setCount=0;this.stack=[]},error:function(e,t){var r=t.position||{start:{column:0,line:0}};var n=r.start.line;var i=r.start.column;var s=this.options.source;var o=s+" <line:"+n+" column:"+i+">: "+e;var a=new Error(o);a.source=s;a.reason=e;a.pos=r;if(this.options.silent){this.errors.push(a)}else{throw a}},define:function(e,t){o(this,e,t);return this},position:function(){var e={line:this.line,column:this.column};var t=this;return function(r){o(r,"position",new c(e,t));return r}},set:function(e,t){if(this.types.indexOf(e)===-1){this.types.push(e)}this.parsers[e]=t.bind(this);return this},get:function(e){return this.parsers[e]},push:function(e,t){this.sets[e]=this.sets[e]||[];this.count++;this.stack.push(t);return this.sets[e].push(t)},pop:function(e){this.sets[e]=this.sets[e]||[];this.count--;this.stack.pop();return this.sets[e].pop()},isInside:function(e){this.sets[e]=this.sets[e]||[];return this.sets[e].length>0},isType:function(e,t){return e&&e.type===t},prev:function(e){return this.stack.length>0?u.last(this.stack,e):u.last(this.nodes,e)},consume:function(e){this.input=this.input.substr(e)},updatePosition:function(e,t){var r=e.match(/\n/g);if(r)this.line+=r.length;var n=e.lastIndexOf("\n");this.column=~n?t-n:this.column+t;this.parsed+=e;this.consume(t)},match:function(e){var t=e.exec(this.input);if(t){this.updatePosition(t[0],t[0].length);return t}},capture:function(e,t){if(typeof t==="function"){return this.set.apply(this,arguments)}this.regex.set(e,t);this.set(e,function(){var r=this.parsed;var n=this.position();var i=this.match(t);if(!i||!i[0])return;var s=this.prev();var a=n({type:e,val:i[0],parsed:r,rest:this.input});if(i[1]){a.inner=i[1]}o(a,"inside",this.stack.length>0);o(a,"parent",s);s.nodes.push(a)}.bind(this));return this},capturePair:function(e,t,r,n){this.sets[e]=this.sets[e]||[];this.set(e+".open",function(){var r=this.parsed;var i=this.position();var s=this.match(t);if(!s||!s[0])return;var a=s[0];this.setCount++;this.specialChars=true;var c=i({type:e+".open",val:a,rest:this.input});if(typeof s[1]!=="undefined"){c.inner=s[1]}var u=this.prev();var l=i({type:e,nodes:[c]});o(l,"rest",this.input);o(l,"parsed",r);o(l,"prefix",s[1]);o(l,"parent",u);o(c,"parent",l);if(typeof n==="function"){n.call(this,c,l)}this.push(e,l);u.nodes.push(l)});this.set(e+".close",function(){var t=this.position();var n=this.match(r);if(!n||!n[0])return;var i=this.pop(e);var s=t({type:e+".close",rest:this.input,suffix:n[1],val:n[0]});if(!this.isType(i,e)){if(this.options.strict){throw new Error('missing opening "'+e+'"')}this.setCount--;s.escaped=true;return s}if(s.suffix==="\\"){i.escaped=true;s.escaped=true}i.nodes.push(s);o(s,"parent",i)});return this},eos:function(){var e=this.position();if(this.input)return;var t=this.prev();while(t.type!=="root"&&!t.visited){if(this.options.strict===true){throw new SyntaxError("invalid syntax:"+i.inspect(t,null,2))}if(!hasDelims(t)){t.parent.escaped=true;t.escaped=true}visit(t,function(e){if(!hasDelims(e.parent)){e.parent.escaped=true;e.escaped=true}});t=t.parent}var r=e({type:"eos",val:this.append||""});o(r,"parent",this.ast);return r},next:function(){var e=this.parsed;var t=this.types.length;var r=-1;var n;while(++r<t){if(n=this.parsers[this.types[r]].call(this)){o(n,"rest",this.input);o(n,"parsed",e);this.last=n;return n}}},parse:function(e){if(typeof e!=="string"){throw new TypeError("expected a string")}this.init(this.options);this.orig=e;this.input=e;var t=this;function parse(){e=t.input;var r=t.next();if(r){var n=t.prev();if(n){o(r,"parent",n);if(n.nodes){n.nodes.push(r)}}if(t.sets.hasOwnProperty(n.type)){t.currentType=n.type}}if(t.input&&e===t.input){throw new Error('no parsers registered for: "'+t.input.slice(0,5)+'"')}}while(this.input)parse();if(this.stack.length&&this.options.strict){var r=this.stack.pop();throw this.error("missing opening "+r.type+': "'+this.orig+'"')}var n=this.eos();var i=this.prev();if(i.type!=="eos"){this.ast.nodes.push(n)}return this.ast}};function visit(e,t){if(!e.visited){o(e,"visited",true);return e.nodes?mapVisit(e.nodes,t):t(e)}return e}function mapVisit(e,t){var r=e.length;var n=-1;while(++n<r){visit(e[n],t)}}function hasOpen(e){return e.nodes&&e.nodes[0].type===e.type+".open"}function hasClose(e){return e.nodes&&u.last(e.nodes).type===e.type+".close"}function hasDelims(e){return hasOpen(e)&&hasClose(e)}e.exports=Parser},9516:(e,t,r)=>{"use strict";var n=r(3018);e.exports=function Position(e,t){this.start=e;this.end={line:t.line,column:t.column};n(this,"content",t.orig);n(this,"source",t.options.source)}},2951:(e,t,r)=>{"use strict";var n=r(5747);var i=r(5622);var s=r(3018);var o=r(3331);e.exports=mixin;function mixin(e){s(e,"_comment",e.comment);e.map=new o.SourceMap.SourceMapGenerator;e.position={line:1,column:1};e.content={};e.files={};for(var r in t){s(e,r,t[r])}}t.updatePosition=function(e){var t=e.match(/\n/g);if(t)this.position.line+=t.length;var r=e.lastIndexOf("\n");this.position.column=~r?e.length-r:this.position.column+e.length};t.emit=function(e,t){var r=t.position||{};var n=r.source;if(n){if(r.filepath){n=o.unixify(r.filepath)}this.map.addMapping({source:n,generated:{line:this.position.line,column:Math.max(this.position.column-1,0)},original:{line:r.start.line,column:r.start.column-1}});if(r.content){this.addContent(n,r)}if(r.filepath){this.addFile(n,r)}this.updatePosition(e);this.output+=e}return e};t.addFile=function(e,t){if(typeof t.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.files,e))return;this.files[e]=t.content};t.addContent=function(e,t){if(typeof t.content!=="string")return;if(Object.prototype.hasOwnProperty.call(this.content,e))return;this.map.setSourceContent(e,t.content)};t.applySourceMaps=function(){Object.keys(this.files).forEach(function(e){var t=this.files[e];this.map.setSourceContent(e,t);if(this.options.inputSourcemaps===true){var r=o.sourceMapResolve.resolveSync(t,e,n.readFileSync);if(r){var s=new o.SourceMap.SourceMapConsumer(r.map);var a=r.sourcesRelativeTo;this.map.applySourceMap(s,e,o.unixify(i.dirname(a)))}}},this)};t.comment=function(e){if(/^# sourceMappingURL=/.test(e.comment)){return this.emit("",e.position)}return this._comment(e)}},3331:(e,t,r)=>{"use strict";t.extend=r(2533);t.SourceMap=r(1290);t.sourceMapResolve=r(5561);t.unixify=function(e){return e.split(/\\+/).join("/")};t.isString=function(e){return e&&typeof e==="string"};t.arrayify=function(e){if(typeof e==="string")return[e];return e?Array.isArray(e)?e:[e]:[]};t.last=function(e,t){return e[e.length-(t||1)]}},9969:(e,t,r)=>{t=e.exports=r(8971);t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:localstorage();t.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+)/)}t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}};function formatArgs(e){var r=this.useColors;e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff);if(!r)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0;var s=0;e[0].replace(/%[a-zA-Z%]/g,function(e){if("%%"===e)return;i++;if("%c"===e){s=i}});e.splice(s,0,n)}function log(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function save(e){try{if(null==e){t.storage.removeItem("debug")}else{t.storage.debug=e}}catch(e){}}function load(){var e;try{e=t.storage.debug}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}t.enable(load());function localstorage(){try{return window.localStorage}catch(e){}}},8971:(e,t,r)=>{t=e.exports=createDebug.debug=createDebug["default"]=createDebug;t.coerce=coerce;t.disable=disable;t.enable=enable;t.enabled=enabled;t.humanize=r(3828);t.names=[];t.skips=[];t.formatters={};var n;function selectColor(e){var r=0,n;for(n in e){r=(r<<5)-r+e.charCodeAt(n);r|=0}return t.colors[Math.abs(r)%t.colors.length]}function createDebug(e){function debug(){if(!debug.enabled)return;var e=debug;var r=+new Date;var i=r-(n||r);e.diff=i;e.prev=n;e.curr=r;n=r;var s=new Array(arguments.length);for(var o=0;o<s.length;o++){s[o]=arguments[o]}s[0]=t.coerce(s[0]);if("string"!==typeof s[0]){s.unshift("%O")}var a=0;s[0]=s[0].replace(/%([a-zA-Z%])/g,function(r,n){if(r==="%%")return r;a++;var i=t.formatters[n];if("function"===typeof i){var o=s[a];r=i.call(e,o);s.splice(a,1);a--}return r});t.formatArgs.call(e,s);var c=debug.log||t.log||console.log.bind(console);c.apply(e,s)}debug.namespace=e;debug.enabled=t.enabled(e);debug.useColors=t.useColors();debug.color=selectColor(e);if("function"===typeof t.init){t.init(debug)}return debug}function enable(e){t.save(e);t.names=[];t.skips=[];var r=(typeof e==="string"?e:"").split(/[\s,]+/);var n=r.length;for(var i=0;i<n;i++){if(!r[i])continue;e=r[i].replace(/\*/g,".*?");if(e[0]==="-"){t.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{t.names.push(new RegExp("^"+e+"$"))}}}function disable(){t.enable("")}function enabled(e){var r,n;for(r=0,n=t.skips.length;r<n;r++){if(t.skips[r].test(e)){return false}}for(r=0,n=t.names.length;r<n;r++){if(t.names[r].test(e)){return true}}return false}function coerce(e){if(e instanceof Error)return e.stack||e.message;return e}},4950:(e,t,r)=>{if(typeof process!=="undefined"&&process.type==="renderer"){e.exports=r(9969)}else{e.exports=r(6459)}},6459:(e,t,r)=>{var n=r(3867);var i=r(1669);t=e.exports=r(8971);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var n=process.env[t];if(/^(yes|on|true|enabled)$/i.test(n))n=true;else if(/^(no|off|false|disabled)$/i.test(n))n=false;else if(n==="null")n=null;else n=Number(n);e[r]=n;return e},{});var s=parseInt(process.env.DEBUG_FD,10)||2;if(1!==s&&2!==s){i.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 o=1===s?process.stdout:2===s?process.stderr:createWritableStdioStream(s);function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(s)}t.formatters.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map(function(e){return e.trim()}).join(" ")};t.formatters.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)};function formatArgs(e){var r=this.namespace;var n=this.useColors;if(n){var i=this.color;var s=" [3"+i+";1m"+r+" "+"";e[0]=s+e[0].split("\n").join("\n"+s);e.push("[3"+i+"m+"+t.humanize(this.diff)+"")}else{e[0]=(new Date).toUTCString()+" "+r+" "+e[0]}}function log(){return o.write(i.format.apply(i,arguments)+"\n")}function save(e){if(null==e){delete process.env.DEBUG}else{process.env.DEBUG=e}}function load(){return process.env.DEBUG}function createWritableStdioStream(e){var t;var i=process.binding("tty_wrap");switch(i.guessHandleType(e)){case"TTY":t=new n.WriteStream(e);t._type="tty";if(t._handle&&t._handle.unref){t._handle.unref()}break;case"FILE":var s=r(5747);t=new s.SyncWriteStream(e,{autoClose:false});t._type="fs";break;case"PIPE":case"TCP":var o=r(1631);t=new o.Socket({fd:e,readable:false,writable:true});t.readable=false;t.read=null;t._type="pipe";if(t._handle&&t._handle.unref){t._handle.unref()}break;default:throw new Error("Implement me. Unknown stream file type!")}t.fd=e;t._isStdio=true;return t}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var n=0;n<r.length;n++){e.inspectOpts[r[n]]=t.inspectOpts[r[n]]}}t.enable(load())},3828:e=>{var t=1e3;var r=t*60;var n=r*60;var i=n*24;var s=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isNaN(e)===false){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!o){return}var a=parseFloat(o[1]);var c=(o[2]||"ms").toLowerCase();switch(c){case"years":case"year":case"yrs":case"yr":case"y":return a*s;case"days":case"day":case"d":return a*i;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return undefined}}function fmtShort(e){if(e>=i){return Math.round(e/i)+"d"}if(e>=n){return Math.round(e/n)+"h"}if(e>=r){return Math.round(e/r)+"m"}if(e>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){return plural(e,i,"day")||plural(e,n,"hour")||plural(e,r,"minute")||plural(e,t,"second")||e+" ms"}function plural(e,t,r){if(e<t){return}if(e<t*1.5){return Math.floor(e/t)+" "+r}return Math.ceil(e/t)+" "+r+"s"}},3781:(e,t,r)=>{var n=r(5480);var i=Object.prototype.hasOwnProperty;var s=typeof Map!=="undefined";function ArraySet(){this._array=[];this._set=s?new Map:Object.create(null)}ArraySet.fromArray=function ArraySet_fromArray(e,t){var r=new ArraySet;for(var n=0,i=e.length;n<i;n++){r.add(e[n],t)}return r};ArraySet.prototype.size=function ArraySet_size(){return s?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet.prototype.add=function ArraySet_add(e,t){var r=s?e:n.toSetString(e);var o=s?this.has(e):i.call(this._set,r);var a=this._array.length;if(!o||t){this._array.push(e)}if(!o){if(s){this._set.set(e,a)}else{this._set[r]=a}}};ArraySet.prototype.has=function ArraySet_has(e){if(s){return this._set.has(e)}else{var t=n.toSetString(e);return i.call(this._set,t)}};ArraySet.prototype.indexOf=function ArraySet_indexOf(e){if(s){var t=this._set.get(e);if(t>=0){return t}}else{var r=n.toSetString(e);if(i.call(this._set,r)){return this._set[r]}}throw new Error('"'+e+'" is not in the set.')};ArraySet.prototype.at=function ArraySet_at(e){if(e>=0&&e<this._array.length){return this._array[e]}throw new Error("No element indexed by "+e)};ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice()};t.I=ArraySet},2787:(e,t,r)=>{var n=r(2794);var i=5;var s=1<<i;var o=s-1;var a=s;function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var t=(e&1)===1;var r=e>>1;return t?-r:r}t.encode=function base64VLQ_encode(e){var t="";var r;var s=toVLQSigned(e);do{r=s&o;s>>>=i;if(s>0){r|=a}t+=n.encode(r)}while(s>0);return t};t.decode=function base64VLQ_decode(e,t,r){var s=e.length;var c=0;var u=0;var l,f;do{if(t>=s){throw new Error("Expected more digits in base 64 VLQ value.")}f=n.decode(e.charCodeAt(t++));if(f===-1){throw new Error("Invalid base64 digit: "+e.charAt(t-1))}l=!!(f&a);f&=o;c=c+(f<<u);u+=i}while(l);r.value=fromVLQSigned(c);r.rest=t}},2794:(e,t)=>{var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&e<r.length){return r[e]}throw new TypeError("Must be between 0 and 63: "+e)};t.decode=function(e){var t=65;var r=90;var n=97;var i=122;var s=48;var o=57;var a=43;var c=47;var u=26;var l=52;if(t<=e&&e<=r){return e-t}if(n<=e&&e<=i){return e-n+u}if(s<=e&&e<=o){return e-s+l}if(e==a){return 62}if(e==c){return 63}return-1}},796:(e,t)=>{t.GREATEST_LOWER_BOUND=1;t.LEAST_UPPER_BOUND=2;function recursiveSearch(e,r,n,i,s,o){var a=Math.floor((r-e)/2)+e;var c=s(n,i[a],true);if(c===0){return a}else if(c>0){if(r-a>1){return recursiveSearch(a,r,n,i,s,o)}if(o==t.LEAST_UPPER_BOUND){return r<i.length?r:-1}else{return a}}else{if(a-e>1){return recursiveSearch(e,a,n,i,s,o)}if(o==t.LEAST_UPPER_BOUND){return a}else{return e<0?-1:e}}}t.search=function search(e,r,n,i){if(r.length===0){return-1}var s=recursiveSearch(-1,r.length,e,r,n,i||t.GREATEST_LOWER_BOUND);if(s<0){return-1}while(s-1>=0){if(n(r[s],r[s-1],true)!==0){break}--s}return s}},6044:(e,t,r)=>{var n=r(5480);function generatedPositionAfter(e,t){var r=e.generatedLine;var i=t.generatedLine;var s=e.generatedColumn;var o=t.generatedColumn;return i>r||i==r&&o>=s||n.compareByGeneratedPositionsInflated(e,t)<=0}function MappingList(){this._array=[];this._sorted=true;this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function MappingList_forEach(e,t){this._array.forEach(e,t)};MappingList.prototype.add=function MappingList_add(e){if(generatedPositionAfter(this._last,e)){this._last=e;this._array.push(e)}else{this._sorted=false;this._array.push(e)}};MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(n.compareByGeneratedPositionsInflated);this._sorted=true}return this._array};t.H=MappingList},2896:(e,t)=>{function swap(e,t,r){var n=e[t];e[t]=e[r];e[r]=n}function randomIntInRange(e,t){return Math.round(e+Math.random()*(t-e))}function doQuickSort(e,t,r,n){if(r<n){var i=randomIntInRange(r,n);var s=r-1;swap(e,i,n);var o=e[n];for(var a=r;a<n;a++){if(t(e[a],o)<=0){s+=1;swap(e,s,a)}}swap(e,s+1,a);var c=s+1;doQuickSort(e,t,r,c-1);doQuickSort(e,t,c+1,n)}}t.U=function(e,t){doQuickSort(e,t,0,e.length-1)}},2421:(e,t,r)=>{var n;var i=r(5480);var s=r(796);var o=r(3781).I;var a=r(2787);var c=r(2896).U;function SourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}return t.sections!=null?new IndexedSourceMapConsumer(t):new BasicSourceMapConsumer(t)}SourceMapConsumer.fromSourceMap=function(e){return BasicSourceMapConsumer.fromSourceMap(e)};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(e,t){var r=e.charAt(t);return r===";"||r===","};SourceMapConsumer.prototype._parseMappings=function SourceMapConsumer_parseMappings(e,t){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(e,t,r){var n=t||null;var s=r||SourceMapConsumer.GENERATED_ORDER;var o;switch(s){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(e){var t=e.source===null?null:this._sources.at(e.source);if(t!=null&&a!=null){t=i.join(a,t)}return{source:t,generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:e.name===null?null:this._names.at(e.name)}},this).forEach(e,n)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function SourceMapConsumer_allGeneratedPositionsFor(e){var t=i.getArg(e,"line");var r={source:i.getArg(e,"source"),originalLine:t,originalColumn:i.getArg(e,"column",0)};if(this.sourceRoot!=null){r.source=i.relative(this.sourceRoot,r.source)}if(!this._sources.has(r.source)){return[]}r.source=this._sources.indexOf(r.source);var n=[];var o=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,s.LEAST_UPPER_BOUND);if(o>=0){var a=this._originalMappings[o];if(e.column===undefined){var c=a.originalLine;while(a&&a.originalLine===c){n.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}else{var u=a.originalColumn;while(a&&a.originalLine===t&&a.originalColumn==u){n.push({line:i.getArg(a,"generatedLine",null),column:i.getArg(a,"generatedColumn",null),lastColumn:i.getArg(a,"lastGeneratedColumn",null)});a=this._originalMappings[++o]}}}return n};t.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=i.getArg(t,"version");var n=i.getArg(t,"sources");var s=i.getArg(t,"names",[]);var a=i.getArg(t,"sourceRoot",null);var c=i.getArg(t,"sourcesContent",null);var u=i.getArg(t,"mappings");var l=i.getArg(t,"file",null);if(r!=this._version){throw new Error("Unsupported version: "+r)}n=n.map(String).map(i.normalize).map(function(e){return a&&i.isAbsolute(a)&&i.isAbsolute(e)?i.relative(a,e):e});this._names=o.fromArray(s.map(String),true);this._sources=o.fromArray(n,true);this.sourceRoot=a;this.sourcesContent=c;this._mappings=u;this.file=l}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.fromSourceMap=function SourceMapConsumer_fromSourceMap(e){var t=Object.create(BasicSourceMapConsumer.prototype);var r=t._names=o.fromArray(e._names.toArray(),true);var n=t._sources=o.fromArray(e._sources.toArray(),true);t.sourceRoot=e._sourceRoot;t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot);t.file=e._file;var s=e._mappings.toArray().slice();var a=t.__generatedMappings=[];var u=t.__originalMappings=[];for(var l=0,f=s.length;l<f;l++){var h=s[l];var p=new Mapping;p.generatedLine=h.generatedLine;p.generatedColumn=h.generatedColumn;if(h.source){p.source=n.indexOf(h.source);p.originalLine=h.originalLine;p.originalColumn=h.originalColumn;if(h.name){p.name=r.indexOf(h.name)}u.push(p)}a.push(p)}c(t.__originalMappings,i.compareByOriginalPositions);return t};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._sources.toArray().map(function(e){return this.sourceRoot!=null?i.join(this.sourceRoot,e):e},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(e,t){var r=1;var n=0;var s=0;var o=0;var u=0;var l=0;var f=e.length;var h=0;var p={};var d={};var m=[];var y=[];var v,g,b,w,S;while(h<f){if(e.charAt(h)===";"){r++;h++;n=0}else if(e.charAt(h)===","){h++}else{v=new Mapping;v.generatedLine=r;for(w=h;w<f;w++){if(this._charIsMappingSeparator(e,w)){break}}g=e.slice(h,w);b=p[g];if(b){h+=g.length}else{b=[];while(h<w){a.decode(e,h,d);S=d.value;h=d.rest;b.push(S)}if(b.length===2){throw new Error("Found a source, but no line and column")}if(b.length===3){throw new Error("Found a source and line, but no column")}p[g]=b}v.generatedColumn=n+b[0];n=v.generatedColumn;if(b.length>1){v.source=u+b[1];u+=b[1];v.originalLine=s+b[2];s=v.originalLine;v.originalLine+=1;v.originalColumn=o+b[3];o=v.originalColumn;if(b.length>4){v.name=l+b[4];l+=b[4]}}y.push(v);if(typeof v.originalLine==="number"){m.push(v)}}}c(y,i.compareByGeneratedPositionsDeflated);this.__generatedMappings=y;c(m,i.compareByOriginalPositions);this.__originalMappings=m};BasicSourceMapConsumer.prototype._findMapping=function SourceMapConsumer_findMapping(e,t,r,n,i,o){if(e[r]<=0){throw new TypeError("Line must be greater than or equal to 1, got "+e[r])}if(e[n]<0){throw new TypeError("Column must be greater than or equal to 0, got "+e[n])}return s.search(e,t,i,o)};BasicSourceMapConsumer.prototype.computeColumnSpans=function SourceMapConsumer_computeColumnSpans(){for(var e=0;e<this._generatedMappings.length;++e){var t=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var r=this._generatedMappings[e+1];if(t.generatedLine===r.generatedLine){t.lastGeneratedColumn=r.generatedColumn-1;continue}}t.lastGeneratedColumn=Infinity}};BasicSourceMapConsumer.prototype.originalPositionFor=function SourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=this._findMapping(t,this._generatedMappings,"generatedLine","generatedColumn",i.compareByGeneratedPositionsDeflated,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(r>=0){var n=this._generatedMappings[r];if(n.generatedLine===t.generatedLine){var s=i.getArg(n,"source",null);if(s!==null){s=this._sources.at(s);if(this.sourceRoot!=null){s=i.join(this.sourceRoot,s)}}var o=i.getArg(n,"name",null);if(o!==null){o=this._names.at(o)}return{source:s,line:i.getArg(n,"originalLine",null),column:i.getArg(n,"originalColumn",null),name:o}}}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(e){return e==null})};BasicSourceMapConsumer.prototype.sourceContentFor=function SourceMapConsumer_sourceContentFor(e,t){if(!this.sourcesContent){return null}if(this.sourceRoot!=null){e=i.relative(this.sourceRoot,e)}if(this._sources.has(e)){return this.sourcesContent[this._sources.indexOf(e)]}var r;if(this.sourceRoot!=null&&(r=i.urlParse(this.sourceRoot))){var n=e.replace(/^file:\/\//,"");if(r.scheme=="file"&&this._sources.has(n)){return this.sourcesContent[this._sources.indexOf(n)]}if((!r.path||r.path=="/")&&this._sources.has("/"+e)){return this.sourcesContent[this._sources.indexOf("/"+e)]}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};BasicSourceMapConsumer.prototype.generatedPositionFor=function SourceMapConsumer_generatedPositionFor(e){var t=i.getArg(e,"source");if(this.sourceRoot!=null){t=i.relative(this.sourceRoot,t)}if(!this._sources.has(t)){return{line:null,column:null,lastColumn:null}}t=this._sources.indexOf(t);var r={source:t,originalLine:i.getArg(e,"line"),originalColumn:i.getArg(e,"column")};var n=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",i.compareByOriginalPositions,i.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var s=this._originalMappings[n];if(s.source===r.source){return{line:i.getArg(s,"generatedLine",null),column:i.getArg(s,"generatedColumn",null),lastColumn:i.getArg(s,"lastGeneratedColumn",null)}}}return{line:null,column:null,lastColumn:null}};n=BasicSourceMapConsumer;function IndexedSourceMapConsumer(e){var t=e;if(typeof e==="string"){t=JSON.parse(e.replace(/^\)\]\}'/,""))}var r=i.getArg(t,"version");var n=i.getArg(t,"sections");if(r!=this._version){throw new Error("Unsupported version: "+r)}this._sources=new o;this._names=new o;var s={line:-1,column:0};this._sections=n.map(function(e){if(e.url){throw new Error("Support for url field in sections not implemented.")}var t=i.getArg(e,"offset");var r=i.getArg(t,"line");var n=i.getArg(t,"column");if(r<s.line||r===s.line&&n<s.column){throw new Error("Section offsets must be ordered and non-overlapping.")}s=t;return{generatedOffset:{generatedLine:r+1,generatedColumn:n+1},consumer:new SourceMapConsumer(i.getArg(e,"map"))}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){var e=[];for(var t=0;t<this._sections.length;t++){for(var r=0;r<this._sections[t].consumer.sources.length;r++){e.push(this._sections[t].consumer.sources[r])}}return e}});IndexedSourceMapConsumer.prototype.originalPositionFor=function IndexedSourceMapConsumer_originalPositionFor(e){var t={generatedLine:i.getArg(e,"line"),generatedColumn:i.getArg(e,"column")};var r=s.search(t,this._sections,function(e,t){var r=e.generatedLine-t.generatedOffset.generatedLine;if(r){return r}return e.generatedColumn-t.generatedOffset.generatedColumn});var n=this._sections[r];if(!n){return{source:null,line:null,column:null,name:null}}return n.consumer.originalPositionFor({line:t.generatedLine-(n.generatedOffset.generatedLine-1),column:t.generatedColumn-(n.generatedOffset.generatedLine===t.generatedLine?n.generatedOffset.generatedColumn-1:0),bias:e.bias})};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function IndexedSourceMapConsumer_hasContentsOfAllSources(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function IndexedSourceMapConsumer_sourceContentFor(e,t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var i=n.consumer.sourceContentFor(e,true);if(i){return i}}if(t){return null}else{throw new Error('"'+e+'" is not in the SourceMap.')}};IndexedSourceMapConsumer.prototype.generatedPositionFor=function IndexedSourceMapConsumer_generatedPositionFor(e){for(var t=0;t<this._sections.length;t++){var r=this._sections[t];if(r.consumer.sources.indexOf(i.getArg(e,"source"))===-1){continue}var n=r.consumer.generatedPositionFor(e);if(n){var s={line:n.line+(r.generatedOffset.generatedLine-1),column:n.column+(r.generatedOffset.generatedLine===n.line?r.generatedOffset.generatedColumn-1:0)};return s}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function IndexedSourceMapConsumer_parseMappings(e,t){this.__generatedMappings=[];this.__originalMappings=[];for(var r=0;r<this._sections.length;r++){var n=this._sections[r];var s=n.consumer._generatedMappings;for(var o=0;o<s.length;o++){var a=s[o];var u=n.consumer._sources.at(a.source);if(n.consumer.sourceRoot!==null){u=i.join(n.consumer.sourceRoot,u)}this._sources.add(u);u=this._sources.indexOf(u);var l=n.consumer._names.at(a.name);this._names.add(l);l=this._names.indexOf(l);var f={source:u,generatedLine:a.generatedLine+(n.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(n.generatedOffset.generatedLine===a.generatedLine?n.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(f);if(typeof f.originalLine==="number"){this.__originalMappings.push(f)}}}c(this.__generatedMappings,i.compareByGeneratedPositionsDeflated);c(this.__originalMappings,i.compareByOriginalPositions)};n=IndexedSourceMapConsumer},8831:(e,t,r)=>{var n=r(2787);var i=r(5480);var s=r(3781).I;var o=r(6044).H;function SourceMapGenerator(e){if(!e){e={}}this._file=i.getArg(e,"file",null);this._sourceRoot=i.getArg(e,"sourceRoot",null);this._skipValidation=i.getArg(e,"skipValidation",false);this._sources=new s;this._names=new s;this._mappings=new o;this._sourcesContents=null}SourceMapGenerator.prototype._version=3;SourceMapGenerator.fromSourceMap=function SourceMapGenerator_fromSourceMap(e){var t=e.sourceRoot;var r=new SourceMapGenerator({file:e.file,sourceRoot:t});e.eachMapping(function(e){var n={generated:{line:e.generatedLine,column:e.generatedColumn}};if(e.source!=null){n.source=e.source;if(t!=null){n.source=i.relative(t,n.source)}n.original={line:e.originalLine,column:e.originalColumn};if(e.name!=null){n.name=e.name}}r.addMapping(n)});e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){r.setSourceContent(t,n)}});return r};SourceMapGenerator.prototype.addMapping=function SourceMapGenerator_addMapping(e){var t=i.getArg(e,"generated");var r=i.getArg(e,"original",null);var n=i.getArg(e,"source",null);var s=i.getArg(e,"name",null);if(!this._skipValidation){this._validateMapping(t,r,n,s)}if(n!=null){n=String(n);if(!this._sources.has(n)){this._sources.add(n)}}if(s!=null){s=String(s);if(!this._names.has(s)){this._names.add(s)}}this._mappings.add({generatedLine:t.line,generatedColumn:t.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:n,name:s})};SourceMapGenerator.prototype.setSourceContent=function SourceMapGenerator_setSourceContent(e,t){var r=e;if(this._sourceRoot!=null){r=i.relative(this._sourceRoot,r)}if(t!=null){if(!this._sourcesContents){this._sourcesContents=Object.create(null)}this._sourcesContents[i.toSetString(r)]=t}else if(this._sourcesContents){delete this._sourcesContents[i.toSetString(r)];if(Object.keys(this._sourcesContents).length===0){this._sourcesContents=null}}};SourceMapGenerator.prototype.applySourceMap=function SourceMapGenerator_applySourceMap(e,t,r){var n=t;if(t==null){if(e.file==null){throw new Error("SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, "+'or the source map\'s "file" property. Both were omitted.')}n=e.file}var o=this._sourceRoot;if(o!=null){n=i.relative(o,n)}var a=new s;var c=new s;this._mappings.unsortedForEach(function(t){if(t.source===n&&t.originalLine!=null){var s=e.originalPositionFor({line:t.originalLine,column:t.originalColumn});if(s.source!=null){t.source=s.source;if(r!=null){t.source=i.join(r,t.source)}if(o!=null){t.source=i.relative(o,t.source)}t.originalLine=s.line;t.originalColumn=s.column;if(s.name!=null){t.name=s.name}}}var u=t.source;if(u!=null&&!a.has(u)){a.add(u)}var l=t.name;if(l!=null&&!c.has(l)){c.add(l)}},this);this._sources=a;this._names=c;e.sources.forEach(function(t){var n=e.sourceContentFor(t);if(n!=null){if(r!=null){t=i.join(r,t)}if(o!=null){t=i.relative(o,t)}this.setSourceContent(t,n)}},this)};SourceMapGenerator.prototype._validateMapping=function SourceMapGenerator_validateMapping(e,t,r,n){if(t&&typeof t.line!=="number"&&typeof t.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(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!t&&!r&&!n){return}else if(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r){return}else{throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))}};SourceMapGenerator.prototype._serializeMappings=function SourceMapGenerator_serializeMappings(){var e=0;var t=1;var r=0;var s=0;var o=0;var a=0;var c="";var u;var l;var f;var h;var p=this._mappings.toArray();for(var d=0,m=p.length;d<m;d++){l=p[d];u="";if(l.generatedLine!==t){e=0;while(l.generatedLine!==t){u+=";";t++}}else{if(d>0){if(!i.compareByGeneratedPositionsInflated(l,p[d-1])){continue}u+=","}}u+=n.encode(l.generatedColumn-e);e=l.generatedColumn;if(l.source!=null){h=this._sources.indexOf(l.source);u+=n.encode(h-a);a=h;u+=n.encode(l.originalLine-1-s);s=l.originalLine-1;u+=n.encode(l.originalColumn-r);r=l.originalColumn;if(l.name!=null){f=this._names.indexOf(l.name);u+=n.encode(f-o);o=f}}c+=u}return c};SourceMapGenerator.prototype._generateSourcesContent=function SourceMapGenerator_generateSourcesContent(e,t){return e.map(function(e){if(!this._sourcesContents){return null}if(t!=null){e=i.relative(t,e)}var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){e.file=this._file}if(this._sourceRoot!=null){e.sourceRoot=this._sourceRoot}if(this._sourcesContents){e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)}return e};SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON())};t.SourceMapGenerator=SourceMapGenerator},9004:(e,t,r)=>{var n=r(8831).SourceMapGenerator;var i=r(5480);var s=/(\r?\n)/;var o=10;var a="$$$isSourceNode$$$";function SourceNode(e,t,r,n,i){this.children=[];this.sourceContents={};this.line=e==null?null:e;this.column=t==null?null:t;this.source=r==null?null:r;this.name=i==null?null:i;this[a]=true;if(n!=null)this.add(n)}SourceNode.fromStringWithSourceMap=function SourceNode_fromStringWithSourceMap(e,t,r){var n=new SourceNode;var o=e.split(s);var a=0;var c=function(){var e=getNextLine();var t=getNextLine()||"";return e+t;function getNextLine(){return a<o.length?o[a++]:undefined}};var u=1,l=0;var f=null;t.eachMapping(function(e){if(f!==null){if(u<e.generatedLine){addMappingWithCode(f,c());u++;l=0}else{var t=o[a];var r=t.substr(0,e.generatedColumn-l);o[a]=t.substr(e.generatedColumn-l);l=e.generatedColumn;addMappingWithCode(f,r);f=e;return}}while(u<e.generatedLine){n.add(c());u++}if(l<e.generatedColumn){var t=o[a];n.add(t.substr(0,e.generatedColumn));o[a]=t.substr(e.generatedColumn);l=e.generatedColumn}f=e},this);if(a<o.length){if(f){addMappingWithCode(f,c())}n.add(o.splice(a).join(""))}t.sources.forEach(function(e){var s=t.sourceContentFor(e);if(s!=null){if(r!=null){e=i.join(r,e)}n.setSourceContent(e,s)}});return n;function addMappingWithCode(e,t){if(e===null||e.source===undefined){n.add(t)}else{var s=r?i.join(r,e.source):e.source;n.add(new SourceNode(e.originalLine,e.originalColumn,s,t,e.name))}}};SourceNode.prototype.add=function SourceNode_add(e){if(Array.isArray(e)){e.forEach(function(e){this.add(e)},this)}else if(e[a]||typeof e==="string"){if(e){this.children.push(e)}}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.prepend=function SourceNode_prepend(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--){this.prepend(e[t])}}else if(e[a]||typeof e==="string"){this.children.unshift(e)}else{throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e)}return this};SourceNode.prototype.walk=function SourceNode_walk(e){var t;for(var r=0,n=this.children.length;r<n;r++){t=this.children[r];if(t[a]){t.walk(e)}else{if(t!==""){e(t,{source:this.source,line:this.line,column:this.column,name:this.name})}}}};SourceNode.prototype.join=function SourceNode_join(e){var t;var r;var n=this.children.length;if(n>0){t=[];for(r=0;r<n-1;r++){t.push(this.children[r]);t.push(e)}t.push(this.children[r]);this.children=t}return this};SourceNode.prototype.replaceRight=function SourceNode_replaceRight(e,t){var r=this.children[this.children.length-1];if(r[a]){r.replaceRight(e,t)}else if(typeof r==="string"){this.children[this.children.length-1]=r.replace(e,t)}else{this.children.push("".replace(e,t))}return this};SourceNode.prototype.setSourceContent=function SourceNode_setSourceContent(e,t){this.sourceContents[i.toSetString(e)]=t};SourceNode.prototype.walkSourceContents=function SourceNode_walkSourceContents(e){for(var t=0,r=this.children.length;t<r;t++){if(this.children[t][a]){this.children[t].walkSourceContents(e)}}var n=Object.keys(this.sourceContents);for(var t=0,r=n.length;t<r;t++){e(i.fromSetString(n[t]),this.sourceContents[n[t]])}};SourceNode.prototype.toString=function SourceNode_toString(){var e="";this.walk(function(t){e+=t});return e};SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(e){var t={code:"",line:1,column:0};var r=new n(e);var i=false;var s=null;var a=null;var c=null;var u=null;this.walk(function(e,n){t.code+=e;if(n.source!==null&&n.line!==null&&n.column!==null){if(s!==n.source||a!==n.line||c!==n.column||u!==n.name){r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})}s=n.source;a=n.line;c=n.column;u=n.name;i=true}else if(i){r.addMapping({generated:{line:t.line,column:t.column}});s=null;i=false}for(var l=0,f=e.length;l<f;l++){if(e.charCodeAt(l)===o){t.line++;t.column=0;if(l+1===f){s=null;i=false}else if(i){r.addMapping({source:n.source,original:{line:n.line,column:n.column},generated:{line:t.line,column:t.column},name:n.name})}}else{t.column++}}});this.walkSourceContents(function(e,t){r.setSourceContent(e,t)});return{code:t.code,map:r}};t.SourceNode=SourceNode},5480:(e,t)=>{function getArg(e,t,r){if(t in e){return e[t]}else if(arguments.length===3){return r}else{throw new Error('"'+t+'" is a required argument.')}}t.getArg=getArg;var r=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/;var n=/^data:.+\,.+$/;function urlParse(e){var t=e.match(r);if(!t){return null}return{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}}t.urlParse=urlParse;function urlGenerate(e){var t="";if(e.scheme){t+=e.scheme+":"}t+="//";if(e.auth){t+=e.auth+"@"}if(e.host){t+=e.host}if(e.port){t+=":"+e.port}if(e.path){t+=e.path}return t}t.urlGenerate=urlGenerate;function normalize(e){var r=e;var n=urlParse(e);if(n){if(!n.path){return e}r=n.path}var i=t.isAbsolute(r);var s=r.split(/\/+/);for(var o,a=0,c=s.length-1;c>=0;c--){o=s[c];if(o==="."){s.splice(c,1)}else if(o===".."){a++}else if(a>0){if(o===""){s.splice(c+1,a);a=0}else{s.splice(c,2);a--}}}r=s.join("/");if(r===""){r=i?"/":"."}if(n){n.path=r;return urlGenerate(n)}return r}t.normalize=normalize;function join(e,t){if(e===""){e="."}if(t===""){t="."}var r=urlParse(t);var i=urlParse(e);if(i){e=i.path||"/"}if(r&&!r.scheme){if(i){r.scheme=i.scheme}return urlGenerate(r)}if(r||t.match(n)){return t}if(i&&!i.host&&!i.path){i.host=t;return urlGenerate(i)}var s=t.charAt(0)==="/"?t:normalize(e.replace(/\/+$/,"")+"/"+t);if(i){i.path=s;return urlGenerate(i)}return s}t.join=join;t.isAbsolute=function(e){return e.charAt(0)==="/"||!!e.match(r)};function relative(e,t){if(e===""){e="."}e=e.replace(/\/$/,"");var r=0;while(t.indexOf(e+"/")!==0){var n=e.lastIndexOf("/");if(n<0){return t}e=e.slice(0,n);if(e.match(/^([^\/]+:\/)?\/*$/)){return t}++r}return Array(r+1).join("../")+t.substr(e.length+1)}t.relative=relative;var i=function(){var e=Object.create(null);return!("__proto__"in e)}();function identity(e){return e}function toSetString(e){if(isProtoString(e)){return"$"+e}return e}t.toSetString=i?identity:toSetString;function fromSetString(e){if(isProtoString(e)){return e.slice(1)}return e}t.fromSetString=i?identity:fromSetString;function isProtoString(e){if(!e){return false}var t=e.length;if(t<9){return false}if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95){return false}for(var r=t-10;r>=0;r--){if(e.charCodeAt(r)!==36){return false}}return true}function compareByOriginalPositions(e,t,r){var n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0||r){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0){return n}n=e.generatedLine-t.generatedLine;if(n!==0){return n}return e.name-t.name}t.compareByOriginalPositions=compareByOriginalPositions;function compareByGeneratedPositionsDeflated(e,t,r){var n=e.generatedLine-t.generatedLine;if(n!==0){return n}n=e.generatedColumn-t.generatedColumn;if(n!==0||r){return n}n=e.source-t.source;if(n!==0){return n}n=e.originalLine-t.originalLine;if(n!==0){return n}n=e.originalColumn-t.originalColumn;if(n!==0){return n}return e.name-t.name}t.compareByGeneratedPositionsDeflated=compareByGeneratedPositionsDeflated;function strcmp(e,t){if(e===t){return 0}if(e>t){return 1}return-1}function compareByGeneratedPositionsInflated(e,t){var r=e.generatedLine-t.generatedLine;if(r!==0){return r}r=e.generatedColumn-t.generatedColumn;if(r!==0){return r}r=strcmp(e.source,t.source);if(r!==0){return r}r=e.originalLine-t.originalLine;if(r!==0){return r}r=e.originalColumn-t.originalColumn;if(r!==0){return r}return strcmp(e.name,t.name)}t.compareByGeneratedPositionsInflated=compareByGeneratedPositionsInflated},1290:(e,t,r)=>{t.SourceMapGenerator=r(8831).SourceMapGenerator;t.SourceMapConsumer=r(2421).SourceMapConsumer;t.SourceNode=r(9004).SourceNode},3737:(e,t,r)=>{var n=r(2800);function customDecodeUriComponent(e){return n(e.replace(/\+/g,"%2B"))}e.exports=customDecodeUriComponent},9522:(e,t,r)=>{var n=r(8835);function resolveUrl(){return Array.prototype.reduce.call(arguments,function(e,t){return n.resolve(e,t)})}e.exports=resolveUrl},5561:(e,t,r)=>{var n=r(3849);var i=r(9522);var s=r(3737);var o=r(2803);var a=r(3248);function callbackAsync(e,t,r){setImmediate(function(){e(t,r)})}function parseMapToJSON(e,t){try{return JSON.parse(e.replace(/^\)\]\}'/,""))}catch(e){e.sourceMapData=t;throw e}}function readSync(e,t,r){var n=s(t);try{return String(e(n))}catch(e){e.sourceMapData=r;throw e}}function resolveSourceMap(e,t,r,n){var i;try{i=resolveSourceMapHelper(e,t)}catch(e){return callbackAsync(n,e)}if(!i||i.map){return callbackAsync(n,null,i)}var o=s(i.url);r(o,function(e,t){if(e){e.sourceMapData=i;return n(e)}i.map=String(t);try{i.map=parseMapToJSON(i.map,i)}catch(e){return n(e)}n(null,i)})}function resolveSourceMapSync(e,t,r){var n=resolveSourceMapHelper(e,t);if(!n||n.map){return n}n.map=readSync(r,n.url,n);n.map=parseMapToJSON(n.map,n);return n}var c=/^data:([^,;]*)(;[^,;]*)*(?:,(.*))?$/;var u=/^(?:application|text)\/json$/;var l="utf-8";function base64ToBuf(e){var t=a(e);var r=t.length;var n=new Uint8Array(r);for(var i=0;i<r;i++){n[i]=t.charCodeAt(i)}return n}function decodeBase64String(e){if(typeof TextDecoder==="undefined"||typeof Uint8Array==="undefined"){return a(e)}var t=base64ToBuf(e);var r=new TextDecoder(l,{fatal:true});return r.decode(t)}function resolveSourceMapHelper(e,t){t=o(t);var r=n.getFrom(e);if(!r){return null}var s=r.match(c);if(s){var a=s[1]||"text/plain";var l=s[2]||"";var f=s[3]||"";var h={sourceMappingURL:r,url:null,sourcesRelativeTo:t,map:f};if(!u.test(a)){var p=new Error("Unuseful data uri mime type: "+a);p.sourceMapData=h;throw p}try{h.map=parseMapToJSON(l===";base64"?decodeBase64String(f):decodeURIComponent(f),h)}catch(p){p.sourceMapData=h;throw p}return h}var d=i(t,r);return{sourceMappingURL:r,url:d,sourcesRelativeTo:d,map:null}}function resolveSources(e,t,r,n,i){if(typeof n==="function"){i=n;n={}}var o=e.sources?e.sources.length:0;var a={sourcesResolved:[],sourcesContent:[]};if(o===0){callbackAsync(i,null,a);return}var c=function(){o--;if(o===0){i(null,a)}};resolveSourcesHelper(e,t,n,function(e,t,n){a.sourcesResolved[n]=e;if(typeof t==="string"){a.sourcesContent[n]=t;callbackAsync(c,null)}else{var i=s(e);r(i,function(e,t){a.sourcesContent[n]=e?e:String(t);c()})}})}function resolveSourcesSync(e,t,r,n){var i={sourcesResolved:[],sourcesContent:[]};if(!e.sources||e.sources.length===0){return i}resolveSourcesHelper(e,t,n,function(e,t,n){i.sourcesResolved[n]=e;if(r!==null){if(typeof t==="string"){i.sourcesContent[n]=t}else{var o=s(e);try{i.sourcesContent[n]=String(r(o))}catch(e){i.sourcesContent[n]=e}}}});return i}var f=/\/?$/;function resolveSourcesHelper(e,t,r,n){r=r||{};t=o(t);var s;var a;var c;for(var u=0,l=e.sources.length;u<l;u++){c=null;if(typeof r.sourceRoot==="string"){c=r.sourceRoot}else if(typeof e.sourceRoot==="string"&&r.sourceRoot!==false){c=e.sourceRoot}if(c===null||c===""){s=i(t,e.sources[u])}else{s=i(t,c.replace(f,"/"),e.sources[u])}a=(e.sourcesContent||[])[u];n(s,a,u)}}function resolve(e,t,r,n,i){if(typeof n==="function"){i=n;n={}}if(e===null){var o=t;var a={sourceMappingURL:null,url:o,sourcesRelativeTo:o,map:null};var c=s(o);r(c,function(e,t){if(e){e.sourceMapData=a;return i(e)}a.map=String(t);try{a.map=parseMapToJSON(a.map,a)}catch(e){return i(e)}_resolveSources(a)})}else{resolveSourceMap(e,t,r,function(e,t){if(e){return i(e)}if(!t){return i(null,null)}_resolveSources(t)})}function _resolveSources(e){resolveSources(e.map,e.sourcesRelativeTo,r,n,function(t,r){if(t){return i(t)}e.sourcesResolved=r.sourcesResolved;e.sourcesContent=r.sourcesContent;i(null,e)})}}function resolveSync(e,t,r,n){var i;if(e===null){var s=t;i={sourceMappingURL:null,url:s,sourcesRelativeTo:s,map:null};i.map=readSync(r,s,i);i.map=parseMapToJSON(i.map,i)}else{i=resolveSourceMapSync(e,t,r);if(!i){return null}}var o=resolveSourcesSync(i.map,i.sourcesRelativeTo,r,n);i.sourcesResolved=o.sourcesResolved;i.sourcesContent=o.sourcesContent;return i}e.exports={resolveSourceMap:resolveSourceMap,resolveSourceMapSync:resolveSourceMapSync,resolveSources:resolveSources,resolveSourcesSync:resolveSourcesSync,resolve:resolve,resolveSync:resolveSync,parseMapToJSON:parseMapToJSON}},3849:function(e){void function(t,r){if(typeof define==="function"&&define.amd){define(r)}else if(true){e.exports=r()}else{}}(this,function(){var e=/[#@] sourceMappingURL=([^\s'"]*)/;var t=RegExp("(?:"+"/\\*"+"(?:\\s*\r?\n(?://)?)?"+"(?:"+e.source+")"+"\\s*"+"\\*/"+"|"+"//(?:"+e.source+")"+")"+"\\s*");return{regex:t,_innerRegex:e,getFrom:function(e){var r=e.match(t);return r?r[1]||r[2]||"":null},existsIn:function(e){return t.test(e)},removeFrom:function(e){return e.replace(t,"")},insertBefore:function(e,r){var n=e.match(t);if(n){return e.slice(0,n.index)+r+e.slice(n.index)}else{return e+r}}}})},4178:(e,t,r)=>{"use strict";var n=r(6616);e.exports=function(e,t,r){if(typeof e!=="string"){throw new TypeError("expected a string")}if(typeof t==="function"){r=t;t=null}if(typeof t==="string"){t={sep:t}}var i=n({sep:"."},t);var s=i.quotes||['"',"'","`"];var o;if(i.brackets===true){o={"<":">","(":")","[":"]","{":"}"}}else if(i.brackets){o=i.brackets}var a=[];var c=[];var u=[""];var l=i.sep;var f=e.length;var h=-1;var p;function expected(){if(o&&c.length){return o[c[c.length-1]]}}while(++h<f){var d=e[h];var m=e[h+1];var y={val:d,idx:h,arr:u,str:e};a.push(y);if(d==="\\"){y.val=keepEscaping(i,e,h)===true?d+m:m;y.escaped=true;if(typeof r==="function"){r(y)}u[u.length-1]+=y.val;h++;continue}if(o&&o[d]){c.push(d);var v=expected();var g=h+1;if(e.indexOf(v,g+1)!==-1){while(c.length&&g<f){var b=e[++g];if(b==="\\"){b++;continue}if(s.indexOf(b)!==-1){g=getClosingQuote(e,b,g+1);continue}v=expected();if(c.length&&e.indexOf(v,g+1)===-1){break}if(o[b]){c.push(b);continue}if(v===b){c.pop()}}}p=g;if(p===-1){u[u.length-1]+=d;continue}d=e.slice(h,p+1);y.val=d;y.idx=h=p}if(s.indexOf(d)!==-1){p=getClosingQuote(e,d,h+1);if(p===-1){u[u.length-1]+=d;continue}if(keepQuotes(d,i)===true){d=e.slice(h,p+1)}else{d=e.slice(h+1,p)}y.val=d;y.idx=h=p}if(typeof r==="function"){r(y,a);d=y.val;h=y.idx}if(y.val===l&&y.split!==false){u.push("");continue}u[u.length-1]+=y.val}return u};function getClosingQuote(e,t,r,n){var i=e.indexOf(t,r);if(e.charAt(i-1)==="\\"){return getClosingQuote(e,t,i+1)}return i}function keepQuotes(e,t){if(t.keepDoubleQuotes===true&&e==='"')return true;if(t.keepSingleQuotes===true&&e==="'")return true;return t.keepQuotes}function keepEscaping(e,t,r){if(typeof e.keepEscaping==="function"){return e.keepEscaping(t,r)}return e.keepEscaping===true||t[r+1]==="\\"}},6616:(e,t,r)=>{"use strict";var n=r(42);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},42:(e,t,r)=>{"use strict";var n=r(9723);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},9723:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},7504:(e,t,r)=>{"use strict";var n=r(858);var i=r(3018);var s=r(1669);function extend(e,t){if(typeof e!=="function"){throw new TypeError("expected Parent to be a function.")}return function(r,o){if(typeof r!=="function"){throw new TypeError("expected Ctor to be a function.")}s.inherits(r,e);n(r,e);if(typeof o==="object"){var a=Object.create(o);for(var c in a){r.prototype[c]=a[c]}}i(r.prototype,"_parent_",{configurable:true,set:function(){},get:function(){return e.prototype}});if(typeof t==="function"){t(r,e)}r.extend=extend(r,t)}}e.exports=extend},328:(e,t,r)=>{"use strict";var n=r(461);e.exports=function toPath(e){if(n(e)!=="arguments"){e=arguments}return filter(e).join(".")};function filter(e){var t=e.length;var r=-1;var i=[];while(++r<t){var s=e[r];if(n(s)==="arguments"||Array.isArray(s)){i.push.apply(i,filter(s))}else if(typeof s==="string"){i.push(s)}}return i}},8229:e=>{e.exports=function(e){return e!=null&&(isBuffer(e)||isSlowBuffer(e)||!!e._isBuffer)};function isBuffer(e){return!!e.constructor&&typeof e.constructor.isBuffer==="function"&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return typeof e.readFloatLE==="function"&&typeof e.slice==="function"&&isBuffer(e.slice(0,0))}},461:(e,t,r)=>{var n=r(8229);var i=Object.prototype.toString;e.exports=function kindOf(e){if(typeof e==="undefined"){return"undefined"}if(e===null){return"null"}if(e===true||e===false||e instanceof Boolean){return"boolean"}if(typeof e==="string"||e instanceof String){return"string"}if(typeof e==="number"||e instanceof Number){return"number"}if(typeof e==="function"||e instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(e)){return"array"}if(e instanceof RegExp){return"regexp"}if(e instanceof Date){return"date"}var t=i.call(e);if(t==="[object RegExp]"){return"regexp"}if(t==="[object Date]"){return"date"}if(t==="[object Arguments]"){return"arguments"}if(t==="[object Error]"){return"error"}if(n(e)){return"buffer"}if(t==="[object Set]"){return"set"}if(t==="[object WeakSet]"){return"weakset"}if(t==="[object Map]"){return"map"}if(t==="[object WeakMap]"){return"weakmap"}if(t==="[object Symbol]"){return"symbol"}if(t==="[object Int8Array]"){return"int8array"}if(t==="[object Uint8Array]"){return"uint8array"}if(t==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(t==="[object Int16Array]"){return"int16array"}if(t==="[object Uint16Array]"){return"uint16array"}if(t==="[object Int32Array]"){return"int32array"}if(t==="[object Uint32Array]"){return"uint32array"}if(t==="[object Float32Array]"){return"float32array"}if(t==="[object Float64Array]"){return"float64array"}return"object"}},9649:(e,t,r)=>{"use strict";const{Readable:n}=r(2413);const i=e=>new n({read(){this.push(e);this.push(null)}});e.exports=i;e.exports.default=i},2325:(e,t,r)=>{"use strict";var n=r(8589);var i=r(4914);var s=r(4216);var o=r(466);var a=1024*64;var c={};e.exports=function(e,t){if(!Array.isArray(e)){return makeRe(e,t)}return makeRe(e.join("|"),t)};function makeRe(e,t){if(e instanceof RegExp){return e}if(typeof e!=="string"){throw new TypeError("expected a string")}if(e.length>a){throw new Error("expected pattern to be less than "+a+" characters")}var r=e;if(!t||t&&t.cache!==false){r=createKey(e,t);if(c.hasOwnProperty(r)){return c[r]}}var i=s({},t);if(i.contains===true){if(i.negate===true){i.strictNegate=false}else{i.strict=false}}if(i.strict===false){i.strictOpen=false;i.strictClose=false}var u=i.strictOpen!==false?"^":"";var l=i.strictClose!==false?"$":"";var f=i.flags||"";var h;if(i.nocase===true&&!/i/.test(f)){f+="i"}try{if(i.negate||typeof i.strictNegate==="boolean"){e=o.create(e,i)}var p=u+"(?:"+e+")"+l;h=new RegExp(p,f);if(i.safe===true&&n(h)===false){throw new Error("potentially unsafe regular expression: "+h.source)}}catch(n){if(i.strictErrors===true||i.safe===true){n.key=r;n.pattern=e;n.originalOptions=t;n.createdOptions=i;throw n}try{h=new RegExp("^"+e.replace(/(\W)/g,"\\$1")+"$")}catch(e){h=/.^/}}if(i.cache!==false){memoize(h,r,e,i)}return h}function memoize(e,t,r,n){i(e,"cached",true);i(e,"pattern",r);i(e,"options",n);i(e,"key",t);c[t]=e}function createKey(e,t){if(!t)return e;var r=e;for(var n in t){if(t.hasOwnProperty(n)){r+=";"+n+"="+String(t[n])}}return r}e.exports.makeRe=makeRe},4914:(e,t,r)=>{"use strict";var n=r(7328);var i=r(5721);var s=typeof Reflect!=="undefined"&&Reflect.defineProperty?Reflect.defineProperty:Object.defineProperty;e.exports=function defineProperty(e,t,r){if(!n(e)&&typeof e!=="function"&&!Array.isArray(e)){throw new TypeError("expected an object, function, or array")}if(typeof t!=="string"){throw new TypeError('expected "key" to be a string')}if(i(r)){s(e,t,r);return e}s(e,t,{configurable:true,enumerable:false,writable:true,value:r});return e}},4216:(e,t,r)=>{"use strict";var n=r(2368);var i=r(3604);e.exports=Object.assign||function(e){if(e===null||typeof e==="undefined"){throw new TypeError("Cannot convert undefined or null to object")}if(!isObject(e)){e={}}for(var t=1;t<arguments.length;t++){var r=arguments[t];if(isString(r)){r=toObject(r)}if(isObject(r)){assign(e,r);i(e,r)}}return e};function assign(e,t){for(var r in t){if(hasOwn(t,r)){e[r]=t[r]}}}function isString(e){return e&&typeof e==="string"}function toObject(e){var t={};for(var r in e){t[r]=e[r]}return t}function isObject(e){return e&&typeof e==="object"||n(e)}function hasOwn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function isEnum(e,t){return Object.prototype.propertyIsEnumerable.call(e,t)}},2368:(e,t,r)=>{"use strict";var n=r(2129);e.exports=function isExtendable(e){return n(e)||typeof e==="function"||Array.isArray(e)}},2129:(e,t,r)=>{"use strict";var n=r(7328);function isObjectObject(e){return n(e)===true&&Object.prototype.toString.call(e)==="[object Object]"}e.exports=function isPlainObject(e){var t,r;if(isObjectObject(e)===false)return false;t=e.constructor;if(typeof t!=="function")return false;r=t.prototype;if(isObjectObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}},6405:(e,t,r)=>{"use strict";var n=r(7242);var i=r(4954);var s=r(3826);var o=r(4927);e.exports=function unionValue(e,t,r){if(!n(e)){throw new TypeError("union-value expects the first argument to be an object.")}if(typeof t!=="string"){throw new TypeError("union-value expects `prop` to be a string.")}var a=arrayify(s(e,t));o(e,t,i(a,arrayify(r)));return e};function arrayify(e){if(e===null||typeof e==="undefined"){return[]}if(Array.isArray(e)){return e}return[e]}},2281:(e,t,r)=>{"use strict";var n=r(7328);var i=r(6234);e.exports=function unset(e,t){if(!n(e)){throw new TypeError("expected an object.")}if(e.hasOwnProperty(t)){delete e[t];return true}if(i(e,t)){var r=t.split(".");var s=r.pop();while(r.length&&r[r.length-1].slice(-1)==="\\"){s=r.pop().slice(0,-1)+"."+s}while(r.length)e=e[t=r.shift()];return delete e[s]}return true}},6234:(e,t,r)=>{"use strict";var n=r(6100);var i=r(3629);var s=r(3826);e.exports=function(e,t,r){if(n(e)){return i(s(e,t),r)}return i(e,t)}},6100:(e,t,r)=>{"use strict";var n=r(9842);e.exports=function isObject(e){return e!=null&&typeof e==="object"&&n(e)===false}},3629:e=>{"use strict";e.exports=function hasValue(e,t){if(e===null||e===undefined){return false}if(typeof e==="boolean"){return true}if(typeof e==="number"){if(e===0&&t===true){return false}return true}if(e.length!==undefined){return e.length!==0}for(var r in e){if(e.hasOwnProperty(r)){return true}}return false}},5418:(e,t,r)=>{const{URL:n}=r(8835);const{join:i}=r(5622);const s=r(5747);const{promisify:o}=r(1669);const{tmpdir:a}=r(2087);const c=r(2447);const u=o(s.writeFile);const l=o(s.mkdir);const f=o(s.readFile);const h=(e,t)=>e.localeCompare(t,"en-US",{numeric:true});const p=e=>encodeURIComponent(e).replace(/^%40/,"@");const d=async(e,t)=>{const r=a();const n=i(r,"update-check");if(!s.existsSync(n)){await l(n)}let o=`${e.name}-${t}.json`;if(e.scope){o=`${e.scope}-${o}`}return i(n,o)};const m=async(e,t,r)=>{if(s.existsSync(e)){const n=await f(e,"utf8");const{lastUpdate:i,latest:s}=JSON.parse(n);const o=i+r;if(o>t){return{shouldCheck:false,latest:s}}}return{shouldCheck:true,latest:null}};const y=async(e,t,r)=>{const n=JSON.stringify({latest:t,lastUpdate:r});await u(e,n,"utf8")};const v=(e,t)=>new Promise((n,i)=>{const s={host:e.hostname,path:e.pathname,port:e.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(t){s.headers.authorization=`${t.type} ${t.token}`}const{get:o}=r(e.protocol==="https:"?7211:8605);o(s,e=>{const{statusCode:t}=e;if(t!==200){const r=new Error(`Request failed with code ${t}`);r.code=t;i(r);e.resume();return}let r="";e.setEncoding("utf8");e.on("data",e=>{r+=e});e.on("end",()=>{try{const e=JSON.parse(r);n(e)}catch(e){i(e)}})}).on("error",i).on("timeout",i)});const g=async({full:e,scope:t},i)=>{const s=c(t);const o=new n(e,s);let a=null;try{a=await v(o)}catch(e){if(e.code&&String(e.code).startsWith(4)){const e=r(1384);const t=e(s,{recursive:true});a=await v(o,t)}else{throw e}}const u=a["dist-tags"][i];if(!u){throw new Error(`Distribution tag ${i} is not available`)}return u};const b={interval:36e5,distTag:"latest"};const w=e=>{const t={full:p(e)};if(e.includes("/")){const r=e.split("/");t.scope=r[0];t.name=r[1]}else{t.scope=null;t.name=e}return t};e.exports=(async(e,t)=>{if(typeof e!=="object"){throw new Error("The first parameter should be your package.json file content")}const r=w(e.name);const n=Date.now();const{distTag:i,interval:s}=Object.assign({},b,t);const o=await d(r,i);let a=null;let c=true;({shouldCheck:c,latest:a}=await m(o,n,s));if(c){a=await g(r,i);await y(o,a,n)}const u=h(e.version,a);if(u===-1){return{latest:a,fromCache:!c}}return null})},2803:(e,t,r)=>{var n=r(5622);"use strict";function urix(e){if(n.sep==="\\"){return e.replace(/\\/g,"/").replace(/^[a-z]:\/?/i,"/")}return e}e.exports=urix},4687:e=>{"use strict";e.exports=function base(e,t){if(!isObject(e)&&typeof e!=="function"){throw new TypeError("expected an object or function")}var r=isObject(t)?t:{};var n=typeof r.prop==="string"?r.prop:"fns";if(!Array.isArray(e[n])){define(e,n,[])}define(e,"use",use);define(e,"run",function(t){if(!isObject(t))return;if(!t.use||!t.run){define(t,n,t[n]||[]);define(t,"use",use)}if(!t[n]||t[n].indexOf(base)===-1){t.use(base)}var r=this||e;var i=r[n];var s=i.length;var o=-1;while(++o<s){t.use(i[o])}return t});function use(t,i,s){var o=1;if(typeof t==="string"||Array.isArray(t)){i=wrap(t,i);o++}else{s=i;i=t}if(typeof i!=="function"){throw new TypeError("expected a function")}var a=this||e;var c=a[n];var u=[].slice.call(arguments,o);u.unshift(a);if(typeof r.hook==="function"){r.hook.apply(a,u)}var l=i.apply(a,u);if(typeof l==="function"&&c.indexOf(l)===-1){c.push(l)}return a}function wrap(e,t){return function plugin(){return this.type===e?t.apply(this,arguments):plugin}}return e};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}function define(e,t,r){Object.defineProperty(e,t,{configurable:true,writable:true,value:r})}},5880:(e,t,r)=>{"use strict";var n=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var i=r(7995);var s=["node_modules","favicon.ico"];var o=e.exports=function(e){var t=[];var r=[];if(e===null){r.push("name cannot be null");return a(t,r)}if(e===undefined){r.push("name cannot be undefined");return a(t,r)}if(typeof e!=="string"){r.push("name must be a string");return a(t,r)}if(!e.length){r.push("name length must be greater than zero")}if(e.match(/^\./)){r.push("name cannot start with a period")}if(e.match(/^_/)){r.push("name cannot start with an underscore")}if(e.trim()!==e){r.push("name cannot contain leading or trailing spaces")}s.forEach(function(t){if(e.toLowerCase()===t){r.push(t+" is a blacklisted name")}});i.forEach(function(r){if(e.toLowerCase()===r){t.push(r+" is a core module name")}});if(e.length>214){t.push("name can no longer contain more than 214 characters")}if(e.toLowerCase()!==e){t.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(e.split("/").slice(-1)[0])){t.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(e)!==e){var o=e.match(n);if(o){var c=o[1];var u=o[2];if(encodeURIComponent(c)===c&&encodeURIComponent(u)===u){return a(t,r)}}r.push("name can only contain URL-friendly characters")}return a(t,r)};o.scopedPackagePattern=n;var a=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};if(!r.warnings.length)delete r.warnings;if(!r.errors.length)delete r.errors;return r}},4586:e=>{e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var n=e.apply(this,t);var i=t[t.length-1];if(typeof n==="function"&&n!==i){Object.keys(i).forEach(function(e){n[e]=i[e]})}return n}}},1694:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(721);const i=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${r+t}m`});const s=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`});const o=(e,t)=>(function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`});function assembleStyles(){const e=new Map;const t={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],gray:[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]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const i=n[r];t[r]={open:`[${i[0]}m`,close:`[${i[1]}m`};n[r]=t[r];e.set(i[0],i[1])}Object.defineProperty(t,r,{value:n,enumerable:false});Object.defineProperty(t,"codes",{value:e,enumerable:false})}const r=e=>e;const a=(e,t,r)=>[e,t,r];t.color.close="";t.bgColor.close="";t.color.ansi={ansi:i(r,0)};t.color.ansi256={ansi256:s(r,0)};t.color.ansi16m={rgb:o(a,0)};t.bgColor.ansi={ansi:i(r,10)};t.bgColor.ansi256={ansi256:s(r,10)};t.bgColor.ansi16m={rgb:o(a,10)};for(let e of Object.keys(n)){if(typeof n[e]!=="object"){continue}const r=n[e];if(e==="ansi16"){e="ansi"}if("ansi16"in r){t.color.ansi[e]=i(r.ansi16,0);t.bgColor.ansi[e]=i(r.ansi16,10)}if("ansi256"in r){t.color.ansi256[e]=s(r.ansi256,0);t.bgColor.ansi256[e]=s(r.ansi256,10)}if("rgb"in r){t.color.ansi16m[e]=o(r.rgb,0);t.bgColor.ansi16m[e]=o(r.rgb,10)}}return t}Object.defineProperty(e,"exports",{enumerable:true,get:assembleStyles})},6437:(e,t,r)=>{"use strict";const n=r(6003);const i=r(1694);const s=r(8937).stdout;const o=r(6900);const a=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm");const c=["ansi","ansi","ansi256","ansi16m"];const u=new Set(["gray"]);const l=Object.create(null);function applyOptions(e,t){t=t||{};const r=s?s.level:0;e.level=t.level===undefined?r:t.level;e.enabled="enabled"in t?t.enabled:e.level>0}function Chalk(e){if(!this||!(this instanceof Chalk)||this.template){const t={};applyOptions(t,e);t.template=function(){const e=[].slice.call(arguments);return chalkTag.apply(null,[t.template].concat(e))};Object.setPrototypeOf(t,Chalk.prototype);Object.setPrototypeOf(t.template,t);t.template.constructor=Chalk;return t.template}applyOptions(this,e)}if(a){i.blue.open=""}for(const e of Object.keys(i)){i[e].closeRe=new RegExp(n(i[e].close),"g");l[e]={get(){const t=i[e];return build.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}}}l.visible={get(){return build.call(this,this._styles||[],true,"visible")}};i.color.closeRe=new RegExp(n(i.color.close),"g");for(const e of Object.keys(i.color.ansi)){if(u.has(e)){continue}l[e]={get(){const t=this.level;return function(){const r=i.color[c[t]][e].apply(null,arguments);const n={open:r,close:i.color.close,closeRe:i.color.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}i.bgColor.closeRe=new RegExp(n(i.bgColor.close),"g");for(const e of Object.keys(i.bgColor.ansi)){if(u.has(e)){continue}const t="bg"+e[0].toUpperCase()+e.slice(1);l[t]={get(){const t=this.level;return function(){const r=i.bgColor[c[t]][e].apply(null,arguments);const n={open:r,close:i.bgColor.close,closeRe:i.bgColor.closeRe};return build.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties(()=>{},l);function build(e,t,r){const n=function(){return applyStyle.apply(n,arguments)};n._styles=e;n._empty=t;const i=this;Object.defineProperty(n,"level",{enumerable:true,get(){return i.level},set(e){i.level=e}});Object.defineProperty(n,"enabled",{enumerable:true,get(){return i.enabled},set(e){i.enabled=e}});n.hasGrey=this.hasGrey||r==="gray"||r==="grey";n.__proto__=f;return n}function applyStyle(){const e=arguments;const t=e.length;let r=String(arguments[0]);if(t===0){return""}if(t>1){for(let n=1;n<t;n++){r+=" "+e[n]}}if(!this.enabled||this.level<=0||!r){return this._empty?"":r}const n=i.dim.open;if(a&&this.hasGrey){i.dim.open=""}for(const e of this._styles.slice().reverse()){r=e.open+r.replace(e.closeRe,e.open)+e.close;r=r.replace(/\r?\n/g,`${e.close}$&${e.open}`)}i.dim.open=n;return r}function chalkTag(e,t){if(!Array.isArray(t)){return[].slice.call(arguments,1).join(" ")}const r=[].slice.call(arguments,2);const n=[t.raw[0]];for(let e=1;e<t.length;e++){n.push(String(r[e-1]).replace(/[{}\\]/g,"\\$&"));n.push(String(t.raw[e]))}return o(e,n.join(""))}Object.defineProperties(Chalk.prototype,l);e.exports=Chalk();e.exports.supportsColor=s;e.exports.default=e.exports},6900:e=>{"use strict";const t=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;const r=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;const n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/;const i=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi;const s=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function unescape(e){if(e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3){return String.fromCharCode(parseInt(e.slice(1),16))}return s.get(e)||e}function parseArguments(e,t){const r=[];const s=t.trim().split(/\s*,\s*/g);let o;for(const t of s){if(!isNaN(t)){r.push(Number(t))}else if(o=t.match(n)){r.push(o[2].replace(i,(e,t,r)=>t?unescape(t):r))}else{throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`)}}return r}function parseStyle(e){r.lastIndex=0;const t=[];let n;while((n=r.exec(e))!==null){const e=n[1];if(n[2]){const r=parseArguments(e,n[2]);t.push([e].concat(r))}else{t.push([e])}}return t}function buildStyle(e,t){const r={};for(const e of t){for(const t of e.styles){r[t[0]]=e.inverse?null:t.slice(1)}}let n=e;for(const e of Object.keys(r)){if(Array.isArray(r[e])){if(!(e in n)){throw new Error(`Unknown Chalk style: ${e}`)}if(r[e].length>0){n=n[e].apply(n,r[e])}else{n=n[e]}}}return n}e.exports=((e,r)=>{const n=[];const i=[];let s=[];r.replace(t,(t,r,o,a,c,u)=>{if(r){s.push(unescape(r))}else if(a){const t=s.join("");s=[];i.push(n.length===0?t:buildStyle(e,n)(t));n.push({inverse:o,styles:parseStyle(a)})}else if(c){if(n.length===0){throw new Error("Found extraneous } in Chalk template literal")}i.push(buildStyle(e,n)(s.join("")));s=[];n.pop()}else{s.push(u)}});i.push(s.join(""));if(n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${n.length===1?"":"s"} (\`}\`)`;throw new Error(e)}return i.join("")})},1817:(e,t,r)=>{"use strict";const n=r(5747);const i=r(5622);const s=n.lchown?"lchown":"chown";const o=n.lchownSync?"lchownSync":"chownSync";const a=n.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const c=(e,t,r)=>{try{return n[o](e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const u=(e,t,r)=>{try{return n.chownSync(e,t,r)}catch(e){if(e.code!=="ENOENT")throw e}};const l=a?(e,t,r,i)=>s=>{if(!s||s.code!=="EISDIR")i(s);else n.chown(e,t,r,i)}:(e,t,r,n)=>n;const f=a?(e,t,r)=>{try{return c(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;u(e,t,r)}}:(e,t,r)=>c(e,t,r);const h=process.version;let p=(e,t,r)=>n.readdir(e,t,r);let d=(e,t)=>n.readdirSync(e,t);if(/^v4\./.test(h))p=((e,t,r)=>n.readdir(e,r));const m=(e,t,r,i)=>{n[s](e,t,r,l(e,t,r,e=>{i(e&&e.code!=="ENOENT"?e:null)}))};const y=(e,t,r,s,o)=>{if(typeof t==="string")return n.lstat(i.resolve(e,t),(n,i)=>{if(n)return o(n.code!=="ENOENT"?n:null);i.name=t;y(e,i,r,s,o)});if(t.isDirectory()){v(i.resolve(e,t.name),r,s,n=>{if(n)return o(n);const a=i.resolve(e,t.name);m(a,r,s,o)})}else{const n=i.resolve(e,t.name);m(n,r,s,o)}};const v=(e,t,r,n)=>{p(e,{withFileTypes:true},(i,s)=>{if(i){if(i.code==="ENOENT")return n();else if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return m(e,t,r,n);let o=s.length;let a=null;const c=i=>{if(a)return;if(i)return n(a=i);if(--o===0)return m(e,t,r,n)};s.forEach(n=>y(e,n,t,r,c))})};const g=(e,t,r,s)=>{if(typeof t==="string"){try{const r=n.lstatSync(i.resolve(e,t));r.name=t;t=r}catch(e){if(e.code==="ENOENT")return;else throw e}}if(t.isDirectory())b(i.resolve(e,t.name),r,s);f(i.resolve(e,t.name),r,s)};const b=(e,t,r)=>{let n;try{n=d(e,{withFileTypes:true})}catch(n){if(n.code==="ENOENT")return;else if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return f(e,t,r);else throw n}if(n&&n.length)n.forEach(n=>g(e,n,t,r));return f(e,t,r)};e.exports=v;v.sync=b},2259:(e,t,r)=>{var n=r(4524);var i={};for(var s in n){if(n.hasOwnProperty(s)){i[n[s]]=s}}var o=e.exports={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"]}};for(var a in o){if(o.hasOwnProperty(a)){if(!("channels"in o[a])){throw new Error("missing channels property: "+a)}if(!("labels"in o[a])){throw new Error("missing channel labels property: "+a)}if(o[a].labels.length!==o[a].channels){throw new Error("channel and label counts mismatch: "+a)}var c=o[a].channels;var u=o[a].labels;delete o[a].channels;delete o[a].labels;Object.defineProperty(o[a],"channels",{value:c});Object.defineProperty(o[a],"labels",{value:u})}}o.rgb.hsl=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.min(t,r,n);var s=Math.max(t,r,n);var o=s-i;var a;var c;var u;if(s===i){a=0}else if(t===s){a=(r-n)/o}else if(r===s){a=2+(n-t)/o}else if(n===s){a=4+(t-r)/o}a=Math.min(a*60,360);if(a<0){a+=360}u=(i+s)/2;if(s===i){c=0}else if(u<=.5){c=o/(s+i)}else{c=o/(2-s-i)}return[a,c*100,u*100]};o.rgb.hsv=function(e){var t;var r;var n;var i;var s;var o=e[0]/255;var a=e[1]/255;var c=e[2]/255;var u=Math.max(o,a,c);var l=u-Math.min(o,a,c);var f=function(e){return(u-e)/6/l+1/2};if(l===0){i=s=0}else{s=l/u;t=f(o);r=f(a);n=f(c);if(o===u){i=n-r}else if(a===u){i=1/3+t-n}else if(c===u){i=2/3+r-t}if(i<0){i+=1}else if(i>1){i-=1}}return[i*360,s*100,u*100]};o.rgb.hwb=function(e){var t=e[0];var r=e[1];var n=e[2];var i=o.rgb.hsl(e)[0];var s=1/255*Math.min(t,Math.min(r,n));n=1-1/255*Math.max(t,Math.max(r,n));return[i,s*100,n*100]};o.rgb.cmyk=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i;var s;var o;var a;a=Math.min(1-t,1-r,1-n);i=(1-t-a)/(1-a)||0;s=(1-r-a)/(1-a)||0;o=(1-n-a)/(1-a)||0;return[i*100,s*100,o*100,a*100]};function comparativeDistance(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}o.rgb.keyword=function(e){var t=i[e];if(t){return t}var r=Infinity;var s;for(var o in n){if(n.hasOwnProperty(o)){var a=n[o];var c=comparativeDistance(e,a);if(c<r){r=c;s=o}}}return s};o.keyword.rgb=function(e){return n[e]};o.rgb.xyz=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var i=t*.4124+r*.3576+n*.1805;var s=t*.2126+r*.7152+n*.0722;var o=t*.0193+r*.1192+n*.9505;return[i*100,s*100,o*100]};o.rgb.lab=function(e){var t=o.rgb.xyz(e);var r=t[0];var n=t[1];var i=t[2];var s;var a;var c;r/=95.047;n/=100;i/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=i>.008856?Math.pow(i,1/3):7.787*i+16/116;s=116*n-16;a=500*(r-n);c=200*(n-i);return[s,a,c]};o.hsl.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;var a;var c;if(r===0){c=n*255;return[c,c,c]}if(n<.5){s=n*(1+r)}else{s=n+r-n*r}i=2*n-s;a=[0,0,0];for(var u=0;u<3;u++){o=t+1/3*-(u-1);if(o<0){o++}if(o>1){o--}if(6*o<1){c=i+(s-i)*6*o}else if(2*o<1){c=s}else if(3*o<2){c=i+(s-i)*(2/3-o)*6}else{c=i}a[u]=c*255}return a};o.hsl.hsv=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=r;var s=Math.max(n,.01);var o;var a;n*=2;r*=n<=1?n:2-n;i*=s<=1?s:2-s;a=(n+r)/2;o=n===0?2*i/(s+i):2*r/(n+r);return[t,o*100,a*100]};o.hsv.rgb=function(e){var t=e[0]/60;var r=e[1]/100;var n=e[2]/100;var i=Math.floor(t)%6;var s=t-Math.floor(t);var o=255*n*(1-r);var a=255*n*(1-r*s);var c=255*n*(1-r*(1-s));n*=255;switch(i){case 0:return[n,c,o];case 1:return[a,n,o];case 2:return[o,n,c];case 3:return[o,a,n];case 4:return[c,o,n];case 5:return[n,o,a]}};o.hsv.hsl=function(e){var t=e[0];var r=e[1]/100;var n=e[2]/100;var i=Math.max(n,.01);var s;var o;var a;a=(2-r)*n;s=(2-r)*i;o=r*i;o/=s<=1?s:2-s;o=o||0;a/=2;return[t,o*100,a*100]};o.hwb.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;var i=r+n;var s;var o;var a;var c;if(i>1){r/=i;n/=i}s=Math.floor(6*t);o=1-n;a=6*t-s;if((s&1)!==0){a=1-a}c=r+a*(o-r);var u;var l;var f;switch(s){default:case 6:case 0:u=o;l=c;f=r;break;case 1:u=c;l=o;f=r;break;case 2:u=r;l=o;f=c;break;case 3:u=r;l=c;f=o;break;case 4:u=c;l=r;f=o;break;case 5:u=o;l=r;f=c;break}return[u*255,l*255,f*255]};o.cmyk.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i=e[3]/100;var s;var o;var a;s=1-Math.min(1,t*(1-i)+i);o=1-Math.min(1,r*(1-i)+i);a=1-Math.min(1,n*(1-i)+i);return[s*255,o*255,a*255]};o.xyz.rgb=function(e){var t=e[0]/100;var r=e[1]/100;var n=e[2]/100;var i;var s;var o;i=t*3.2406+r*-1.5372+n*-.4986;s=t*-.9689+r*1.8758+n*.0415;o=t*.0557+r*-.204+n*1.057;i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;i=Math.min(Math.max(0,i),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[i*255,s*255,o*255]};o.xyz.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;t/=95.047;r/=100;n/=108.883;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;i=116*r-16;s=500*(t-r);o=200*(r-n);return[i,s,o]};o.lab.xyz=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;s=(t+16)/116;i=r/500+s;o=s-n/200;var a=Math.pow(s,3);var c=Math.pow(i,3);var u=Math.pow(o,3);s=a>.008856?a:(s-16/116)/7.787;i=c>.008856?c:(i-16/116)/7.787;o=u>.008856?u:(o-16/116)/7.787;i*=95.047;s*=100;o*=108.883;return[i,s,o]};o.lab.lch=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;i=Math.atan2(n,r);s=i*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+n*n);return[t,o,s]};o.lch.lab=function(e){var t=e[0];var r=e[1];var n=e[2];var i;var s;var o;o=n/360*2*Math.PI;i=r*Math.cos(o);s=r*Math.sin(o);return[t,i,s]};o.rgb.ansi16=function(e){var t=e[0];var r=e[1];var n=e[2];var i=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];i=Math.round(i/50);if(i===0){return 30}var s=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(t/255));if(i===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var t=e[0];var r=e[1];var n=e[2];if(t===r&&r===n){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}var i=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return i};o.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7){if(e>50){t+=3.5}t=t/10.5*255;return[t,t,t]}var r=(~~(e>50)+1)*.5;var n=(t&1)*r*255;var i=(t>>1&1)*r*255;var s=(t>>2&1)*r*255;return[n,i,s]};o.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r;var n=Math.floor(e/36)/5*255;var i=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[n,i,s]};o.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t){return[0,0,0]}var r=t[0];if(t[0].length===3){r=r.split("").map(function(e){return e+e}).join("")}var n=parseInt(r,16);var i=n>>16&255;var s=n>>8&255;var o=n&255;return[i,s,o]};o.rgb.hcg=function(e){var t=e[0]/255;var r=e[1]/255;var n=e[2]/255;var i=Math.max(Math.max(t,r),n);var s=Math.min(Math.min(t,r),n);var o=i-s;var a;var c;if(o<1){a=s/(1-o)}else{a=0}if(o<=0){c=0}else if(i===t){c=(r-n)/o%6}else if(i===r){c=2+(n-t)/o}else{c=4+(t-r)/o+4}c/=6;c%=1;return[c*360,o*100,a*100]};o.hsl.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1;var i=0;if(r<.5){n=2*t*r}else{n=2*t*(1-r)}if(n<1){i=(r-.5*n)/(1-n)}return[e[0],n*100,i*100]};o.hsv.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=t*r;var i=0;if(n<1){i=(r-n)/(1-n)}return[e[0],n*100,i*100]};o.hcg.rgb=function(e){var t=e[0]/360;var r=e[1]/100;var n=e[2]/100;if(r===0){return[n*255,n*255,n*255]}var i=[0,0,0];var s=t%1*6;var o=s%1;var a=1-o;var c=0;switch(Math.floor(s)){case 0:i[0]=1;i[1]=o;i[2]=0;break;case 1:i[0]=a;i[1]=1;i[2]=0;break;case 2:i[0]=0;i[1]=1;i[2]=o;break;case 3:i[0]=0;i[1]=a;i[2]=1;break;case 4:i[0]=o;i[1]=0;i[2]=1;break;default:i[0]=1;i[1]=0;i[2]=a}c=(1-r)*n;return[(r*i[0]+c)*255,(r*i[1]+c)*255,(r*i[2]+c)*255]};o.hcg.hsv=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);var i=0;if(n>0){i=t/n}return[e[0],i*100,n*100]};o.hcg.hsl=function(e){var t=e[1]/100;var r=e[2]/100;var n=r*(1-t)+.5*t;var i=0;if(n>0&&n<.5){i=t/(2*n)}else if(n>=.5&&n<1){i=t/(2*(1-n))}return[e[0],i*100,n*100]};o.hcg.hwb=function(e){var t=e[1]/100;var r=e[2]/100;var n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};o.hwb.hcg=function(e){var t=e[1]/100;var r=e[2]/100;var n=1-r;var i=n-t;var s=0;if(i<1){s=(n-i)/(1-i)}return[e[0],i*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255;var r=(t<<16)+(t<<8)+t;var n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};o.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}},721:(e,t,r)=>{var n=r(2259);var i=r(5161);var s={};var o=Object.keys(n);function wrapRaw(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}return e(t)};if("conversion"in e){t.conversion=e.conversion}return t}function wrapRounded(e){var t=function(t){if(t===undefined||t===null){return t}if(arguments.length>1){t=Array.prototype.slice.call(arguments)}var r=e(t);if(typeof r==="object"){for(var n=r.length,i=0;i<n;i++){r[i]=Math.round(r[i])}}return r};if("conversion"in e){t.conversion=e.conversion}return t}o.forEach(function(e){s[e]={};Object.defineProperty(s[e],"channels",{value:n[e].channels});Object.defineProperty(s[e],"labels",{value:n[e].labels});var t=i(e);var r=Object.keys(t);r.forEach(function(r){var n=t[r];s[e][r]=wrapRounded(n);s[e][r].raw=wrapRaw(n)})});e.exports=s},5161:(e,t,r)=>{var n=r(2259);function buildGraph(){var e={};var t=Object.keys(n);for(var r=t.length,i=0;i<r;i++){e[t[i]]={distance:-1,parent:null}}return e}function deriveBFS(e){var t=buildGraph();var r=[e];t[e].distance=0;while(r.length){var i=r.pop();var s=Object.keys(n[i]);for(var o=s.length,a=0;a<o;a++){var c=s[a];var u=t[c];if(u.distance===-1){u.distance=t[i].distance+1;u.parent=i;r.unshift(c)}}}return t}function link(e,t){return function(r){return t(e(r))}}function wrapConversion(e,t){var r=[t[e].parent,e];var i=n[t[e].parent][e];var s=t[e].parent;while(t[s].parent){r.unshift(t[s].parent);i=link(n[t[s].parent][s],i);s=t[s].parent}i.conversion=r;return i}e.exports=function(e){var t=deriveBFS(e);var r={};var n=Object.keys(t);for(var i=n.length,s=0;s<i;s++){var o=n[s];var a=t[o];if(a.parent===null){continue}r[o]=wrapConversion(o,t)}return r}},4524:e=>{"use strict";e.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]}},8138:(e,t,r)=>{var n=r(8614).EventEmitter;var i=r(3129).spawn;var s=r(5622);var o=s.dirname;var a=s.basename;var c=r(5747);r(1669).inherits(Command,n);t=e.exports=new Command;t.Command=Command;t.Option=Option;function Option(e,t){this.flags=e;this.required=e.indexOf("<")>=0;this.optional=e.indexOf("[")>=0;this.bool=e.indexOf("-no-")===-1;e=e.split(/[ ,|]+/);if(e.length>1&&!/^[[<]/.test(e[1]))this.short=e.shift();this.long=e.shift();this.description=t||""}Option.prototype.name=function(){return this.long.replace("--","").replace("no-","")};Option.prototype.attributeName=function(){return camelcase(this.name())};Option.prototype.is=function(e){return this.short===e||this.long===e};function Command(e){this.commands=[];this.options=[];this._execs={};this._allowUnknownOption=false;this._args=[];this._name=e||""}Command.prototype.command=function(e,t,r){if(typeof t==="object"&&t!==null){r=t;t=null}r=r||{};var n=e.split(/ +/);var i=new Command(n.shift());if(t){i.description(t);this.executables=true;this._execs[i._name]=true;if(r.isDefault)this.defaultExecutable=i._name}i._noHelp=!!r.noHelp;this.commands.push(i);i.parseExpectedArgs(n);i.parent=this;if(t)return this;return i};Command.prototype.arguments=function(e){return this.parseExpectedArgs(e.split(/ +/))};Command.prototype.addImplicitHelpCommand=function(){this.command("help [cmd]","display help for [cmd]")};Command.prototype.parseExpectedArgs=function(e){if(!e.length)return;var t=this;e.forEach(function(e){var r={required:false,name:"",variadic:false};switch(e[0]){case"<":r.required=true;r.name=e.slice(1,-1);break;case"[":r.name=e.slice(1,-1);break}if(r.name.length>3&&r.name.slice(-3)==="..."){r.variadic=true;r.name=r.name.slice(0,-3)}if(r.name){t._args.push(r)}});return this};Command.prototype.action=function(e){var t=this;var r=function(r,n){r=r||[];n=n||[];var i=t.parseOptions(n);outputHelpIfNecessary(t,i.unknown);if(i.unknown.length>0){t.unknownOption(i.unknown[0])}if(i.args.length)r=i.args.concat(r);t._args.forEach(function(e,n){if(e.required&&r[n]==null){t.missingArgument(e.name)}else if(e.variadic){if(n!==t._args.length-1){t.variadicArgNotLast(e.name)}r[n]=r.splice(n)}});if(t._args.length){r[t._args.length]=t}else{r.push(t)}e.apply(t,r)};var n=this.parent||this;var i=n===this?"*":this._name;n.on("command:"+i,r);if(this._alias)n.on("command:"+this._alias,r);return this};Command.prototype.option=function(e,t,r,n){var i=this,s=new Option(e,t),o=s.name(),a=s.attributeName();if(typeof r!=="function"){if(r instanceof RegExp){var c=r;r=function(e,t){var r=c.exec(e);return r?r[0]:t}}else{n=r;r=null}}if(!s.bool||s.optional||s.required){if(!s.bool)n=true;if(n!==undefined){i[a]=n;s.defaultValue=n}}this.options.push(s);this.on("option:"+o,function(e){if(e!==null&&r){e=r(e,i[a]===undefined?n:i[a])}if(typeof i[a]==="boolean"||typeof i[a]==="undefined"){if(e==null){i[a]=s.bool?n||true:false}else{i[a]=e}}else if(e!==null){i[a]=e}});return this};Command.prototype.allowUnknownOption=function(e){this._allowUnknownOption=arguments.length===0||e;return this};Command.prototype.parse=function(e){if(this.executables)this.addImplicitHelpCommand();this.rawArgs=e;this._name=this._name||a(e[1],".js");if(this.executables&&e.length<3&&!this.defaultExecutable){e.push("--help")}var t=this.parseOptions(this.normalize(e.slice(2)));var r=this.args=t.args;var n=this.parseArgs(this.args,t.unknown);var i=n.args[0];var s=null;if(i){s=this.commands.filter(function(e){return e.alias()===i})[0]}if(this._execs[i]&&typeof this._execs[i]!=="function"){return this.executeSubCommand(e,r,t.unknown)}else if(s){r[0]=s._name;return this.executeSubCommand(e,r,t.unknown)}else if(this.defaultExecutable){r.unshift(this.defaultExecutable);return this.executeSubCommand(e,r,t.unknown)}return n};Command.prototype.executeSubCommand=function(e,t,r){t=t.concat(r);if(!t.length)this.help();if(t[0]==="help"&&t.length===1)this.help();if(t[0]==="help"){t[0]=t[1];t[1]="--help"}var n=e[1];var u=a(n,s.extname(n))+"-"+t[0];var l;var f=c.realpathSync(n);l=o(f);var h=s.join(l,u);var p=false;if(exists(h+".js")){u=h+".js";p=true}else if(exists(h+".ts")){u=h+".ts";p=true}else if(exists(h)){u=h}t=t.slice(1);var d;if(process.platform!=="win32"){if(p){t.unshift(u);t=(process.execArgv||[]).concat(t);d=i(process.argv[0],t,{stdio:"inherit",customFds:[0,1,2]})}else{d=i(u,t,{stdio:"inherit",customFds:[0,1,2]})}}else{t.unshift(u);d=i(process.execPath,t,{stdio:"inherit"})}var m=["SIGUSR1","SIGUSR2","SIGTERM","SIGINT","SIGHUP"];m.forEach(function(e){process.on(e,function(){if(d.killed===false&&d.exitCode===null){d.kill(e)}})});d.on("close",process.exit.bind(process));d.on("error",function(e){if(e.code==="ENOENT"){console.error("error: %s(1) does not exist, try --help",u)}else if(e.code==="EACCES"){console.error("error: %s(1) not executable. try chmod or run with root",u)}process.exit(1)});this.runningCommand=d};Command.prototype.normalize=function(e){var t=[],r,n,i;for(var s=0,o=e.length;s<o;++s){r=e[s];if(s>0){n=this.optionFor(e[s-1])}if(r==="--"){t=t.concat(e.slice(s));break}else if(n&&n.required){t.push(r)}else if(r.length>1&&r[0]==="-"&&r[1]!=="-"){r.slice(1).split("").forEach(function(e){t.push("-"+e)})}else if(/^--/.test(r)&&~(i=r.indexOf("="))){t.push(r.slice(0,i),r.slice(i+1))}else{t.push(r)}}return t};Command.prototype.parseArgs=function(e,t){var r;if(e.length){r=e[0];if(this.listeners("command:"+r).length){this.emit("command:"+e.shift(),e,t)}else{this.emit("command:*",e)}}else{outputHelpIfNecessary(this,t);if(t.length>0){this.unknownOption(t[0])}if(this.commands.length===0&&this._args.filter(function(e){return e.required}).length===0){this.emit("command:*")}}return this};Command.prototype.optionFor=function(e){for(var t=0,r=this.options.length;t<r;++t){if(this.options[t].is(e)){return this.options[t]}}};Command.prototype.parseOptions=function(e){var t=[],r=e.length,n,i,s;var o=[];for(var a=0;a<r;++a){s=e[a];if(n){t.push(s);continue}if(s==="--"){n=true;continue}i=this.optionFor(s);if(i){if(i.required){s=e[++a];if(s==null)return this.optionMissingArgument(i);this.emit("option:"+i.name(),s)}else if(i.optional){s=e[a+1];if(s==null||s[0]==="-"&&s!=="-"){s=null}else{++a}this.emit("option:"+i.name(),s)}else{this.emit("option:"+i.name())}continue}if(s.length>1&&s[0]==="-"){o.push(s);if(a+1<e.length&&e[a+1][0]!=="-"){o.push(e[++a])}continue}t.push(s)}return{args:t,unknown:o}};Command.prototype.opts=function(){var e={},t=this.options.length;for(var r=0;r<t;r++){var n=this.options[r].attributeName();e[n]=n===this._versionOptionName?this._version:this[n]}return e};Command.prototype.missingArgument=function(e){console.error("error: missing required argument `%s'",e);process.exit(1)};Command.prototype.optionMissingArgument=function(e,t){if(t){console.error("error: option `%s' argument missing, got `%s'",e.flags,t)}else{console.error("error: option `%s' argument missing",e.flags)}process.exit(1)};Command.prototype.unknownOption=function(e){if(this._allowUnknownOption)return;console.error("error: unknown option `%s'",e);process.exit(1)};Command.prototype.variadicArgNotLast=function(e){console.error("error: variadic arguments must be last `%s'",e);process.exit(1)};Command.prototype.version=function(e,t){if(arguments.length===0)return this._version;this._version=e;t=t||"-V, --version";var r=new Option(t,"output the version number");this._versionOptionName=r.long.substr(2)||"version";this.options.push(r);this.on("option:"+this._versionOptionName,function(){process.stdout.write(e+"\n");process.exit(0)});return this};Command.prototype.description=function(e,t){if(arguments.length===0)return this._description;this._description=e;this._argsDescription=t;return this};Command.prototype.alias=function(e){var t=this;if(this.commands.length!==0){t=this.commands[this.commands.length-1]}if(arguments.length===0)return t._alias;if(e===t._name)throw new Error("Command alias can't be the same as its name");t._alias=e;return this};Command.prototype.usage=function(e){var t=this._args.map(function(e){return humanReadableArgName(e)});var r="[options]"+(this.commands.length?" [command]":"")+(this._args.length?" "+t.join(" "):"");if(arguments.length===0)return this._usage||r;this._usage=e;return this};Command.prototype.name=function(e){if(arguments.length===0)return this._name;this._name=e;return this};Command.prototype.prepareCommands=function(){return this.commands.filter(function(e){return!e._noHelp}).map(function(e){var t=e._args.map(function(e){return humanReadableArgName(e)}).join(" ");return[e._name+(e._alias?"|"+e._alias:"")+(e.options.length?" [options]":"")+(t?" "+t:""),e._description]})};Command.prototype.largestCommandLength=function(){var e=this.prepareCommands();return e.reduce(function(e,t){return Math.max(e,t[0].length)},0)};Command.prototype.largestOptionLength=function(){var e=[].slice.call(this.options);e.push({flags:"-h, --help"});return e.reduce(function(e,t){return Math.max(e,t.flags.length)},0)};Command.prototype.largestArgLength=function(){return this._args.reduce(function(e,t){return Math.max(e,t.name.length)},0)};Command.prototype.padWidth=function(){var e=this.largestOptionLength();if(this._argsDescription&&this._args.length){if(this.largestArgLength()>e){e=this.largestArgLength()}}if(this.commands&&this.commands.length){if(this.largestCommandLength()>e){e=this.largestCommandLength()}}return e};Command.prototype.optionHelp=function(){var e=this.padWidth();return this.options.map(function(t){return pad(t.flags,e)+" "+t.description+(t.bool&&t.defaultValue!==undefined?" (default: "+JSON.stringify(t.defaultValue)+")":"")}).concat([pad("-h, --help",e)+" "+"output usage information"]).join("\n")};Command.prototype.commandHelp=function(){if(!this.commands.length)return"";var e=this.prepareCommands();var t=this.padWidth();return["Commands:",e.map(function(e){var r=e[1]?" "+e[1]:"";return(r?pad(e[0],t):e[0])+r}).join("\n").replace(/^/gm," "),""].join("\n")};Command.prototype.helpInformation=function(){var e=[];if(this._description){e=[this._description,""];var t=this._argsDescription;if(t&&this._args.length){var r=this.padWidth();e.push("Arguments:");e.push("");this._args.forEach(function(n){e.push(" "+pad(n.name,r)+" "+t[n.name])});e.push("")}}var n=this._name;if(this._alias){n=n+"|"+this._alias}var i=["Usage: "+n+" "+this.usage(),""];var s=[];var o=this.commandHelp();if(o)s=[o];var a=["Options:",""+this.optionHelp().replace(/^/gm," "),""];return i.concat(e).concat(a).concat(s).join("\n")};Command.prototype.outputHelp=function(e){if(!e){e=function(e){return e}}process.stdout.write(e(this.helpInformation()));this.emit("--help")};Command.prototype.help=function(e){this.outputHelp(e);process.exit()};function camelcase(e){return e.split("-").reduce(function(e,t){return e+t[0].toUpperCase()+t.slice(1)})}function pad(e,t){var r=Math.max(0,t-e.length);return e+Array(r+1).join(" ")}function outputHelpIfNecessary(e,t){t=t||[];for(var r=0;r<t.length;r++){if(t[r]==="--help"||t[r]==="-h"){e.outputHelp();process.exit(0)}}}function humanReadableArgName(e){var t=e.name+(e.variadic===true?"...":"");return e.required?"<"+t+">":"["+t+"]"}function exists(e){try{if(c.statSync(e).isFile()){return true}}catch(e){return false}}},7618:(e,t,r)=>{"use strict";const n=r(3129);const i=r(5025);const s=r(2773);function spawn(e,t,r){const o=i(e,t,r);const a=n.spawn(o.command,o.args,o.options);s.hookChildProcess(a,o);return a}function spawnSync(e,t,r){const o=i(e,t,r);const a=n.spawnSync(o.command,o.args,o.options);a.error=a.error||s.verifyENOENTSync(a.status,o);return a}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=s},2773:e=>{"use strict";const t=process.platform==="win32";function notFoundError(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function hookChildProcess(e,r){if(!t){return}const n=e.emit;e.emit=function(t,i){if(t==="exit"){const t=verifyENOENT(i,r,"spawn");if(t){return n.call(e,"error",t)}}return n.apply(e,arguments)}}function verifyENOENT(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawn")}return null}function verifyENOENTSync(e,r){if(t&&e===1&&!r.file){return notFoundError(r.original,"spawnSync")}return null}e.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},5025:(e,t,r)=>{"use strict";const n=r(5622);const i=r(7369);const s=r(8838);const o=r(1880);const a=r(2655);const c=r(2879);const u=process.platform==="win32";const l=/\.(?:com|exe)$/i;const f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;const h=i(()=>c.satisfies(process.version,"^4.8.0 || ^5.7.0 || >= 6.0.0",true))||false;function detectShebang(e){e.file=s(e);const t=e.file&&a(e.file);if(t){e.args.unshift(e.file);e.command=t;return s(e)}return e.file}function parseNonShell(e){if(!u){return e}const t=detectShebang(e);const r=!l.test(t);if(e.options.forceShell||r){const r=f.test(t);e.command=n.normalize(e.command);e.command=o.command(e.command);e.args=e.args.map(e=>o.argument(e,r));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`];e.command=process.env.comspec||"cmd.exe";e.options.windowsVerbatimArguments=true}return e}function parseShell(e){if(h){return e}const t=[e.command].concat(e.args).join(" ");if(u){e.command=typeof e.options.shell==="string"?e.options.shell:process.env.comspec||"cmd.exe";e.args=["/d","/s","/c",`"${t}"`];e.options.windowsVerbatimArguments=true}else{if(typeof e.options.shell==="string"){e.command=e.options.shell}else if(process.platform==="android"){e.command="/system/bin/sh"}else{e.command="/bin/sh"}e.args=["-c",t]}return e}function parse(e,t,r){if(t&&!Array.isArray(t)){r=t;t=null}t=t?t.slice(0):[];r=Object.assign({},r);const n={command:e,args:t,options:r,file:undefined,original:{command:e,args:t}};return r.shell?parseShell(n):parseNonShell(n)}e.exports=parse},1880:e=>{"use strict";const t=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(e){e=e.replace(t,"^$1");return e}function escapeArgument(e,r){e=`${e}`;e=e.replace(/(\\*)"/g,'$1$1\\"');e=e.replace(/(\\*)$/,"$1$1");e=`"${e}"`;e=e.replace(t,"^$1");if(r){e=e.replace(t,"^$1")}return e}e.exports.command=escapeCommand;e.exports.argument=escapeArgument},2655:(e,t,r)=>{"use strict";const n=r(5747);const i=r(4970);function readShebang(e){const t=150;let r;if(Buffer.alloc){r=Buffer.alloc(t)}else{r=new Buffer(t);r.fill(0)}let s;try{s=n.openSync(e,"r");n.readSync(s,r,0,t,0);n.closeSync(s)}catch(e){}return i(r.toString())}e.exports=readShebang},8838:(e,t,r)=>{"use strict";const n=r(5622);const i=r(6732);const s=r(4725)();function resolveCommandAttempt(e,t){const r=process.cwd();const o=e.options.cwd!=null;if(o){try{process.chdir(e.options.cwd)}catch(e){}}let a;try{a=i.sync(e.command,{path:(e.options.env||process.env)[s],pathExt:t?n.delimiter:undefined})}catch(e){}finally{process.chdir(r)}if(a){a=n.resolve(o?e.options.cwd:"",a)}return a}function resolveCommand(e){return resolveCommandAttempt(e)||resolveCommandAttempt(e,true)}e.exports=resolveCommand},6748:(e,t,r)=>{"use strict";const n=r(448);const i=r(8614).EventEmitter;const s=r(5747);const o=process.binding("fs");const a=o.writeBuffers;const c=o.FSReqWrap||o.FSReqCallback;const u=Symbol("_autoClose");const l=Symbol("_close");const f=Symbol("_ended");const h=Symbol("_fd");const p=Symbol("_finished");const d=Symbol("_flags");const m=Symbol("_flush");const y=Symbol("_handleChunk");const v=Symbol("_makeBuf");const g=Symbol("_mode");const b=Symbol("_needDrain");const w=Symbol("_onerror");const S=Symbol("_onopen");const x=Symbol("_onread");const E=Symbol("_onwrite");const _=Symbol("_open");const O=Symbol("_path");const R=Symbol("_pos");const A=Symbol("_queue");const C=Symbol("_read");const P=Symbol("_readSize");const T=Symbol("_reading");const j=Symbol("_remain");const k=Symbol("_size");const N=Symbol("_write");const I=Symbol("_writing");const L=Symbol("_defaultFlag");class ReadStream extends n{constructor(e,t){t=t||{};super(t);this.writable=false;if(typeof e!=="string")throw new TypeError("path must be a string");this[h]=typeof t.fd==="number"?t.fd:null;this[O]=e;this[P]=t.readSize||16*1024*1024;this[T]=false;this[k]=typeof t.size==="number"?t.size:Infinity;this[j]=this[k];this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;if(typeof this[h]==="number")this[C]();else this[_]()}get fd(){return this[h]}get path(){return this[O]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[_](){s.open(this[O],"r",(e,t)=>this[S](e,t))}[S](e,t){if(e)this[w](e);else{this[h]=t;this.emit("open",t);this[C]()}}[v](){return Buffer.allocUnsafe(Math.min(this[P],this[j]))}[C](){if(!this[T]){this[T]=true;const e=this[v]();if(e.length===0)return process.nextTick(()=>this[x](null,0,e));s.read(this[h],e,0,e.length,null,(e,t,r)=>this[x](e,t,r))}}[x](e,t,r){this[T]=false;if(e)this[w](e);else if(this[y](t,r))this[C]()}[l](){if(this[u]&&typeof this[h]==="number"){s.close(this[h],e=>this.emit("close"));this[h]=null}}[w](e){this[T]=true;this[l]();this.emit("error",e)}[y](e,t){let r=false;this[j]-=e;if(e>0)r=super.write(e<t.length?t.slice(0,e):t);if(e===0||this[j]<=0){r=false;this[l]();super.end()}return r}emit(e,t){switch(e){case"prefinish":case"finish":break;case"drain":if(typeof this[h]==="number")this[C]();break;default:return super.emit(e,t)}}}class ReadStreamSync extends ReadStream{[_](){let e=true;try{this[S](null,s.openSync(this[O],"r"));e=false}finally{if(e)this[l]()}}[C](){let e=true;try{if(!this[T]){this[T]=true;do{const e=this[v]();const t=e.length===0?0:s.readSync(this[h],e,0,e.length,null);if(!this[y](t,e))break}while(true);this[T]=false}e=false}finally{if(e)this[l]()}}[l](){if(this[u]&&typeof this[h]==="number"){try{s.closeSync(this[h])}catch(e){}this[h]=null;this.emit("close")}}}class WriteStream extends i{constructor(e,t){t=t||{};super(t);this.readable=false;this[I]=false;this[f]=false;this[b]=false;this[A]=[];this[O]=e;this[h]=typeof t.fd==="number"?t.fd:null;this[g]=t.mode===undefined?438:t.mode;this[R]=typeof t.start==="number"?t.start:null;this[u]=typeof t.autoClose==="boolean"?t.autoClose:true;const r=this[R]!==null?"r+":"w";this[L]=t.flags===undefined;this[d]=this[L]?r:t.flags;if(this[h]===null)this[_]()}get fd(){return this[h]}get path(){return this[O]}[w](e){this[l]();this[I]=true;this.emit("error",e)}[_](){s.open(this[O],this[d],this[g],(e,t)=>this[S](e,t))}[S](e,t){if(this[L]&&this[d]==="r+"&&e&&e.code==="ENOENT"){this[d]="w";this[_]()}else if(e)this[w](e);else{this[h]=t;this.emit("open",t);this[m]()}}end(e,t){if(e)this.write(e,t);this[f]=true;if(!this[I]&&!this[A].length&&typeof this[h]==="number")this[E](null,0)}write(e,t){if(typeof e==="string")e=new Buffer(e,t);if(this[f]){this.emit("error",new Error("write() after end()"));return false}if(this[h]===null||this[I]||this[A].length){this[A].push(e);this[b]=true;return false}this[I]=true;this[N](e);return true}[N](e){s.write(this[h],e,0,e.length,this[R],(e,t)=>this[E](e,t))}[E](e,t){if(e)this[w](e);else{if(this[R]!==null)this[R]+=t;if(this[A].length)this[m]();else{this[I]=false;if(this[f]&&!this[p]){this[p]=true;this[l]();this.emit("finish")}else if(this[b]){this[b]=false;this.emit("drain")}}}}[m](){if(this[A].length===0){if(this[f])this[E](null,0)}else if(this[A].length===1)this[N](this[A].pop());else{const e=this[A];this[A]=[];D(this[h],e,this[R],(e,t)=>this[E](e,t))}}[l](){if(this[u]&&typeof this[h]==="number"){s.close(this[h],e=>this.emit("close"));this[h]=null}}}class WriteStreamSync extends WriteStream{[_](){let e;try{e=s.openSync(this[O],this[d],this[g])}catch(e){if(this[L]&&this[d]==="r+"&&e&&e.code==="ENOENT"){this[d]="w";return this[_]()}else throw e}this[S](null,e)}[l](){if(this[u]&&typeof this[h]==="number"){try{s.closeSync(this[h])}catch(e){}this[h]=null;this.emit("close")}}[N](e){try{this[E](null,s.writeSync(this[h],e,0,e.length,this[R]))}catch(e){this[E](e,0)}}}const D=(e,t,r,n)=>{const i=(e,r)=>n(e,r,t);const s=new c;s.oncomplete=i;o.writeBuffers(e,t,r,s)};t.ReadStream=ReadStream;t.ReadStreamSync=ReadStreamSync;t.WriteStream=WriteStream;t.WriteStreamSync=WriteStreamSync},1135:e=>{"use strict";e.exports=((e,t)=>{t=t||process.argv;const r=e.startsWith("-")?"":e.length===1?"-":"--";const n=t.indexOf(r+e);const i=t.indexOf("--");return n!==-1&&(i===-1?true:n<i)})},448:(e,t,r)=>{"use strict";const n=r(8614);const i=r(5831);const s=r(4304).StringDecoder;const o=Symbol("EOF");const a=Symbol("maybeEmitEnd");const c=Symbol("emittedEnd");const u=Symbol("emittingEnd");const l=Symbol("closed");const f=Symbol("read");const h=Symbol("flush");const p=Symbol("flushChunk");const d=Symbol("encoding");const m=Symbol("decoder");const y=Symbol("flowing");const v=Symbol("paused");const g=Symbol("resume");const b=Symbol("bufferLength");const w=Symbol("bufferPush");const S=Symbol("bufferShift");const x=Symbol("objectMode");const E=Symbol("destroyed");const _=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const O=_&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const R=_&&Symbol.iterator||Symbol("iterator not implemented");const A=Buffer.alloc?Buffer:r(3118).Buffer;const C=e=>e==="end"||e==="finish"||e==="prefinish";const P=e=>e instanceof ArrayBuffer||typeof e==="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0;const T=e=>!A.isBuffer(e)&&ArrayBuffer.isView(e);e.exports=class Minipass extends n{constructor(e){super();this[y]=false;this[v]=false;this.pipes=new i;this.buffer=new i;this[x]=e&&e.objectMode||false;if(this[x])this[d]=null;else this[d]=e&&e.encoding||null;if(this[d]==="buffer")this[d]=null;this[m]=this[d]?new s(this[d]):null;this[o]=false;this[c]=false;this[u]=false;this[l]=false;this.writable=true;this.readable=true;this[b]=0;this[E]=false}get bufferLength(){return this[b]}get encoding(){return this[d]}set encoding(e){if(this[x])throw new Error("cannot set encoding in objectMode");if(this[d]&&e!==this[d]&&(this[m]&&this[m].lastNeed||this[b]))throw new Error("cannot change encoding");if(this[d]!==e){this[m]=e?new s(e):null;if(this.buffer.length)this.buffer=this.buffer.map(e=>this[m].write(e))}this[d]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[x]}set objectMode(e){this[x]=this[x]||!!e}write(e,t,r){if(this[o])throw new Error("write after end");if(this[E]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof t==="function")r=t,t="utf8";if(!t)t="utf8";if(!this[x]&&!A.isBuffer(e)){if(T(e))e=A.from(e.buffer,e.byteOffset,e.byteLength);else if(P(e))e=A.from(e);else if(typeof e!=="string")this.objectMode=true}if(!this.objectMode&&!e.length){const e=this.flowing;if(this[b]!==0)this.emit("readable");if(r)r();return e}if(typeof e==="string"&&!this[x]&&!(t===this[d]&&!this[m].lastNeed)){e=A.from(e,t)}if(A.isBuffer(e)&&this[d])e=this[m].write(e);try{return this.flowing?(this.emit("data",e),this.flowing):(this[w](e),false)}finally{if(this[b]!==0)this.emit("readable");if(r)r()}}read(e){if(this[E])return null;try{if(this[b]===0||e===0||e>this[b])return null;if(this[x])e=null;if(this.buffer.length>1&&!this[x]){if(this.encoding)this.buffer=new i([Array.from(this.buffer).join("")]);else this.buffer=new i([A.concat(Array.from(this.buffer),this[b])])}return this[f](e||null,this.buffer.head.value)}finally{this[a]()}}[f](e,t){if(e===t.length||e===null)this[S]();else{this.buffer.head.value=t.slice(e);t=t.slice(0,e);this[b]-=e}this.emit("data",t);if(!this.buffer.length&&!this[o])this.emit("drain");return t}end(e,t,r){if(typeof e==="function")r=e,e=null;if(typeof t==="function")r=t,t="utf8";if(e)this.write(e,t);if(r)this.once("end",r);this[o]=true;this.writable=false;if(this.flowing||!this[v])this[a]();return this}[g](){if(this[E])return;this[v]=false;this[y]=true;this.emit("resume");if(this.buffer.length)this[h]();else if(this[o])this[a]();else this.emit("drain")}resume(){return this[g]()}pause(){this[y]=false;this[v]=true}get destroyed(){return this[E]}get flowing(){return this[y]}get paused(){return this[v]}[w](e){if(this[x])this[b]+=1;else this[b]+=e.length;return this.buffer.push(e)}[S](){if(this.buffer.length){if(this[x])this[b]-=1;else this[b]-=this.buffer.head.value.length}return this.buffer.shift()}[h](){do{}while(this[p](this[S]()));if(!this.buffer.length&&!this[o])this.emit("drain")}[p](e){return e?(this.emit("data",e),this.flowing):false}pipe(e,t){if(this[E])return;const r=this[c];t=t||{};if(e===process.stdout||e===process.stderr)t.end=false;else t.end=t.end!==false;const n={dest:e,opts:t,ondrain:e=>this[g]()};this.pipes.push(n);e.on("drain",n.ondrain);this[g]();if(r&&n.opts.end)n.dest.end();return e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{if(e==="data"&&!this.pipes.length&&!this.flowing)this[g]();else if(C(e)&&this[c]){super.emit(e);this.removeAllListeners(e)}}}get emittedEnd(){return this[c]}[a](){if(!this[u]&&!this[c]&&!this[E]&&this.buffer.length===0&&this[o]){this[u]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[l])this.emit("close");this[u]=false}}emit(e,t){if(e!=="error"&&e!=="close"&&e!==E&&this[E])return;else if(e==="data"){if(!t)return;if(this.pipes.length)this.pipes.forEach(e=>e.dest.write(t)===false&&this.pause())}else if(e==="end"){if(this[c]===true)return;this[c]=true;this.readable=false;if(this[m]){t=this[m].end();if(t){this.pipes.forEach(e=>e.dest.write(t));super.emit("data",t)}}this.pipes.forEach(e=>{e.dest.removeListener("drain",e.ondrain);if(e.opts.end)e.dest.end()})}else if(e==="close"){this[l]=true;if(!this[c]&&!this[E])return}const r=new Array(arguments.length);r[0]=e;r[1]=t;if(arguments.length>2){for(let e=2;e<arguments.length;e++){r[e]=arguments[e]}}try{return super.emit.apply(this,r)}finally{if(!C(e))this[a]();else this.removeAllListeners(e)}}collect(){const e=[];e.dataLength=0;this.on("data",t=>{e.push(t);e.dataLength+=t.length});return this.promise().then(()=>e)}concat(){return this[x]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[x]?Promise.reject(new Error("cannot concat in objectMode")):this[d]?e.join(""):A.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(E,()=>t(new Error("stream destroyed")));this.on("end",()=>e());this.on("error",e=>t(e))})}[O](){const e=()=>{const e=this.read();if(e!==null)return Promise.resolve({done:false,value:e});if(this[o])return Promise.resolve({done:true});let t=null;let r=null;const n=e=>{this.removeListener("data",i);this.removeListener("end",s);r(e)};const i=e=>{this.removeListener("error",n);this.removeListener("end",s);this.pause();t({value:e,done:!!this[o]})};const s=()=>{this.removeListener("error",n);this.removeListener("data",i);t({done:true})};const a=()=>n(new Error("stream destroyed"));return new Promise((e,o)=>{r=o;t=e;this.once(E,a);this.once("error",n);this.once("end",s);this.once("data",i)})};return{next:e}}[R](){const e=()=>{const e=this.read();const t=e===null;return{value:e,done:t}};return{next:e}}destroy(e){if(this[E]){if(e)this.emit("error",e);else this.emit(E);return this}this[E]=true;this.buffer=new i;this[b]=0;if(typeof this.close==="function"&&!this[l])this.close();if(e)this.emit("error",e);else this.emit(E);return this}static isStream(e){return!!e&&(e instanceof Minipass||e instanceof n&&(typeof e.pipe==="function"||typeof e.write==="function"&&typeof e.end==="function"))}}},3263:(e,t,r)=>{const n=r(8761).constants||{ZLIB_VERNUM:4736};e.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},n))},3808:(e,t,r)=>{"use strict";const n=r(2357);const i=r(4293).Buffer;const s=r(8761);const o=t.constants=r(3263);const a=r(448);const c=i.concat;class ZlibError extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code;this.errno=e.errno;if(!this.code)this.code="ZLIB_ERROR";this.message="zlib: "+e.message;Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}}const u=Symbol("opts");const l=Symbol("flushFlag");const f=Symbol("finishFlushFlag");const h=Symbol("fullFlushFlag");const p=Symbol("handle");const d=Symbol("onError");const m=Symbol("sawError");const y=Symbol("level");const v=Symbol("strategy");const g=Symbol("ended");const b=Symbol("_defaultFullFlush");class ZlibBase extends a{constructor(e,t){if(!e||typeof e!=="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[g]=false;this[u]=e;this[l]=e.flush;this[f]=e.finishFlush;try{this[p]=new s[t](e)}catch(e){throw new ZlibError(e)}this[d]=(e=>{this[m]=true;this.close();this.emit("error",e)});this[p].on("error",e=>this[d](new ZlibError(e)));this.once("end",()=>this.close)}close(){if(this[p]){this[p].close();this[p]=null;this.emit("close")}}reset(){if(!this[m]){n(this[p],"zlib binding closed");return this[p].reset()}}flush(e){if(this.ended)return;if(typeof e!=="number")e=this[h];this.write(Object.assign(i.alloc(0),{[l]:e}))}end(e,t,r){if(e)this.write(e,t);this.flush(this[f]);this[g]=true;return super.end(null,null,r)}get ended(){return this[g]}write(e,t,r){if(typeof t==="function")r=t,t="utf8";if(typeof e==="string")e=i.from(e,t);if(this[m])return;n(this[p],"zlib binding closed");const s=this[p]._handle;const o=s.close;s.close=(()=>{});const a=this[p].close;this[p].close=(()=>{});i.concat=(e=>e);let u;try{const t=typeof e[l]==="number"?e[l]:this[l];u=this[p]._processChunk(e,t);i.concat=c}catch(e){i.concat=c;this[d](new ZlibError(e))}finally{if(this[p]){this[p]._handle=s;s.close=o;this[p].close=a;this[p].removeAllListeners("error")}}let f;if(u){if(Array.isArray(u)&&u.length>0){f=super.write(i.from(u[0]));for(let e=1;e<u.length;e++){f=super.write(u[e])}}else{f=super.write(i.from(u))}}if(r)r();return f}}class Zlib extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.Z_NO_FLUSH;e.finishFlush=e.finishFlush||o.Z_FINISH;super(e,t);this[h]=o.Z_FULL_FLUSH;this[y]=e.level;this[v]=e.strategy}params(e,t){if(this[m])return;if(!this[p])throw new Error("cannot switch params when binding is closed");if(!this[p].params)throw new Error("not supported in this implementation");if(this[y]!==e||this[v]!==t){this.flush(o.Z_SYNC_FLUSH);n(this[p],"zlib binding closed");const r=this[p].flush;this[p].flush=((e,t)=>{this.flush(e);t()});try{this[p].params(e,t)}finally{this[p].flush=r}if(this[p]){this[y]=e;this[v]=t}}}}class Deflate extends Zlib{constructor(e){super(e,"Deflate")}}class Inflate extends Zlib{constructor(e){super(e,"Inflate")}}class Gzip extends Zlib{constructor(e){super(e,"Gzip")}}class Gunzip extends Zlib{constructor(e){super(e,"Gunzip")}}class DeflateRaw extends Zlib{constructor(e){super(e,"DeflateRaw")}}class InflateRaw extends Zlib{constructor(e){super(e,"InflateRaw")}}class Unzip extends Zlib{constructor(e){super(e,"Unzip")}}class Brotli extends ZlibBase{constructor(e,t){e=e||{};e.flush=e.flush||o.BROTLI_OPERATION_PROCESS;e.finishFlush=e.finishFlush||o.BROTLI_OPERATION_FINISH;super(e,t);this[h]=o.BROTLI_OPERATION_FLUSH}}class BrotliCompress extends Brotli{constructor(e){super(e,"BrotliCompress")}}class BrotliDecompress extends Brotli{constructor(e){super(e,"BrotliDecompress")}}t.Deflate=Deflate;t.Inflate=Inflate;t.Gzip=Gzip;t.Gunzip=Gunzip;t.DeflateRaw=DeflateRaw;t.InflateRaw=InflateRaw;t.Unzip=Unzip;if(typeof s.BrotliCompress==="function"){t.BrotliCompress=BrotliCompress;t.BrotliDecompress=BrotliDecompress}else{t.BrotliCompress=t.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}}},8828:(e,t,r)=>{var n=r(5622);var i=r(5747);var s=parseInt("0777",8);e.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(e,t,r,o){if(typeof t==="function"){r=t;t={}}else if(!t||typeof t!=="object"){t={mode:t}}var a=t.mode;var c=t.fs||i;if(a===undefined){a=s}if(!o)o=null;var u=r||function(){};e=n.resolve(e);c.mkdir(e,a,function(r){if(!r){o=o||e;return u(null,o)}switch(r.code){case"ENOENT":if(n.dirname(e)===e)return u(r);mkdirP(n.dirname(e),t,function(r,n){if(r)u(r,n);else mkdirP(e,t,u,n)});break;default:c.stat(e,function(e,t){if(e||!t.isDirectory())u(r,o);else u(null,o)});break}})}mkdirP.sync=function sync(e,t,r){if(!t||typeof t!=="object"){t={mode:t}}var o=t.mode;var a=t.fs||i;if(o===undefined){o=s}if(!r)r=null;e=n.resolve(e);try{a.mkdirSync(e,o);r=r||e}catch(i){switch(i.code){case"ENOENT":r=sync(n.dirname(e),t,r);sync(e,t,r);break;default:var c;try{c=a.statSync(e)}catch(e){throw i}if(!c.isDirectory())throw i;break}}return r}},4725:e=>{"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},8887:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find((t,r)=>r>e&&t instanceof DatePart)}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find((e,r)=>r>t&&e instanceof DatePart)}toString(){return String(this.date)}}e.exports=DatePart},1425:(e,t,r)=>{"use strict";const n=r(8887);const i=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+i(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},5662:(e,t,r)=>{"use strict";const n=r(8887);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},3091:(e,t,r)=>{"use strict";e.exports={DatePart:r(8887),Meridiem:r(9110),Day:r(1425),Hours:r(5662),Milliseconds:r(9266),Minutes:r(1560),Month:r(2755),Seconds:r(2666),Year:r(6244)}},9110:(e,t,r)=>{"use strict";const n=r(8887);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},9266:(e,t,r)=>{"use strict";const n=r(8887);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},1560:(e,t,r)=>{"use strict";const n=r(8887);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},2755:(e,t,r)=>{"use strict";const n=r(8887);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},2666:(e,t,r)=>{"use strict";const n=r(8887);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},6244:(e,t,r)=>{"use strict";const n=r(8887);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},2228:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(332),o=s.cursor;const a=r(9389),c=a.style,u=a.clear,l=a.figures,f=a.strip;const h=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const p=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const d=(e,t)=>{const r=e.findIndex(e=>e.value===t||e.title===t);return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:d(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${l.pointerSmall} ${p(this.choices,this.initial)}`:`${l.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=c.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=u("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=h(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?h(this.choices,this.initial):null}this.fire()}complete(e){var t=this;return _asyncToGenerator(function*(){const r=t.completing=t.suggest(t.input,t.choices);const n=yield r;if(t.completing!==r)return;t.suggestions=n.map((e,t,r)=>({title:p(r,t),value:h(r,t)})).reduce((e,r)=>{if(e[e.length-1].length<t.limit)e[e.length-1].push(r);else e.push([r]);return e},[[]]);t.isFallback=false;t.completing=false;if(!t.suggestions[t.page])t.page=0;if(!t.suggestions.length&&t.fallback){const e=d(t.choices,t.fallback);t.suggestions=[[]];if(e!==undefined)t.suggestions[0].push({title:p(t.choices,e),value:h(t.choices,e)});t.isFallback=true}const i=Math.max(n.length-1,0);t.moveSelect(Math.min(i,t.select));e&&e()})()}reset(){this.input="";this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()});this.render()}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()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(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()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(o.down(this.lineCount));let e=n.bold(`${c.symbol(this.done,this.aborted)} ${this.msg} `)+`${c.delimiter(this.completing)} `;let t=f(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`,"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=d(this.choices,this.fallback);const r=t!==undefined?p(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=u(e);if(this.lineCount&&!this.done){let e=o.up(this.lineCount);e+=o.left+o.to(t);e+=o.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},4923:(e,t,r)=>{"use strict";const n=r(9439);const i=r(332),s=i.cursor;const o=r(6943);const a=r(9389),c=a.clear,u=a.style,l=a.figures;class AutocompleteMultiselectPrompt extends o{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=c("");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(e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true});const t=this.filteredOptions.findIndex(t=>t===e);this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${l.arrowUp}/${l.arrowDown}: Highlight option\n ${l.arrowLeft}/${l.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(l.radioOn):l.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=AutocompleteMultiselectPrompt},2322:(e,t,r)=>{"use strict";const n=r(9439);const i=r(8122);const s=r(9389),o=s.style;const a=r(332),c=a.erase,u=a.cursor;class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(c.line+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},3672:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(9389),o=s.style,a=s.clear,c=s.figures,u=s.strip;const l=r(332),f=l.erase,h=l.cursor;const p=r(3091),d=p.DatePart,m=p.Meridiem,y=p.Day,v=p.Hours,g=p.Milliseconds,b=p.Minutes,w=p.Month,S=p.Seconds,x=p.Year;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 _={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new y(e),3:e=>new w(e),4:e=>new x(e),5:e=>new m(e),6:e=>new v(e),7:e=>new b(e),8:e=>new S(e),9:e=>new g(e)};const O={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 i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(O,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=a("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=E.exec(e)){let e=t.shift();let r=t.findIndex(e=>e!=null);this.parts.push(r in _?_[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e},[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof d));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t==="string"){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){yield e.validate();if(e.error){e.color="red";e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()})()}up(){this.typed="";this.parts[this.cursor].up();this.render()}down(){this.typed="";this.parts[this.cursor].down();this.render()}left(){let e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(e=>e instanceof d));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(h.hide);else this.out.write(f.lines(1));super.render();let e=f.line+(this.lines?f.down(this.lines):"")+h.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce((e,t,r)=>e+`\n${r?` `:c.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.parts.reduce((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t),[]).join("")].join(" ");let i="";if(this.lines){i+=h.up(this.lines);i+=h.left+h.to(u(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},809:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(4305),SelectPrompt:r(7293),TogglePrompt:r(8530),DatePrompt:r(3672),NumberPrompt:r(3016),MultiselectPrompt:r(6943),AutocompletePrompt:r(2228),AutocompleteMultiselectPrompt:r(4923),ConfirmPrompt:r(2322)}},6943:(e,t,r)=>{"use strict";const n=r(9439);const i=r(332),s=i.cursor;const o=r(8122);const a=r(9389),c=a.clear,u=a.figures,l=a.style;class MultiselectPrompt extends o{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.clear=c("");if(!e.overrideRender){this.render()}}reset(){this.value.map(e=>!e.selected);this.cursor=0;this.fire();this.render()}selected(){return this.value.filter(e=>e.selected)}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter(e=>e.selected);if(this.minSelected&&e.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(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${u.arrowUp}/${u.arrowDown}: Highlight option\n ${u.arrowLeft}/${u.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(u.radioOn):u.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map((e,r)=>this.renderOption(t,e,r));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(s.hide);super.render();let e=[l.symbol(this.done,this.aborted),n.bold(this.msg),l.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=c(e)}}e.exports=MultiselectPrompt},3016:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(332),o=s.cursor,a=s.erase;const c=r(9389),u=c.style,l=c.clear,f=c.figures,h=c.strip;const p=/[0-9]/;const d=e=>e!==undefined;const m=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=u.render(e.style);this.msg=e.message;this.initial=d(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=d(e.min)?e.min:-Infinity;this.max=d(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${m(e,this.round)}`);this._value=m(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||p.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}validate(){var e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){yield e.validate();if(e.error){e.color=`red`;e.fire();e.render();return}let t=e.value;e.value=t!==``?t:e.initial;e.done=true;e.aborted=false;e.error=false;e.fire();e.render();e.out.write(`\n`);e.close()})()}up(){this.typed=``;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.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)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;super.render();let e=a.line+(this.lines?a.down(this.lines):``)+o.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce((e,t,r)=>e+`\n${r?` `:f.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[u.symbol(this.done,this.aborted),n.bold(this.msg),u.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let s=``;if(this.lines){s+=o.up(this.lines);s+=o.left+o.to(h(i).length)}this.out.write(e+i+t+s)}}e.exports=NumberPrompt},8122:(e,t,r)=>{"use strict";const n=r(1058);const i=r(9389),s=i.action;const o=r(8614);const a=r(332),c=a.beep,u=a.cursor;const l=r(9439);class Prompt extends o{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=(e,t)=>{let r=s(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=(()=>{this.out.write(u.show);this.in.removeListener("keypress",r);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true});this.in.on("keypress",r)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(c)}render(){this.onRender(l);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},7293:(e,t,r)=>{"use strict";const n=r(9439);const i=r(8122);const s=r(9389),o=s.style,a=s.clear,c=s.figures;const u=r(332),l=u.erase,f=u.cursor;class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.value=(this.choices[this.cursor]||{}).value;this.clear=a("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}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)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(f.hide);else this.out.write(l.lines(this.choices.length+1));super.render();this.out.write([o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(c.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(c.pointer)+" ":" "}return`${i} ${r}`}).join("\n"))}}}e.exports=SelectPrompt},4305:(e,t,r)=>{"use strict";function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(9439);const i=r(8122);const s=r(332),o=s.cursor;const a=r(9389),c=a.style,u=a.clear,l=a.strip,f=a.figures;class TextPrompt extends i{constructor(e={}){super(e);this.transform=c.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=u(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}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 e=this;return _asyncToGenerator(function*(){let t=yield e.validator(e.value);if(typeof t===`string`){e.errorMsg=t;t=false}e.error=!t})()}submit(){var e=this;return _asyncToGenerator(function*(){e.value=e.value||e.initial;yield e.validate();if(e.error){e.red=true;e.fire();e.render();return}e.done=true;e.aborted=false;e.fire();e.render();e.out.write("\n");e.close()})()}next(){if(!this.placeholder)return this.bell();this.value=this.initial;this.cursor=this.rendered.length;this.fire();this.render()}moveCursor(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;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()}render(){if(this.closed)return;super.render();let e=(this.lines?o.down(this.lines):``)+this.clear;this.lines=0;let t=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce((e,t,r)=>e+=`\n${r?" ":f.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let i=``;if(this.lines){i+=o.up(this.lines);i+=o.left+o.to(l(t).length)}i+=o.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=u(t+r)}}e.exports=TextPrompt},8530:(e,t,r)=>{"use strict";const n=r(9439);const i=r(8122);const s=r(9389),o=s.style,a=s.clear;const c=r(332),u=c.cursor,l=c.erase;class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);super.render();this.out.write(l.lines(this.first?1:this.msg.split(/\n/g).length)+u.to(0)+[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},7221:(e,t,r)=>{"use strict";function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};var n=Object.keys(r);if(typeof Object.getOwnPropertySymbols==="function"){n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))}n.forEach(function(t){_defineProperty(e,t,r[t])})}return e}function _defineProperty(e,t,r){if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function asyncGeneratorStep(e,t,r,n,i,s,o){try{var a=e[s](o);var c=a.value}catch(e){r(e);return}if(a.done){t(c)}else{Promise.resolve(c).then(n,i)}}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var s=e.apply(t,r);function _next(e){asyncGeneratorStep(s,n,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(s,n,i,_next,_throw,"throw",e)}_next(undefined)})}}const n=r(6789);const i=["suggest","format","onState","validate","onRender"];const s=()=>{};function prompt(){return _prompt.apply(this,arguments)}function _prompt(){_prompt=_asyncToGenerator(function*(e=[],{onSubmit:t=s,onCancel:r=s}={}){const o={};const a=prompt._override||{};e=[].concat(e);let c,u,l,f,h;const p=function(){var e=_asyncToGenerator(function*(e,t,r=false){if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?yield e.format(t,o):t});return function getFormattedAnswer(t,r){return e.apply(this,arguments)}}();var d=true;var m=false;var y=undefined;try{for(var v=e[Symbol.iterator](),g;!(d=(g=v.next()).done);d=true){u=g.value;var b=u;f=b.name;h=b.type;for(let e in u){if(i.includes(e))continue;let t=u[e];u[e]=typeof t==="function"?yield t(c,_objectSpread({},o),u):t}if(typeof u.message!=="string"){throw new Error("prompt message is required")}var w=u;f=w.name;h=w.type;if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(a[u.name]!==undefined){c=yield p(u,a[u.name]);if(c!==undefined){o[f]=c;continue}}try{c=prompt._injected?getInjectedAnswer(prompt._injected):yield n[h](u);o[f]=c=yield p(u,c,true);l=yield t(u,c,o)}catch(e){l=!(yield r(u,o))}if(l)return o}}catch(e){m=true;y=e}finally{try{if(!d&&v.return!=null){v.return()}}finally{if(m){throw y}}}return o});return _prompt.apply(this,arguments)}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},6789:(e,t,r)=>{"use strict";const n=t;const i=r(809);const s=e=>e;function toPrompt(e,t,r={}){return new Promise((n,o)=>{const a=new i[e](t);const c=r.onAbort||s;const u=r.onSubmit||s;a.on("state",t.onState||s);a.on("submit",e=>n(u(e)));a.on("abort",e=>o(c(e)))})}n.text=(e=>toPrompt("TextPrompt",e));n.password=(e=>{e.style="password";return n.text(e)});n.invisible=(e=>{e.style="invisible";return n.text(e)});n.number=(e=>toPrompt("NumberPrompt",e));n.date=(e=>toPrompt("DatePrompt",e));n.confirm=(e=>toPrompt("ConfirmPrompt",e));n.list=(e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map(e=>e.trim())})});n.toggle=(e=>toPrompt("TogglePrompt",e));n.select=(e=>toPrompt("SelectPrompt",e));n.multiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("MultiselectPrompt",e,{onAbort:t,onSubmit:t})});n.autocompleteMultiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})});const o=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));n.autocomplete=(e=>{e.suggest=e.suggest||o;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)})},753:e=>{"use strict";e.exports=(e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false})},3414:(e,t,r)=>{"use strict";const n=r(991);const i=r(332),s=i.erase,o=i.cursor;const a=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return s.line+o.to(0);let r=0;const n=e.split(/\r?\n/);var i=true;var c=false;var u=undefined;try{for(var l=n[Symbol.iterator](),f;!(i=(f=l.next()).done);i=true){let e=f.value;r+=1+Math.floor(Math.max(a(e)-1,0)/t)}}catch(e){c=true;u=e}finally{try{if(!i&&l.return!=null){l.return()}}finally{if(c){throw u}}}return(s.line+o.prevLine()).repeat(r-1)+s.line+o.to(0)}},5337:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},9389:(e,t,r)=>{"use strict";e.exports={action:r(753),clear:r(3414),style:r(5339),strip:r(991),figures:r(5337)}},991:e=>{"use strict";e.exports=(e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e})},5339:(e,t,r)=>{"use strict";const n=r(9439);const i=r(5337);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const o=e=>s[e]||s.default;const a=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const c=(e,t)=>t?a.aborted:e?a.done:a.default;const u=e=>n.gray(e?i.ellipsis:i.pointerSmall);const l=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:o,symbols:a,symbol:c,delimiter:u,item:l}},7671:(e,t,r)=>{function isNodeLT(e){e=(Array.isArray(e)?e:e.split(".")).map(Number);let t=0,r=process.versions.node.split(".").map(Number);for(;t<e.length;t++){if(r[t]>e[t])return false;if(e[t]>r[t])return true}return false}e.exports=isNodeLT("8.6.0")?r(7221):r(1598)},4124:e=>{"use strict";class DatePart{constructor({token:e,date:t,parts:r,locales:n}){this.token=e;this.date=t||new Date;this.parts=r||[this];this.locales=n||{}}up(){}down(){}next(){const e=this.parts.indexOf(this);return this.parts.find((t,r)=>r>e&&t instanceof DatePart)}setTo(e){}prev(){let e=[].concat(this.parts).reverse();const t=e.indexOf(this);return e.find((e,r)=>r>t&&e instanceof DatePart)}toString(){return String(this.date)}}e.exports=DatePart},6654:(e,t,r)=>{"use strict";const n=r(4124);const i=e=>{e=e%10;return e===1?"st":e===2?"nd":e===3?"rd":"th"};class Day extends n{constructor(e={}){super(e)}up(){this.date.setDate(this.date.getDate()+1)}down(){this.date.setDate(this.date.getDate()-1)}setTo(e){this.date.setDate(parseInt(e.substr(-2)))}toString(){let e=this.date.getDate();let t=this.date.getDay();return this.token==="DD"?String(e).padStart(2,"0"):this.token==="Do"?e+i(e):this.token==="d"?t+1:this.token==="ddd"?this.locales.weekdaysShort[t]:this.token==="dddd"?this.locales.weekdays[t]:e}}e.exports=Day},4345:(e,t,r)=>{"use strict";const n=r(4124);class Hours extends n{constructor(e={}){super(e)}up(){this.date.setHours(this.date.getHours()+1)}down(){this.date.setHours(this.date.getHours()-1)}setTo(e){this.date.setHours(parseInt(e.substr(-2)))}toString(){let e=this.date.getHours();if(/h/.test(this.token))e=e%12||12;return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Hours},2197:(e,t,r)=>{"use strict";e.exports={DatePart:r(4124),Meridiem:r(2481),Day:r(6654),Hours:r(4345),Milliseconds:r(4682),Minutes:r(785),Month:r(9e3),Seconds:r(2175),Year:r(6263)}},2481:(e,t,r)=>{"use strict";const n=r(4124);class Meridiem extends n{constructor(e={}){super(e)}up(){this.date.setHours((this.date.getHours()+12)%24)}down(){this.up()}toString(){let e=this.date.getHours()>12?"pm":"am";return/\A/.test(this.token)?e.toUpperCase():e}}e.exports=Meridiem},4682:(e,t,r)=>{"use strict";const n=r(4124);class Milliseconds extends n{constructor(e={}){super(e)}up(){this.date.setMilliseconds(this.date.getMilliseconds()+1)}down(){this.date.setMilliseconds(this.date.getMilliseconds()-1)}setTo(e){this.date.setMilliseconds(parseInt(e.substr(-this.token.length)))}toString(){return String(this.date.getMilliseconds()).padStart(4,"0").substr(0,this.token.length)}}e.exports=Milliseconds},785:(e,t,r)=>{"use strict";const n=r(4124);class Minutes extends n{constructor(e={}){super(e)}up(){this.date.setMinutes(this.date.getMinutes()+1)}down(){this.date.setMinutes(this.date.getMinutes()-1)}setTo(e){this.date.setMinutes(parseInt(e.substr(-2)))}toString(){let e=this.date.getMinutes();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Minutes},9000:(e,t,r)=>{"use strict";const n=r(4124);class Month extends n{constructor(e={}){super(e)}up(){this.date.setMonth(this.date.getMonth()+1)}down(){this.date.setMonth(this.date.getMonth()-1)}setTo(e){e=parseInt(e.substr(-2))-1;this.date.setMonth(e<0?0:e)}toString(){let e=this.date.getMonth();let t=this.token.length;return t===2?String(e+1).padStart(2,"0"):t===3?this.locales.monthsShort[e]:t===4?this.locales.months[e]:String(e+1)}}e.exports=Month},2175:(e,t,r)=>{"use strict";const n=r(4124);class Seconds extends n{constructor(e={}){super(e)}up(){this.date.setSeconds(this.date.getSeconds()+1)}down(){this.date.setSeconds(this.date.getSeconds()-1)}setTo(e){this.date.setSeconds(parseInt(e.substr(-2)))}toString(){let e=this.date.getSeconds();return this.token.length>1?String(e).padStart(2,"0"):e}}e.exports=Seconds},6263:(e,t,r)=>{"use strict";const n=r(4124);class Year extends n{constructor(e={}){super(e)}up(){this.date.setFullYear(this.date.getFullYear()+1)}down(){this.date.setFullYear(this.date.getFullYear()-1)}setTo(e){this.date.setFullYear(e.substr(-4))}toString(){let e=String(this.date.getFullYear()).padStart(4,"0");return this.token.length===2?e.substr(-2):e}}e.exports=Year},9962:(e,t,r)=>{"use strict";const n=r(9439);const i=r(7112);const{cursor:s}=r(332);const{style:o,clear:a,figures:c,strip:u}=r(2522);const l=(e,t)=>e[t]&&(e[t].value||e[t].title||e[t]);const f=(e,t)=>e[t]&&(e[t].title||e[t].value||e[t]);const h=(e,t)=>{const r=e.findIndex(e=>e.value===t||e.title===t);return r>-1?r:undefined};class AutocompletePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.suggest=e.suggest;this.choices=e.choices;this.initial=typeof e.initial==="number"?e.initial:h(e.choices,e.initial);this.select=this.initial||e.cursor||0;this.fallback=e.fallback||(e.initial!==undefined?`${c.pointerSmall} ${f(this.choices,this.initial)}`:`${c.pointerSmall} ${e.noMatches||"no matches found"}`);this.suggestions=[[]];this.page=0;this.input="";this.limit=e.limit||10;this.cursor=0;this.transform=o.render(e.style);this.scale=this.transform.scale;this.render=this.render.bind(this);this.complete=this.complete.bind(this);this.clear=a("");this.complete(this.render);this.render()}moveSelect(e){this.select=e;if(this.suggestions[this.page].length>0){this.value=l(this.suggestions[this.page],e)}else{this.value=this.initial!==undefined?l(this.choices,this.initial):null}this.fire()}async complete(e){const t=this.completing=this.suggest(this.input,this.choices);const r=await t;if(this.completing!==t)return;this.suggestions=r.map((e,t,r)=>({title:f(r,t),value:l(r,t)})).reduce((e,t)=>{if(e[e.length-1].length<this.limit)e[e.length-1].push(t);else e.push([t]);return e},[[]]);this.isFallback=false;this.completing=false;if(!this.suggestions[this.page])this.page=0;if(!this.suggestions.length&&this.fallback){const e=h(this.choices,this.fallback);this.suggestions=[[]];if(e!==undefined)this.suggestions[0].push({title:f(this.choices,e),value:l(this.choices,e)});this.isFallback=true}const n=Math.max(r.length-1,0);this.moveSelect(Math.min(n,this.select));e&&e()}reset(){this.input="";this.complete(()=>{this.moveSelect(this.initial!==void 0?this.initial:0);this.render()});this.render()}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()}_(e,t){let r=this.input.slice(0,this.cursor);let n=this.input.slice(this.cursor);this.input=`${r}${e}${n}`;this.cursor=r.length+1;this.complete(this.render);this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.input.slice(0,this.cursor-1);let t=this.input.slice(this.cursor);this.input=`${e}${t}`;this.complete(this.render);this.cursor=this.cursor-1;this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length)return this.bell();let e=this.input.slice(0,this.cursor);let t=this.input.slice(this.cursor+1);this.input=`${e}${t}`;this.complete(this.render);this.render()}first(){this.moveSelect(0);this.render()}last(){this.moveSelect(this.suggestions[this.page].length-1);this.render()}up(){if(this.select<=0)return this.bell();this.moveSelect(this.select-1);this.render()}down(){if(this.select>=this.suggestions[this.page].length-1)return this.bell();this.moveSelect(this.select+1);this.render()}next(){if(this.select===this.suggestions[this.page].length-1){this.page=(this.page+1)%this.suggestions.length;this.moveSelect(0)}else this.moveSelect(this.select+1);this.render()}nextPage(){if(this.page>=this.suggestions.length-1)return this.bell();this.page++;this.moveSelect(0);this.render()}prevPage(){if(this.page<=0)return this.bell();this.page--;this.moveSelect(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()}render(){if(this.closed)return;super.render();if(this.lineCount)this.out.write(s.down(this.lineCount));let e=n.bold(`${o.symbol(this.done,this.aborted)} ${this.msg} `)+`${o.delimiter(this.completing)} `;let t=u(e).length;if(this.done&&this.suggestions[this.page][this.select]){e+=`${this.suggestions[this.page][this.select].title}`}else{this.rendered=`${this.transform.render(this.input)}`;t+=this.rendered.length;e+=this.rendered}if(!this.done){this.lineCount=this.suggestions[this.page].length;let t=this.suggestions[this.page].reduce((e,t,r)=>e+`\n${r===this.select?n.cyan(t.title):t.title}`,"");if(t&&!this.isFallback){e+=t;if(this.suggestions.length>1){this.lineCount++;e+=n.blue(`\nPage ${this.page+1}/${this.suggestions.length}`)}}else{const t=h(this.choices,this.fallback);const r=t!==undefined?f(this.choices,t):this.fallback;e+=`\n${n.gray(r)}`;this.lineCount++}}this.out.write(this.clear+e);this.clear=a(e);if(this.lineCount&&!this.done){let e=s.up(this.lineCount);e+=s.left+s.to(t);e+=s.move(-this.rendered.length+this.cursor*this.scale);this.out.write(e)}}}e.exports=AutocompletePrompt},8440:(e,t,r)=>{"use strict";const n=r(9439);const{cursor:i}=r(332);const s=r(5790);const{clear:o,style:a,figures:c}=r(2522);class AutocompleteMultiselectPrompt extends s{constructor(e={}){e.overrideRender=true;super(e);this.inputValue="";this.clear=o("");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(e=>e.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 e=this.filteredOptions[this.cursor];this.filteredOptions=this.value.filter(e=>{if(this.inputValue){if(typeof e.title==="string"){if(e.title.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}if(typeof e.value==="string"){if(e.value.toLowerCase().includes(this.inputValue.toLowerCase())){return true}}return false}return true});const t=this.filteredOptions.findIndex(t=>t===e);this.cursor=t<0?0:t;this.render()}handleSpaceToggle(){const e=this.filteredOptions[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}handleInputChange(e){this.inputValue=this.inputValue+e;this.updateFilteredOptions()}_(e,t){if(e===" "){this.handleSpaceToggle()}else{this.handleInputChange(e)}}renderInstructions(){return`\nInstructions:\n ${c.arrowUp}/${c.arrowDown}: Highlight option\n ${c.arrowLeft}/${c.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n `}renderCurrentInput(){return`\nFiltered results for: ${this.inputValue?this.inputValue:n.gray("Enter something to filter")}\n`}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(c.radioOn):c.radioOff)+" "+i}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions(),this.renderCurrentInput()];if(this.filteredOptions.length&&this.filteredOptions[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.filteredOptions);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=AutocompleteMultiselectPrompt},2209:(e,t,r)=>{const n=r(9439);const i=r(7112);const{style:s}=r(2522);const{erase:o,cursor:a}=r(332);class ConfirmPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=e.initial;this.initialValue=!!e.initial;this.yesMsg=e.yes||"yes";this.yesOption=e.yesOption||"(Y/n)";this.noMsg=e.no||"no";this.noOption=e.noOption||"(y/N)";this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e.toLowerCase()==="y"){this.value=true;return this.submit()}if(e.toLowerCase()==="n"){this.value=false;return this.submit()}return this.bell()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(o.line+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.done?this.value?this.yesMsg:this.noMsg:n.gray(this.initialValue?this.yesOption:this.noOption)].join(" "))}}e.exports=ConfirmPrompt},3181:(e,t,r)=>{"use strict";const n=r(9439);const i=r(7112);const{style:s,clear:o,figures:a,strip:c}=r(2522);const{erase:u,cursor:l}=r(332);const{DatePart:f,Meridiem:h,Day:p,Hours:d,Milliseconds:m,Minutes:y,Month:v,Seconds:g,Year:b}=r(2197);const w=/\\(.)|"((?:\\["\\]|[^"])+)"|(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 S={1:({token:e})=>e.replace(/\\(.)/g,"$1"),2:e=>new p(e),3:e=>new v(e),4:e=>new b(e),5:e=>new h(e),6:e=>new d(e),7:e=>new y(e),8:e=>new g(e),9:e=>new m(e)};const x={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 i{constructor(e={}){super(e);this.msg=e.message;this.cursor=0;this.typed="";this.locales=Object.assign(x,e.locales);this._date=e.initial||new Date;this.errorMsg=e.error||"Please Enter A Valid Value";this.validator=e.validate||(()=>true);this.mask=e.mask||"YYYY-MM-DD HH:mm:ss";this.clear=o("");this.render()}get value(){return this.date}get date(){return this._date}set date(e){if(e)this._date.setTime(e.getTime())}set mask(e){let t;this.parts=[];while(t=w.exec(e)){let e=t.shift();let r=t.findIndex(e=>e!=null);this.parts.push(r in S?S[r]({token:t[r]||e,date:this.date,parts:this.parts,locales:this.locales}):t[r]||e)}let r=this.parts.reduce((e,t)=>{if(typeof t==="string"&&typeof e[e.length-1]==="string")e[e.length-1]+=t;else e.push(t);return e},[]);this.parts.splice(0);this.parts.push(...r);this.reset()}moveCursor(e){this.typed="";this.cursor=e;this.fire()}reset(){this.moveCursor(this.parts.findIndex(e=>e instanceof f));this.fire();this.render()}abort(){this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write("\n");this.close()}async validate(){let e=await this.validator(this.value);if(typeof e==="string"){this.errorMsg=e;e=false}this.error=!e}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 e=this.parts[this.cursor].prev();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}right(){let e=this.parts[this.cursor].next();if(e==null)return this.bell();this.moveCursor(this.parts.indexOf(e));this.render()}next(){let e=this.parts[this.cursor].next();this.moveCursor(e?this.parts.indexOf(e):this.parts.findIndex(e=>e instanceof f));this.render()}_(e){if(/\d/.test(e)){this.typed+=e;this.parts[this.cursor].setTo(this.typed);this.render()}}render(){if(this.closed)return;if(this.firstRender)this.out.write(l.hide);else this.out.write(u.lines(1));super.render();let e=u.line+(this.lines?u.down(this.lines):"")+l.to(0);this.lines=0;let t="";if(this.error){let e=this.errorMsg.split("\n");t=e.reduce((e,t,r)=>e+`\n${r?` `:a.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.parts.reduce((e,t,r)=>e.concat(r===this.cursor&&!this.done?n.cyan().underline(t.toString()):t),[]).join("")].join(" ");let i="";if(this.lines){i+=l.up(this.lines);i+=l.left+l.to(c(r).length)}this.out.write(e+r+t+i)}}e.exports=DatePrompt},2474:(e,t,r)=>{"use strict";e.exports={TextPrompt:r(5150),SelectPrompt:r(9178),TogglePrompt:r(2854),DatePrompt:r(3181),NumberPrompt:r(1421),MultiselectPrompt:r(5790),AutocompletePrompt:r(9962),AutocompleteMultiselectPrompt:r(8440),ConfirmPrompt:r(2209)}},5790:(e,t,r)=>{"use strict";const n=r(9439);const{cursor:i}=r(332);const s=r(7112);const{clear:o,figures:a,style:c}=r(2522);class MultiselectPrompt extends s{constructor(e={}){super(e);this.msg=e.message;this.cursor=e.cursor||0;this.scrollIndex=e.cursor||0;this.hint=e.hint||"";this.warn=e.warn||"- This option is disabled -";this.minSelected=e.min;this.showMinError=false;this.maxChoices=e.max;this.value=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.clear=o("");if(!e.overrideRender){this.render()}}reset(){this.value.map(e=>!e.selected);this.cursor=0;this.fire();this.render()}selected(){return this.value.filter(e=>e.selected)}abort(){this.done=this.aborted=true;this.fire();this.render();this.out.write("\n");this.close()}submit(){const e=this.value.filter(e=>e.selected);if(this.minSelected&&e.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(e=>e.selected).length>=this.maxChoices)return this.bell();this.value[this.cursor].selected=true;this.render()}handleSpaceToggle(){const e=this.value[this.cursor];if(e.selected){e.selected=false;this.render()}else if(e.disabled||this.value.filter(e=>e.selected).length>=this.maxChoices){return this.bell()}else{e.selected=true;this.render()}}_(e,t){if(e===" "){this.handleSpaceToggle()}else{return this.bell()}}renderInstructions(){return`\nInstructions:\n ${a.arrowUp}/${a.arrowDown}: Highlight option\n ${a.arrowLeft}/${a.arrowRight}/[space]: Toggle selection\n enter/return: Complete answer\n `}renderOption(e,t,r){let i;if(t.disabled)i=e===r?n.gray().underline(t.title):n.strikethrough().gray(t.title);else i=e===r?n.cyan().underline(t.title):t.title;return(t.selected?n.green(a.radioOn):a.radioOff)+" "+i}paginateOptions(e){const t=this.cursor;let r=e.map((e,r)=>this.renderOption(t,e,r));const i=10;let s=r;let o="";if(r.length===0){return n.red("No matches for this query.")}else if(r.length>i){let a=t-i/2;let c=t+i/2;if(a<0){a=0;c=i}else if(c>e.length){c=e.length;a=c-i}s=r.slice(a,c);o=n.dim("(Move up and down to reveal more choices)")}return"\n"+s.join("\n")+"\n"+o}renderOptions(e){if(!this.done){return this.paginateOptions(e)}return""}renderDoneOrInstructions(){if(this.done){const e=this.value.filter(e=>e.selected).map(e=>e.title).join(", ");return e}const e=[n.gray(this.hint),this.renderInstructions()];if(this.value[this.cursor].disabled){e.push(n.yellow(this.warn))}return e.join(" ")}render(){if(this.closed)return;if(this.firstRender)this.out.write(i.hide);super.render();let e=[c.symbol(this.done,this.aborted),n.bold(this.msg),c.delimiter(false),this.renderDoneOrInstructions()].join(" ");if(this.showMinError){e+=n.red(`You must select a minimum of ${this.minSelected} choices.`);this.showMinError=false}e+=this.renderOptions(this.value);this.out.write(this.clear+e);this.clear=o(e)}}e.exports=MultiselectPrompt},1421:(e,t,r)=>{const n=r(9439);const i=r(7112);const{cursor:s,erase:o}=r(332);const{style:a,clear:c,figures:u,strip:l}=r(2522);const f=/[0-9]/;const h=e=>e!==undefined;const p=(e,t)=>{let r=Math.pow(10,t);return Math.round(e*r)/r};class NumberPrompt extends i{constructor(e={}){super(e);this.transform=a.render(e.style);this.msg=e.message;this.initial=h(e.initial)?e.initial:"";this.float=!!e.float;this.round=e.round||2;this.inc=e.increment||1;this.min=h(e.min)?e.min:-Infinity;this.max=h(e.max)?e.max:Infinity;this.errorMsg=e.error||`Please Enter A Valid Value`;this.validator=e.validate||(()=>true);this.color=`cyan`;this.value=``;this.typed=``;this.lastHit=0;this.render()}set value(e){if(!e&&e!==0){this.placeholder=true;this.rendered=n.gray(this.transform.render(`${this.initial}`));this._value=``}else{this.placeholder=false;this.rendered=this.transform.render(`${p(e,this.round)}`);this._value=p(e,this.round)}this.fire()}get value(){return this._value}parse(e){return this.float?parseFloat(e):parseInt(e)}valid(e){return e===`-`||e===`.`&&this.float||f.test(e)}reset(){this.typed=``;this.value=``;this.fire();this.render()}abort(){let e=this.value;this.value=e!==``?e:this.initial;this.done=this.aborted=true;this.error=false;this.fire();this.render();this.out.write(`\n`);this.close()}async validate(){let e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){await this.validate();if(this.error){this.color=`red`;this.fire();this.render();return}let e=this.value;this.value=e!==``?e: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.max)return this.bell();this.value+=this.inc;this.color=`cyan`;this.fire();this.render()}down(){this.typed=``;if(this.value<=this.min)return this.bell();this.value-=this.inc;this.color=`cyan`;this.fire();this.render()}delete(){let e=this.value.toString();if(e.length===0)return this.bell();this.value=this.parse(e=e.slice(0,-1))||``;this.color=`cyan`;this.fire();this.render()}next(){this.value=this.initial;this.fire();this.render()}_(e,t){if(!this.valid(e))return this.bell();const r=Date.now();if(r-this.lastHit>1e3)this.typed=``;this.typed+=e;this.lastHit=r;this.color=`cyan`;if(e===`.`)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;super.render();let e=o.line+(this.lines?o.down(this.lines):``)+s.to(0);this.lines=0;let t=``;if(this.error){let e=this.errorMsg.split(`\n`);t+=e.reduce((e,t,r)=>e+`\n${r?` `:u.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let r=!this.done||!this.done&&!this.placeholder;let i=[a.symbol(this.done,this.aborted),n.bold(this.msg),a.delimiter(this.done),r?n[this.color]().underline(this.rendered):this.rendered].join(` `);let c=``;if(this.lines){c+=s.up(this.lines);c+=s.left+s.to(l(i).length)}this.out.write(e+i+t+c)}}e.exports=NumberPrompt},7112:(e,t,r)=>{"use strict";const n=r(1058);const{action:i}=r(2522);const s=r(8614);const{beep:o,cursor:a}=r(332);const c=r(9439);class Prompt extends s{constructor(e={}){super();this.firstRender=true;this.in=e.in||process.stdin;this.out=e.out||process.stdout;this.onRender=(e.onRender||(()=>void 0)).bind(this);const t=n.createInterface(this.in);n.emitKeypressEvents(this.in,t);if(this.in.isTTY)this.in.setRawMode(true);const r=(e,t)=>{let r=i(t);if(r===false){this._&&this._(e,t)}else if(typeof this[r]==="function"){this[r](t)}else{this.bell()}};this.close=(()=>{this.out.write(a.show);this.in.removeListener("keypress",r);if(this.in.isTTY)this.in.setRawMode(false);t.close();this.emit(this.aborted?"abort":"submit",this.value);this.closed=true});this.in.on("keypress",r)}fire(){this.emit("state",{value:this.value,aborted:!!this.aborted})}bell(){this.out.write(o)}render(){this.onRender(c);if(this.firstRender)this.firstRender=false}}e.exports=Prompt},9178:(e,t,r)=>{"use strict";const n=r(9439);const i=r(7112);const{style:s,clear:o,figures:a}=r(2522);const{erase:c,cursor:u}=r(332);class SelectPrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.hint=e.hint||"- Use arrow-keys. Return to submit.";this.warn=e.warn||"- This option is disabled";this.cursor=e.initial||0;this.choices=e.choices.map((e,t)=>{if(typeof e==="string")e={title:e,value:t};return{title:e&&(e.title||e.value||e),value:e&&(e.value||t),selected:e&&e.selected,disabled:e&&e.disabled}});this.value=(this.choices[this.cursor]||{}).value;this.clear=o("");this.render()}moveCursor(e){this.cursor=e;this.value=this.choices[e].value;this.fire()}reset(){this.moveCursor(0);this.fire();this.render()}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)return this.bell();this.moveCursor(this.cursor-1);this.render()}down(){if(this.cursor===this.choices.length-1)return this.bell();this.moveCursor(this.cursor+1);this.render()}next(){this.moveCursor((this.cursor+1)%this.choices.length);this.render()}_(e,t){if(e===" ")return this.submit()}get selection(){return this.choices[this.cursor]}render(){if(this.closed)return;if(this.firstRender)this.out.write(u.hide);else this.out.write(c.lines(this.choices.length+1));super.render();this.out.write([s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(false),this.done?this.selection.title:this.selection.disabled?n.yellow(this.warn):n.gray(this.hint)].join(" "));if(!this.done){this.out.write("\n"+this.choices.map((e,t)=>{let r,i;if(e.disabled){r=this.cursor===t?n.gray().underline(e.title):n.strikethrough().gray(e.title);i=this.cursor===t?n.bold().gray(a.pointer)+" ":" "}else{r=this.cursor===t?n.cyan().underline(e.title):e.title;i=this.cursor===t?n.cyan(a.pointer)+" ":" "}return`${i} ${r}`}).join("\n"))}}}e.exports=SelectPrompt},5150:(e,t,r)=>{const n=r(9439);const i=r(7112);const{cursor:s}=r(332);const{style:o,clear:a,strip:c,figures:u}=r(2522);class TextPrompt extends i{constructor(e={}){super(e);this.transform=o.render(e.style);this.scale=this.transform.scale;this.msg=e.message;this.initial=e.initial||``;this.validator=e.validate||(()=>true);this.value=``;this.errorMsg=e.error||`Please Enter A Valid Value`;this.cursor=Number(!!this.initial);this.clear=a(``);this.render()}set value(e){if(!e&&this.initial){this.placeholder=true;this.rendered=n.gray(this.transform.render(this.initial))}else{this.placeholder=false;this.rendered=this.transform.render(e)}this._value=e;this.fire()}get value(){return this._value}reset(){this.value=``;this.cursor=Number(!!this.initial);this.fire();this.render()}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 e=await this.validator(this.value);if(typeof e===`string`){this.errorMsg=e;e=false}this.error=!e}async submit(){this.value=this.value||this.initial;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(e){if(this.placeholder)return;this.cursor=this.cursor+e}_(e,t){let r=this.value.slice(0,this.cursor);let n=this.value.slice(this.cursor);this.value=`${r}${e}${n}`;this.red=false;this.cursor=this.placeholder?0:r.length+1;this.render()}delete(){if(this.cursor===0)return this.bell();let e=this.value.slice(0,this.cursor-1);let t=this.value.slice(this.cursor);this.value=`${e}${t}`;this.red=false;this.moveCursor(-1);this.render()}deleteForward(){if(this.cursor*this.scale>=this.rendered.length||this.placeholder)return this.bell();let e=this.value.slice(0,this.cursor);let t=this.value.slice(this.cursor+1);this.value=`${e}${t}`;this.red=false;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()}render(){if(this.closed)return;super.render();let e=(this.lines?s.down(this.lines):``)+this.clear;this.lines=0;let t=[o.symbol(this.done,this.aborted),n.bold(this.msg),o.delimiter(this.done),this.red?n.red(this.rendered):this.rendered].join(` `);let r=``;if(this.error){let e=this.errorMsg.split(`\n`);r+=e.reduce((e,t,r)=>e+=`\n${r?" ":u.pointerSmall} ${n.red().italic(t)}`,``);this.lines=e.length}let i=``;if(this.lines){i+=s.up(this.lines);i+=s.left+s.to(c(t).length)}i+=s.move(this.placeholder?-this.initial.length*this.scale:-this.rendered.length+this.cursor*this.scale);this.out.write(e+t+r+i);this.clear=a(t+r)}}e.exports=TextPrompt},2854:(e,t,r)=>{const n=r(9439);const i=r(7112);const{style:s,clear:o}=r(2522);const{cursor:a,erase:c}=r(332);class TogglePrompt extends i{constructor(e={}){super(e);this.msg=e.message;this.value=!!e.initial;this.active=e.active||"on";this.inactive=e.inactive||"off";this.initialValue=this.value;this.render()}reset(){this.value=this.initialValue;this.fire();this.render()}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()}_(e,t){if(e===" "){this.value=!this.value}else if(e==="1"){this.value=true}else if(e==="0"){this.value=false}else return this.bell();this.render()}render(){if(this.closed)return;if(this.firstRender)this.out.write(a.hide);super.render();this.out.write(c.lines(this.first?1:this.msg.split(/\n/g).length)+a.to(0)+[s.symbol(this.done,this.aborted),n.bold(this.msg),s.delimiter(this.done),this.value?this.inactive:n.cyan().underline(this.inactive),n.gray("/"),this.value?n.cyan().underline(this.active):this.active].join(" "))}}e.exports=TogglePrompt},1598:(e,t,r)=>{"use strict";const n=r(8114);const i=["suggest","format","onState","validate","onRender"];const s=()=>{};async function prompt(e=[],{onSubmit:t=s,onCancel:r=s}={}){const o={};const a=prompt._override||{};e=[].concat(e);let c,u,l,f,h;const p=async(e,t,r=false)=>{if(!r&&e.validate&&e.validate(t)!==true){return}return e.format?await e.format(t,o):t};for(u of e){({name:f,type:h}=u);for(let e in u){if(i.includes(e))continue;let t=u[e];u[e]=typeof t==="function"?await t(c,{...o},u):t}if(typeof u.message!=="string"){throw new Error("prompt message is required")}({name:f,type:h}=u);if(!h)continue;if(n[h]===void 0){throw new Error(`prompt type (${h}) is not defined`)}if(a[u.name]!==undefined){c=await p(u,a[u.name]);if(c!==undefined){o[f]=c;continue}}try{c=prompt._injected?getInjectedAnswer(prompt._injected):await n[h](u);o[f]=c=await p(u,c,true);l=await t(u,c,o)}catch(e){l=!await r(u,o)}if(l)return o}return o}function getInjectedAnswer(e){const t=e.shift();if(t instanceof Error){throw t}return t}function inject(e){prompt._injected=(prompt._injected||[]).concat(e)}function override(e){prompt._override=Object.assign({},e)}e.exports=Object.assign(prompt,{prompt:prompt,prompts:n,inject:inject,override:override})},8114:(e,t,r)=>{"use strict";const n=t;const i=r(2474);const s=e=>e;function toPrompt(e,t,r={}){return new Promise((n,o)=>{const a=new i[e](t);const c=r.onAbort||s;const u=r.onSubmit||s;a.on("state",t.onState||s);a.on("submit",e=>n(u(e)));a.on("abort",e=>o(c(e)))})}n.text=(e=>toPrompt("TextPrompt",e));n.password=(e=>{e.style="password";return n.text(e)});n.invisible=(e=>{e.style="invisible";return n.text(e)});n.number=(e=>toPrompt("NumberPrompt",e));n.date=(e=>toPrompt("DatePrompt",e));n.confirm=(e=>toPrompt("ConfirmPrompt",e));n.list=(e=>{const t=e.separator||",";return toPrompt("TextPrompt",e,{onSubmit:e=>e.split(t).map(e=>e.trim())})});n.toggle=(e=>toPrompt("TogglePrompt",e));n.select=(e=>toPrompt("SelectPrompt",e));n.multiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("MultiselectPrompt",e,{onAbort:t,onSubmit:t})});n.autocompleteMultiselect=(e=>{e.choices=[].concat(e.choices||[]);const t=e=>e.filter(e=>e.selected).map(e=>e.value);return toPrompt("AutocompleteMultiselectPrompt",e,{onAbort:t,onSubmit:t})});const o=(e,t)=>Promise.resolve(t.filter(t=>t.title.slice(0,e.length).toLowerCase()===e.toLowerCase()));n.autocomplete=(e=>{e.suggest=e.suggest||o;e.choices=[].concat(e.choices||[]);return toPrompt("AutocompletePrompt",e)})},5954:e=>{"use strict";e.exports=(e=>{if(e.ctrl){if(e.name==="a")return"first";if(e.name==="c")return"abort";if(e.name==="d")return"abort";if(e.name==="e")return"last";if(e.name==="g")return"reset"}if(e.name==="return")return"submit";if(e.name==="enter")return"submit";if(e.name==="backspace")return"delete";if(e.name==="delete")return"deleteForward";if(e.name==="abort")return"abort";if(e.name==="escape")return"abort";if(e.name==="tab")return"next";if(e.name==="pagedown")return"nextPage";if(e.name==="pageup")return"prevPage";if(e.name==="up")return"up";if(e.name==="down")return"down";if(e.name==="right")return"right";if(e.name==="left")return"left";return false})},6805:(e,t,r)=>{"use strict";const n=r(9822);const{erase:i,cursor:s}=r(332);const o=e=>[...n(e)].length;e.exports=function(e,t=process.stdout.columns){if(!t)return i.line+s.to(0);let r=0;const n=e.split(/\r?\n/);for(let e of n){r+=1+Math.floor(Math.max(o(e)-1,0)/t)}return(i.line+s.prevLine()).repeat(r-1)+i.line+s.to(0)}},5170:e=>{"use strict";const t={arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",radioOn:"◉",radioOff:"◯",tick:"✔",cross:"✖",ellipsis:"…",pointerSmall:"›",line:"─",pointer:"❯"};const r={arrowUp:t.arrowUp,arrowDown:t.arrowDown,arrowLeft:t.arrowLeft,arrowRight:t.arrowRight,radioOn:"(*)",radioOff:"( )",tick:"√",cross:"×",ellipsis:"...",pointerSmall:"»",line:"─",pointer:">"};const n=process.platform==="win32"?r:t;e.exports=n},2522:(e,t,r)=>{"use strict";e.exports={action:r(5954),clear:r(6805),style:r(7458),strip:r(9822),figures:r(5170)}},9822:e=>{"use strict";e.exports=(e=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[a-zA-Z\\d]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PRZcf-ntqry=><~]))"].join("|");const r=new RegExp(t,"g");return typeof e==="string"?e.replace(r,""):e})},7458:(e,t,r)=>{"use strict";const n=r(9439);const i=r(5170);const s=Object.freeze({password:{scale:1,render:e=>"*".repeat(e.length)},emoji:{scale:2,render:e=>"😃".repeat(e.length)},invisible:{scale:0,render:e=>""},default:{scale:1,render:e=>`${e}`}});const o=e=>s[e]||s.default;const a=Object.freeze({aborted:n.red(i.cross),done:n.green(i.tick),default:n.cyan("?")});const c=(e,t)=>t?a.aborted:e?a.done:a.default;const u=e=>n.gray(e?i.ellipsis:i.pointerSmall);const l=(e,t)=>n.gray(e?t?i.pointerSmall:"+":i.line);e.exports={styles:s,render:o,symbols:a,symbol:c,delimiter:u,item:l}},3769:(e,t,r)=>{const n=r(2357);const i=r(5622);const s=r(5747);let o=undefined;try{o=r(3700)}catch(e){}const a={nosort:true,silent:true};let c=0;const u=process.platform==="win32";const l=e=>{const t=["unlink","chmod","stat","lstat","rmdir","readdir"];t.forEach(t=>{e[t]=e[t]||s[t];t=t+"Sync";e[t]=e[t]||s[t]});e.maxBusyTries=e.maxBusyTries||3;e.emfileWait=e.emfileWait||1e3;if(e.glob===false){e.disableGlob=true}if(e.disableGlob!==true&&o===undefined){throw Error("glob dependency not found, set `options.disableGlob = true` if intentional")}e.disableGlob=e.disableGlob||false;e.glob=e.glob||a};const f=(e,t,r)=>{if(typeof t==="function"){r=t;t={}}n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n.equal(typeof r,"function","rimraf: callback function required");n(t,"rimraf: invalid options argument provided");n.equal(typeof t,"object","rimraf: options should be object");l(t);let i=0;let s=null;let a=0;const u=e=>{s=s||e;if(--a===0)r(s)};const f=(e,n)=>{if(e)return r(e);a=n.length;if(a===0)return r();n.forEach(e=>{const r=n=>{if(n){if((n.code==="EBUSY"||n.code==="ENOTEMPTY"||n.code==="EPERM")&&i<t.maxBusyTries){i++;return setTimeout(()=>h(e,t,r),i*100)}if(n.code==="EMFILE"&&c<t.emfileWait){return setTimeout(()=>h(e,t,r),c++)}if(n.code==="ENOENT")n=null}c=0;u(n)};h(e,t,r)})};if(t.disableGlob||!o.hasMagic(e))return f(null,[e]);t.lstat(e,(r,n)=>{if(!r)return f(null,[e]);o(e,t.glob,f)})};const h=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&u)p(e,t,n,r);if(i&&i.isDirectory())return m(e,t,n,r);t.unlink(e,n=>{if(n){if(n.code==="ENOENT")return r(null);if(n.code==="EPERM")return u?p(e,t,n,r):m(e,t,n,r);if(n.code==="EISDIR")return m(e,t,n,r)}return r(n)})})};const p=(e,t,r,i)=>{n(e);n(t);n(typeof i==="function");if(r)n(r instanceof Error);t.chmod(e,438,n=>{if(n)i(n.code==="ENOENT"?null:r);else t.stat(e,(n,s)=>{if(n)i(n.code==="ENOENT"?null:r);else if(s.isDirectory())m(e,t,r,i);else t.unlink(e,i)})})};const d=(e,t,r)=>{n(e);n(t);if(r)n(r instanceof Error);try{t.chmodSync(e,438)}catch(e){if(e.code==="ENOENT")return;else throw r}let i;try{i=t.statSync(e)}catch(e){if(e.code==="ENOENT")return;else throw r}if(i.isDirectory())g(e,t,r);else t.unlinkSync(e)};const m=(e,t,r,i)=>{n(e);n(t);if(r)n(r instanceof Error);n(typeof i==="function");t.rmdir(e,n=>{if(n&&(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM"))y(e,t,i);else if(n&&n.code==="ENOTDIR")i(r);else i(n)})};const y=(e,t,r)=>{n(e);n(t);n(typeof r==="function");t.readdir(e,(n,s)=>{if(n)return r(n);let o=s.length;if(o===0)return t.rmdir(e,r);let a;s.forEach(n=>{f(i.join(e,n),t,n=>{if(a)return;if(n)return r(a=n);if(--o===0)t.rmdir(e,r)})})})};const v=(e,t)=>{t=t||{};l(t);n(e,"rimraf: missing path");n.equal(typeof e,"string","rimraf: path should be a string");n(t,"rimraf: missing options");n.equal(typeof t,"object","rimraf: options should be object");let r;if(t.disableGlob||!o.hasMagic(e)){r=[e]}else{try{t.lstatSync(e);r=[e]}catch(n){r=o.sync(e,t.glob)}}if(!r.length)return;for(let e=0;e<r.length;e++){const n=r[e];let i;try{i=t.lstatSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM"&&u)d(n,t,e)}try{if(i&&i.isDirectory())g(n,t,null);else t.unlinkSync(n)}catch(e){if(e.code==="ENOENT")return;if(e.code==="EPERM")return u?d(n,t,e):g(n,t,e);if(e.code!=="EISDIR")throw e;g(n,t,e)}}};const g=(e,t,r)=>{n(e);n(t);if(r)n(r instanceof Error);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")b(e,t)}};const b=(e,t)=>{n(e);n(t);t.readdirSync(e).forEach(r=>v(i.join(e,r),t));const r=u?100:1;let s=0;do{let n=true;try{const i=t.rmdirSync(e,t);n=false;return i}finally{if(++s<r&&n)continue}}while(true)};e.exports=f;f.sync=v},2879:(e,t)=>{t=e.exports=SemVer;var r;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){r=function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER");console.log.apply(console,e)}}else{r=function(){}}t.SEMVER_SPEC_VERSION="2.0.0";var n=256;var i=Number.MAX_SAFE_INTEGER||9007199254740991;var s=16;var o=n-6;var a=t.re=[];var c=t.safeRe=[];var u=t.src=[];var l=0;var f="[a-zA-Z0-9-]";var h=[["\\s",1],["\\d",n],[f,o]];function makeSafeRe(e){for(var t=0;t<h.length;t++){var r=h[t][0];var n=h[t][1];e=e.split(r+"*").join(r+"{0,"+n+"}").split(r+"+").join(r+"{1,"+n+"}")}return e}var p=l++;u[p]="0|[1-9]\\d*";var d=l++;u[d]="\\d+";var m=l++;u[m]="\\d*[a-zA-Z-]"+f+"*";var y=l++;u[y]="("+u[p]+")\\."+"("+u[p]+")\\."+"("+u[p]+")";var v=l++;u[v]="("+u[d]+")\\."+"("+u[d]+")\\."+"("+u[d]+")";var g=l++;u[g]="(?:"+u[p]+"|"+u[m]+")";var b=l++;u[b]="(?:"+u[d]+"|"+u[m]+")";var w=l++;u[w]="(?:-("+u[g]+"(?:\\."+u[g]+")*))";var S=l++;u[S]="(?:-?("+u[b]+"(?:\\."+u[b]+")*))";var x=l++;u[x]=f+"+";var E=l++;u[E]="(?:\\+("+u[x]+"(?:\\."+u[x]+")*))";var _=l++;var O="v?"+u[y]+u[w]+"?"+u[E]+"?";u[_]="^"+O+"$";var R="[v=\\s]*"+u[v]+u[S]+"?"+u[E]+"?";var A=l++;u[A]="^"+R+"$";var C=l++;u[C]="((?:<|>)?=?)";var P=l++;u[P]=u[d]+"|x|X|\\*";var T=l++;u[T]=u[p]+"|x|X|\\*";var j=l++;u[j]="[v=\\s]*("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:\\.("+u[T]+")"+"(?:"+u[w]+")?"+u[E]+"?"+")?)?";var k=l++;u[k]="[v=\\s]*("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:\\.("+u[P]+")"+"(?:"+u[S]+")?"+u[E]+"?"+")?)?";var N=l++;u[N]="^"+u[C]+"\\s*"+u[j]+"$";var I=l++;u[I]="^"+u[C]+"\\s*"+u[k]+"$";var L=l++;u[L]="(?:^|[^\\d])"+"(\\d{1,"+s+"})"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:\\.(\\d{1,"+s+"}))?"+"(?:$|[^\\d])";var D=l++;u[D]="(?:~>?)";var $=l++;u[$]="(\\s*)"+u[D]+"\\s+";a[$]=new RegExp(u[$],"g");c[$]=new RegExp(makeSafeRe(u[$]),"g");var B="$1~";var F=l++;u[F]="^"+u[D]+u[j]+"$";var M=l++;u[M]="^"+u[D]+u[k]+"$";var G=l++;u[G]="(?:\\^)";var U=l++;u[U]="(\\s*)"+u[G]+"\\s+";a[U]=new RegExp(u[U],"g");c[U]=new RegExp(makeSafeRe(u[U]),"g");var z="$1^";var q=l++;u[q]="^"+u[G]+u[j]+"$";var H=l++;u[H]="^"+u[G]+u[k]+"$";var W=l++;u[W]="^"+u[C]+"\\s*("+R+")$|^$";var V=l++;u[V]="^"+u[C]+"\\s*("+O+")$|^$";var Y=l++;u[Y]="(\\s*)"+u[C]+"\\s*("+R+"|"+u[j]+")";a[Y]=new RegExp(u[Y],"g");c[Y]=new RegExp(makeSafeRe(u[Y]),"g");var Z="$1$2$3";var X=l++;u[X]="^\\s*("+u[j]+")"+"\\s+-\\s+"+"("+u[j]+")"+"\\s*$";var J=l++;u[J]="^\\s*("+u[k]+")"+"\\s+-\\s+"+"("+u[k]+")"+"\\s*$";var Q=l++;u[Q]="(<|>)?=?\\s*\\*";for(var K=0;K<l;K++){r(K,u[K]);if(!a[K]){a[K]=new RegExp(u[K]);c[K]=new RegExp(makeSafeRe(u[K]))}}t.parse=parse;function parse(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}if(e.length>n){return null}var r=t.loose?c[A]:c[_];if(!r.test(e)){return null}try{return new SemVer(e,t)}catch(e){return null}}t.valid=valid;function valid(e,t){var r=parse(e,t);return r?r.version:null}t.clean=clean;function clean(e,t){var r=parse(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}t.SemVer=SemVer;function SemVer(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof SemVer){if(e.loose===t.loose){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError("Invalid Version: "+e)}if(e.length>n){throw new TypeError("version is longer than "+n+" characters")}if(!(this instanceof SemVer)){return new SemVer(e,t)}r("SemVer",e,t);this.options=t;this.loose=!!t.loose;var s=e.trim().match(t.loose?c[A]:c[_]);if(!s){throw new TypeError("Invalid Version: "+e)}this.raw=e;this.major=+s[1];this.minor=+s[2];this.patch=+s[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!s[4]){this.prerelease=[]}else{this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i){return t}}return e})}this.build=s[5]?s[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(e){r("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return this.compareMain(e)||this.comparePre(e)};SemVer.prototype.compareMain=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}return compareIdentifiers(this.major,e.major)||compareIdentifiers(this.minor,e.minor)||compareIdentifiers(this.patch,e.patch)};SemVer.prototype.comparePre=function(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}var t=0;do{var n=this.prerelease[t];var i=e.prerelease[t];r("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return compareIdentifiers(n,i)}}while(++t)};SemVer.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t);this.inc("pre",t);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t)}this.inc("pre",t);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 r=this.prerelease.length;while(--r>=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(this.prerelease[0]===t){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: "+e)}this.format();this.raw=this.version;return this};t.inc=inc;function inc(e,t,r,n){if(typeof r==="string"){n=r;r=undefined}try{return new SemVer(e,r).inc(t,n).version}catch(e){return null}}t.diff=diff;function diff(e,t){if(eq(e,t)){return null}else{var r=parse(e);var n=parse(t);var i="";if(r.prerelease.length||n.prerelease.length){i="pre";var s="prerelease"}for(var o in r){if(o==="major"||o==="minor"||o==="patch"){if(r[o]!==n[o]){return i+o}}}return s}}t.compareIdentifiers=compareIdentifiers;var ee=/^[0-9]+$/;function compareIdentifiers(e,t){var r=ee.test(e);var n=ee.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1}t.rcompareIdentifiers=rcompareIdentifiers;function rcompareIdentifiers(e,t){return compareIdentifiers(t,e)}t.major=major;function major(e,t){return new SemVer(e,t).major}t.minor=minor;function minor(e,t){return new SemVer(e,t).minor}t.patch=patch;function patch(e,t){return new SemVer(e,t).patch}t.compare=compare;function compare(e,t,r){return new SemVer(e,r).compare(new SemVer(t,r))}t.compareLoose=compareLoose;function compareLoose(e,t){return compare(e,t,true)}t.rcompare=rcompare;function rcompare(e,t,r){return compare(t,e,r)}t.sort=sort;function sort(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})}t.rsort=rsort;function rsort(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})}t.gt=gt;function gt(e,t,r){return compare(e,t,r)>0}t.lt=lt;function lt(e,t,r){return compare(e,t,r)<0}t.eq=eq;function eq(e,t,r){return compare(e,t,r)===0}t.neq=neq;function neq(e,t,r){return compare(e,t,r)!==0}t.gte=gte;function gte(e,t,r){return compare(e,t,r)>=0}t.lte=lte;function lte(e,t,r){return compare(e,t,r)<=0}t.cmp=cmp;function cmp(e,t,r,n){switch(t){case"===":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e===r;case"!==":if(typeof e==="object")e=e.version;if(typeof r==="object")r=r.version;return e!==r;case"":case"=":case"==":return eq(e,r,n);case"!=":return neq(e,r,n);case">":return gt(e,r,n);case">=":return gte(e,r,n);case"<":return lt(e,r,n);case"<=":return lte(e,r,n);default:throw new TypeError("Invalid operator: "+t)}}t.Comparator=Comparator;function Comparator(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}if(!(this instanceof Comparator)){return new Comparator(e,t)}e=e.trim().split(/\s+/).join(" ");r("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===te){this.value=""}else{this.value=this.operator+this.semver.version}r("comp",this)}var te={};Comparator.prototype.parse=function(e){var t=this.options.loose?c[W]:c[V];var r=e.match(t);if(!r){throw new TypeError("Invalid comparator: "+e)}this.operator=r[1];if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=te}else{this.semver=new SemVer(r[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(e){r("Comparator.test",e,this.options.loose);if(this.semver===te){return true}if(typeof e==="string"){e=new SemVer(e,this.options)}return cmp(e,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}var r;if(this.operator===""){r=new Range(e.value,t);return satisfies(this.value,r,t)}else if(e.operator===""){r=new Range(this.value,t);return satisfies(e.semver,r,t)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var s=this.semver.version===e.semver.version;var o=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var a=cmp(this.semver,"<",e.semver,t)&&((this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<"));var c=cmp(this.semver,">",e.semver,t)&&((this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">"));return n||i||s&&o||a||c};t.Range=Range;function Range(e,t){if(!t||typeof t!=="object"){t={loose:!!t,includePrerelease:false}}if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof Comparator){return new Range(e.value,t)}if(!(this instanceof Range)){return new Range(e,t)}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length});if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(e){var t=this.options.loose;var n=t?c[J]:c[X];e=e.replace(n,hyphenReplace);r("hyphen replace",e);e=e.replace(c[Y],Z);r("comparator trim",e,c[Y]);e=e.replace(c[$],B);e=e.replace(c[U],z);var i=t?c[W]:c[V];var s=e.split(" ").map(function(e){return parseComparator(e,this.options)},this).join(" ").split(/\s+/);if(this.options.loose){s=s.filter(function(e){return!!e.match(i)})}s=s.map(function(e){return new Comparator(e,this.options)},this);return s};Range.prototype.intersects=function(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})};t.toComparators=toComparators;function toComparators(e,t){return new Range(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})}function parseComparator(e,t){r("comp",e,t);e=replaceCarets(e,t);r("caret",e);e=replaceTildes(e,t);r("tildes",e);e=replaceXRanges(e,t);r("xrange",e);e=replaceStars(e,t);r("stars",e);return e}function isX(e){return!e||e.toLowerCase()==="x"||e==="*"}function replaceTildes(e,t){return e.trim().split(/\s+/).map(function(e){return replaceTilde(e,t)}).join(" ")}function replaceTilde(e,t){var n=t.loose?c[M]:c[F];return e.replace(n,function(t,n,i,s,o){r("tilde",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else if(o){r("replaceTilde pr",o);a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}r("tilde return",a);return a})}function replaceCarets(e,t){return e.trim().split(/\s+/).map(function(e){return replaceCaret(e,t)}).join(" ")}function replaceCaret(e,t){r("caret",e,t);var n=t.loose?c[H]:c[q];return e.replace(n,function(t,n,i,s,o){r("caret",e,t,n,i,s,o);var a;if(isX(n)){a=""}else if(isX(i)){a=">="+n+".0.0 <"+(+n+1)+".0.0"}else if(isX(s)){if(n==="0"){a=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0"}else{a=">="+n+"."+i+".0 <"+(+n+1)+".0.0"}}else if(o){r("replaceCaret pr",o);if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+"-"+o+" <"+(+n+1)+".0.0"}}else{r("no pr");if(n==="0"){if(i==="0"){a=">="+n+"."+i+"."+s+" <"+n+"."+i+"."+(+s+1)}else{a=">="+n+"."+i+"."+s+" <"+n+"."+(+i+1)+".0"}}else{a=">="+n+"."+i+"."+s+" <"+(+n+1)+".0.0"}}r("caret return",a);return a})}function replaceXRanges(e,t){r("replaceXRanges",e,t);return e.split(/\s+/).map(function(e){return replaceXRange(e,t)}).join(" ")}function replaceXRange(e,t){e=e.trim();var n=t.loose?c[I]:c[N];return e.replace(n,function(t,n,i,s,o,a){r("xRange",e,t,n,i,s,o,a);var c=isX(i);var u=c||isX(s);var l=u||isX(o);var f=l;if(n==="="&&f){n=""}if(c){if(n===">"||n==="<"){t="<0.0.0"}else{t="*"}}else if(n&&f){if(u){s=0}o=0;if(n===">"){n=">=";if(u){i=+i+1;s=0;o=0}else{s=+s+1;o=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{s=+s+1}}t=n+i+"."+s+"."+o}else if(u){t=">="+i+".0.0 <"+(+i+1)+".0.0"}else if(l){t=">="+i+"."+s+".0 <"+i+"."+(+s+1)+".0"}r("xRange return",t);return t})}function replaceStars(e,t){r("replaceStars",e,t);return e.trim().replace(c[Q],"")}function hyphenReplace(e,t,r,n,i,s,o,a,c,u,l,f,h){if(isX(r)){t=""}else if(isX(n)){t=">="+r+".0.0"}else if(isX(i)){t=">="+r+"."+n+".0"}else{t=">="+t}if(isX(c)){a=""}else if(isX(u)){a="<"+(+c+1)+".0.0"}else if(isX(l)){a="<"+c+"."+(+u+1)+".0"}else if(f){a="<="+c+"."+u+"."+l+"-"+f}else{a="<="+a}return(t+" "+a).trim()}Range.prototype.test=function(e){if(!e){return false}if(typeof e==="string"){e=new SemVer(e,this.options)}for(var t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false};function testSet(e,t,n){for(var i=0;i<e.length;i++){if(!e[i].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++){r(e[i].semver);if(e[i].semver===te){continue}if(e[i].semver.prerelease.length>0){var s=e[i].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true}t.satisfies=satisfies;function satisfies(e,t,r){try{t=new Range(t,r)}catch(e){return false}return t.test(e)}t.maxSatisfying=maxSatisfying;function maxSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===-1){n=e;i=new SemVer(n,r)}}});return n}t.minSatisfying=minSatisfying;function minSatisfying(e,t,r){var n=null;var i=null;try{var s=new Range(t,r)}catch(e){return null}e.forEach(function(e){if(s.test(e)){if(!n||i.compare(e)===1){n=e;i=new SemVer(n,r)}}});return n}t.minVersion=minVersion;function minVersion(e,t){e=new Range(e,t);var r=new SemVer("0.0.0");if(e.test(r)){return r}r=new SemVer("0.0.0-0");if(e.test(r)){return r}r=null;for(var n=0;n<e.set.length;++n){var i=e.set[n];i.forEach(function(e){var t=new SemVer(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!r||gt(r,t)){r=t}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}})}if(r&&e.test(r)){return r}return null}t.validRange=validRange;function validRange(e,t){try{return new Range(e,t).range||"*"}catch(e){return null}}t.ltr=ltr;function ltr(e,t,r){return outside(e,t,"<",r)}t.gtr=gtr;function gtr(e,t,r){return outside(e,t,">",r)}t.outside=outside;function outside(e,t,r,n){e=new SemVer(e,n);t=new Range(t,n);var i,s,o,a,c;switch(r){case">":i=gt;s=lte;o=lt;a=">";c=">=";break;case"<":i=lt;s=gte;o=gt;a="<";c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(e,t,n)){return false}for(var u=0;u<t.set.length;++u){var l=t.set[u];var f=null;var h=null;l.forEach(function(e){if(e.semver===te){e=new Comparator(">=0.0.0")}f=f||e;h=h||e;if(i(e.semver,f.semver,n)){f=e}else if(o(e.semver,h.semver,n)){h=e}});if(f.operator===a||f.operator===c){return false}if((!h.operator||h.operator===a)&&s(e,h.semver)){return false}else if(h.operator===c&&o(e,h.semver)){return false}}return true}t.prerelease=prerelease;function prerelease(e,t){var r=parse(e,t);return r&&r.prerelease.length?r.prerelease:null}t.intersects=intersects;function intersects(e,t,r){e=new Range(e,r);t=new Range(t,r);return e.intersects(t)}t.coerce=coerce;function coerce(e){if(e instanceof SemVer){return e}if(typeof e!=="string"){return null}var t=e.match(c[L]);if(t==null){return null}return parse(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},8937:(e,t,r)=>{"use strict";const n=r(2087);const i=r(1135);const s=process.env;let o;if(i("no-color")||i("no-colors")||i("color=false")){o=false}else if(i("color")||i("colors")||i("color=true")||i("color=always")){o=true}if("FORCE_COLOR"in s){o=s.FORCE_COLOR.length===0||parseInt(s.FORCE_COLOR,10)!==0}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e){if(o===false){return 0}if(i("color=16m")||i("color=full")||i("color=truecolor")){return 3}if(i("color=256")){return 2}if(e&&!e.isTTY&&o!==true){return 0}const t=o?1:0;if(process.platform==="win32"){const e=n.release().split(".");if(Number(process.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in s){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in s)||s.CI_NAME==="codeship"){return 1}return t}if("TEAMCITY_VERSION"in s){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(s.TEAMCITY_VERSION)?1:0}if(s.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in s){const e=parseInt((s.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(s.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(s.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(s.TERM)){return 1}if("COLORTERM"in s){return 1}if(s.TERM==="dumb"){return t}return t}function getSupportLevel(e){const t=supportsColor(e);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:getSupportLevel(process.stdout),stderr:getSupportLevel(process.stderr)}},2127:(e,t,r)=>{"use strict";var n;n=r(6036);n=r(8291);n=r(9650);n=r(8489);n=t.extract=r(7171);r(9698);r(7932);r(2801);r(2946);r(2393);r(3970);r(4065);r(8318)},5104:(e,t,r)=>{"use strict";let n=Buffer;if(!n.alloc){n=r(3118).Buffer}e.exports=n},6036:(e,t,r)=>{"use strict";const n=r(6924);const i=r(9698);const s=r(5747);const o=r(6748);const a=r(9650);const c=r(5622);const u=e.exports=((e,t,r)=>{if(typeof t==="function")r=t;if(Array.isArray(e))t=e,e={};if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?l(i,t):i.file?f(i,t,r):i.sync?d(i,t):m(i,t)});const l=(e,t)=>{const r=new i.Sync(e);const n=new o.WriteStreamSync(e.file,{mode:e.mode||438});r.pipe(n);h(r,t)};const f=(e,t,r)=>{const n=new i(e);const s=new o.WriteStream(e.file,{mode:e.mode||438});n.pipe(s);const a=new Promise((e,t)=>{s.on("error",t);s.on("close",e);n.on("error",t)});p(n,t);return r?a.then(r,r):a};const h=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")a({file:c.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const p=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return a({file:c.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(r=>p(e,t));else e.add(r)}e.end()};const d=(e,t)=>{const r=new i.Sync(e);h(r,t);return r};const m=(e,t)=>{const r=new i(e);p(r,t);return r}},7171:(e,t,r)=>{"use strict";const n=r(6924);const i=r(7932);const s=r(5747);const o=r(6748);const a=r(5622);const c=e.exports=((e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const i=n(e);if(i.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)u(i,t);return i.file&&i.sync?l(i):i.file?f(i,r):i.sync?h(i):p(i)});const u=(e,t)=>{const r=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const i=(e,t)=>{const n=t||a.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):i(a.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&i(e.replace(/\/+$/,"")):e=>i(e.replace(/\/+$/,""))};const l=e=>{const t=new i.Sync(e);const r=e.file;let n=true;let a;const c=s.statSync(r);const u=e.maxReadSize||16*1024*1024;const l=new o.ReadStreamSync(r,{readSize:u,size:c.size});l.pipe(t)};const f=(e,t)=>{const r=new i(e);const n=e.maxReadSize||16*1024*1024;const a=e.file;const c=new Promise((e,t)=>{r.on("error",t);r.on("close",e);s.stat(a,(e,i)=>{if(e)t(e);else{const e=new o.ReadStream(a,{readSize:n,size:i.size});e.on("error",t);e.pipe(r)}})});return t?c.then(t,t):c};const h=e=>{return new i.Sync(e)};const p=e=>{return new i(e)}},3970:(e,t,r)=>{"use strict";const n=r(5104);const i=r(8318);const s=r(5622).posix;const o=r(9038);const a=Symbol("slurp");const c=Symbol("type");class Header{constructor(e,t,r,i){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[c]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(n.isBuffer(e))this.decode(e,t||0,r,i);else if(e)this.set(e)}decode(e,t,r,n){if(!t)t=0;if(!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");this.path=l(e,t,100);this.mode=p(e,t+100,8);this.uid=p(e,t+108,8);this.gid=p(e,t+116,8);this.size=p(e,t+124,12);this.mtime=f(e,t+136,12);this.cksum=p(e,t+148,12);this[a](r);this[a](n,true);this[c]=l(e,t+156,1);if(this[c]==="")this[c]="0";if(this[c]==="0"&&this.path.substr(-1)==="/")this[c]="5";if(this[c]==="5")this.size=0;this.linkpath=l(e,t+157,100);if(e.slice(t+257,t+265).toString()==="ustar\x0000"){this.uname=l(e,t+265,32);this.gname=l(e,t+297,32);this.devmaj=p(e,t+329,8);this.devmin=p(e,t+337,8);if(e[t+475]!==0){const r=l(e,t+345,155);this.path=r+"/"+this.path}else{const r=l(e,t+345,130);if(r)this.path=r+"/"+this.path;this.atime=f(e,t+476,12);this.ctime=f(e,t+488,12)}}let i=8*32;for(let r=t;r<t+148;r++){i+=e[r]}for(let r=t+156;r<t+512;r++){i+=e[r]}this.cksumValid=i===this.cksum;if(this.cksum===null&&i===8*32)this.nullBlock=true}[a](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}encode(e,t){if(!e){e=this.block=n.alloc(512);t=0}if(!t)t=0;if(!(e.length>=t+512))throw new Error("need 512 bytes for header");const r=this.ctime||this.atime?130:155;const i=u(this.path||"",r);const s=i[0];const o=i[1];this.needPax=i[2];this.needPax=E(e,t,100,s)||this.needPax;this.needPax=v(e,t+100,8,this.mode)||this.needPax;this.needPax=v(e,t+108,8,this.uid)||this.needPax;this.needPax=v(e,t+116,8,this.gid)||this.needPax;this.needPax=v(e,t+124,12,this.size)||this.needPax;this.needPax=S(e,t+136,12,this.mtime)||this.needPax;e[t+156]=this[c].charCodeAt(0);this.needPax=E(e,t+157,100,this.linkpath)||this.needPax;e.write("ustar\x0000",t+257,8);this.needPax=E(e,t+265,32,this.uname)||this.needPax;this.needPax=E(e,t+297,32,this.gname)||this.needPax;this.needPax=v(e,t+329,8,this.devmaj)||this.needPax;this.needPax=v(e,t+337,8,this.devmin)||this.needPax;this.needPax=E(e,t+345,r,o)||this.needPax;if(e[t+475]!==0)this.needPax=E(e,t+345,155,o)||this.needPax;else{this.needPax=E(e,t+345,130,o)||this.needPax;this.needPax=S(e,t+476,12,this.atime)||this.needPax;this.needPax=S(e,t+488,12,this.ctime)||this.needPax}let a=8*32;for(let r=t;r<t+148;r++){a+=e[r]}for(let r=t+156;r<t+512;r++){a+=e[r]}this.cksum=a;v(e,t+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(e){for(let t in e){if(e[t]!==null&&e[t]!==undefined)this[t]=e[t]}}get type(){return i.name.get(this[c])||this[c]}get typeKey(){return this[c]}set type(e){if(i.code.has(e))this[c]=i.code.get(e);else this[c]=e}}const u=(e,t)=>{const r=100;let i=e;let o="";let a;const c=s.parse(e).root||".";if(n.byteLength(i)<r)a=[i,o,false];else{o=s.dirname(i);i=s.basename(i);do{if(n.byteLength(i)<=r&&n.byteLength(o)<=t)a=[i,o,false];else if(n.byteLength(i)>r&&n.byteLength(o)<=t)a=[i.substr(0,r-1),o,true];else{i=s.join(s.basename(o),i);o=s.dirname(o)}}while(o!==c&&!a);if(!a)a=[e.substr(0,r-1),"",true]}return a};const l=(e,t,r)=>e.slice(t,t+r).toString("utf8").replace(/\0.*/,"");const f=(e,t,r)=>h(p(e,t,r));const h=e=>e===null?null:new Date(e*1e3);const p=(e,t,r)=>e[t]&128?o.parse(e.slice(t,t+r)):m(e,t,r);const d=e=>isNaN(e)?null:e;const m=(e,t,r)=>d(parseInt(e.slice(t,t+r).toString("utf8").replace(/\0.*$/,"").trim(),8));const y={12:8589934591,8:2097151};const v=(e,t,r,n)=>n===null?false:n>y[r]||n<0?(o.encode(n,e.slice(t,t+r)),true):(g(e,t,r,n),false);const g=(e,t,r,n)=>e.write(b(n,r),t,r,"ascii");const b=(e,t)=>w(Math.floor(e).toString(8),t);const w=(e,t)=>(e.length===t-1?e:new Array(t-e.length-1).join("0")+e+" ")+"\0";const S=(e,t,r,n)=>n===null?false:v(e,t,r,n.getTime()/1e3);const x=new Array(156).join("\0");const E=(e,t,r,i)=>i===null?false:(e.write(i+x,t,r,"utf8"),i.length!==n.byteLength(i)||i.length>r);e.exports=Header},6924:e=>{"use strict";const t=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);const r=e.exports=(e=>e?Object.keys(e).map(r=>[t.has(r)?t.get(r):r,e[r]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{})},9038:(e,t)=>{"use strict";const r=t.encode=((e,t)=>{if(!Number.isSafeInteger(e))throw TypeError("cannot encode number outside of javascript safe integer range");else if(e<0)i(e,t);else n(e,t);return t});const n=(e,t)=>{t[0]=128;for(var r=t.length;r>1;r--){t[r-1]=e&255;e=Math.floor(e/256)}};const i=(e,t)=>{t[0]=255;var r=false;e=e*-1;for(var n=t.length;n>1;n--){var i=e&255;e=Math.floor(e/256);if(r)t[n-1]=c(i);else if(i===0)t[n-1]=0;else{r=true;t[n-1]=u(i)}}};const s=t.parse=(e=>{var t=e[e.length-1];var r=e[0];var n;if(r===128)n=a(e.slice(1,e.length));else if(r===255)n=o(e);else throw TypeError("invalid base256 encoding");if(!Number.isSafeInteger(n))throw TypeError("parsed number outside of javascript safe integer range");return n});const o=e=>{var t=e.length;var r=0;var n=false;for(var i=t-1;i>-1;i--){var s=e[i];var o;if(n)o=c(s);else if(s===0)o=s;else{n=true;o=u(s)}if(o!==0)r-=o*Math.pow(256,t-i-1)}return r};const a=e=>{var t=e.length;var r=0;for(var n=t-1;n>-1;n--){var i=e[n];if(i!==0)r+=i*Math.pow(256,t-n-1)}return r};const c=e=>(255^e)&255;const u=e=>(255^e)+1&255},9650:(e,t,r)=>{"use strict";const n=r(5104);const i=r(6924);const s=r(2801);const o=r(5747);const a=r(6748);const c=r(5622);const u=e.exports=((e,t,r)=>{if(typeof e==="function")r=e,t=null,e={};else if(Array.isArray(e))t=e,e={};if(typeof t==="function")r=t,t=null;if(!t)t=[];else t=Array.from(t);const n=i(e);if(n.sync&&typeof r==="function")throw new TypeError("callback not supported for sync tar functions");if(!n.file&&typeof r==="function")throw new TypeError("callback only supported with file option");if(t.length)f(n,t);if(!n.noResume)l(n);return n.file&&n.sync?h(n):n.file?p(n,r):d(n)});const l=e=>{const t=e.onentry;e.onentry=t?e=>{t(e);e.resume()}:e=>e.resume()};const f=(e,t)=>{const r=new Map(t.map(e=>[e.replace(/\/+$/,""),true]));const n=e.filter;const i=(e,t)=>{const n=t||c.parse(e).root||".";const s=e===n?false:r.has(e)?r.get(e):i(c.dirname(e),n);r.set(e,s);return s};e.filter=n?(e,t)=>n(e,t)&&i(e.replace(/\/+$/,"")):e=>i(e.replace(/\/+$/,""))};const h=e=>{const t=d(e);const r=e.file;let i=true;let s;try{const a=o.statSync(r);const c=e.maxReadSize||16*1024*1024;if(a.size<c){t.end(o.readFileSync(r))}else{let e=0;const i=n.allocUnsafe(c);s=o.openSync(r,"r");while(e<a.size){let r=o.readSync(s,i,0,c,e);e+=r;t.write(i.slice(0,r))}t.end()}i=false}finally{if(i&&s)try{o.closeSync(s)}catch(e){}}};const p=(e,t)=>{const r=new s(e);const n=e.maxReadSize||16*1024*1024;const i=e.file;const c=new Promise((e,t)=>{r.on("error",t);r.on("end",e);o.stat(i,(e,s)=>{if(e)t(e);else{const e=new a.ReadStream(i,{readSize:n,size:s.size});e.on("error",t);e.pipe(r)}})});return t?c.then(t,t):c};const d=e=>new s(e)},1017:(e,t,r)=>{"use strict";const n=r(8828);const i=r(5747);const s=r(5622);const o=r(1817);class SymlinkError extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t;this.symlink=e}get name(){return"SylinkError"}}class CwdError extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e;this.code=t}get name(){return"CwdError"}}const a=e.exports=((e,t,r)=>{const a=t.umask;const u=t.mode|448;const l=(u&a)!==0;const f=t.uid;const h=t.gid;const p=typeof f==="number"&&typeof h==="number"&&(f!==t.processUid||h!==t.processGid);const d=t.preserve;const m=t.unlink;const y=t.cache;const v=t.cwd;const g=(t,n)=>{if(t)r(t);else{y.set(e,true);if(n&&p)o(n,f,h,e=>g(e));else if(l)i.chmod(e,u,r);else r()}};if(y&&y.get(e)===true)return g();if(e===v)return i.stat(e,(t,r)=>{if(t||!r.isDirectory())t=new CwdError(e,t&&t.code||"ENOTDIR");g(t)});if(d)return n(e,u,g);const b=s.relative(v,e);const w=b.split(/\/|\\/);c(v,w,u,y,m,v,null,g)});const c=(e,t,r,n,s,o,a,l)=>{if(!t.length)return l(null,a);const f=t.shift();const h=e+"/"+f;if(n.get(h))return c(h,t,r,n,s,o,a,l);i.mkdir(h,r,u(h,t,r,n,s,o,a,l))};const u=(e,t,r,n,o,a,l,f)=>h=>{if(h){if(h.path&&s.dirname(h.path)===a&&(h.code==="ENOTDIR"||h.code==="ENOENT"))return f(new CwdError(a,h.code));i.lstat(e,(s,p)=>{if(s)f(s);else if(p.isDirectory())c(e,t,r,n,o,a,l,f);else if(o)i.unlink(e,s=>{if(s)return f(s);i.mkdir(e,r,u(e,t,r,n,o,a,l,f))});else if(p.isSymbolicLink())return f(new SymlinkError(e,e+"/"+t.join("/")));else f(h)})}else{l=l||e;c(e,t,r,n,o,a,l,f)}};const l=e.exports.sync=((e,t)=>{const r=t.umask;const a=t.mode|448;const c=(a&r)!==0;const u=t.uid;const l=t.gid;const f=typeof u==="number"&&typeof l==="number"&&(u!==t.processUid||l!==t.processGid);const h=t.preserve;const p=t.unlink;const d=t.cache;const m=t.cwd;const y=t=>{d.set(e,true);if(t&&f)o.sync(t,u,l);if(c)i.chmodSync(e,a)};if(d&&d.get(e)===true)return y();if(e===m){let t=false;let r="ENOTDIR";try{t=i.statSync(e).isDirectory()}catch(e){r=e.code}finally{if(!t)throw new CwdError(e,r)}y();return}if(h)return y(n.sync(e,a));const v=s.relative(m,e);const g=v.split(/\/|\\/);let b=null;for(let e=g.shift(),t=m;e&&(t+="/"+e);e=g.shift()){if(d.get(t))continue;try{i.mkdirSync(t,a);b=b||t;d.set(t,true)}catch(e){if(e.path&&s.dirname(e.path)===m&&(e.code==="ENOTDIR"||e.code==="ENOENT"))return new CwdError(m,e.code);const r=i.lstatSync(t);if(r.isDirectory()){d.set(t,true);continue}else if(p){i.unlinkSync(t);i.mkdirSync(t,a);b=b||t;d.set(t,true);continue}else if(r.isSymbolicLink())return new SymlinkError(t,t+"/"+g.join("/"))}}return y(b)})},4770:e=>{"use strict";e.exports=((e,t)=>{e&=4095;if(t){if(e&256)e|=64;if(e&32)e|=8;if(e&4)e|=1}return e})},9698:(e,t,r)=>{"use strict";const n=r(5104);class PackJob{constructor(e,t){this.path=e||"./";this.absolute=t;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const i=r(448);const s=r(3808);const o=r(2946);const a=r(2393);const c=a.Sync;const u=a.Tar;const l=r(5831);const f=n.alloc(1024);const h=Symbol("onStat");const p=Symbol("ended");const d=Symbol("queue");const m=Symbol("current");const y=Symbol("process");const v=Symbol("processing");const g=Symbol("processJob");const b=Symbol("jobs");const w=Symbol("jobDone");const S=Symbol("addFSEntry");const x=Symbol("addTarEntry");const E=Symbol("stat");const _=Symbol("readdir");const O=Symbol("onreaddir");const R=Symbol("pipe");const A=Symbol("entry");const C=Symbol("entryOpt");const P=Symbol("writeEntryClass");const T=Symbol("write");const j=Symbol("ondrain");const k=r(5747);const N=r(5622);const I=r(430);const L=I(class Pack extends i{constructor(e){super(e);e=e||Object.create(null);this.opt=e;this.cwd=e.cwd||process.cwd();this.maxReadSize=e.maxReadSize;this.preservePaths=!!e.preservePaths;this.strict=!!e.strict;this.noPax=!!e.noPax;this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,"");this.linkCache=e.linkCache||new Map;this.statCache=e.statCache||new Map;this.readdirCache=e.readdirCache||new Map;this[P]=a;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);this.zip=null;if(e.gzip){if(typeof e.gzip!=="object")e.gzip={};this.zip=new s.Gzip(e.gzip);this.zip.on("data",e=>super.write(e));this.zip.on("end",e=>super.end());this.zip.on("drain",e=>this[j]());this.on("resume",e=>this.zip.resume())}else this.on("drain",this[j]);this.portable=!!e.portable;this.noDirRecurse=!!e.noDirRecurse;this.follow=!!e.follow;this.noMtime=!!e.noMtime;this.mtime=e.mtime||null;this.filter=typeof e.filter==="function"?e.filter:e=>true;this[d]=new l;this[b]=0;this.jobs=+e.jobs||4;this[v]=false;this[p]=false}[T](e){return super.write(e)}add(e){this.write(e);return this}end(e){if(e)this.write(e);this[p]=true;this[y]();return this}write(e){if(this[p])throw new Error("write after end");if(e instanceof o)this[x](e);else this[S](e);return this.flowing}[x](e){const t=N.resolve(this.cwd,e.path);if(this.prefix)e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"");if(!this.filter(e.path,e))e.resume();else{const r=new PackJob(e.path,t,false);r.entry=new u(e,this[C](r));r.entry.on("end",e=>this[w](r));this[b]+=1;this[d].push(r)}this[y]()}[S](e){const t=N.resolve(this.cwd,e);if(this.prefix)e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"");this[d].push(new PackJob(e,t));this[y]()}[E](e){e.pending=true;this[b]+=1;const t=this.follow?"stat":"lstat";k[t](e.absolute,(t,r)=>{e.pending=false;this[b]-=1;if(t)this.emit("error",t);else this[h](e,r)})}[h](e,t){this.statCache.set(e.absolute,t);e.stat=t;if(!this.filter(e.path,t))e.ignore=true;this[y]()}[_](e){e.pending=true;this[b]+=1;k.readdir(e.absolute,(t,r)=>{e.pending=false;this[b]-=1;if(t)return this.emit("error",t);this[O](e,r)})}[O](e,t){this.readdirCache.set(e.absolute,t);e.readdir=t;this[y]()}[y](){if(this[v])return;this[v]=true;for(let e=this[d].head;e!==null&&this[b]<this.jobs;e=e.next){this[g](e.value);if(e.value.ignore){const t=e.next;this[d].removeNode(e);e.next=t}}this[v]=false;if(this[p]&&!this[d].length&&this[b]===0){if(this.zip)this.zip.end(f);else{super.write(f);super.end()}}}get[m](){return this[d]&&this[d].head&&this[d].head.value}[w](e){this[d].shift();this[b]-=1;this[y]()}[g](e){if(e.pending)return;if(e.entry){if(e===this[m]&&!e.piped)this[R](e);return}if(!e.stat){if(this.statCache.has(e.absolute))this[h](e,this.statCache.get(e.absolute));else this[E](e)}if(!e.stat)return;if(e.ignore)return;if(!this.noDirRecurse&&e.stat.isDirectory()&&!e.readdir){if(this.readdirCache.has(e.absolute))this[O](e,this.readdirCache.get(e.absolute));else this[_](e);if(!e.readdir)return}e.entry=this[A](e);if(!e.entry){e.ignore=true;return}if(e===this[m]&&!e.piped)this[R](e)}[C](e){return{onwarn:(e,t)=>{this.warn(e,t)},noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[A](e){this[b]+=1;try{return new this[P](e.path,this[C](e)).on("end",()=>this[w](e)).on("error",e=>this.emit("error",e))}catch(e){this.emit("error",e)}}[j](){if(this[m]&&this[m].entry)this[m].entry.resume()}[R](e){e.piped=true;if(e.readdir)e.readdir.forEach(t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[S](n+t)});const t=e.entry;const r=this.zip;if(r)t.on("data",e=>{if(!r.write(e))t.pause()});else t.on("data",e=>{if(!super.write(e))t.pause()})}pause(){if(this.zip)this.zip.pause();return super.pause()}});class PackSync extends L{constructor(e){super(e);this[P]=c}pause(){}resume(){}[E](e){const t=this.follow?"statSync":"lstatSync";this[h](e,k[t](e.absolute))}[_](e,t){this[O](e,k.readdirSync(e.absolute))}[R](e){const t=e.entry;const r=this.zip;if(e.readdir)e.readdir.forEach(t=>{const r=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path;const n=r==="./"?"":r.replace(/\/*$/,"/");this[S](n+t)});if(r)t.on("data",e=>{r.write(e)});else t.on("data",e=>{super[T](e)})}}L.Sync=PackSync;e.exports=L},2801:(e,t,r)=>{"use strict";const n=r(430);const i=r(5622);const s=r(3970);const o=r(8614);const a=r(5831);const c=1024*1024;const u=r(2946);const l=r(4065);const f=r(3808);const h=r(5104);const p=h.from([31,139]);const d=Symbol("state");const m=Symbol("writeEntry");const y=Symbol("readEntry");const v=Symbol("nextEntry");const g=Symbol("processEntry");const b=Symbol("extendedHeader");const w=Symbol("globalExtendedHeader");const S=Symbol("meta");const x=Symbol("emitMeta");const E=Symbol("buffer");const _=Symbol("queue");const O=Symbol("ended");const R=Symbol("emittedEnd");const A=Symbol("emit");const C=Symbol("unzip");const P=Symbol("consumeChunk");const T=Symbol("consumeChunkSub");const j=Symbol("consumeBody");const k=Symbol("consumeMeta");const N=Symbol("consumeHeader");const I=Symbol("consuming");const L=Symbol("bufferConcat");const D=Symbol("maybeEnd");const $=Symbol("writing");const B=Symbol("aborted");const F=Symbol("onDone");const M=e=>true;e.exports=n(class Parser extends o{constructor(e){e=e||{};super(e);if(e.ondone)this.on(F,e.ondone);else this.on(F,e=>{this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")});this.strict=!!e.strict;this.maxMetaEntrySize=e.maxMetaEntrySize||c;this.filter=typeof e.filter==="function"?e.filter:M;this.writable=true;this.readable=false;this[_]=new a;this[E]=null;this[y]=null;this[m]=null;this[d]="begin";this[S]="";this[b]=null;this[w]=null;this[O]=false;this[C]=null;this[B]=false;if(typeof e.onwarn==="function")this.on("warn",e.onwarn);if(typeof e.onentry==="function")this.on("entry",e.onentry)}[N](e,t){const r=new s(e,t,this[b],this[w]);if(r.nullBlock)this[A]("nullBlock");else if(!r.cksumValid)this.warn("invalid entry",r);else if(!r.path)this.warn("invalid: path is required",r);else{const e=r.type;if(/^(Symbolic)?Link$/.test(e)&&!r.linkpath)this.warn("invalid: linkpath required",r);else if(!/^(Symbolic)?Link$/.test(e)&&r.linkpath)this.warn("invalid: linkpath forbidden",r);else{const e=this[m]=new u(r,this[b],this[w]);if(e.meta){if(e.size>this.maxMetaEntrySize){e.ignore=true;this[A]("ignoredEntry",e);this[d]="ignore"}else if(e.size>0){this[S]="";e.on("data",e=>this[S]+=e);this[d]="meta"}}else{this[b]=null;e.ignore=e.ignore||!this.filter(e.path,e);if(e.ignore){this[A]("ignoredEntry",e);this[d]=e.remain?"ignore":"begin"}else{if(e.remain)this[d]="body";else{this[d]="begin";e.end()}if(!this[y]){this[_].push(e);this[v]()}else this[_].push(e)}}}}}[g](e){let t=true;if(!e){this[y]=null;t=false}else if(Array.isArray(e))this.emit.apply(this,e);else{this[y]=e;this.emit("entry",e);if(!e.emittedEnd){e.on("end",e=>this[v]());t=false}}return t}[v](){do{}while(this[g](this[_].shift()));if(!this[_].length){const e=this[y];const t=!e||e.flowing||e.size===e.remain;if(t){if(!this[$])this.emit("drain")}else e.once("drain",e=>this.emit("drain"))}}[j](e,t){const r=this[m];const n=r.blockRemain;const i=n>=e.length&&t===0?e:e.slice(t,t+n);r.write(i);if(!r.blockRemain){this[d]="begin";this[m]=null;r.end()}return i.length}[k](e,t){const r=this[m];const n=this[j](e,t);if(!this[m])this[x](r);return n}[A](e,t,r){if(!this[_].length&&!this[y])this.emit(e,t,r);else this[_].push([e,t,r])}[x](e){this[A]("meta",this[S]);switch(e.type){case"ExtendedHeader":case"OldExtendedHeader":this[b]=l.parse(this[S],this[b],false);break;case"GlobalExtendedHeader":this[w]=l.parse(this[S],this[w],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[b]=this[b]||Object.create(null);this[b].path=this[S].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[b]=this[b]||Object.create(null);this[b].linkpath=this[S].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e,t){this[B]=true;this.warn(e,t);this.emit("abort",t);this.emit("error",t)}write(e){if(this[B])return;if(this[C]===null&&e){if(this[E]){e=h.concat([this[E],e]);this[E]=null}if(e.length<p.length){this[E]=e;return true}for(let t=0;this[C]===null&&t<p.length;t++){if(e[t]!==p[t])this[C]=false}if(this[C]===null){const t=this[O];this[O]=false;this[C]=new f.Unzip;this[C].on("data",e=>this[P](e));this[C].on("error",e=>this.abort(e.message,e));this[C].on("end",e=>{this[O]=true;this[P]()});this[$]=true;const r=this[C][t?"end":"write"](e);this[$]=false;return r}}this[$]=true;if(this[C])this[C].write(e);else this[P](e);this[$]=false;const t=this[_].length?false:this[y]?this[y].flowing:true;if(!t&&!this[_].length)this[y].once("drain",e=>this.emit("drain"));return t}[L](e){if(e&&!this[B])this[E]=this[E]?h.concat([this[E],e]):e}[D](){if(this[O]&&!this[R]&&!this[B]&&!this[I]){this[R]=true;const e=this[m];if(e&&e.blockRemain){const t=this[E]?this[E].length:0;this.warn("Truncated input (needed "+e.blockRemain+" more bytes, only "+t+" available)",e);if(this[E])e.write(this[E]);e.end()}this[A](F)}}[P](e){if(this[I]){this[L](e)}else if(!e&&!this[E]){this[D]()}else{this[I]=true;if(this[E]){this[L](e);const t=this[E];this[E]=null;this[T](t)}else{this[T](e)}while(this[E]&&this[E].length>=512&&!this[B]){const e=this[E];this[E]=null;this[T](e)}this[I]=false}if(!this[E]||this[O])this[D]()}[T](e){let t=0;let r=e.length;while(t+512<=r&&!this[B]){switch(this[d]){case"begin":this[N](e,t);t+=512;break;case"ignore":case"body":t+=this[j](e,t);break;case"meta":t+=this[k](e,t);break;default:throw new Error("invalid state: "+this[d])}}if(t<r){if(this[E])this[E]=h.concat([e.slice(t),this[E]]);else this[E]=e.slice(t)}}end(e){if(!this[B]){if(this[C])this[C].end(e);else{this[O]=true;this.write(e)}}}})},4065:(e,t,r)=>{"use strict";const n=r(5104);const i=r(3970);const s=r(5622);class Pax{constructor(e,t){this.atime=e.atime||null;this.charset=e.charset||null;this.comment=e.comment||null;this.ctime=e.ctime||null;this.gid=e.gid||null;this.gname=e.gname||null;this.linkpath=e.linkpath||null;this.mtime=e.mtime||null;this.path=e.path||null;this.size=e.size||null;this.uid=e.uid||null;this.uname=e.uname||null;this.dev=e.dev||null;this.ino=e.ino||null;this.nlink=e.nlink||null;this.global=t||false}encode(){const e=this.encodeBody();if(e==="")return null;const t=n.byteLength(e);const r=512*Math.ceil(1+t/512);const o=n.allocUnsafe(r);for(let e=0;e<512;e++){o[e]=0}new i({path:("PaxHeader/"+s.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(o);o.write(e,512,t,"utf8");for(let e=t+512;e<o.length;e++){o[e]=0}return o}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(e){if(this[e]===null||this[e]===undefined)return"";const t=this[e]instanceof Date?this[e].getTime()/1e3:this[e];const r=" "+(e==="dev"||e==="ino"||e==="nlink"?"SCHILY.":"")+e+"="+t+"\n";const i=n.byteLength(r);let s=Math.floor(Math.log(i)/Math.log(10))+1;if(i+s>=Math.pow(10,s))s+=1;const o=s+i;return o+r}}Pax.parse=((e,t,r)=>new Pax(o(a(e),t),r));const o=(e,t)=>t?Object.keys(e).reduce((t,r)=>(t[r]=e[r],t),t):e;const a=e=>e.replace(/\n$/,"").split("\n").reduce(c,Object.create(null));const c=(e,t)=>{const r=parseInt(t,10);if(r!==n.byteLength(t)+1)return e;t=t.substr((r+" ").length);const i=t.split("=");const s=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!s)return e;const o=i.join("=");e[s]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(s)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o;return e};e.exports=Pax},2946:(e,t,r)=>{"use strict";const n=r(8318);const i=r(448);const s=Symbol("slurp");e.exports=class ReadEntry extends i{constructor(e,t,r){super();this.extended=t;this.globalExtended=r;this.header=e;this.startBlockSize=512*Math.ceil(e.size/512);this.blockRemain=this.startBlockSize;this.remain=e.size;this.type=e.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=e.path;this.mode=e.mode;if(this.mode)this.mode=this.mode&4095;this.uid=e.uid;this.gid=e.gid;this.uname=e.uname;this.gname=e.gname;this.size=e.size;this.mtime=e.mtime;this.atime=e.atime;this.ctime=e.ctime;this.linkpath=e.linkpath;this.uname=e.uname;this.gname=e.gname;if(t)this[s](t);if(r)this[s](r,true)}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");const r=this.remain;const n=this.blockRemain;this.remain=Math.max(0,r-t);this.blockRemain=Math.max(0,n-t);if(this.ignore)return true;if(r>=t)return super.write(e);return super.write(e.slice(0,r))}[s](e,t){for(let r in e){if(e[r]!==null&&e[r]!==undefined&&!(t&&r==="path"))this[r]=e[r]}}}},8291:(e,t,r)=>{"use strict";const n=r(5104);const i=r(6924);const s=r(9698);const o=r(2801);const a=r(5747);const c=r(6748);const u=r(9650);const l=r(5622);const f=r(3970);const h=e.exports=((e,t,r)=>{const n=i(e);if(!n.file)throw new TypeError("file is required");if(n.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);return n.sync?p(n,t):m(n,t,r)});const p=(e,t)=>{const r=new s.Sync(e);let i=true;let o;let c;try{try{o=a.openSync(e.file,"r+")}catch(t){if(t.code==="ENOENT")o=a.openSync(e.file,"w+");else throw t}const s=a.fstatSync(o);const u=n.alloc(512);e:for(c=0;c<s.size;c+=512){for(let e=0,t=0;e<512;e+=t){t=a.readSync(o,u,e,u.length-e,c+e);if(c===0&&u[0]===31&&u[1]===139)throw new Error("cannot append to compressed archives");if(!t)break e}let t=new f(u);if(!t.cksumValid)break;let r=512*Math.ceil(t.size/512);if(c+r+512>s.size)break;c+=r;if(e.mtimeCache)e.mtimeCache.set(t.path,t.mtime)}i=false;d(e,r,c,o,t)}finally{if(i)try{a.closeSync(o)}catch(e){}}};const d=(e,t,r,n,i)=>{const s=new c.WriteStreamSync(e.file,{fd:n,start:r});t.pipe(s);y(t,i)};const m=(e,t,r)=>{t=Array.from(t);const i=new s(e);const o=(t,r,i)=>{const s=(e,r)=>{if(e)a.close(t,t=>i(e));else i(null,r)};let o=0;if(r===0)return s(null,0);let c=0;const u=n.alloc(512);const l=(n,i)=>{if(n)return s(n);c+=i;if(c<512&&i)return a.read(t,u,c,u.length-c,o+c,l);if(o===0&&u[0]===31&&u[1]===139)return s(new Error("cannot append to compressed archives"));if(c<512)return s(null,o);const h=new f(u);if(!h.cksumValid)return s(null,o);const p=512*Math.ceil(h.size/512);if(o+p+512>r)return s(null,o);o+=p+512;if(o>=r)return s(null,o);if(e.mtimeCache)e.mtimeCache.set(h.path,h.mtime);c=0;a.read(t,u,0,512,o,l)};a.read(t,u,0,512,o,l)};const u=new Promise((r,n)=>{i.on("error",n);let s="r+";const u=(l,f)=>{if(l&&l.code==="ENOENT"&&s==="r+"){s="w+";return a.open(e.file,s,u)}if(l)return n(l);a.fstat(f,(s,a)=>{if(s)return n(s);o(f,a.size,(s,o)=>{if(s)return n(s);const a=new c.WriteStream(e.file,{fd:f,start:o});i.pipe(a);a.on("error",n);a.on("close",r);v(i,t)})})};a.open(e.file,s,u)});return r?u.then(r,r):u};const y=(e,t)=>{t.forEach(t=>{if(t.charAt(0)==="@")u({file:l.resolve(e.cwd,t.substr(1)),sync:true,noResume:true,onentry:t=>e.add(t)});else e.add(t)});e.end()};const v=(e,t)=>{while(t.length){const r=t.shift();if(r.charAt(0)==="@")return u({file:l.resolve(e.cwd,r.substr(1)),noResume:true,onentry:t=>e.add(t)}).then(r=>v(e,t));else e.add(r)}e.end()}},8318:(e,t)=>{"use strict";t.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);t.code=new Map(Array.from(t.name).map(e=>[e[1],e[0]]))},7932:(e,t,r)=>{"use strict";const n=r(2357);const i=r(8614).EventEmitter;const s=r(2801);const o=r(5747);const a=r(6748);const c=r(5622);const u=r(1017);const l=u.sync;const f=r(1676);const h=Symbol("onEntry");const p=Symbol("checkFs");const d=Symbol("isReusable");const m=Symbol("makeFs");const y=Symbol("file");const v=Symbol("directory");const g=Symbol("link");const b=Symbol("symlink");const w=Symbol("hardlink");const S=Symbol("unsupported");const x=Symbol("unknown");const E=Symbol("checkPath");const _=Symbol("mkdir");const O=Symbol("onError");const R=Symbol("pending");const A=Symbol("pend");const C=Symbol("unpend");const P=Symbol("ended");const T=Symbol("maybeClose");const j=Symbol("skip");const k=Symbol("doChown");const N=Symbol("uid");const I=Symbol("gid");const L=r(6417);const D=(e,t)=>{if(process.platform!=="win32")return o.unlink(e,t);const r=e+".DELETE."+L.randomBytes(16).toString("hex");o.rename(e,r,e=>{if(e)return t(e);o.unlink(r,t)})};const $=e=>{if(process.platform!=="win32")return o.unlinkSync(e);const t=e+".DELETE."+L.randomBytes(16).toString("hex");o.renameSync(e,t);o.unlinkSync(t)};const B=(e,t,r)=>e===e>>>0?e:t===t>>>0?t:r;class Unpack extends s{constructor(e){if(!e)e={};e.ondone=(e=>{this[P]=true;this[T]()});super(e);this.transform=typeof e.transform==="function"?e.transform:null;this.writable=true;this.readable=false;this[R]=0;this[P]=false;this.dirCache=e.dirCache||new Map;if(typeof e.uid==="number"||typeof e.gid==="number"){if(typeof e.uid!=="number"||typeof e.gid!=="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid;this.gid=e.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(e.preserveOwner===undefined&&typeof e.uid!=="number")this.preserveOwner=process.getuid&&process.getuid()===0;else this.preserveOwner=!!e.preserveOwner;this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.forceChown=e.forceChown===true;this.win32=!!e.win32||process.platform==="win32";this.newer=!!e.newer;this.keep=!!e.keep;this.noMtime=!!e.noMtime;this.preservePaths=!!e.preservePaths;this.unlink=!!e.unlink;this.cwd=c.resolve(e.cwd||process.cwd());this.strip=+e.strip||0;this.processUmask=process.umask();this.umask=typeof e.umask==="number"?e.umask:this.processUmask;this.dmode=e.dmode||511&~this.umask;this.fmode=e.fmode||438&~this.umask;this.on("entry",e=>this[h](e))}[T](){if(this[P]&&this[R]===0){this.emit("prefinish");this.emit("finish");this.emit("end");this.emit("close")}}[E](e){if(this.strip){const t=e.path.split(/\/|\\/);if(t.length<this.strip)return false;e.path=t.slice(this.strip).join("/");if(e.type==="Link"){const t=e.linkpath.split(/\/|\\/);if(t.length>=this.strip)e.linkpath=t.slice(this.strip).join("/")}}if(!this.preservePaths){const t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/)){this.warn("path contains '..'",t);return false}if(c.win32.isAbsolute(t)){const r=c.win32.parse(t);this.warn("stripping "+r.root+" from absolute path",t);e.path=t.substr(r.root.length)}}if(this.win32){const t=c.win32.parse(e.path);e.path=t.root===""?f.encode(e.path):t.root+f.encode(e.path.substr(t.root.length))}if(c.isAbsolute(e.path))e.absolute=e.path;else e.absolute=c.resolve(this.cwd,e.path);return true}[h](e){if(!this[E](e))return e.resume();n.equal(typeof e.absolute,"string");switch(e.type){case"Directory":case"GNUDumpDir":if(e.mode)e.mode=e.mode|448;case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[p](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[S](e)}}[O](e,t){if(e.name==="CwdError")this.emit("error",e);else{this.warn(e.message,e);this[C]();t.resume()}}[_](e,t,r){u(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},r)}[k](e){return this.forceChown||this.preserveOwner&&(typeof e.uid==="number"&&e.uid!==this.processUid||typeof e.gid==="number"&&e.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[N](e){return B(this.uid,e.uid,this.processUid)}[I](e){return B(this.gid,e.gid,this.processGid)}[y](e){const t=e.mode&4095||this.fmode;const r=new a.WriteStream(e.absolute,{mode:t,autoClose:false});r.on("error",t=>this[O](t,e));let n=1;const i=t=>{if(t)return this[O](t,e);if(--n===0)o.close(r.fd,e=>this[C]())};r.on("finish",t=>{const s=e.absolute;const a=r.fd;if(e.mtime&&!this.noMtime){n++;const t=e.atime||new Date;const r=e.mtime;o.futimes(a,t,r,e=>e?o.utimes(s,t,r,t=>i(t&&e)):i())}if(this[k](e)){n++;const t=this[N](e);const r=this[I](e);o.fchown(a,t,r,e=>e?o.chown(s,t,r,t=>i(t&&e)):i())}i()});const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",t=>this[O](t,e));e.pipe(s)}s.pipe(r)}[v](e){const t=e.mode&4095||this.dmode;this[_](e.absolute,t,t=>{if(t)return this[O](t,e);let r=1;const n=t=>{if(--r===0){this[C]();e.resume()}};if(e.mtime&&!this.noMtime){r++;o.utimes(e.absolute,e.atime||new Date,e.mtime,n)}if(this[k](e)){r++;o.chown(e.absolute,this[N](e),this[I](e),n)}n()})}[S](e){this.warn("unsupported entry type: "+e.type,e);e.resume()}[b](e){this[g](e,e.linkpath,"symlink")}[w](e){this[g](e,c.resolve(this.cwd,e.linkpath),"link")}[A](){this[R]++}[C](){this[R]--;this[T]()}[j](e){this[C]();e.resume()}[d](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[p](e){this[A]();this[_](c.dirname(e.absolute),this.dmode,t=>{if(t)return this[O](t,e);o.lstat(e.absolute,(t,r)=>{if(r&&(this.keep||this.newer&&r.mtime>e.mtime))this[j](e);else if(t||this[d](e,r))this[m](null,e);else if(r.isDirectory()){if(e.type==="Directory"){if(!e.mode||(r.mode&4095)===e.mode)this[m](null,e);else o.chmod(e.absolute,e.mode,t=>this[m](t,e))}else o.rmdir(e.absolute,t=>this[m](t,e))}else D(e.absolute,t=>this[m](t,e))})})}[m](e,t){if(e)return this[O](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[y](t);case"Link":return this[w](t);case"SymbolicLink":return this[b](t);case"Directory":case"GNUDumpDir":return this[v](t)}}[g](e,t,r){o[r](t,e.absolute,t=>{if(t)return this[O](t,e);this[C]();e.resume()})}}class UnpackSync extends Unpack{constructor(e){super(e)}[p](e){const t=this[_](c.dirname(e.absolute),this.dmode);if(t)return this[O](t,e);try{const r=o.lstatSync(e.absolute);if(this.keep||this.newer&&r.mtime>e.mtime)return this[j](e);else if(this[d](e,r))return this[m](null,e);else{try{if(r.isDirectory()){if(e.type==="Directory"){if(e.mode&&(r.mode&4095)!==e.mode)o.chmodSync(e.absolute,e.mode)}else o.rmdirSync(e.absolute)}else $(e.absolute);return this[m](null,e)}catch(t){return this[O](t,e)}}}catch(t){return this[m](null,e)}}[y](e){const t=e.mode&4095||this.fmode;const r=t=>{try{o.closeSync(i)}catch(e){}if(t)this[O](t,e)};let n;let i;try{i=o.openSync(e.absolute,"w",t)}catch(e){return r(e)}const s=this.transform?this.transform(e)||e:e;if(s!==e){s.on("error",t=>this[O](t,e));e.pipe(s)}s.on("data",e=>{try{o.writeSync(i,e,0,e.length)}catch(e){r(e)}});s.on("end",t=>{let n=null;if(e.mtime&&!this.noMtime){const t=e.atime||new Date;const r=e.mtime;try{o.futimesSync(i,t,r)}catch(i){try{o.utimesSync(e.absolute,t,r)}catch(e){n=i}}}if(this[k](e)){const t=this[N](e);const r=this[I](e);try{o.fchownSync(i,t,r)}catch(i){try{o.chownSync(e.absolute,t,r)}catch(e){n=n||i}}}r(n)})}[v](e){const t=e.mode&4095||this.dmode;const r=this[_](e.absolute,t);if(r)return this[O](r,e);if(e.mtime&&!this.noMtime){try{o.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(r){}}if(this[k](e)){try{o.chownSync(e.absolute,this[N](e),this[I](e))}catch(r){}}e.resume()}[_](e,t){try{return u.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(e){return e}}[g](e,t,r){try{o[r+"Sync"](t,e.absolute);e.resume()}catch(t){return this[O](t,e)}}}Unpack.Sync=UnpackSync;e.exports=Unpack},8489:(e,t,r)=>{"use strict";const n=r(6924);const i=r(8291);const s=e.exports=((e,t,r)=>{const s=n(e);if(!s.file)throw new TypeError("file is required");if(s.gzip)throw new TypeError("cannot append to compressed archives");if(!t||!Array.isArray(t)||!t.length)throw new TypeError("no files or directories specified");t=Array.from(t);o(s);return i(s,t,r)});const o=e=>{const t=e.filter;if(!e.mtimeCache)e.mtimeCache=new Map;e.filter=t?(r,n)=>t(r,n)&&!(e.mtimeCache.get(r)>n.mtime):(t,r)=>!(e.mtimeCache.get(t)>r.mtime)}},430:e=>{"use strict";e.exports=(e=>(class extends e{warn(e,t){if(!this.strict)this.emit("warn",e,t);else if(t instanceof Error)this.emit("error",t);else{const r=new Error(e);r.data=t;this.emit("error",r)}}}))},1676:e=>{"use strict";const t=["|","<",">","?",":"];const r=t.map(e=>String.fromCharCode(61440+e.charCodeAt(0)));const n=new Map(t.map((e,t)=>[e,r[t]]));const i=new Map(r.map((e,r)=>[e,t[r]]));e.exports={encode:e=>t.reduce((e,t)=>e.split(t).join(n.get(t)),e),decode:e=>r.reduce((e,t)=>e.split(t).join(i.get(t)),e)}},2393:(e,t,r)=>{"use strict";const n=r(5104);const i=r(448);const s=r(4065);const o=r(3970);const a=r(2946);const c=r(5747);const u=r(5622);const l=r(8318);const f=16*1024*1024;const h=Symbol("process");const p=Symbol("file");const d=Symbol("directory");const m=Symbol("symlink");const y=Symbol("hardlink");const v=Symbol("header");const g=Symbol("read");const b=Symbol("lstat");const w=Symbol("onlstat");const S=Symbol("onread");const x=Symbol("onreadlink");const E=Symbol("openfile");const _=Symbol("onopenfile");const O=Symbol("close");const R=Symbol("mode");const A=r(430);const C=r(1676);const P=r(4770);const T=A(class WriteEntry extends i{constructor(e,t){t=t||{};super(t);if(typeof e!=="string")throw new TypeError("path is required");this.path=e;this.portable=!!t.portable;this.myuid=process.getuid&&process.getuid();this.myuser=process.env.USER||"";this.maxReadSize=t.maxReadSize||f;this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.preservePaths=!!t.preservePaths;this.cwd=t.cwd||process.cwd();this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(!this.preservePaths&&u.win32.isAbsolute(e)){const t=u.win32.parse(e);this.warn("stripping "+t.root+" from absolute path",e);this.path=e.substr(t.root.length)}this.win32=!!t.win32||process.platform==="win32";if(this.win32){this.path=C.decode(this.path.replace(/\\/g,"/"));e=e.replace(/\\/g,"/")}this.absolute=t.absolute||u.resolve(this.cwd,e);if(this.path==="")this.path="./";if(this.statCache.has(this.absolute))this[w](this.statCache.get(this.absolute));else this[b]()}[b](){c.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[w](t)})}[w](e){this.statCache.set(this.absolute,e);this.stat=e;if(!e.isFile())e.size=0;this.type=k(e);this.emit("stat",e);this[h]()}[h](){switch(this.type){case"File":return this[p]();case"Directory":return this[d]();case"SymbolicLink":return this[m]();default:return this.end()}}[R](e){return P(e,this.type==="Directory")}[v](){if(this.type==="Directory"&&this.portable)this.noMtime=true;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this[R](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax)this.write(new s({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode());this.write(this.header.block)}[d](){if(this.path.substr(-1)!=="/")this.path+="/";this.stat.size=0;this[v]();this.end()}[m](){c.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[x](t)})}[x](e){this.linkpath=e;this[v]();this.end()}[y](e){this.type="Link";this.linkpath=u.relative(this.cwd,e);this.stat.size=0;this[v]();this.end()}[p](){if(this.stat.nlink>1){const e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){const t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[y](t)}this.linkCache.set(e,this.absolute)}this[v]();if(this.stat.size===0)return this.end();this[E]()}[E](){c.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[_](t)})}[_](e){const t=512*Math.ceil(this.stat.size/512);const r=Math.min(t,this.maxReadSize);const i=n.allocUnsafe(r);this[g](e,i,0,i.length,0,this.stat.size,t)}[g](e,t,r,n,i,s,o){c.read(e,t,r,n,i,(a,c)=>{if(a)return this[O](e,e=>this.emit("error",a));this[S](e,t,r,n,i,s,o,c)})}[O](e,t){c.close(e,t)}[S](e,t,r,i,s,o,a,c){if(c<=0&&o>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[O](e);return this.emit("error",t)}if(c>o){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";this[O](e);return this.emit("error",t)}if(c===o){for(let e=c;e<i&&c<a;e++){t[e+r]=0;c++;o++}}const u=r===0&&c===t.length?t:t.slice(r,r+c);o-=c;a-=c;s+=c;r+=c;this.write(u);if(!o){if(a)this.write(n.alloc(a));this.end();this[O](e,e=>e);return}if(r>=i){t=n.allocUnsafe(i);r=0}i=t.length-r;this[g](e,t,r,i,s,o,a)}});class WriteEntrySync extends T{constructor(e,t){super(e,t)}[b](){this[w](c.lstatSync(this.absolute))}[m](){this[x](c.readlinkSync(this.absolute))}[E](){this[_](c.openSync(this.absolute,"r"))}[g](e,t,r,n,i,s,o){let a=true;try{const u=c.readSync(e,t,r,n,i);this[S](e,t,r,n,i,s,o,u);a=false}finally{if(a)try{this[O](e)}catch(e){}}}[O](e){c.closeSync(e)}}const j=A(class WriteEntryTar extends i{constructor(e,t){t=t||{};super(t);this.preservePaths=!!t.preservePaths;this.portable=!!t.portable;this.strict=!!t.strict;this.noPax=!!t.noPax;this.noMtime=!!t.noMtime;this.readEntry=e;this.type=e.type;if(this.type==="Directory"&&this.portable)this.noMtime=true;this.path=e.path;this.mode=this[R](e.mode);this.uid=this.portable?null:e.uid;this.gid=this.portable?null:e.gid;this.uname=this.portable?null:e.uname;this.gname=this.portable?null:e.gname;this.size=e.size;this.mtime=this.noMtime?null:t.mtime||e.mtime;this.atime=this.portable?null:e.atime;this.ctime=this.portable?null:e.ctime;this.linkpath=e.linkpath;if(typeof t.onwarn==="function")this.on("warn",t.onwarn);if(u.isAbsolute(this.path)&&!this.preservePaths){const e=u.parse(this.path);this.warn("stripping "+e.root+" from absolute path",this.path);this.path=this.path.substr(e.root.length)}this.remain=e.size;this.blockRemain=e.startBlockSize;this.header=new o({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(this.header.encode()&&!this.noPax)super.write(new s({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode());super.write(this.header.block);e.pipe(this)}[R](e){return P(e,this.type==="Directory")}write(e){const t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");this.blockRemain-=t;return super.write(e)}end(){if(this.blockRemain)this.write(n.alloc(this.blockRemain));return super.end()}});T.Sync=WriteEntrySync;T.Tar=j;const k=e=>e.isFile()?"File":e.isDirectory()?"Directory":e.isSymbolicLink()?"SymbolicLink":"Unsupported";e.exports=T},6732:(e,t,r)=>{e.exports=which;which.sync=whichSync;var n=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";var i=r(5622);var s=n?";":":";var o=r(228);function getNotFoundError(e){var t=new Error("not found: "+e);t.code="ENOENT";return t}function getPathInfo(e,t){var r=t.colon||s;var i=t.path||process.env.PATH||"";var o=[""];i=i.split(r);var a="";if(n){i.unshift(process.cwd());a=t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM";o=a.split(r);if(e.indexOf(".")!==-1&&o[0]!=="")o.unshift("")}if(e.match(/\//)||n&&e.match(/\\/))i=[""];return{env:i,ext:o,extExe:a}}function which(e,t,r){if(typeof t==="function"){r=t;t={}}var n=getPathInfo(e,t);var s=n.env;var a=n.ext;var c=n.extExe;var u=[];(function F(n,l){if(n===l){if(t.all&&u.length)return r(null,u);else return r(getNotFoundError(e))}var f=s[n];if(f.charAt(0)==='"'&&f.slice(-1)==='"')f=f.slice(1,-1);var h=i.join(f,e);if(!f&&/^\.[\\\/]/.test(e)){h=e.slice(0,2)+h}(function E(e,i){if(e===i)return F(n+1,l);var s=a[e];o(h+s,{pathExt:c},function(n,o){if(!n&&o){if(t.all)u.push(h+s);else return r(null,h+s)}return E(e+1,i)})})(0,a.length)})(0,s.length)}function whichSync(e,t){t=t||{};var r=getPathInfo(e,t);var n=r.env;var s=r.ext;var a=r.extExe;var c=[];for(var u=0,l=n.length;u<l;u++){var f=n[u];if(f.charAt(0)==='"'&&f.slice(-1)==='"')f=f.slice(1,-1);var h=i.join(f,e);if(!f&&/^\.[\\\/]/.test(e)){h=e.slice(0,2)+h}for(var p=0,d=s.length;p<d;p++){var m=h+s[p];var y;try{y=o.sync(m,{pathExt:a});if(y){if(t.all)c.push(m);else return m}}catch(e){}}}if(t.all&&c.length)return c;if(t.nothrow)return null;throw getNotFoundError(e)}},7869:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},5831:(e,t,r)=>{"use strict";e.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(e){var t=this;if(!(t instanceof Yallist)){t=new Yallist}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach(function(e){t.push(e)})}else if(arguments.length>0){for(var r=0,n=arguments.length;r<n;r++){t.push(arguments[r])}}return t}Yallist.prototype.removeNode=function(e){if(e.list!==this){throw new Error("removing node which does not belong to this list")}var t=e.next;var r=e.prev;if(t){t.prev=r}if(r){r.next=t}if(e===this.head){this.head=t}if(e===this.tail){this.tail=r}e.list.length--;e.next=null;e.prev=null;e.list=null;return t};Yallist.prototype.unshiftNode=function(e){if(e===this.head){return}if(e.list){e.list.removeNode(e)}var t=this.head;e.list=this;e.next=t;if(t){t.prev=e}this.head=e;if(!this.tail){this.tail=e}this.length++};Yallist.prototype.pushNode=function(e){if(e===this.tail){return}if(e.list){e.list.removeNode(e)}var t=this.tail;e.list=this;e.prev=t;if(t){t.next=e}this.tail=e;if(!this.head){this.head=e}this.length++};Yallist.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++){push(this,arguments[e])}return this.length};Yallist.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++){unshift(this,arguments[e])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var e=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return e};Yallist.prototype.shift=function(){if(!this.head){return undefined}var e=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return e};Yallist.prototype.forEach=function(e,t){t=t||this;for(var r=this.head,n=0;r!==null;n++){e.call(t,r.value,n,this);r=r.next}};Yallist.prototype.forEachReverse=function(e,t){t=t||this;for(var r=this.tail,n=this.length-1;r!==null;n--){e.call(t,r.value,n,this);r=r.prev}};Yallist.prototype.get=function(e){for(var t=0,r=this.head;r!==null&&t<e;t++){r=r.next}if(t===e&&r!==null){return r.value}};Yallist.prototype.getReverse=function(e){for(var t=0,r=this.tail;r!==null&&t<e;t++){r=r.prev}if(t===e&&r!==null){return r.value}};Yallist.prototype.map=function(e,t){t=t||this;var r=new Yallist;for(var n=this.head;n!==null;){r.push(e.call(t,n.value,this));n=n.next}return r};Yallist.prototype.mapReverse=function(e,t){t=t||this;var r=new Yallist;for(var n=this.tail;n!==null;){r.push(e.call(t,n.value,this));n=n.prev}return r};Yallist.prototype.reduce=function(e,t){var r;var n=this.head;if(arguments.length>1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};Yallist.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=0,i=this.head;i!==null&&n<e;n++){i=i.next}for(;i!==null&&n<t;n++,i=i.next){r.push(i.value)}return r};Yallist.prototype.sliceReverse=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new Yallist;if(t<e||t<0){return r}if(e<0){e=0}if(t>this.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r<e;r++){n=n.next}var i=[];for(var r=0;n&&r<t;r++){i.push(n.value);n=this.removeNode(n)}if(n===null){n=this.tail}if(n!==this.head&&n!==this.tail){n=n.prev}for(var r=2;r<arguments.length;r++){n=insert(this,n,arguments[r])}return i};Yallist.prototype.reverse=function(){var e=this.head;var t=this.tail;for(var r=e;r!==null;r=r.prev){var n=r.prev;r.prev=r.next;r.next=n}this.head=t;this.tail=e;return this};function insert(e,t,r){var n=t===e.head?new Node(r,null,t,e):new Node(r,t,t.next,e);if(n.next===null){e.tail=n}if(n.prev===null){e.head=n}e.length++;return n}function push(e,t){e.tail=new Node(t,e.tail,null,e);if(!e.head){e.head=e.tail}e.length++}function unshift(e,t){e.head=new Node(t,null,e.head,e);if(!e.tail){e.tail=e.head}e.length++}function Node(e,t,r,n){if(!(this instanceof Node)){return new Node(e,t,r,n)}this.list=n;this.value=e;if(t){t.next=this;this.prev=t}else{this.prev=null}if(r){r.prev=this;this.next=r}else{this.next=null}}try{r(7869)(Yallist)}catch(e){}},2439:(e,t,r)=>{"use strict";r.r(t);var n=r(6437);var i=r.n(n);var s=r(8138);var o=r.n(s);var a=r(5622);var c=r.n(a);var u=r(7671);var l=r.n(u);var f=r(5418);var h=r.n(f);var p=r(3691);var d=r.n(p);var m=r(402);var y=r.n(m);var v=r(5747);var g=r.n(v);var b=r(2087);var w=r.n(b);var S=r(9365);var x=r.n(S);var E=r(2127);var _=r(2413);var O=r(1669);const R=(0,O.promisify)(_.Stream.pipeline);async function isUrlOk(e){const t=await x().head(e).catch(e=>e);return t.statusCode===200}async function getRepoInfo(e,t){const[,r,n,i,s,...o]=e.pathname.split("/");const a=t?t.replace(/^\//,""):o.join("/");if(i===undefined){const e=await x()(`https://api.github.com/repos/${r}/${n}`).catch(e=>e);if(e.statusCode!==200){return}const t=JSON.parse(e.body);return{username:r,name:n,branch:t["default_branch"],filePath:a}}const c=t?`${s}/${o.join("/")}`.replace(new RegExp(`/${a}|/$`),""):s;if(r&&n&&c&&i==="tree"){return{username:r,name:n,branch:c,filePath:a}}}function hasRepo({username:e,name:t,branch:r,filePath:n}){const i=`https://api.github.com/repos/${e}/${t}/contents`;const s=`${n?`/${n}`:""}/package.json`;return isUrlOk(`${i+s}?ref=${r}`)}function hasExample(e){return isUrlOk(`https://api.github.com/repos/vercel/next.js/contents/examples/${encodeURIComponent(e)}/package.json`)}function downloadAndExtractRepo(e,{username:t,name:r,branch:n,filePath:i}){return R(x().stream(`https://codeload.github.com/${t}/${r}/tar.gz/${n}`),E.extract({cwd:e,strip:i?i.split("/").length+1:1},[`${r}-${n}${i?`/${i}`:""}`]))}function downloadAndExtractExample(e,t){if(t==="__internal-testing-retry"){throw new Error("This is an internal example for testing the CLI.")}return R(x().stream("https://codeload.github.com/vercel/next.js/tar.gz/canary"),E.extract({cwd:e,strip:3},[`next.js-canary/examples/${t}`]))}function makeDir(e,t={recursive:true}){return g().promises.mkdir(e,t)}var A=r(3129);var C=r(3769);var P=r.n(C);function isInGitRepository(){try{(0,A.execSync)("git rev-parse --is-inside-work-tree",{stdio:"ignore"});return true}catch(e){}return false}function isInMercurialRepository(){try{(0,A.execSync)("hg --cwd . root",{stdio:"ignore"});return true}catch(e){}return false}function tryGitInit(e){let t=false;try{(0,A.execSync)("git --version",{stdio:"ignore"});if(isInGitRepository()||isInMercurialRepository()){return false}(0,A.execSync)("git init",{stdio:"ignore"});t=true;(0,A.execSync)("git checkout -b main",{stdio:"ignore"});(0,A.execSync)("git add -A",{stdio:"ignore"});(0,A.execSync)('git commit -m "Initial commit from Create Next App"',{stdio:"ignore"});return true}catch(r){if(t){try{P().sync(c().join(e,".git"))}catch(e){}}return false}}var T=r(7618);var j=r.n(T);function install(e,t,{useYarn:r,isOnline:n,devDependencies:s}){const o=[];const a=[];return new Promise((c,u)=>{let l;let f=r?"yarnpkg":"npm";if(t&&t.length){if(r){l=["add","--exact"];if(!n)l.push("--offline");l.push("--cwd",e);if(s)l.push("--dev");l.push(...t)}else{l=["install","--save-exact"];l.push(s?"--save-dev":"--save");l.push(...t)}}else{l=["install"];if(r){if(!n){console.log(i().yellow("You appear to be offline."));console.log(i().yellow("Falling back to the local Yarn cache."));console.log();l.push("--offline")}}else{if(!n){console.log(i().yellow("You appear to be offline."));console.log()}}}if(r){l.push(...a)}else{l.push(...o)}const h=j()(f,l,{stdio:"inherit",env:{...process.env,NODE_ENV:s?"development":"production",ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}});h.on("close",e=>{if(e!==0){u({command:`${f} ${l.join(" ")}`});return}c()})})}function isFolderEmpty(e,t){const r=[".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 n=g().readdirSync(e).filter(e=>!r.includes(e)).filter(e=>!/\.iml$/.test(e));if(n.length>0){console.log(`The directory ${i().green(t)} contains files that could conflict:`);console.log();for(const t of n){try{const r=g().lstatSync(c().join(e,t));if(r.isDirectory()){console.log(` ${i().blue(t)}/`)}else{console.log(` ${t}`)}}catch{console.log(` ${t}`)}}console.log();console.log("Either try using a new directory name, or remove the files listed above.");console.log();return false}return true}async function isWriteable(e){try{await g().promises.access(e,(g().constants||g()).W_OK);return true}catch(e){return false}}function shouldUseYarn(){try{const e=process.env.npm_config_user_agent;if(e){return Boolean(e&&e.startsWith("yarn"))}(0,A.execSync)("yarnpkg --version",{stdio:"ignore"});return true}catch(e){return false}}class DownloadError extends Error{}async function createApp({appPath:e,example:t,examplePath:n,useNpm:s}){let o;const a="default";if(t){let e;try{e=new URL(t)}catch(e){if(e.code!=="ERR_INVALID_URL"){console.error(e);process.exit(1)}}if(e){if(e.origin!=="https://github.com"){console.error(`Invalid URL: ${i().red(`"${t}"`)}. Only GitHub repositories are supported. Please use a GitHub URL and try again.`);process.exit(1)}o=await getRepoInfo(e,n);if(!o){console.error(`Found invalid GitHub URL: ${i().red(`"${t}"`)}. Please fix the URL and try again.`);process.exit(1)}const r=await hasRepo(o);if(!r){console.error(`Could not locate the repository for ${i().red(`"${t}"`)}. Please check that the repository exists and try again.`);process.exit(1)}}else if(t!=="__internal-testing-retry"){const e=await hasExample(t);if(!e){console.error(`Could not locate an example named ${i().red(`"${t}"`)}. It could be due to the following:\n`,`1. Your spelling of example ${i().red(`"${t}"`)} might be incorrect.\n`,"2. You might not be connected to the internet.");process.exit(1)}}}const u=c().resolve(e);if(!await isWriteable(c().dirname(u))){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 l=c().basename(u);await makeDir(u);if(!isFolderEmpty(u,l)){process.exit(1)}const f=s?false:shouldUseYarn();const h=process.cwd();console.log(`Creating a new eventcatalog in ${i().green(u)}.`);console.log();await makeDir(u);process.chdir(u);if(t){try{if(o){const e=o;console.log(`Downloading files from repo ${i().cyan(t)}. This might take a moment.`);console.log();await d()(()=>downloadAndExtractRepo(u,e),{retries:3})}else{console.log(`Downloading files for example ${i().cyan(t)}. This might take a moment.`);console.log();await d()(()=>downloadAndExtractExample(u,t),{retries:3})}}catch(e){throw new DownloadError(e)}const e=c().join(u,".gitignore");if(!g().existsSync(e)){g().copyFileSync(r.ab+"gitignore",e)}console.log("Installing packages. This might take a couple of minutes.");console.log();await install(u,null,{useYarn:f,isOnline:true});console.log()}else{const e={name:l,version:"0.0.1",private:true,scripts:{start:"eventcatalog start",dev:"eventcatalog dev",build:"eventcatalog build",generate:"eventcatalog generate",test:'echo "Error: no test specified" && exit 1'},devDependencies:{tailwindcss:"^3.3.3",typescript:"^5.1.6",postcss:"^8.3.11","cross-env":"^7.0.3",autoprefixer:"10.4.5"}};g().writeFileSync(c().join(u,"package.json"),JSON.stringify(e,null,2)+w().EOL);const t={useYarn:f,isOnline:true};const n=["@eventcatalog/core"];const s=["@types/react","@eventcatalog/types","@types/node"];if(n.length){console.log();console.log("Installing dependencies:");for(const e of n){console.log(`- ${i().cyan(e)}`)}console.log();await install(u,n,t)}if(s.length){console.log();console.log("Installing devDependencies:");for(const e of s){console.log(`- ${i().cyan(e)}`)}console.log();const e={devDependencies:true,...t};await install(u,s,e)}await y()("**",u,{parents:true,cwd:r.ab+"default",rename:e=>{switch(e){case"env":case"gitignore":case"dockerignore":case"eslintrc":{return".".concat(e)}case"README-template.md":{return"README.md"}default:{return e}}}})}if(tryGitInit(u)){console.log("Initialized a git repository.");console.log()}let p;if(c().join(h,l)===e){p=l}else{p=e}console.log(`${i().green("Success!")} Created ${l} at ${e}`);console.log("Inside that directory, you can run several commands:");console.log();console.log(i().cyan(" npm run dev"));console.log(" Starts the app in development mode.");console.log();console.log(i().cyan(" npm start"));console.log(" Runs the app in production mode.");console.log();console.log("We suggest that you begin by typing:");console.log();console.log(i().cyan(" cd"),p);console.log(` ${i().cyan("npm run dev")}`);console.log()}var k=r(5880);var N=r.n(k);function validateNpmName(e){const t=N()(e);if(t.validForNewPackages){return{valid:true}}return{valid:false,problems:[...t.errors||[],...t.warnings||[]]}}const I=JSON.parse('{"name":"@eventcatalog/create-eventcatalog","version":"1.1.1","keywords":[],"description":"Create event catalogs apps with one command","repository":{"type":"git","url":"https://github.com/boyney123/eventcatalog"},"author":"David Boyne","license":"MIT","bin":{"create-eventcatalog2":"./dist/index.js"},"files":["dist"],"publishConfig":{"access":"public"},"scripts":{"dev":"ncc build ./index.ts -w -o dist/","test":"echo \\"No test specified\\"","lint":"eslint --max-warnings 13 --config .eslintrc .","prepare":"rimraf ./dist/ && ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register","build":"npm run prepare","release":"semantic-release","get:version":"echo $npm_package_version","get:name":"echo $npm_package_name","generate:assets":"echo \\"No assets to generate so far\\"","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION"},"devDependencies":{"@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.4","@semantic-release/npm":"^7.0.6","@semantic-release/release-notes-generator":"^9.0.1","@types/async-retry":"1.3.0","@types/cross-spawn":"^6.0.2","@types/node":"^12.6.8","@types/prompts":"2.0.1","@types/rimraf":"3.0.0","@types/tar":"4.0.3","@types/validate-npm-package-name":"3.0.0","@typescript-eslint/eslint-plugin":"^6.3.0","@typescript-eslint/parser":"^6.3.0","@vercel/ncc":"0.25.1","all-contributors-cli":"^6.14.2","async-retry":"1.3.1","chalk":"2.4.2","commander":"2.20.0","conventional-changelog-conventionalcommits":"^4.4.0","cpy":"7.3.0","cross-spawn":"6.0.5","eslint":"^8.46.0","eslint-plugin-github":"^4.1.3","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","got":"10.7.0","jest":"^29.6.2","jsdoc-to-markdown":"^5.0.0","markdown-toc":"^1.2.0","prompts":"2.1.0","rimraf":"3.0.0","semantic-release":"^17.2.2","tar":"4.4.10","typescript":"5.1.6","unixify":"^1.0.0","update-check":"1.5.4","validate-npm-package-name":"3.0.0"},"engines":{"node":">=12.0.0"},"gitHead":"5f82ce7f267e9b3ec771bbd3cc81359ed0a8fd18"}');let L="";const D=new(o().Command)(I.name).version(I.version).arguments("<project-directory>").usage(`${i().green("<project-directory>")} [options]`).action(e=>{L=e}).option("-e, --example [name]|[github-url]",`\n\n An example to bootstrap the app with. You can use an example name\n from the official Glee repo or a GitHub URL. The URL can use\n any branch and/or subdirectory\n`).option("--example-path <path-to-example>",`\n\n In a rare case, your GitHub URL might contain a branch name with\n a slash (e.g. bug/fix-1) and the path to the example (e.g. foo/bar).\n In this case, you must specify the path to the example separately:\n --example-path foo/bar\n`).allowUnknownOption().parse(process.argv);async function run(){if(typeof L==="string"){L=L.trim()}if(!L){const e=await l()({type:"text",name:"path",message:"What is your project named?",initial:"my-app",validate:e=>{var t;const r=validateNpmName(c().basename(c().resolve(e)));if(r.valid){return true}return`Invalid project name: ${(t=r.problems)===null||t===void 0?void 0:t[0]}`}});if(typeof e.path==="string"){L=e.path.trim()}}if(!L){console.log();console.log("Please specify the project directory:");console.log(` ${i().cyan(D.name())} ${i().green("<project-directory>")}`);console.log();console.log("For example:");console.log(` ${i().cyan(D.name())} ${i().green("my-eventcatalog-app")}`);console.log();console.log(`Run ${i().cyan(`${D.name()} --help`)} to see all options.`);process.exit(1)}const e=c().resolve(L);const t=c().basename(e);const{valid:r,problems:n}=validateNpmName(t);if(!r){console.error(`Could not create a project called ${i().red(`"${t}"`)} because of npm naming restrictions:`);n.forEach(e=>console.error(` ${i().red.bold("*")} ${e}`));process.exit(1)}if(D.example===true){console.error("Please provide an example name or url, otherwise remove the example option.");process.exit(1);return}const s=typeof D.example==="string"&&D.example.trim();try{await createApp({appPath:e,useNpm:!!D.useNpm,example:s&&s!=="default"?s:undefined,examplePath:D.examplePath})}catch(t){if(!(t instanceof DownloadError)){throw t}const r=await l()({type:"confirm",name:"builtin",message:`Could not download "${s}" because of a connectivity issue between your machine and GitHub.\n`+"Do you want to use the default template instead?",initial:true});if(!r.builtin){throw t}await createApp({appPath:e,useNpm:!!D.useNpm})}}const $=h()(I).catch(()=>null);async function notifyUpdate(){try{const e=await $;if(e===null||e===void 0?void 0:e.latest){console.log();console.log(i().yellow.bold("A new version of `create-eventcatalog` is available!"));console.log(`You can update by running: ${i().cyan("npm i -g create-eventcatalog")}`);console.log()}process.exit()}catch{}}run().then(notifyUpdate).catch(async e=>{console.log();console.log("Aborting installation.");if(e.command){console.log(` ${i().cyan(e.command)} has failed.`)}else{console.log(i().red("Unexpected error. Please report it as a bug:"));console.log(e)}console.log();await notifyUpdate();process.exit(1)})},7995:e=>{"use strict";e.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},2357:e=>{"use strict";e.exports=require("assert")},4293:e=>{"use strict";e.exports=require("buffer")},3129:e=>{"use strict";e.exports=require("child_process")},7619:e=>{"use strict";e.exports=require("constants")},6417:e=>{"use strict";e.exports=require("crypto")},881:e=>{"use strict";e.exports=require("dns")},8614:e=>{"use strict";e.exports=require("events")},5747:e=>{"use strict";e.exports=require("fs")},8605:e=>{"use strict";e.exports=require("http")},7211:e=>{"use strict";e.exports=require("https")},1631:e=>{"use strict";e.exports=require("net")},2087:e=>{"use strict";e.exports=require("os")},5622:e=>{"use strict";e.exports=require("path")},1058:e=>{"use strict";e.exports=require("readline")},2413:e=>{"use strict";e.exports=require("stream")},4304:e=>{"use strict";e.exports=require("string_decoder")},3867:e=>{"use strict";e.exports=require("tty")},8835:e=>{"use strict";e.exports=require("url")},1669:e=>{"use strict";e.exports=require("util")},8761:e=>{"use strict";e.exports=require("zlib")}};var t={};function __webpack_require__(r){if(t[r]){return t[r].exports}var n=t[r]={id:r,loaded:false,exports:{}};var i=true;try{e[r].call(n.exports,n,n.exports,__webpack_require__);i=false}finally{if(i)delete t[r]}n.loaded=true;return n.exports}(()=>{__webpack_require__.n=(e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__webpack_require__.d(t,{a:t});return t})})();(()=>{__webpack_require__.d=((e,t)=>{for(var r in t){if(__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)){Object.defineProperty(e,r,{enumerable:true,get:t[r]})}}})})();(()=>{__webpack_require__.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t))})();(()=>{__webpack_require__.r=(e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})})})();(()=>{__webpack_require__.nmd=(e=>{e.paths=[];if(!e.children)e.children=[];return e})})();__webpack_require__.ab=__dirname+"/";return __webpack_require__(2439)})();